
    
                     ,   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	d
Ze	j                   e	j                   e	j"                  j$                  e	j"                  j&                         G d de	j(                                      Zee_        y)z.Delete command for Colab Enterprise Schedules.    )
operations)util)	schedules)base)endpoint_util)flagszD
        Delete a Colab Enterprise notebook execution schedule.
    z
        To delete a schedule with id `my-schedule`, in region `us-central1`, run:

         $ {command} my-schedule --region=us-central1
    )DESCRIPTIONEXAMPLESc                   &    e Zd ZdZed        Zd Zy)DeletezDelete a schedule.c                 .    t        j                  |        y)z Register flags for this command.N)r   AddDeleteScheduleFlags)parsers    %lib/surface/colab/schedules/delete.pyArgszDelete.Args+   s     
  (    c           
         | j                         }t        j                  | j                               }|j                  j                  j                         }|j                         d   }t        j                  d|      5  t        j                  |      }|j                  }t        j                  |||       |j                  t        j                  ||            }t        j                  t!        j"                  |      |t        j$                  |j&                        t        j(                  |      ddd      cd	d	d	       S # 1 sw Y   y	xY w)
z9This is what gets called when the user runs this command.locationsIdBETA)versionregion)clientscheduledeletez%Waiting for schedule to be deleted...)operations_clientopop_refasynchronouskind
log_methodmessageN)ReleaseTrackr   GetMessagesCONCEPTSr   ParseAsDictr   AiplatformEndpointOverrides	GetClientprojects_locations_schedulesschedules_utilValidateAndGetColabScheduler   CreateScheduleDeleteRequestWaitForOpMayber   OperationsClientParseScheduleOperationnameGetAsyncConfig)	selfargsrelease_trackmessagesschedule_refr   
api_clientschedules_service	operations	            r   Runz
Delete.Run0   s!   %%'M 1 1 34H==))//1L  "=1F		2	2v
 >>-0j

1
1  00
+ $**

4
4Hi
   &77zJ66nn **409

 
 
s   B=E		EN)__name__
__module____qualname____doc__staticmethodr   r:    r   r   r   r   &   s     ) )r   r   N)r>   googlecloudsdk.api_lib.air   'googlecloudsdk.api_lib.colab_enterpriser   (googlecloudsdk.api_lib.notebook_executorr   r*   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   ,googlecloudsdk.command_lib.notebook_executorr   _DETAILED_HELPDefaultUniverseOnlyReleaseTracksr"   GAr   DeleteCommandr   detailed_helpr@   r   r   <module>rM      s     5 0 8 P ( 7 >		 D%%(($*;*;*@*@A'T ' B 'T & r   