Sha256: 680706170297e9201f47a935ef87c8ad810cc72fbd22fc96ccd9a9d78f9fde51

Contents?: true

Size: 1.33 KB

Versions: 98

Compression:

Stored size: 1.33 KB

Contents

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

        # Update a user
        #
        # ==== Parameters
        # * user_name<~String> - Required. Name of the User to update. If you're changing the name of the User, this is the original User name.
        # * options<~Hash>:
        #   * new_path<~String> - New path for the User. Include this parameter only if you're changing the User's path.
        #   * new_user_name<~String> - New name for the User. Include this parameter only if you're changing the User's name.
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'RequestId'<~String> - Id of the request
        #     * 'User'<~Hash> - Changed user info
        #       * 'Arn'<~String> -
        #       * 'Path'<~String> -
        #       * 'UserId'<~String> -
        #       * 'UserName'<~String> -
        #
        # ==== See Also
        # http://docs.amazonwebservices.com/IAM/latest/APIReference/index.html?API_UpdateUser.html
        #
        def update_user(user_name, options = {})
          request({
            'Action'      => 'UpdateUser',
            'UserName'    => user_name,
            :parser       => Fog::Parsers::AWS::IAM::UpdateUser.new
          }.merge!(options))
        end
      end
    end
  end
end

Version data entries

98 entries across 96 versions & 6 rubygems

Version Path
fog-aws-0.8.1 lib/fog/aws/requests/iam/update_user.rb
fog-aws-0.8.0 lib/fog/aws/requests/iam/update_user.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-aws-0.7.5/lib/fog/aws/requests/iam/update_user.rb
fog-aws-0.7.6 lib/fog/aws/requests/iam/update_user.rb
fog-aws-0.7.5 lib/fog/aws/requests/iam/update_user.rb
fog-aws-0.7.4 lib/fog/aws/requests/iam/update_user.rb
fog-aws-0.7.3 lib/fog/aws/requests/iam/update_user.rb
fog-aws-0.7.2 lib/fog/aws/requests/iam/update_user.rb
fog-aws-0.6.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-0.5.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-0.4.1 lib/fog/aws/requests/iam/update_user.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/aws/requests/iam/update_user.rb
fog-aws-0.4.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-0.3.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-0.2.2 lib/fog/aws/requests/iam/update_user.rb
fog-aws-0.2.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-0.1.2 lib/fog/aws/requests/iam/update_user.rb
fog-aws-0.1.1 lib/fog/aws/requests/iam/update_user.rb
fog-aws-0.1.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-0.0.8 lib/fog/aws/requests/iam/update_user.rb