mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws|iam] add missing update_server_certificate request
This commit is contained in:
parent
3302900967
commit
273daf1332
2 changed files with 44 additions and 6 deletions
|
@ -16,8 +16,8 @@ module Fog
|
|||
request :create_access_key
|
||||
request :create_account_alias
|
||||
request :create_group
|
||||
request :create_user
|
||||
request :create_login_profile
|
||||
request :create_user
|
||||
request :delete_access_key
|
||||
request :delete_account_alias
|
||||
request :delete_group
|
||||
|
@ -27,17 +27,17 @@ module Fog
|
|||
request :delete_signing_certificate
|
||||
request :delete_user
|
||||
request :delete_user_policy
|
||||
request :get_login_profile
|
||||
request :get_user
|
||||
request :get_user_policy
|
||||
request :get_group
|
||||
request :get_group_policy
|
||||
request :get_login_profile
|
||||
request :get_server_certificate
|
||||
request :get_user
|
||||
request :get_user_policy
|
||||
request :list_access_keys
|
||||
request :list_account_aliases
|
||||
request :list_group_policies
|
||||
request :list_groups
|
||||
request :list_groups_for_user
|
||||
request :list_group_policies
|
||||
request :list_server_certificates
|
||||
request :list_signing_certificates
|
||||
request :list_user_policies
|
||||
|
@ -48,8 +48,9 @@ module Fog
|
|||
request :update_access_key
|
||||
request :update_group
|
||||
request :update_login_profile
|
||||
request :update_user
|
||||
request :update_server_certificate
|
||||
request :update_signing_certificate
|
||||
request :update_user
|
||||
request :upload_server_certificate
|
||||
request :upload_signing_certificate
|
||||
|
||||
|
|
37
lib/fog/aws/requests/iam/update_server_certificate.rb
Normal file
37
lib/fog/aws/requests/iam/update_server_certificate.rb
Normal file
|
@ -0,0 +1,37 @@
|
|||
module Fog
|
||||
module AWS
|
||||
class IAM
|
||||
class Real
|
||||
# Updates the name and/or the path of the specified server certificate.
|
||||
#
|
||||
# ==== Parameters
|
||||
# * server_certificate_name<~String> - The name of the server
|
||||
# certificate that you want to update.
|
||||
# * options<~Hash>:
|
||||
# * 'NewPath'<~String> - The new path for the server certificate.
|
||||
# Include this only if you are updating the server certificate's
|
||||
# path.
|
||||
# * 'NewServerCertificateName'<~String> - The new name for the server
|
||||
# certificate. Include this only if you are updating the server
|
||||
# certificate's name.
|
||||
#
|
||||
# ==== Returns
|
||||
# * response<~Excon::Response>:
|
||||
# * body<~Hash>:
|
||||
# * 'RequestId'<~String> - Id of the request
|
||||
#
|
||||
# ==== See Also
|
||||
# http://docs.amazonwebservices.com/IAM/latest/APIReference/index.html?API_UpdateServerCertificate.html
|
||||
#
|
||||
def update_server_certificate(server_certificate_name, options = {})
|
||||
request({
|
||||
'Action' => 'UpdateServerCertificate',
|
||||
'ServerCertificateName' => server_certificate_name,
|
||||
:parser => Fog::Parsers::AWS::IAM::Basic.new
|
||||
}.merge!(options))
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue