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/run/workers/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/google-cloud-sdk/lib/surface/run/workers/__pycache__/update.cpython-311.pyc
�

�����8�dZddlmZddlmZddlmZddlmZddlmZddlm	Z	ddlm
Z
dd	lmZdd
lmZddlm
Z
ddlmZdd
lmZddlmZddlmZd�Zejejejj��Gd�dej������ZdS)z;Command for updating env vars and other configuration info.�)�
k8s_object)�base)�config_changes)�connection_context)�
exceptions)�flags)�
messages_util)�pretty_print)�
resource_args)�serverless_operations)�stages)�concept_parsers)�presentation_specs)�progress_trackerc�|�d}tj|���}|�tjd�����|�tj����|�tj����|�tj����|�tj����|�tj	����|�tj
����|�tj����|�tj����|�tj
����|�tj����|S)z9Returns an argument group with all container update args.z@
Container Flags

  The following flags apply to the container.
)�helpF)�required)r�
ArgumentGroup�AddArgumentr�ImageArg�MutexEnvVarsFlags�
MemoryFlag�CpuFlag�CommandFlag�ArgsFlag�SecretsFlags�AddVolumeMountFlag�RemoveVolumeMountFlag�ClearVolumeMountsFlag�GpuFlag)�	help_text�groups  �!lib/surface/run/workers/update.py�ContainerArgGroupr$!s_���)�
�
�)�
,�
,�
,�%����E�N�E�2�2�2�3�3�3����E�+�-�-�.�.�.����E�$�&�&�'�'�'����E�M�O�O�$�$�$����E�%�'�'�(�(�(����E�N�$�$�%�%�%����E�&�(�(�)�)�)����E�,�.�.�/�/�/����E�/�1�1�2�2�2����E�/�1�1�2�2�2����E�M�O�O�$�$�$�	�,�c�D�eZdZdZddd�Zed���Zd�Zd�Zd�Z	d	S)
�UpdatezHUpdate Cloud Run environment variables and other configuration settings.z"          {description}
          z�          To update one or more env vars:

              $ {command} myworker --update-env-vars=KEY1=VALUE1,KEY2=VALUE2
         )�DESCRIPTION�EXAMPLESc��tj|��tj|��tj|��tj|��tj|��tj|��tj|��tj|��tj	|d���tj
|d���tj|d���tj|d���tj
|��tj|��tj|��tj|d���tj|��tj|��tj||�����tj|��tj�|��t1��}|�|��t3jdt7jd���ddd���}tj|��tj|��tj|��tj |��tj!|��tj"|��tGj$|g���|��|j%�&d	��dS)
N�worker)�
resource_kind�WORKERT)�promptzWorker to deploy to.F)r�prefixes�none)'r�AddBinAuthzPolicyFlags�AddBinAuthzBreakglassFlag�AddCloudSQLFlags�AddCmekKeyFlag�"AddCmekKeyRevocationActionTypeFlag�AddCustomAudiencesFlag�AddEgressSettingsFlag�!AddEncryptionKeyShutdownHoursFlag�AddMinInstancesFlag�AddMaxInstancesFlag�AddMaxSurgeFlag�AddMaxUnavailableFlag�AddScalingFlag�AddRevisionSuffixArg�AddSessionAffinityFlag� AddVpcNetworkGroupFlagsForUpdate�AddRuntimeFlag�AddDescriptionFlag�AddVolumesFlags�ReleaseTrack�AddGpuTypeFlag�SERVICE_MESH_FLAG�AddToParserr$r�ResourcePresentationSpecr�GetWorkerResourceSpec�AddAsyncFlag�AddLabelsFlags�AddGeneralAnnotationFlags�AddServiceAccountFlag�AddClientNameAndVersionFlags�AddNoPromoteFlagr�
ConceptParser�display_info�	AddFormat)�cls�parser�container_args�worker_presentations    r#�ArgszUpdate.ArgsJs���	� ��(�(�(�	�#�F�+�+�+�	��6�"�"�"�	��� � � �	�,�V�4�4�4�	� ��(�(�(�	���'�'�'�	�+�F�3�3�3�	��f�H�=�=�=�=�	��f�H�=�=�=�=�	��&��9�9�9�9�	���h�?�?�?�?�	��� � � �	��v�&�&�&�	� ��(�(�(�	�*�6��J�J�J�J�	��� � � �	��V�$�$�$�	��&�#�"2�"2�"4�"4�5�5�5�	��� � � �	��'�'��/�/�/�&�(�(�N����v�&�&�&�,�E���+�4�8�8�8��������
��v����	��� � � �	�#�F�+�+�+�	���'�'�'�	�&�v�.�.�.�	��6�"�"�"��!�#6�"7�8�8�D�D�V�L�L�L�
��!�!�&�)�)�)�)�)r%c�p�tj|tjj|�����S)N)r�GetConnectionContextr�Product�RUNrD)�self�argss  r#�_ConnectionContextzUpdate._ConnectionContextts/���2��e�m���!2�!2�!4�!4���r%c��tj||���d���}|r3t|��dkr4t	|dt
j��rtjd���|�	dtj
tj����|�
tj|�������|S)NT)�
for_update�rzpNo configuration change requested. Did you mean to include the flags `--update-env-vars`, `--memory`, `--image`?)r�GetWorkerConfigurationChangesrD�len�
isinstancer�'SetClientNameAndVersionAnnotationChanger�NoConfigurationChangeError�insert�DeleteAnnotationChanger�BINAUTHZ_BREAKGLASS_ANNOTATION�append�SetLaunchStageAnnotationChange)r\r]�changess   r#�_GetBaseChangeszUpdate._GetBaseChangesys����1��d���!�!�d����G��
��G��������A�J��N�
�
�	�

�1�#�
�
��
�N�N�	��-��5�	
�	
�����N�N��5�d�6G�6G�6I�6I�J�J�����Nr%c���|�|��}|�|��}|jj���}tj|��tj|��5}|�	|��}tj|��}tj
|���}|rd}	d}
d}nd}	d}
d}tj|	||
|j���5}|�|||���||j|tj|d	���
��}ddd��n#1swxYwY|jr/t)jd�|j|�
����n\|r-t)jt1j||j����n-t)jd�|j�����|cddd��S#1swxYwYdS)z�Update the worker resource.

       Different from `deploy` in that it can only update the worker spec but
       no IAM or Cloud build changes.

    Args:
      args: Args!

    Returns:
      googlecloudsdk.api_lib.run.Service, the updated service
    )�include_create_revisionzDeploying...zDeployment failed�	deployingzUpdating...z
Update failed�updating)�failure_message�suppress_output�revision_suffix)�asyn�prefetch�
generate_nameNzFWorker [{{bold}}{worker}{{reset}}] is {result_message} asynchronously.)r+�result_messagez4Worker [{{bold}}{worker}{{reset}}] has been updated.)r+)rmr^�CONCEPTSr+�Parser�ValidateResourcer�Connect�	GetWorkerr�AdjustsTemplater
�WorkerStagesr�StagedProgressTracker�async_�
ReleaseWorkerrD�FlagIsExplicitlySetr
�Success�format�namer	� GetSuccessMessageForWorkerDeploy�
no_promote)
r\r]rl�conn_context�
worker_ref�clientr+�creates_revision�deployment_stages�progress_messagerrrx�trackers
             r#�Runz
Update.Run�s����"�"�4�(�(�G��*�*�4�0�0�L���%�+�+�-�-�J�	��:�&�&�&�	�	&�|�	4�	4�2�����
�+�+�f�'�7��@�@�� �-�"2�����
�$�)��-��$���(��)��#���1�
�
�)��+�	���
�
��%�%������������ �4�T�;L�M�M�&�
�
��

�
�
�
�
�
�
�
�
�
�
����
�
�
�
� 
�����
�$�f��{�>�%���	
�	
�	
�	
��	�
�
��<��$�/��������
�D�K�K���L������
�e2�2�2�2�2�2�2�2�2�2�2�2����2�2�2�2�2�2s9�1A+G�AD/�#G�/D3	�3G�6D3	�7BG�G�!GN)
�__name__�
__module__�__qualname__�__doc__�
detailed_help�classmethodrWr^rmr��r%r#r'r':s�������Q�P��
�		�	�-��'*�'*��;�'*�R���
���8D�D�D�D�Dr%r'N)r��googlecloudsdk.api_lib.runr�googlecloudsdk.callioper�googlecloudsdk.command_lib.runrrrrr	r
rrr
�(googlecloudsdk.command_lib.util.conceptsrr�googlecloudsdk.core.consolerr$�UniverseCompatible�
ReleaseTracksrD�ALPHA�Commandr'r�r%r#�<module>r�s���B�A�1�1�1�1�1�1�(�(�(�(�(�(�9�9�9�9�9�9�=�=�=�=�=�=�5�5�5�5�5�5�0�0�0�0�0�0�8�8�8�8�8�8�7�7�7�7�7�7�8�8�8�8�8�8�@�@�@�@�@�@�1�1�1�1�1�1�D�D�D�D�D�D�G�G�G�G�G�G�8�8�8�8�8�8����2�����D�%�+�,�,�]�]�]�]�]�T�\�]�]�-�,���]�]�]r%

Youez - 2016 - github.com/yon3zu
LinuXploit