ó
    €Ï<  ã                   ób   • 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Jr  SSK	J
r
  S rS	 rS
 rg)zHelpers for compute diagnose.é    )Úabsolute_import)Údivision)Úunicode_literals)Ú	ssh_utils)Úlog)Úresource_printerc                 óü   • U (       d   [         R                  R                  S5        g[         R                  R                  S5        [        R                  " U S5        [         R                  R                  S5        g)z?Prints the list of instances to which the command will work on.zNo instances found.Nz1The command will run for the following instances:ztable(name, zone)Ú )r   ÚoutÚPrintr   )Ú	instancess    ÚClib/googlecloudsdk/command_lib/compute/diagnose/internal_helpers.pyÚPrintHeaderr      sK   € æ	Ü‡GG‡MMÐ'Ô(Ø
ä‡''‡--ÐCÔDÜ×Ò˜Ð$7Ô8Ü‡''‡--Õó    c                 óf   • [         R                  " U 5      nSR                  U R                  US9nU$ )z©Returns a string that identifies the instance.

Args:
  instance: The instance proto.

Returns:
  A string that identifies the zone and the external ip of the instance.
z![{instance_name}] ({instance_ip}))Úinstance_nameÚinstance_ip)r   ÚGetExternalIPAddressÚformatÚselfLink)ÚinstanceÚexternal_ipÚresults      r   ÚGetInstanceNetworkTitleStringr   %   s<   € ô ×.Ò.¨xÓ8€+à.×5Ñ5Ø×%Ñ%Øð 6ð €&ð 
€-r   c                 óV   • UR                  U R                  SS9nUR                  5       $ )Nzcompute.zones)Ú
collection)ÚParseÚzoneÚName)r   Úresource_registryÚzone_refs      r   ÚGetZoneFromInstancer"   6   s'   € Ø×$Ñ$ X§]¡]¸Ð$ÐO€(Ø	‰‹Ðr   N)Ú__doc__Ú
__future__r   r   r   Ú"googlecloudsdk.command_lib.computer   Úgooglecloudsdk.corer   Úgooglecloudsdk.core.resourcer   r   r   r"   © r   r   Ú<module>r)      s+   ðñ $å &Ý Ý 'å 8Ý #Ý 9òòó"r   