| 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/config/__pycache__/ |
Upload File : |
�
��� � �� � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl m
Z
ddl mZ dd l mZ dd
l
mZ ddl
mZ ddlmZ dd
lmZ ej G d� dej � � � � ZdS )zCommand to set properties.� )�absolute_import)�division)�unicode_literals)�base)�
exceptions)�
completers)�config_validators)�flags)�log)�
properties)�
console_io)�storec �d � e Zd ZdZdej � � � iZed� � � Z d� Z
dS )�Setad Set a Google Cloud CLI property.
{command} sets the specified property in your active configuration only. A
property governs the behavior of a specific aspect of Google Cloud CLI such as
the service account to use or the verbosity level of logs. To
set the property across all configurations, use the `--installation` flag. For
more information regarding creating and using configurations, see
`gcloud topic configurations`.
To view a list of properties currently in use, run `gcloud config list`.
To unset properties, use `gcloud config unset`.
Google Cloud CLI comes with a `default` configuration. To create multiple
configurations, use `gcloud config configurations create`, and
`gcloud config configurations activate` to switch between them.
Note: If you are using Cloud Shell, your gcloud command-line tool preferences
are stored in a temporary `tmp` folder, set for your current tab only, and do
not persist across sessions. For details on how to make these configurations
persist, refer to the Cloud Shell
guide on setting gcloud command-line tool preferences:
https://cloud.google.com/shell/docs/configuring-cloud-shell#gcloud_command-line_tool_preferences.
## AVAILABLE PROPERTIES
{properties}
## EXAMPLES
To set the `project` property in the core section, run:
$ {command} project PROJECT_ID
To set the `zone` property in the `compute` section, run:
$ {command} compute/zone ZONE_NAME
To disable prompting for scripting, run:
$ {command} disable_prompts true
To set a proxy with the appropriate type, and specify the address and port on
which to reach it, run:
$ {command} proxy/type http
$ {command} proxy/address 1.234.56.78
$ {command} proxy/port 8080
For a full list of accepted values, see
https://cloud.google.com/sdk/gcloud/reference/topic/configurations#AVAILABLE-PROPERTIES.
r c �� � | � ddt j d�� � | � dt j d�� � t j � | � � dS ) zAdds args for this command.�propertyzSECTION/PROPERTYad Property to be set. Note that SECTION/ is optional while referring to properties in the core section, i.e., using either `core/project` or `project` is a valid way of setting a project. Using section names is required for setting other properties like `compute/region`. Consult the Available Properties section below for a comprehensive list of properties.)�metavar� completer�help�valuezValue to be set.)r r N)�add_argumentr �PropertiesCompleter�PropertyValueCompleterr
�INSTALLATION_FLAG�AddToParser)�parsers �lib/surface/config/set.py�ArgszSet.ArgsZ s| � � ����"��0�2� � 3� 3� 3� �����3�
� � !� !� !�
��'�'��/�/�/�/�/� c �, � |j rt j j nt j j }t j |j � � }|st j dd� � �d}|j rd}|t j j
j k rt j
|j � � d}|t j j j k r3t j |j � � t j ||j � � }|t j j j k rt j |j d�� � }|t j j j k rt j |j d�� � }|j t j j j k rt j |j |� � }d }|t j j j k r3t9 j |j � � }t j |j |� � }|t j j j k r4t j |j � � }t j! |j � � p|}|rJ|j"