
    
                        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(                  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)#List Cloud NetApp Volume Snapshots.    )absolute_import)division)unicode_literals)client)base)
exceptions)flags)concept_parsers)
propertiesc                   \    e Zd ZdZej
                  j                  ZdddZe	d        Z
d Zy)Listr   z9          Lists Cloud NetApp Volume Snapshots.
          z          The following command lists all Snapshots in the given location and volume:

              $ {command} --location=us-central1 --volume=vol1
          )DESCRIPTIONEXAMPLESc                     t        j                  t        j                  d      g      j	                  |        t        j                  |        y )Nz/The location in which to list Volume Snapshots.)r   ConceptParserr
   *GetResourceListingLocationPresentationSpecAddToParsersnapshots_flagsAddSnapshotVolumeArg)parsers    ,lib/surface/netapp/volumes/snapshots/list.pyArgsz	List.Args0   s@    !!88=	?#  {6((0    c                    t         j                  j                  j                  j	                          |j
                  j                  j                         t        j                  dd      |j
                  j                  j                         j                         }t        j                  | j                        }t        |j                  ||j                               S )zRun the list command.z--volumez&Requires a volume to list snapshots of)release_track)limit)r   VALUEScoreproject	GetOrFailCONCEPTSvolumeParser	   RequiredArgumentExceptionRelativeNamesnapshots_clientSnapshotsClient_RELEASE_TRACKlistListSnapshotsr   )selfargs
volume_refr   s       r   RunzList.Run8   s     "",,.}}!!#+00
>@ @ %%++-::<J--D<O<OPF$$Ztzz$BCCr   N)__name__
__module____qualname____doc__r   ReleaseTrackGAr)   detailed_helpstaticmethodr   r/    r   r   r   r      sA    +$$''.		- 1 1Dr   r   c                   <    e Zd ZdZej
                  j                  Zy)ListBetar   N)r0   r1   r2   r3   r   r4   BETAr)   r8   r   r   r:   r:   F   s    +$$)).r   r:   c                   <    e Zd ZdZej
                  j                  Zy)	ListAlphar   N)r0   r1   r2   r3   r   r4   ALPHAr)   r8   r   r   r=   r=   M   s    +$$**.r   r=   N)r3   
__future__r   r   r   /googlecloudsdk.api_lib.netapp.volumes.snapshotsr   r'   googlecloudsdk.callioper   r	   !googlecloudsdk.command_lib.netappr
   3googlecloudsdk.command_lib.netapp.volumes.snapshotsr   (googlecloudsdk.command_lib.util.conceptsr   googlecloudsdk.corer   ReleaseTracksr4   r5   ListCommandr   r;   r:   r>   r=   r8   r   r   <module>rH      s    * &  ' V ( . 3 X D * D%%(()#D4 #D *#DL D%%**+*t * ,* D%%++,+ + -+r   