
                            d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZ ddlmZ ddlmZ dd	lmZ e	j$                   e	j&                  e	j(                  j*                         G d
 de	j,                                      Z e	j&                  e	j(                  j0                         G d de             Z e	j&                  e	j(                  j4                         G d de             Zy)'Stop a Cloud NetApp Volume Replication.    )absolute_import)division)unicode_literals)client)base)flags)concept_parsers)logc                   \    e Zd ZdZej
                  j                  ZdddZe	d        Z
d Zy)Stopr   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                     t        j                  t        j                  d      g      j	                  |        t        j                  |        t        j                  |        t        j                  |        y )NzThe Replication to create.)	r
   ConceptParserr	   GetReplicationPresentationSpecAddToParserreplications_flagsAddReplicationVolumeArgAddResourceAsyncFlagAddReplicationForceArg)parsers    /lib/surface/netapp/volumes/replications/stop.pyArgsz	Stop.Args4   sV    !!		-	-.J	KLk&..v6	v&--f5    c                    |j                   j                  j                         }t        j                  | j
                        }|j                  ||j                  |j                        }|j                  rWdj                  | j                         j                        }t        j                  j                  dj                  |             |S )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   RunzStop.Run=   s    mm//557O 33D4G4GHF##djj2F{{<CC




$
$g 
jj$$*F7O Mr   N)__name__
__module____qualname____doc__r   r'   GAr"   detailed_helpstaticmethodr   r0    r   r   r   r      sB     0$$''.	- 6 6r   r   c                   <    e Zd ZdZej
                  j                  Zy)StopBetar   N)r1   r2   r3   r4   r   r'   BETAr"   r8   r   r   r:   r:   O   s    /$$)).r   r:   c                   <    e Zd ZdZej
                  j                  Zy)	StopAlphar   N)r1   r2   r3   r4   r   r'   ALPHAr"   r8   r   r   r=   r=   V   s    /$$**.r   r=   N)r4   
__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'   r5   Commandr   r;   r:   r>   r=   r8   r   r   <module>rI      s    . &  ' \ ( 3 ^ D # D%%((),4<< , * ,^ D%%**+*t * ,* D%%++,+ + -+r   