Sha256: 53eea338b4fb57db69edb0819c51af6a22167941352808aa37e9fc09784b98fa

Contents?: true

Size: 406 Bytes

Versions: 23

Compression:

Stored size: 406 Bytes

Contents

module Fog
  module Vsphere
    class Compute
      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

23 entries across 23 versions & 1 rubygems

Version Path
fog-vsphere-3.7.0 lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
fog-vsphere-3.6.8 lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
fog-vsphere-3.6.7 lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
fog-vsphere-3.6.6 lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
fog-vsphere-3.6.5 lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
fog-vsphere-3.6.4 lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
fog-vsphere-3.6.3 lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
fog-vsphere-3.6.2 lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
fog-vsphere-3.5.3 lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
fog-vsphere-3.6.0 lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
fog-vsphere-3.5.2 lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
fog-vsphere-3.5.1 lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
fog-vsphere-3.5.0 lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
fog-vsphere-3.4.0 lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
fog-vsphere-3.3.1 lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
fog-vsphere-3.3.0 lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
fog-vsphere-3.2.5 lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
fog-vsphere-3.2.2 lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
fog-vsphere-3.2.1 lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
fog-vsphere-3.2.0 lib/fog/vsphere/requests/compute/list_vm_customvalues.rb