1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[aws|iam] added update signing certificate support

This commit is contained in:
bdorry 2011-02-24 11:00:35 -05:00 committed by geemus
parent 6689c6e0a5
commit ad40758c84
4 changed files with 34 additions and 2 deletions

View file

@ -31,6 +31,7 @@ module Fog
request :update_access_key
request :update_group
request :update_user
request :update_signing_certificate
request :upload_signing_certificate
class Mock

View file

@ -5,7 +5,6 @@ module Fog
class UpdateGroup < Fog::Parsers::Base
# http://docs.amazonwebservices.com/IAM/latest/APIReference/index.html?API_UpdateGroup.html
def reset
@response = { 'Group' => {} }
end

View file

@ -6,7 +6,7 @@ module Fog
require 'fog/aws/parsers/iam/update_group'
# Update a Group
#
#
# ==== Parameters
# * group_name<~String> - Required. Name of the Group to update. If you're changing the name of the Group, this is the original Group name.
# * options<~Hash>:

View file

@ -0,0 +1,32 @@
module Fog
module AWS
class IAM
class Real
# Update a Signing Certificate
#
# ==== Parameters
# * certificate_id<~String> - Required. ID of the Certificate to update.
# * status<~String> - Required. Active/Inactive
# * options<~Hash>:
# * user_name<~String> - Name of the user the signing certificate belongs to.
# ==== Returns
# * response<~Excon::Response>:
# * body<~Hash>:
# * 'RequestId'<~String> - Id of the request
#
# ==== See Also
# http://docs.amazonwebservices.com/IAM/latest/APIReference/index.html?API_UpdateSigningCertificate.html
#
def update_signing_certificate(certificate_id, status, options = {})
request({
'Action' => 'UpdateSigningCertificate',
'CertificateId' => certificate_id,
'Status' => status,
:parser => Fog::Parsers::AWS::IAM::Basic.new
}.merge!(options))
end
end
end
end
end