class Fog::Vsphere::Compute::Customvalues

Attributes

vm[RW]

Public Instance Methods

all(_filters = {}) click to toggle source
# File lib/fog/vsphere/models/compute/customvalues.rb, line 11
def all(_filters = {})
  requires :vm
  case vm
  when Fog::Vsphere::Compute::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 21
def get(key)
  requires :vm
  case vm
  when Fog::Vsphere::Compute::Server
    load service.list_vm_customvalues(vm.id)
  else
    raise 'customvalues should have vm'
  end.find { |cv| cv.key == key }
end