
                             S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJ	r	  SSK
Jr  SS	K
Jr   " S
 S\R                  5      rg)z(Command to describe an Apigee API proxy.    )absolute_import)division)unicode_literals)apigee)base)
exceptions)defaults)resource_argsc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
Describe   zDescribe an Apigee API proxy.zS  {description}

  `{command}` shows metadata about an API proxy and its revisions.ac    To describe an API proxy called ``proxy-name'' given that its matching Cloud
  Platform project has been set in gcloud settings, run:

      $ {command} proxy-name

  To describe an API proxy called ``other-proxy-name'' in another project whose
  Apigee organization is named ``org-name'', run:

      $ {command} other-proxy-name --organization=org-name

  To describe an API proxy called ``proxy-name'' and include details on its
  revisions, run:

      $ {command} proxy-name --verbose

  To describe an API proxy called ``proxy-name'' as a JSON object, run:

      $ {command} proxy-name --format=json
  )DESCRIPTIONEXAMPLESc                     UR                  SSSS9  U R                  5       [        R                  R                  :X  a  UR                  SSS9  [        R
                  " USS	[        R                  " 5       /S
9  g )Nz	--verbose
store_truez/Include proxy revision info in the description.)actionhelp
--revisionzJInclude proxy revision info for a specific revision ID in the description.)r   zorganization.apiz_API proxy to be described. To get a list of available API proxies, run `{parent_command} list`.)fallthroughs)add_argumentReleaseTrackr   ALPHAr
   AddSingleResourceArgumentr	   !GCPProductOrganizationFallthrough)clsparsers     #lib/surface/apigee/apis/describe.pyArgsDescribe.Args;   s    
LN  P
T..444, <  = ++	'@@BCE    c                    UR                   R                  R                  5       R                  5       n[        R
                  R                  U5      nSnS[        U5      ;   a  UR                  nUc  UR                  (       d  U$ US   nUb0  XE;  a(  SU< SUS   < SU< 3n[        R                  " SU5      eU/n/ nU H:  nXS'   [        R                  R                  U5      n	U	S		 UR                  U	5        M<     US	 XsS
'   U$ )zRun the describe command.NrevisionzNo revision z among API apisIdz's revisions: r   revisionsIdname	revisions)CONCEPTSapiParseAsDictr   
APIsClientr   varsr"   verboser   InvalidArgumentExceptionRevisionsClientappend)
selfargsidentifiersresultrequested_revisionrev_numsmessager&   r"   revision_results
             r   RunDescribe.RunJ   s   --##))+224K''4F T$Z== !$,,mj!H%		+H 5xA11,HH %%hI#+- ..77Do
&
!'	 
 	z#;Mr     N)
__name__
__module____qualname____firstlineno____doc__detailed_helpclassmethodr   r9   __static_attributes__r;   r    r   r   r      s2    %F
-: E E%r    r   N)r@   
__future__r   r   r   googlecloudsdk.api_libr   googlecloudsdk.callioper   r   !googlecloudsdk.command_lib.apigeer	   r
   DescribeCommandr   r;   r    r   <module>rI      s6    / &  ' ) ( . 6 ;Tt## Tr    