Sha256: ee6cf06a802e6f44c7c0b71e2b917cf6786d6ac8eb75647809fef23de7402d49

Contents?: true

Size: 1.3 KB

Versions: 84

Compression:

Stored size: 1.3 KB

Contents

module Fog
  module AWS
    class RDS
      class Real

        require 'fog/aws/parsers/rds/delete_db_parameter_group'

        # delete a database parameter group
        # http://docs.amazonwebservices.com/AmazonRDS/latest/APIReference/API_DeleteDBParameterGroup.html
        # ==== Parameters
        # * DBParameterGroupName <~String> - name of the parameter group. Must not be associated with any instances
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        def delete_db_parameter_group(group_name)
          
          request({
            'Action'  => 'DeleteDBParameterGroup',
            'DBParameterGroupName' => group_name,
            
            :parser   => Fog::Parsers::AWS::RDS::DeleteDbParameterGroup.new
          })
        end

      end

      class Mock

        def delete_db_parameter_group(group_name)
          response = Excon::Response.new
          
          if self.data[:parameter_groups].delete(group_name)
            response.status = 200
            response.body = {
              "ResponseMetadata"=>{ "RequestId"=> Fog::AWS::Mock.request_id },
            }
            response
          else
            raise Fog::AWS::RDS::NotFound.new("DBParameterGroup not found: #{group_name}")
          end
        end

      end
    end
  end
end

Version data entries

84 entries across 84 versions & 14 rubygems

Version Path
fog-test-again-1.6.0 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-test-me-1.10.0 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-parser-fix-1.6.0 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-1.10.0 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-1.9.0 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-maestrodev-1.8.0.20130109172219 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-sgonyea-1.8.1 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-1.8.0 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-1.7.0 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-1.6.0 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-1.5.0 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-1.4.0 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/delete_db_parameter_group.rb
michiels-fog-1.3.1 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/aws/requests/rds/delete_db_parameter_group.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/delete_db_parameter_group.rb