
    H                     F    S r SSKJr  SSKJr  SSKJr  SSKJr  SSKrS rg)z9Shared code to create test matrices in Firebase Test Lab.    )absolute_import)division)unicode_literals)configNc                    [        U5      n[        R                  US'   X#S'   / n[        R                  " U5       H#  u  pVUR                  U R                  XVS95        M%     UR                  S S9  U R                  SUS9$ )a  Build the ClientInfo part of a TestMatrix message.

Sets the client name to 'gcloud' and attaches common and user-provided client
details to the ClientInfo message.

Args:
  messages: Testing API messages generated by Apitools.
  client_details: Dictionary of user-provided client_details.
  release_track: Release track that the command is invoked from.

Returns:
  ClientInfo message.
zCloud SDK VersionzRelease Track)keyvaluec                     U R                   $ )Nr   )ds    Alib/googlecloudsdk/api_lib/firebase/test/matrix_creator_common.py<lambda>!BuildClientInfo.<locals>.<lambda>0   s        r   gcloud)nameclientInfoDetails)	dictr   CLOUD_SDK_VERSIONsix	iteritemsappendClientInfoDetailsort
ClientInfo)messagesclient_detailsrelease_trackdetails_with_defaultsclient_info_detailsr   r	   s          r   BuildClientInfor!      s     ~./5/G/G+,+8(MM"78jcx88S8NO 9 /			': 
 
< <r   )	__doc__
__future__r   r   r   googlecloudsdk.corer   r   r!    r   r   <module>r&      s    @ &  ' & 
<r   