
    	                         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d	Zej                   ej                  ej                  j                   ej                  j"                         G d
 dej$                                      Zee_        y)z0Describe command for Colab Enterprise Schedules.    )util)	schedules)base)endpoint_util)flagszF
        Describe a Colab Enterprise notebook execution schedule.
    z
        To describe 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)DescribezDescribe a schedule.c                 .    t        j                  |        y)z^Register flags for this command.

    Args:
      parser: argparse parser for the command
    N)r   AddDescribeScheduleFlags)parsers    'lib/surface/colab/schedules/describe.pyArgszDescribe.Args*   s     
""6*    c                    | j                         }t        j                  | j                               }|j                  j                  j                         }|j                         d   }t        j                  d|      5  t        j                  |      }|j                  }t        j                  |||      cddd       S # 1 sw Y   yxY w)zThis is what gets called when the user runs this command.

    Args:
      args: argparse.Namespace, The arguments that this command was invoked
        with.

    Returns:
      The API response for describing the schedule.
    locationsIdBETA)versionregionN)ReleaseTrackr   GetMessagesCONCEPTSscheduleParseAsDictr   AiplatformEndpointOverrides	GetClientprojects_locations_schedulesschedules_utilValidateAndGetColabSchedule)selfargsrelease_trackmessagesschedule_refr   
api_clientschedules_services           r   RunzDescribe.Run3   s     %%'M 1 1 34H==))//1L  "=1F		2	2v
 >>-0j$AA77
+
 
 
s   8CCN)__name__
__module____qualname____doc__staticmethodr   r)    r   r   r   r   %   s     + +r   r   N)r-   '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   DescribeCommandr   detailed_helpr/   r   r   <module>r;      s     7 8 P ( 7 >		 D%%(($*;*;*@*@A"t## " B "J ( r   