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.10.0 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-1.9.0 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-maestrodev-1.8.0.20130109172219 lib/fog/aws/requests/iam/delete_server_certificate.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-sgonyea-1.8.1 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-1.8.0 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-1.7.0 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-1.6.0 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-1.5.0 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-1.4.0 lib/fog/aws/requests/iam/delete_server_certificate.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/delete_server_certificate.rb
michiels-fog-1.3.1 lib/fog/aws/requests/iam/delete_server_certificate.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/aws/requests/iam/delete_server_certificate.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-1.3.1 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-1.3.0 lib/fog/aws/requests/iam/delete_server_certificate.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/delete_server_certificate.rb