Class: Fog::Compute::Google::HttpHealthChecks

Inherits:
Fog::Collection
  • Object
show all
Defined in:
lib/fog/google/models/compute/http_health_checks.rb

Instance Method Summary collapse

Instance Method Details

#all(filters = {}) ⇒ Object



10
11
12
13
# File 'lib/fog/google/models/compute/http_health_checks.rb', line 10

def all(filters={})
  data = service.list_http_health_checks.body['items'] || []
  load(data)
end

#get(identity) ⇒ Object



15
16
17
18
19
20
21
22
# File 'lib/fog/google/models/compute/http_health_checks.rb', line 15

def get(identity)
  resonse = nil
  response = service.get_http_health_check(identity)
  return nil if response.nil?
  new(response.body)
rescue Fog::Errors::NotFound
  nil
end