class Fog::Vsphere::Compute::Datacenter

Public Instance Methods

clusters(filters = {}) click to toggle source
# File lib/fog/vsphere/models/compute/datacenter.rb, line 10
def clusters(filters = {})
  service.clusters({ datacenter: path.join('/') }.merge(filters))
end
customfields(filters = {}) click to toggle source
# File lib/fog/vsphere/models/compute/datacenter.rb, line 38
def customfields(filters = {})
  service.customfields({ datacenter: path.join('/') }.merge(filters))
end
datastores(filters = {}) click to toggle source
# File lib/fog/vsphere/models/compute/datacenter.rb, line 18
def datastores(filters = {})
  service.datastores({ datacenter: path.join('/') }.merge(filters))
end
networks(filters = {}) click to toggle source
# File lib/fog/vsphere/models/compute/datacenter.rb, line 14
def networks(filters = {})
  service.networks({ datacenter: path.join('/') }.merge(filters))
end
servertypes(filters = {}) click to toggle source
# File lib/fog/vsphere/models/compute/datacenter.rb, line 34
def servertypes(filters = {})
  service.servertypes({ datacenter: name }.merge(filters))
end
storage_pods(filters = {}) click to toggle source
# File lib/fog/vsphere/models/compute/datacenter.rb, line 22
def storage_pods(filters = {})
  service.storage_pods({ datacenter: path.join('/') }.merge(filters))
end
to_s() click to toggle source
# File lib/fog/vsphere/models/compute/datacenter.rb, line 42
def to_s
  name
end
virtual_machines(filters = {}) click to toggle source
# File lib/fog/vsphere/models/compute/datacenter.rb, line 30
def virtual_machines(filters = {})
  service.servers({ datacenter: path.join('/') }.merge(filters))
end
vm_folders(filters = {}) click to toggle source
# File lib/fog/vsphere/models/compute/datacenter.rb, line 26
def vm_folders(filters = {})
  service.folders({ datacenter: path.join('/'), type: :vm }.merge(filters))
end