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/vmware/networks/__pycache__/update.cpython-312.pyc
�

�������dZddlmZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZd	d
d�Z
ejejj �Gd�d
ej"��Zy)z!'vmware networks update' command.�)�absolute_import)�division)�unicode_literals)�NetworksClient)�base)�flags)�logz3
          Update a VMware Engine network.
        a�
          To update a network named `my-network` of type `STANDARD` by changing its description to `Example description`, run:

            $ {command} my-network --location=global --project=my-project --description='Example description'

          Or:

            $ {command} my-network --description='Example description'

          In the second example, the project is taken from gcloud properties core/project and the location is taken as `global`.

          To update a network named `my-network` of type `LEGACY` by changing its description to `Example description`, run:

            $ {command} my-network --location=us-west2 --project=my-project --description='Example description'

          Or:

            $ {command} my-network --location=us-west2 --description='Example description'

          In the last example, the project is taken from gcloud properties core/project. For VMware Engine networks of type `LEGACY`, you must always specify a region as the location.
    )�DESCRIPTION�EXAMPLESc�*�eZdZdZeZed��Zd�Zy)�Updatez,Update a Google Cloud VMware Engine network.c��tj|d��tjj	|�tjj|d�|jjd�|jdd��y)z Register flags for this command.T)�
positional�yamlz
--descriptionz:        Text describing the VMware Engine network
        )�helpN)	r�AddNetworkToParserr�
ASYNC_FLAG�AddToParser�
SetDefault�display_info�	AddFormat�add_argument)�parsers �%lib/surface/vmware/networks/update.py�ArgszUpdate.Args>si��
���V��5��O�O����'��O�O���v�t�,�
���!�!�&�)�
������
�c���|jjj�}t�}|j}|j||j��}|r#tj|jdd��y|j|j|�dj|j����}tj|j�d��|S)N)�descriptionzVMware Engine networkT)�kind�is_asyncz4waiting for VMware Engine network [{}] to be updated)�
operation_ref�message)r)�CONCEPTS�vmware_engine_network�Parser�async_r
rr	�UpdatedResource�name�WaitForOperation�GetOperationRef�format�RelativeName)�self�args�network�clientr �	operation�resources       r�Runz
Update.RunKs����m�m�1�1�7�7�9�G�
�
�F��{�{�H��
�
�g�4�3C�3C�
�D�I��	���
�.�.�6��G���&�&��,�,�Y�7�F�M�M�� � �"�
�'��H�����,�,�.�5L�M��OrN)	�__name__�
__module__�__qualname__�__doc__�
DETAILED_HELP�
detailed_help�staticmethodrr3�rrr
r
8s!��4��-��

��

�rr
N)r7�
__future__rrr�&googlecloudsdk.api_lib.vmware.networksr�googlecloudsdk.callioper�*googlecloudsdk.command_lib.vmware.networksr�googlecloudsdk.corer	r8�
ReleaseTracks�ReleaseTrack�GA�
UpdateCommandr
r;rr�<module>rEsj��(�&��'�A�(�<�#�	�	�
�
�<����D�%�%�(�(�)�#�T�
�
�#�*�#r