Sha256: 58960342c0bf2bb345defaf54c4ad3b2a46651e1bc2acb073f09cd28225ff3ab

Contents?: true

Size: 855 Bytes

Versions: 41

Compression:

Stored size: 855 Bytes

Contents

module Fog
  module Compute
    class VcloudDirector
      class Real
        extend Fog::Deprecation
        deprecate :get_vm_cpu, :get_cpu_rasd_item

        # Retrieve the RASD item that specifies CPU properties of a VM.
        #
        # @param [String] id Object identifier of the VM.
        # @return [Excon::Response]
        #   * body<~Hash>:
        #
        # @see http://pubs.vmware.com/vcd-51/topic/com.vmware.vcloud.api.reference.doc_51/doc/operations/GET-CpuRasdItem.html
        # @since vCloud API version 0.9
        def get_cpu_rasd_item(id)
          request(
            :expects    => 200,
            :idempotent => true,
            :method     => 'GET',
            :parser     => Fog::ToHashDocument.new,
            :path       => "vApp/#{id}/virtualHardwareSection/cpu"
          )
        end
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 3 rubygems

Version Path
fog-1.16.0 lib/fog/vcloud_director/requests/compute/get_cpu_rasd_item.rb