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__/delete.cpython-312.pyc
�

��F����dZddlmZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZd	d
d�Z
ejejj �Gd�d
ej"��Zy)z!'vmware networks delete' command.�)�absolute_import)�division)�unicode_literals)�NetworksClient)�base)�flags)�logz3
          Delete a VMware Engine network.
        aB
          To delete a network called `my-network` of type `STANDARD` in project `my-project` and region `global`, run:

            $ {command} my-network --location=global --project=my-project

          Or:

            $ {command} my-network

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

          To delete a network called `my-network` of type `LEAGACY` in project `my-project` and region `us-west2`, run:

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

          Or:

            $ {command} my-network --location=us-west2

          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)�Deletez,Delete a Google Cloud VMware Engine network.c��tj|d��tjj	|�tjj|d�y)z Register flags for this command.T)�
positionalN)r�AddNetworkToParserr�
ASYNC_FLAG�AddToParser�
SetDefault)�parsers �%lib/surface/vmware/networks/delete.py�ArgszDelete.Args>s:��
���V��5��O�O����'��O�O���v�t�,�c�d�|jjj�}t�}|j}|j|�}|r$t
j|jdd��|S|j|j|�dj|j��d��S)NzVMware Engine networkT)�kind�is_asyncz4waiting for VMware Engine network [{}] to be deletedF)�
operation_ref�message�
has_result)
�CONCEPTS�vmware_engine_network�Parser�async_r
r	�DeletedResource�name�WaitForOperation�GetOperationRef�format�RelativeName)�self�args�network�clientr�	operations      r�Runz
Delete.RunEs����m�m�1�1�7�7�9�G�
�
�F��{�{�H��
�
�g�&�I��	���
�.�.�6��G�
���"�"��,�,�Y�7�F�M�M�� � �"�$��	#��rN)	�__name__�
__module__�__qualname__�__doc__�
DETAILED_HELP�
detailed_help�staticmethodrr-�rrr
r
8s!��4��-��-��-�rr
N)r1�
__future__rrr�&googlecloudsdk.api_lib.vmware.networksr�googlecloudsdk.callioper�*googlecloudsdk.command_lib.vmware.networksr�googlecloudsdk.corer	r2�
ReleaseTracks�ReleaseTrack�GA�
DeleteCommandr
r5rr�<module>r?sj��(�&��'�A�(�<�#�	�	�
�
�<����D�%�%�(�(�)��T�
�
��*�r