
    
                        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  \R                  " \R                  R                  5      \R                    " S	 S
\R"                  5      5       5       rg)zUpdate a CA pool.    )base)request_utils)flags)
operations)resource_args)update_utils)labels_utilc                   .    \ rS rSrSr\S 5       rS rSrg)Update   a  Update an existing  CA Pool.

## EXAMPLES
  To update labels on a CA pool:

    $ {command} my-pool \
      --location=us-west1 \
      --update-labels=foo=bar

  To disable publishing CRLs on a CA pool:

    $ {command} my-pool \
      --location=us-west1 \
      --no-publish-crl
c                     [         R                  " U S5        [        R                  " U SS9  [        R                  " U 5        [        R
                  " U 5        [        R                  " U 5        g )Nz	to updateT)use_update_help_text)r   AddCaPoolPositionalResourceArgr   AddPublishingOptionsFlagsAddCaPoolIssuancePolicyFlagAddEncryptionKeyFlagr	   AddUpdateLabelsFlags)parsers    %lib/surface/privateca/pools/update.pyArgsUpdate.Args/   sO    00	##FF	%%f-	v&$$V,    c           	      4   [         R                  " S5      n[         R                  " S5      nUR                  R                  R                  5       nUR                  R                  UR                  UR                  5       S95      n[        R                  " XR                  5      u  pgUR                  R                  UR                  UR                  5       USR                  U5      [         R"                  " 5       S95      n[$        R&                  " USSS9$ )Nv1)name,)r   caPool
updateMask	requestIdzUpdating CA pool.)api_version)privateca_baseGetClientInstanceGetMessagesModuleCONCEPTSca_poolParseprojects_locations_caPoolsGet+PrivatecaProjectsLocationsCaPoolsGetRequestRelativeNamer   UpdateCaPoolFromArgslabelsPatch-PrivatecaProjectsLocationsCaPoolsPatchRequestjoinr   GenerateRequestIdr   Await)	selfargsclientmessagesca_pool_refcurrent_ca_poolpool_to_updateupdate_mask	operations	            r   Run
Update.Run8   s    --d3F//5H--''--/K77;;<<))+ 	= 	-.O #/"C"C$$#&N 1177>>))+!xx,#557	 	? 	9:I I':MMr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r;   __static_attributes__r=   r   r   r   r      s!      - -Nr   r   N)rB    googlecloudsdk.api_lib.privatecar   r!   r   googlecloudsdk.calliope$googlecloudsdk.command_lib.privatecar   r   r   r   $googlecloudsdk.command_lib.util.argsr	   ReleaseTracksReleaseTrackGADefaultUniverseOnlyUpdateCommandr   r=   r   r   <module>rN      sn     D : ( 6 ; > = < D%%(().NT .N  *.Nr   