Sha256: 554b9dbdd7feb84ef0bc067ca0079066fabdf605086d90cfd58f321be3e66ded

Contents?: true

Size: 1.24 KB

Versions: 1

Compression:

Stored size: 1.24 KB

Contents

module Fog
  module AWS
    class Elasticache
      class Real

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

        # Returns a list of Cache Cluster descriptions
        #
        # === Parameters (optional)
        # * id - The ID of an existing cache cluster
        # * options <~Hash> (optional):
        # *  :marker <~String> - marker provided in the previous request
        # *  :max_records <~Integer> - the maximum number of records to include
        # *  :show_node_info <~Boolean> - whether to show node info
        # === Returns
        # * response <~Excon::Response>:
        #   * body <~Hash>
        def describe_cache_clusters(id = nil, options = {})
          request({
            'Action'            => 'DescribeCacheClusters',
            'CacheClusterId'    => id,
            'Marker'            => options[:marker],
            'MaxRecords'        => options[:max_records],
            'ShowCacheNodeInfo' => options[:show_node_info],
            :parser => Fog::Parsers::AWS::Elasticache::DescribeCacheClusters.new
          })
        end

      end

      class Mock
        def describe_cache_clusters(id = 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_clusters.rb