def update(options = {})
      options = options.merge(user_name: @name)
      resp = @client.update_user(options)
      User.new(
        name: options[:new_user_name],
        client: @client
      )
    end
def update(options = {})
      options = options.merge(user_name: @name)
      resp = @client.update_user(options)
      User.new(
        name: options[:new_user_name],
        client: @client
      )
    end
@example Request syntax with placeholder values

   user = user.update({
     new_path: "pathType",
     new_user_name: "userNameType",
   })
 @param [Hash] options ({})
 @option options [String] :new_path
   New path for the IAM user. Include this parameter only if you're
   changing the user's path.

   This parameter allows (through its [regex pattern][1]) a string of
   characters consisting of either a forward slash (/) by itself or a
   string that must begin and end with forward slashes. In addition, it
   can contain any ASCII character from the ! (\\u0021) through the DEL
   character (\\u007F), including most punctuation characters, digits,
   and upper and lowercased letters.



   [1]: http://wikipedia.org/wiki/regex
 @option options [String] :new_user_name
   New name for the user. Include this parameter only if you're changing
   the user's name.

   This parameter allows (through its [regex pattern][1]) a string of
   characters consisting of upper and lowercase alphanumeric characters
   with no spaces. You can also include any of the following characters:
   \_+=,.@-



   [1]: http://wikipedia.org/wiki/regex
 @return [User]