
                            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)z&Lists Cloud NetApp Active Directories.    )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 Active Directories.zR          Lists AD (Active Directory) configs for Cloud NetApp Volumes.
          z          The following command lists AD configs in the given project and location:

              $ {command} --location=us-central1
          )DESCRIPTIONEXAMPLESc                 t    t        j                  t        j                  d      g      j	                  |        y )Nz1The location in which to list Active Directories.)r	   ConceptParserr   *GetResourceListingLocationPresentationSpecAddToParser)parsers    -lib/surface/netapp/active_directories/list.pyArgsz	List.Args-   s3    !!88?	A#  {6    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	ad_clientActiveDirectoriesClient_RELEASE_TRACKlistListActiveDirectoriesr   )selfargslocation_refr#   location_listr   s         r   RunzList.Run5   s     "",,.==))//1>>@L $t}}3H &&s+M M"88M*L..))+F,,\,LMMr   N)__name__
__module____qualname____doc__r   ReleaseTrackGAr*   detailed_helpstaticmethodr   r1    r   r   r   r      sA    -$$''.		-  Nr   r   c                   <    e Zd ZdZej
                  j                  Zy)ListBetar   N)r2   r3   r4   r5   r   r6   BETAr*   r:   r   r   r<   r<   D   s    -$$)).r   r<   c                   <    e Zd ZdZej
                  j                  Zy)	ListAlphar   N)r2   r3   r4   r5   r   r6   ALPHAr*   r:   r   r   r?   r?   K   s    -$$**.r   r?   N)r5   
__future__r   r   r   0googlecloudsdk.api_lib.netapp.active_directoriesr   r(   googlecloudsdk.callioper   !googlecloudsdk.command_lib.netappr   (googlecloudsdk.command_lib.util.conceptsr	   googlecloudsdk.corer
   ReleaseTracksr6   r7   ListCommandr   r=   r<   r@   r?   r:   r   r   <module>rI      s    - &  ' P ( 3 D * D%%(()$N4 $N *$NN D%%**+*t * ,* D%%++,+ + -+r   