
    <                        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  \R                  " \R                  R                   \R                  R"                  5       " S
 S\R$                  5      5       rg)zDCommand to describe an archive deployment in an Apigee organization.    )absolute_import)division)unicode_literals)apigee)base)archives)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 archive deployment.zQ  {description}

  `{command}` shows metadata about an Apigee archive deployment.a    To describe an archive deployment with the id ``abcdef1234'' in the Apigee
  environment called ``my-env'' using the active Cloud Platform project, run:

      $ {command} abcdef1234 --environment=my-env

  To describe an archive deployment with the id ``1234abcdef'', in the Apigee
  environment called ``my-env'', in an organization called ``my-org'', as a JSON
  object, run:

      $ {command} 1234abcdef --environment=my-env --organization=my-org --format=json
  )DESCRIPTIONEXAMPLESc           
      `    [         R                  " U SSSSS[        R                  " 5       /S9  g )Nz+organization.environment.archive_deploymentzpArchive deployment to be described. To get a list of available archive deployments, run `{parent_command} list`.archive_deploymentT)	help_textargument_name
positionalrequiredfallthroughs)r
   AddSingleResourceArgumentr	   !GCPProductOrganizationFallthrough)parsers    'lib/surface/apigee/archives/describe.pyArgsDescribe.Args4   s5    ++5F*@@BCE    c                    UR                   R                  R                  5       R                  5       nUS   nSR	                  X2S   US   5      n[
        R                  R                  U5      nU(       d  [
        R                  R                  U5      $ [        R                  " U5      R                  U5      nU H  nUS   U:X  d  M  Us  $    [
        R                  R                  U5      $ )zRun the describe command.organizationsIdz6organizations/{}/environments/{}/archiveDeployments/{}environmentsIdarchiveDeploymentsIdname)CONCEPTSr   ParseAsDictformatr   ArchivesClientListr   archive_helperListArchivesExtendedArchives)selfargsidentifiersorgarchive_namearchive_list_responseextended_archivesas           r   RunDescribe.Run@   s    --2288:AACK
'
(C@GG-../	1 
 #1166{C ""++K88&33C8II	
6l	"    ))+66r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r4   __static_attributes__r6   r   r   r   r      s2    .D
-* 	E 	E7r   r   N)r;   
__future__r   r   r   googlecloudsdk.api_libr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.apigeer   r)   r	   r
   ReleaseTracksReleaseTrackALPHABETADescribeCommandr   r6   r   r   <module>rH      sj    K &  ' ) ( H 6 ; D%%++T->->-C-CD67t## 67 E67r   