| 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 : |
�
��� � �" � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddlm
Z d d
d�Ze j
e j e j j e j j e j j � � G d� d
e j � � � � � � Zee_ 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 � � e Zd ZdZ� fd�Zed� � � Zd� Zd� Z� xZ S )�UpdatezUUpdate a log scope.
Changes one or more properties associated with a log scope.
c �V �� t t | � � j |i |�� d | _ d S )N)�superr
�__init__�_current_scope)�self�args�kwargs� __class__s ��$lib/surface/logging/scopes/update.pyr zUpdate.__init__7 s3 �� � �E�&�$��� �$�1�&�1�1�1��D���� c � � | � dd�� � | � dd�� � | � ddt j � � 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� � � � � ����
=�
�
�
"�
"� � � � � � � r c � � i }g }ddg}|� d� � r|j |d<