]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/aviator/feature/aviator/openstack/identity/v2/admin/get_tenant_by_id.rb
try again, with puppetforge modules, correctly included now
[dsa-puppet.git] / 3rdparty / modules / aviator / feature / aviator / openstack / identity / v2 / admin / get_tenant_by_id.rb
diff --git a/3rdparty/modules/aviator/feature/aviator/openstack/identity/v2/admin/get_tenant_by_id.rb b/3rdparty/modules/aviator/feature/aviator/openstack/identity/v2/admin/get_tenant_by_id.rb
new file mode 100644 (file)
index 0000000..fe2dcc9
--- /dev/null
@@ -0,0 +1,30 @@
+module Aviator
+
+  define_request :get_tenant_by_id, :inherit => [:openstack, :common, :v2, :admin, :base] do
+
+    meta :service, :identity
+
+    link 'documentation',
+      'http://docs.openstack.org/api/openstack-identity-service/2.0/content/GET_listUsers_v2.0_users_.html'
+
+
+    param :id, :required => true
+
+
+    def headers
+      super
+    end
+
+
+    def http_method
+      :get
+    end
+
+
+    def url
+      "#{ base_url }/tenants/#{ params[:id] }"
+    end
+
+  end
+
+end