| 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/services/__pycache__/ |
Upload File : |
�
�� � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddl
mZ dd l
mZ dd
l
mZ ddl
mZ ddlmZ d
Zedz Ze j e j e j e j j � � G d� de j � � � � � � � � Z e j e j j e j j � � G d� de j � � � � ZdS )zservices disable command.� )�absolute_import)�division)�unicode_literals)�
services_util)�serviceusage)�base)�arg_parsers)�common_flags)�log)�
properties)�
console_ioz gcloud beta services operations zwait {0}c �. � e Zd ZdZed� � � Zd� ZdS )�DisableAlphaa� Disable a service for consumption for a project, folder or organization.
This command disables one or more previously-enabled services for
consumption.
To see a list of the enabled services for a project, run:
$ {parent_command} list
More information on listing services can be found at:
https://cloud.google.com/service-usage/docs/list-services and on
disabling a service at:
https://cloud.google.com/service-usage/docs/enable-disable
## EXAMPLES
To disable a service called `my-consumed-service` for the current
project, run:
$ {command} my-consumed-service
To disable a service called `my-consumed-service` for the project
`my-project`, run:
$ {command} my-consumed-service --project=my-project
To disable a service called `my-consumed-service` for the folder
`my-folder`, run:
$ {command} my-consumed-service --folder=my-folder
To disable a service called `my-consumed-service` for the organization
`my-organization`, run:
$ {command} my-consumed-service --organization=my-organization
To run the same command asynchronously (non-blocking), run:
$ {command} my-consumed-service --async
c � � t j d�� � � | � � t j | � � t j � | � � t j | � � | � ddd�� � dS )��Args is called by calliope to gather arguments for this command.
Args:
parser: An argparse parser that you can use to add arguments that go on
the command line after this command. Positional arguments are allowed.
�
to disable��suffix�--force�
store_truea_ If specified, the disable call will proceed even if there are enabled services which depend on the service to be disabled, or the service to be disabled was used in the last 30 days, or the service to be disabled was enabled in the last 3 days. Forcing the call means that the services which depend on the service to be disabled will also be disabled.��action�helpN)r
�consumer_service_flag�AddToParser�add_resource_argsr �
ASYNC_FLAG�validate_only_args�add_argument��parsers �lib/surface/services/disable.py�ArgszDisableAlpha.ArgsQ s� � � �&�l�;�;�;�G�G��O�O�O��"�6�*�*�*��O����'�'�'��#�F�+�+�+�
�����
2� � � � � � � c �R � |� d� � r|j }n*t j j j � d�� � }|� d� � r|j }nd}|� d� � r|j }nd}|j D ]�}t j
|� � }t j |� � }|rB|� d� � rt j � � �t j |dd� � � }|s�nt j |||j |||j �
� � }|j sa|j r��|j rRt* � |j � � } t0 j � d� | � � � � ����t0 j � d� � dS )
��Run 'services disable'.
Args:
args: argparse.Namespace, The arguments that this command was invoked
with.
Returns:
Nothing.
�projectT��required�folderN�organization�quietF��default�throw_if_unattended)�forcer* r+ �
validate_only�cAsynchronous operation is in progress... Use the following command to wait for its completion:
{0}zOperation finished successfully)�IsSpecifiedr'