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-maestrodev-1.19.0.20140212012611 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-1.19.0 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-maestrodev-1.18.0.20131209090811 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-maestrodev-1.18.0.20131206115947 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-maestrodev-1.18.0.20131205181604 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-maestrodev-1.18.0.20131127194823 lib/fog/aws/requests/iam/delete_server_certificate.rb
fog-maestrodev-1.18.0.20131126183714 lib/fog/aws/requests/iam/delete_server_certificate.rb