Debian Codegraph @

docs/dyn/aiplatform_v1.projects.locations.indexes.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="aiplatform_v1.html">Agent Platform API</a> . <a href="aiplatform_v1.projects.html">projects</a> . <a href="aiplatform_v1.projects.locations.html">locations</a> . <a href="aiplatform_v1.projects.locations.indexes.html">indexes</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="aiplatform_v1.projects.locations.indexes.operations.html">operations()</a></code>
79 </p>
80 <p class="firstline">Returns the operations Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#close">close()</a></code></p>
84 <p class="firstline">Close httplib2 connections.</p>
85 <p class="toc_element">
86 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
87 <p class="firstline">Creates an Index.</p>
88 <p class="toc_element">
89 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
90 <p class="firstline">Deletes an Index. An Index can only be deleted when all its DeployedIndexes had been undeployed.</p>
91 <p class="toc_element">
92 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
93 <p class="firstline">Gets an Index.</p>
94 <p class="toc_element">
95 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, readMask=None, x__xgafv=None)</a></code></p>
96 <p class="firstline">Lists Indexes in a Location.</p>
97 <p class="toc_element">
98 <code><a href="#list_next">list_next()</a></code></p>
99 <p class="firstline">Retrieves the next page of results.</p>
100 <p class="toc_element">
101 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
102 <p class="firstline">Updates an Index.</p>
103 <p class="toc_element">
104 <code><a href="#removeDatapoints">removeDatapoints(index, body=None, x__xgafv=None)</a></code></p>
105 <p class="firstline">Remove Datapoints from an Index.</p>
106 <p class="toc_element">
107 <code><a href="#upsertDatapoints">upsertDatapoints(index, body=None, x__xgafv=None)</a></code></p>
108 <p class="firstline">Add/update Datapoints into an Index.</p>
109 <h3>Method Details</h3>
110 <div class="method">
111 <code class="details" id="close">close()</code>
112 <pre>Close httplib2 connections.</pre>
113 </div>
114
115 <div class="method">
116 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
117 <pre>Creates an Index.
118
119 Args:
120 parent: string, Required. The resource name of the Location to create the Index in. Format: `projects/{project}/locations/{location}` (required)
121 body: object, The request body.
122 The object takes the form of:
123
124 { # A representation of a collection of database items organized in a way that allows for approximate nearest neighbor (a.k.a ANN) algorithms search.
125 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Index was created.
126 &quot;deployedIndexes&quot;: [ # Output only. The pointers to DeployedIndexes created from this Index. An Index can be only deleted if all its DeployedIndexes had been undeployed first.
127 { # Points to a DeployedIndex.
128 &quot;deployedIndexId&quot;: &quot;A String&quot;, # Immutable. The ID of the DeployedIndex in the above IndexEndpoint.
129 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the DeployedIndex.
130 &quot;indexEndpoint&quot;: &quot;A String&quot;, # Immutable. A resource name of the IndexEndpoint.
131 },
132 ],
133 &quot;description&quot;: &quot;A String&quot;, # The description of the Index.
134 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the Index. The name can be up to 128 characters long and can consist of any UTF-8 characters.
135 &quot;encryptionSpec&quot;: { # Represents a customer-managed encryption key specification that can be applied to a Vertex AI resource. # Immutable. Customer-managed encryption key spec for an Index. If set, this Index and all sub-resources of this Index will be secured by this key.
136 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Required. Resource name of the Cloud KMS key used to protect the resource. The Cloud KMS key must be in the same region as the resource. It must have the format `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
137 },
138 &quot;etag&quot;: &quot;A String&quot;, # Used to perform consistent read-modify-write updates. If not set, a blind &quot;overwrite&quot; update happens.
139 &quot;indexStats&quot;: { # Stats of the Index. # Output only. Stats of the index resource.
140 &quot;shardsCount&quot;: 42, # Output only. The number of shards in the Index.
141 &quot;sparseVectorsCount&quot;: &quot;A String&quot;, # Output only. The number of sparse vectors in the Index.
142 &quot;vectorsCount&quot;: &quot;A String&quot;, # Output only. The number of dense vectors in the Index.
143 },
144 &quot;indexUpdateMethod&quot;: &quot;A String&quot;, # Immutable. The update method to use with this Index. If not set, BATCH_UPDATE will be used by default.
145 &quot;labels&quot;: { # The labels with user-defined metadata to organize your Indexes. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels.
146 &quot;a_key&quot;: &quot;A String&quot;,
147 },
148 &quot;metadata&quot;: &quot;&quot;, # An additional information about the Index; the schema of the metadata can be found in metadata_schema.
149 &quot;metadataSchemaUri&quot;: &quot;A String&quot;, # Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Index, that is specific to it. Unset if the Index does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access.
150 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Index.
151 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
152 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
153 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Index was most recently updated. This also includes any update to the contents of the Index. Note that Operations working on this Index may have their Operations.metadata.generic_metadata.update_time a little after the value of this timestamp, yet that does not mean their results are not already reflected in the Index. Result of any successfully completed Operation on the Index is reflected in it.
154 }
155
156 x__xgafv: string, V1 error format.
157 Allowed values
158 1 - v1 error format
159 2 - v2 error format
160
161 Returns:
162 An object of the form:
163
164 { # This resource represents a long-running operation that is the result of a network API call.
165 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
166 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
167 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
168 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
169 {
170 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
171 },
172 ],
173 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
174 },
175 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
176 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
177 },
178 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
179 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
180 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
181 },
182 }</pre>
183 </div>
184
185 <div class="method">
186 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
187 <pre>Deletes an Index. An Index can only be deleted when all its DeployedIndexes had been undeployed.
188
189 Args:
190 name: string, Required. The name of the Index resource to be deleted. Format: `projects/{project}/locations/{location}/indexes/{index}` (required)
191 x__xgafv: string, V1 error format.
192 Allowed values
193 1 - v1 error format
194 2 - v2 error format
195
196 Returns:
197 An object of the form:
198
199 { # This resource represents a long-running operation that is the result of a network API call.
200 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
201 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
202 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
203 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
204 {
205 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
206 },
207 ],
208 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
209 },
210 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
211 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
212 },
213 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
214 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
215 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
216 },
217 }</pre>
218 </div>
219
220 <div class="method">
221 <code class="details" id="get">get(name, x__xgafv=None)</code>
222 <pre>Gets an Index.
223
224 Args:
225 name: string, Required. The name of the Index resource. Format: `projects/{project}/locations/{location}/indexes/{index}` (required)
226 x__xgafv: string, V1 error format.
227 Allowed values
228 1 - v1 error format
229 2 - v2 error format
230
231 Returns:
232 An object of the form:
233
234 { # A representation of a collection of database items organized in a way that allows for approximate nearest neighbor (a.k.a ANN) algorithms search.
235 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Index was created.
236 &quot;deployedIndexes&quot;: [ # Output only. The pointers to DeployedIndexes created from this Index. An Index can be only deleted if all its DeployedIndexes had been undeployed first.
237 { # Points to a DeployedIndex.
238 &quot;deployedIndexId&quot;: &quot;A String&quot;, # Immutable. The ID of the DeployedIndex in the above IndexEndpoint.
239 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the DeployedIndex.
240 &quot;indexEndpoint&quot;: &quot;A String&quot;, # Immutable. A resource name of the IndexEndpoint.
241 },
242 ],
243 &quot;description&quot;: &quot;A String&quot;, # The description of the Index.
244 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the Index. The name can be up to 128 characters long and can consist of any UTF-8 characters.
245 &quot;encryptionSpec&quot;: { # Represents a customer-managed encryption key specification that can be applied to a Vertex AI resource. # Immutable. Customer-managed encryption key spec for an Index. If set, this Index and all sub-resources of this Index will be secured by this key.
246 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Required. Resource name of the Cloud KMS key used to protect the resource. The Cloud KMS key must be in the same region as the resource. It must have the format `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
247 },
248 &quot;etag&quot;: &quot;A String&quot;, # Used to perform consistent read-modify-write updates. If not set, a blind &quot;overwrite&quot; update happens.
249 &quot;indexStats&quot;: { # Stats of the Index. # Output only. Stats of the index resource.
250 &quot;shardsCount&quot;: 42, # Output only. The number of shards in the Index.
251 &quot;sparseVectorsCount&quot;: &quot;A String&quot;, # Output only. The number of sparse vectors in the Index.
252 &quot;vectorsCount&quot;: &quot;A String&quot;, # Output only. The number of dense vectors in the Index.
253 },
254 &quot;indexUpdateMethod&quot;: &quot;A String&quot;, # Immutable. The update method to use with this Index. If not set, BATCH_UPDATE will be used by default.
255 &quot;labels&quot;: { # The labels with user-defined metadata to organize your Indexes. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels.
256 &quot;a_key&quot;: &quot;A String&quot;,
257 },
258 &quot;metadata&quot;: &quot;&quot;, # An additional information about the Index; the schema of the metadata can be found in metadata_schema.
259 &quot;metadataSchemaUri&quot;: &quot;A String&quot;, # Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Index, that is specific to it. Unset if the Index does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access.
260 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Index.
261 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
262 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
263 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Index was most recently updated. This also includes any update to the contents of the Index. Note that Operations working on this Index may have their Operations.metadata.generic_metadata.update_time a little after the value of this timestamp, yet that does not mean their results are not already reflected in the Index. Result of any successfully completed Operation on the Index is reflected in it.
264 }</pre>
265 </div>
266
267 <div class="method">
268 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, readMask=None, x__xgafv=None)</code>
269 <pre>Lists Indexes in a Location.
270
271 Args:
272 parent: string, Required. The resource name of the Location from which to list the Indexes. Format: `projects/{project}/locations/{location}` (required)
273 filter: string, The standard list filter.
274 pageSize: integer, The standard list page size.
275 pageToken: string, The standard list page token. Typically obtained via ListIndexesResponse.next_page_token of the previous IndexService.ListIndexes call.
276 readMask: string, Mask specifying which fields to read.
277 x__xgafv: string, V1 error format.
278 Allowed values
279 1 - v1 error format
280 2 - v2 error format
281
282 Returns:
283 An object of the form:
284
285 { # Response message for IndexService.ListIndexes.
286 &quot;indexes&quot;: [ # List of indexes in the requested page.
287 { # A representation of a collection of database items organized in a way that allows for approximate nearest neighbor (a.k.a ANN) algorithms search.
288 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Index was created.
289 &quot;deployedIndexes&quot;: [ # Output only. The pointers to DeployedIndexes created from this Index. An Index can be only deleted if all its DeployedIndexes had been undeployed first.
290 { # Points to a DeployedIndex.
291 &quot;deployedIndexId&quot;: &quot;A String&quot;, # Immutable. The ID of the DeployedIndex in the above IndexEndpoint.
292 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the DeployedIndex.
293 &quot;indexEndpoint&quot;: &quot;A String&quot;, # Immutable. A resource name of the IndexEndpoint.
294 },
295 ],
296 &quot;description&quot;: &quot;A String&quot;, # The description of the Index.
297 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the Index. The name can be up to 128 characters long and can consist of any UTF-8 characters.
298 &quot;encryptionSpec&quot;: { # Represents a customer-managed encryption key specification that can be applied to a Vertex AI resource. # Immutable. Customer-managed encryption key spec for an Index. If set, this Index and all sub-resources of this Index will be secured by this key.
299 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Required. Resource name of the Cloud KMS key used to protect the resource. The Cloud KMS key must be in the same region as the resource. It must have the format `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
300 },
301 &quot;etag&quot;: &quot;A String&quot;, # Used to perform consistent read-modify-write updates. If not set, a blind &quot;overwrite&quot; update happens.
302 &quot;indexStats&quot;: { # Stats of the Index. # Output only. Stats of the index resource.
303 &quot;shardsCount&quot;: 42, # Output only. The number of shards in the Index.
304 &quot;sparseVectorsCount&quot;: &quot;A String&quot;, # Output only. The number of sparse vectors in the Index.
305 &quot;vectorsCount&quot;: &quot;A String&quot;, # Output only. The number of dense vectors in the Index.
306 },
307 &quot;indexUpdateMethod&quot;: &quot;A String&quot;, # Immutable. The update method to use with this Index. If not set, BATCH_UPDATE will be used by default.
308 &quot;labels&quot;: { # The labels with user-defined metadata to organize your Indexes. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels.
309 &quot;a_key&quot;: &quot;A String&quot;,
310 },
311 &quot;metadata&quot;: &quot;&quot;, # An additional information about the Index; the schema of the metadata can be found in metadata_schema.
312 &quot;metadataSchemaUri&quot;: &quot;A String&quot;, # Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Index, that is specific to it. Unset if the Index does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access.
313 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Index.
314 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
315 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
316 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Index was most recently updated. This also includes any update to the contents of the Index. Note that Operations working on this Index may have their Operations.metadata.generic_metadata.update_time a little after the value of this timestamp, yet that does not mean their results are not already reflected in the Index. Result of any successfully completed Operation on the Index is reflected in it.
317 },
318 ],
319 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to retrieve next page of results. Pass to ListIndexesRequest.page_token to obtain that page.
320 }</pre>
321 </div>
322
323 <div class="method">
324 <code class="details" id="list_next">list_next()</code>
325 <pre>Retrieves the next page of results.
326
327 Args:
328 previous_request: The request for the previous page. (required)
329 previous_response: The response from the request for the previous page. (required)
330
331 Returns:
332 A request object that you can call &#x27;execute()&#x27; on to request the next
333 page. Returns None if there are no more items in the collection.
334 </pre>
335 </div>
336
337 <div class="method">
338 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
339 <pre>Updates an Index.
340
341 Args:
342 name: string, Output only. The resource name of the Index. (required)
343 body: object, The request body.
344 The object takes the form of:
345
346 { # A representation of a collection of database items organized in a way that allows for approximate nearest neighbor (a.k.a ANN) algorithms search.
347 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Index was created.
348 &quot;deployedIndexes&quot;: [ # Output only. The pointers to DeployedIndexes created from this Index. An Index can be only deleted if all its DeployedIndexes had been undeployed first.
349 { # Points to a DeployedIndex.
350 &quot;deployedIndexId&quot;: &quot;A String&quot;, # Immutable. The ID of the DeployedIndex in the above IndexEndpoint.
351 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the DeployedIndex.
352 &quot;indexEndpoint&quot;: &quot;A String&quot;, # Immutable. A resource name of the IndexEndpoint.
353 },
354 ],
355 &quot;description&quot;: &quot;A String&quot;, # The description of the Index.
356 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the Index. The name can be up to 128 characters long and can consist of any UTF-8 characters.
357 &quot;encryptionSpec&quot;: { # Represents a customer-managed encryption key specification that can be applied to a Vertex AI resource. # Immutable. Customer-managed encryption key spec for an Index. If set, this Index and all sub-resources of this Index will be secured by this key.
358 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Required. Resource name of the Cloud KMS key used to protect the resource. The Cloud KMS key must be in the same region as the resource. It must have the format `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
359 },
360 &quot;etag&quot;: &quot;A String&quot;, # Used to perform consistent read-modify-write updates. If not set, a blind &quot;overwrite&quot; update happens.
361 &quot;indexStats&quot;: { # Stats of the Index. # Output only. Stats of the index resource.
362 &quot;shardsCount&quot;: 42, # Output only. The number of shards in the Index.
363 &quot;sparseVectorsCount&quot;: &quot;A String&quot;, # Output only. The number of sparse vectors in the Index.
364 &quot;vectorsCount&quot;: &quot;A String&quot;, # Output only. The number of dense vectors in the Index.
365 },
366 &quot;indexUpdateMethod&quot;: &quot;A String&quot;, # Immutable. The update method to use with this Index. If not set, BATCH_UPDATE will be used by default.
367 &quot;labels&quot;: { # The labels with user-defined metadata to organize your Indexes. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels.
368 &quot;a_key&quot;: &quot;A String&quot;,
369 },
370 &quot;metadata&quot;: &quot;&quot;, # An additional information about the Index; the schema of the metadata can be found in metadata_schema.
371 &quot;metadataSchemaUri&quot;: &quot;A String&quot;, # Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Index, that is specific to it. Unset if the Index does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access.
372 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Index.
373 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
374 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
375 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this Index was most recently updated. This also includes any update to the contents of the Index. Note that Operations working on this Index may have their Operations.metadata.generic_metadata.update_time a little after the value of this timestamp, yet that does not mean their results are not already reflected in the Index. Result of any successfully completed Operation on the Index is reflected in it.
376 }
377
378 updateMask: string, The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask.
379 x__xgafv: string, V1 error format.
380 Allowed values
381 1 - v1 error format
382 2 - v2 error format
383
384 Returns:
385 An object of the form:
386
387 { # This resource represents a long-running operation that is the result of a network API call.
388 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
389 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
390 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
391 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
392 {
393 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
394 },
395 ],
396 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
397 },
398 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
399 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
400 },
401 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
402 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
403 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
404 },
405 }</pre>
406 </div>
407
408 <div class="method">
409 <code class="details" id="removeDatapoints">removeDatapoints(index, body=None, x__xgafv=None)</code>
410 <pre>Remove Datapoints from an Index.
411
412 Args:
413 index: string, Required. The name of the Index resource to be updated. Format: `projects/{project}/locations/{location}/indexes/{index}` (required)
414 body: object, The request body.
415 The object takes the form of:
416
417 { # Request message for IndexService.RemoveDatapoints
418 &quot;datapointIds&quot;: [ # A list of datapoint ids to be deleted.
419 &quot;A String&quot;,
420 ],
421 }
422
423 x__xgafv: string, V1 error format.
424 Allowed values
425 1 - v1 error format
426 2 - v2 error format
427
428 Returns:
429 An object of the form:
430
431 { # Response message for IndexService.RemoveDatapoints
432 }</pre>
433 </div>
434
435 <div class="method">
436 <code class="details" id="upsertDatapoints">upsertDatapoints(index, body=None, x__xgafv=None)</code>
437 <pre>Add/update Datapoints into an Index.
438
439 Args:
440 index: string, Required. The name of the Index resource to be updated. Format: `projects/{project}/locations/{location}/indexes/{index}` (required)
441 body: object, The request body.
442 The object takes the form of:
443
444 { # Request message for IndexService.UpsertDatapoints
445 &quot;datapoints&quot;: [ # A list of datapoints to be created/updated.
446 { # A datapoint of Index.
447 &quot;crowdingTag&quot;: { # Crowding tag is a constraint on a neighbor list produced by nearest neighbor search requiring that no more than some value k&#x27; of the k neighbors returned have the same value of crowding_attribute. # Optional. CrowdingTag of the datapoint, the number of neighbors to return in each crowding can be configured during query.
448 &quot;crowdingAttribute&quot;: &quot;A String&quot;, # The attribute value used for crowding. The maximum number of neighbors to return per crowding attribute value (per_crowding_attribute_num_neighbors) is configured per-query. This field is ignored if per_crowding_attribute_num_neighbors is larger than the total number of neighbors to return for a given query.
449 },
450 &quot;datapointId&quot;: &quot;A String&quot;, # Required. Unique identifier of the datapoint.
451 &quot;embeddingMetadata&quot;: { # Optional. The key-value map of additional metadata for the datapoint.
452 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
453 },
454 &quot;featureVector&quot;: [ # Required. Feature embedding vector for dense index. An array of numbers with the length of [NearestNeighborSearchConfig.dimensions].
455 3.14,
456 ],
457 &quot;numericRestricts&quot;: [ # Optional. List of Restrict of the datapoint, used to perform &quot;restricted searches&quot; where boolean rule are used to filter the subset of the database eligible for matching. This uses numeric comparisons.
458 { # This field allows restricts to be based on numeric comparisons rather than categorical tokens.
459 &quot;namespace&quot;: &quot;A String&quot;, # The namespace of this restriction. e.g.: cost.
460 &quot;op&quot;: &quot;A String&quot;, # This MUST be specified for queries and must NOT be specified for datapoints.
461 &quot;valueDouble&quot;: 3.14, # Represents 64 bit float.
462 &quot;valueFloat&quot;: 3.14, # Represents 32 bit float.
463 &quot;valueInt&quot;: &quot;A String&quot;, # Represents 64 bit integer.
464 },
465 ],
466 &quot;restricts&quot;: [ # Optional. List of Restrict of the datapoint, used to perform &quot;restricted searches&quot; where boolean rule are used to filter the subset of the database eligible for matching. This uses categorical tokens. See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
467 { # Restriction of a datapoint which describe its attributes(tokens) from each of several attribute categories(namespaces).
468 &quot;allowList&quot;: [ # The attributes to allow in this namespace. e.g.: &#x27;red&#x27;
469 &quot;A String&quot;,
470 ],
471 &quot;denyList&quot;: [ # The attributes to deny in this namespace. e.g.: &#x27;blue&#x27;
472 &quot;A String&quot;,
473 ],
474 &quot;namespace&quot;: &quot;A String&quot;, # The namespace of this restriction. e.g.: color.
475 },
476 ],
477 &quot;sparseEmbedding&quot;: { # Feature embedding vector for sparse index. An array of numbers whose values are located in the specified dimensions. # Optional. Feature embedding vector for sparse index.
478 &quot;dimensions&quot;: [ # Required. The list of indexes for the embedding values of the sparse vector.
479 &quot;A String&quot;,
480 ],
481 &quot;values&quot;: [ # Required. The list of embedding values of the sparse vector.
482 3.14,
483 ],
484 },
485 },
486 ],
487 &quot;updateMask&quot;: &quot;A String&quot;, # Optional. Update mask is used to specify the fields to be overwritten in the datapoints by the update. The fields specified in the update_mask are relative to each IndexDatapoint inside datapoints, not the full request. Updatable fields: * Use `all_restricts` to update both restricts and numeric_restricts.
488 }
489
490 x__xgafv: string, V1 error format.
491 Allowed values
492 1 - v1 error format
493 2 - v2 error format
494
495 Returns:
496 An object of the form:
497
498 { # Response message for IndexService.UpsertDatapoints
499 }</pre>
500 </div>
501
502 </body></html>