Class: Fog::Compute::Google::BackendServices

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

Instance Method Summary collapse

Instance Method Details

#all(filters = {}) ⇒ Object



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

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

#get(identity) ⇒ Object



15
16
17
18
# File 'lib/fog/google/models/compute/backend_services.rb', line 15

def get(identity)
  response = service.get_backend_service(identity)
  new(response.body) unless response.nil?
end