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