
                         2    d Z ddlmZ ddlmZ ddlmZ d Zy)zACommon command-agnostic utility functions for sql users commands.    )absolute_import)division)unicode_literalsc                     | j                  ||j                  |j                  |j                  |j                        }|r||_        | j                  ||j                  |j                  |j                  |      S )au  Creates the set password request to send to UpdateUser.

  Args:
    sql_messages: module, The messages module that should be used.
    args: argparse.Namespace, The arguments that this command was invoked with.
    dual_password_type: How we want to interact with the dual password.
    project: the project that this user is in

  Returns:
    CreateSetPasswordRequest
  )projectinstancenamehostpassword)r   r   r	   r
   user)Userr   usernamer
   r   dualPasswordTypeSqlUsersUpdateRequest)sql_messagesargsdual_password_typer   r   s        ,lib/googlecloudsdk/api_lib/sql/users_util.pyCreateSetPasswordRequestr      sx     
		}}==99}} 
 
$ .D		+	+}}==99 
, 
     N)__doc__
__future__r   r   r   r    r   r   <module>r      s    H &  'r   