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 9 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 19 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