
                            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SKJ
r  SS	S
S.rS r\R                  " \R                   R"                  5      \R$                   " S S\R&                  5      5       5       r\\l        g)zNCommand for retrieving the status of asynchronous replication for a disk-pair.    )absolute_import)division)unicode_literals)base_classes)base)flagszZRetrieves the status of asynchronous replication for a Compute Engine persistent disk-paira          *{command}* fetches the current status of async replication on a Compute
        Engine persistent disk-pair. This command can be invoked on either the
        primary disk or the secondary-disk but the scope respective to the disk
        must be provided.
        aH          Replication status can be fetched by using either the primary or the
        secondary disk. To get the current replication status of the disk-pair
        with the primary disk 'primary-disk-1' in zone 'us-east1-a', and project
        'my-project1' and the secondary disk 'secondary-disk-1' in zone
        'us-west1-a', and the project 'my-project2', the following commands can
        be used:

          $ {command} primary-disk-1 --zone=us-east1-a --project=my-project1
          or
          $ {command} secondary-disk-1 --zone=us-west1-a --project=my-project2
        )briefDESCRIPTIONEXAMPLESc                 B    [         R                  R                  U 5        g)z5Add arguments used for parsing in all command tracks.N)GetAsyncReplicationStatus	disks_argAddArgument)parsers    9lib/surface/compute/disks/get_async_replication_status.py_CommonArgsr   4   s    %%11&9    c                   H    \ rS rSrSr\S 5       r\S	S j5       rS rS r	Sr
g)
r   9   zfGet Async Replication Status for Compute Engine persistent disk-pairs in an asynchronous replication .c                 T    [         R                  " SS9[        l        [	        U5        g )NF)plural)disks_flagsMakeDiskArgr   r   r   )clsr   s     r   ArgsGetAsyncReplicationStatus.Args>   s    *5*A*A*O'r   c                 L    [         R                  " U R                  5       U5      $ N)r   ComputeApiHolderReleaseTrack)r   no_https     r   _GetApiHolder'GetAsyncReplicationStatus._GetApiHolderC   s    (()9)9);WEEr   c                 $    U R                  U5      $ r   )_Run)selfargss     r   RunGetAsyncReplicationStatus.RunG   s    99T?r   c                    U R                  5       nUR                  n[        R                  R	                  UUR
                  [        R                  " U5      S9nS nUR                  5       S:X  aW  UR                  R                  UR                  5       UR                  UR                  S9nUR                  R                  SU4nOjUR                  5       S:X  aV  UR                  R!                  UR                  5       UR                  UR"                  S9nUR                  R$                  SU4nUR'                  U/5      $ )N)scope_listerzcompute.disks)diskprojectzoner   zcompute.regionDisks)r,   r-   region)r"   clientr   r   ResolveAsResource	resourcesr   GetDefaultScopeLister
Collectionmessages,ComputeDisksGetAsyncReplicationStatusRequestNamer-   r.   apitools_clientdisks2ComputeRegionDisksGetAsyncReplicationStatusRequestr/   regionDisksMakeRequests)r&   r'   compute_holderr0   disk_refrequests         r   r%   GetAsyncReplicationStatus._RunJ   s7   '')N""F(22DD  008 E H G/LL}}""}} M g 
 
 
&
&
%
g
 
			"7	7
//
L
L==?&&__ M   
 
 
,
,
%
g
 y))r    N)F)__name__
__module____qualname____firstlineno____doc__classmethodr   r"   r(   r%   __static_attributes__rA   r   r   r   r   9   s:     o  F F#*r   r   N)rF   
__future__r   r   r   googlecloudsdk.api_lib.computer   googlecloudsdk.callioper   "googlecloudsdk.command_lib.computer   (googlecloudsdk.command_lib.compute.disksr   DETAILED_HELPr   ReleaseTracksr    ALPHADefaultUniverseOnlyCommandr   detailed_helprA   r   r   <module>rT      s    U &  ' 7 ( 4 I	'4:
 D%%++,2* 2*  -2*j +8  'r   