| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/google-cloud-sdk/lib/surface/privateca/roots/__pycache__/ |
Upload File : |
�
��& � �� � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl mZ ddl
mZ ddl
mZ dd l
m
Z
dd
lmZ ej ej j � � G d� dej � � � � Zd
S )z$Update a root certificate authority.� )�absolute_import)�division)�unicode_literals)�base)�
request_utils)�
operations)�
resource_args)�update_utils)�labels_utilc �. � e Zd ZdZed� � � Zd� ZdS )�Updatez�Update 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 �X � t j | d� � t j | � � d S )Nz to update)r �%AddCertAuthorityPositionalResourceArgr �AddUpdateLabelsFlags)�parsers �%lib/surface/privateca/roots/update.py�ArgszUpdate.Args+ s, � ��7���L�L�L��$�V�,�,�,�,�,� c �t � t j d�� � }t j d�� � }|j j � � � }|� � � }|j � |� |�� � � � }t j |j j
j |d�� � t j ||j � � \ }}|j � |� ||d� |� � t+ j � � �� � � � } t/ j | dd�� � S )N�v1)�api_version)�name)�version�,)r �certificateAuthority�
updateMask� requestIdzUpdating Root CA.)�privateca_base�GetClientInstance�GetMessagesModule�CONCEPTS�certificate_authority�Parse�RelativeName�1projects_locations_caPools_certificateAuthorities�Get�APrivatecaProjectsLocationsCaPoolsCertificateAuthoritiesGetRequestr �CheckExpectedCAType�CertificateAuthority�TypeValueValuesEnum�SELF_SIGNEDr
�UpdateCAFromArgs�labels�Patch�CPrivatecaProjectsLocationsCaPoolsCertificateAuthoritiesPatchRequest�joinr �GenerateRequestIdr �Await)
�self�args�client�messages�ca_ref�ca_name�
current_ca�ca_to_update�update_mask� operations
r �Runz
Update.Run0 sA � �
�
-�$�
?�
?�
?�F��/�D�A�A�A�H�
�]�
0�
6�
6�
8�
8�F��!�!�#�#�G��I�M�M�� J� J��
K�
�
�� �J�
�%��%�9�E���� � � �
!-� =��j��!!� !!��L�+� �H�N�N�� L� L��!-��x�x��,�,�#�5�7�7�
M�
9�
9�:� :�I� ��I�':��M�M�M�Mr N)�__name__�
__module__�__qualname__�__doc__�staticmethodr r= � r r r
r
sM � � � � � � � � �-� -� �<�-�N� N� N� N� Nr r
N)rA �
__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
rC r r �<module>rM s" �� +� *� &� &� &� &� &� &� � � � � � � '� '� '� '� '� '� C� C� C� C� C� C� :� :� :� :� :� :� (� (� (� (� (� (� ;� ;� ;� ;� ;� ;� >� >� >� >� >� >� =� =� =� =� =� =� <� <� <� <� <� <� ���D�%�(�)�)�.N� .N� .N� .N� .N�T�
� .N� .N� *�)�.N� .N� .Nr