
    /                        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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
j0                               Z e
j*                  e
j,                  j4                  e
j,                  j6                         G d de
j0                               Zee_        ee_        y)z4Vertex AI deployment monitoring jobs delete command.    )absolute_import)division)unicode_literals)
operations)client)base)	constants)endpoint_util)flags)model_monitoring_jobs_util)operations_util)
console_ioEXAMPLESz
    To delete a model deployment monitoring job `123` of project `example` in region `us-central1`, run:

      $ {command} 123 --project=example --region=us-central1
    c                    | j                   j                  j                         }|j                         d   }|j                         d   }t	        j
                  ||      5  t        j                  dj                  |      d       t        j                  |      j                  |      }t        j                  t        j                         |t!        j"                  |j$                              cd	d	d	       S # 1 sw Y   y	xY w)
zRun method for delete command.locationsIdmodelDeploymentMonitoringJobsId)regionz8This will delete model deployment monitoring job [{}]...T)cancel_on_no)version)operations_clientopop_refN)CONCEPTSmonitoring_jobParseAsDictr
   AiplatformEndpointOverridesr   PromptContinueformatr   ModelMonitoringJobsClientDeleter   WaitForOpMayber   OperationsClientr   ParseMonitoringJobOperationname)argsr   model_monitoring_job_refr   model_monitoring_job_id	operations         .lib/surface/ai/model_monitoring_jobs/delete.py_Runr+   )   s    !]]99??A#**,];&4;; %'00HBII#	% 00 89 ))$557)EENN IHHs   "BC>>Dc                   &    e Zd ZdZed        Zd Zy)DeleteGa=Delete an existing Vertex AI model deployment monitoring job.c                 0    t        j                  | d       y Nz	to deleter    AddModelMonitoringJobResourceArgparsers    r*   ArgszDeleteGa.ArgsA       	**6;?    c                 6    t        |t        j                        S N)r+   r	   
GA_VERSIONselfr&   s     r*   RunzDeleteGa.RunE   s    i**++r7   N__name__
__module____qualname____doc__staticmethodr5   r=    r7   r*   r-   r-   =   s    E@ @,r7   r-   c                   &    e Zd ZdZed        Zd Zy)r!   r.   c                 0    t        j                  | d       y r0   r1   r3   s    r*   r5   zDelete.ArgsM   r6   r7   c                 6    t        |t        j                        S r9   )r+   r	   BETA_VERSIONr;   s     r*   r=   z
Delete.RunQ   s    i,,--r7   Nr>   rD   r7   r*   r!   r!   I   s    E@ @.r7   r!   N)rB   
__future__r   r   r   googlecloudsdk.api_lib.air   /googlecloudsdk.api_lib.ai.model_monitoring_jobsr   googlecloudsdk.callioper   googlecloudsdk.command_lib.air	   r
   r   r   r   googlecloudsdk.core.consoler   DETAILED_HELPr+   ReleaseTracksReleaseTrackGADeleteCommandr-   ALPHABETAr!   detailed_helprD   r7   r*   <module>rW      s    ; &  ' 0 B ( 3 7 / D 9 2 	( D%%((),t!! , *, D%%++T->->-C-CD.T . E. % & r7   