HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //usr/lib/google-cloud-sdk/lib/surface/container/azure/clusters/__pycache__/create.cpython-312.pyc
�

�����h�dZddlmZddlmZddlmZddlmZddlm	Z	ddl
mZddlm
Z
dd	lmZdd
lmZddlmZdZe	j$e	j&j(�Gd
�de	j*��Ze	j$e	j&j.�Gd�de��Zy)z-Command to create an Anthos cluster on Azure.�)�absolute_import)�division)�unicode_literals)�azure)�base)�
resource_args)�command_util)�	constants)�
endpoint_util)�flagsak
To create a cluster named ``my-cluster'' managed in location ``us-west1'', run:

$ {command} my-cluster --location=us-west1 --azure-region=AZURE_REGION --cluster-version=CLUSTER_VERSION --client=CLIENT --pod-address-cidr-blocks=POD_ADDRESS_CIDR_BLOCKS --resource-group-id=RESOURCE_GROUP_ID --ssh-public-key=SSH_PUBLIC_KEY --subnet-id=SUBNET_ID --vnet-id=VNET_ID
c�.�eZdZdZdeiZed��Zd�Zy)�Create�"Create an Anthos cluster on Azure.�EXAMPLESc�b�|jddd��}tj||�tj|�tj
|�tj|�tj|�tj|�tj|�tj|�tj|�tj|�tj|dd��tj|�tj|�tj |�tj"|�tj$|�tj&|d�tj(|d�tj*|�tj,|�tj.|�tj0|�tj2|�tj4|�tj6|�tj8|�tj:|�tj<|d�t>j@jC|�|jDjGtHjJ�y)	NzAuthentication configurationT)�mutex�requiredzthe cluster control planeF)r�clusterzcreation of the cluster)&�add_argument_groupr�$AddAzureClusterAndClientResourceArgsr�AddAzureServicesAuthentication�AddAzureRegion�AddEndpointSubnetId�	AddVnetId�AddResourceGroupId�AddServiceLoadBalancerSubnetId�AddPodAddressCidrBlocks�AddServiceAddressCidrBlocks�AddClusterVersion�AddSubnetID�	AddVMSize�AddSSHPublicKey�AddRootVolumeSize�AddMainVolumeSize�AddReplicaPlacements�AddTags�AddValidateOnly�AddDatabaseEncryption�AddConfigEncryption�AddProxyConfig�AddFleetProject�
AddAdminUsers�AddAdminGroups�AddDescription�AddAnnotations�
AddLogging�AddMonitoringConfigr�
ASYNC_FLAG�AddToParser�display_info�	AddFormatr
�AZURE_CLUSTERS_FORMAT)�parser�auth_config_groups  �.lib/surface/container/azure/clusters/create.py�ArgszCreate.Args+s����1�1�&�d�T�2����6�6��!��
�(�(�):�;�	���� �	���f�%�	�O�O�F��	���V�$�	�(�(��0�	�!�!�&�)�	�%�%�f�-�	���F�#�	���f�9�E�J�	�O�O�F��	���&�!�	���F�#�	���F�#�	���v�&�	�M�M�&�)�$�	���&�";�<�	����'�	���f�%�	���� �	���&�!�	�����	���� �	���� �	���� �	���V��	���f�d�+��O�O����'�
���!�!�)�"A�"A�B�c��tj|�j}tj|�5tj|�}tj�}tj|jdtj|j��}tj||||tj��cddd�S#1swYyxYw)zRuns the create command.�Creating)�action�kind�region)�resource_ref�resource_client�args�messager?N)r�ParseAzureClusterResourceArg�locationsIdr�GkemulticloudEndpointOverride�api_util�ClustersClientr	�ClusterMessage�azureClustersIdr
�AZURE�azure_regionr�AZURE_CLUSTER_KIND)�selfrC�location�cluster_ref�cluster_clientrDs      r9�Runz
Create.RunQs����9�9�$�?�K�K�H�	�	4�	4�X�	>�!�>�>�t�D�k��.�.�0�n��+�+�
�
%�
%������"�"�	�g��
 �
 �"�(����+�+��
?�	>�	>�s�BC�CN)	�__name__�
__module__�__qualname__�__doc__�	_EXAMPLES�
detailed_help�staticmethodr:rS�r;r9rr%s)��*��y�)�-��#C��#C�Jr;rc�L�eZdZdZeejjfd��Zy)�CreateAlpharc�.�tj|�y)z-Registers alpha track flags for this command.N)rr:)r7�tracks  r9r:zCreateAlpha.Argsjs���K�K��r;N)	rTrUrVrWrZr�ReleaseTrack�ALPHAr:r[r;r9r]r]fs&��*���*�*�0�0���r;r]N)rW�
__future__rrr�.googlecloudsdk.api_lib.container.gkemulticloudrrH�googlecloudsdk.callioper�*googlecloudsdk.command_lib.container.azurer�2googlecloudsdk.command_lib.container.gkemulticloudr	r
rrrX�
ReleaseTracksr`�GA�
CreateCommandrrar]r[r;r9�<module>rjs���4�&��'�L�(�D�K�H�L�D�
�	�����D�%�%�(�(�)�=�T�
�
�=�*�=�@����D�%�%�+�+�,��&��-�r;