mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00

This renames most request methods in line with page names in the vCloud API documentation. Previous method names remain as deprecations.
26 lines
656 B
Ruby
26 lines
656 B
Ruby
module Fog
|
|
module Compute
|
|
class VcloudDirector
|
|
class Real
|
|
require 'fog/vcloud_director/parsers/compute/vm'
|
|
|
|
# Retrieve a vApp or VM.
|
|
#
|
|
# @note This should probably be deprecated.
|
|
# @param [String] vm_id
|
|
# @return [Excon::Response]
|
|
# * body<~Hash>:
|
|
# @see #get_vapp
|
|
def get_vm(vm_id)
|
|
request(
|
|
:expects => 200,
|
|
:idempotent => true,
|
|
:method => 'GET',
|
|
:parser => Fog::Parsers::Compute::VcloudDirector::Vm.new,
|
|
:path => "vApp/#{vm_id}"
|
|
)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|