
    t                        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S.r\	R"                  \	R$                  " \	R&                  R(                  5       " S S\	R*                  5      5       5       r\\l        g)z'Delete command for Workbench Schedules.    )
operations)util)	schedules)base)parser_arguments)parser_extensions)endpoint_util)flagsz=
        Delete a Workbench 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                   f    \ rS rSrSr\S\R                  4S j5       rS\	R                  4S jrSrg)	Delete(   zDelete a schedule.parserc                 0    [         R                  " U 5        g)zSRegister flags for this command.

Args:
  parser: argparse parser for the command.
N)r
   AddDeleteScheduleFlags)r   s    )lib/surface/workbench/schedules/delete.pyArgsDelete.Args-   s     
  (    argsc                    U R                  5       n[        R                  " U R                  5       5      nUR                  R                  R                  5       nUR                  5       S   n[        R                  " SUS9   [        R                  " U5      nUR                  n[        R                  " XUSS9  UR                  [        R                  " X5      5      n[        R                  " [         R"                  " US9U[        R$                  " UR&                  5      [        R(                  " U5      SSS	S
9sSSS5        $ ! , (       d  f       g= f)zThis is what gets called when the user runs this command.

Args:
  args: the arguments that this command was invoked with.

Returns:
  The response from the API.
locationsIdBETA)versionregionT)skip_workbench_check)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ValidateAndGetWorkbenchScheduler   CreateScheduleDeleteRequestWaitForOpMayber   OperationsClientParseScheduleOperationnameGetAsyncConfig)	selfr   release_trackmessagesschedule_refr   
api_clientschedules_service	operations	            r   Run
Delete.Run6   s!    %%'M 1 1 34H==))//1L  "=1F		2	2v
 >>-0j

1
1  44
+$ $**

4
4i
   &77zJ66nn **409
'
 
 
s   B;E
E N)__name__
__module____qualname____firstlineno____doc__staticmethodr   ArgumentInterceptorr   r   	Namespacer?   __static_attributes__rA   r   r   r   r   (   s:     )#77 ) )*'11 *r   r   N)rF   googlecloudsdk.api_lib.air   'googlecloudsdk.api_lib.colab_enterpriser   (googlecloudsdk.api_lib.notebook_executorr   r0   googlecloudsdk.callioper   r   r   googlecloudsdk.command_lib.air	   ,googlecloudsdk.command_lib.notebook_executorr
   _DETAILED_HELPDefaultUniverseOnlyReleaseTracksr(   r   DeleteCommandr   detailed_helprA   r   r   <module>rV      s     . 0 8 P ( 4 5 7 >		 D%%**+6T 6 , 6r & r   