
    r                        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	j.                                      Z e	j(                  e	j*                  j2                         G d de             Z e	j(                  e	j*                  j6                         G d de             Zy)&List Cloud NetApp Volume Replications.    )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   z<          Lists Cloud NetApp Volume Replications.
          z          The following command lists all Replications in the given location and volume:

              $ {command} --location=us-central1 --volume=vol1
          )DESCRIPTIONEXAMPLESc                     t        j                  t        j                  d      g      j	                  |        t        j                  |        y )Nz2The location in which to list Volume Replications.)r   ConceptParserr
   *GetResourceListingLocationPresentationSpecAddToParserreplications_flagsAddReplicationVolumeArg)parsers    /lib/surface/netapp/volumes/replications/list.pyArgsz	List.Args1   s@    !!<<D	
 k&..v6    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 replications of)release_track)limit)r   VALUEScoreproject	GetOrFailCONCEPTSvolumeParser	   RequiredArgumentExceptionRelativeNamereplications_clientReplicationsClient_RELEASE_TRACKlistListReplicationsr   )selfargs
volume_refr   s       r   RunzList.Run<   s     "",,.}}!!#+00
A  %%++-::<J 33))F ''
$**'EFFr   N)__name__
__module____qualname____doc__r   ReleaseTrackGAr)   detailed_helpstaticmethodr   r/    r   r   r   r      sC     /$$''.		- 7 7G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:   M   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=   T   s    .$$**.r   r=   N)r3   
__future__r   r   r   2googlecloudsdk.api_lib.netapp.volumes.replicationsr   r'   googlecloudsdk.callioper   r	   !googlecloudsdk.command_lib.netappr
   6googlecloudsdk.command_lib.netapp.volumes.replicationsr   (googlecloudsdk.command_lib.util.conceptsr   googlecloudsdk.corer   DefaultUniverseOnlyReleaseTracksr4   r5   ListCommandr   r;   r:   r>   r=   r8   r   r   <module>rI      s    - &  ' \ ( . 3 ^ D * D%%(())G4 )G * )GX D%%**+*t * ,* D%%++,+ + -+r   