X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=blobdiff_plain;f=3rdparty%2Fmodules%2Faviator%2Flib%2Fpuppet%2Ffeature%2Faviator%2Fopenstack%2Fcompute%2Frequests%2Fv2%2Fpublic%2Fadd_floating_ip.rb;fp=3rdparty%2Fmodules%2Faviator%2Flib%2Fpuppet%2Ffeature%2Faviator%2Fopenstack%2Fcompute%2Frequests%2Fv2%2Fpublic%2Fadd_floating_ip.rb;h=0000000000000000000000000000000000000000;hp=56ff624579b2e04ced6d5b56de7ed49240a2900c;hb=706621d7a3318aef2d3a0b3665d08a98fdd9a458;hpb=6eb028a997c0756fdd3d27a16297180db269631b diff --git a/3rdparty/modules/aviator/lib/puppet/feature/aviator/openstack/compute/requests/v2/public/add_floating_ip.rb b/3rdparty/modules/aviator/lib/puppet/feature/aviator/openstack/compute/requests/v2/public/add_floating_ip.rb deleted file mode 100644 index 56ff6245..00000000 --- a/3rdparty/modules/aviator/lib/puppet/feature/aviator/openstack/compute/requests/v2/public/add_floating_ip.rb +++ /dev/null @@ -1,38 +0,0 @@ -module Aviator - - define_request :add_floating_ip, :inherit => [:openstack, :common, :v2, :public, :base] do - - meta :service, :compute - - link 'documentation', - 'http://docs.openstack.org/api/openstack-compute/2/content/POST_os-floating-ips-v2_AddFloatingIP__v2__tenant_id__servers__server_id__action_ext-os-floating-ips.html#POST_os-floating-ips-v2_AddFloatingIP__v2__tenant_id__servers__server_id__action_ext-os-floating-ips-Request' - - param :server_id, :required => true - param :address, :required => true - - def body - { - :addFloatingIp => { - :address => params[:address] - } - } - end - - - def headers - super - end - - - def http_method - :post - end - - - def url - "#{ base_url }/servers/#{ params[:server_id] }/action" - end - - end - -end