
    	                         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  G d	 d
ej                        Zy)zICommand to create an enterprise-certificate configuration file for Linux.    )absolute_import)division)unicode_literalsN)base)enterprise_certificate_config)"AddCommonEnterpriseCertConfigFlagsc                   N    e Zd ZdZd ej
                  d      iZed        Zd Z	y)CreateLinuxConfigzCreate an enterprise-certificate configuration file for Linux.

  This command creates a configuration file used by gcloud to use the
  enterprise-certificate-proxy component for mTLS.
  EXAMPLESz          To create a credential configuration run:

            $ {command} --module=$PATH_TO_PKCS11_MODULE --slot=$PKCS11_SLOT_ID --label=$PKCS11_OBJECT_LABEL --user-pin=$PKCS11_USER_PIN
          c                     t        |       |j                  ddd       |j                  ddd       |j                  ddd       |j                  d	d
       y )Nz--modulez*The full file path to the PKCS #11 module.T)helprequiredz--slotz4The PKCS #11 slot containing the target credentials.z--labelzThe PKCS #11 label for the target credentials. The certificate, public key, and private key MUST have the same label. enterprise-certificate-proxy will use all three objects.z
--user-pinzbThe user pin used to login to the PKCS #11 module. If there is no user pin leave this field empty.)r   )r   add_argument)clsparsers     >lib/surface/auth/enterprise_certificate_config/create/linux.pyArgszCreateLinuxConfig.Args-   s    &v.
9   C       <      c                 r    t        j                  t         j                  j                  fi t	        |       y )N)r   create_config
ConfigTypePKCS11vars)selfargss     r   RunzCreateLinuxConfig.RunK   s+    !//%0077;?:r   N)
__name__
__module____qualname____doc__textwrapdedentdetailed_helpclassmethodr   r    r   r   r
   r
      s>     /(//-  :r   r
   )r    
__future__r   r   r   r!   googlecloudsdk.callioper   googlecloudsdk.command_lib.authr   %googlecloudsdk.command_lib.auth.flagsr   CreateCommandr
   r%   r   r   <module>r+      s2    P &  '  ( I T2** 2r   