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

Version Path
fog-parser-fix-1.6.1 lib/fog/aws/requests/auto_scaling/describe_adjustment_types.rb
fog-test-again-1.6.0 lib/fog/aws/requests/auto_scaling/describe_adjustment_types.rb
fog-parser-fix-1.6.0 lib/fog/aws/requests/auto_scaling/describe_adjustment_types.rb
fog-1.6.0 lib/fog/aws/requests/auto_scaling/describe_adjustment_types.rb
fog-1.5.0 lib/fog/aws/requests/auto_scaling/describe_adjustment_types.rb
fog-1.4.0 lib/fog/aws/requests/auto_scaling/describe_adjustment_types.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/auto_scaling/describe_adjustment_types.rb
michiels-fog-1.3.1 lib/fog/aws/requests/auto_scaling/describe_adjustment_types.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/aws/requests/auto_scaling/describe_adjustment_types.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/auto_scaling/describe_adjustment_types.rb
fog-1.3.1 lib/fog/aws/requests/auto_scaling/describe_adjustment_types.rb
fog-1.3.0 lib/fog/aws/requests/auto_scaling/describe_adjustment_types.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/auto_scaling/describe_adjustment_types.rb
fog-1.2.0 lib/fog/aws/requests/auto_scaling/describe_adjustment_types.rb
ktheory-fog-1.1.2 lib/fog/aws/requests/auto_scaling/describe_adjustment_types.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/auto_scaling/describe_adjustment_types.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/auto_scaling/describe_adjustment_types.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/auto_scaling/describe_adjustment_types.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/auto_scaling/describe_adjustment_types.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/auto_scaling/describe_adjustment_types.rb