
    r
                         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)z''vmware nsx credentials reset' command.    )absolute_import)division)unicode_literals)PrivateCloudsClient)base)flags)logzg
          Reset VMware NSX sign-in credentials associated with a VMware Engine private cloud.
        a  
          To reset sign-in credentials for NSX in private cloud `my-private-cloud`, run:


            $ {command} --private-cloud=my-private-cloud --location=us-west2-a --project=my-project

          Or:

            $ {command} --private-cloud=my-private-cloud

          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)Reset/   zcReset VMware NSX sign-in credentials associated with a Google Cloud VMware Engine private cloud.
  c                     [         R                  " U 5        [        R                  R	                  U 5        [        R                  R                  U S5        U R                  R                  S5        g)z Register flags for this command.TyamlN)r   AddPrivatecloudArgToParserr   
ASYNC_FLAGAddToParser
SetDefaultdisplay_info	AddFormat)parsers    :lib/surface/vmware/private_clouds/nsx/credentials/reset.pyArgs
Reset.Args6   sL     
$$V,OO'OOvt,
!!&)    c                    UR                   R                  R                  5       n[        5       nUR                  nUR                  U5      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nsx credentialsT)kindis_asyncz,waiting for nsx credentials [{}] to be reset)operation_refmessage)r   )CONCEPTSprivate_cloudParser   async_ResetNsxCredentialsr	   UpdatedResourcenameWaitForOperationGetOperationRefformatRelativeName)selfargsr"   clientr   	operationresources          r   Run	Reset.Run>   s    MM//557M "F{{H**=9I	)../@4P&&,,Y7>EE&&(
 ' H 224;LMOr    N)__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr   r1   __static_attributes__r3   r   r   r   r   /   s%      -* *r   r   N)r8   
__future__r   r   r   +googlecloudsdk.api_lib.vmware.privatecloudsr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.vmwarer   googlecloudsdk.corer	   r9   ReleaseTracksReleaseTrackGAUpdateCommandr   r3   r   r   <module>rF      sh    . &  ' K ( 3 #		* D%%(()D  *r   