
    v                     P   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d Z ej$                  ej&                  j(                  ej&                  j*                  ej&                  j,                         G d dej.                               Zy)z,Command for describing target HTTPS proxies.    )absolute_import)division)unicode_literals)base_classes)base)flags)scope)target_https_proxies_utilsc                      ddddS )N8Display detailed information about a target HTTPS proxy.zc      *{command}* displays all data associated with a target HTTPS proxy
      in a project.
      z      To describe a global target HTTPS proxy, run:

        $ {command} PROXY_NAME

      To describe a regional target HTTPS proxy, run:

        $ {command} PROXY_NAME --region=REGION_NAME
      )briefDESCRIPTIONEXAMPLES r       4lib/surface/compute/target_https_proxies/describe.py_DetailedHelpr      s     E



 r   c                 
   |j                   }|j                  | |j                  t        j                  j
                  t        j                  |            }t        j                  |      rA |j                  j                  di |j                         }|j                  j                  }n@ |j                  j                  di |j                         }|j                  j                   }|j#                  |d|fg      d   S )z;Issues requests necessary to describe Target HTTPS Proxies.)default_scopescope_listerGetr   r   )clientResolveAsResource	resourcescompute_scope	ScopeEnumGLOBALcompute_flagsGetDefaultScopeListerr
   IsRegionalTargetHttpsProxiesRefmessages)ComputeRegionTargetHttpsProxiesGetRequestAsDictapitools_clientregionTargetHttpsProxies#ComputeTargetHttpsProxiesGetRequesttargetHttpsProxiesMakeRequests)argsholdertarget_https_proxy_argr   target_https_proxy_refrequest
collections          r   _Runr/   3   s    ==&1CC
!++22 66v>	 D @  ??GfooGG +
 
'
'
)+G''@@JAfooAA +
 
'
'
)+G''::J			z5':;	<Q	??r   c                   8    e Zd ZdZdZ e       Zed        Zd Z	y)Describer   Nc                 p    t        j                         | _        | j                  j                  |d       y )Ndescribe)operation_type)r   TargetHttpsProxyArgumentTARGET_HTTPS_PROXY_ARGAddArgument)clsparsers     r   ArgszDescribe.ArgsR   s,    !&!?!?!AC**6**Mr   c                 v    t        j                  | j                               }t        ||| j                        S )N)r   ComputeApiHolderReleaseTrackr/   r6   )selfr)   r*   s      r   RunzDescribe.RunW   s0    **4+<+<+>?Ffd99::r   )
__name__
__module____qualname____doc__r6   r   detailed_helpclassmethodr:   r?   r   r   r   r1   r1   J   s.     A/-N N;r   r1   N)rC   
__future__r   r   r   googlecloudsdk.api_lib.computer   googlecloudsdk.callioper   "googlecloudsdk.command_lib.computer   r   r	   r   7googlecloudsdk.command_lib.compute.target_https_proxiesr
   r   r/   ReleaseTracksr=   ALPHABETAGADescribeCommandr1   r   r   r   <module>rP      s    3 &  ' 7 ( E E I ^,@. D%%++T->->-C-C%%((*;t## ;*;r   