
    E                        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	K
Jr  SS
KJr  SSKJr  \R$                  " \R&                  R(                  5       " S S\R*                  5      5       rg)zDelete a CA pool.    )absolute_import)division)unicode_literals)base)request_utils)flags)
operations)resource_args)log)
console_ioc                   .    \ rS rSrSr\S 5       rS rSrg)Delete   a:  Delete a CA pool.

Note that all certificate authorities must be removed from the CA Pool
before the CA pool can be deleted.

## EXAMPLES

To delete a CA pool:

  $ {command} my-pool --location=us-west1

To delete a CA pool while skipping the confirmation input:

  $ {command} my-pool --location=us-west1 --quiet
c                 ^    [         R                  " U S5        [        R                  " U 5        g )Nz	to delete)r
   AddCaPoolPositionalResourceArgr   AddIgnoreDependentResourcesFlag)parsers    %lib/surface/privateca/pools/delete.pyArgsDelete.Args1   s     00E	))&1    c                    [         R                  " S5      n[         R                  " S5      nUR                  R                  R                  5       nUR                  (       a   SR                  UR                  5       5      nOSR                  UR                  5       5      n[        R                  " USS9(       d   [        R                  R                  S5        g UR                  R                  UR!                  UR                  5       UR                  ["        R$                  " 5       S95      n[&        R(                  " USSS	9  [        R                  R                  S
R                  UR                  5       5      5        g )Nv1a  You are about to delete the CA Pool [{}] without checking if it is being used by another cloud resource. If you proceed, there may be unintended and unrecoverable effects on any dependent resource(s) since the CA Pool would not be able to issue certificates.z(You are about to delete the CA pool [{}]T)messagedefaultzAborted by user.)nameignoreDependentResources	requestIdzDeleting the CA pool)api_versionzDeleted the CA pool [{}].)privateca_baseGetClientInstanceGetMessagesModuleCONCEPTSca_poolParseignore_dependent_resourcesformatRelativeNamer   PromptContinuer   statusPrintprojects_locations_caPoolsr   .PrivatecaProjectsLocationsCaPoolsDeleteRequestr   GenerateRequestIdr	   Await)selfargsclientmessagesca_pool_refprompt_message	operations          r   Run
Delete.Run6   s@   --d3F//5H--''--/K&&=
 	{'')*  CJJ

"
"
$&n $$ 
jj)*1188??))+%)%D%D#557 	@ 	9:I )t= JJ077  "$ %r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r7   __static_attributes__r9   r   r   r   r      s       2 2"%r   r   N)r>   
__future__r   r   r    googlecloudsdk.api_lib.privatecar   r    r   googlecloudsdk.calliope$googlecloudsdk.command_lib.privatecar   r	   r
   googlecloudsdk.corer   googlecloudsdk.core.consoler   ReleaseTracksReleaseTrackGADeleteCommandr   r9   r   r   <module>rK      sc     &  ' C : ( 6 ; > # 2 D%%(()8%T 8% *8%r   