
    z                        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lmZ dd	lmZ dd
lmZ dZ e	j$                  e	j&                  j(                  e	j&                  j*                         G d de	j,                               Zy)zACommand to get Anthos Multi-Cloud server configuration for Azure.    )absolute_import)division)unicode_literals)	locations)base)resource_args)	constants)endpoint_util)logzv
To return supported Azure regions and valid versions in location ``us-west1'', run:

$ {command} --location=us-west1
c                   .    e Zd ZdZdeiZed        Zd Zy)GetServerConfigz6Get Anthos Multi-Cloud server configuration for Azure.EXAMPLESc                     t        j                  | d       | j                  j                  t        j
                         y )Nzto get server configuration)r   AddLocationResourceArgdisplay_info	AddFormatr	   AZURE_SERVER_CONFIG_FORMAT)parsers    0lib/surface/container/azure/get_server_config.pyArgszGetServerConfig.Args*   s-    ((1NO
!!)"F"FG    c                 p   |j                   j                  j                         }t        j                  |j
                        5  t        j                  j                  dj                  |j
                               t        j                         }|j                  |      cddd       S # 1 sw Y   yxY w)z#Runs the get-server-config command.z%Fetching server config for {location})locationN)CONCEPTSr   Parser
   GkemulticloudEndpointOverridelocationsIdr   statusPrintformatapi_utilLocationsClientGetAzureServerConfig)selfargslocation_refclients       r   RunzGetServerConfig.Run/   s    ==))//1L		4	4\5M5M	N	jj
1
8
8#// 9 
 '')f((6 
O	N	Ns   AB,,B5N)	__name__
__module____qualname____doc__	_EXAMPLESdetailed_helpstaticmethodr   r(    r   r   r   r   $   s(    >y)-H H
7r   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
   googlecloudsdk.corer   r-   ReleaseTracksReleaseTrackALPHAGACommandr   r0   r   r   <module>r<      st    H &  ' P ( D H L #	 D%%++T->->-A-AB7dll 7 C7r   