403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/google-cloud-sdk/lib/surface/logging/__pycache__/redact.cpython-311.pyc
�

��C
���dZddlmZddlmZddlmZddlmZddlmZddl	m
Z
ejejej
j��ejGd�d	ej��������Zd
dd�e_d
S)z'logging redact' command.�)�absolute_import)�division)�unicode_literals)�util)�base)�
console_ioc�4�eZdZdZed���Zd�Zd�ZdS)�RedactzRedact log entries.c���|�dd���|�ddd���|�dd	d
���|�ddd���tj|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��|jstjdd���tjtjtj|��d|j��d|j��}tj���	|j||j
���}tj��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�3rc�,�|�|��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&s  r�Runz
Redact.RunSs���9�9�T�?�?�rN)�__name__�
__module__�__qualname__�__doc__�staticmethodrr)r+�rrr
r
sS���������8�8��<�8�<4�4�4�(
�
�
�
�
rr
zR        {command} starts the process to redact log entries from a log bucket.
    a�        To start a redact log entries operation, run:

          $ {command} "BUCKET_ID --location=LOCATION --reason='redacting logs'"

        To redact log entries in a specific time window, run:

          $ {command} "BUCKET_ID  --location=LOCATION --reason='redacting logs within a window' --log-filter='timestamp<="2021-05-31T23:59:59Z" AND timestamp>="2021-05-31T00:00:00Z"'"
    )�DESCRIPTION�EXAMPLESN)r/�
__future__rrr�googlecloudsdk.api_lib.loggingr�googlecloudsdk.callioper�googlecloudsdk.core.consoler�DefaultUniverseOnly�
ReleaseTracks�ReleaseTrack�GA�Hidden�Commandr
�
detailed_helpr1rr�<module>r?s�� ��&�&�&�&�&�&�������'�'�'�'�'�'�/�/�/�/�/�/�(�(�(�(�(�(�2�2�2�2�2�2������D�%�(�)�)���@�@�@�@�@�T�\�@�@�
��*�)���@�H��	
�
����r

Youez - 2016 - github.com/yon3zu
LinuXploit