
    Q
                     ^   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 dd
lmZ e	j                   e	j                   e	j"                  j$                  e	j"                  j&                  e	j"                  j(                         G d de	j*                                      Zy)z+Command for spanner backup schedule delete.    )absolute_import)division)unicode_literalsN)backup_schedules)base)flags)resource_args)
console_ioc                   N    e Zd ZdZd ej
                  d      iZed        Zd Z	y)Deletez'Delete a Cloud Spanner backup schedule.EXAMPLESz        To delete a Cloud Spanner backup schedule, run:

          $ {command} backup-schedule-id --instance=instance-id --database=database-id
        c                     t        j                  | d       | j                  j                  t        j
                         y)ay  Args is called by calliope to gather arguments for this command.

    Please add arguments in alphabetical order except for no- or a clear- pair
    for that argument which can follow the argument itself.

    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.
    z	to deleteN)r	   AddBackupScheduleResourceArgdisplay_infoAddCacheUpdaterr   BackupScheduleCompleter)parsers    .lib/surface/spanner/backup_schedules/delete.pyArgszDelete.Args-   s.     ..v{C
''(E(EF    c                     |j                   j                  j                         }t        j                  dj                  |j                        d       t        j                  |      S )zThis is what gets called when the user runs this command.

    Args:
      args: an argparse namespace. All the arguments that were provided to this
        command invocation.

    Returns:
      Some value that we want to have printed later.
    z+Delete backup schedule [{0}]. Are you sure?T)messagecancel_on_no)CONCEPTSbackup_scheduleParser
   PromptContinueformatr   r   )selfargsbackup_schedule_refs      r   Runz
Delete.Run;   s[     --77==?=DD  
 	 ""#677r   N)
__name__
__module____qualname____doc__textwrapdedentdetailed_helpstaticmethodr   r"    r   r   r   r      s@    
 0 /(// # - G G8r   r   )r&   
__future__r   r   r   r'   googlecloudsdk.api_lib.spannerr   googlecloudsdk.callioper   "googlecloudsdk.command_lib.spannerr   r	   googlecloudsdk.core.consoler
   DefaultUniverseOnlyReleaseTracksReleaseTrackALPHABETAGADeleteCommandr   r+   r   r   <module>r8      s    2 &  '  ; ( 4 < 2 T..33T5F5F5I5I*8T *8 *8r   