
    
                         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lmZ d	d
dZ ej                  ej                  j                          G d dej"                               Zy)zD'vmware private-clouds management-dns-zone-bindings delete' command.    )absolute_import)division)unicode_literals)ManagementDNSZoneBindingClient)base)flags)logz9
          Delete a management DNS zone binding.
        a  
          To delete a management DNS zone binding called `my-mgmt-dns-zone-binding` in private cloud
          `my-private-cloud`, in location `us-east2-b`, run:

            $ {command} my-mgmt-dns-zone-binding --project=my-project --private-cloud=my-private-cloud --location=us-east2-b

          Or:

            $ {command} my-mgmt-dns-zone-binding --private-cloud=my-private-cloud

          In the second example, the project and location are taken from gcloud properties `core/project` and `compute/zone` respectively.
    )DESCRIPTIONEXAMPLESc                   *    e Zd ZdZeZed        Zd Zy)Deletez%Delete a management DNS zone binding.c                     t        j                  |        t        j                  j	                  |        t        j                  j                  | d       y)z Register flags for this command.TN)r   &AddManagementDnsZoneBindingArgToParserr   
ASYNC_FLAGAddToParser
SetDefault)parsers    Hlib/surface/vmware/private_clouds/management_dns_zone_bindings/delete.pyArgszDelete.Args5   s8     
008OO'OOvt,    c                    |j                   j                  j                         }t               }|j                  }|j                  |      }|r$t        j                  |j                  dd       |S |j                  |j                  |      dj                  |j                               d       t        j                  |j                         dd       |S )Nzmanagement DNS zone bindingT)kindis_asyncz:waiting for management DNS zone binding [{}] to be deletedF)operation_refmessage
has_result)CONCEPTSmanagement_dns_zone_bindingParser   async_r   r	   DeletedResourcenameWaitForOperationGetOperationRefformatRelativeName)selfargsmdzbclientr   	operations         r   Runz
Delete.Run<   s    ==44::<D+-F{{Hd#I	
..<tM
,,Y7!"(&):):)<"=%  Q
 * r   N)	__name__
__module____qualname____doc__DETAILED_HELPdetailed_helpstaticmethodr   r,    r   r   r   r   /   s!    --- -r   r   N)r0   
__future__r   r   r   6googlecloudsdk.api_lib.vmware.managementdnszonebindingr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.vmwarer   googlecloudsdk.corer	   r1   ReleaseTracksReleaseTrackGADeleteCommandr   r4   r   r   <module>r>      sk    K &  ' a ( 3 #		* D%%(()T  *r   