
    X                        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 dd
lmZ e	j(                   e	j*                  e	j,                  j.                         G d de	j0                                      Z e	j*                  e	j,                  j4                         G d de             Z e	j*                  e	j,                  j8                         G d de             Zy))Delete a Cloud NetApp Volume Replication.    )absolute_import)division)unicode_literals)client)base)flags)concept_parsers)log)
console_ioc                   \    e Zd ZdZej
                  j                  ZdddZe	d        Z
d Zy)Deleter   z>          Delete a Cloud NetApp Volume Replication.
          aT            The following command deletes a Replication named NAME using the required arguments:

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

          To delete 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                  |        y)z$Add args for deleting a Replication.zThe Replication to delete.N)r
   ConceptParserr	   GetReplicationPresentationSpecAddToParserreplications_flagsAddReplicationVolumeArgAddResourceAsyncFlag)parsers    1lib/surface/netapp/volumes/replications/delete.pyArgszDelete.Args5   sL     !!,,-IJ# {6..v6	v&    c                    |j                   j                  j                         }|j                  s6dj	                  |j                               }t        j                  |      syt        j                  | j                        }|j                  ||j                        }|j                  rWdj	                  | j                         j                        }t        j                   j#                  dj	                  |             |S )z@Delete a Cloud NetApp Volume Replication in the current project.z7You are about to delete a Replication {}.
Are you sure?)messageNz*gcloud {} netapp volumes replications listzECheck the status of the deletion by listing all replications:
  $ {} )CONCEPTSreplicationParsequietformatRelativeNamer   PromptContinuereplications_clientReplicationsClient_RELEASE_TRACKDeleteReplicationasync_ReleaseTrackprefixr   statusPrint)selfargsreplication_refdelete_warningr   resultcommands          r   Runz
Delete.Run>   s    mm//557O::
D
K
K**, 
 &&~> 33D4G4GHF%%ot{{CF{{<CC




$
$g 
jj&/ Mr   N)__name__
__module____qualname____doc__r   r*   GAr'   detailed_helpstaticmethodr   r4    r   r   r   r      sB     2$$''.	- ' 'r   r   c                   <    e Zd ZdZej
                  j                  Zy)
DeleteBetar   N)r5   r6   r7   r8   r   r*   BETAr'   r<   r   r   r>   r>   X   s    1$$)).r   r>   c                   <    e Zd ZdZej
                  j                  Zy)DeleteAlphaz#Delete a Cloud NetApp Storage Pool.N)r5   r6   r7   r8   r   r*   ALPHAr'   r<   r   r   rA   rA   _   s    +$$**.r   rA   N)r8   
__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   googlecloudsdk.core.consoler   DefaultUniverseOnlyReleaseTracksr*   r9   DeleteCommandr   r?   r>   rB   rA   r<   r   r   <module>rN      s    0 &  ' \ ( 3 ^ D # 2 D%%(()4T 4 * 4n D%%**+* * ,* D%%++,+* + -+r   