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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

������dZddlmZddlmZddlmZddlmZddlmZddlm	Z	ddl
mZdd	lm
Z
dd
lmZdZedzZd
dd�Zddd�Ze	je	je	jj��Gd�de	j������Zee_e	je	jje	jj��Gd�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�.�eZdZdZed���Zd�ZdS)�EnableAlphazHEnables a service for consumption for a project, folder or organization.c���tjd����|��tj|��tj�|��tj|��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.Argsrsd���'�{�;�;�;�G�G��O�O�O��"�6�*�*�*��O����'�'�'��#�F�+�+�+�+�+�c�R�|�d��r|j}n*tjjj�d���}|�d��r|j}nd}|�d��r|j}nd}tj	|j
||||j���}|jsX|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"r#�
validate_only�cAsynchronous operation is in progress... Use the following command to wait for its completion:
 {0}zOperation finished successfully)�IsSpecifiedrr�VALUES�core�Getr"r#r�
AddEnableRule�servicer$�async_�_OP_WAIT_CMD�format�namer
�status�Print)�self�argsrr"r#�op�cmds       r�RunzEnableAlpha.Runs,�����	�"�"�B���g�g��!�&�.�2�2�D�2�A�A�g�����!�!���{�f�f��f�����'�'���&�l�l��l�	�	#�����!��(�
�
�
�B���
�	
��
��!�!�"�'�*�*���
���
 � &��s���	
�	
�	
�
�J���6�7�7�7�7�7rN��__name__�
__module__�__qualname__�__doc__�staticmethodrr6�rrrrmsE������Q�P��
,�
,��<�
,�&8�&8�&8�&8�&8rrc�.�eZdZdZed���Zd�ZdS)�Enablez0Enables a service for consumption for a project.c��tjd����|��tj�|��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.
    rrN)r	rrrrrs rrzEnable.Args�sB���'�{�;�;�;�G�G��O�O�O��O����'�'�'�'�'rc�6�tjjj�d���}t|j��dkr!tj||jd��}ntj	||j��}|j
rdS|jrSt�
|j��}tj�d�
|����dSt%j|jtj��}t%j|��dS)z�Run 'services enable'.

    Args:
      args: argparse.Namespace, The arguments that this command was invoked
          with.

    Returns:
      Nothing.
    Tr �rNr%)rr'r(rr)�lenr+r�
EnableApiCall�BatchEnableApiCall�doner,r-r.r/r
r0r1r�
WaitOperation�GetOperation�PrintOperation)r2r3rr4r5s     rr6z
Enable.Run�s�����$�,�0�0�$�0�?�?�G�
�4�<���A����%�g�t�|�A��?�?�b�b��*�7�D�L�A�A�b�	�w�
��f��{�
������(�(�c�	�j���+�+1�6�#�;�;�8�8�8�
�f�	�	$�R�W�l�.G�	H�	H�B�� ��$�$�$�$�$rNr7r=rrr?r?�sB������8�8��	(�	(��<�	(�%�%�%�%�%rr?N)r;�
__future__rrr�googlecloudsdk.api_lib.servicesrr�googlecloudsdk.callioper�#googlecloudsdk.command_lib.servicesr	�googlecloudsdk.corer
r�_OP_BASE_CMDr-�_DETAILED_HELP_ALPHA�_DETAILED_HELP�Hidden�
ReleaseTracks�ReleaseTrack�ALPHA�
SilentCommandr�
detailed_help�BETA�GAr?r=rr�<module>rZs��� ��&�&�&�&�&�&�������'�'�'�'�'�'�9�9�9�9�9�9�8�8�8�8�8�8�(�(�(�(�(�(�<�<�<�<�<�<�#�#�#�#�#�#�*�*�*�*�*�*�1���j�(����+�+��\�����@�����D�%�+�,�,�68�68�68�68�68�$�$�68�68�-�,�
��68�p1������D�%�*�D�,=�,@�A�A�'%�'%�'%�'%�'%�T�
�'%�'%�B�A�'%�T&����r

Youez - 2016 - github.com/yon3zu
LinuXploit