
                            S 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  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  SSKJr  SS0r\R$                  " \R&                  R(                  5       " S S\R*                  5      5       r\R$                  " \R&                  R.                  \R&                  R0                  5       " S S\5      5       rg)z8Command to list hyperparameter tuning jobs in Vertex AI.    )absolute_import)division)unicode_literals)client)base)	constants)endpoint_util)flags)region_util)
validation)hp_tuning_jobs_utilEXAMPLESz         To list the jobs of project ``example'' in region
        ``us-central1'', run:

          $ {command} --project=example --region=us-central1
        c                   J    \ rS rSrSr\r\R                  r	\
S 5       rS rSrg)ListGA)   )List existing hyperparameter tuning jobs.c                     [         R                  " US[        R                  " [        R
                  5      S9  [         R                  " U[        R                  [        R                  U R                     5        g)zMethod called by Calliope to set up arguments for this command.

Args:
  parser: A argparse.Parser to register accepted arguments in command input.
z"to list hyperparameter tuning jobs)prompt_funcN)r
   AddRegionResourceArgr   GetPromptForRegionFuncr   SUPPORTED_TRAINING_REGIONSAddUriFlagsr   HPTUNING_JOB_COLLECTIONAI_PLATFORM_API_VERSION_version)clsparsers     %lib/surface/ai/hp_tuning_jobs/list.pyArgsListGA.Args/   s]     
,660023
 
f1II77EG    c                    UR                   R                  R                  5       nUR                  5       S   n[        R
                  " U[        R                  S9  [        R                  " U R                  US9   [        R                  " U R                  S9R                  UR                  5       S9sSSS5        $ ! , (       d  f       g= f)zExecutes the list command.

Args:
  args: an argparse.Namespace, it contains all arguments that this command
    was invoked with.

Returns:
  The list of resources
locationsId)available_regions)versionregion)r%   )r&   N)CONCEPTSr&   ParseAsDictr   ValidateRegionr   r   r	   AiplatformEndpointOverridesr   r   HpTuningJobsClientListRelativeName)selfargs
region_refr&   s       r   Run
ListGA.Run>   s     %%++-J /F)"F"FH 
	2	2f
.&&t}}=BB((* C ,
. 
. 
.s   :9B==
C N)__name__
__module____qualname____firstlineno____doc___DETAILED_HELPdetailed_helpr   
GA_VERSIONr   classmethodr   r2   __static_attributes__r4   r!   r   r   r   )   s.    1 -!!(G G,r!   r   c                   0    \ rS rSrSr\R                  rSrg)	ListPreGAT   r   r4   N)	r5   r6   r7   r8   r9   r   BETA_VERSIONr   r>   r4   r!   r   r@   r@   T   s    1##(r!   r@   N)r9   
__future__r   r   r   (googlecloudsdk.api_lib.ai.hp_tuning_jobsr   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   r	   r
   r   r   ,googlecloudsdk.command_lib.ai.hp_tuning_jobsr   r:   ReleaseTracksReleaseTrackGAListCommandr   BETAALPHAr@   r4   r!   r   <module>rN      s    ? &  ' ; ( 3 7 / 5 4 L 	 D%%(()',T ', *',T D%%**D,=,=,C,CD$ $ E$r!   