
    b                     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 HTTP proxies.    )absolute_import)division)unicode_literals)base_classes)base)flags)scope)target_http_proxies_utilsc                      ddddS )N7Display detailed information about a target HTTP proxy.zf        *{command}* displays all data associated with a target HTTP proxy
        in a project.
      z      To describe a global target HTTP proxy, run:

        $ {command} PROXY_NAME

      To describe a regional target HTTP proxy, run:

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



 r   c                 v   | 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 HTTP Proxies.Getr   r   )clientr
   IsRegionalTargetHttpProxiesRefmessages(ComputeRegionTargetHttpProxiesGetRequestAsDictapitools_clientregionTargetHttpProxies"ComputeTargetHttpProxiesGetRequesttargetHttpProxiesMakeRequests)holdertarget_http_proxy_refr   request
collections        r   _Runr$   3   s    ==&==FfooFF *

&
&
(*G''??J@foo@@ *

&
&
(*G''99J			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   TargetHttpProxyArgumentTARGET_HTTP_PROXY_ARGAddArgument)clsparsers     r   ArgszDescribe.ArgsK   s,     % = = ?C))&)Lr   c                    t        j                  | j                               }| j                  j	                  ||j
                  t        j                  j                  t        j                  |j                              }t        ||      S )N)default_scopescope_lister)r   ComputeApiHolderReleaseTrackr+   ResolveAsResource	resourcescompute_scope	ScopeEnumGLOBALcompute_flagsGetDefaultScopeListerr   r$   )selfargsr    r!   s       r   RunzDescribe.RunP   sv    **4+<+<+>?F 66HH#--44"88G	 I I
 -..r   )
__name__
__module____qualname____doc__r+   r   detailed_helpclassmethodr/   r>   r   r   r   r&   r&   C   s.     @/-M M/r   r&   N)rB   
__future__r   r   r   googlecloudsdk.api_lib.computer   googlecloudsdk.callioper   "googlecloudsdk.command_lib.computer   r:   r	   r7   6googlecloudsdk.command_lib.compute.target_http_proxiesr
   r   r$   ReleaseTracksr4   ALPHABETAGADescribeCommandr&   r   r   r   <module>rO      s    2 &  ' 7 ( E E H \,@  D%%++T->->-C-C%%((*/t## /*/r   