| 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/logging/__pycache__/ |
Upload File : |
�
��� � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl m
Z
ej ej ej
j ej
j ej
j � � G d� d ej � � � � � � Zd
dd�e_ d
S )z'logging copy' command.� )�absolute_import)�division)�unicode_literals)�util)�base)�
console_ioc �4 � e Zd ZdZed� � � Zd� Zd� ZdS )�CopyzCopy log entries.c �� � | � dd�� � | � dd�� � | � ddd� � � | � d
dd� � � t j | d
� � dS )z Register flags for this command.� bucket_idz:Id of the log bucket to copy logs from. Example: my-bucket)�help�destinationzjDestination to copy logs to. Example: Cloud Storage bucket: storage.googleapis.com/my-cloud-storage-bucketz
--locationTzLocation of the log bucket.)�requiredr
z--log-filterFz�A filter specifying which log entries to copy. The filter must be no more than 20k characters. An empty filter matches all log entries.zlog entries to copyN)�add_argumentr �
AddParentArgs)�parsers �lib/surface/logging/copy.py�Argsz Copy.Args! s� � � ����
I� � � � � ����
>� � � � � ����t�*G� � � � � �����
7� � � � � ��v�4�5�5�5�5�5� c � � |j st j dd�� � t j t j t j |� � d|j � � d|j � � }t j � � � |j
|j |�� � }t j � � j �
|� � S )Nz(An empty filter matches all log entries.T)�cancel_on_no� locations�buckets)r �filter�name)�
log_filterr �PromptContinuer �CreateResourceName�GetParentFromArgs�locationr �GetMessages�CopyLogEntriesRequestr � GetClient�entriesr
)�self�args�parent_name�requests r �_Runz Copy._Run>