
    !
                     &   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lmZ dd	lmZ d
ddZ ej                   ej"                  j$                  ej"                  j&                         G d dej(                               Zee_        y)z9'Bare Metal Solution boot volume snapshot delete command.    )absolute_import)division)unicode_literals)	BmsClient)base)flags)log)
console_iozF
          Delete a Bare Metal Solution boot volume snapshot.
        z
          To delete a snapshot called ``my-snapshot'' on boot volume
          ``my-boot-volume'' in region ``us-central1'', run:

          $ {command} my-snapshot --region=us-central1 --volume=my-boot-volume
    )DESCRIPTIONEXAMPLESc                   &    e Zd ZdZed        Zd Zy)Deletez2Delete a Bare Metal Solution boot volume snapshot.c                 2    t        j                  | d       y)z Register flags for this command.T)
positionalN)r   AddVolumeSnapshotArgToParser)parsers    +lib/surface/bms/volumes/snapshots/delete.pyArgszDelete.Args.   s     
&&v$?    c                 0   |j                   j                  j                         }t               }|j	                  |      j
                  }||j                  j                  j                  j                  k(  r6t        j                  ddj                  |j                               d       n4t        j                  dj                  |j                               d       |j                  |      }t        j                   |j                         d       |S )Nz`Deleting a SCHEDULED snapshot of a boot volume is unsafe and should only be done when necessary.z+Are you sure you want to delete snapshot {}T)messageprompt_stringcancel_on_noz*You are about to delete the snapshot [{0}])r   r   snapshot)CONCEPTSr   Parser   GetVolumeSnapshottypemessagesVolumeSnapshotTypeValueValuesEnum	SCHEDULEDr
   PromptContinueformatNameDeleteVolumeSnapshotr	   DeletedResource)selfargsr   clientsnapshot_typeress         r   Runz
Delete.Run3   s    }}%%++-H[F,,X6;;M66JJTTT>E6(--/" !6(--/2 
%
%h
/C4Jr   N)__name__
__module____qualname____doc__staticmethodr   r-    r   r   r   r   *   s    :@ @r   r   N)r1   
__future__r   r   r   %googlecloudsdk.api_lib.bms.bms_clientr   googlecloudsdk.callioper   googlecloudsdk.command_lib.bmsr   googlecloudsdk.corer	   googlecloudsdk.core.consoler
   DETAILED_HELPReleaseTracksReleaseTrackALPHAGADeleteCommandr   detailed_helpr3   r   r   <module>rA      s    @ &  ' ; ( 0 # 2		 D%%++T->->-A-ABT  C: % r   