Sha256: 2a45ab216b20988b45036e47b89d2922362e8ed061fe77456d73ff798cbdea72

Contents?: true

Size: 1.15 KB

Versions: 99

Compression:

Stored size: 1.15 KB

Contents

module Fog
  module AWS
    class Elasticache
      class Real

        require 'fog/aws/parsers/elasticache/single_parameter_group'

        # creates a cache parameter group
        #
        # === Parameters
        # * name <~String> - The name for the Cache Parameter Group
        # === Optional Parameters
        # * description <~String> - The description for the Cache Parameter Group
        # * family <~String> - The description for the Cache Parameter Group
        # === Returns
        # * response <~Excon::Response>:
        #   * body <~Hash>
        def create_cache_parameter_group(name, description = name, family = 'memcached1.4')
          request({
            'Action' => 'CreateCacheParameterGroup',
            'CacheParameterGroupName' => name,
            'Description' => description,
            'CacheParameterGroupFamily' => family,
            :parser => Fog::Parsers::AWS::Elasticache::SingleParameterGroup.new
          })
        end
      end

      class Mock
        def create_cache_parameter_group(name, description = name,
          family = 'memcached1.4')
          Fog::Mock.not_implemented
        end
      end
    end
  end
end

Version data entries

99 entries across 99 versions & 17 rubygems

Version Path
fog-maestrodev-1.20.0.20140305101839 lib/fog/aws/requests/elasticache/create_cache_parameter_group.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/aws/requests/elasticache/create_cache_parameter_group.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/aws/requests/elasticache/create_cache_parameter_group.rb
fog-1.20.0 lib/fog/aws/requests/elasticache/create_cache_parameter_group.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/aws/requests/elasticache/create_cache_parameter_group.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/aws/requests/elasticache/create_cache_parameter_group.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/aws/requests/elasticache/create_cache_parameter_group.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/aws/requests/elasticache/create_cache_parameter_group.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/aws/requests/elasticache/create_cache_parameter_group.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/aws/requests/elasticache/create_cache_parameter_group.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/aws/requests/elasticache/create_cache_parameter_group.rb
fog-1.19.0 lib/fog/aws/requests/elasticache/create_cache_parameter_group.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/aws/requests/elasticache/create_cache_parameter_group.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/aws/requests/elasticache/create_cache_parameter_group.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/aws/requests/elasticache/create_cache_parameter_group.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/aws/requests/elasticache/create_cache_parameter_group.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/aws/requests/elasticache/create_cache_parameter_group.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/aws/requests/elasticache/create_cache_parameter_group.rb
fog-maestrodev-1.18.0.20131209090811 lib/fog/aws/requests/elasticache/create_cache_parameter_group.rb
fog-maestrodev-1.18.0.20131206115947 lib/fog/aws/requests/elasticache/create_cache_parameter_group.rb