1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/vcloudng/requests/compute/get_organization.rb
2013-06-19 17:06:44 +02:00

40 lines
1.1 KiB
Ruby

module Fog
module Compute
class Vcloudng
class Real
require 'fog/vcloudng/parsers/compute/get_organization'
# Get details of an organization
#
# ==== Parameters
# * organization_id<~Integer> - Id of organization to lookup
#
# ==== Returns
# * response<~Excon::Response>:
# * body<~Hash>:
# * 'description'<~String> - Description of organization
# * 'links'<~Array> - An array of links to entities in the organization
# * 'href'<~String> - location of link
# * 'name'<~String> - name of link
# * 'rel'<~String> - action to perform
# * 'type'<~String> - type of link
# * 'name'<~String> - Name of organization
def get_organization(organization_id)
request({
:expects => 200,
:headers => { 'Accept' => 'application/*+xml;version=1.5' },
:method => 'GET',
:parser => Fog::ToHashDocument.new,
:path => "org/#{organization_id}"
})
end
end
end
end
end