
    "                        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&                  j(                         G d
 de	j*                               Z e	j$                  e	j&                  j.                         G d de             Z e	j$                  e	j&                  j2                         G d de             Zy)zLists Cloud NetApp Volumes.    )absolute_import)division)unicode_literals)client)base)flags)concept_parsers)
propertiesc                   \    e Zd ZdZej
                  j                  ZdddZe	d        Z
d Zy)ListList Cloud NetApp Volumes./          Lists Cloud NetApp Volumes
                    The following command lists all Volumes in the given location

              $ {command} --location=us-central1
          DESCRIPTIONEXAMPLESc                     t        j                  t        j                  d      g      j	                  |        | j
                  j                  t        j                         y )Nz&The location in which to list Volumes.)	r	   ConceptParserr   *GetResourceListingLocationPresentationSpecAddToParserdisplay_info	AddFormatvolumes_flagsVOLUMES_LIST_FORMAT)parsers    "lib/surface/netapp/volumes/list.pyArgsz	List.Args.   sL    !!884	6#  {6
!!-"C"CD    c                    t         j                  j                  j                  j	                          |j
                  j                  j                         j                         }|j                  r|j                  nd}|j                  d      }||d<   dj                  |      }t        j                  | j                        }t        |j                  ||j                               S )zRun the list command.-/)release_track)limit)r
   VALUEScoreproject	GetOrFailCONCEPTSlocationParseRelativeNamesplitjoinvolumes_clientVolumesClient_RELEASE_TRACKlistListVolumesr$   )selfargslocation_refr*   location_listr   s         r   RunzList.Run6   s     "",,.==))//1>>@L $t}}3H &&s+M M"88M*L))8K8KLF ""<tzz"BCCr   N)__name__
__module____qualname____doc__r   ReleaseTrackGAr1   detailed_helpstaticmethodr   r8    r   r   r   r      sC    "$$''.		- E EDr   r   c                   F    e Zd ZdZej
                  j                  ZdddZy)ListBetar   r   r   r   N)	r9   r:   r;   r<   r   r=   BETAr1   r?   rA   r   r   rC   rC   F   s'    "$$)).		-r   rC   c                   <    e Zd ZdZej
                  j                  Zy)	ListAlphar   N)r9   r:   r;   r<   r   r=   ALPHAr1   rA   r   r   rF   rF   X   s    "$$**.r   rF   N)r<   
__future__r   r   r   %googlecloudsdk.api_lib.netapp.volumesr   r/   googlecloudsdk.callioper   !googlecloudsdk.command_lib.netappr   )googlecloudsdk.command_lib.netapp.volumesr   (googlecloudsdk.command_lib.util.conceptsr	   googlecloudsdk.corer
   ReleaseTracksr=   r>   ListCommandr   rD   rC   rG   rF   rA   r   r   <module>rQ      s    " &  ' J ( 3 L D * D%%(()%D4 %D *%DP D%%**+t  ," D%%++,+ + -+r   