
                            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KJr  SS	KJr  \	R$                  \	R&                  " \	R(                  R*                  5       " S
 S\	R,                  5      5       5       r\	R&                  " \	R(                  R0                  5       " S S\5      5       r\	R&                  " \	R(                  R4                  5       " S S\5      5       rg)'Stop a Cloud NetApp Volume Replication.    )absolute_import)division)unicode_literals)client)base)flags)concept_parsers)logc                   d    \ rS rSrSr\R                  R                  rSSS.r	\
S 5       rS rSrg	)
Stop   r   z<          Stop a Cloud NetApp Volume Replication.
          aP            The following command stops a Replication named NAME using the required arguments:

              $ {command} NAME --location=us-central1 --volume=vol1

          To stop a Replication named NAME asynchronously, run the following command:

              $ {command} NAME --location=us-central1 --volume=vol1 --async
          )DESCRIPTIONEXAMPLESc                     [         R                  " [        R                  " S5      /5      R	                  U 5        [
        R                  " U 5        [        R                  " U 5        [
        R                  " U 5        g )NzThe Replication to create.)	r
   ConceptParserr	   GetReplicationPresentationSpecAddToParserreplications_flagsAddReplicationVolumeArgAddResourceAsyncFlagAddReplicationForceArg)parsers    /lib/surface/netapp/volumes/replications/stop.pyArgs	Stop.Args4   sV    !!		-	-.J	KLk&..v6	v&--f5    c                    UR                   R                  R                  5       n[        R                  " U R
                  5      nUR                  X!R                  UR                  5      nUR                  (       aW  SR                  U R                  5       R                  5      n[        R                  R                  SR                  U5      5        U$ )z>Stop a Cloud NetApp Volume Replication in the current project.z*gcloud {} netapp volumes replications listzPCheck the status of the stopped replication by listing all replications:
  $ {} )CONCEPTSreplicationParsereplications_clientReplicationsClient_RELEASE_TRACKStopReplicationasync_forceformatReleaseTrackprefixr   statusPrint)selfargsreplication_refr   resultcommands         r   RunStop.Run=   s    mm//557O 33D4G4GHF##djj2F{{<CC




$
$g 
jj$$*F7O Mr    N)__name__
__module____qualname____firstlineno____doc__r   r)   GAr$   detailed_helpstaticmethodr   r2   __static_attributes__r4   r   r   r   r      sB     0$$''.	- 6 6r   r   c                   D    \ rS rSrSr\R                  R                  rSr	g)StopBetaO   r   r4   N)
r5   r6   r7   r8   r9   r   r)   BETAr$   r=   r4   r   r   r?   r?   O   s    /$$)).r   r?   c                   D    \ rS rSrSr\R                  R                  rSr	g)	StopAlphaV   r   r4   N)
r5   r6   r7   r8   r9   r   r)   ALPHAr$   r=   r4   r   r   rC   rC   V   s    /$$**.r   rC   N)r9   
__future__r   r   r   2googlecloudsdk.api_lib.netapp.volumes.replicationsr   r"   googlecloudsdk.callioper   !googlecloudsdk.command_lib.netappr	   6googlecloudsdk.command_lib.netapp.volumes.replicationsr   (googlecloudsdk.command_lib.util.conceptsr
   googlecloudsdk.corer   DefaultUniverseOnlyReleaseTracksr)   r:   Commandr   rA   r?   rE   rC   r4   r   r   <module>rP      s    . &  ' \ ( 3 ^ D # D%%((),4<< , * ,^ D%%**+*t * ,* D%%++,+ + -+r   