Sha256: e183880051fecf02f7e5f1a7f0f3ee11e1772a047007739e884b75a72d969cac

Contents?: true

Size: 487 Bytes

Versions: 14

Compression:

Stored size: 487 Bytes

Contents

module Vcloud
  module Core
    module ComputeMetadata

        # Returns the metadata for a compute resource
        #
        # @param id [String] The ID of the vApp or VM to retrieve metadata for
        # @return [Hash] Metadata keys/values
        def get_metadata id
          vcloud_compute_metadata =  Vcloud::Core::Fog::ServiceInterface.new.get_vapp_metadata(id)
          MetadataHelper.extract_metadata(vcloud_compute_metadata[:MetadataEntry])
        end

    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
vcloud-core-2.2.0 lib/vcloud/core/compute_metadata.rb
vcloud-core-2.1.1 lib/vcloud/core/compute_metadata.rb
vcloud-core-2.1.0 lib/vcloud/core/compute_metadata.rb
vcloud-core-2.0.1 lib/vcloud/core/compute_metadata.rb
vcloud-core-2.0.0 lib/vcloud/core/compute_metadata.rb
vcloud-core-1.2.0 lib/vcloud/core/compute_metadata.rb
vcloud-core-1.1.0 lib/vcloud/core/compute_metadata.rb
vcloud-core-1.0.2 lib/vcloud/core/compute_metadata.rb
vcloud-core-1.0.1 lib/vcloud/core/compute_metadata.rb
vcloud-core-1.0.0 lib/vcloud/core/compute_metadata.rb
vcloud-core-0.16.1 lib/vcloud/core/compute_metadata.rb
vcloud-core-0.16.0 lib/vcloud/core/compute_metadata.rb
vcloud-core-0.15.0 lib/vcloud/core/compute_metadata.rb
vcloud-core-0.14.0 lib/vcloud/core/compute_metadata.rb