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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

��3��t�dZddlmZddlmZddlmZddlZddlZddlZddlm	Z
ddlmZddlm
Z
dd	lmZdd
lmZddlmZdd
lmZddlmZdd
lmZddlmZddlmZddlmZddlmZ ej!d��Z"ddiZ#dZ$ej%ej&j'��Gd�dej(����Z)dS)zDeploys a function locally.�)�absolute_import)�division)�unicode_literalsN)�client)�base)�
exceptions)�parser_extensions)�flags)�source_util)�util)�
env_vars_util)�map_util)�log)�
console_io)�filesa�    Your function {name} is serving at localhost:{port}.

    To call this locally deployed function using gcloud:
    gcloud alpha functions local call {name} [--data=DATA] | [--cloud-event=CLOUD_EVENT]

    To call local HTTP functions using curl:
    curl -m 60 -X POST localhost:{port} -H "Content-Type: application/json" -d '{{}}'

    To call local CloudEvent and Background functions using curl, please see:
    https://cloud.google.com/functions/docs/running/calling
    �DESCRIPTIONzE
        `{command}` Deploy a Google Cloud Function locally.
        zus-central1c�,�eZdZdZeZed���Zd�Zde	j
deje
ejffd�Zde	j
deje
e
fdeje
e
ffd�Zd	eje
e
fd
eje
ddfd�Zd
eje
de
fd
�ZdS)�Deployz'Deploy a Google Cloud Function locally.c��tj|��tj|��tj|��t	j|��t	j|��t	j|��t	j|��tj
|��tj|��t	j|d���dS)NT)�hidden)
�local_flags�AddDeploymentNameFlag�AddPortFlag�AddBuilderFlag�	flag_util�AddEntryPointFlag�AddRuntimeFlag�AddIgnoreFileFlag�
AddSourceFlagr
�AddBuildEnvVarsFlags�AddUpdateEnvVarsFlags�AddGen2Flag)�parsers �%lib/surface/functions/local/deploy.py�ArgszDeploy.ArgsBs����%�f�-�-�-���F�#�#�#���v�&�&�&�
���'�'�'�
��V�$�$�$�
���'�'�'�
��F�#�#�#��&�v�.�.�.��'��/�/�/���&��.�.�.�.�.�.�c�0�tj��|�|��}tjt
jj���}td�|�	t��jD����}|�d��}|�
||��|jd}tj��5}t#j||�dd��|�d�����}tj||�d	��|�d
��|�d��||�d���
��ddd��n#1swxYwYtj||�dd��|�d��|���t*j�t0�||�dd�������dS)N)�
release_trackc��h|]	}|j��
S�)�name)�.0�rs  r$�	<setcomp>zDeploy.Run.<locals>.<setcomp>Ys��M�M�M�!�q�v�M�M�Mr&r
r�source�.zignore-file)�source_path�ignore_file�	--builder�	--runtime�
--entry-point�build-env-vars)r+�builder�runtime�entry_point�path�build_env_varsz--port�8080�env-vars)r+�port�env_vars�labels)r+r>)r�ValidateDependencies�_CreateAndUpdateLabels�	client_v2�FunctionsClientr�ReleaseTrack�ALPHA�sorted�ListRuntimes�_REGION�runtimes�get�_ValidateFlags�NAME�
file_utils�TemporaryDirectoryr�CreateSourcesZipFile�RunPack�RunDockerContainerr�status�Print�_LOCAL_DEPLOY_MESSAGE�format)	�self�argsr@rrJr
r+�tmp_dirr:s	         r$�Runz
Deploy.RunTs:�������
�
(�
(��
.�
.�F�
�
&�T�5F�5L�
M�
M�
M�F��M�M�v�':�':�7�'C�'C�'L�M�M�M�N�N�H��J�J�w���E�����x�(�(�(��9�Q�<�D�	�	&�	(�	(�@�G�
�
-�
��i�i��#�.�.��i�i�
�.�.����d�
�l�� �9�9�[�1�1� �9�9�[�1�1�$�y�y��9�9��"(�*�*�-=�">�">�@�@�@�@�
@�@�@�@�@�@�@�@�@�@�@����@�@�@�@�	���!&���8�V�!<�!<�%+�Z�Z�
�%;�%;�#)�+�+�+�+�
�J���*�1�1�
��	�	�(�F�3�3�2�5�5�6�6�6�6�6s�B%E?�?F�FrX�returnc��i}tj|jd��}tj|�dd����}tj|�dd����}tj|�dd����}|�||��|d<tjd|��}tj	|fi|��|d<tjd|��}tj	|fi|��|d<|S)Nrr
z{}r=r6)
r�GetDockerContainerLabelsrM�json�loadsrK�_ApplyNewFlagsr�GetMapFlagsFromArgs�
ApplyMapFlags)	rWrXr@�
old_labels�	old_flags�old_env_vars�old_build_env_varsr?r;s	         r$rBzDeploy._CreateAndUpdateLabelsts��
�F��.�t�y��|�<�<�J��
�:�>�>�'�4�8�8�9�9�I��:�j�n�n�Z��>�>�?�?�L���J�N�N�3C�T�$J�$J�K�K���)�)�$�	�:�:�F�7�O��+�J��=�=�H�!�/��I�I��I�I�F�:���1�2B�D�I�I�N�'�5�� .� .�,� .� .�F����Mr&rdc�r�i|�|����}d�|���D��}|S)Nc�*�i|]\}}d|v�	d|v�
||��S)rMr=r*)r,�k�vs   r$�
<dictcomp>z)Deploy._ApplyNewFlags.<locals>.<dictcomp>�s6��
5�
5�
5�f�q�!��a�K�K�:��?�?���#2�?�?r&)�GetSpecifiedArgs�items)rWrXrdr
s    r$r`zDeploy._ApplyNewFlags�sG��4�y�4�D�1�1�3�3�4�E�
5�
5����
�
�
5�
5�
5�E��Lr&r
rJNc��d|vrtjdd���d|vrd|vr|�|��|d<|�d��|vr9tj�d��|�|��|d<dSdS)Nr5zFlag `--entry-point` required.r3r4z'--runtime must be one of the following:)r�RequiredArgumentException�_PromptUserForRuntimerKr�outrT)rWr
rJs   r$rLzDeploy._ValidateFlags�s����e�#�#��0�
�;�
�
���%���K�u�$<�$<��5�5�h�?�?�e�K���y�y����X�-�-�	�g�m�m�=�>�>�>��5�5�h�?�?�e�K����.�-r&c��tj��stjdd���tj|d���}||S)Nr4z5Flag `--runtime` required when builder not specified.zPlease select a runtime:
)�message)r�	CanPromptrro�PromptChoice)rWrJ�idxs   r$rpzDeploy._PromptUserForRuntime�sY����!�!���0�
�N�
�
���
!��6����C��C�=�r&)�__name__�
__module__�__qualname__�__doc__�_DETAILED_HELP�
detailed_help�staticmethodr%rZr	�	Namespace�typing�Dict�str�AnyrBr`�SetrLrpr*r&r$rr<s,������/�/� �-��/�/��<�/�"6�6�6�@�#�-��28�+�c�6�:�o�2N�����(�!2�!<�� &��C��H� 5��:@�+�c�3�h�:O�����@�&�+�c�3�h�"7�@�%�z�#��@�37�@�@�@�@��F�J�s�O��������r&r)*rz�
__future__rrrr^�textwrapr�#googlecloudsdk.api_lib.functions.v2rrC�googlecloudsdk.callioperrr	�$googlecloudsdk.command_lib.functionsr
rr�*googlecloudsdk.command_lib.functions.localrr�.googlecloudsdk.command_lib.functions.v2.deployr
�$googlecloudsdk.command_lib.util.argsr�googlecloudsdk.corer�googlecloudsdk.core.consoler�googlecloudsdk.core.utilrrN�dedentrUr{rI�
ReleaseTracksrErF�Commandrr*r&r$�<module>r�s���"�!�&�&�&�&�&�&�������'�'�'�'�'�'���������
�
�
�
�C�C�C�C�C�C�(�(�(�(�(�(�.�.�.�.�.�.�5�5�5�5�5�5�C�C�C�C�C�C�<�<�<�<�<�<�K�K�K�K�K�K�;�;�;�;�;�;�H�H�H�H�H�H�9�9�9�9�9�9�#�#�#�#�#�#�2�2�2�2�2�2�8�8�8�8�8�8�(���)�	�	������
�����D�%�+�,�,�g�g�g�g�g�T�\�g�g�-�,�g�g�gr&

Youez - 2016 - github.com/yon3zu
LinuXploit