Class: Fog::Compute::Vsphere::StoragePods

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

Instance Method Summary collapse

Instance Method Details

#all(filters = {}) ⇒ Object



11
12
13
# File 'lib/fog/vsphere/models/compute/storage_pods.rb', line 11

def all(filters = {})
  load service.list_storage_pods(filters.merge(datacenter: datacenter))
end

#get(id) ⇒ Object



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

def get(id)
  requires :datacenter
  new service.get_storage_pod(id, datacenter)
end