
                            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
dZ ej                  ej                   j"                        ej$                   G d dej&                                      Z ej                  ej                   j*                        ej$                   G d dej&                                      Zy)z!Command to describe the location.    )absolute_import)division)unicode_literals)	locations)utils)base)flagsz{description}z}         To describe a specific apphub location with the name `my-location`, run:

          $ {command} my-location
        )DESCRIPTIONEXAMPLESc                   *    e Zd ZdZeZed        Zd Zy)
DescribeGADescribe an Apphub location.c                 .    t        j                  |        y Nr	   AddDescribeLocationFlagsparsers    (lib/surface/apphub/locations/describe.pyArgszDescribeGA.Args+       	""6*    c                     t        j                  t        j                  j                        }t        j                  |      }|j                  |j                               S zRun the describe command.)release_track)location)	apisLocationsClientr   ReleaseTrackGAapi_lib_utilsGetLocationRefDescribeRelativeNameselfargsclientlo_refs       r   RunzDescribeGA.Run/   sH    !!0A0A0D0DEF))$/F??F$7$7$9?::r   N	__name__
__module____qualname____doc___DETAILED_HELPdetailed_helpstaticmethodr   r*    r   r   r   r   $   #     % -+ +;r   r   c                   *    e Zd ZdZeZed        Zd Zy)DescribeAlphar   c                 .    t        j                  |        y r   r   r   s    r   r   zDescribeAlpha.Args=   r   r   c                     t        j                  t        j                  j                        }t        j                  |      }|j                  |j                               S r   )	r   r   r   r   ALPHAr!   r"   r#   r$   r%   s       r   r*   zDescribeAlpha.RunA   sH    !!0A0A0G0GHF))$/F??F$7$7$9?::r   Nr+   r3   r   r   r6   r6   6   r4   r   r6   N)r/   
__future__r   r   r   googlecloudsdk.api_lib.apphubr   r   r   r!   googlecloudsdk.callioper   !googlecloudsdk.command_lib.apphubr	   r0   ReleaseTracksr   r    UniverseCompatibleDescribeCommandr   r9   r6   r3   r   r   <module>rA      s    ( &  ' ; @ ( 3 # D%%(();%% ;  *;  D%%++,;D(( ;  -;r   