
                             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
\R                  5      rg)z<Command to undeploy an Apigee API proxy from an environment.    )absolute_import)division)unicode_literals)apigee)base)defaults)resource_argsc                   6    \ rS rSrSrSS0r\S 5       rS rSr	g)	Undeploy   z1Undeploy an Apigee API proxy from an environment.EXAMPLESaj    To undeploy an API proxy called ``my-api'' from the ``test'' environment of
  the active Cloud Platform project, run:

    $ {command} --environment=test --api=my-api

  To undeploy revision 3 of an `my-api` from the `test` environment of the
  organization named ``test-org'', run:

    $ {command} 3 --organization=test-org --environment=test --api=my-api
  c                     SSSS.n[         R                  " 5       [         R                  " SS5      /n[        R                  " U SSX!S	9  g )
NzAPI proxy to be undeployed. Must currently be deployed. To get a list of available deployed proxies, run `{{grandparent_command}} deployments list --environment=ENV`.zEnvironment from which to undeploy the API proxy. To get a list of available environments, run `{{grandparent_command}} environments list`.z1Apigee organization of the proxy and environment.)apienvironmentorganizationrevisionautoz%organization.environment.api.revisiona  API proxy revision to be undeployed and environment from which it should be removed.

Revisions can either be a positive revision number, or the special value ``auto'', which will undeploy whatever revision is currently deployed. If revision is unspecified, the default is ``auto''.)fallthroughs
help_texts)r   !GCPProductOrganizationFallthroughStaticFallthroughr	   AddSingleResourceArgument)parser	help_textr   s      #lib/surface/apigee/apis/undeploy.pyArgsUndeploy.Args+   s`    OF LI >>@..z6BDL++7	I
 "9    c                     UR                   R                  R                  5       R                  5       nUS   S:X  a  US	 [        R
                  " U5        [        R                  R                  U5      $ )zRun the undeploy command.revisionsIdr   )	CONCEPTSr   ParseAsDictr   FallBackToDeployedProxyRevisionr   
APIsClientr   )selfargsidentifierss      r   RunUndeploy.RunB   s]    --((..0779K=!V+
m
$..{;%%k22r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r)   __static_attributes__r+   r   r   r   r      s/    9 
- 9 9,3r   r   N)r0   
__future__r   r   r   googlecloudsdk.api_libr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.apigeer   r	   SilentCommandr   r+   r   r   <module>r9      s2    C &  ' ) ( 6 ;/3t!! /3r   