Sha256: 26c6442e89292f92ae6fae88b82a70bb53d63527a5a916f79f1113c9e3c428fb

Contents?: true

Size: 1.26 KB

Versions: 98

Compression:

Stored size: 1.26 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

98 entries across 96 versions & 6 rubygems

Version Path
fog-aws-3.11.0 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-aws-3.10.0 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-aws-3.9.0 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-aws-3.8.0 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-aws-3.7.0 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-aws-3.6.7 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-aws-3.6.6 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-aws-3.6.5 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-aws-3.6.4 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-aws-3.6.3 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-aws-3.6.2 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-aws-3.5.2 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-aws-3.5.1 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-aws-3.5.0 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-aws-3.4.0 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-aws-3.3.0 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-aws-3.2.0 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
fog-aws-3.1.0 lib/fog/aws/requests/rds/delete_db_parameter_group.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-aws-2.0.1/lib/fog/aws/requests/rds/delete_db_parameter_group.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-aws-2.0.1/lib/fog/aws/requests/rds/delete_db_parameter_group.rb