
                            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	Z e	j                  e	j                   j"                  e	j                   j$                         G d
 de	j&                               Zy)zCommand to list operations.    )absolute_import)division)unicode_literals)
operations)base)resource_args)endpoint_utilzX
To list all operations in location ``us-west1'', run:

$ {command} --location=us-west1
c                   .    e Zd ZdZdeiZed        Zd Zy)ListzList operations.EXAMPLESc                 Z    t        j                  | d       t        j                  |        y)z!Registers flags for this command.zto list operationsN)r   AddLocationResourceArgr   	AddFormat)parsers    .lib/surface/container/azure/operations/list.pyArgsz	List.Args(   s#     ((1EF     c                    | j                         }|j                  j                  j                         }t	        j
                  |j                  |      5  t        j                         }|j                  ||j                  |j                  d      \  }}|st        j                  |d       |cddd       S # 1 sw Y   yxY w)zRuns the describe command.name)parent_fieldazureN)ReleaseTrackCONCEPTSlocationParser	   GkemulticloudEndpointOverridelocationsIdop_api_utilOperationsClientr   	page_sizelimitr   	AddFilter)selfargsrelease_tracklocation_ref	op_clientitemsemptys          r   RunzList.Run.   s    %%'M==))//1L		4	4  -
 ..0i^^


 $ leU  	T7+
 
 
s   AB99CN)	__name__
__module____qualname____doc__	_EXAMPLESdetailed_helpstaticmethodr   r*    r   r   r   r   "   s&    y)-! !
r   r   N)r.   
__future__r   r   r   .googlecloudsdk.api_lib.container.gkemulticloudr   r   googlecloudsdk.callioper   *googlecloudsdk.command_lib.container.azurer   2googlecloudsdk.command_lib.container.gkemulticloudr	   r/   ReleaseTracksr   ALPHAGAListCommandr   r2   r   r   <module>r<      sr    " &  ' T ( D L I	 D%%++T->->-A-AB4  Cr   