Sha256: f3fbbaeeb11535ec4d09db02b084948d9bfb64a2a83fb1052cff084969477ff9

Contents?: true

Size: 1.17 KB

Versions: 55

Compression:

Stored size: 1.17 KB

Contents

module Fog
  module AWS
    class IAM
      class Real
        require 'fog/aws/parsers/iam/basic'

        # Remove a user from a group
        #
        # ==== Parameters
        # * policy_arn<~String>: arn of the policy
        # * version_id<~String>: version of policy to delete
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'RequestId'<~String> - Id of the request
        #
        # ==== See Also
        # http://docs.amazonwebservices.com/IAM/latest/APIReference/API_SetDefaultPolicyVersion.html
        #
        def set_default_policy_version(policy_arn, version_id)
          request(
            'Action'    => 'SetDefaultPolicyVersion',
            'PolicyArn' => policy_arn,
            'VersionId' => version_id,
            :parser     => Fog::Parsers::AWS::IAM::Basic.new
          )
        end
      end
      
      class Mock
        def set_default_policy_version(policy_arn, version_id)
          Excon::Response.new.tap do |response|
            response.body = { 'RequestId' => Fog::AWS::Mock.request_id }
            response.status = 200
          end
        end
      end

    end
  end
end

Version data entries

55 entries across 53 versions & 2 rubygems

Version Path
fog-aws-3.11.0 lib/fog/aws/requests/iam/set_default_policy_version.rb
fog-aws-3.10.0 lib/fog/aws/requests/iam/set_default_policy_version.rb
fog-aws-3.9.0 lib/fog/aws/requests/iam/set_default_policy_version.rb
fog-aws-3.8.0 lib/fog/aws/requests/iam/set_default_policy_version.rb
fog-aws-3.7.0 lib/fog/aws/requests/iam/set_default_policy_version.rb
fog-aws-3.6.7 lib/fog/aws/requests/iam/set_default_policy_version.rb
fog-aws-3.6.6 lib/fog/aws/requests/iam/set_default_policy_version.rb
fog-aws-3.6.5 lib/fog/aws/requests/iam/set_default_policy_version.rb
fog-aws-3.6.4 lib/fog/aws/requests/iam/set_default_policy_version.rb
fog-aws-3.6.3 lib/fog/aws/requests/iam/set_default_policy_version.rb
fog-aws-3.6.2 lib/fog/aws/requests/iam/set_default_policy_version.rb
fog-aws-3.5.2 lib/fog/aws/requests/iam/set_default_policy_version.rb
fog-aws-3.5.1 lib/fog/aws/requests/iam/set_default_policy_version.rb
fog-aws-3.5.0 lib/fog/aws/requests/iam/set_default_policy_version.rb
fog-aws-3.4.0 lib/fog/aws/requests/iam/set_default_policy_version.rb
fog-aws-3.3.0 lib/fog/aws/requests/iam/set_default_policy_version.rb
fog-aws-3.2.0 lib/fog/aws/requests/iam/set_default_policy_version.rb
fog-aws-3.1.0 lib/fog/aws/requests/iam/set_default_policy_version.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-aws-2.0.1/lib/fog/aws/requests/iam/set_default_policy_version.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-aws-2.0.1/lib/fog/aws/requests/iam/set_default_policy_version.rb