
                         b    S r SSKJr  SSKJr  SSKJr  SSKJ	r	   " S S\R                  5      rg)	z'Command to list instances in a project.    )
list_pager)
datafusion)base)resource_argsc                   .    \ rS rSrSr\S 5       rS rSrg)List   zLists all Data Fusion instances in a project given a location.

## EXAMPLES

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

  $ {command} --project=my-project --location=my-location
c                 h    [         R                  " U S5        U R                  R                  S5        g )NzLocation to list instances for.a$  table[box](name.segment(5):label=NAME,type:label=EDITION,createTime:reverse:label=CREATE_TIME,updateTime:reverse:label=UPDATE_TIME,zone:label=ZONE,version:label=VERSION,patchRevision:label=PATCH_REVISION,availableVersion:label=AVAILABLE_VERSIONS_TO_UPDATE,service_endpoint:label=INSTANCE_URL))r   AddLocationResourceArgdisplay_info	AddFormat)parsers    )lib/surface/data_fusion/instances/list.pyArgs	List.Args#   s/    (()JL
!!
	    c           	      D   [         R                  " 5       nUR                  R                  R	                  5       nUR
                  R                  UR                  5       S9n[        R                  " UR                  R                  UUR                  SUR                  SS9$ )N)parent	instancespageSize)limitfield
batch_sizebatch_size_attribute)df
DatafusionCONCEPTSlocationParsemessages/DatafusionProjectsLocationsInstancesListRequestRelativeNamer   YieldFromListclientprojects_locations_instancesr   	page_size)selfargsr   location_refrequests        r   RunList.Run4   s    J==))//1L!!QQ((* R ,G ##66jj>>') )r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r+   __static_attributes__r-   r   r   r   r      s        )r   r   N)r2   apitools.base.pyr   "googlecloudsdk.api_lib.data_fusionr   r   googlecloudsdk.callioper   &googlecloudsdk.command_lib.data_fusionr   ListCommandr   r-   r   r   <module>r:      s*    . ( ? ( @()4 ()r   