
    	                         S r SSKJr  SSKJr  SSKJr  SSKrSSKJr  SSKJ	r	  SSK
Jr   " S	 S
\R                  5      rg)zICommand to create an enterprise-certificate configuration file for Linux.    )absolute_import)division)unicode_literalsN)base)enterprise_certificate_config)"AddCommonEnterpriseCertConfigFlagsc                   V    \ rS rSrSrS\R                  " S5      0r\S 5       r	S r
Srg)	CreateLinuxConfig   zCreate 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                     [        U5        UR                  SSSS9  UR                  SSSS9  UR                  SSSS9  UR                  S	S
S9  g )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ArgsCreateLinuxConfig.Args-   s    &v.
9   C       <      c                 t    [         R                  " [         R                  R                  40 [	        U5      D6  g )N)r   create_config
ConfigTypePKCS11vars)selfargss     r   RunCreateLinuxConfig.RunK   s+    !//%0077;?:r    N)__name__
__module____qualname____firstlineno____doc__textwrapdedentdetailed_helpclassmethodr   r   __static_attributes__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>r0      s2    P &  '  ( I T2** 2r   