
                         *   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	KJr  SS
KJr  SSKJr  Sr\	R$                  " \	R&                  R(                  \	R&                  R*                  5       " S S\	R,                  5      5       rg)z"Command to create an Azure client.    )absolute_import)division)unicode_literals)azure)base)resource_args)command_util)	constants)endpoint_util)flagsz
To create an Azure client named ``my-client'' in
location ``us-west1'', run:

$ {command} my-client --location=us-west1 --application-id=APP_ID --tenant-id=TENANT_ID
c                   6    \ rS rSrSrS\0r\S 5       rS r	Sr
g)Create'   zCreate an Azure client.EXAMPLESc                 6   [         R                  " U S5        U R                  SSSS9  U R                  SSSSS	9  [        R                  R                  U 5        [        R                  " U S
5        U R                  R                  [        R                  5        g )Nz	to createz--tenant-idTzKAzure Active Directory (AAD) tenant ID (GUID) to associate with the client.)requiredhelpz--application-idapp_idz:Azure Active Directory (AAD) Application/Client ID (GUID).)r   destr   zcreation of the client)r   AddAzureClientResourceArgadd_argumentr   
ASYNC_FLAGAddToParserr   AddValidateOnlydisplay_info	AddFormatr
   AZURE_CLIENT_FORMAT)parsers    -lib/surface/container/azure/clients/create.pyArgsCreate.Args-   s    ++FK@
	   I	   	OO'	&":;
!!)"?"?@    c           	         [         R                  " U5      R                  n[        R                  " U5         [         R                  " U5      n[
        R                  " 5       n[        R                  " UR                  SS9n[        R                  " UUUU[        R                  S9sSSS5        $ ! , (       d  f       g= f)zRuns the create command.Creating)action)resource_refresource_clientmessageargskindN)r   ParseAzureClientResourceArglocationsIdr   GkemulticloudEndpointOverrideapi_utilClientsClientr	   ClientMessageazureClientsIdr   r
   AZURE_CLIENT_KIND)selfr)   location
client_ref
api_clientr(   s         r   Run
Create.RunB   s    88>JJH		4	4X	> <<TBj))+j**

#
#Jg   !$** 
?	>	>s   A0B11
B? N)__name__
__module____qualname____firstlineno____doc__	_EXAMPLESdetailed_helpstaticmethodr    r7   __static_attributes__r9   r"   r   r   r   '   s(    y)-A A(r"   r   N)r>   
__future__r   r   r   .googlecloudsdk.api_lib.container.gkemulticloudr   r.   googlecloudsdk.callioper   *googlecloudsdk.command_lib.container.azurer   2googlecloudsdk.command_lib.container.gkemulticloudr	   r
   r   r   r?   ReleaseTracksReleaseTrackALPHAGACreateCommandr   r9   r"   r   <module>rM      sv    ) &  ' L ( D K H L D	 D%%++T->->-A-AB)T ) C)r"   