
                            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       " S S\R&                  5      5       r\\l        \R                   " \R"                  R,                  5       " S S\5      5       r\\l        \R                   " \R"                  R0                  5       " S S\5      5       r\\l        g)z6Command for stopping group async replication on disks.    )absolute_import)division)unicode_literals)base_classes)base)flags)
propertiesz>Consistently stops a group of asynchronously replicating disksz        *{command}* consistently stops a group of asynchronously replicating
        disks. This command can be invoked in either in the primary or secondary
        scope of the replicating disks.
        a          To stop group replication in the primary scope, include the zone or
        region of the primary disks. The URL of the disk consistency group
        resource policy always uses the region of the primary disks:

          $ {command} projects/my-project/regions/us-west1/resourcePolicies/my-policy --zone=us-west1-a

        Alternatively, you can stop replication in the secondary scope. Include
        the region or zone of the secondary disks. The URL of the disk
        consistency group resource policy always uses the region of the primary
        disks:

          $ {command} projects/my-project/regions/us-west1/resourcePolicies/my-policy --zone=us-west2-a
        )briefDESCRIPTIONEXAMPLESc                 0    [         R                  " U 5        g)z5Add arguments used for parsing in all command tracks.N)disks_flags AddStopGroupAsyncReplicationArgs)parsers    9lib/surface/compute/disks/stop_group_async_replication.py_CommonArgsr   5   s    ..v6    c                   H    \ rS rSrSr\S 5       r\S	S j5       rS rS r	Sr
g)
StopGroupAsyncReplication:   EStop Group Async Replication for a Consistency Group Resource Policy.c                     [        U5        g Nr   clsr   s     r   ArgsStopGroupAsyncReplication.Args>   
    r   c                 L    [         R                  " U R                  5       U5      $ r   )r   ComputeApiHolderReleaseTrack)r   no_https     r   _GetApiHolder'StopGroupAsyncReplication._GetApiHolderB   s    (()9)9);WEEr   c                 $    U R                  U5      $ r   _Runselfargss     r   RunStopGroupAsyncReplication.RunF       99T?r   c                 \   U R                  5       nUR                  n[        USS 5      n[        R                  R
                  R                  R                  5       nUR                  S5      (       aV  UR                  R                  UUR                  UR                  R                  US9S9nUR                  R                  SU4nOUUR                  R                  UUR                   UR                  R                  US9S9nUR                  R"                  SU4nUR%                  U/SS9$ )	NDISK_CONSISTENCY_GROUP_POLICYzone)resourcePolicy)projectr1   &disksStopGroupAsyncReplicationResourcer   )r3   regionr4   T)no_followup)r$   clientgetattrr	   VALUEScorer3   	GetOrFailIsSpecifiedmessages,ComputeDisksStopGroupAsyncReplicationRequestr1   &DisksStopGroupAsyncReplicationResourceapitools_clientdisks2ComputeRegionDisksStopGroupAsyncReplicationRequestr5   regionDisksMakeRequests)r*   r+   compute_holderr7   
policy_urlr3   requests          r   r(   StopGroupAsyncReplication._RunI   s,   '')N""F>EJ$$,,668GLLyy1711' 2 )	 M *g ''--/Jg RR1711' 2 )	 S *g ''33,g7gyd;;r    N)F)__name__
__module____qualname____firstlineno____doc__classmethodr   r$   r,   r(   __static_attributes__rI   r   r   r   r   :   s7    M  F F<r   r   c                   .    \ rS rSrSr\S 5       rS rSrg)StopGroupAsyncReplicationBetag   r   c                     [        U5        g r   r   r   s     r   r   "StopGroupAsyncReplicationBeta.Argsk   r   r   c                 $    U R                  U5      $ r   r'   r)   s     r   r,   !StopGroupAsyncReplicationBeta.Runo   r.   r   rI   N	rJ   rK   rL   rM   rN   rO   r   r,   rP   rI   r   r   rR   rR   g       M r   rR   c                   .    \ rS rSrSr\S 5       rS rSrg)StopGroupAsyncReplicationAlphav   r   c                     [        U5        g r   r   r   s     r   r   #StopGroupAsyncReplicationAlpha.Argsz   r   r   c                 $    U R                  U5      $ r   r'   r)   s     r   r,   "StopGroupAsyncReplicationAlpha.Run~   r.   r   rI   NrX   rI   r   r   r[   r[   v   rY   r   r[   N)rN   
__future__r   r   r   googlecloudsdk.api_lib.computer   googlecloudsdk.callioper   (googlecloudsdk.command_lib.compute.disksr   r   googlecloudsdk.corer	   DETAILED_HELPr   ReleaseTracksr"   GACommandr   detailed_helpBETArR   ALPHAr[   rI   r   r   <module>rm      s    = &  ' 7 ( I * 	I		67
 D%%(()&< &< *&<R +8  ' D%%**+$=  , /<  + D%%++,%>  - 0=  ,r   