
    z                         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  G d	 d
ej                        Zy)z5Command to list operations in a project and location.    )absolute_import)division)unicode_literals)
list_pager)
datafusion)base)resource_argsc                   &    e Zd ZdZed        Zd Zy)ListzLists instance operations.

  ## EXAMPLES

  To list operations in project `my-project` and location `my-location`, run:

    $ {command} --project=my-project --location=my-location
  c                 f    t        j                  | d       | j                  j                  d       y )Nz* The location in which to list operations.ztable[box](name.segment(5):label=ID,metadata.verb:label=TYPE,metadata.target.segment(5):label=TARGET,metadata.createTime:label=CREATE_TIME:reverse,metadata.endTime:label=END_TIME,error.code:label=ERROR_CODE))r	   AddLocationResourceArgdisplay_info	AddFormat)parsers    *lib/surface/data_fusion/operations/list.pyArgsz	List.Args&   s/    ((<>
!!	    c                 L   t        j                         }|j                  j                  j	                         }|j
                  j                  |j                               }t        j                  |j                  j                  ||j                  d|j                  d      S )N)name
operationspageSize)limitfield
batch_sizebatch_size_attribute)df
DatafusionCONCEPTSlocationParsemessages0DatafusionProjectsLocationsOperationsListRequestRelativeNamer   YieldFromListclientprojects_locations_operationsr   	page_size)selfargsr   location_refreqs        r   RunzList.Run4   s    J==))//1L



N
N&&( O *C ##77jj>>') )r   N)__name__
__module____qualname____doc__staticmethodr   r,    r   r   r   r      s       )r   r   N)r0   
__future__r   r   r   apitools.base.pyr   "googlecloudsdk.api_lib.data_fusionr   r   googlecloudsdk.callioper   &googlecloudsdk.command_lib.data_fusionr	   ListCommandr   r2   r   r   <module>r9      s1    < &  ' ' ? ( @%)4 %)r   