
    `                        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 index endpoints delete command.    )absolute_import)division)unicode_literals)
operations)client)base)	constants)endpoint_util)flags)index_endpoints_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 endpoint.

## EXAMPLES

To delete an index endpoint `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   AddIndexEndpointResourceArg)parsers    (lib/surface/ai/index_endpoints/delete.pyArgsDeleteV1.Args,   s    	%%fk:    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                  " US9U[         R"                  " UR$                  5      S9sS S S 5        $ ! , (       d  f       g = f)	NlocationsIdindexEndpointsId)regionz'This will delete index endpoint [{}]...T)cancel_on_no)version)operations_clientopop_ref)CONCEPTSindex_endpointParseAsDictr
   AiplatformEndpointOverridesr   PromptContinueformatr   IndexEndpointsClientDeleter   WaitForOpMayber   OperationsClientr   ParseIndexEndpointOperationname)selfargsr   index_endpoint_refr   index_endpoint_id	operations          r   _RunDeleteV1._Run0   s    55;;=&&(7F*1134FG		2	27	J
3
:
:;L
M --!6"45 ++&77H%AAnn 
K	J	Js   BC66
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%     ; ; 1r   r   c                       \ rS rSrSrS rSrg)DeleteV1Beta1D   r   c                 B    U R                  U[        R                  5      $ r8   )r5   r	   BETA_VERSIONr:   s     r   r;   DeleteV1Beta1.RunP   s    99T91122r   r=   N)r>   r?   r@   rA   rB   r;   rD   r=   r   r   rF   rF   D   s    3r   rF   N)rB   
__future__r   r   r   googlecloudsdk.api_lib.air   )googlecloudsdk.api_lib.ai.index_endpointsr   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 &  ' 0 < ( 3 7 / > 9 2 D%%(() 1t!!  1 * 1F D%%++T->->-C-CD3H 3 E3r   