Sha256: c036c34161b1f9c69949d9bdc439a171ab9bb6aef4a0cf7e837adb92f120bcc8

Contents?: true

Size: 406 Bytes

Versions: 7

Compression:

Stored size: 406 Bytes

Contents

module Fog
  module Compute
    class Vsphere
      class Real
        def list_vm_customvalues(vm_id)
          get_vm_ref(vm_id).summary.customValue.map do |customvalue|
            {
              key: customvalue.key.to_i,
              value: customvalue.value
            }
          end
        end
      end
      class Mock
        def list_vm_customfields(vm_id); end
      end
    end
  end
end

Version data entries

7 entries across 5 versions & 2 rubygems

Version Path
fog-vsphere-2.5.0 lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
fog-vsphere-2.4.0 lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
fog-vsphere-2.3.0 lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-vsphere-2.2.0/lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-vsphere-2.2.0/lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-vsphere-2.2.0/lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
fog-vsphere-2.2.0 lib/fog/vsphere/requests/compute/list_vm_customvalues.rb