Sha256: 155813cc1634ce3de75202c168c4a62091aaa6ec6e14b04ecde589b399711ec0
Contents?: true
Size: 1.53 KB
Versions: 35
Compression:
Stored size: 1.53 KB
Contents
module Fog module AWS class AutoScaling class Real require 'fog/aws/parsers/auto_scaling/describe_adjustment_types' # Returns policy adjustment types for use in the put_scaling_policy # action. # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'ResponseMetadata'<~Hash>: # * 'RequestId'<~String> - Id of request # * 'DescribeAdjustmentTypesResponse'<~Hash>: # * 'AdjustmentTypes'<~Array>: # * 'AdjustmentType'<~String> - A policy adjustment type. # # ==== See Also # http://docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_DescribeAdjustmentTypes.html # def describe_adjustment_types() request({ 'Action' => 'DescribeAdjustmentTypes', :parser => Fog::Parsers::AWS::AutoScaling::DescribeAdjustmentTypes.new }) end end class Mock def describe_adjustment_types() results = { 'AdjustmentTypes' => [] } data[:adjustment_types].each do |adjustment_type| results['AdjustmentTypes'] << { 'AdjustmentType' => adjustment_type } end response = Excon::Response.new response.status = 200 response.body = { 'DescribeAdjustmentTypesResult' => results, 'ResponseMetadata' => { 'RequestId' => Fog::AWS::Mock.request_id } } response end end end end end
Version data entries
35 entries across 35 versions & 9 rubygems