
    F                     @   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S
KJr  \R                   " \R"                  R$                  \R"                  R&                  \R"                  R(                  5       " S S\R*                  5      5       rg)Lists AlloyDB operations.    )absolute_import)division)unicode_literalsN)
list_pager)api_util)base)flags)
propertiesc                   >    \ rS rSrSrSSS.r\S 5       rS rS r	S	r
g
)List   r   z{description}zU        To list operations, run:

          $ {command} --region=us-central1
        )DESCRIPTIONEXAMPLESc                 V    U R                  SSSS9  [        R                  " U SS5        g)zmSpecifies additional command flags.

Args:
  parser: argparse.Parser: Parser object for command line inputs.
z--region-zRegional location (e.g. asia-east1, us-east1). See the full list of regions at https://cloud.google.com/sql/docs/instance-locations. Default: list operations in all regions.)defaulthelpFN)add_argumentr
   
AddCluster)parsers    &lib/surface/alloydb/operations/list.pyArgs	List.Args/   s6     9  ; 
VUE*    c           
        ^ ^ [         R                  " T R                  5       5      nUR                  R	                  S[
        R                  R                  R                  R                  TR                  S9nUU 4S jn[        R                  " UR                  R                  UR                  R!                  UR#                  5       S9SUTR$                  TR&                  SS9nU$ )zConstructs and sends request.

Args:
  args: argparse.Namespace, An object that contains the values for the
      arguments specified in the .Args() method.

Returns:
  ProcessHttpResponse of the request made.
zalloydb.projects.locations)
projectsIdlocationsIdc                    > TR                   c  gU R                  R                   HG  nUR                  S:X  d  M  UR                  R
                  nTR                  UTR                   5      s  $    g)NTtargetF)clustermetadataadditionalPropertieskeyvaluestring_value_matchesTarget)operation_itemadditional_propertyr    argsselfs      r   _FilterOperation"List.Run.<locals>._FilterOperationO   sc    		!/!8!8!M!M
""h.&,,99&$$VT\\:
: "N r   )name
operationspageSize)field	predicatelimit
batch_sizebatch_size_attribute)r   AlloyDBClientReleaseTrackresource_parserCreater   VALUEScoreproject	GetOrFailregionr   YieldFromListalloydb_clientprojects_locations_operationsalloydb_messages-AlloydbProjectsLocationsOperationsListRequestRelativeNamer3   	page_size)r+   r*   clientlocation_refr,   results   ``    r   RunList.Run?   s     ##D$5$5$78F))00$$$))11;;KK 1 !L
 %%;;MM**, 	N 	."jj>>')F Mr   c                 B    SU-   S-   n[         R                  " X15      S L$ )Nz(projects/[^/]*/locations/[^/]*/clusters/z($|/.*$))rematch)r+   r    
cluster_idpatterns       r   r'   List._matchesTargetd   s'    
 :JFTG88G$D00r    N)__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   rI   r'   __static_attributes__rQ   r   r   r   r      s7     " 		- + +#J1r   r   )rV   
__future__r   r   r   rL   apitools.base.pyr   googlecloudsdk.api_lib.alloydbr   googlecloudsdk.callioper	   "googlecloudsdk.command_lib.alloydbr
   googlecloudsdk.corer   ReleaseTracksr7   ALPHABETAGAListCommandr   rQ   r   r   <module>re      s      '  ' 	 ' 3 ( 4 * D%%++T->->-C-C%%((*I14 I1*I1r   