Class: Fog::Compute::Google::HttpHealthChecks
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Google::HttpHealthChecks
- Defined in:
- lib/fog/compute/google/models/http_health_checks.rb
Instance Method Summary collapse
Instance Method Details
#all(_filters = {}) ⇒ Object
7 8 9 10 |
# File 'lib/fog/compute/google/models/http_health_checks.rb', line 7 def all(_filters = {}) data = service.list_http_health_checks.body["items"] || [] load(data) end |
#get(identity) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/fog/compute/google/models/http_health_checks.rb', line 12 def get(identity) response = nil response = service.get_http_health_check(identity) return nil if response.nil? new(response.body) rescue Fog::Errors::NotFound nil end |