Methods

Class/Module Index [+]

Quicksearch

Fog::Compute::Vsphere::Customvalues

Attributes

vm[RW]

Public Instance Methods

all(filters = {}) click to toggle source
# File lib/fog/vsphere/models/compute/customvalues.rb, line 14
def all(filters = {})
  requires :vm
  case vm
    when Fog::Compute::Vsphere::Server
      load service.list_vm_customvalues(vm.id)
    else
    raise 'customvalues should have vm'
  end
end
get(key) click to toggle source
# File lib/fog/vsphere/models/compute/customvalues.rb, line 24
def get(key)
  requires :vm
  case vm
    when Fog::Compute::Vsphere::Server
      load service.list_vm_customvalues(vm.id)
    else
    raise 'customvalues should have vm'
  end.find { | cv | cv.key == key }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.