| 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
mZ ej ej j � � G d
� dej � � � � ZdS )
z$Enable a root certificate authority.� )�absolute_import)�division)�unicode_literals)�base)�
request_utils)�
operations)�
resource_args)�logc �. � e Zd ZdZed� � � Zd� ZdS )�Enablea Enable a root certificate authority.
Enables a root certificate authority. The root certificate authority will be
allowed to issue certificates once enabled.
## EXAMPLES
To enable a root CA:
$ {command} prod-root --location=us-west1 --pool=my-pool
c �0 � t j | d� � d S )Nz to enable)r �%AddCertAuthorityPositionalResourceArg)�parsers �%lib/surface/privateca/roots/enable.py�ArgszEnable.Args+ s � ��7���L�L�L�L�L� c �� � t j d�� � }t j d�� � }|j j � � � }|j � |� |� � � �� � � � }t j |j j
j |d�� � |j � |� |� � � |� t% j � � �� � �� � � � }t) j |dd�� � t, j � d� |� � � � � � � d S ) N�v1)�api_version)�name)�version)� requestId)r �!enableCertificateAuthorityRequestzEnabling Root CAzEnabled Root CA [{}].)�privateca_base�GetClientInstance�GetMessagesModule�CONCEPTS�certificate_authority�Parse�1projects_locations_caPools_certificateAuthorities�Get�APrivatecaProjectsLocationsCaPoolsCertificateAuthoritiesGetRequest�RelativeNamer �CheckExpectedCAType�CertificateAuthority�TypeValueValuesEnum�SELF_SIGNEDr �DPrivatecaProjectsLocationsCaPoolsCertificateAuthoritiesEnableRequest�!EnableCertificateAuthorityRequestr �GenerateRequestIdr �Awaitr
�status�Print�format)�self�args�client�messages�ca_ref�
current_ca� operations r �Runz
Enable.Run/ sd � �
�
-�$�
?�
?�
?�F��/�D�A�A�A�H�
�]�
0�
6�
6�
8�
8�F��I�M�M�� J� J��$�$�&�&�
K�
(�
(�)� )�J�
�%��%�9�E���� � � �
�H�O�O�� M� M��$�$�&�&�.6�
.�
.�'�9�;�;� /� =� =�
N�
>�
>�?� ?�I� ��Y� 2��E�E�E�E��J���,�3�3�F�4G�4G�4I�4I�J�J�K�K�K�K�Kr N)�__name__�
__module__�__qualname__�__doc__�staticmethodr r6 � r r r r sP � � � � � �
�
� �M� M� �<�M�L� L� L� L� Lr 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<