| 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 : |
�
��C
� � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl m
Z
ej ej ej
j � � ej G d� d ej � � � � � � � � Zd
dd�e_ d
S )z'logging redact' command.� )�absolute_import)�division)�unicode_literals)�util)�base)�
console_ioc �4 � e Zd ZdZed� � � Zd� Zd� ZdS )�RedactzRedact log entries.c �� � | � dd�� � | � ddd�� � | � dd d
�� � | � ddd�� � t j | d
� � dS )z Register flags for this command.� bucket_idz,Log bucket from which to redact log entries.)�helpz
--locationTzLocation of the bucket.)�requiredr
z--log-filterFz�A filter specifying which log entries to Redact. The filter must be no more than 20k characters. An empty filter matches all log entries.z--reasonz�The reason for the redaction. This field will be recorded in redacted log entries and should omit sensitive information. Required to be less than 1024 characters.zlog entries to redactN)�add_argumentr �
AddParentArgs)�parsers �lib/surface/logging/redact.py�ArgszRedact.Args s� � � ����
;� � � � � ����t�*C� � � � � �����
7� � � � � �����
9� � � � � ��v�6�7�7�7�7�7� 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)�filter�name�reason)�
log_filterr �PromptContinuer �CreateResourceName�GetParentFromArgs�locationr �GetMessages�RedactLogEntriesRequestr � GetClient�entriesr
)�self�args�bucket_name�requests r �_RunzRedact._Run? s� � ��?� ���
4�4�� � � � �)����"�4�(�(�+�t�}�
�
� ���� �K� �� � �8�8���[��� 9� � �G� �>���#�*�*�7�3�3�3r c �, � | � |� � S )z�This is what gets called when the user runs this command.
Args:
args: An argparse namespace. All the arguments that were provided to this
command invocation.
Returns:
A redact_log_entries operation.
)r) )r% r&