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_access_key
|
||||||
request :update_group
|
request :update_group
|
||||||
request :update_user
|
request :update_user
|
||||||
|
request :update_signing_certificate
|
||||||
request :upload_signing_certificate
|
request :upload_signing_certificate
|
||||||
|
|
||||||
class Mock
|
class Mock
|
||||||
|
|
|
@ -5,7 +5,6 @@ module Fog
|
||||||
|
|
||||||
class UpdateGroup < Fog::Parsers::Base
|
class UpdateGroup < Fog::Parsers::Base
|
||||||
# http://docs.amazonwebservices.com/IAM/latest/APIReference/index.html?API_UpdateGroup.html
|
# http://docs.amazonwebservices.com/IAM/latest/APIReference/index.html?API_UpdateGroup.html
|
||||||
|
|
||||||
def reset
|
def reset
|
||||||
@response = { 'Group' => {} }
|
@response = { 'Group' => {} }
|
||||||
end
|
end
|
||||||
|
|
|
@ -6,7 +6,7 @@ module Fog
|
||||||
require 'fog/aws/parsers/iam/update_group'
|
require 'fog/aws/parsers/iam/update_group'
|
||||||
|
|
||||||
# Update a Group
|
# Update a Group
|
||||||
#
|
#
|
||||||
# ==== Parameters
|
# ==== 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.
|
# * 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>:
|
# * 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