
                              S r SSKJr  S rS rg)z$Helper for processing API responses.    )logc                     U R                   (       a>  [        R                  " SR                  SR	                  U R                   5      5      5        [        X5      $ )LResponse callback to log unreachable while generating fields of the message.z-The following instances were unreachable: {}., )unreachabler   warningformatjoingetattr)message	attributes     3lib/googlecloudsdk/api_lib/spanner/response_util.pyGetFieldAndLogUnreachabler      s@    KK7			'--.	/1 
	$$    c                    Sn[        U S5      (       aP  U R                  (       a?  [        R                  " UR	                  SR                  U R                  5      5      5        O`[        U S5      (       aO  U R                  (       a>  [        R                  " UR	                  SR                  U R                  5      5      5        [        X5      $ )r   z7The following instance partitions were unreachable: {}.r   r   unreachableInstancePartitions)hasattrr   r   r   r	   r
   r   r   )r   r   warning_texts      r   +GetFieldAndLogUnreachableInstancePartitionsr      s    J,Wm$$)<)<KK##DIIg.A.A$BCDg677

/
/ KKDIIg&K&KLM 
	$$r   N)__doc__googlecloudsdk.corer   r   r    r   r   <module>r      s    + $%%r   