]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/aviator/lib/puppet/feature/aviator/openstack/compute/requests/v2/public/allocate_floating_ip.rb
add aimonb/aviator to 3rdparty
[dsa-puppet.git] / 3rdparty / modules / aviator / lib / puppet / feature / aviator / openstack / compute / requests / v2 / public / allocate_floating_ip.rb
1 module Aviator
2
3   define_request :allocate_floating_ip, :inherit => [:openstack, :common, :v2, :public, :base] do
4
5     meta :service, :compute
6
7     link 'documentation',
8          'http://docs.openstack.org/api/openstack-compute/2/content/POST_os-floating-ips-v2_AllocateFloatingIP__v2__tenant_id__os-floating-ips_ext-os-floating-ips.html'
9
10     param :pool, :required => false
11
12     def body
13       {
14         :pool => params[:pool]
15       }
16     end
17
18
19     def headers
20       super
21     end
22
23
24     def http_method
25       :post
26     end
27
28
29     def url
30       "#{ base_url }/os-floating-ips"
31     end
32
33   end
34
35 end