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_organizations.rb
2013-06-18 16:59:42 +02:00

32 lines
846 B
Ruby

module Fog
module Compute
class Vcloudng
class Real
require 'fog/vcloudng/parsers/compute/get_organizations'
# Get list of organizations
#
# ==== Returns
# * response<~Excon::Response>:
# * body<~Array>:
# * 'description'<~String> - Description of organization
# * 'links'<~Array> - An array of links to entities in the organization
# * 'name'<~String> - Name of organization
def get_organizations
request({
:expects => 200,
:headers => { 'Accept' => 'application/*+xml;version=1.5' },
:method => 'GET',
:parser => Fog::Parsers::Compute::Vcloudng::GetOrganizations.new,
:path => "org"
})
end
end
end
end
end