
                             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y)z.'vmware vcenter credentials describe' command.    )absolute_import)division)unicode_literals)PrivateCloudsClient)base)flagszn
          Retrieve VMware vCenter sign-in credentials associated with a VMware Engine private cloud.
        a  
          To get sign-in credentials for vCenter 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                   *    e Zd ZdZeZed        Zd Zy)Describez8Describe Google Cloud VMware Engine vCenter credentials.c                 V    t        j                  |        | j                  ddd       y)z Register flags for this command.z
--usernameTzH        The username of the user to be queried for credentials.
        )hiddenhelpN)r   AddPrivatecloudArgToParseradd_argument)parsers    Alib/surface/vmware/private_clouds/vcenter/credentials/describe.pyArgszDescribe.Args4   s0     
$$V,
      c                     |j                   j                  j                         }t               }|j	                  ||j
                        S )N)CONCEPTSprivate_cloudParser   GetVcenterCredentialsusername)selfargsresourceclients       r   RunzDescribe.Run@   s9    }}**002H "F''$--@@r   N)	__name__
__module____qualname____doc__DETAILED_HELPdetailed_helpstaticmethodr   r     r   r   r   r   .   s"    @-	 	Ar   r   N)r$   
__future__r   r   r   +googlecloudsdk.api_lib.vmware.privatecloudsr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.vmwarer   r%   ReleaseTracksReleaseTrackGADescribeCommandr   r(   r   r   <module>r1      sj    5 &  ' K ( 3		* D%%(()At## A *Ar   