
    
                        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d
l	mZ ddiZd Z ej                   ej"                  j$                         G d dej&                               Z ej                   ej"                  j*                  ej"                  j,                         G d dej&                               Zee_        ee_        y)z2Vertex AI deployment monitoring jobs list command.    )absolute_import)division)unicode_literals)client)base)	constants)endpoint_util)flags)region_utilEXAMPLESz
    List the model deployment monitoring jobs of project `example` in region `us-central1`, run:

      $ {command} --project=example --region=us-central1
    c                    | j                   j                  j                         }|j                         d   }t	        j
                  ||      5  t        j                  |      j                  |      cddd       S # 1 sw Y   yxY w)zRun method for delete command.locationsId)region)version)
region_refN)	CONCEPTSr   ParseAsDictr	   AiplatformEndpointOverridesr   ModelMonitoringJobsClientList)argsr   r   r   s       ,lib/surface/ai/model_monitoring_jobs/list.py_Runr   &   sl    }}##))+*}-&00H++G<AA B  IHHs   &A??Bc                   &    e Zd ZdZed        Zd Zy)ListGaJList the model deployment monitoring jobs of the given project and region.c                 v    t        j                  | dt        j                  t        j
                               y Nz(to list model deployment monitoring jobs)prompt_funcr
   AddRegionResourceArgr   GetPromptForRegionFuncr   'SUPPORTED_MODEL_MONITORING_JOBS_REGIONSparsers    r   ArgszListGa.Args3   .    	266==?@    c                 6    t        |t        j                        S N)r   r   
GA_VERSIONselfr   s     r   Runz
ListGa.Run;   s    i**++r)   N__name__
__module____qualname____doc__staticmethodr'   r/    r)   r   r   r   /   s    R@ @,r)   r   c                   &    e Zd ZdZed        Zd Zy)r   r   c                 v    t        j                  | dt        j                  t        j
                               y r   r!   r%   s    r   r'   z	List.ArgsC   r(   r)   c                 6    t        |t        j                        S r+   )r   r   BETA_VERSIONr-   s     r   r/   zList.RunK   s    i,,--r)   Nr0   r6   r)   r   r   r   ?   s    R@ @.r)   r   N)r4   
__future__r   r   r   /googlecloudsdk.api_lib.ai.model_monitoring_jobsr   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   r	   r
   r   DETAILED_HELPr   ReleaseTracksReleaseTrackGAListCommandr   ALPHABETAr   detailed_helpr6   r)   r   <module>rG      s    9 &  ' B ( 3 7 / 5 	 D%%((),T , *, D%%++T->->-C-CD.4 . E. # $ r)   