Sha256: 0ec9e77a20e853dc47b68c37e9c75da5c3de61a6039bdadb8372875f0b11c921

Contents?: true

Size: 1.71 KB

Versions: 98

Compression:

Stored size: 1.71 KB

Contents

module Fog
  module AWS
    class AutoScaling
      class Real
        require 'fog/aws/parsers/auto_scaling/describe_auto_scaling_notification_types'

        # Returns a list of all notification types that are supported by Auto
        # Scaling.
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'ResponseMetadata'<~Hash>:
        #       * 'RequestId'<~String> - Id of request
        #     * 'DescribeAutoScalingNotificationTypesResult'<~Hash>:
        #       * 'AutoScalingNotificationTypes'<~Array>:
        #         * 'notificationType'<~String> - A notification type.
        #
        # ==== See Also
        # http://docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_DescribeAutoScalingNotificationTypes.html
        #
        def describe_auto_scaling_notification_types()
          request({
            'Action'    => 'DescribeAutoScalingNotificationTypes',
            :idempotent => true,
            :parser     => Fog::Parsers::AWS::AutoScaling::DescribeAutoScalingNotificationTypes.new
          })
        end
      end

      class Mock
        def describe_auto_scaling_notification_types()
          results = {
            'AutoScalingNotificationTypes' => [],
          }
          self.data[:notification_types].each do |notification_type|
            results['AutoScalingNotificationTypes'] << notification_type
          end
          response = Excon::Response.new
          response.status = 200
          response.body = {
            'DescribeAutoScalingNotificationTypesResult' => results,
            'ResponseMetadata' => { 'RequestId' => Fog::AWS::Mock.request_id }
          }
          response
        end
      end
    end
  end
end

Version data entries

98 entries across 96 versions & 6 rubygems

Version Path
fog-aws-3.30.0 lib/fog/aws/requests/auto_scaling/describe_auto_scaling_notification_types.rb
fog-aws-3.29.0 lib/fog/aws/requests/auto_scaling/describe_auto_scaling_notification_types.rb
fog-aws-3.28.0 lib/fog/aws/requests/auto_scaling/describe_auto_scaling_notification_types.rb
fog-aws-3.27.0 lib/fog/aws/requests/auto_scaling/describe_auto_scaling_notification_types.rb
fog-aws-3.26.0 lib/fog/aws/requests/auto_scaling/describe_auto_scaling_notification_types.rb
fog-aws-3.25.0 lib/fog/aws/requests/auto_scaling/describe_auto_scaling_notification_types.rb
fog-aws-3.24.0 lib/fog/aws/requests/auto_scaling/describe_auto_scaling_notification_types.rb
fog-aws-3.23.0 lib/fog/aws/requests/auto_scaling/describe_auto_scaling_notification_types.rb
fog-aws-3.22.0 lib/fog/aws/requests/auto_scaling/describe_auto_scaling_notification_types.rb
fog-aws-3.21.1 lib/fog/aws/requests/auto_scaling/describe_auto_scaling_notification_types.rb
fog-aws-3.21.0 lib/fog/aws/requests/auto_scaling/describe_auto_scaling_notification_types.rb
fog-aws-3.20.0 lib/fog/aws/requests/auto_scaling/describe_auto_scaling_notification_types.rb
fog-aws-3.19.0 lib/fog/aws/requests/auto_scaling/describe_auto_scaling_notification_types.rb
fog-aws-3.18.0 lib/fog/aws/requests/auto_scaling/describe_auto_scaling_notification_types.rb
fog-aws-3.17.0 lib/fog/aws/requests/auto_scaling/describe_auto_scaling_notification_types.rb
fog-aws-3.16.0 lib/fog/aws/requests/auto_scaling/describe_auto_scaling_notification_types.rb
fog-aws-3.15.0 lib/fog/aws/requests/auto_scaling/describe_auto_scaling_notification_types.rb
fog-aws-3.14.0 lib/fog/aws/requests/auto_scaling/describe_auto_scaling_notification_types.rb
fog-aws-3.13.0 lib/fog/aws/requests/auto_scaling/describe_auto_scaling_notification_types.rb
fog-aws-3.12.0 lib/fog/aws/requests/auto_scaling/describe_auto_scaling_notification_types.rb