
                            S r SSKJr  SSKJr  SSKJr  SSKrSSKJr  SSKJr  SSK	J
r
  SS	KJr  S
 rS r\
R                  " \
R                   R"                  5       " S S\
R$                  5      5       r\
R                  " \
R                   R(                  5       " S S\
R$                  5      5       r\
R                  " \
R                   R,                  5       " S S\5      5       rg)z#gcloud dns operations list command.    )absolute_import)division)unicode_literalsN)
operations)util)base)flagsc                     U R                   R                  S5        [        R                  R	                  U 5        [        R
                  R	                  U 5        [        R                  " SSSS9R                  U 5        g)z:Add arguments to the parser for `operations list` command.z
      table(
        zoneContext.oldValue.name:label=ZONE_NAME:sort=1,
        id,
        startTime,
        user,
        type
      )
  z"Name of one or more zones to read.FT)
positionalpluralN)	display_info	AddFormatr   URI_FLAGRemoveFromParserPAGE_SIZE_FLAGr	   GetZoneResourceArgAddToParserparsers    "lib/surface/dns/operations/list.py_CommonArgsr      se     	 !  --  (&&v.*t%%0[%8    c                    ^ ^ TR                   R                  R                  5       n[        R                  R                  UU 4S jU 5       5      $ )Nc              3   X   >#    U  H  nTR                  UTR                  S 9v   M!     g7f))limitN)Listr   ).0zargsoperations_clients     r   	<genexpr>_List.<locals>.<genexpr>4   s*      'F;DaQdjj19s   '*)CONCEPTSzonesParse	itertoolschainfrom_iterable)r    r   	zone_refss   `` r   _Listr*   2   sC    mm!!''))		&	& 'F;D'F 
F Fr   c                   .    \ rS rSrSr\S 5       rS rSrg)ListBeta8     List Cloud DNS operations.

This command displays Cloud DNS operations for one or more Cloud DNS
managed-zones (see `$ gcloud dns managed-zones --help`).

## EXAMPLES

To see the list of all operations for two managed-zones, run:

  $ {command} --zones=zone1,zone2

To see the last 5 operations for two managed-zones, run:

  $ {command} --zones=zone1,zone2 --sort-by=~start_time --limit=5
c                     [        U 5        g Nr   r   s    r   ArgsListBeta.ArgsJ   
    r   c                     [         R                  " U R                  5       5      n[        R                  R                  U5      n[        X15      $ r0   )r   GetApiFromTrackReleaseTrackr   ClientFromApiVersionr*   )selfr   api_versionr    s       r   RunListBeta.RunN   s>    &&t'8'8':;K"))88E"))r    N	__name__
__module____qualname____firstlineno____doc__staticmethodr2   r<   __static_attributes__r>   r   r   r,   r,   8   s        *r   r,   c                   .    \ rS rSrSr\S 5       rS rSrg)r   T   r.   c                     [        U 5        g r0   r1   r   s    r   r2   	List.Argsf   r4   r   c                 V    [         R                  R                  S5      n[        X!5      $ )Nv1)r   r8   r9   r*   )r:   r   r    s      r   r<   List.Runj   s%    "))88>"))r   r>   Nr?   r>   r   r   r   r   T   s        *r   r   c                       \ rS rSrSrSrg)	ListAlphao   r.   r>   N)r@   rA   rB   rC   rD   rF   r>   r   r   rO   rO   o   s    r   rO   )rD   
__future__r   r   r   r&   googlecloudsdk.api_lib.dnsr   r   googlecloudsdk.callioper   googlecloudsdk.command_lib.dnsr	   r   r*   ReleaseTracksr7   BETAListCommandr,   GAr   ALPHArO   r>   r   r   <module>rZ      s    * &  '  1 + ( 09,F D%%**+*t * ,*6 D%%(()*4 * **4 D%%++,  -r   