
                             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
  \R                  " \R                  R                  5       " S S\R                  5      5       rg	)
z/Get the csr of a pending Certificate Authority.    )absolute_import)division)unicode_literals)base)resource_argsc                   .    \ rS rSrSr\S 5       rS rSrg)GetCsr   a  Get the CSR for a subordinate certificate authority that has not yet been activated.

Gets the PEM-encoded CSR for a subordinate certificate authority that is
awaiting user activation. The CSR should be signed by the issuing Certificate
Authority and uploaded back using the `subordinates activate` command.

## EXAMPLES

  To download the CSR for the 'server-tls-1' CA into a file called
  'server-tls-1.csr':

    $ {command} server-tls-1 --location=us-west1 --pool=my-pool > server-tls-1.csr
c                 h    [         R                  " U S5        U R                  R                  S5        g )Nzfor which to get the CSRzvalue(pemCsr))r   %AddCertAuthorityPositionalResourceArgdisplay_info	AddFormat)parsers    -lib/surface/privateca/subordinates/get_csr.pyArgsGetCsr.Args+   s+    77*,
!!"56    c                    [         R                  " SS9n[         R                  " SS9nUR                  R                  R                  5       nUR                  R                  UR                  UR                  5       S95      $ )Nv1)api_version)name)
privateca_baseGetClientInstanceGetMessagesModuleCONCEPTScertificate_authorityParse1projects_locations_caPools_certificateAuthoritiesFetchCPrivatecaProjectsLocationsCaPoolsCertificateAuthoritiesFetchRequestRelativeName)selfargsclientmessagesca_refs        r   Run
GetCsr.Run1   ss    --$?F//DAH]]00668FCCII	L	L$$& 
M 
() )r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r'   __static_attributes__r)   r   r   r	   r	      s      7 7
)r   r	   N)r.   
__future__r   r   r    googlecloudsdk.api_lib.privatecar   r   googlecloudsdk.calliope$googlecloudsdk.command_lib.privatecar   ReleaseTracksReleaseTrackGACommandr	   r)   r   r   <module>r9      sR    6 &  ' C ( > D%%(())T\\ ) *)r   