Skip to content
This repository
Browse code

[aws|iam] added update signing certificate support

  • Loading branch information...
commit ad40758c84bbb473bf5e34bc65d5141edbce876f 1 parent 6689c6e
authored geemus committed
1  lib/fog/aws/iam.rb
@@ -31,6 +31,7 @@ class IAM < Fog::Service
31 31
       request :update_access_key
32 32
       request :update_group
33 33
       request :update_user
  34
+      request :update_signing_certificate
34 35
       request :upload_signing_certificate
35 36
 
36 37
       class Mock
1  lib/fog/aws/parsers/iam/update_group.rb
@@ -5,7 +5,6 @@ module IAM
5 5
 
6 6
         class UpdateGroup < Fog::Parsers::Base
7 7
         # http://docs.amazonwebservices.com/IAM/latest/APIReference/index.html?API_UpdateGroup.html
8  
-        
9 8
           def reset
10 9
             @response = { 'Group' => {} }
11 10
           end
2  lib/fog/aws/requests/iam/update_group.rb
@@ -6,7 +6,7 @@ class Real
6 6
         require 'fog/aws/parsers/iam/update_group'
7 7
 
8 8
         # Update a Group
9  
-        # 
  9
+        #
10 10
         # ==== Parameters
11 11
         # * 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.
12 12
         # * options<~Hash>:
32  lib/fog/aws/requests/iam/update_signing_certificate.rb
... ...
@@ -0,0 +1,32 @@
  1
+module Fog
  2
+  module AWS
  3
+    class IAM
  4
+      class Real
  5
+        # Update a Signing Certificate
  6
+        #
  7
+        # ==== Parameters
  8
+        # * certificate_id<~String> - Required. ID of the Certificate to update.
  9
+        # * status<~String> - Required. Active/Inactive
  10
+        # * options<~Hash>:
  11
+        #   * user_name<~String> - Name of the user the signing certificate belongs to.
  12
+        # ==== Returns
  13
+        # * response<~Excon::Response>:
  14
+        #   * body<~Hash>:
  15
+        #     * 'RequestId'<~String> - Id of the request
  16
+        #
  17
+        # ==== See Also
  18
+        # http://docs.amazonwebservices.com/IAM/latest/APIReference/index.html?API_UpdateSigningCertificate.html
  19
+        #
  20
+        def update_signing_certificate(certificate_id, status, options = {})
  21
+          request({
  22
+            'Action'        => 'UpdateSigningCertificate',
  23
+            'CertificateId' => certificate_id,
  24
+            'Status'        => status,
  25
+            :parser         => Fog::Parsers::AWS::IAM::Basic.new
  26
+          }.merge!(options))
  27
+        end
  28
+
  29
+      end
  30
+    end
  31
+  end
  32
+end

0 notes on commit ad40758

Please sign in to comment.
Something went wrong with that request. Please try again.