
    $
                     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 url maps.    )absolute_import)division)unicode_literals)base_classes)base)flags)scope)url_maps_utilsc                      dddS )NDescribe a URL map.zX      *{command}* displays all data associated with a URL map in a
      project.
      )briefDESCRIPTION r       (lib/surface/compute/url_maps/describe.py_DetailedHelpr      s      
	
 r   c                 
   |j                   }|j                  | |j                  t        j                  j
                  t        j                  |            }t        j                  |      rA|j                  j                  } |j                  j                  di |j                         }n@|j                  j                  } |j                  j                   di |j                         }|j#                  |d|fg      d   S )z/Issues requests necessary to describe URL maps.)default_scopescope_listerGetr   r   )clientResolveAsResource	resourcescompute_scope	ScopeEnumGLOBALcompute_flagsGetDefaultScopeListerr
   IsRegionalUrlMapRefapitools_clientregionUrlMapsmessagesComputeRegionUrlMapsGetRequestAsDicturlMapsComputeUrlMapsGetRequestMakeRequests)argsholderurl_map_argr   url_map_refservicerequests          r   _Runr.   )   s    ==&--
!++22 66v>	 . @+ ''4$$22G<foo<<  



 G $$,,G6foo66N9K9K9MNG			ww78	9!	<<r   c                   8    e Zd ZdZ e       ZdZed        Zd Z	y)Describer   Nc                 p    t        j                         | _        | j                  j                  |d       y )Ndescribe)operation_type)r   UrlMapArgumentURL_MAP_ARGAddArgument)clsparsers     r   ArgszDescribe.ArgsF   s)    **,COOOzBr   c                 v    t        j                  | j                               }t        ||| j                        S )N)r   ComputeApiHolderReleaseTrackr.   r5   )selfr(   r)   s      r   RunzDescribe.RunK   s0    **4+<+<+>?Ffd..//r   )
__name__
__module____qualname____doc__r   detailed_helpr5   classmethodr9   r>   r   r   r   r0   r0   >   s,     /-+C C0r   r0   N)rB   
__future__r   r   r   googlecloudsdk.api_lib.computer   googlecloudsdk.callioper   "googlecloudsdk.command_lib.computer   r   r	   r   +googlecloudsdk.command_lib.compute.url_mapsr
   r   r.   ReleaseTracksr<   ALPHABETAGADescribeCommandr0   r   r   r   <module>rO      s    ' &  ' 7 ( E E = F	=* D%%++T->->-C-C%%((*0t## 0*0r   