Sha256: e7f3e993db1398f0d6178f6353354f52511182ad41562f6abcaf18ef65e8479d

Contents?: true

Size: 1.27 KB

Versions: 102

Compression:

Stored size: 1.27 KB

Contents

module Fog
  module AWS
    class IAM
      class Real

        require 'fog/aws/parsers/iam/basic'

        # Deletes the specified server certificate.
        #
        # ==== Parameters
        # * server_certificate_name<~String>: The name of the server certificate you want to delete.
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'RequestId'<~String> - Id of the request
        #
        # ==== See Also
        # http://docs.amazonwebservices.com/IAM/latest/APIReference/API_DeleteServerCertificate.html
        #
        def delete_server_certificate(server_certificate_name)
          request({
            'Action'                => 'DeleteServerCertificate',
            'ServerCertificateName' => server_certificate_name,
            :parser                 => Fog::Parsers::AWS::IAM::Basic.new
          })
        end

      end

      class Mock
        def delete_server_certificate(server_certificate_name)
          response = Excon::Response.new
          response.status = 200
          response.body = {
            'RequestId' => Fog::AWS::Mock.request_id
          }

          self.data[:server_certificates].delete(server_certificate_name)

          response
        end
      end
    end
  end
end

Version data entries

102 entries across 102 versions & 17 rubygems

Version Path
fog-1.14.0 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-1.13.0 lib/fog/aws/requests/iam/delete_server_certificate.rb
gapinc-fog-1.12.1.2 lib/fog/aws/requests/iam/delete_server_certificate.rb
gapinc-fog-1.12.1.1 lib/fog/aws/requests/iam/delete_server_certificate.rb
gapinc-fog-1.12.1a lib/fog/aws/requests/iam/delete_server_certificate.rb
gapinc-fog-1.12.1 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-1.12.1 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-1.12.0 lib/fog/aws/requests/iam/delete_server_certificate.rb
hpfog-0.0.20 lib/fog/aws/requests/iam/delete_server_certificate.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/lib/fog/aws/requests/iam/delete_server_certificate.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-nirvanix-1.8.2 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-1.11.1 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-1.11.0 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-nirvanix-1.8.1 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-1.10.1 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-parser-fix-1.6.1 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-test-again-1.6.0 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-test-me-1.10.0 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-parser-fix-1.6.0 lib/fog/aws/requests/iam/delete_server_certificate.rb