]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/aviator/feature/aviator/openstack/compute/v2/public/get_network_details.rb
add aimonb/aviator to 3rdparty
[dsa-puppet.git] / 3rdparty / modules / aviator / feature / aviator / openstack / compute / v2 / public / get_network_details.rb
diff --git a/3rdparty/modules/aviator/feature/aviator/openstack/compute/v2/public/get_network_details.rb b/3rdparty/modules/aviator/feature/aviator/openstack/compute/v2/public/get_network_details.rb
new file mode 100644 (file)
index 0000000..8d4192b
--- /dev/null
@@ -0,0 +1,30 @@
+module Aviator
+
+  define_request :get_network_details, :inherit => [:openstack, :common, :v2, :public, :base] do
+
+    meta :service, :compute
+
+    link 'documentation',
+         'http://api.openstack.org/api-ref-compute.html#ext-os-networks'
+
+
+    param :id, :required => true
+
+
+    def headers
+      super
+    end
+
+
+    def http_method
+      :get
+    end
+
+
+    def url
+      "#{ base_url }/os-networks/#{ params[:id] }"
+    end
+
+  end
+
+end