
    &                         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  SS
KJr  \R                   " \R"                  R$                  5       " S S\R&                  5      5       rg)z$Update a root certificate authority.    )absolute_import)division)unicode_literals)base)request_utils)
operations)resource_args)update_utils)labels_utilc                   .    \ rS rSrSr\S 5       rS rSrg)Update   zUpdate an existing root certificate authority.

## EXAMPLES
  To update labels on a root CA:

    $ {command} prod-root \
      --location=us-west1 \
      --pool=my-pool \
      --update-labels=foo=bar
c                 ^    [         R                  " U S5        [        R                  " U 5        g )Nz	to update)r	   %AddCertAuthorityPositionalResourceArgr   AddUpdateLabelsFlags)parsers    %lib/surface/privateca/roots/update.pyArgsUpdate.Args+   s     77L$$V,    c           	      |   [         R                  " SS9n[         R                  " SS9nUR                  R                  R                  5       nUR                  5       nUR                  R                  UR                  US95      n[        R                  " UR                  R                  R                  USS9  [        R                   " XR"                  5      u  pxUR                  R%                  UR'                  UUSR)                  U5      [*        R,                  " 5       S95      n	[.        R0                  " U	SSS9$ )Nv1)api_version)name)version,)r   certificateAuthority
updateMask	requestIdzUpdating Root CA.)privateca_baseGetClientInstanceGetMessagesModuleCONCEPTScertificate_authorityParseRelativeName1projects_locations_caPools_certificateAuthoritiesGetAPrivatecaProjectsLocationsCaPoolsCertificateAuthoritiesGetRequestr	   CheckExpectedCATypeCertificateAuthorityTypeValueValuesEnumSELF_SIGNEDr
   UpdateCAFromArgslabelsPatchCPrivatecaProjectsLocationsCaPoolsCertificateAuthoritiesPatchRequestjoinr   GenerateRequestIdr   Await)
selfargsclientmessagesca_refca_name
current_caca_to_updateupdate_mask	operations
             r   Run
Update.Run0   s    --$?F//DAH]]00668F!!#GIIMM	J	J 
K 
J
 %%%%99EE
 !- = =!!L HHNN	L	L!-xx,#557	 
M 
9:I I':MMr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r?   __static_attributes__rA   r   r   r   r      s!    	 - -Nr   r   N)rF   
__future__r   r   r    googlecloudsdk.api_lib.privatecar   r    r   googlecloudsdk.calliope$googlecloudsdk.command_lib.privatecar   r	   r
   $googlecloudsdk.command_lib.util.argsr   ReleaseTracksReleaseTrackGAUpdateCommandr   rA   r   r   <module>rR      sc    + &  ' C : ( ; > = < D%%(().NT .N *.Nr   