]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/aviator/feature/aviator/openstack/identity/v2/admin/list_tenants.rb
try again, with puppetforge modules, correctly included now
[dsa-puppet.git] / 3rdparty / modules / aviator / feature / aviator / openstack / identity / v2 / admin / list_tenants.rb
diff --git a/3rdparty/modules/aviator/feature/aviator/openstack/identity/v2/admin/list_tenants.rb b/3rdparty/modules/aviator/feature/aviator/openstack/identity/v2/admin/list_tenants.rb
new file mode 100644 (file)
index 0000000..48d2930
--- /dev/null
@@ -0,0 +1,35 @@
+module Aviator
+
+  define_request :list_tenants, :inherit => [:openstack, :common, :v2, :admin, :base] do
+
+    meta :service, :identity
+
+    link 'documentation',
+         'http://docs.openstack.org/api/openstack-identity-service/2.0/content/GET_listTenants_v2.0_tenants_Tenant_Operations.html'
+
+    link 'documentation bug',
+         'https://bugs.launchpad.net/keystone/+bug/1218601'
+
+
+    param :marker, :required => false
+    param :limit,  :required => false
+
+
+    def headers
+      super
+    end
+
+
+    def http_method
+      :get
+    end
+
+
+    def url
+      str  = "#{ base_url }/tenants"
+      str += params_to_querystring(optional_params + required_params)
+    end
+
+  end
+
+end
\ No newline at end of file