Sha256: 0f38f2bdeb5f57be18a2de09e12ebd45b3d969f80f08e8dc66ca4376e7bbbd66

Contents?: true

Size: 522 Bytes

Versions: 45

Compression:

Stored size: 522 Bytes

Contents

module Fog
  module Compute
    class Vsphere
      class Customfields < Fog::Collection
        autoload :Customfield, File.expand_path('../customfield', __FILE__)

        model Fog::Compute::Vsphere::Customfield

        attr_accessor :vm

        def all(filters = {})
          load service.list_customfields()
        end

        def get(key)
          load(service.list_customfields()).find do | cv |
            cv.key == ((key.is_a? String) ? key.to_i : key)
          end
        end
     end
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
fog-vsphere-1.7.0.1 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-2.1.1 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-2.1.0 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-2.0.1 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-2.0.0 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-1.13.1 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-1.13.0 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-1.12.0 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-1.11.3 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-1.11.2 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-1.11.1 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-1.11.0 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-1.10.0 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-1.9.2 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-1.9.1 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-1.9.0 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-1.8.0 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-1.7.1 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-1.7.0 lib/fog/vsphere/models/compute/customfields.rb
fog-vsphere-1.6.0 lib/fog/vsphere/models/compute/customfields.rb