Sha256: d1e87d59c983ad4ae920f735dedb86f3e4497050306bcda62cf6d88e1d557c28

Contents?: true

Size: 439 Bytes

Versions: 23

Compression:

Stored size: 439 Bytes

Contents

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

23 entries across 23 versions & 1 rubygems

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