| 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/integrations/__pycache__/ |
Upload File : |
�
���
� � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl m
Z
ddlmZ dd lm
Z
dd
lmZ ddlmZ ej ej j ej j � � ej G d� d
ej � � � � � � ZdS )zICommand for creating or replacing an application from YAML specification.� )�absolute_import)�division)�unicode_literals)�types_utils)�base)�pretty_print)�deprecation_util)�flags)�
messages_util)�run_apps_operationsc �8 � e Zd ZdZddd�Zed� � � Zd� ZdS )�Update�Update a Cloud Run Integration.z" {description}
z� To update a redis integration to change the cache size
$ {command} redis-integration --parameters=memory-size-gb=5
)�DESCRIPTION�EXAMPLESc � � t j |� � t j |� � t j |� � t j |� � dS )z\Set up arguments for this command.
Args:
parser: An argparse.ArgumentParser.
N)r
�AddNamePositionalArg�AddServiceUpdateArgs�AddParametersArg�AddServiceAccountArg)�cls�parsers �&lib/surface/run/integrations/update.py�ArgszUpdate.Args1 sN � �
��v�&�&�&� ��v�&�&�&� ��6�"�"�"� ��v�&�&�&�&�&� c � � t j � � t j � � |j }|j }|j }t
j |� � }| � � � }t j
||� � 5 }|� � � |� ||||�� � |�
|� � }|� |j � � } t! j |� � }
t% j d� � t% j t+ j |
j |d�� � � � t+ j |
|| � � }|rc|sat% j d� � t% j |� � t% j t+ j | � � � |� � � � ddd� � dS # 1 swxY w Y dS )r )�name�
parameters�add_service�remove_service� �updated)�integration_type�integration_name�actionN)r �CheckIfEndOfSaleApplies�DeprecationNoticer r r r
�
GetParameters�ReleaseTrackr �Connect�VerifyLocation�UpdateIntegration�GetIntegrationGeneric�GetIntegrationStatus�idr �GetTypeMetadataByResourcer �Info�Successr �GetSuccessMessager# �GetCallToAction�CheckStatusMessage)�self�argsr r r$ r �
release_track�client�resource�resource_status�metadata�call_to_actions r �Runz
Update.Run= s � � �,�.�.�.��&�(�(�(��"�K��(�N��y���$�T�*�*�J��%�%�'�'�M� � $�T�=� 9� 9� "
�V������������!�'� � )� )� )� �-�-�.>�?�?�h��3�3�H�K�@�@�o��6�x�@�@�h���������
�
)�'�8�/��� � �� � � %�4�
�H�o�� �n�
�
��
���"������.�)�)�)����,��!�!�#�#�%5�
�
�
�
�
�="
� "
� "
� "
� "
� "
� "
� "
� "
� "
� "
� "
���� "
� "
� "
� "
� "
� "
s �9D.F4�4F8�;F8N)�__name__�
__module__�__qualname__�__doc__�
detailed_help�classmethodr r>