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/scopes/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

�����"�dZddlmZddlmZddlmZddlmZddlmZddlm	Z	ddlm
Zd	d
d�Ze	j
e	je	jje	jje	jj��Gd�d
e	j������Zee_dS)z 'logging scopes update' command.�)�absolute_import)�division)�unicode_literals)�util)�arg_parsers)�base)�
exceptionsz3
        Update the properties of a log scope.
    aH
     To update the description of a log scope in a project, run:

        $ {command} my-scope --description=my-new-description --project=my-project

     To update the resource name of a log scope in a project. Ensure that you
     provide all the resource names including the existing ones. For example,
     if the log scope has the resource name my-project, and you want to update
     the log scope to have the resource name another-project, run the following:

        $ {command} my-scope --resource-names=projects/my-project,projects/another-project --project=my-project
    )�DESCRIPTION�EXAMPLESc�D��eZdZdZ�fd�Zed���Zd�Zd�Z�xZ	S)�UpdatezUUpdate a log scope.

  Changes one or more properties associated with a log scope.
  c�V��tt|��j|i|��d|_dS)N)�superr
�__init__�_current_scope)�self�args�kwargs�	__class__s   ��$lib/surface/logging/scopes/update.pyrzUpdate.__init__7s3��� �E�&�$��� �$�1�&�1�1�1��D����c��|�dd���|�dd���|�ddtj��d�	��d
S)z Register flags for this command.�LOG_SCOPE_IDz"The ID of the log scope to update.)�help�
--descriptionz$A new description for the log scope.�--resource-namesz.A new set of resource names for the log scope.�RESOURCE_NAMES)r�type�metavarN)�add_argumentr�ArgList)�parsers r�ArgszUpdate.Args;s�������A���������D���������
=�
�
 �
"�
"� �	�����rc��i}g}ddg}|�d��r|j|d<|�d��|�d��r|j|d<|�d��|st	j|d���t
j��j�	t
j
���t
jt
jt
j
|j�����dd��d	|j��t
j
��jdi|��d
�|�������S)
Nrr�description�resource_names�
resourceNamesz.Please specify at least one property to update�	locations�global�	logScopes�,)�name�logScope�
updateMask�)�IsSpecifiedr%�appendr&�calliope_exceptions�MinimumArgumentExceptionr�	GetClient�projects_locations_logScopes�Patch�GetMessages�-LoggingProjectsLocationsLogScopesPatchRequest�CreateResourceName�GetProjectResource�project�RelativeNamer�LogScope�join)rr�
scope_data�update_mask�parameter_namess     r�_RunzUpdate._RunKsn���J��K�&�(:�;�O����
�&�&�(�"&�"2�j�������'�'�'����(�)�)�+�$(�$7�j��!����)�*�*�*����8�
�K�
�
���>���8�>�>�����H�H��(��'��+�D�L�9�9�F�F�H�H�����
��!���1�T�%�'�'�0�>�>�:�>�>��x�x��,�,�	I�	
�	
���rc�,�|�|��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:
      The updated log scope.
    )rB)rrs  r�Runz
Update.Runks���9�9�T�?�?�r)
�__name__�
__module__�__qualname__�__doc__r�staticmethodr#rBrD�
__classcell__)rs@rr
r
-s|�������
��
������
�
��<�
����@
�
�
�
�
�
�
rr
N)rH�
__future__rrr�googlecloudsdk.api_lib.loggingr�googlecloudsdk.callioperrr	r2�
DETAILED_HELP�UniverseCompatible�
ReleaseTracks�ReleaseTrack�ALPHA�BETA�GA�
UpdateCommandr
�
detailed_helpr/rr�<module>rWs,��'�&�&�&�&�&�&�&�������'�'�'�'�'�'�/�/�/�/�/�/�/�/�/�/�/�/�(�(�(�(�(�(�E�E�E�E�E�E���	��
�&��������T�.�3�T�5F�5I���D�D�D�D�D�T�
�D�D�����D�N%����r

Youez - 2016 - github.com/yon3zu
LinuXploit