class 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 11 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 21 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