Sha256: 2e5ee369abaf5c0ee90a96cecf33fe769ee9cd8e2a61c85e4cddcd731fdcca67

Contents?: true

Size: 439 Bytes

Versions: 7

Compression:

Stored size: 439 Bytes

Contents

module Fog
  module Compute
    class Vsphere
      class Real
        def list_customfields
          connection.serviceContent.customFieldsManager.field.map do |customfield|
            {
              key: customfield.key.to_i,
              name: customfield.name,
              type: customfield.type
            }
          end
        end
      end
      class Mock
        def list_vm_customfields; 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_customfields.rb
fog-vsphere-2.4.0 lib/fog/vsphere/requests/compute/list_customfields.rb
fog-vsphere-2.3.0 lib/fog/vsphere/requests/compute/list_customfields.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-vsphere-2.2.0/lib/fog/vsphere/requests/compute/list_customfields.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-vsphere-2.2.0/lib/fog/vsphere/requests/compute/list_customfields.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-vsphere-2.2.0/lib/fog/vsphere/requests/compute/list_customfields.rb
fog-vsphere-2.2.0 lib/fog/vsphere/requests/compute/list_customfields.rb