Sha256: 6e54d7532e47ab0ad55de522dc398515145d121751e6364f67866827bc691d8c

Contents?: true

Size: 1.34 KB

Versions: 1

Compression:

Stored size: 1.34 KB

Contents

module Fog
  module AWS
    class IAM
      class Real

        require 'rackspace-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

1 entries across 1 versions & 1 rubygems

Version Path
rackspace-fog-1.4.2 lib/rackspace-fog/aws/requests/iam/update_user.rb