Sha256: 16386a9aec987b85d16654ddc801e345b77175455c03410f8a4504f1eca79f2e

Contents?: true

Size: 1.13 KB

Versions: 1

Compression:

Stored size: 1.13 KB

Contents

module Fog
  module AWS
    class Elasticache
      class Real

        require 'rackspace-fog/aws/parsers/elasticache/describe_parameter_groups'

        # Returns a list of CacheParameterGroup descriptions
        #
        # === Parameters (optional)
        # * name <~String> - The name of an existing cache parameter group
        # * options <~Hash> (optional):
        # *  :marker <~String> - marker provided in the previous request
        # *  :max_records <~Integer> - the maximum number of records to include
        def describe_cache_parameter_groups(name = nil, options = {})
          request({
            'Action'                  => 'DescribeCacheParameterGroups',
            'CacheParameterGroupName' => name,
            'Marker'                  => options[:marker],
            'MaxRecords'              => options[:max_records],
            :parser => Fog::Parsers::AWS::Elasticache::DescribeParameterGroups.new
          }.merge(options))
        end

      end

      class Mock
        def describe_cache_parameter_groups(name = nil, options = {})
          Fog::Mock.not_implemented
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rackspace-fog-1.4.2 lib/rackspace-fog/aws/requests/elasticache/describe_cache_parameter_groups.rb