1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/aws/requests/auto_scaling/delete_scheduled_action.rb
Paul Thornthwaite 2e0b7e545a Standardise empty lines throughout codebase
Done with `rubocop --auto-correct --only EmptyLineBetweenDefs,EmptyLines,EmptyLinesAroundBody`
2014-05-26 14:20:02 +01:00

42 lines
1.4 KiB
Ruby

module Fog
module AWS
class AutoScaling
class Real
require 'fog/aws/parsers/auto_scaling/basic'
# Deletes a scheduled action previously created using the
# put_scheduled_update_group_action.
#
# ==== Parameters
# * auto_scaling_group_name<~String> - The name of the Auto Scaling
# group.
# * scheduled_action_name<~String> - The name of the action 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_DeleteScheduledAction.html
#
def delete_scheduled_action(auto_scaling_group_name, scheduled_action_name)
request({
'Action' => 'DeleteScheduledAction',
'AutoScalingGroupName' => auto_scaling_group_name,
'ScheduledActionName' => scheduled_action_name,
:parser => Fog::Parsers::AWS::AutoScaling::Basic.new
})
end
end
class Mock
def delete_scheduled_action(auto_scaling_group_name, scheduled_action_name)
Fog::Mock.not_implemented
end
end
end
end
end