
    9
                     4   d Z ddlmZ ddlmZ ddlmZ ddlZddlmZ ddlm	Z	 ddl
mZ dd	l
mZ  e	j                  e	j                  j                  e	j                  j                   e	j                  j"                         G d
 de	j$                               Zy).Reschedule a Cloud SQL instance's maintenance.    )absolute_import)division)unicode_literalsN)api_util)base)flags)reschedule_maintenance_utilc                   p    e Zd ZdZ ej
                  d       ej
                  d      dZed        Zd Z	y)RescheduleMaintenancer   zN          {command} reschedules a Cloud SQL instance's maintenance.
          a            To run maintenance on instance `my-instance` immediately, run:

            $ {command} my-instance --reschedule-type=IMMEDIATE

          To reschedule maintenance on instance `my-instance` to the next available window, run:

            $ {command} my-instance --reschedule-type=NEXT_AVAILABLE_WINDOW

          To reschedule maintenance on instance `my-instance` to 2019-11-07 at 4:00 am UTC, run:

            $ {command} my-instance --reschedule-type=SPECIFIC_TIME --schedule-time=2019-11-07T04:00Z
          )DESCRIPTIONEXAMPLESc                     t        j                  |        t        j                  |        t        j                  |        y)zArgs is called by calliope to gather arguments for this command.

    Args:
      parser: An argparse parser that you can use to add arguments that go on
        the command line after this command. Positional arguments are allowed.
    N)r	   AddInstanceArgumentAddRescheduleTypeAddScheduleTime)parsers    )lib/surface/sql/reschedule_maintenance.pyArgszRescheduleMaintenance.Args7   s.     
f%	F#	&!    c                 t    t        j                  t         j                        }t        j                  ||      S )zDRuns the command to reschedule maintenance for a Cloud SQL instance.)r   	SqlClientAPI_VERSION_DEFAULTr
   RunRescheduleMaintenanceCommand)selfargsclients      r   RunzRescheduleMaintenance.RunC   s2      < <=F&FFf r   N)
__name__
__module____qualname____doc__textwrapdedentdetailed_helpstaticmethodr   r    r   r   r   r      sQ     7 (//   (//  -* 	" 	"r   r   )r"   
__future__r   r   r   r#   googlecloudsdk.api_lib.sqlr   googlecloudsdk.callioper   googlecloudsdk.command_lib.sqlr	   r
   ReleaseTracksReleaseTrackGABETAALPHACommandr   r'   r   r   <module>r2      sy    5 &  '  / ( 0 F D%%(($*;*;*@*@%%++-)DLL )-)r   