HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //usr/lib/google-cloud-sdk/lib/surface/workbench/instances/__pycache__/update.cpython-312.pyc
�

�����8�dZddlmZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZd	d
d�Z
e
je
je
j j"e
j j$�Gd�d
e
j&���Ze
e_y)z%'workbench instances update' command.�)�absolute_import)�division)�unicode_literals)�	instances)�util)�base)�flagsz+
        Updates a workbench instance.
    a
    To update machine type for an instance, run:

        $ {command} example-instance --machine-type=n1-standard-8 --location=us-central1-a

    To update labels for an instance, run:

        $ {command} example-instance --labels=k1=v1,k2=v2 --location=us-central1-a
    )�DESCRIPTION�EXAMPLESc�&�eZdZdZed��Zd�Zy)�UpdatezUpdates a workbench instance.c�.�tj|�y)z Register flags for this command.N)r	�AddUpdateInstanceFlags)�parsers �)lib/surface/workbench/instances/update.py�ArgszUpdate.Args1s��
� � ��(�c�<�|j�}tj|�}tj|�}|j}|jt
j||��}t
j||||tjj��S)N)�operation_type)�ReleaseTrackr�	GetClient�GetMessages�projects_locations_instances�Patch�
instance_util�CreateInstanceUpdateRequest�	HandleLRO�
OperationType�UPDATE)�self�args�
release_track�client�messages�instance_service�	operations       r�Runz
Update.Run6s����%�%�'�M�
�^�^�M�
*�F����
�.�H��:�:�� �&�&��1�1�$��A�C�I��"�"�����$�2�2�9�9�;�;rN)�__name__�
__module__�__qualname__�__doc__�staticmethodrr'�rrr
r
,s��&��)��)�;rr
N)r+�
__future__rrr� googlecloudsdk.api_lib.workbenchrrr�googlecloudsdk.callioper�$googlecloudsdk.command_lib.workbenchr	�
DETAILED_HELP�DefaultUniverseOnly�
ReleaseTracksr�GA�BETA�Commandr
�
detailed_helpr-rr�<module>r9s���,�&��'�G�1�(�6�	�	�
�
�$�������D�%�%�(�(�$�*;�*;�*@�*@�A�;�T�\�\�;�B��;�,%��r