
                            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  SSKJr  S r\
R*                  " \
R,                  R.                  5      \
R0                   " S S\
R2                  5      5       5       r\
R*                  " \
R,                  R6                  \
R,                  R8                  5      \
R0                   " S S\5      5       5       rg)z#Vertex AI endpoints delete command.    )absolute_import)division)unicode_literals)
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)DeleteGa1   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.RunC   s    i**++r6    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr4   r<   __static_attributes__r>   r6   r)   r,   r,   1   s"     H H,r6   r,   c                       \ rS rSrSrS rSrg)
DeleteBetaG   r.   c                 6    [        U[        R                  5      $ r8   )r*   r	   BETA_VERSIONr:   s     r)   r<   DeleteBeta.RunT   s    i,,--r6   r>   N)r?   r@   rA   rB   rC   r<   rE   r>   r6   r)   rG   rG   G   s    .r6   rG   N)rC   
__future__r   r   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ALPHArG   r>   r6   r)   <module>rY      s    * &  ' 0 6 ( 3 7 8 / 9 5 2F  D%%((),t!! ,  *,( D%%**D,=,=,C,CD. .  E.r6   