]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/aviator/lib/puppet/feature/aviator/openstack/identity/requests/v2/public/list_tenants.rb
add aimonb/aviator to 3rdparty
[dsa-puppet.git] / 3rdparty / modules / aviator / lib / puppet / feature / aviator / openstack / identity / requests / v2 / public / list_tenants.rb
1 module Aviator
2   
3   define_request :list_tenants, :inherit => [:openstack, :common, :v2, :public, :base] do
4
5     meta :service, :identity
6   
7     link 'documentation',
8          'http://docs.openstack.org/api/openstack-identity-service/2.0/content/GET_listTenants_v2.0_tokens_tenants_.html'
9
10     link 'documentation bug',
11          'https://bugs.launchpad.net/keystone/+bug/1218601'
12
13
14     param :marker, :required => false
15     param :limit,  :required => false
16
17
18     def url
19       str = "#{ base_url }/tenants"
20       str += params_to_querystring(optional_params + required_params)
21     end
22
23   
24     def headers
25       super
26     end
27   
28   
29     def http_method
30       :get
31     end
32
33   end
34   
35 end