
                             S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  SSKJr  S	S
S.r\R                  " \R                  R                   5       " S S\R"                  5      5       rg)zD'vmware private-clouds management-dns-zone-bindings create' command.    )absolute_import)division)unicode_literals)ManagementDNSZoneBindingClient)base)flags)logz9
          Create a management DNS zone binding.
        a  
          To create a management DNS zone binding called `my-mgmt-dns-zone-binding` that corresponds to the vmware engine network `sample-vmware-engine-network` 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 --vmware-engine-network=sample-vmware-engine-network

          Or:

            $ {command} my-mgmt-dns-zone-binding --private-cloud=my-private-cloud --vmware-engine-network=sample-vmware-engine-network

          In the second example, the project and location are taken from gcloud properties `core/project` and `compute/zone` respectively.
    )DESCRIPTIONEXAMPLESc                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)Create/   z%Create a management DNS zone binding.c                 f   [         R                  " U 5        [        R                  R	                  U 5        [        R                  R                  U S5        U R                  R                  S5        U R                  SS9nUR                  SSSS9  UR                  SSS	S9  U R                  S
SS9  g)z Register flags for this command.Tyaml)requiredz--vpc-networkFzx        Resource name of the Google Cloud VPC network to bind to the management DNS zone of the  private cloud.
        )r   helpz--vmware-engine-networkzq        Resource name of VMware Engine network to bind to the management DNS zone of the  private cloud.
        z--descriptionz{        Text describing the binding resource that represents the network getting bound to the management DNS zone.
        )r   N)
r   &AddManagementDnsZoneBindingArgToParserr   
ASYNC_FLAGAddToParser
SetDefaultdisplay_info	AddFormatadd_mutually_exclusive_groupadd_argument)parsergroups     Hlib/surface/vmware/private_clouds/management_dns_zone_bindings/create.pyArgsCreate.Args5   s     
008OO'OOvt,
!!&)///>E	   
!         c                    UR                   R                  R                  5       n[        5       nUR                  nUR                  UUR                  UR                  UR                  S9nU(       a!  [        R                  " UR                  SSS9  g UR                  UR                  U5      SR                  UR                  5       5      S9n[        R                  " UR                  5       SS9  U$ )N)vpc_networkvmware_engine_networkdescriptionzmanagement DNS zone bindingT)kindis_asyncz:waiting for management DNS zone binding [{}] to be created)operation_refmessage)r%   )CONCEPTSmanagement_dns_zone_bindingParser   async_r   r"   r#   r$   r	   CreatedResourcenameWaitForOperationGetOperationRefformatRelativeName)selfargsmdzbclientr&   	operationresources          r   Run
Create.RunO   s    ==44::<D+-F{{H$$"88$$	  I 	
..<tM&&,,Y7!"(&):):)<"= ' ?H ))+2OPOr     N)__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr   r9   __static_attributes__r;   r    r   r   r   /   s!    -- 2r    r   N)r@   
__future__r   r   r   6googlecloudsdk.api_lib.vmware.managementdnszonebindingr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.vmwarer   googlecloudsdk.corer	   rA   ReleaseTracksReleaseTrackGACreateCommandr   r;   r    r   <module>rN      si    K &  ' a ( 3 #		* D%%(()3T 3 *3r    