
                             d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 dd	d
Z ej                  ej                  j                         G d dej                               Zee_        y)z&'vmware sddc clusters delete' command.    )absolute_import)division)unicode_literals)IPAddressesClient)base)flagszP
          Delete external ip address in a VMware Engine private cloud.
        a  
          To delete external ip called ``first-ip'' in private cloud
          ``my-privatecloud'' and region ``us-central1'', run:

            $ {command} first-ip --privatecloud=my-privatecloud --region=us-central1 --project=my-project

          Or:

            $ {command} first-ip --privatecloud=my-privatecloud

          In the second example, the project and region are taken from gcloud properties core/project and vmware/region.
    )DESCRIPTIONEXAMPLESc                   &    e Zd ZdZed        Zd Zy)Deletez<Delete external ip address in a VMware Engine private cloud.c                 .    t        j                  |        y)z Register flags for this command.N)r   AddIPArgToParser)parsers    -lib/surface/vmware/sddc/ipaddresses/delete.pyArgszDelete.Args2   s     
6"    c                     |j                   j                  j                         }t               }|j	                  |      }|j                  ||d      }|j                  |dj                  |      d      S )NT)resource_pathencoded_cluster_groups_idz2waiting for external ip address [{}] to be deleted)	is_delete)CONCEPTSnameParser   r   GetResourcePathWaitForOperationformat)selfargsresourceclient	operationr   s         r   Runz
Delete.Run7   s|    }}!!'')H Fh'I**D + JM""GNN&* # , ,r   N)__name__
__module____qualname____doc__staticmethodr   r"    r   r   r   r   .   s    D# #,r   r   N)r&   
__future__r   r   r   .googlecloudsdk.api_lib.vmware.sddc.ipaddressesr   googlecloudsdk.callioper   &googlecloudsdk.command_lib.vmware.sddcr   DETAILED_HELPReleaseTracksReleaseTrackALPHADeleteCommandr   detailed_helpr(   r   r   <module>r3      sq    - &  ' L ( 8		* D%%++,,T , -,& % r   