| 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 lm
Z
dd
lmZ G d� dej � � Zd
S )zCommand to unset properties.� )�absolute_import)�division)�unicode_literals)�base)�
exceptions)�
completers)�flags)�log)�
propertiesc �d � e Zd ZdZdej � � � iZed� � � Z d� Z
dS )�Unseta� Unset a Google Cloud CLI property.
By default, unsets the property in your active configuration only. Use the
`--installation` flag to unset the property across all configurations. See
`gcloud topic configurations` for more information.
## AVAILABLE PROPERTIES
{properties}
## EXAMPLES
To unset the project property in the core section, run:
$ {command} project
To unset the zone property in the compute section, run:
$ {command} compute/zone
r c � � | � ddt j d�� � t j � | � � dS )zAdds args for this command.�propertyzSECTION/PROPERTYzkThe property to be unset. Note that SECTION/ is optional while referring to properties in the core section.)�metavar� completer�helpN)�add_argumentr �PropertiesCompleterr �INSTALLATION_FLAG�AddToParser)�parsers �lib/surface/config/unset.py�Argsz
Unset.Args6 sQ � � ����"��0�7� � 8� 8� 8�
��'�'��/�/�/�/�/� c �b � |j rt j j nt j j }t j |j � � }|st j dd� � �t j |d|�� � d}|j rd}t j � d�
||� � � � dS )zRuns this command.r z'Must be in the form: [SECTION/]PROPERTYN)�scope� z
installation zUnset {0}property [{1}].)�installationr �Scope�INSTALLATION�USER�
FromStringr �c_exc�InvalidArgumentException�PersistPropertyr
�status�Print�format)�self�argsr �prop� scope_msgs r �Runz Unset.RunB s� � �.2�.?� (�Z�
�
*�
*��"�'�
� � ���/�/�D�� A��*�
�?�
A�
A� A���t�T��7�7�7�7��I��� "�!�i��J���/�6�6�y�$�G�G�H�H�H�H�Hr N)�__name__�
__module__�__qualname__�__doc__r �VALUES�
GetHelpString�
detailed_help�staticmethodr r- � r r r
r
sf � � � � � �� �* ��!2�!@�!@�!B�!B�C�-�� 0� 0� �<� 0�I� I� I� I� Ir r
N)r1 �
__future__r r r �googlecloudsdk.callioper r r# �!googlecloudsdk.command_lib.configr r �googlecloudsdk.corer
r �Commandr
r6 r r �<module>r<