
                         D   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	r\R                  " \R                  R                   5       " S
 S\R"                  5      5       r\R                  " \R                  R&                  5       " S S\5      5       rg)z<Command to create a node pool in an Anthos cluster on Azure.    )azure)base)resource_args)command_util)	constants)endpoint_util)flagsa  
To create a node pool named ``my-node-pool'' in a cluster named ``my-cluster''
managed in location ``us-west1'', run:

$ {command} my-node-pool --cluster=my-cluster --location=us-west1 --node-version=NODE_VERSION --ssh-public-key=SSH_PUBLIC_KEY --subnet-id=SUBNET_ID
c                   6    \ rS rSrSrS\0r\S 5       rS r	Sr
g)Create#   1Create a node pool in an Anthos cluster on Azure.EXAMPLESc                    [         R                  " U SSS9  [        R                  " U 5        [        R                  " U 5        [        R
                  " U S5        [        R                  " U 5        [        R                  " U 5        [        R                  " U 5        [        R                  " U S5        [        R                  " U S5        [        R                  " U 5        [        R                  " U 5        [        R                  " U 5        [        R                  " U 5        [        R                  " U 5        [        R                   " U 5        [        R"                  " U S5        [        R$                  " U S5        [&        R(                  R+                  U 5        U R,                  R/                  [0        R2                  5        g )Nz	to createT)
positionalzthe node poolz	node poolzcreation of the node pool)r   AddAzureNodePoolResourceArgr	   AddNodeVersionAddAutoscalingAddSubnetID	AddVMSizeAddSSHPublicKeyAddRootVolumeSizeAddTagsAddValidateOnlyAddMaxPodsPerNodeAddNodeLabelsAddNodeTaintsAddAzureAvailabilityZoneAddProxyConfigAddConfigEncryptionAddAnnotationsAddEnableAutoRepairr   
ASYNC_FLAGAddToParserdisplay_info	AddFormatr   AZURE_NODE_POOL_FORMAT)parsers    0lib/surface/container/azure/node_pools/create.pyArgsCreate.Args)   s,   -- 
 	 	fo.	OOF	&!	F#	MM&+&	&"=>	F#			""6*	 	f%	-	fd+OO'
!!)"B"BC    c           	         [         R                  " U5      R                  n[        R                  " U5         [         R                  " U5      n[
        R                  " 5       n[        R                  " UR                  SUR                  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cluster)resource_refresource_clientargsmessagekindN)r   ParseAzureNodePoolResourceArglocationsIdr   GkemulticloudEndpointOverrideapi_utilNodePoolsClientr   NodePoolMessageazureNodePoolsIdazureClustersIdr   r   AZURE_NODEPOOL_KIND)selfr2   locationnode_pool_refnode_pool_clientr3   s         r(   Run
Create.RunB   s    ::4@LLH		4	4X	>#AA$Gm!113,,

(
(//g
   $*,, 
?	>	>s   A;B<<
C
 N)__name__
__module____qualname____firstlineno____doc__	_EXAMPLESdetailed_helpstaticmethodr)   rB   __static_attributes__rD   r+   r(   r   r   #   s(    9y)-D D0r+   r   c                   V    \ rS rSrSr\\R                  R                  4S j5       r	Sr
g)CreateAlphaV   r   c                 Z    [         R                  U 5        [        R                  " U 5        g)z-Registers alpha track flags for this command.N)r   r)   r	   AddImageType)r'   tracks     r(   r)   CreateAlpha.ArgsZ   s     KK	vr+   rD   N)rE   rF   rG   rH   rI   rL   r   ReleaseTrackALPHAr)   rM   rD   r+   r(   rO   rO   V   s&    9**00  r+   rO   N)rI   .googlecloudsdk.api_lib.container.gkemulticloudr   r8   googlecloudsdk.callioper   *googlecloudsdk.command_lib.container.azurer   2googlecloudsdk.command_lib.container.gkemulticloudr   r   r   r	   rJ   ReleaseTracksrU   GACreateCommandr   rV   rO   rD   r+   r(   <module>r^      s    C M ( D K H L D	 D%%(()/T / */d D%%++,&  -r+   