
    !
                     &   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"                  R&                  5       " S S\R(                  5      5       r\\l        g)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                   .    \ rS rSrSr\S 5       rS rSrg)Delete*   z2Delete a Bare Metal Solution boot volume snapshot.c                 .    [         R                  " U SS9  g)z Register flags for this command.T)
positionalN)r   AddVolumeSnapshotArgToParser)parsers    +lib/surface/bms/volumes/snapshots/delete.pyArgsDelete.Args.   s     
&&v$?    c                 *   UR                   R                  R                  5       n[        5       nUR	                  U5      R
                  nXCR                  R                  R                  R                  :X  a4  [        R                  " SSR                  UR                  5       5      SS9  O2[        R                  " SR                  UR                  5       5      SS9  UR                  U5      n[        R                   " UR                  5       S5        U$ )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   Run
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____firstlineno____doc__staticmethodr   r/   __static_attributes__r1   r   r   r   r   *   s    :@ @r   r   N)r6   
__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_helpr1   r   r   <module>rF      s    @ &  ' ; ( 0 # 2		 D%%++T->->-A-ABT  C: % r   