
                            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 r\R"                  " \R$                  R&                  5      \R(                   " S S\R*                  5      5       5       r\R"                  " \R$                  R.                  \R$                  R0                  5      \R(                   " S S\5      5       5       rg)z#Vertex AI endpoints delete command.    )
operations)client)base)	constants)endpoint_util)endpoints_util)flags)operations_util)region_util)
console_ioc                 8   U R                   R                  R                  5       nUR                  5       S   U l        UR                  5       S   n[
        R                  " XR                  S9   [        R                  " US9n[        R                  " 5       n[        R                  " SR                  U5      SS9  UR                  U5      n[        R                   " XV["        R$                  " UR&                  5      5      sSSS5        $ ! , (       d  f       g= f)	z&Delete an existing Vertex AI endpoint.locationsIdendpointsId)region)versionz!This will delete endpoint [{}]...T)cancel_on_noN)CONCEPTSendpointParseAsDictr   r   AiplatformEndpointOverridesr   EndpointsClientr   OperationsClientr   PromptContinueformatDeleter
   WaitForOpMayber   ParseOperationname)argsr   endpoint_refendpoint_idendpoints_clientoperation_clientops          "lib/surface/ai/endpoints/delete.py_Runr'      s    ''--/,##%m4$+##%m4+00M--g>!224+22;? 
	 	 	.B))n;;BGGDF NMMs   .BD
Dc                   .    \ rS rSrSr\S 5       rS rSrg)DeleteGa.   Delete an existing Vertex AI endpoint.

## EXAMPLES

To delete an endpoint ``123'' under project ``example'' in region
``us-central1'', run:

  $ {command} 123 --project=example --region=us-central1
c                 L    [         R                  " U S[        R                  S9  g )Nz	to delete)prompt_func)r	   AddEndpointResourceArgr   PromptForOpRegion)parsers    r&   ArgsDeleteGa.Args;   s    	  )F)FH    c                 6    [        U[        R                  5      $ N)r'   r   
GA_VERSIONselfr    s     r&   RunDeleteGa.Run@   s    i**++r3    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr1   r9   __static_attributes__r;   r3   r&   r)   r)   .   s"     H H,r3   r)   c                       \ rS rSrSrS rSrg)
DeleteBetaD   r+   c                 6    [        U[        R                  5      $ r5   )r'   r   BETA_VERSIONr7   s     r&   r9   DeleteBeta.RunQ   s    i,,--r3   r;   N)r<   r=   r>   r?   r@   r9   rB   r;   r3   r&   rD   rD   D   s    .r3   rD   N)r@   googlecloudsdk.api_lib.air   #googlecloudsdk.api_lib.ai.endpointsr   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   r   r   r	   r
   r   googlecloudsdk.core.consoler   r'   ReleaseTracksReleaseTrackGAUniverseCompatibleDeleteCommandr)   BETAALPHArD   r;   r3   r&   <module>rU      s    * 1 6 ( 3 7 8 / 9 5 2F  D%%((),t!! ,  *,( D%%**D,=,=,C,CD. .  E.r3   