
    8                        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(                  5       " S S\	R*                  5      5       r\	R$                  " \	R&                  R.                  5       " S S\5      5       r\	R$                  " \	R&                  R2                  5       " S S\5      5       rg)&Create a Cloud NetApp Volume Snapshot.    )absolute_import)division)unicode_literals)client)base)
exceptions)flags)labels_util)logc                   d    \ rS rSrSr\R                  R                  rSSS.r	\
S 5       rS rSrg	)
Create   r   z;          Create a Cloud NetApp Volume Snapshot.
          z          The following command creates a Snapshot named NAME using the required arguments:

              $ {command} NAME --location=us-central1 --volume=vol1
          )DESCRIPTIONEXAMPLESc                 0    [         R                  " U 5        g )N)snapshots_flagsAddSnapshotCreateArgs)parsers    .lib/surface/netapp/volumes/snapshots/create.pyArgsCreate.Args/   s    ))&1    c                 .   UR                   R                  R                  5       nUR                   R                  R                  5       c  [        R
                  " SS5      eUR                   R                  R                  5       R                  5       n[        R                  " U R                  5      n[        R                  " XR                  R                  R                  5      nUR                  UR                  5       UR                   US9nUR#                  X#UR$                  U5      nUR$                  (       aW  SR'                  U R)                  5       R*                  5      n[,        R.                  R1                  SR'                  U5      5        U$ )z=Create a Cloud NetApp Volume Snapshot in the current project.z--volumez'Requires a volume to create snapshot of)namedescriptionlabelsz'gcloud {} netapp volumes snapshots listzFCheck the status of the new snapshot by listing all snapshots:
  $ {} )CONCEPTSsnapshotParsevolumer	   RequiredArgumentExceptionRelativeNamesnapshots_clientSnapshotsClient_RELEASE_TRACKr   ParseCreateArgsmessagesSnapshotLabelsValueParseSnapshotConfigr   CreateSnapshotasync_formatReleaseTrackprefixr   statusPrint)	selfargssnapshot_ref
volume_refr   r   r   resultcommands	            r   Run
Create.Run3   sH   ==))//1L}}!!#+00
?  %%++-::<J--d.A.ABF((oo&&22F ))&&($$ * H
 ""$++xF {{9@@




$
$g 
jj&/ Mr    N)__name__
__module____qualname____firstlineno____doc__r   r/   GAr&   detailed_helpstaticmethodr   r9   __static_attributes__r;   r   r   r   r      s@    .$$''.		- 2 2r   r   c                   D    \ rS rSrSr\R                  R                  rSr	g)
CreateBetaU   r   r;   N)
r<   r=   r>   r?   r@   r   r/   BETAr&   rD   r;   r   r   rF   rF   U   s    .$$)).r   rF   c                   D    \ rS rSrSr\R                  R                  rSr	g)CreateAlpha\   z'Creates a Cloud NetApp Volume Snapshot.r;   N)
r<   r=   r>   r?   r@   r   r/   ALPHAr&   rD   r;   r   r   rJ   rJ   \   s    /$$**.r   rJ   N)r@   
__future__r   r   r   /googlecloudsdk.api_lib.netapp.volumes.snapshotsr   r$   googlecloudsdk.callioper   r	   3googlecloudsdk.command_lib.netapp.volumes.snapshotsr
   r   $googlecloudsdk.command_lib.util.argsr   googlecloudsdk.corer   ReleaseTracksr/   rA   CreateCommandr   rH   rF   rL   rJ   r;   r   r   <module>rU      s    - &  ' V ( . X < # D%%(()3T 3 *3l D%%**+* * ,* D%%++,+* + -+r   