
                             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
dZ ej                  ej                  j                          G d dej"                               Zee_        y)zH'Bare Metal Solution interactive serial console SSH keys remove command.    )absolute_import)division)unicode_literals)	BmsClient)base)flags)
console_ioz
          Remove an SSH key that is used to access the interactive serial console in Bare Metal Solution given its name.
        za
          To remove an SSH key called ``my-ssh-key'' run:

          $ {command} my-ssh-key
    )DESCRIPTIONEXAMPLESc                   &    e Zd ZdZed        Zd Zy)RemoveznRemove an SSH key that is used to access the interactive serial console in Bare Metal Solution given its name.c                 2    t        j                  | d       y)z Register flags for this command.T)
positionalN)r   !AddSerialConsoleSshKeyArgToParser)parsers    1lib/surface/bms/serial_console_ssh_keys/remove.pyArgszRemove.Args-   s     
++FtD    c                     |j                   j                  j                         }dj                  |j	                               }t        j                  |d       t               }|j                  |      S )Nz(You are about to remove the SSH key [{}]T)messagecancel_on_no)	CONCEPTSserial_console_ssh_keyParseformatNamer	   PromptContinuer   DeleteSshKey)selfargsssh_keyr   clients        r   Runz
Remove.Run2   sX    mm2288:G8??OGgDA[Fw''r   N)__name__
__module____qualname____doc__staticmethodr   r#    r   r   r   r   )   s    vE E(r   r   N)r'   
__future__r   r   r   %googlecloudsdk.api_lib.bms.bms_clientr   googlecloudsdk.callioper   googlecloudsdk.command_lib.bmsr   googlecloudsdk.core.consoler	   DETAILED_HELPReleaseTracksReleaseTrackALPHADeleteCommandr   detailed_helpr)   r   r   <module>r5      su    O &  ' ; ( 0 2
		 D%%++,(T ( -(  % r   