
    i
                        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  ej                   ej"                  j$                  ej"                  j&                         G d dej(                               Zy)zBCommand to delete an archive deployment in an Apigee organization.    )absolute_import)division)unicode_literals)apigee)base)defaults)resource_args)log)
console_ioc                   0    e Zd ZdZdddZed        Zd Zy)Deletez$Delete an Apigee archive deployment.zD  {description}

  `{command}` deletes an Apigee archive deployment.a    To delete an archive deployment with the ID ``abcdefghijkl123456'' in the
  environment called ``my-env'' using the active Cloud Platform project, run:

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

  To delete an archive deployment with the ID ``mnopqurstuvw654321'', in an
  environment called ``my-env'', in an organization called ``my-org'', run:

      $ {command} mnopqurstuvw654321 --environment=my-env --organization=my-org
  )DESCRIPTIONEXAMPLESc           
      b    t        j                  | dddddt        j                         g       y )Nz+organization.environment.archive_deploymentz$Apigee archive deployment to delete.archive_deploymentT)argument_name
positionalrequiredfallthroughs)r	   AddSingleResourceArgumentr   !GCPProductOrganizationFallthrough)parsers    %lib/surface/apigee/archives/delete.pyArgszDelete.Args4   s2    ++5.*@@BCE    c                 \   |j                   j                  j                         j                         }|d   }dj	                  |      }t        j                  |      rNt        j                  j                  |       t        j                  j                  dj	                  |             yy)zRun the describe command.archiveDeploymentsIdz(Archive deployment [{}] will be deleted.)messagez Archive deployment [{}] deleted.N)CONCEPTSr   ParseAsDictformatr   PromptContinuer   ArchivesClientr   r
   statusPrint)selfargsidentifiers
archive_idmsgs        r   Runz
Delete.Run?   s    --2288:AACK34J
4
;
;J
GC  -"";/	jj9@@LM .r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r,    r   r   r   r      s2    ,7

-( E ENr   r   N)r0   
__future__r   r   r   googlecloudsdk.api_libr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.apigeer   r	   googlecloudsdk.corer
   googlecloudsdk.core.consoler   ReleaseTracksReleaseTrackALPHABETADeleteCommandr   r3   r   r   <module>r?      sr    I &  ' ) ( 6 ; # 2 D%%++T->->-C-CD)NT )N E)Nr   