
                         2    S r SSKJr  SSKJr  SSKJr  S rg)zACommon command-agnostic utility functions for sql users commands.    )absolute_import)division)unicode_literalsc                     U R                  UUR                  UR                  UR                  UR                  S9nU(       a  X$l        U R                  UUR                  UR                  UR                  US9$ )ae  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      sv     
		}}==99}} 
 
$ .		+	+}}==99 
, 
     N)__doc__
__future__r   r   r   r    r   r   <module>r      s    H &  'r   