
    /                         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 update' command.    )absolute_import)division)unicode_literals)ManagementDNSZoneBindingClient)base)flags)logz9
          Update a management DNS zone binding.
        a\  
          To update a management DNS zone binding called `my-mgmt-dns-zone-binding` in private cloud `my-private-cloud` and zone `us-west2-a` with description `New Description`, run:

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

            Or:

            $ {command} my-mgmt-dns-zone-binding --private-cloud=my-private-cloud --description="New Description"

           In the second example, the project and location are taken from gcloud properties `core/project` and compute/zone.
    )DESCRIPTIONEXAMPLESc                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)Update/   z%Update a management DNS zone binding.c                    [         R                  " U 5        [        R                  R	                  U 5        [        R                  R                  U S5        U R                  R                  S5        U R                  SSSS9  g)z Register flags for this command.Tyamlz--descriptionz{        Text describing the binding resource that represents the network getting bound to the management DNS zone.
        )requiredhelpN)	r   &AddManagementDnsZoneBindingArgToParserr   
ASYNC_FLAGAddToParser
SetDefaultdisplay_info	AddFormatadd_argument)parsers    Hlib/surface/vmware/private_clouds/management_dns_zone_bindings/update.pyArgsUpdate.Args5   sj     
008OO'OOvt,
!!&)
      c                    UR                   R                  R                  5       n[        5       nUR	                  X!R
                  5      nUR                  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$ )Nzmanagement DNS zone bindingT)kindis_asyncz:waiting for management DNS zone binding [{}] to be updated)operation_refmessage)r    )CONCEPTSmanagement_dns_zone_bindingParser   r   descriptionasync_r	   UpdatedResourcenameWaitForOperationGetOperationRefformatRelativeName)selfargsmdzbclient	operationr!   resources          r   Run
Update.RunC   s    ==44::<D+-Fd$4$45I{{H	)..!>O&&,,Y7!"(&):):)<"= ' ?H ))+2OPOr    N)__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr   r5   __static_attributes__r7   r   r   r   r   /   s!    -- r   r   N)r<   
__future__r   r   r   6googlecloudsdk.api_lib.vmware.managementdnszonebindingr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.vmwarer   googlecloudsdk.corer	   r=   ReleaseTracksReleaseTrackGAUpdateCommandr   r7   r   r   <module>rJ      sk    K '  ' a ( 3 #	
	( D%%(()$T $ *$r   