
                             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  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&Undelete a root Certificate Authority.    )absolute_import)division)unicode_literals)base)request_utils)
operations)resource_args)logc                   .    \ rS rSrSr\S 5       rS rSrg)Undelete   an  Undelete a root Certificate Authority.

Restores a root Certificate Authority that has been deleted. A Certificate
Authority can be undeleted within 30 days of being deleted. Use this command
to halt the deletion process. An undeleted CA will move to DISABLED state.

## EXAMPLES

To undelete a root CA:

    $ {command} prod-root --location=us-west1 --pool=my-pool
c                 2    [         R                  " U S5        g )Nzto undelete)r	   %AddCertAuthorityPositionalResourceArg)parsers    'lib/surface/privateca/roots/undelete.pyArgsUndelete.Args,   s    77N    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[        R                  " UR                  R                  R                  USS9  UR                  R                  UR!                  UR                  5       UR#                  [$        R&                  " 5       S9S95      n[(        R*                  " USSS9  [,        R.                  R1                  SR3                  UR                  5       5      5        g )	Nv1)api_version)name)version)	requestId)r   #undeleteCertificateAuthorityRequestzUndeleting Root CAzUndeleted Root CA [{}].)privateca_baseGetClientInstanceGetMessagesModuleCONCEPTScertificate_authorityParse1projects_locations_caPools_certificateAuthoritiesGetAPrivatecaProjectsLocationsCaPoolsCertificateAuthoritiesGetRequestRelativeNamer	   CheckExpectedCATypeCertificateAuthorityTypeValueValuesEnumSELF_SIGNEDr   FPrivatecaProjectsLocationsCaPoolsCertificateAuthoritiesUndeleteRequest#UndeleteCertificateAuthorityRequestr   GenerateRequestIdr   Awaitr
   statusPrintformat)selfargsclientmessagesca_ref
current_ca	operations          r   RunUndelete.Run0   s.   --$?F//DAH]]00668FIIMM	J	J$$& 
K 
()J
 %%%%99EE
 HHQQ	O	O$$&0800'99; 1 = 
P 
>?I Y 4$GJJ.55f6I6I6KLMr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r8   __static_attributes__r:   r   r   r   r      s#     O ONr   r   N)r?   
__future__r   r   r    googlecloudsdk.api_lib.privatecar   r   r   googlecloudsdk.calliope$googlecloudsdk.command_lib.privatecar   r	   googlecloudsdk.corer
   ReleaseTracksReleaseTrackGASilentCommandr   r:   r   r   <module>rK      s`    - &  ' C : ( ; > # D%%((),Nt!! ,N *,Nr   