
    
                        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  SSKJr  \
R&                  " \
R(                  R*                  5       " S S\
R,                  5      5       r\
R&                  " \
R(                  R0                  \
R(                  R2                  5       " S S\5      5       rg)z!Vertex AI indexes delete command.    )absolute_import)division)unicode_literals)
operations)client)base)	constants)endpoint_util)flags)indexes_util)operations_util)
console_ioc                   4    \ rS rSrSr\S 5       rS rS rSr	g)DeleteV1    Delete an existing Vertex AI index.

## EXAMPLES

To delete an index `123` of project `example` in region `us-central1`, run:

  $ {command} 123 --project=example --region=us-central1
c                 2    [         R                  " U S5        g )Nz	to delete)r   AddIndexResourceArg)parsers     lib/surface/ai/indexes/delete.pyArgsDeleteV1.Args+   s    	fk2    c                    UR                   R                  R                  5       nUR                  5       S   nUR                  5       S   n[        R
                  " X$S9   [        R                  " SR                  U5      SS9  [        R                  " US9R                  U5      n[        R                  " [        R                  " 5       U[         R"                  " UR$                  5      S9sS S S 5        $ ! , (       d  f       g = f)	NlocationsId	indexesId)regionzThis will delete index [{}]...T)cancel_on_no)version)operations_clientopop_ref)CONCEPTSindexParseAsDictr
   AiplatformEndpointOverridesr   PromptContinueformatr   IndexesClientDeleter   WaitForOpMayber   OperationsClientr   ParseIndexOperationname)selfargsr   	index_refr   index_id	operations          r   _RunDeleteV1._Run/   s    ##))+I.F!+.H		2	27	J
*
1
1(
;$P&&w7>>yIi++&77911)..AC	 
K	J	Js   BC77
Dc                 B    U R                  U[        R                  5      $ N)r5   r	   
GA_VERSIONr0   r1   s     r   RunDeleteV1.Run<   s    99T9//00r    N)
__name__
__module____qualname____firstlineno____doc__staticmethodr   r5   r;   __static_attributes__r=   r   r   r   r       s&     3 3C1r   r   c                       \ rS rSrSrS rSrg)DeleteV1Beta1@   r   c                 B    U R                  U[        R                  5      $ r8   )r5   r	   BETA_VERSIONr:   s     r   r;   DeleteV1Beta1.RunK   s    99T91122r   r=   N)r>   r?   r@   rA   rB   r;   rD   r=   r   r   rF   rF   @   s    3r   rF   N)rB   
__future__r   r   r   googlecloudsdk.api_lib.air   !googlecloudsdk.api_lib.ai.indexesr   googlecloudsdk.callioper   googlecloudsdk.command_lib.air	   r
   r   r   r   googlecloudsdk.core.consoler   ReleaseTracksReleaseTrackGADeleteCommandr   ALPHABETArF   r=   r   r   <module>rW      s    ( &  ' 0 4 ( 3 7 / 6 9 2 D%%(()1t!! 1 *1> D%%++T->->-C-CD3H 3 E3r   