| 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 lm
Z
dd
lmZ dZedz Zd
dd�Zddd�Ze j e j e j j � � G d� de j � � � � � � Zee_ e j e j j e j j � � G d� de j � � � � Zee_ dS )zservices enable command.� )�absolute_import)�division)�unicode_literals)�
services_util)�serviceusage)�base)�common_flags)�log)�
propertiesz gcloud beta services operations zwait {0}a� This command enables a service for consumption for a project, folder or organization.
To see a list of available services for a project, run:
$ {parent_command} list --available
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
a� To enable a service called `my-consumed-service` on the current
project, run:
$ {command} my-consumed-service
To enable a service called `my-consumed-service` on the project
`my-project`, run:
$ {command} my-consumed-service --project=my-project
To enable a service called `my-consumed-service` on the folder
`my-folder, run:
$ {command} my-consumed-service --folder=my-folder
To enable a service called `my-consumed-service` on 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
To enable services called `service1`, `service2`, and `service3` on the
current project, run:
$ {command} service1 service2 service3
)�DESCRIPTION�EXAMPLESa� This command enables a service for consumption for a project.
To see a list of available services for a project, run:
$ {parent_command} list --available
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
a� To enable a service called `my-consumed-service` on the current
project, run:
$ {command} my-consumed-service
To run the same command asynchronously (non-blocking), run:
$ {command} my-consumed-service --async
To enable services called `service1`, `service2`, and `service3` on the
current project, run:
$ {command} service1 service2 service3
c �. � e Zd ZdZed� � � Zd� ZdS )�EnableAlphazHEnables a service for consumption for a project, folder or organization.c �� � t j d�� � � | � � t j | � � t j � | � � t j | � � dS )z�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 enable��suffixN)r �available_service_flag�AddToParser�add_resource_argsr �
ASYNC_FLAG�validate_only_args��parsers �lib/surface/services/enable.py�ArgszEnableAlpha.Argsr sd � � �'�{�;�;�;�G�G��O�O�O��"�6�*�*�*��O����'�'�'��#�F�+�+�+�+�+� c �R � |� d� � r|j }n*t j j j � d�� � }|� d� � r|j }nd}|� d� � r|j }nd}t j |j
||||j �� � }|j sX|j rQt � |j � � }t j � d� |� � � � t j � d � � dS )
z�Run 'services enable'.
Args:
args: argparse.Namespace, The arguments that this command was invoked
with.
Returns:
Nothing.
�projectT��required�folderN�organization)r"