
    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  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                  j*                         G d de             Zy)z1Command for listing Cloud NetApp Files locations.    )absolute_import)division)unicode_literals)netapp_client)base)flags)
properties)	resourcesc                   \    e Zd ZdZej
                  j                  ZdddZe	d        Z
d Zy)List&List all Cloud NetApp Files locations.z'Lists all Cloud NetApp Files locations.zg            The following command lists NetApp Files locations.

                $ {command}
          )DESCRIPTIONEXAMPLESc                 V    | j                   j                  t        j                         y )N)display_info	AddFormatr   LOCATIONS_LIST_FORMAT)parsers    $lib/surface/netapp/locations/list.pyArgsz	List.Args-   s    
!!%"="=>    c                 0   t         j                  j                  t        j                  j
                  j                  j                         d      }t        j                  | j                        }t        |j                  ||j                              S )Nznetapp.projects)
collection)release_track)limit)r
   REGISTRYParser	   VALUEScoreproject	GetOrFailr   NetAppClient_RELEASE_TRACKlistListLocationsr   )selfargsproject_refclients       r   RunzList.Run1   su    $$**&&002$ + &K ''d6I6IJF$$[

$CDDr   N)__name__
__module____qualname____doc__r   ReleaseTrackGAr#   detailed_helpstaticmethodr   r*    r   r   r   r      sA    .$$''. 4		- ? ?Er   r   c                   <    e Zd ZdZej
                  j                  Zy)ListBetar   N)r+   r,   r-   r.   r   r/   BETAr#   r3   r   r   r5   r5   9   s    .$$)).r   r5   c                   <    e Zd ZdZej
                  j                  Zy)	ListAlphar   N)r+   r,   r-   r.   r   r/   ALPHAr#   r3   r   r   r8   r8   @   s    .$$**.r   r8   N)r.   
__future__r   r   r   googlecloudsdk.api_lib.netappr   googlecloudsdk.callioper   +googlecloudsdk.command_lib.netapp.locationsr   googlecloudsdk.corer	   r
   ReleaseTracksr/   r0   ListCommandr   r6   r5   r9   r8   r3   r   r   <module>rA      s    8 &  ' 7 ( = * ) D%%(()E4 E *E8 D%%**+*t * ,* D%%++,+ + -+r   