Sha256: 05ed6081c3e2805d1ed42840aa301cd81889091858290f50dbe1a421b659c625

Contents?: true

Size: 1.52 KB

Versions: 42

Compression:

Stored size: 1.52 KB

Contents

module Fog
  module Compute
    class AWS
      class Real

        require 'fog/aws/parsers/compute/describe_account_attributes'

        # Describe account attributes
        #
        # ==== Parameters
        # * filters<~Hash> - List of filters to limit results with
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'requestId'<~String> = Id of request
        #     * 'accountAttributeSet'<~Array>:
        #       * 'attributeName'<~String> - supported-platforms
        #       * 'attributeValueSet'<~Array>:
        #         * 'attributeValue'<~String> - Value of attribute
        #
        # {Amazon API Reference}[http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeAccountAttributes.html]

        def describe_account_attributes(filters = {})
          params = Fog::AWS.indexed_filters(filters)
          request({
            'Action'    => 'DescribeAccountAttributes',
            :idempotent => true,
            :parser     => Fog::Parsers::Compute::AWS::DescribeAccountAttributes.new
          }.merge!(params))
        end
      end

      class Mock
        def describe_account_attributes(filters = {})
          account_attributes = self.data[:account_attributes]

          Excon::Response.new(
            :status => 200,
            :body => {
              'requestId'           => Fog::AWS::Mock.request_id,
              'accountAttributeSet' => account_attributes
            }
          )
        end
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 2 rubygems

Version Path
fog-1.22.0 lib/fog/aws/requests/compute/describe_account_attributes.rb
fog-1.21.0 lib/fog/aws/requests/compute/describe_account_attributes.rb
fog-maestrodev-1.20.0.20140305101839 lib/fog/aws/requests/compute/describe_account_attributes.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/aws/requests/compute/describe_account_attributes.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/aws/requests/compute/describe_account_attributes.rb
fog-1.20.0 lib/fog/aws/requests/compute/describe_account_attributes.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/aws/requests/compute/describe_account_attributes.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/aws/requests/compute/describe_account_attributes.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/aws/requests/compute/describe_account_attributes.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/aws/requests/compute/describe_account_attributes.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/aws/requests/compute/describe_account_attributes.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/aws/requests/compute/describe_account_attributes.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/aws/requests/compute/describe_account_attributes.rb
fog-1.19.0 lib/fog/aws/requests/compute/describe_account_attributes.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/aws/requests/compute/describe_account_attributes.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/aws/requests/compute/describe_account_attributes.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/aws/requests/compute/describe_account_attributes.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/aws/requests/compute/describe_account_attributes.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/aws/requests/compute/describe_account_attributes.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/aws/requests/compute/describe_account_attributes.rb