
    H                     F    d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlZd Zy)z9Shared code to create test matrices in Firebase Test Lab.    )absolute_import)division)unicode_literals)configNc                    t        |      }t        j                  |d<   ||d<   g }t        j                  |      D ]'  \  }}|j                  | j                  ||             ) |j                  d        | j                  d|      S )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                     | j                   S )Nr   )ds    Alib/googlecloudsdk/api_lib/firebase/test/matrix_creator_common.py<lambda>z!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8jc5x88S8NO 9 /			': 
 
< <r   )	__doc__
__future__r   r   r   googlecloudsdk.corer   r   r     r   r   <module>r%      s    @ &  ' & 
<r   