mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws|auto_scaling] implement 2010-08-01 API
This commit is contained in:
parent
7402e8b04b
commit
9afb8c8460
56 changed files with 3648 additions and 0 deletions
47
lib/fog/aws/requests/auto_scaling/delete_policy.rb
Normal file
47
lib/fog/aws/requests/auto_scaling/delete_policy.rb
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
module Fog
|
||||
module AWS
|
||||
class AutoScaling
|
||||
|
||||
class Real
|
||||
|
||||
require 'fog/aws/parsers/auto_scaling/basic'
|
||||
|
||||
# Deletes a policy created by put_scaling_policy
|
||||
#
|
||||
# ==== Parameters
|
||||
# * auto_scaling_group_name<~String> - The name of the Auto Scaling
|
||||
# group.
|
||||
# * policy_name<~String> - The name or PolicyARN of the policy you want
|
||||
# to delete.
|
||||
#
|
||||
# ==== Returns
|
||||
# * response<~Excon::Response>:
|
||||
# * body<~Hash>:
|
||||
# * 'ResponseMetadata'<~Hash>:
|
||||
# * 'RequestId'<~String> - Id of request
|
||||
#
|
||||
# ==== See Also
|
||||
# http://docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_DeletePolicy.html
|
||||
#
|
||||
def delete_policy(auto_scaling_group_name, policy_name)
|
||||
request({
|
||||
'Action' => 'DeletePolicy',
|
||||
'AutoScalingGroupName' => auto_scaling_group_name,
|
||||
'PolicyName' => policy_name,
|
||||
:parser => Fog::Parsers::AWS::AutoScaling::Basic.new
|
||||
}.merge!(options))
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
class Mock
|
||||
|
||||
def delete_policy(auto_scaling_group_name, policy_name)
|
||||
Fog::Mock.not_implemented
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue