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: //lib/google-cloud-sdk/lib/surface/bigtable/instances/__pycache__/update.cpython-312.pyc
�

��!	���dZddlmZddlmZddlmZddlZddlmZddl	m
Z
ddlmZdd	l
mZGd
�de
j�Zy)z"bigtable instances update command.�)�absolute_import)�division)�unicode_literalsN)�util)�base)�	arguments)�logc�N�eZdZdZdej
d�iZed��Zd�Z	y)�UpdateInstancez%Modify an existing Bigtable instance.�EXAMPLESz�          To update the display name for an instance, run:

            $ {command} my-instance-id --display-name="Updated Instance Name"

          c�z�tj|�j�tj|dd��y)z Register flags for this command.z	to updateT)�
positionalN)r�ArgAdder�AddInstanceDisplayName�AddInstanceResourceArg)�parsers �(lib/surface/bigtable/instances/update.py�ArgszUpdateInstance.Args*s-�����v��5�5�7�
�$�$�V�[�T�J�c���tj�}tj|j�}tj�}|j
j
|j|j����}d|_	|jr|j|_|j
j|�}tj|jd��|S)z�This is what gets called when the user runs this command.

    Args:
      args: an argparse namespace. All the arguments that were provided to this
        command invocation.

    Returns:
      Some value that we want to have printed later.
    )�nameN�instance)�kind)�
bigtable_util�GetAdminClient�GetInstanceRefr�GetAdminMessages�projects_instances�Get�(BigtableadminProjectsInstancesGetRequest�RelativeName�state�display_name�displayName�Updater	�UpdatedResourcer)�self�args�cli�ref�msgsrs      r�RunzUpdateInstance.Run0s����
&�
&�
(�C�
�
&�
&�t�}�}�
5�C��)�)�+�D��%�%�)�)��5�5�3�;K�;K�;M�5�N�P�H��H�N����!�.�.�h���%�%�,�,�X�6�H�����
�
�J�7��OrN)
�__name__�
__module__�__qualname__�__doc__�textwrap�dedent�
detailed_help�staticmethodrr,�rrrrs?��-��
�(�/�/����-��K��K�
rr)r0�
__future__rrrr1�googlecloudsdk.api_lib.bigtablerr�googlecloudsdk.callioper�#googlecloudsdk.command_lib.bigtabler�googlecloudsdk.corer	�
UpdateCommandrr5rr�<module>r<s4��)�&��'��A�(�9�#�)�T�'�'�)r