
    	                         S 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                  5       " S	 S
\R                  5      5       r\	\l        g)zDBare Metal Solution interactive serial console SSH keys add command.    )	BmsClient)base)flags)filesz}
          Add a public SSH key to the project for accessing the interactive serial console in Bare Metal Solution."
        a  
          To add an SSH key called ``my-ssh-key'' in project ``my-project''
          with a public key ``ABC6695''

          $ {command} my-ssh-key --project=my-project --key=ABC6695

          To add an SSH key called ``my-ssh-key'' in project ``my-project''
          with a public key stored in /home/user/.ssh/id_rsa.pub

          $ {command} my-ssh-key --project=my-project --key-file=/home/user/.ssh/id_rsa.pub
    )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)Add,   zhAdd a public SSH key to the project for accessing the interactive serial console in Bare Metal Solution.c                     [         R                  " U SS9  U R                  SS9nUR                  SSS9  UR                  SSS9  g	)
z Register flags for this command.T)
positional)requiredz--keyz<The SSH public key to add for the interactive serial console)helpz
--key-filezYThe path to a file containing an SSH public key to add for the interactive serial consoleN)r   !AddSerialConsoleSshKeyArgToParseradd_mutually_exclusive_groupadd_argument)parserkey_args     .lib/surface/bms/serial_console_ssh_keys/add.pyArgsAdd.Args0   s^     
++FtD1141@GK  M +  -    c                     [        5       nUR                  (       a!  [        R                  " UR                  5      nOUR                  nUR                  UR                  R                  R                  5       US9$ )N)resource
public_key)	r   key_filer   ReadFileContentskeyCreateSshKeyCONCEPTSserial_console_ssh_keyParse)selfargsclientr   s       r   RunAdd.Run=   s^    [F}}))$--8j88j55;;=   r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r&   __static_attributes__r(   r   r   r
   r
   ,   s    p
- 
-r   r
   N)r-   %googlecloudsdk.api_lib.bms.bms_clientr   googlecloudsdk.callioper   googlecloudsdk.command_lib.bmsr   googlecloudsdk.core.utilr   DETAILED_HELPReleaseTracksReleaseTrackALPHACreateCommandr
   detailed_helpr(   r   r   <module>r:      sl    K < ( 0 *
	
	( D%%++,$

  -6 " r   