
    
                     v   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  \R                  " \R                  R                  5       " S
 S\R                   5      5       r\R                  " \R                  R$                  \R                  R&                  5       " S S\5      5       rg)z,Vertex AI indexes remove datapoints command.    )absolute_import)division)unicode_literals)client)base)	constants)endpoint_util)flagsc                   4    \ rS rSrSr\S 5       rS rS rSr	g)RemoveDatapointsV1   aV  Remove data points from the specified index.

## EXAMPLES

To remove datapoints from an index '123', run:

  $ {command} 123 --datapoint-ids=example1,example2
  --project=example --region=us-central1

Or put datapoint ids in a json file and run:

  $ {command} 123 --datapoints-from-file=example.json
  --project=example --region=us-central1
c                 b    [         R                  " U S5        [         R                  " SU S5        g )Nzto remove data points fromindexT)r
   AddIndexResourceArg&AddDatapointSourceGroupForStreamUpdate)parsers    +lib/surface/ai/indexes/remove_datapoints.pyArgsRemoveDatapointsV1.Args-   s%    	f&BC	00&$G    c                 h   UR                   R                  R                  5       nUR                  5       S   n[        R
                  " X$S9   [        R                  " US9nU[        R                  :X  a  UR                  X15      nOUR                  X15      nUsS S S 5        $ ! , (       d  f       g = f)NlocationsId)region)version)CONCEPTSr   ParseAsDictr	   AiplatformEndpointOverridesr   IndexesClientr   
GA_VERSIONRemoveDatapointsRemoveDatapointsBeta)selfargsr   	index_refr   index_client	operations          r   _RunRemoveDatapointsV1._Run2   s    ##))+I.F		2	27	J))':l	I((	( 11)B	 55iF	 
K	J	Js   AB##
B1c                 B    U R                  U[        R                  5      $ N)r(   r   r    r#   r$   s     r   RunRemoveDatapointsV1.Run=   s    99T9//00r    N)
__name__
__module____qualname____firstlineno____doc__staticmethodr   r(   r-   __static_attributes__r/   r   r   r   r      s'     H H	1r   r   c                       \ rS rSrSrS rSrg)RemoveDatapointsV1BetaA   aW  Remove data points from the specified index.

## EXAMPLES

To remove data points from an index `123`, run:

  $ {command} 123 --datapoint-ids=example1,example2
  --project=example --region=us-central1

Or put datapoint ids in a JSON file and run:

  $ {command} 123 --datapoints-from-file=example.json
  --project=example --region=us-central1
c                 B    U R                  U[        R                  5      $ r+   )r(   r   BETA_VERSIONr,   s     r   r-   RemoveDatapointsV1Beta.RunR   s    99T91122r   r/   N)r0   r1   r2   r3   r4   r-   r6   r/   r   r   r8   r8   A   s    3r   r8   N)r4   
__future__r   r   r   !googlecloudsdk.api_lib.ai.indexesr   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   r	   r
   ReleaseTracksReleaseTrackGACreateCommandr   ALPHABETAr8   r/   r   r   <module>rG      s    3 &  ' 4 ( 3 7 / D%%(()!1++ !1 *!1H D%%++T->->-C-CD3/ 3 E3r   