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:
parent
6689c6e0a5
commit
ad40758c84
4 changed files with 34 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>:
|
||||
|
|
32
lib/fog/aws/requests/iam/update_signing_certificate.rb
Normal file
32
lib/fog/aws/requests/iam/update_signing_certificate.rb
Normal 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
|
Loading…
Add table
Reference in a new issue