Debian Codegraph @

docs/dyn/firestore_v1.projects.databases.collectionGroups.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="firestore_v1.html">Cloud Firestore API</a> . <a href="firestore_v1.projects.html">projects</a> . <a href="firestore_v1.projects.databases.html">databases</a> . <a href="firestore_v1.projects.databases.collectionGroups.html">collectionGroups</a> . <a href="firestore_v1.projects.databases.collectionGroups.indexes.html">indexes</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a composite index. This returns a google.longrunning.Operation which may be used to track the status of the creation. The metadata for the operation will be the type IndexOperationMetadata.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a composite index.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets a composite index.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists composite indexes.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <h3>Method Details</h3>
96 <div class="method">
97 <code class="details" id="close">close()</code>
98 <pre>Close httplib2 connections.</pre>
99 </div>
100
101 <div class="method">
102 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
103 <pre>Creates a composite index. This returns a google.longrunning.Operation which may be used to track the status of the creation. The metadata for the operation will be the type IndexOperationMetadata.
104
105 Args:
106 parent: string, Required. A parent name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` (required)
107 body: object, The request body.
108 The object takes the form of:
109
110 { # Cloud Firestore indexes enable simple and complex queries against documents in a database.
111 &quot;apiScope&quot;: &quot;A String&quot;, # The API scope supported by this index.
112 &quot;density&quot;: &quot;A String&quot;, # Immutable. The density configuration of the index.
113 &quot;fields&quot;: [ # The fields supported by this index. For composite indexes, this requires a minimum of 2 and a maximum of 100 fields. The last field entry is always for the field path `__name__`. If, on creation, `__name__` was not specified as the last field, it will be added automatically with the same direction as that of the last field defined. If the final field in a composite index is not directional, the `__name__` will be ordered ASCENDING (unless explicitly specified). For single field indexes, this will always be exactly one entry with a field path equal to the field path of the associated field.
114 { # A field in an index. The field_path describes which field is indexed, the value_mode describes how the field value is indexed.
115 &quot;arrayConfig&quot;: &quot;A String&quot;, # Indicates that this field supports operations on `array_value`s.
116 &quot;fieldPath&quot;: &quot;A String&quot;, # Can be __name__. For single field indexes, this must match the name of the field or may be omitted.
117 &quot;order&quot;: &quot;A String&quot;, # Indicates that this field supports ordering by the specified order or comparing using =, !=, &lt;, &lt;=, &gt;, &gt;=.
118 &quot;searchConfig&quot;: { # The configuration for how to index a field for search. # Indicates that this field supports search operations.
119 &quot;geoSpec&quot;: { # The specification for how to build a geo search index for a field. # Optional. The specification for building a geo search index for a field.
120 &quot;geoJsonIndexingDisabled&quot;: True or False, # Optional. Disables geoJSON indexing for the field. By default, geoJSON points are indexed.
121 },
122 &quot;textSpec&quot;: { # The specification for how to build a text search index for a field. # Optional. The specification for building a text search index for a field.
123 &quot;indexSpecs&quot;: [ # Required. Specifications for how the field should be indexed. Repeated so that the field can be indexed in multiple ways.
124 { # Specification of how the field should be indexed for search text indexes.
125 &quot;indexType&quot;: &quot;A String&quot;, # Required. How to index the text field value.
126 &quot;matchType&quot;: &quot;A String&quot;, # Required. How to match the text field value.
127 },
128 ],
129 },
130 },
131 &quot;vectorConfig&quot;: { # The index configuration to support vector search operations # Indicates that this field supports nearest neighbor and distance operations on vector.
132 &quot;dimension&quot;: 42, # Required. The vector dimension this configuration applies to. The resulting index will only include vectors of this dimension, and can be used for vector search with the same dimension.
133 &quot;flat&quot;: { # An index that stores vectors in a flat data structure, and supports exhaustive search. # Indicates the vector index is a flat index.
134 },
135 },
136 },
137 ],
138 &quot;multikey&quot;: True or False, # Optional. Whether the index is multikey. By default, the index is not multikey. For non-multikey indexes, none of the paths in the index definition reach or traverse an array, except via an explicit array index. For multikey indexes, at most one of the paths in the index definition reach or traverse an array, except via an explicit array index. Violations will result in errors. Note this field only applies to index with MONGODB_COMPATIBLE_API ApiScope.
139 &quot;name&quot;: &quot;A String&quot;, # Output only. A server defined name for this index. The form of this name for composite indexes will be: `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}` For single field indexes, this field will be empty.
140 &quot;queryScope&quot;: &quot;A String&quot;, # Indexes with a collection query scope specified allow queries against a collection that is the child of a specific document, specified at query time, and that has the same collection ID. Indexes with a collection group query scope specified allow queries against all collections descended from a specific document, specified at query time, and that have the same collection ID as this index.
141 &quot;searchIndexOptions&quot;: { # Options for search indexes at the definition level. # Optional. Options for search indexes that are at the index definition level. This field is only currently supported for indexes with MONGODB_COMPATIBLE_API ApiScope.
142 &quot;textLanguage&quot;: &quot;A String&quot;, # Optional. The language to use for text search indexes. Used as the default language if not overridden at the document level by specifying the `text_language_override_field`. The language is specified as a BCP 47 language code. For indexes with MONGODB_COMPATIBLE_API ApiScope: If unspecified, the default language is English. For indexes with `ANY_API` ApiScope: If unspecified, the default behavior is autodetect.
143 &quot;textLanguageOverrideFieldPath&quot;: &quot;A String&quot;, # Optional. The field in the document that specifies which language to use for that specific document. For indexes with MONGODB_COMPATIBLE_API ApiScope: if unspecified, the language is taken from the &quot;language&quot; field if it exists or from `text_language` if it does not.
144 },
145 &quot;shardCount&quot;: 42, # Optional. The number of shards for the index.
146 &quot;state&quot;: &quot;A String&quot;, # Output only. The serving state of the index.
147 &quot;unique&quot;: True or False, # Optional. Whether it is an unique index. Unique index ensures all values for the indexed field(s) are unique across documents.
148 }
149
150 x__xgafv: string, V1 error format.
151 Allowed values
152 1 - v1 error format
153 2 - v2 error format
154
155 Returns:
156 An object of the form:
157
158 { # This resource represents a long-running operation that is the result of a network API call.
159 &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.
160 &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.
161 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
162 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
163 {
164 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
165 },
166 ],
167 &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.
168 },
169 &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.
170 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
171 },
172 &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}`.
173 &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`.
174 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
175 },
176 }</pre>
177 </div>
178
179 <div class="method">
180 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
181 <pre>Deletes a composite index.
182
183 Args:
184 name: string, Required. A name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` (required)
185 x__xgafv: string, V1 error format.
186 Allowed values
187 1 - v1 error format
188 2 - v2 error format
189
190 Returns:
191 An object of the form:
192
193 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
194 }</pre>
195 </div>
196
197 <div class="method">
198 <code class="details" id="get">get(name, x__xgafv=None)</code>
199 <pre>Gets a composite index.
200
201 Args:
202 name: string, Required. A name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` (required)
203 x__xgafv: string, V1 error format.
204 Allowed values
205 1 - v1 error format
206 2 - v2 error format
207
208 Returns:
209 An object of the form:
210
211 { # Cloud Firestore indexes enable simple and complex queries against documents in a database.
212 &quot;apiScope&quot;: &quot;A String&quot;, # The API scope supported by this index.
213 &quot;density&quot;: &quot;A String&quot;, # Immutable. The density configuration of the index.
214 &quot;fields&quot;: [ # The fields supported by this index. For composite indexes, this requires a minimum of 2 and a maximum of 100 fields. The last field entry is always for the field path `__name__`. If, on creation, `__name__` was not specified as the last field, it will be added automatically with the same direction as that of the last field defined. If the final field in a composite index is not directional, the `__name__` will be ordered ASCENDING (unless explicitly specified). For single field indexes, this will always be exactly one entry with a field path equal to the field path of the associated field.
215 { # A field in an index. The field_path describes which field is indexed, the value_mode describes how the field value is indexed.
216 &quot;arrayConfig&quot;: &quot;A String&quot;, # Indicates that this field supports operations on `array_value`s.
217 &quot;fieldPath&quot;: &quot;A String&quot;, # Can be __name__. For single field indexes, this must match the name of the field or may be omitted.
218 &quot;order&quot;: &quot;A String&quot;, # Indicates that this field supports ordering by the specified order or comparing using =, !=, &lt;, &lt;=, &gt;, &gt;=.
219 &quot;searchConfig&quot;: { # The configuration for how to index a field for search. # Indicates that this field supports search operations.
220 &quot;geoSpec&quot;: { # The specification for how to build a geo search index for a field. # Optional. The specification for building a geo search index for a field.
221 &quot;geoJsonIndexingDisabled&quot;: True or False, # Optional. Disables geoJSON indexing for the field. By default, geoJSON points are indexed.
222 },
223 &quot;textSpec&quot;: { # The specification for how to build a text search index for a field. # Optional. The specification for building a text search index for a field.
224 &quot;indexSpecs&quot;: [ # Required. Specifications for how the field should be indexed. Repeated so that the field can be indexed in multiple ways.
225 { # Specification of how the field should be indexed for search text indexes.
226 &quot;indexType&quot;: &quot;A String&quot;, # Required. How to index the text field value.
227 &quot;matchType&quot;: &quot;A String&quot;, # Required. How to match the text field value.
228 },
229 ],
230 },
231 },
232 &quot;vectorConfig&quot;: { # The index configuration to support vector search operations # Indicates that this field supports nearest neighbor and distance operations on vector.
233 &quot;dimension&quot;: 42, # Required. The vector dimension this configuration applies to. The resulting index will only include vectors of this dimension, and can be used for vector search with the same dimension.
234 &quot;flat&quot;: { # An index that stores vectors in a flat data structure, and supports exhaustive search. # Indicates the vector index is a flat index.
235 },
236 },
237 },
238 ],
239 &quot;multikey&quot;: True or False, # Optional. Whether the index is multikey. By default, the index is not multikey. For non-multikey indexes, none of the paths in the index definition reach or traverse an array, except via an explicit array index. For multikey indexes, at most one of the paths in the index definition reach or traverse an array, except via an explicit array index. Violations will result in errors. Note this field only applies to index with MONGODB_COMPATIBLE_API ApiScope.
240 &quot;name&quot;: &quot;A String&quot;, # Output only. A server defined name for this index. The form of this name for composite indexes will be: `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}` For single field indexes, this field will be empty.
241 &quot;queryScope&quot;: &quot;A String&quot;, # Indexes with a collection query scope specified allow queries against a collection that is the child of a specific document, specified at query time, and that has the same collection ID. Indexes with a collection group query scope specified allow queries against all collections descended from a specific document, specified at query time, and that have the same collection ID as this index.
242 &quot;searchIndexOptions&quot;: { # Options for search indexes at the definition level. # Optional. Options for search indexes that are at the index definition level. This field is only currently supported for indexes with MONGODB_COMPATIBLE_API ApiScope.
243 &quot;textLanguage&quot;: &quot;A String&quot;, # Optional. The language to use for text search indexes. Used as the default language if not overridden at the document level by specifying the `text_language_override_field`. The language is specified as a BCP 47 language code. For indexes with MONGODB_COMPATIBLE_API ApiScope: If unspecified, the default language is English. For indexes with `ANY_API` ApiScope: If unspecified, the default behavior is autodetect.
244 &quot;textLanguageOverrideFieldPath&quot;: &quot;A String&quot;, # Optional. The field in the document that specifies which language to use for that specific document. For indexes with MONGODB_COMPATIBLE_API ApiScope: if unspecified, the language is taken from the &quot;language&quot; field if it exists or from `text_language` if it does not.
245 },
246 &quot;shardCount&quot;: 42, # Optional. The number of shards for the index.
247 &quot;state&quot;: &quot;A String&quot;, # Output only. The serving state of the index.
248 &quot;unique&quot;: True or False, # Optional. Whether it is an unique index. Unique index ensures all values for the indexed field(s) are unique across documents.
249 }</pre>
250 </div>
251
252 <div class="method">
253 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
254 <pre>Lists composite indexes.
255
256 Args:
257 parent: string, Required. A parent name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` (required)
258 filter: string, The filter to apply to list results.
259 pageSize: integer, The number of results to return.
260 pageToken: string, A page token, returned from a previous call to FirestoreAdmin.ListIndexes, that may be used to get the next page of results.
261 x__xgafv: string, V1 error format.
262 Allowed values
263 1 - v1 error format
264 2 - v2 error format
265
266 Returns:
267 An object of the form:
268
269 { # The response for FirestoreAdmin.ListIndexes.
270 &quot;indexes&quot;: [ # The requested indexes.
271 { # Cloud Firestore indexes enable simple and complex queries against documents in a database.
272 &quot;apiScope&quot;: &quot;A String&quot;, # The API scope supported by this index.
273 &quot;density&quot;: &quot;A String&quot;, # Immutable. The density configuration of the index.
274 &quot;fields&quot;: [ # The fields supported by this index. For composite indexes, this requires a minimum of 2 and a maximum of 100 fields. The last field entry is always for the field path `__name__`. If, on creation, `__name__` was not specified as the last field, it will be added automatically with the same direction as that of the last field defined. If the final field in a composite index is not directional, the `__name__` will be ordered ASCENDING (unless explicitly specified). For single field indexes, this will always be exactly one entry with a field path equal to the field path of the associated field.
275 { # A field in an index. The field_path describes which field is indexed, the value_mode describes how the field value is indexed.
276 &quot;arrayConfig&quot;: &quot;A String&quot;, # Indicates that this field supports operations on `array_value`s.
277 &quot;fieldPath&quot;: &quot;A String&quot;, # Can be __name__. For single field indexes, this must match the name of the field or may be omitted.
278 &quot;order&quot;: &quot;A String&quot;, # Indicates that this field supports ordering by the specified order or comparing using =, !=, &lt;, &lt;=, &gt;, &gt;=.
279 &quot;searchConfig&quot;: { # The configuration for how to index a field for search. # Indicates that this field supports search operations.
280 &quot;geoSpec&quot;: { # The specification for how to build a geo search index for a field. # Optional. The specification for building a geo search index for a field.
281 &quot;geoJsonIndexingDisabled&quot;: True or False, # Optional. Disables geoJSON indexing for the field. By default, geoJSON points are indexed.
282 },
283 &quot;textSpec&quot;: { # The specification for how to build a text search index for a field. # Optional. The specification for building a text search index for a field.
284 &quot;indexSpecs&quot;: [ # Required. Specifications for how the field should be indexed. Repeated so that the field can be indexed in multiple ways.
285 { # Specification of how the field should be indexed for search text indexes.
286 &quot;indexType&quot;: &quot;A String&quot;, # Required. How to index the text field value.
287 &quot;matchType&quot;: &quot;A String&quot;, # Required. How to match the text field value.
288 },
289 ],
290 },
291 },
292 &quot;vectorConfig&quot;: { # The index configuration to support vector search operations # Indicates that this field supports nearest neighbor and distance operations on vector.
293 &quot;dimension&quot;: 42, # Required. The vector dimension this configuration applies to. The resulting index will only include vectors of this dimension, and can be used for vector search with the same dimension.
294 &quot;flat&quot;: { # An index that stores vectors in a flat data structure, and supports exhaustive search. # Indicates the vector index is a flat index.
295 },
296 },
297 },
298 ],
299 &quot;multikey&quot;: True or False, # Optional. Whether the index is multikey. By default, the index is not multikey. For non-multikey indexes, none of the paths in the index definition reach or traverse an array, except via an explicit array index. For multikey indexes, at most one of the paths in the index definition reach or traverse an array, except via an explicit array index. Violations will result in errors. Note this field only applies to index with MONGODB_COMPATIBLE_API ApiScope.
300 &quot;name&quot;: &quot;A String&quot;, # Output only. A server defined name for this index. The form of this name for composite indexes will be: `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}` For single field indexes, this field will be empty.
301 &quot;queryScope&quot;: &quot;A String&quot;, # Indexes with a collection query scope specified allow queries against a collection that is the child of a specific document, specified at query time, and that has the same collection ID. Indexes with a collection group query scope specified allow queries against all collections descended from a specific document, specified at query time, and that have the same collection ID as this index.
302 &quot;searchIndexOptions&quot;: { # Options for search indexes at the definition level. # Optional. Options for search indexes that are at the index definition level. This field is only currently supported for indexes with MONGODB_COMPATIBLE_API ApiScope.
303 &quot;textLanguage&quot;: &quot;A String&quot;, # Optional. The language to use for text search indexes. Used as the default language if not overridden at the document level by specifying the `text_language_override_field`. The language is specified as a BCP 47 language code. For indexes with MONGODB_COMPATIBLE_API ApiScope: If unspecified, the default language is English. For indexes with `ANY_API` ApiScope: If unspecified, the default behavior is autodetect.
304 &quot;textLanguageOverrideFieldPath&quot;: &quot;A String&quot;, # Optional. The field in the document that specifies which language to use for that specific document. For indexes with MONGODB_COMPATIBLE_API ApiScope: if unspecified, the language is taken from the &quot;language&quot; field if it exists or from `text_language` if it does not.
305 },
306 &quot;shardCount&quot;: 42, # Optional. The number of shards for the index.
307 &quot;state&quot;: &quot;A String&quot;, # Output only. The serving state of the index.
308 &quot;unique&quot;: True or False, # Optional. Whether it is an unique index. Unique index ensures all values for the indexed field(s) are unique across documents.
309 },
310 ],
311 &quot;nextPageToken&quot;: &quot;A String&quot;, # A page token that may be used to request another page of results. If blank, this is the last page.
312 }</pre>
313 </div>
314
315 <div class="method">
316 <code class="details" id="list_next">list_next()</code>
317 <pre>Retrieves the next page of results.
318
319 Args:
320 previous_request: The request for the previous page. (required)
321 previous_response: The response from the request for the previous page. (required)
322
323 Returns:
324 A request object that you can call &#x27;execute()&#x27; on to request the next
325 page. Returns None if there are no more items in the collection.
326 </pre>
327 </div>
328
329 </body></html>