@maxim_mazurok/gapi.client.firestore-v1 0.0.20220715
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +2572 -0
- package/package.json +20 -0
- package/readme.md +71 -0
- package/tests.ts +1583 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,2572 @@
|
|
|
1
|
+
/* Type definitions for non-npm package Cloud Firestore API v1 0.0 */
|
|
2
|
+
// Project: https://cloud.google.com/firestore
|
|
3
|
+
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
|
|
4
|
+
// Nick Amoscato <https://github.com/namoscato>
|
|
5
|
+
// Declan Vong <https://github.com/declanvong>
|
|
6
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
|
+
// TypeScript Version: 2.8
|
|
8
|
+
|
|
9
|
+
// IMPORTANT
|
|
10
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
11
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
12
|
+
// Generated from: https://firestore.googleapis.com/$discovery/rest?version=v1
|
|
13
|
+
// Revision: 20220715
|
|
14
|
+
|
|
15
|
+
/// <reference types="gapi.client" />
|
|
16
|
+
|
|
17
|
+
declare namespace gapi.client {
|
|
18
|
+
/** Load Cloud Firestore API v1 */
|
|
19
|
+
function load(urlOrObject: "https://firestore.googleapis.com/$discovery/rest?version=v1"): Promise<void>;
|
|
20
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
21
|
+
function load(name: "firestore", version: "v1"): Promise<void>;
|
|
22
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
23
|
+
function load(name: "firestore", version: "v1", callback: () => any): void;
|
|
24
|
+
|
|
25
|
+
namespace firestore {
|
|
26
|
+
interface ArrayValue {
|
|
27
|
+
/** Values in the array. */
|
|
28
|
+
values?: Value[];
|
|
29
|
+
}
|
|
30
|
+
interface BatchGetDocumentsRequest {
|
|
31
|
+
/**
|
|
32
|
+
* The names of the documents to retrieve. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. The request will fail if any of the document is not
|
|
33
|
+
* a child resource of the given `database`. Duplicate names will be elided.
|
|
34
|
+
*/
|
|
35
|
+
documents?: string[];
|
|
36
|
+
/** The fields to return. If not set, returns all fields. If a document has a field that is not present in this mask, that field will not be returned in the response. */
|
|
37
|
+
mask?: DocumentMask;
|
|
38
|
+
/** Starts a new transaction and reads the documents. Defaults to a read-only transaction. The new transaction ID will be returned as the first response in the stream. */
|
|
39
|
+
newTransaction?: TransactionOptions;
|
|
40
|
+
/** Reads documents as they were at the given time. This may not be older than 270 seconds. */
|
|
41
|
+
readTime?: string;
|
|
42
|
+
/** Reads documents in a transaction. */
|
|
43
|
+
transaction?: string;
|
|
44
|
+
}
|
|
45
|
+
interface BatchGetDocumentsResponse {
|
|
46
|
+
/** A document that was requested. */
|
|
47
|
+
found?: Document;
|
|
48
|
+
/** A document name that was requested but does not exist. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. */
|
|
49
|
+
missing?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The time at which the document was read. This may be monotically increasing, in this case the previous documents in the result stream are guaranteed not to have changed between
|
|
52
|
+
* their read_time and this one.
|
|
53
|
+
*/
|
|
54
|
+
readTime?: string;
|
|
55
|
+
/** The transaction that was started as part of this request. Will only be set in the first response, and only if BatchGetDocumentsRequest.new_transaction was set in the request. */
|
|
56
|
+
transaction?: string;
|
|
57
|
+
}
|
|
58
|
+
interface BatchWriteRequest {
|
|
59
|
+
/** Labels associated with this batch write. */
|
|
60
|
+
labels?: { [P in string]: string };
|
|
61
|
+
/**
|
|
62
|
+
* The writes to apply. Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more
|
|
63
|
+
* than once per request.
|
|
64
|
+
*/
|
|
65
|
+
writes?: Write[];
|
|
66
|
+
}
|
|
67
|
+
interface BatchWriteResponse {
|
|
68
|
+
/** The status of applying the writes. This i-th write status corresponds to the i-th write in the request. */
|
|
69
|
+
status?: Status[];
|
|
70
|
+
/** The result of applying the writes. This i-th write result corresponds to the i-th write in the request. */
|
|
71
|
+
writeResults?: WriteResult[];
|
|
72
|
+
}
|
|
73
|
+
interface BeginTransactionRequest {
|
|
74
|
+
/** The options for the transaction. Defaults to a read-write transaction. */
|
|
75
|
+
options?: TransactionOptions;
|
|
76
|
+
}
|
|
77
|
+
interface BeginTransactionResponse {
|
|
78
|
+
/** The transaction that was started. */
|
|
79
|
+
transaction?: string;
|
|
80
|
+
}
|
|
81
|
+
interface CollectionSelector {
|
|
82
|
+
/** When false, selects only collections that are immediate children of the `parent` specified in the containing `RunQueryRequest`. When true, selects all descendant collections. */
|
|
83
|
+
allDescendants?: boolean;
|
|
84
|
+
/** The collection ID. When set, selects only collections with this ID. */
|
|
85
|
+
collectionId?: string;
|
|
86
|
+
}
|
|
87
|
+
interface CommitRequest {
|
|
88
|
+
/** If set, applies all writes in this transaction, and commits it. */
|
|
89
|
+
transaction?: string;
|
|
90
|
+
/** The writes to apply. Always executed atomically and in order. */
|
|
91
|
+
writes?: Write[];
|
|
92
|
+
}
|
|
93
|
+
interface CommitResponse {
|
|
94
|
+
/** The time at which the commit occurred. Any read with an equal or greater `read_time` is guaranteed to see the effects of the commit. */
|
|
95
|
+
commitTime?: string;
|
|
96
|
+
/** The result of applying the writes. This i-th write result corresponds to the i-th write in the request. */
|
|
97
|
+
writeResults?: WriteResult[];
|
|
98
|
+
}
|
|
99
|
+
interface CompositeFilter {
|
|
100
|
+
/** The list of filters to combine. Requires: * At least one filter is present. */
|
|
101
|
+
filters?: Filter[];
|
|
102
|
+
/** The operator for combining multiple filters. */
|
|
103
|
+
op?: string;
|
|
104
|
+
}
|
|
105
|
+
interface Cursor {
|
|
106
|
+
/** If the position is just before or just after the given values, relative to the sort order defined by the query. */
|
|
107
|
+
before?: boolean;
|
|
108
|
+
/** The values that represent a position, in the order they appear in the order by clause of a query. Can contain fewer values than specified in the order by clause. */
|
|
109
|
+
values?: Value[];
|
|
110
|
+
}
|
|
111
|
+
interface Document {
|
|
112
|
+
/**
|
|
113
|
+
* Output only. The time at which the document was created. This value increases monotonically when a document is deleted then recreated. It can also be compared to values from other
|
|
114
|
+
* documents and the `read_time` of a query.
|
|
115
|
+
*/
|
|
116
|
+
createTime?: string;
|
|
117
|
+
/**
|
|
118
|
+
* The document's fields. The map keys represent field names. A simple field name contains only characters `a` to `z`, `A` to `Z`, `0` to `9`, or `_`, and must not start with `0` to
|
|
119
|
+
* `9`. For example, `foo_bar_17`. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map
|
|
120
|
+
* keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty. Field paths may be used in other contexts to refer to structured fields defined here. For `map_value`,
|
|
121
|
+
* the field path is represented by the simple or quoted field names of the containing fields, delimited by `.`. For example, the structured field `"foo" : { map_value: { "x&y" : {
|
|
122
|
+
* string_value: "hello" }}}` would be represented by the field path `foo.x&y`. Within a field path, a quoted field name starts and ends with `` ` `` and may contain any character.
|
|
123
|
+
* Some characters, including `` ` ``, must be escaped using a `\`. For example, `` `x&y` `` represents `x&y` and `` `bak\`tik` `` represents `` bak`tik ``.
|
|
124
|
+
*/
|
|
125
|
+
fields?: { [P in string]: Value };
|
|
126
|
+
/** The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`. */
|
|
127
|
+
name?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Output only. The time at which the document was last changed. This value is initially set to the `create_time` then increases monotonically with each change to the document. It can
|
|
130
|
+
* also be compared to values from other documents and the `read_time` of a query.
|
|
131
|
+
*/
|
|
132
|
+
updateTime?: string;
|
|
133
|
+
}
|
|
134
|
+
interface DocumentChange {
|
|
135
|
+
/** The new state of the Document. If `mask` is set, contains only fields that were updated or added. */
|
|
136
|
+
document?: Document;
|
|
137
|
+
/** A set of target IDs for targets that no longer match this document. */
|
|
138
|
+
removedTargetIds?: number[];
|
|
139
|
+
/** A set of target IDs of targets that match this document. */
|
|
140
|
+
targetIds?: number[];
|
|
141
|
+
}
|
|
142
|
+
interface DocumentDelete {
|
|
143
|
+
/** The resource name of the Document that was deleted. */
|
|
144
|
+
document?: string;
|
|
145
|
+
/** The read timestamp at which the delete was observed. Greater or equal to the `commit_time` of the delete. */
|
|
146
|
+
readTime?: string;
|
|
147
|
+
/** A set of target IDs for targets that previously matched this entity. */
|
|
148
|
+
removedTargetIds?: number[];
|
|
149
|
+
}
|
|
150
|
+
interface DocumentMask {
|
|
151
|
+
/** The list of field paths in the mask. See Document.fields for a field path syntax reference. */
|
|
152
|
+
fieldPaths?: string[];
|
|
153
|
+
}
|
|
154
|
+
interface DocumentRemove {
|
|
155
|
+
/** The resource name of the Document that has gone out of view. */
|
|
156
|
+
document?: string;
|
|
157
|
+
/** The read timestamp at which the remove was observed. Greater or equal to the `commit_time` of the change/delete/remove. */
|
|
158
|
+
readTime?: string;
|
|
159
|
+
/** A set of target IDs for targets that previously matched this document. */
|
|
160
|
+
removedTargetIds?: number[];
|
|
161
|
+
}
|
|
162
|
+
interface DocumentsTarget {
|
|
163
|
+
/**
|
|
164
|
+
* The names of the documents to retrieve. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. The request will fail if any of the document is not
|
|
165
|
+
* a child resource of the given `database`. Duplicate names will be elided.
|
|
166
|
+
*/
|
|
167
|
+
documents?: string[];
|
|
168
|
+
}
|
|
169
|
+
interface DocumentTransform {
|
|
170
|
+
/** The name of the document to transform. */
|
|
171
|
+
document?: string;
|
|
172
|
+
/** The list of transformations to apply to the fields of the document, in order. This must not be empty. */
|
|
173
|
+
fieldTransforms?: FieldTransform[];
|
|
174
|
+
}
|
|
175
|
+
// tslint:disable-next-line:no-empty-interface
|
|
176
|
+
interface Empty {
|
|
177
|
+
}
|
|
178
|
+
interface ExistenceFilter {
|
|
179
|
+
/**
|
|
180
|
+
* The total count of documents that match target_id. If different from the count of documents in the client that match, the client must manually determine which documents no longer
|
|
181
|
+
* match the target.
|
|
182
|
+
*/
|
|
183
|
+
count?: number;
|
|
184
|
+
/** The target ID to which this filter applies. */
|
|
185
|
+
targetId?: number;
|
|
186
|
+
}
|
|
187
|
+
interface FieldFilter {
|
|
188
|
+
/** The field to filter by. */
|
|
189
|
+
field?: FieldReference;
|
|
190
|
+
/** The operator to filter by. */
|
|
191
|
+
op?: string;
|
|
192
|
+
/** The value to compare to. */
|
|
193
|
+
value?: Value;
|
|
194
|
+
}
|
|
195
|
+
interface FieldReference {
|
|
196
|
+
fieldPath?: string;
|
|
197
|
+
}
|
|
198
|
+
interface FieldTransform {
|
|
199
|
+
/**
|
|
200
|
+
* Append the given elements in order if they are not already present in the current field value. If the field is not an array, or if the field does not yet exist, it is first set to
|
|
201
|
+
* the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when checking if a value is missing. NaN is equal to NaN, and Null is equal to Null. If
|
|
202
|
+
* the input contains multiple equivalent values, only the first will be considered. The corresponding transform_result will be the null value.
|
|
203
|
+
*/
|
|
204
|
+
appendMissingElements?: ArrayValue;
|
|
205
|
+
/** The path of the field. See Document.fields for the field path syntax reference. */
|
|
206
|
+
fieldPath?: string;
|
|
207
|
+
/**
|
|
208
|
+
* Adds the given value to the field's current value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the
|
|
209
|
+
* transformation will set the field to the given value. If either of the given value or the current field value are doubles, both values will be interpreted as doubles. Double
|
|
210
|
+
* arithmetic and representation of double values follow IEEE 754 semantics. If there is positive/negative integer overflow, the field is resolved to the largest magnitude
|
|
211
|
+
* positive/negative integer.
|
|
212
|
+
*/
|
|
213
|
+
increment?: Value;
|
|
214
|
+
/**
|
|
215
|
+
* Sets the field to the maximum of its current value and the given value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not
|
|
216
|
+
* yet exist, the transformation will set the field to the given value. If a maximum operation is applied where the field and the input value are of mixed types (that is - one is an
|
|
217
|
+
* integer and one is a double) the field takes on the type of the larger operand. If the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all
|
|
218
|
+
* zero. The maximum of a zero stored value and zero input value is always the stored value. The maximum of any numeric value x and NaN is NaN.
|
|
219
|
+
*/
|
|
220
|
+
maximum?: Value;
|
|
221
|
+
/**
|
|
222
|
+
* Sets the field to the minimum of its current value and the given value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not
|
|
223
|
+
* yet exist, the transformation will set the field to the input value. If a minimum operation is applied where the field and the input value are of mixed types (that is - one is an
|
|
224
|
+
* integer and one is a double) the field takes on the type of the smaller operand. If the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all
|
|
225
|
+
* zero. The minimum of a zero stored value and zero input value is always the stored value. The minimum of any numeric value x and NaN is NaN.
|
|
226
|
+
*/
|
|
227
|
+
minimum?: Value;
|
|
228
|
+
/**
|
|
229
|
+
* Remove all of the given elements from the array in the field. If the field is not an array, or if the field does not yet exist, it is set to the empty array. Equivalent numbers of
|
|
230
|
+
* the different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and Null is equal to Null. This will remove all
|
|
231
|
+
* equivalent values if there are duplicates. The corresponding transform_result will be the null value.
|
|
232
|
+
*/
|
|
233
|
+
removeAllFromArray?: ArrayValue;
|
|
234
|
+
/** Sets the field to the given server value. */
|
|
235
|
+
setToServerValue?: string;
|
|
236
|
+
}
|
|
237
|
+
interface Filter {
|
|
238
|
+
/** A composite filter. */
|
|
239
|
+
compositeFilter?: CompositeFilter;
|
|
240
|
+
/** A filter on a document field. */
|
|
241
|
+
fieldFilter?: FieldFilter;
|
|
242
|
+
/** A filter that takes exactly one argument. */
|
|
243
|
+
unaryFilter?: UnaryFilter;
|
|
244
|
+
}
|
|
245
|
+
interface GoogleFirestoreAdminV1Database {
|
|
246
|
+
/** The App Engine integration mode to use for this database. */
|
|
247
|
+
appEngineIntegrationMode?: string;
|
|
248
|
+
/** The concurrency control mode to use for this database. */
|
|
249
|
+
concurrencyMode?: string;
|
|
250
|
+
/**
|
|
251
|
+
* This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before
|
|
252
|
+
* proceeding.
|
|
253
|
+
*/
|
|
254
|
+
etag?: string;
|
|
255
|
+
/**
|
|
256
|
+
* Output only. The key_prefix for this database. This key_prefix is used, in combination with the project id ("~") to construct the application id that is returned from the Cloud
|
|
257
|
+
* Datastore APIs in Google App Engine first generation runtimes. This value may be empty in which case the appid to use for URL-encoded keys is the project_id (eg: foo instead of
|
|
258
|
+
* v~foo).
|
|
259
|
+
*/
|
|
260
|
+
keyPrefix?: string;
|
|
261
|
+
/** The location of the database. Available databases are listed at https://cloud.google.com/firestore/docs/locations. */
|
|
262
|
+
locationId?: string;
|
|
263
|
+
/** The resource name of the Database. Format: `projects/{project}/databases/{database}` */
|
|
264
|
+
name?: string;
|
|
265
|
+
/** The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose. */
|
|
266
|
+
type?: string;
|
|
267
|
+
}
|
|
268
|
+
interface GoogleFirestoreAdminV1ExportDocumentsMetadata {
|
|
269
|
+
/** Which collection ids are being exported. */
|
|
270
|
+
collectionIds?: string[];
|
|
271
|
+
/** The time this operation completed. Will be unset if operation still in progress. */
|
|
272
|
+
endTime?: string;
|
|
273
|
+
/** The state of the export operation. */
|
|
274
|
+
operationState?: string;
|
|
275
|
+
/** Where the entities are being exported to. */
|
|
276
|
+
outputUriPrefix?: string;
|
|
277
|
+
/** The progress, in bytes, of this operation. */
|
|
278
|
+
progressBytes?: GoogleFirestoreAdminV1Progress;
|
|
279
|
+
/** The progress, in documents, of this operation. */
|
|
280
|
+
progressDocuments?: GoogleFirestoreAdminV1Progress;
|
|
281
|
+
/** The time this operation started. */
|
|
282
|
+
startTime?: string;
|
|
283
|
+
}
|
|
284
|
+
interface GoogleFirestoreAdminV1ExportDocumentsRequest {
|
|
285
|
+
/** Which collection ids to export. Unspecified means all collections. */
|
|
286
|
+
collectionIds?: string[];
|
|
287
|
+
/**
|
|
288
|
+
* The output URI. Currently only supports Google Cloud Storage URIs of the form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name of the Google Cloud Storage
|
|
289
|
+
* bucket and `NAMESPACE_PATH` is an optional Google Cloud Storage namespace path. When choosing a name, be sure to consider Google Cloud Storage naming guidelines:
|
|
290
|
+
* https://cloud.google.com/storage/docs/naming. If the URI is a bucket (without a namespace path), a prefix will be generated based on the start time.
|
|
291
|
+
*/
|
|
292
|
+
outputUriPrefix?: string;
|
|
293
|
+
}
|
|
294
|
+
interface GoogleFirestoreAdminV1ExportDocumentsResponse {
|
|
295
|
+
/** Location of the output files. This can be used to begin an import into Cloud Firestore (this project or another project) after the operation completes successfully. */
|
|
296
|
+
outputUriPrefix?: string;
|
|
297
|
+
}
|
|
298
|
+
interface GoogleFirestoreAdminV1Field {
|
|
299
|
+
/**
|
|
300
|
+
* The index configuration for this field. If unset, field indexing will revert to the configuration defined by the `ancestor_field`. To explicitly remove all indexes for this field,
|
|
301
|
+
* specify an index config with an empty list of indexes.
|
|
302
|
+
*/
|
|
303
|
+
indexConfig?: GoogleFirestoreAdminV1IndexConfig;
|
|
304
|
+
/**
|
|
305
|
+
* Required. A field name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` A field path may be a simple field name, e.g.
|
|
306
|
+
* `address` or a path to fields within map_value , e.g. `address.city`, or a special field path. The only valid special field is `*`, which represents any field. Field paths may be
|
|
307
|
+
* quoted using ` (backtick). The only character that needs to be escaped within a quoted field path is the backtick character itself, escaped using a backslash. Special characters in
|
|
308
|
+
* field paths that must be quoted include: `*`, `.`, ``` (backtick), `[`, `]`, as well as any ascii symbolic characters. Examples: (Note: Comments here are written in markdown syntax,
|
|
309
|
+
* so there is an additional layer of backticks to represent a code block) `\`address.city\`` represents a field named `address.city`, not the map key `city` in the field `address`.
|
|
310
|
+
* `\`*\`` represents a field named `*`, not any field. A special `Field` contains the default indexing settings for all fields. This field's resource name is:
|
|
311
|
+
* `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*` Indexes defined on this `Field` will be applied to all fields which do not have their own
|
|
312
|
+
* `Field` index configuration.
|
|
313
|
+
*/
|
|
314
|
+
name?: string;
|
|
315
|
+
/** The TTL configuration for this `Field`. Setting or unsetting this will enable or disable the TTL for documents that have this `Field`. */
|
|
316
|
+
ttlConfig?: GoogleFirestoreAdminV1TtlConfig;
|
|
317
|
+
}
|
|
318
|
+
interface GoogleFirestoreAdminV1FieldOperationMetadata {
|
|
319
|
+
/** The time this operation completed. Will be unset if operation still in progress. */
|
|
320
|
+
endTime?: string;
|
|
321
|
+
/** The field resource that this operation is acting on. For example: `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` */
|
|
322
|
+
field?: string;
|
|
323
|
+
/** A list of IndexConfigDelta, which describe the intent of this operation. */
|
|
324
|
+
indexConfigDeltas?: GoogleFirestoreAdminV1IndexConfigDelta[];
|
|
325
|
+
/** The progress, in bytes, of this operation. */
|
|
326
|
+
progressBytes?: GoogleFirestoreAdminV1Progress;
|
|
327
|
+
/** The progress, in documents, of this operation. */
|
|
328
|
+
progressDocuments?: GoogleFirestoreAdminV1Progress;
|
|
329
|
+
/** The time this operation started. */
|
|
330
|
+
startTime?: string;
|
|
331
|
+
/** The state of the operation. */
|
|
332
|
+
state?: string;
|
|
333
|
+
/** Describes the deltas of TTL configuration. */
|
|
334
|
+
ttlConfigDelta?: GoogleFirestoreAdminV1TtlConfigDelta;
|
|
335
|
+
}
|
|
336
|
+
interface GoogleFirestoreAdminV1ImportDocumentsMetadata {
|
|
337
|
+
/** Which collection ids are being imported. */
|
|
338
|
+
collectionIds?: string[];
|
|
339
|
+
/** The time this operation completed. Will be unset if operation still in progress. */
|
|
340
|
+
endTime?: string;
|
|
341
|
+
/** The location of the documents being imported. */
|
|
342
|
+
inputUriPrefix?: string;
|
|
343
|
+
/** The state of the import operation. */
|
|
344
|
+
operationState?: string;
|
|
345
|
+
/** The progress, in bytes, of this operation. */
|
|
346
|
+
progressBytes?: GoogleFirestoreAdminV1Progress;
|
|
347
|
+
/** The progress, in documents, of this operation. */
|
|
348
|
+
progressDocuments?: GoogleFirestoreAdminV1Progress;
|
|
349
|
+
/** The time this operation started. */
|
|
350
|
+
startTime?: string;
|
|
351
|
+
}
|
|
352
|
+
interface GoogleFirestoreAdminV1ImportDocumentsRequest {
|
|
353
|
+
/** Which collection ids to import. Unspecified means all collections included in the import. */
|
|
354
|
+
collectionIds?: string[];
|
|
355
|
+
/**
|
|
356
|
+
* Location of the exported files. This must match the output_uri_prefix of an ExportDocumentsResponse from an export that has completed successfully. See:
|
|
357
|
+
* google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix.
|
|
358
|
+
*/
|
|
359
|
+
inputUriPrefix?: string;
|
|
360
|
+
}
|
|
361
|
+
interface GoogleFirestoreAdminV1Index {
|
|
362
|
+
/**
|
|
363
|
+
* The fields supported by this index. For composite indexes, this is always 2 or more fields. The last field entry is always for the field path `__name__`. If, on creation, `__name__`
|
|
364
|
+
* 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
|
|
365
|
+
* 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
|
|
366
|
+
* field path of the associated field.
|
|
367
|
+
*/
|
|
368
|
+
fields?: GoogleFirestoreAdminV1IndexField[];
|
|
369
|
+
/**
|
|
370
|
+
* Output only. A server defined name for this index. The form of this name for composite indexes will be:
|
|
371
|
+
* `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}` For single field indexes, this field will be empty.
|
|
372
|
+
*/
|
|
373
|
+
name?: string;
|
|
374
|
+
/**
|
|
375
|
+
* 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
|
|
376
|
+
* 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
|
|
377
|
+
* the same collection id as this index.
|
|
378
|
+
*/
|
|
379
|
+
queryScope?: string;
|
|
380
|
+
/** Output only. The serving state of the index. */
|
|
381
|
+
state?: string;
|
|
382
|
+
}
|
|
383
|
+
interface GoogleFirestoreAdminV1IndexConfig {
|
|
384
|
+
/**
|
|
385
|
+
* Output only. Specifies the resource name of the `Field` from which this field's index configuration is set (when `uses_ancestor_config` is true), or from which it *would* be set if
|
|
386
|
+
* this field had no index configuration (when `uses_ancestor_config` is false).
|
|
387
|
+
*/
|
|
388
|
+
ancestorField?: string;
|
|
389
|
+
/** The indexes supported for this field. */
|
|
390
|
+
indexes?: GoogleFirestoreAdminV1Index[];
|
|
391
|
+
/**
|
|
392
|
+
* Output only When true, the `Field`'s index configuration is in the process of being reverted. Once complete, the index config will transition to the same state as the field
|
|
393
|
+
* specified by `ancestor_field`, at which point `uses_ancestor_config` will be `true` and `reverting` will be `false`.
|
|
394
|
+
*/
|
|
395
|
+
reverting?: boolean;
|
|
396
|
+
/**
|
|
397
|
+
* Output only. When true, the `Field`'s index configuration is set from the configuration specified by the `ancestor_field`. When false, the `Field`'s index configuration is defined
|
|
398
|
+
* explicitly.
|
|
399
|
+
*/
|
|
400
|
+
usesAncestorConfig?: boolean;
|
|
401
|
+
}
|
|
402
|
+
interface GoogleFirestoreAdminV1IndexConfigDelta {
|
|
403
|
+
/** Specifies how the index is changing. */
|
|
404
|
+
changeType?: string;
|
|
405
|
+
/** The index being changed. */
|
|
406
|
+
index?: GoogleFirestoreAdminV1Index;
|
|
407
|
+
}
|
|
408
|
+
interface GoogleFirestoreAdminV1IndexField {
|
|
409
|
+
/** Indicates that this field supports operations on `array_value`s. */
|
|
410
|
+
arrayConfig?: string;
|
|
411
|
+
/** Can be __name__. For single field indexes, this must match the name of the field or may be omitted. */
|
|
412
|
+
fieldPath?: string;
|
|
413
|
+
/** Indicates that this field supports ordering by the specified order or comparing using =, !=, <, <=, >, >=. */
|
|
414
|
+
order?: string;
|
|
415
|
+
}
|
|
416
|
+
interface GoogleFirestoreAdminV1IndexOperationMetadata {
|
|
417
|
+
/** The time this operation completed. Will be unset if operation still in progress. */
|
|
418
|
+
endTime?: string;
|
|
419
|
+
/** The index resource that this operation is acting on. For example: `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` */
|
|
420
|
+
index?: string;
|
|
421
|
+
/** The progress, in bytes, of this operation. */
|
|
422
|
+
progressBytes?: GoogleFirestoreAdminV1Progress;
|
|
423
|
+
/** The progress, in documents, of this operation. */
|
|
424
|
+
progressDocuments?: GoogleFirestoreAdminV1Progress;
|
|
425
|
+
/** The time this operation started. */
|
|
426
|
+
startTime?: string;
|
|
427
|
+
/** The state of the operation. */
|
|
428
|
+
state?: string;
|
|
429
|
+
}
|
|
430
|
+
interface GoogleFirestoreAdminV1ListDatabasesResponse {
|
|
431
|
+
/** The databases in the project. */
|
|
432
|
+
databases?: GoogleFirestoreAdminV1Database[];
|
|
433
|
+
}
|
|
434
|
+
interface GoogleFirestoreAdminV1ListFieldsResponse {
|
|
435
|
+
/** The requested fields. */
|
|
436
|
+
fields?: GoogleFirestoreAdminV1Field[];
|
|
437
|
+
/** A page token that may be used to request another page of results. If blank, this is the last page. */
|
|
438
|
+
nextPageToken?: string;
|
|
439
|
+
}
|
|
440
|
+
interface GoogleFirestoreAdminV1ListIndexesResponse {
|
|
441
|
+
/** The requested indexes. */
|
|
442
|
+
indexes?: GoogleFirestoreAdminV1Index[];
|
|
443
|
+
/** A page token that may be used to request another page of results. If blank, this is the last page. */
|
|
444
|
+
nextPageToken?: string;
|
|
445
|
+
}
|
|
446
|
+
// tslint:disable-next-line:no-empty-interface
|
|
447
|
+
interface GoogleFirestoreAdminV1LocationMetadata {
|
|
448
|
+
}
|
|
449
|
+
interface GoogleFirestoreAdminV1Progress {
|
|
450
|
+
/** The amount of work completed. */
|
|
451
|
+
completedWork?: string;
|
|
452
|
+
/** The amount of work estimated. */
|
|
453
|
+
estimatedWork?: string;
|
|
454
|
+
}
|
|
455
|
+
interface GoogleFirestoreAdminV1TtlConfig {
|
|
456
|
+
/** Output only. The state of the TTL configuration. */
|
|
457
|
+
state?: string;
|
|
458
|
+
}
|
|
459
|
+
interface GoogleFirestoreAdminV1TtlConfigDelta {
|
|
460
|
+
/** Specifies how the TTL configuration is changing. */
|
|
461
|
+
changeType?: string;
|
|
462
|
+
}
|
|
463
|
+
// tslint:disable-next-line:no-empty-interface
|
|
464
|
+
interface GoogleFirestoreAdminV1UpdateDatabaseMetadata {
|
|
465
|
+
}
|
|
466
|
+
// tslint:disable-next-line:no-empty-interface
|
|
467
|
+
interface GoogleLongrunningCancelOperationRequest {
|
|
468
|
+
}
|
|
469
|
+
interface GoogleLongrunningListOperationsResponse {
|
|
470
|
+
/** The standard List next-page token. */
|
|
471
|
+
nextPageToken?: string;
|
|
472
|
+
/** A list of operations that matches the specified filter in the request. */
|
|
473
|
+
operations?: GoogleLongrunningOperation[];
|
|
474
|
+
}
|
|
475
|
+
interface GoogleLongrunningOperation {
|
|
476
|
+
/** 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. */
|
|
477
|
+
done?: boolean;
|
|
478
|
+
/** The error result of the operation in case of failure or cancellation. */
|
|
479
|
+
error?: Status;
|
|
480
|
+
/**
|
|
481
|
+
* 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
|
|
482
|
+
* metadata. Any method that returns a long-running operation should document the metadata type, if any.
|
|
483
|
+
*/
|
|
484
|
+
metadata?: { [P in string]: any };
|
|
485
|
+
/**
|
|
486
|
+
* 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
|
|
487
|
+
* with `operations/{unique_id}`.
|
|
488
|
+
*/
|
|
489
|
+
name?: string;
|
|
490
|
+
/**
|
|
491
|
+
* The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the
|
|
492
|
+
* 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
|
|
493
|
+
* original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
|
|
494
|
+
*/
|
|
495
|
+
response?: { [P in string]: any };
|
|
496
|
+
}
|
|
497
|
+
interface LatLng {
|
|
498
|
+
/** The latitude in degrees. It must be in the range [-90.0, +90.0]. */
|
|
499
|
+
latitude?: number;
|
|
500
|
+
/** The longitude in degrees. It must be in the range [-180.0, +180.0]. */
|
|
501
|
+
longitude?: number;
|
|
502
|
+
}
|
|
503
|
+
interface ListCollectionIdsRequest {
|
|
504
|
+
/** The maximum number of results to return. */
|
|
505
|
+
pageSize?: number;
|
|
506
|
+
/** A page token. Must be a value from ListCollectionIdsResponse. */
|
|
507
|
+
pageToken?: string;
|
|
508
|
+
/** Reads documents as they were at the given time. This may not be older than 270 seconds. */
|
|
509
|
+
readTime?: string;
|
|
510
|
+
}
|
|
511
|
+
interface ListCollectionIdsResponse {
|
|
512
|
+
/** The collection ids. */
|
|
513
|
+
collectionIds?: string[];
|
|
514
|
+
/** A page token that may be used to continue the list. */
|
|
515
|
+
nextPageToken?: string;
|
|
516
|
+
}
|
|
517
|
+
interface ListDocumentsResponse {
|
|
518
|
+
/** The Documents found. */
|
|
519
|
+
documents?: Document[];
|
|
520
|
+
/** The next page token. */
|
|
521
|
+
nextPageToken?: string;
|
|
522
|
+
}
|
|
523
|
+
interface ListenRequest {
|
|
524
|
+
/** A target to add to this stream. */
|
|
525
|
+
addTarget?: Target;
|
|
526
|
+
/** Labels associated with this target change. */
|
|
527
|
+
labels?: { [P in string]: string };
|
|
528
|
+
/** The ID of a target to remove from this stream. */
|
|
529
|
+
removeTarget?: number;
|
|
530
|
+
}
|
|
531
|
+
interface ListenResponse {
|
|
532
|
+
/** A Document has changed. */
|
|
533
|
+
documentChange?: DocumentChange;
|
|
534
|
+
/** A Document has been deleted. */
|
|
535
|
+
documentDelete?: DocumentDelete;
|
|
536
|
+
/** A Document has been removed from a target (because it is no longer relevant to that target). */
|
|
537
|
+
documentRemove?: DocumentRemove;
|
|
538
|
+
/**
|
|
539
|
+
* A filter to apply to the set of documents previously returned for the given target. Returned when documents may have been removed from the given target, but the exact documents are
|
|
540
|
+
* unknown.
|
|
541
|
+
*/
|
|
542
|
+
filter?: ExistenceFilter;
|
|
543
|
+
/** Targets have changed. */
|
|
544
|
+
targetChange?: TargetChange;
|
|
545
|
+
}
|
|
546
|
+
interface ListLocationsResponse {
|
|
547
|
+
/** A list of locations that matches the specified filter in the request. */
|
|
548
|
+
locations?: Location[];
|
|
549
|
+
/** The standard List next-page token. */
|
|
550
|
+
nextPageToken?: string;
|
|
551
|
+
}
|
|
552
|
+
interface Location {
|
|
553
|
+
/** The friendly name for this location, typically a nearby city name. For example, "Tokyo". */
|
|
554
|
+
displayName?: string;
|
|
555
|
+
/** Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} */
|
|
556
|
+
labels?: { [P in string]: string };
|
|
557
|
+
/** The canonical id for this location. For example: `"us-east1"`. */
|
|
558
|
+
locationId?: string;
|
|
559
|
+
/** Service-specific metadata. For example the available capacity at the given location. */
|
|
560
|
+
metadata?: { [P in string]: any };
|
|
561
|
+
/** Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"` */
|
|
562
|
+
name?: string;
|
|
563
|
+
}
|
|
564
|
+
interface MapValue {
|
|
565
|
+
/**
|
|
566
|
+
* The map's fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain
|
|
567
|
+
* documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
|
|
568
|
+
*/
|
|
569
|
+
fields?: { [P in string]: Value };
|
|
570
|
+
}
|
|
571
|
+
interface Order {
|
|
572
|
+
/** The direction to order by. Defaults to `ASCENDING`. */
|
|
573
|
+
direction?: string;
|
|
574
|
+
/** The field to order by. */
|
|
575
|
+
field?: FieldReference;
|
|
576
|
+
}
|
|
577
|
+
interface PartitionQueryRequest {
|
|
578
|
+
/**
|
|
579
|
+
* The maximum number of partitions to return in this call, subject to `partition_count`. For example, if `partition_count` = 10 and `page_size` = 8, the first call to PartitionQuery
|
|
580
|
+
* will return up to 8 partitions and a `next_page_token` if more results exist. A second call to PartitionQuery will return up to 2 partitions, to complete the total of 10 specified
|
|
581
|
+
* in `partition_count`.
|
|
582
|
+
*/
|
|
583
|
+
pageSize?: number;
|
|
584
|
+
/**
|
|
585
|
+
* The `next_page_token` value returned from a previous call to PartitionQuery that may be used to get an additional set of results. There are no ordering guarantees between sets of
|
|
586
|
+
* results. Thus, using multiple sets of results will require merging the different result sets. For example, two subsequent calls using a page_token may return: * cursor B, cursor M,
|
|
587
|
+
* cursor Q * cursor A, cursor U, cursor W To obtain a complete result set ordered with respect to the results of the query supplied to PartitionQuery, the results sets should be
|
|
588
|
+
* merged: cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W
|
|
589
|
+
*/
|
|
590
|
+
pageToken?: string;
|
|
591
|
+
/**
|
|
592
|
+
* The desired maximum number of partition points. The partitions may be returned across multiple pages of results. The number must be positive. The actual number of partitions
|
|
593
|
+
* returned may be fewer. For example, this may be set to one fewer than the number of parallel queries to be run, or in running a data pipeline job, one fewer than the number of
|
|
594
|
+
* workers or compute instances available.
|
|
595
|
+
*/
|
|
596
|
+
partitionCount?: string;
|
|
597
|
+
/** Reads documents as they were at the given time. This may not be older than 270 seconds. */
|
|
598
|
+
readTime?: string;
|
|
599
|
+
/**
|
|
600
|
+
* A structured query. Query must specify collection with all descendants and be ordered by name ascending. Other filters, order bys, limits, offsets, and start/end cursors are not
|
|
601
|
+
* supported.
|
|
602
|
+
*/
|
|
603
|
+
structuredQuery?: StructuredQuery;
|
|
604
|
+
}
|
|
605
|
+
interface PartitionQueryResponse {
|
|
606
|
+
/**
|
|
607
|
+
* A page token that may be used to request an additional set of results, up to the number specified by `partition_count` in the PartitionQuery request. If blank, there are no more
|
|
608
|
+
* results.
|
|
609
|
+
*/
|
|
610
|
+
nextPageToken?: string;
|
|
611
|
+
/**
|
|
612
|
+
* Partition results. Each partition is a split point that can be used by RunQuery as a starting or end point for the query results. The RunQuery requests must be made with the same
|
|
613
|
+
* query supplied to this PartitionQuery request. The partition cursors will be ordered according to same ordering as the results of the query supplied to PartitionQuery. For example,
|
|
614
|
+
* if a PartitionQuery request returns partition cursors A and B, running the following three queries will return the entire result set of the original query: * query, end_at A *
|
|
615
|
+
* query, start_at A, end_at B * query, start_at B An empty result may indicate that the query has too few results to be partitioned.
|
|
616
|
+
*/
|
|
617
|
+
partitions?: Cursor[];
|
|
618
|
+
}
|
|
619
|
+
interface Precondition {
|
|
620
|
+
/** When set to `true`, the target document must exist. When set to `false`, the target document must not exist. */
|
|
621
|
+
exists?: boolean;
|
|
622
|
+
/** When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned. */
|
|
623
|
+
updateTime?: string;
|
|
624
|
+
}
|
|
625
|
+
interface Projection {
|
|
626
|
+
/** The fields to return. If empty, all fields are returned. To only return the name of the document, use `['__name__']`. */
|
|
627
|
+
fields?: FieldReference[];
|
|
628
|
+
}
|
|
629
|
+
interface QueryTarget {
|
|
630
|
+
/**
|
|
631
|
+
* The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For
|
|
632
|
+
* example: `projects/my-project/databases/my-database/documents` or `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
|
|
633
|
+
*/
|
|
634
|
+
parent?: string;
|
|
635
|
+
/** A structured query. */
|
|
636
|
+
structuredQuery?: StructuredQuery;
|
|
637
|
+
}
|
|
638
|
+
interface ReadOnly {
|
|
639
|
+
/** Reads documents at the given time. This may not be older than 60 seconds. */
|
|
640
|
+
readTime?: string;
|
|
641
|
+
}
|
|
642
|
+
interface ReadWrite {
|
|
643
|
+
/** An optional transaction to retry. */
|
|
644
|
+
retryTransaction?: string;
|
|
645
|
+
}
|
|
646
|
+
interface RollbackRequest {
|
|
647
|
+
/** Required. The transaction to roll back. */
|
|
648
|
+
transaction?: string;
|
|
649
|
+
}
|
|
650
|
+
interface RunQueryRequest {
|
|
651
|
+
/** Starts a new transaction and reads the documents. Defaults to a read-only transaction. The new transaction ID will be returned as the first response in the stream. */
|
|
652
|
+
newTransaction?: TransactionOptions;
|
|
653
|
+
/** Reads documents as they were at the given time. This may not be older than 270 seconds. */
|
|
654
|
+
readTime?: string;
|
|
655
|
+
/** A structured query. */
|
|
656
|
+
structuredQuery?: StructuredQuery;
|
|
657
|
+
/** Run the query within an already active transaction. The value here is the opaque transaction ID to execute the query in. */
|
|
658
|
+
transaction?: string;
|
|
659
|
+
}
|
|
660
|
+
interface RunQueryResponse {
|
|
661
|
+
/** A query result, not set when reporting partial progress. */
|
|
662
|
+
document?: Document;
|
|
663
|
+
/** If present, Firestore has completely finished the request and no more documents will be returned. */
|
|
664
|
+
done?: boolean;
|
|
665
|
+
/**
|
|
666
|
+
* The time at which the document was read. This may be monotonically increasing; in this case, the previous documents in the result stream are guaranteed not to have changed between
|
|
667
|
+
* their `read_time` and this one. If the query returns no results, a response with `read_time` and no `document` will be sent, and this represents the time at which the query was run.
|
|
668
|
+
*/
|
|
669
|
+
readTime?: string;
|
|
670
|
+
/** The number of results that have been skipped due to an offset between the last response and the current response. */
|
|
671
|
+
skippedResults?: number;
|
|
672
|
+
/**
|
|
673
|
+
* The transaction that was started as part of this request. Can only be set in the first response, and only if RunQueryRequest.new_transaction was set in the request. If set, no other
|
|
674
|
+
* fields will be set in this response.
|
|
675
|
+
*/
|
|
676
|
+
transaction?: string;
|
|
677
|
+
}
|
|
678
|
+
interface Status {
|
|
679
|
+
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
680
|
+
code?: number;
|
|
681
|
+
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
682
|
+
details?: Array<{ [P in string]: any }>;
|
|
683
|
+
/**
|
|
684
|
+
* 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
|
|
685
|
+
* client.
|
|
686
|
+
*/
|
|
687
|
+
message?: string;
|
|
688
|
+
}
|
|
689
|
+
interface StructuredQuery {
|
|
690
|
+
/** A end point for the query results. */
|
|
691
|
+
endAt?: Cursor;
|
|
692
|
+
/** The collections to query. */
|
|
693
|
+
from?: CollectionSelector[];
|
|
694
|
+
/** The maximum number of results to return. Applies after all other constraints. Must be >= 0 if specified. */
|
|
695
|
+
limit?: number;
|
|
696
|
+
/** The number of results to skip. Applies before limit, but after all other constraints. Must be >= 0 if specified. */
|
|
697
|
+
offset?: number;
|
|
698
|
+
/**
|
|
699
|
+
* The order to apply to the query results. Firestore guarantees a stable ordering through the following rules: * Any field required to appear in `order_by`, that is not already
|
|
700
|
+
* specified in `order_by`, is appended to the order in field name order by default. * If an order on `__name__` is not specified, it is appended by default. Fields are appended with
|
|
701
|
+
* the same sort direction as the last order specified, or 'ASCENDING' if no order was specified. For example: * `SELECT * FROM Foo ORDER BY A` becomes `SELECT * FROM Foo ORDER BY A,
|
|
702
|
+
* __name__` * `SELECT * FROM Foo ORDER BY A DESC` becomes `SELECT * FROM Foo ORDER BY A DESC, __name__ DESC` * `SELECT * FROM Foo WHERE A > 1` becomes `SELECT * FROM Foo WHERE A > 1
|
|
703
|
+
* ORDER BY A, __name__`
|
|
704
|
+
*/
|
|
705
|
+
orderBy?: Order[];
|
|
706
|
+
/** The projection to return. */
|
|
707
|
+
select?: Projection;
|
|
708
|
+
/** A starting point for the query results. */
|
|
709
|
+
startAt?: Cursor;
|
|
710
|
+
/** The filter to apply. */
|
|
711
|
+
where?: Filter;
|
|
712
|
+
}
|
|
713
|
+
interface Target {
|
|
714
|
+
/** A target specified by a set of document names. */
|
|
715
|
+
documents?: DocumentsTarget;
|
|
716
|
+
/** If the target should be removed once it is current and consistent. */
|
|
717
|
+
once?: boolean;
|
|
718
|
+
/** A target specified by a query. */
|
|
719
|
+
query?: QueryTarget;
|
|
720
|
+
/** Start listening after a specific `read_time`. The client must know the state of matching documents at this time. */
|
|
721
|
+
readTime?: string;
|
|
722
|
+
/** A resume token from a prior TargetChange for an identical target. Using a resume token with a different target is unsupported and may fail. */
|
|
723
|
+
resumeToken?: string;
|
|
724
|
+
/** The target ID that identifies the target on the stream. Must be a positive number and non-zero. */
|
|
725
|
+
targetId?: number;
|
|
726
|
+
}
|
|
727
|
+
interface TargetChange {
|
|
728
|
+
/** The error that resulted in this change, if applicable. */
|
|
729
|
+
cause?: Status;
|
|
730
|
+
/**
|
|
731
|
+
* The consistent `read_time` for the given `target_ids` (omitted when the target_ids are not at a consistent snapshot). The stream is guaranteed to send a `read_time` with
|
|
732
|
+
* `target_ids` empty whenever the entire stream reaches a new consistent snapshot. ADD, CURRENT, and RESET messages are guaranteed to (eventually) result in a new consistent snapshot
|
|
733
|
+
* (while NO_CHANGE and REMOVE messages are not). For a given stream, `read_time` is guaranteed to be monotonically increasing.
|
|
734
|
+
*/
|
|
735
|
+
readTime?: string;
|
|
736
|
+
/** A token that can be used to resume the stream for the given `target_ids`, or all targets if `target_ids` is empty. Not set on every target change. */
|
|
737
|
+
resumeToken?: string;
|
|
738
|
+
/** The type of change that occurred. */
|
|
739
|
+
targetChangeType?: string;
|
|
740
|
+
/** The target IDs of targets that have changed. If empty, the change applies to all targets. The order of the target IDs is not defined. */
|
|
741
|
+
targetIds?: number[];
|
|
742
|
+
}
|
|
743
|
+
interface TransactionOptions {
|
|
744
|
+
/** The transaction can only be used for read operations. */
|
|
745
|
+
readOnly?: ReadOnly;
|
|
746
|
+
/** The transaction can be used for both read and write operations. */
|
|
747
|
+
readWrite?: ReadWrite;
|
|
748
|
+
}
|
|
749
|
+
interface UnaryFilter {
|
|
750
|
+
/** The field to which to apply the operator. */
|
|
751
|
+
field?: FieldReference;
|
|
752
|
+
/** The unary operator to apply. */
|
|
753
|
+
op?: string;
|
|
754
|
+
}
|
|
755
|
+
interface Value {
|
|
756
|
+
/** An array value. Cannot directly contain another array value, though can contain an map which contains another array. */
|
|
757
|
+
arrayValue?: ArrayValue;
|
|
758
|
+
/** A boolean value. */
|
|
759
|
+
booleanValue?: boolean;
|
|
760
|
+
/** A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries. */
|
|
761
|
+
bytesValue?: string;
|
|
762
|
+
/** A double value. */
|
|
763
|
+
doubleValue?: number;
|
|
764
|
+
/** A geo point value representing a point on the surface of Earth. */
|
|
765
|
+
geoPointValue?: LatLng;
|
|
766
|
+
/** An integer value. */
|
|
767
|
+
integerValue?: string;
|
|
768
|
+
/** A map value. */
|
|
769
|
+
mapValue?: MapValue;
|
|
770
|
+
/** A null value. */
|
|
771
|
+
nullValue?: string;
|
|
772
|
+
/** A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. */
|
|
773
|
+
referenceValue?: string;
|
|
774
|
+
/** A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries. */
|
|
775
|
+
stringValue?: string;
|
|
776
|
+
/** A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down. */
|
|
777
|
+
timestampValue?: string;
|
|
778
|
+
}
|
|
779
|
+
interface Write {
|
|
780
|
+
/** An optional precondition on the document. The write will fail if this is set and not met by the target document. */
|
|
781
|
+
currentDocument?: Precondition;
|
|
782
|
+
/** A document name to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. */
|
|
783
|
+
delete?: string;
|
|
784
|
+
/** Applies a transformation to a document. */
|
|
785
|
+
transform?: DocumentTransform;
|
|
786
|
+
/** A document to write. */
|
|
787
|
+
update?: Document;
|
|
788
|
+
/**
|
|
789
|
+
* The fields to update in this write. This field can be set only when the operation is `update`. If the mask is not set for an `update` and the document exists, any existing data will
|
|
790
|
+
* be overwritten. If the mask is set and the document on the server has fields not covered by the mask, they are left unchanged. Fields referenced in the mask, but not present in the
|
|
791
|
+
* input document, are deleted from the document on the server. The field paths in this mask must not contain a reserved field name.
|
|
792
|
+
*/
|
|
793
|
+
updateMask?: DocumentMask;
|
|
794
|
+
/**
|
|
795
|
+
* The transforms to perform after update. This field can be set only when the operation is `update`. If present, this write is equivalent to performing `update` and `transform` to the
|
|
796
|
+
* same document atomically and in order.
|
|
797
|
+
*/
|
|
798
|
+
updateTransforms?: FieldTransform[];
|
|
799
|
+
}
|
|
800
|
+
interface WriteRequest {
|
|
801
|
+
/** Labels associated with this write request. */
|
|
802
|
+
labels?: { [P in string]: string };
|
|
803
|
+
/** The ID of the write stream to resume. This may only be set in the first message. When left empty, a new write stream will be created. */
|
|
804
|
+
streamId?: string;
|
|
805
|
+
/**
|
|
806
|
+
* A stream token that was previously sent by the server. The client should set this field to the token from the most recent WriteResponse it has received. This acknowledges that the
|
|
807
|
+
* client has received responses up to this token. After sending this token, earlier tokens may not be used anymore. The server may close the stream if there are too many
|
|
808
|
+
* unacknowledged responses. Leave this field unset when creating a new stream. To resume a stream at a specific point, set this field and the `stream_id` field. Leave this field unset
|
|
809
|
+
* when creating a new stream.
|
|
810
|
+
*/
|
|
811
|
+
streamToken?: string;
|
|
812
|
+
/**
|
|
813
|
+
* The writes to apply. Always executed atomically and in order. This must be empty on the first request. This may be empty on the last request. This must not be empty on all other
|
|
814
|
+
* requests.
|
|
815
|
+
*/
|
|
816
|
+
writes?: Write[];
|
|
817
|
+
}
|
|
818
|
+
interface WriteResponse {
|
|
819
|
+
/** The time at which the commit occurred. Any read with an equal or greater `read_time` is guaranteed to see the effects of the write. */
|
|
820
|
+
commitTime?: string;
|
|
821
|
+
/** The ID of the stream. Only set on the first message, when a new stream was created. */
|
|
822
|
+
streamId?: string;
|
|
823
|
+
/** A token that represents the position of this response in the stream. This can be used by a client to resume the stream at this point. This field is always set. */
|
|
824
|
+
streamToken?: string;
|
|
825
|
+
/** The result of applying the writes. This i-th write result corresponds to the i-th write in the request. */
|
|
826
|
+
writeResults?: WriteResult[];
|
|
827
|
+
}
|
|
828
|
+
interface WriteResult {
|
|
829
|
+
/** The results of applying each DocumentTransform.FieldTransform, in the same order. */
|
|
830
|
+
transformResults?: Value[];
|
|
831
|
+
/** The last update time of the document after applying the write. Not set after a `delete`. If the write did not actually change the document, this will be the previous update_time. */
|
|
832
|
+
updateTime?: string;
|
|
833
|
+
}
|
|
834
|
+
interface FieldsResource {
|
|
835
|
+
/** Gets the metadata and configuration for a Field. */
|
|
836
|
+
get(request?: {
|
|
837
|
+
/** V1 error format. */
|
|
838
|
+
"$.xgafv"?: string;
|
|
839
|
+
/** OAuth access token. */
|
|
840
|
+
access_token?: string;
|
|
841
|
+
/** Data format for response. */
|
|
842
|
+
alt?: string;
|
|
843
|
+
/** JSONP */
|
|
844
|
+
callback?: string;
|
|
845
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
846
|
+
fields?: string;
|
|
847
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
848
|
+
key?: string;
|
|
849
|
+
/** Required. A name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}` */
|
|
850
|
+
name: string;
|
|
851
|
+
/** OAuth 2.0 token for the current user. */
|
|
852
|
+
oauth_token?: string;
|
|
853
|
+
/** Returns response with indentations and line breaks. */
|
|
854
|
+
prettyPrint?: boolean;
|
|
855
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
856
|
+
quotaUser?: string;
|
|
857
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
858
|
+
upload_protocol?: string;
|
|
859
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
860
|
+
uploadType?: string;
|
|
861
|
+
}): Request<GoogleFirestoreAdminV1Field>;
|
|
862
|
+
/**
|
|
863
|
+
* Lists the field configuration and metadata for this database. Currently, FirestoreAdmin.ListFields only supports listing fields that have been explicitly overridden. To issue this
|
|
864
|
+
* query, call FirestoreAdmin.ListFields with the filter set to `indexConfig.usesAncestorConfig:false` .
|
|
865
|
+
*/
|
|
866
|
+
list(request?: {
|
|
867
|
+
/** V1 error format. */
|
|
868
|
+
"$.xgafv"?: string;
|
|
869
|
+
/** OAuth access token. */
|
|
870
|
+
access_token?: string;
|
|
871
|
+
/** Data format for response. */
|
|
872
|
+
alt?: string;
|
|
873
|
+
/** JSONP */
|
|
874
|
+
callback?: string;
|
|
875
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
876
|
+
fields?: string;
|
|
877
|
+
/**
|
|
878
|
+
* The filter to apply to list results. Currently, FirestoreAdmin.ListFields only supports listing fields that have been explicitly overridden. To issue this query, call
|
|
879
|
+
* FirestoreAdmin.ListFields with a filter that includes `indexConfig.usesAncestorConfig:false` .
|
|
880
|
+
*/
|
|
881
|
+
filter?: string;
|
|
882
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
883
|
+
key?: string;
|
|
884
|
+
/** OAuth 2.0 token for the current user. */
|
|
885
|
+
oauth_token?: string;
|
|
886
|
+
/** The number of results to return. */
|
|
887
|
+
pageSize?: number;
|
|
888
|
+
/** A page token, returned from a previous call to FirestoreAdmin.ListFields, that may be used to get the next page of results. */
|
|
889
|
+
pageToken?: string;
|
|
890
|
+
/** Required. A parent name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` */
|
|
891
|
+
parent: string;
|
|
892
|
+
/** Returns response with indentations and line breaks. */
|
|
893
|
+
prettyPrint?: boolean;
|
|
894
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
895
|
+
quotaUser?: string;
|
|
896
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
897
|
+
upload_protocol?: string;
|
|
898
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
899
|
+
uploadType?: string;
|
|
900
|
+
}): Request<GoogleFirestoreAdminV1ListFieldsResponse>;
|
|
901
|
+
/**
|
|
902
|
+
* Updates a field configuration. Currently, field updates apply only to single field index configuration. However, calls to FirestoreAdmin.UpdateField should provide a field mask to
|
|
903
|
+
* avoid changing any configuration that the caller isn't aware of. The field mask should be specified as: `{ paths: "index_config" }`. This call returns a google.longrunning.Operation
|
|
904
|
+
* which may be used to track the status of the field update. The metadata for the operation will be the type FieldOperationMetadata. To configure the default field settings for the
|
|
905
|
+
* database, use the special `Field` with resource name: `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`.
|
|
906
|
+
*/
|
|
907
|
+
patch(request: {
|
|
908
|
+
/** V1 error format. */
|
|
909
|
+
"$.xgafv"?: string;
|
|
910
|
+
/** OAuth access token. */
|
|
911
|
+
access_token?: string;
|
|
912
|
+
/** Data format for response. */
|
|
913
|
+
alt?: string;
|
|
914
|
+
/** JSONP */
|
|
915
|
+
callback?: string;
|
|
916
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
917
|
+
fields?: string;
|
|
918
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
919
|
+
key?: string;
|
|
920
|
+
/**
|
|
921
|
+
* Required. A field name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` A field path may be a simple field name,
|
|
922
|
+
* e.g. `address` or a path to fields within map_value , e.g. `address.city`, or a special field path. The only valid special field is `*`, which represents any field. Field paths
|
|
923
|
+
* may be quoted using ` (backtick). The only character that needs to be escaped within a quoted field path is the backtick character itself, escaped using a backslash. Special
|
|
924
|
+
* characters in field paths that must be quoted include: `*`, `.`, ``` (backtick), `[`, `]`, as well as any ascii symbolic characters. Examples: (Note: Comments here are written
|
|
925
|
+
* in markdown syntax, so there is an additional layer of backticks to represent a code block) `\`address.city\`` represents a field named `address.city`, not the map key `city` in
|
|
926
|
+
* the field `address`. `\`*\`` represents a field named `*`, not any field. A special `Field` contains the default indexing settings for all fields. This field's resource name is:
|
|
927
|
+
* `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*` Indexes defined on this `Field` will be applied to all fields which do not have their own
|
|
928
|
+
* `Field` index configuration.
|
|
929
|
+
*/
|
|
930
|
+
name: string;
|
|
931
|
+
/** OAuth 2.0 token for the current user. */
|
|
932
|
+
oauth_token?: string;
|
|
933
|
+
/** Returns response with indentations and line breaks. */
|
|
934
|
+
prettyPrint?: boolean;
|
|
935
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
936
|
+
quotaUser?: string;
|
|
937
|
+
/** A mask, relative to the field. If specified, only configuration specified by this field_mask will be updated in the field. */
|
|
938
|
+
updateMask?: string;
|
|
939
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
940
|
+
upload_protocol?: string;
|
|
941
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
942
|
+
uploadType?: string;
|
|
943
|
+
/** Request body */
|
|
944
|
+
resource: GoogleFirestoreAdminV1Field;
|
|
945
|
+
}): Request<GoogleLongrunningOperation>;
|
|
946
|
+
patch(request: {
|
|
947
|
+
/** V1 error format. */
|
|
948
|
+
"$.xgafv"?: string;
|
|
949
|
+
/** OAuth access token. */
|
|
950
|
+
access_token?: string;
|
|
951
|
+
/** Data format for response. */
|
|
952
|
+
alt?: string;
|
|
953
|
+
/** JSONP */
|
|
954
|
+
callback?: string;
|
|
955
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
956
|
+
fields?: string;
|
|
957
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
958
|
+
key?: string;
|
|
959
|
+
/**
|
|
960
|
+
* Required. A field name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` A field path may be a simple field name,
|
|
961
|
+
* e.g. `address` or a path to fields within map_value , e.g. `address.city`, or a special field path. The only valid special field is `*`, which represents any field. Field paths
|
|
962
|
+
* may be quoted using ` (backtick). The only character that needs to be escaped within a quoted field path is the backtick character itself, escaped using a backslash. Special
|
|
963
|
+
* characters in field paths that must be quoted include: `*`, `.`, ``` (backtick), `[`, `]`, as well as any ascii symbolic characters. Examples: (Note: Comments here are written
|
|
964
|
+
* in markdown syntax, so there is an additional layer of backticks to represent a code block) `\`address.city\`` represents a field named `address.city`, not the map key `city` in
|
|
965
|
+
* the field `address`. `\`*\`` represents a field named `*`, not any field. A special `Field` contains the default indexing settings for all fields. This field's resource name is:
|
|
966
|
+
* `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*` Indexes defined on this `Field` will be applied to all fields which do not have their own
|
|
967
|
+
* `Field` index configuration.
|
|
968
|
+
*/
|
|
969
|
+
name: string;
|
|
970
|
+
/** OAuth 2.0 token for the current user. */
|
|
971
|
+
oauth_token?: string;
|
|
972
|
+
/** Returns response with indentations and line breaks. */
|
|
973
|
+
prettyPrint?: boolean;
|
|
974
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
975
|
+
quotaUser?: string;
|
|
976
|
+
/** A mask, relative to the field. If specified, only configuration specified by this field_mask will be updated in the field. */
|
|
977
|
+
updateMask?: string;
|
|
978
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
979
|
+
upload_protocol?: string;
|
|
980
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
981
|
+
uploadType?: string;
|
|
982
|
+
},
|
|
983
|
+
body: GoogleFirestoreAdminV1Field): Request<GoogleLongrunningOperation>;
|
|
984
|
+
}
|
|
985
|
+
interface IndexesResource {
|
|
986
|
+
/**
|
|
987
|
+
* 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
|
|
988
|
+
* IndexOperationMetadata.
|
|
989
|
+
*/
|
|
990
|
+
create(request: {
|
|
991
|
+
/** V1 error format. */
|
|
992
|
+
"$.xgafv"?: string;
|
|
993
|
+
/** OAuth access token. */
|
|
994
|
+
access_token?: string;
|
|
995
|
+
/** Data format for response. */
|
|
996
|
+
alt?: string;
|
|
997
|
+
/** JSONP */
|
|
998
|
+
callback?: string;
|
|
999
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1000
|
+
fields?: string;
|
|
1001
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1002
|
+
key?: string;
|
|
1003
|
+
/** OAuth 2.0 token for the current user. */
|
|
1004
|
+
oauth_token?: string;
|
|
1005
|
+
/** Required. A parent name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` */
|
|
1006
|
+
parent: string;
|
|
1007
|
+
/** Returns response with indentations and line breaks. */
|
|
1008
|
+
prettyPrint?: boolean;
|
|
1009
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1010
|
+
quotaUser?: string;
|
|
1011
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1012
|
+
upload_protocol?: string;
|
|
1013
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1014
|
+
uploadType?: string;
|
|
1015
|
+
/** Request body */
|
|
1016
|
+
resource: GoogleFirestoreAdminV1Index;
|
|
1017
|
+
}): Request<GoogleLongrunningOperation>;
|
|
1018
|
+
create(request: {
|
|
1019
|
+
/** V1 error format. */
|
|
1020
|
+
"$.xgafv"?: string;
|
|
1021
|
+
/** OAuth access token. */
|
|
1022
|
+
access_token?: string;
|
|
1023
|
+
/** Data format for response. */
|
|
1024
|
+
alt?: string;
|
|
1025
|
+
/** JSONP */
|
|
1026
|
+
callback?: string;
|
|
1027
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1028
|
+
fields?: string;
|
|
1029
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1030
|
+
key?: string;
|
|
1031
|
+
/** OAuth 2.0 token for the current user. */
|
|
1032
|
+
oauth_token?: string;
|
|
1033
|
+
/** Required. A parent name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` */
|
|
1034
|
+
parent: string;
|
|
1035
|
+
/** Returns response with indentations and line breaks. */
|
|
1036
|
+
prettyPrint?: boolean;
|
|
1037
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1038
|
+
quotaUser?: string;
|
|
1039
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1040
|
+
upload_protocol?: string;
|
|
1041
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1042
|
+
uploadType?: string;
|
|
1043
|
+
},
|
|
1044
|
+
body: GoogleFirestoreAdminV1Index): Request<GoogleLongrunningOperation>;
|
|
1045
|
+
/** Deletes a composite index. */
|
|
1046
|
+
delete(request?: {
|
|
1047
|
+
/** V1 error format. */
|
|
1048
|
+
"$.xgafv"?: string;
|
|
1049
|
+
/** OAuth access token. */
|
|
1050
|
+
access_token?: string;
|
|
1051
|
+
/** Data format for response. */
|
|
1052
|
+
alt?: string;
|
|
1053
|
+
/** JSONP */
|
|
1054
|
+
callback?: string;
|
|
1055
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1056
|
+
fields?: string;
|
|
1057
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1058
|
+
key?: string;
|
|
1059
|
+
/** Required. A name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` */
|
|
1060
|
+
name: string;
|
|
1061
|
+
/** OAuth 2.0 token for the current user. */
|
|
1062
|
+
oauth_token?: string;
|
|
1063
|
+
/** Returns response with indentations and line breaks. */
|
|
1064
|
+
prettyPrint?: boolean;
|
|
1065
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1066
|
+
quotaUser?: string;
|
|
1067
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1068
|
+
upload_protocol?: string;
|
|
1069
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1070
|
+
uploadType?: string;
|
|
1071
|
+
}): Request<{}>;
|
|
1072
|
+
/** Gets a composite index. */
|
|
1073
|
+
get(request?: {
|
|
1074
|
+
/** V1 error format. */
|
|
1075
|
+
"$.xgafv"?: string;
|
|
1076
|
+
/** OAuth access token. */
|
|
1077
|
+
access_token?: string;
|
|
1078
|
+
/** Data format for response. */
|
|
1079
|
+
alt?: string;
|
|
1080
|
+
/** JSONP */
|
|
1081
|
+
callback?: string;
|
|
1082
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1083
|
+
fields?: string;
|
|
1084
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1085
|
+
key?: string;
|
|
1086
|
+
/** Required. A name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` */
|
|
1087
|
+
name: string;
|
|
1088
|
+
/** OAuth 2.0 token for the current user. */
|
|
1089
|
+
oauth_token?: string;
|
|
1090
|
+
/** Returns response with indentations and line breaks. */
|
|
1091
|
+
prettyPrint?: boolean;
|
|
1092
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1093
|
+
quotaUser?: string;
|
|
1094
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1095
|
+
upload_protocol?: string;
|
|
1096
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1097
|
+
uploadType?: string;
|
|
1098
|
+
}): Request<GoogleFirestoreAdminV1Index>;
|
|
1099
|
+
/** Lists composite indexes. */
|
|
1100
|
+
list(request?: {
|
|
1101
|
+
/** V1 error format. */
|
|
1102
|
+
"$.xgafv"?: string;
|
|
1103
|
+
/** OAuth access token. */
|
|
1104
|
+
access_token?: string;
|
|
1105
|
+
/** Data format for response. */
|
|
1106
|
+
alt?: string;
|
|
1107
|
+
/** JSONP */
|
|
1108
|
+
callback?: string;
|
|
1109
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1110
|
+
fields?: string;
|
|
1111
|
+
/** The filter to apply to list results. */
|
|
1112
|
+
filter?: string;
|
|
1113
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1114
|
+
key?: string;
|
|
1115
|
+
/** OAuth 2.0 token for the current user. */
|
|
1116
|
+
oauth_token?: string;
|
|
1117
|
+
/** The number of results to return. */
|
|
1118
|
+
pageSize?: number;
|
|
1119
|
+
/** A page token, returned from a previous call to FirestoreAdmin.ListIndexes, that may be used to get the next page of results. */
|
|
1120
|
+
pageToken?: string;
|
|
1121
|
+
/** Required. A parent name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` */
|
|
1122
|
+
parent: string;
|
|
1123
|
+
/** Returns response with indentations and line breaks. */
|
|
1124
|
+
prettyPrint?: boolean;
|
|
1125
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1126
|
+
quotaUser?: string;
|
|
1127
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1128
|
+
upload_protocol?: string;
|
|
1129
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1130
|
+
uploadType?: string;
|
|
1131
|
+
}): Request<GoogleFirestoreAdminV1ListIndexesResponse>;
|
|
1132
|
+
}
|
|
1133
|
+
interface CollectionGroupsResource {
|
|
1134
|
+
fields: FieldsResource;
|
|
1135
|
+
indexes: IndexesResource;
|
|
1136
|
+
}
|
|
1137
|
+
interface DocumentsResource {
|
|
1138
|
+
/** Gets multiple documents. Documents returned by this method are not guaranteed to be returned in the same order that they were requested. */
|
|
1139
|
+
batchGet(request: {
|
|
1140
|
+
/** V1 error format. */
|
|
1141
|
+
"$.xgafv"?: string;
|
|
1142
|
+
/** OAuth access token. */
|
|
1143
|
+
access_token?: string;
|
|
1144
|
+
/** Data format for response. */
|
|
1145
|
+
alt?: string;
|
|
1146
|
+
/** JSONP */
|
|
1147
|
+
callback?: string;
|
|
1148
|
+
/** Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. */
|
|
1149
|
+
database: string;
|
|
1150
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1151
|
+
fields?: string;
|
|
1152
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1153
|
+
key?: string;
|
|
1154
|
+
/** OAuth 2.0 token for the current user. */
|
|
1155
|
+
oauth_token?: string;
|
|
1156
|
+
/** Returns response with indentations and line breaks. */
|
|
1157
|
+
prettyPrint?: boolean;
|
|
1158
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1159
|
+
quotaUser?: string;
|
|
1160
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1161
|
+
upload_protocol?: string;
|
|
1162
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1163
|
+
uploadType?: string;
|
|
1164
|
+
/** Request body */
|
|
1165
|
+
resource: BatchGetDocumentsRequest;
|
|
1166
|
+
}): Request<BatchGetDocumentsResponse>;
|
|
1167
|
+
batchGet(request: {
|
|
1168
|
+
/** V1 error format. */
|
|
1169
|
+
"$.xgafv"?: string;
|
|
1170
|
+
/** OAuth access token. */
|
|
1171
|
+
access_token?: string;
|
|
1172
|
+
/** Data format for response. */
|
|
1173
|
+
alt?: string;
|
|
1174
|
+
/** JSONP */
|
|
1175
|
+
callback?: string;
|
|
1176
|
+
/** Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. */
|
|
1177
|
+
database: string;
|
|
1178
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1179
|
+
fields?: string;
|
|
1180
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1181
|
+
key?: string;
|
|
1182
|
+
/** OAuth 2.0 token for the current user. */
|
|
1183
|
+
oauth_token?: string;
|
|
1184
|
+
/** Returns response with indentations and line breaks. */
|
|
1185
|
+
prettyPrint?: boolean;
|
|
1186
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1187
|
+
quotaUser?: string;
|
|
1188
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1189
|
+
upload_protocol?: string;
|
|
1190
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1191
|
+
uploadType?: string;
|
|
1192
|
+
},
|
|
1193
|
+
body: BatchGetDocumentsRequest): Request<BatchGetDocumentsResponse>;
|
|
1194
|
+
/**
|
|
1195
|
+
* Applies a batch of write operations. The BatchWrite method does not apply the write operations atomically and can apply them out of order. Method does not allow more than one write
|
|
1196
|
+
* per document. Each write succeeds or fails independently. See the BatchWriteResponse for the success status of each write. If you require an atomically applied set of writes, use
|
|
1197
|
+
* Commit instead.
|
|
1198
|
+
*/
|
|
1199
|
+
batchWrite(request: {
|
|
1200
|
+
/** V1 error format. */
|
|
1201
|
+
"$.xgafv"?: string;
|
|
1202
|
+
/** OAuth access token. */
|
|
1203
|
+
access_token?: string;
|
|
1204
|
+
/** Data format for response. */
|
|
1205
|
+
alt?: string;
|
|
1206
|
+
/** JSONP */
|
|
1207
|
+
callback?: string;
|
|
1208
|
+
/** Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. */
|
|
1209
|
+
database: string;
|
|
1210
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1211
|
+
fields?: string;
|
|
1212
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1213
|
+
key?: string;
|
|
1214
|
+
/** OAuth 2.0 token for the current user. */
|
|
1215
|
+
oauth_token?: string;
|
|
1216
|
+
/** Returns response with indentations and line breaks. */
|
|
1217
|
+
prettyPrint?: boolean;
|
|
1218
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1219
|
+
quotaUser?: string;
|
|
1220
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1221
|
+
upload_protocol?: string;
|
|
1222
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1223
|
+
uploadType?: string;
|
|
1224
|
+
/** Request body */
|
|
1225
|
+
resource: BatchWriteRequest;
|
|
1226
|
+
}): Request<BatchWriteResponse>;
|
|
1227
|
+
batchWrite(request: {
|
|
1228
|
+
/** V1 error format. */
|
|
1229
|
+
"$.xgafv"?: string;
|
|
1230
|
+
/** OAuth access token. */
|
|
1231
|
+
access_token?: string;
|
|
1232
|
+
/** Data format for response. */
|
|
1233
|
+
alt?: string;
|
|
1234
|
+
/** JSONP */
|
|
1235
|
+
callback?: string;
|
|
1236
|
+
/** Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. */
|
|
1237
|
+
database: string;
|
|
1238
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1239
|
+
fields?: string;
|
|
1240
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1241
|
+
key?: string;
|
|
1242
|
+
/** OAuth 2.0 token for the current user. */
|
|
1243
|
+
oauth_token?: string;
|
|
1244
|
+
/** Returns response with indentations and line breaks. */
|
|
1245
|
+
prettyPrint?: boolean;
|
|
1246
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1247
|
+
quotaUser?: string;
|
|
1248
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1249
|
+
upload_protocol?: string;
|
|
1250
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1251
|
+
uploadType?: string;
|
|
1252
|
+
},
|
|
1253
|
+
body: BatchWriteRequest): Request<BatchWriteResponse>;
|
|
1254
|
+
/** Starts a new transaction. */
|
|
1255
|
+
beginTransaction(request: {
|
|
1256
|
+
/** V1 error format. */
|
|
1257
|
+
"$.xgafv"?: string;
|
|
1258
|
+
/** OAuth access token. */
|
|
1259
|
+
access_token?: string;
|
|
1260
|
+
/** Data format for response. */
|
|
1261
|
+
alt?: string;
|
|
1262
|
+
/** JSONP */
|
|
1263
|
+
callback?: string;
|
|
1264
|
+
/** Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. */
|
|
1265
|
+
database: string;
|
|
1266
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1267
|
+
fields?: string;
|
|
1268
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1269
|
+
key?: string;
|
|
1270
|
+
/** OAuth 2.0 token for the current user. */
|
|
1271
|
+
oauth_token?: string;
|
|
1272
|
+
/** Returns response with indentations and line breaks. */
|
|
1273
|
+
prettyPrint?: boolean;
|
|
1274
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1275
|
+
quotaUser?: string;
|
|
1276
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1277
|
+
upload_protocol?: string;
|
|
1278
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1279
|
+
uploadType?: string;
|
|
1280
|
+
/** Request body */
|
|
1281
|
+
resource: BeginTransactionRequest;
|
|
1282
|
+
}): Request<BeginTransactionResponse>;
|
|
1283
|
+
beginTransaction(request: {
|
|
1284
|
+
/** V1 error format. */
|
|
1285
|
+
"$.xgafv"?: string;
|
|
1286
|
+
/** OAuth access token. */
|
|
1287
|
+
access_token?: string;
|
|
1288
|
+
/** Data format for response. */
|
|
1289
|
+
alt?: string;
|
|
1290
|
+
/** JSONP */
|
|
1291
|
+
callback?: string;
|
|
1292
|
+
/** Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. */
|
|
1293
|
+
database: string;
|
|
1294
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1295
|
+
fields?: string;
|
|
1296
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1297
|
+
key?: string;
|
|
1298
|
+
/** OAuth 2.0 token for the current user. */
|
|
1299
|
+
oauth_token?: string;
|
|
1300
|
+
/** Returns response with indentations and line breaks. */
|
|
1301
|
+
prettyPrint?: boolean;
|
|
1302
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1303
|
+
quotaUser?: string;
|
|
1304
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1305
|
+
upload_protocol?: string;
|
|
1306
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1307
|
+
uploadType?: string;
|
|
1308
|
+
},
|
|
1309
|
+
body: BeginTransactionRequest): Request<BeginTransactionResponse>;
|
|
1310
|
+
/** Commits a transaction, while optionally updating documents. */
|
|
1311
|
+
commit(request: {
|
|
1312
|
+
/** V1 error format. */
|
|
1313
|
+
"$.xgafv"?: string;
|
|
1314
|
+
/** OAuth access token. */
|
|
1315
|
+
access_token?: string;
|
|
1316
|
+
/** Data format for response. */
|
|
1317
|
+
alt?: string;
|
|
1318
|
+
/** JSONP */
|
|
1319
|
+
callback?: string;
|
|
1320
|
+
/** Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. */
|
|
1321
|
+
database: string;
|
|
1322
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1323
|
+
fields?: string;
|
|
1324
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1325
|
+
key?: string;
|
|
1326
|
+
/** OAuth 2.0 token for the current user. */
|
|
1327
|
+
oauth_token?: string;
|
|
1328
|
+
/** Returns response with indentations and line breaks. */
|
|
1329
|
+
prettyPrint?: boolean;
|
|
1330
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1331
|
+
quotaUser?: string;
|
|
1332
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1333
|
+
upload_protocol?: string;
|
|
1334
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1335
|
+
uploadType?: string;
|
|
1336
|
+
/** Request body */
|
|
1337
|
+
resource: CommitRequest;
|
|
1338
|
+
}): Request<CommitResponse>;
|
|
1339
|
+
commit(request: {
|
|
1340
|
+
/** V1 error format. */
|
|
1341
|
+
"$.xgafv"?: string;
|
|
1342
|
+
/** OAuth access token. */
|
|
1343
|
+
access_token?: string;
|
|
1344
|
+
/** Data format for response. */
|
|
1345
|
+
alt?: string;
|
|
1346
|
+
/** JSONP */
|
|
1347
|
+
callback?: string;
|
|
1348
|
+
/** Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. */
|
|
1349
|
+
database: string;
|
|
1350
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1351
|
+
fields?: string;
|
|
1352
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1353
|
+
key?: string;
|
|
1354
|
+
/** OAuth 2.0 token for the current user. */
|
|
1355
|
+
oauth_token?: string;
|
|
1356
|
+
/** Returns response with indentations and line breaks. */
|
|
1357
|
+
prettyPrint?: boolean;
|
|
1358
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1359
|
+
quotaUser?: string;
|
|
1360
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1361
|
+
upload_protocol?: string;
|
|
1362
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1363
|
+
uploadType?: string;
|
|
1364
|
+
},
|
|
1365
|
+
body: CommitRequest): Request<CommitResponse>;
|
|
1366
|
+
/** Creates a new document. */
|
|
1367
|
+
createDocument(request: {
|
|
1368
|
+
/** V1 error format. */
|
|
1369
|
+
"$.xgafv"?: string;
|
|
1370
|
+
/** OAuth access token. */
|
|
1371
|
+
access_token?: string;
|
|
1372
|
+
/** Data format for response. */
|
|
1373
|
+
alt?: string;
|
|
1374
|
+
/** JSONP */
|
|
1375
|
+
callback?: string;
|
|
1376
|
+
/** Required. The collection ID, relative to `parent`, to list. For example: `chatrooms`. */
|
|
1377
|
+
collectionId: string;
|
|
1378
|
+
/** The client-assigned document ID to use for this document. Optional. If not specified, an ID will be assigned by the service. */
|
|
1379
|
+
documentId?: string;
|
|
1380
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1381
|
+
fields?: string;
|
|
1382
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1383
|
+
key?: string;
|
|
1384
|
+
/** The list of field paths in the mask. See Document.fields for a field path syntax reference. */
|
|
1385
|
+
"mask.fieldPaths"?: string | string[];
|
|
1386
|
+
/** OAuth 2.0 token for the current user. */
|
|
1387
|
+
oauth_token?: string;
|
|
1388
|
+
/**
|
|
1389
|
+
* Required. The parent resource. For example: `projects/{project_id}/databases/{database_id}/documents` or
|
|
1390
|
+
* `projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}`
|
|
1391
|
+
*/
|
|
1392
|
+
parent: string;
|
|
1393
|
+
/** Returns response with indentations and line breaks. */
|
|
1394
|
+
prettyPrint?: boolean;
|
|
1395
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1396
|
+
quotaUser?: string;
|
|
1397
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1398
|
+
upload_protocol?: string;
|
|
1399
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1400
|
+
uploadType?: string;
|
|
1401
|
+
/** Request body */
|
|
1402
|
+
resource: Document;
|
|
1403
|
+
}): Request<Document>;
|
|
1404
|
+
createDocument(request: {
|
|
1405
|
+
/** V1 error format. */
|
|
1406
|
+
"$.xgafv"?: string;
|
|
1407
|
+
/** OAuth access token. */
|
|
1408
|
+
access_token?: string;
|
|
1409
|
+
/** Data format for response. */
|
|
1410
|
+
alt?: string;
|
|
1411
|
+
/** JSONP */
|
|
1412
|
+
callback?: string;
|
|
1413
|
+
/** Required. The collection ID, relative to `parent`, to list. For example: `chatrooms`. */
|
|
1414
|
+
collectionId: string;
|
|
1415
|
+
/** The client-assigned document ID to use for this document. Optional. If not specified, an ID will be assigned by the service. */
|
|
1416
|
+
documentId?: string;
|
|
1417
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1418
|
+
fields?: string;
|
|
1419
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1420
|
+
key?: string;
|
|
1421
|
+
/** The list of field paths in the mask. See Document.fields for a field path syntax reference. */
|
|
1422
|
+
"mask.fieldPaths"?: string | string[];
|
|
1423
|
+
/** OAuth 2.0 token for the current user. */
|
|
1424
|
+
oauth_token?: string;
|
|
1425
|
+
/**
|
|
1426
|
+
* Required. The parent resource. For example: `projects/{project_id}/databases/{database_id}/documents` or
|
|
1427
|
+
* `projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}`
|
|
1428
|
+
*/
|
|
1429
|
+
parent: string;
|
|
1430
|
+
/** Returns response with indentations and line breaks. */
|
|
1431
|
+
prettyPrint?: boolean;
|
|
1432
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1433
|
+
quotaUser?: string;
|
|
1434
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1435
|
+
upload_protocol?: string;
|
|
1436
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1437
|
+
uploadType?: string;
|
|
1438
|
+
},
|
|
1439
|
+
body: Document): Request<Document>;
|
|
1440
|
+
/** Deletes a document. */
|
|
1441
|
+
delete(request?: {
|
|
1442
|
+
/** V1 error format. */
|
|
1443
|
+
"$.xgafv"?: string;
|
|
1444
|
+
/** OAuth access token. */
|
|
1445
|
+
access_token?: string;
|
|
1446
|
+
/** Data format for response. */
|
|
1447
|
+
alt?: string;
|
|
1448
|
+
/** JSONP */
|
|
1449
|
+
callback?: string;
|
|
1450
|
+
/** When set to `true`, the target document must exist. When set to `false`, the target document must not exist. */
|
|
1451
|
+
"currentDocument.exists"?: boolean;
|
|
1452
|
+
/** When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned. */
|
|
1453
|
+
"currentDocument.updateTime"?: string;
|
|
1454
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1455
|
+
fields?: string;
|
|
1456
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1457
|
+
key?: string;
|
|
1458
|
+
/** Required. The resource name of the Document to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. */
|
|
1459
|
+
name: string;
|
|
1460
|
+
/** OAuth 2.0 token for the current user. */
|
|
1461
|
+
oauth_token?: string;
|
|
1462
|
+
/** Returns response with indentations and line breaks. */
|
|
1463
|
+
prettyPrint?: boolean;
|
|
1464
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1465
|
+
quotaUser?: string;
|
|
1466
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1467
|
+
upload_protocol?: string;
|
|
1468
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1469
|
+
uploadType?: string;
|
|
1470
|
+
}): Request<{}>;
|
|
1471
|
+
/** Gets a single document. */
|
|
1472
|
+
get(request?: {
|
|
1473
|
+
/** V1 error format. */
|
|
1474
|
+
"$.xgafv"?: string;
|
|
1475
|
+
/** OAuth access token. */
|
|
1476
|
+
access_token?: string;
|
|
1477
|
+
/** Data format for response. */
|
|
1478
|
+
alt?: string;
|
|
1479
|
+
/** JSONP */
|
|
1480
|
+
callback?: string;
|
|
1481
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1482
|
+
fields?: string;
|
|
1483
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1484
|
+
key?: string;
|
|
1485
|
+
/** The list of field paths in the mask. See Document.fields for a field path syntax reference. */
|
|
1486
|
+
"mask.fieldPaths"?: string | string[];
|
|
1487
|
+
/** Required. The resource name of the Document to get. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. */
|
|
1488
|
+
name: string;
|
|
1489
|
+
/** OAuth 2.0 token for the current user. */
|
|
1490
|
+
oauth_token?: string;
|
|
1491
|
+
/** Returns response with indentations and line breaks. */
|
|
1492
|
+
prettyPrint?: boolean;
|
|
1493
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1494
|
+
quotaUser?: string;
|
|
1495
|
+
/** Reads the version of the document at the given time. This may not be older than 270 seconds. */
|
|
1496
|
+
readTime?: string;
|
|
1497
|
+
/** Reads the document in a transaction. */
|
|
1498
|
+
transaction?: string;
|
|
1499
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1500
|
+
upload_protocol?: string;
|
|
1501
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1502
|
+
uploadType?: string;
|
|
1503
|
+
}): Request<Document>;
|
|
1504
|
+
/** Lists documents. */
|
|
1505
|
+
list(request?: {
|
|
1506
|
+
/** V1 error format. */
|
|
1507
|
+
"$.xgafv"?: string;
|
|
1508
|
+
/** OAuth access token. */
|
|
1509
|
+
access_token?: string;
|
|
1510
|
+
/** Data format for response. */
|
|
1511
|
+
alt?: string;
|
|
1512
|
+
/** JSONP */
|
|
1513
|
+
callback?: string;
|
|
1514
|
+
/** Required. The collection ID, relative to `parent`, to list. For example: `chatrooms` or `messages`. */
|
|
1515
|
+
collectionId: string;
|
|
1516
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1517
|
+
fields?: string;
|
|
1518
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1519
|
+
key?: string;
|
|
1520
|
+
/** The list of field paths in the mask. See Document.fields for a field path syntax reference. */
|
|
1521
|
+
"mask.fieldPaths"?: string | string[];
|
|
1522
|
+
/** OAuth 2.0 token for the current user. */
|
|
1523
|
+
oauth_token?: string;
|
|
1524
|
+
/** The order to sort results by. For example: `priority desc, name`. */
|
|
1525
|
+
orderBy?: string;
|
|
1526
|
+
/** The maximum number of documents to return. */
|
|
1527
|
+
pageSize?: number;
|
|
1528
|
+
/** The `next_page_token` value returned from a previous List request, if any. */
|
|
1529
|
+
pageToken?: string;
|
|
1530
|
+
/**
|
|
1531
|
+
* Required. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or
|
|
1532
|
+
* `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or
|
|
1533
|
+
* `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
|
|
1534
|
+
*/
|
|
1535
|
+
parent: string;
|
|
1536
|
+
/** Returns response with indentations and line breaks. */
|
|
1537
|
+
prettyPrint?: boolean;
|
|
1538
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1539
|
+
quotaUser?: string;
|
|
1540
|
+
/** Reads documents as they were at the given time. This may not be older than 270 seconds. */
|
|
1541
|
+
readTime?: string;
|
|
1542
|
+
/**
|
|
1543
|
+
* If the list should show missing documents. A missing document is a document that does not exist but has sub-documents. These documents will be returned with a key but will not
|
|
1544
|
+
* have fields, Document.create_time, or Document.update_time set. Requests with `show_missing` may not specify `where` or `order_by`.
|
|
1545
|
+
*/
|
|
1546
|
+
showMissing?: boolean;
|
|
1547
|
+
/** Reads documents in a transaction. */
|
|
1548
|
+
transaction?: string;
|
|
1549
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1550
|
+
upload_protocol?: string;
|
|
1551
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1552
|
+
uploadType?: string;
|
|
1553
|
+
}): Request<ListDocumentsResponse>;
|
|
1554
|
+
/** Lists all the collection IDs underneath a document. */
|
|
1555
|
+
listCollectionIds(request: {
|
|
1556
|
+
/** V1 error format. */
|
|
1557
|
+
"$.xgafv"?: string;
|
|
1558
|
+
/** OAuth access token. */
|
|
1559
|
+
access_token?: string;
|
|
1560
|
+
/** Data format for response. */
|
|
1561
|
+
alt?: string;
|
|
1562
|
+
/** JSONP */
|
|
1563
|
+
callback?: string;
|
|
1564
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1565
|
+
fields?: string;
|
|
1566
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1567
|
+
key?: string;
|
|
1568
|
+
/** OAuth 2.0 token for the current user. */
|
|
1569
|
+
oauth_token?: string;
|
|
1570
|
+
/**
|
|
1571
|
+
* Required. The parent document. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example:
|
|
1572
|
+
* `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
|
|
1573
|
+
*/
|
|
1574
|
+
parent: string;
|
|
1575
|
+
/** Returns response with indentations and line breaks. */
|
|
1576
|
+
prettyPrint?: boolean;
|
|
1577
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1578
|
+
quotaUser?: string;
|
|
1579
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1580
|
+
upload_protocol?: string;
|
|
1581
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1582
|
+
uploadType?: string;
|
|
1583
|
+
/** Request body */
|
|
1584
|
+
resource: ListCollectionIdsRequest;
|
|
1585
|
+
}): Request<ListCollectionIdsResponse>;
|
|
1586
|
+
listCollectionIds(request: {
|
|
1587
|
+
/** V1 error format. */
|
|
1588
|
+
"$.xgafv"?: string;
|
|
1589
|
+
/** OAuth access token. */
|
|
1590
|
+
access_token?: string;
|
|
1591
|
+
/** Data format for response. */
|
|
1592
|
+
alt?: string;
|
|
1593
|
+
/** JSONP */
|
|
1594
|
+
callback?: string;
|
|
1595
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1596
|
+
fields?: string;
|
|
1597
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1598
|
+
key?: string;
|
|
1599
|
+
/** OAuth 2.0 token for the current user. */
|
|
1600
|
+
oauth_token?: string;
|
|
1601
|
+
/**
|
|
1602
|
+
* Required. The parent document. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example:
|
|
1603
|
+
* `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
|
|
1604
|
+
*/
|
|
1605
|
+
parent: string;
|
|
1606
|
+
/** Returns response with indentations and line breaks. */
|
|
1607
|
+
prettyPrint?: boolean;
|
|
1608
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1609
|
+
quotaUser?: string;
|
|
1610
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1611
|
+
upload_protocol?: string;
|
|
1612
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1613
|
+
uploadType?: string;
|
|
1614
|
+
},
|
|
1615
|
+
body: ListCollectionIdsRequest): Request<ListCollectionIdsResponse>;
|
|
1616
|
+
/** Lists documents. */
|
|
1617
|
+
listDocuments(request?: {
|
|
1618
|
+
/** V1 error format. */
|
|
1619
|
+
"$.xgafv"?: string;
|
|
1620
|
+
/** OAuth access token. */
|
|
1621
|
+
access_token?: string;
|
|
1622
|
+
/** Data format for response. */
|
|
1623
|
+
alt?: string;
|
|
1624
|
+
/** JSONP */
|
|
1625
|
+
callback?: string;
|
|
1626
|
+
/** Required. The collection ID, relative to `parent`, to list. For example: `chatrooms` or `messages`. */
|
|
1627
|
+
collectionId: string;
|
|
1628
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1629
|
+
fields?: string;
|
|
1630
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1631
|
+
key?: string;
|
|
1632
|
+
/** The list of field paths in the mask. See Document.fields for a field path syntax reference. */
|
|
1633
|
+
"mask.fieldPaths"?: string | string[];
|
|
1634
|
+
/** OAuth 2.0 token for the current user. */
|
|
1635
|
+
oauth_token?: string;
|
|
1636
|
+
/** The order to sort results by. For example: `priority desc, name`. */
|
|
1637
|
+
orderBy?: string;
|
|
1638
|
+
/** The maximum number of documents to return. */
|
|
1639
|
+
pageSize?: number;
|
|
1640
|
+
/** The `next_page_token` value returned from a previous List request, if any. */
|
|
1641
|
+
pageToken?: string;
|
|
1642
|
+
/**
|
|
1643
|
+
* Required. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or
|
|
1644
|
+
* `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or
|
|
1645
|
+
* `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
|
|
1646
|
+
*/
|
|
1647
|
+
parent: string;
|
|
1648
|
+
/** Returns response with indentations and line breaks. */
|
|
1649
|
+
prettyPrint?: boolean;
|
|
1650
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1651
|
+
quotaUser?: string;
|
|
1652
|
+
/** Reads documents as they were at the given time. This may not be older than 270 seconds. */
|
|
1653
|
+
readTime?: string;
|
|
1654
|
+
/**
|
|
1655
|
+
* If the list should show missing documents. A missing document is a document that does not exist but has sub-documents. These documents will be returned with a key but will not
|
|
1656
|
+
* have fields, Document.create_time, or Document.update_time set. Requests with `show_missing` may not specify `where` or `order_by`.
|
|
1657
|
+
*/
|
|
1658
|
+
showMissing?: boolean;
|
|
1659
|
+
/** Reads documents in a transaction. */
|
|
1660
|
+
transaction?: string;
|
|
1661
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1662
|
+
upload_protocol?: string;
|
|
1663
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1664
|
+
uploadType?: string;
|
|
1665
|
+
}): Request<ListDocumentsResponse>;
|
|
1666
|
+
/** Listens to changes. */
|
|
1667
|
+
listen(request: {
|
|
1668
|
+
/** V1 error format. */
|
|
1669
|
+
"$.xgafv"?: string;
|
|
1670
|
+
/** OAuth access token. */
|
|
1671
|
+
access_token?: string;
|
|
1672
|
+
/** Data format for response. */
|
|
1673
|
+
alt?: string;
|
|
1674
|
+
/** JSONP */
|
|
1675
|
+
callback?: string;
|
|
1676
|
+
/** Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. */
|
|
1677
|
+
database: string;
|
|
1678
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1679
|
+
fields?: string;
|
|
1680
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1681
|
+
key?: string;
|
|
1682
|
+
/** OAuth 2.0 token for the current user. */
|
|
1683
|
+
oauth_token?: string;
|
|
1684
|
+
/** Returns response with indentations and line breaks. */
|
|
1685
|
+
prettyPrint?: boolean;
|
|
1686
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1687
|
+
quotaUser?: string;
|
|
1688
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1689
|
+
upload_protocol?: string;
|
|
1690
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1691
|
+
uploadType?: string;
|
|
1692
|
+
/** Request body */
|
|
1693
|
+
resource: ListenRequest;
|
|
1694
|
+
}): Request<ListenResponse>;
|
|
1695
|
+
listen(request: {
|
|
1696
|
+
/** V1 error format. */
|
|
1697
|
+
"$.xgafv"?: string;
|
|
1698
|
+
/** OAuth access token. */
|
|
1699
|
+
access_token?: string;
|
|
1700
|
+
/** Data format for response. */
|
|
1701
|
+
alt?: string;
|
|
1702
|
+
/** JSONP */
|
|
1703
|
+
callback?: string;
|
|
1704
|
+
/** Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. */
|
|
1705
|
+
database: string;
|
|
1706
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1707
|
+
fields?: string;
|
|
1708
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1709
|
+
key?: string;
|
|
1710
|
+
/** OAuth 2.0 token for the current user. */
|
|
1711
|
+
oauth_token?: string;
|
|
1712
|
+
/** Returns response with indentations and line breaks. */
|
|
1713
|
+
prettyPrint?: boolean;
|
|
1714
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1715
|
+
quotaUser?: string;
|
|
1716
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1717
|
+
upload_protocol?: string;
|
|
1718
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1719
|
+
uploadType?: string;
|
|
1720
|
+
},
|
|
1721
|
+
body: ListenRequest): Request<ListenResponse>;
|
|
1722
|
+
/**
|
|
1723
|
+
* Partitions a query by returning partition cursors that can be used to run the query in parallel. The returned partition cursors are split points that can be used by RunQuery as
|
|
1724
|
+
* starting/end points for the query results.
|
|
1725
|
+
*/
|
|
1726
|
+
partitionQuery(request: {
|
|
1727
|
+
/** V1 error format. */
|
|
1728
|
+
"$.xgafv"?: string;
|
|
1729
|
+
/** OAuth access token. */
|
|
1730
|
+
access_token?: string;
|
|
1731
|
+
/** Data format for response. */
|
|
1732
|
+
alt?: string;
|
|
1733
|
+
/** JSONP */
|
|
1734
|
+
callback?: string;
|
|
1735
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1736
|
+
fields?: string;
|
|
1737
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1738
|
+
key?: string;
|
|
1739
|
+
/** OAuth 2.0 token for the current user. */
|
|
1740
|
+
oauth_token?: string;
|
|
1741
|
+
/**
|
|
1742
|
+
* Required. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents`. Document resource names are not supported; only database resource
|
|
1743
|
+
* names can be specified.
|
|
1744
|
+
*/
|
|
1745
|
+
parent: string;
|
|
1746
|
+
/** Returns response with indentations and line breaks. */
|
|
1747
|
+
prettyPrint?: boolean;
|
|
1748
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1749
|
+
quotaUser?: string;
|
|
1750
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1751
|
+
upload_protocol?: string;
|
|
1752
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1753
|
+
uploadType?: string;
|
|
1754
|
+
/** Request body */
|
|
1755
|
+
resource: PartitionQueryRequest;
|
|
1756
|
+
}): Request<PartitionQueryResponse>;
|
|
1757
|
+
partitionQuery(request: {
|
|
1758
|
+
/** V1 error format. */
|
|
1759
|
+
"$.xgafv"?: string;
|
|
1760
|
+
/** OAuth access token. */
|
|
1761
|
+
access_token?: string;
|
|
1762
|
+
/** Data format for response. */
|
|
1763
|
+
alt?: string;
|
|
1764
|
+
/** JSONP */
|
|
1765
|
+
callback?: string;
|
|
1766
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1767
|
+
fields?: string;
|
|
1768
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1769
|
+
key?: string;
|
|
1770
|
+
/** OAuth 2.0 token for the current user. */
|
|
1771
|
+
oauth_token?: string;
|
|
1772
|
+
/**
|
|
1773
|
+
* Required. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents`. Document resource names are not supported; only database resource
|
|
1774
|
+
* names can be specified.
|
|
1775
|
+
*/
|
|
1776
|
+
parent: string;
|
|
1777
|
+
/** Returns response with indentations and line breaks. */
|
|
1778
|
+
prettyPrint?: boolean;
|
|
1779
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1780
|
+
quotaUser?: string;
|
|
1781
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1782
|
+
upload_protocol?: string;
|
|
1783
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1784
|
+
uploadType?: string;
|
|
1785
|
+
},
|
|
1786
|
+
body: PartitionQueryRequest): Request<PartitionQueryResponse>;
|
|
1787
|
+
/** Updates or inserts a document. */
|
|
1788
|
+
patch(request: {
|
|
1789
|
+
/** V1 error format. */
|
|
1790
|
+
"$.xgafv"?: string;
|
|
1791
|
+
/** OAuth access token. */
|
|
1792
|
+
access_token?: string;
|
|
1793
|
+
/** Data format for response. */
|
|
1794
|
+
alt?: string;
|
|
1795
|
+
/** JSONP */
|
|
1796
|
+
callback?: string;
|
|
1797
|
+
/** When set to `true`, the target document must exist. When set to `false`, the target document must not exist. */
|
|
1798
|
+
"currentDocument.exists"?: boolean;
|
|
1799
|
+
/** When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned. */
|
|
1800
|
+
"currentDocument.updateTime"?: string;
|
|
1801
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1802
|
+
fields?: string;
|
|
1803
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1804
|
+
key?: string;
|
|
1805
|
+
/** The list of field paths in the mask. See Document.fields for a field path syntax reference. */
|
|
1806
|
+
"mask.fieldPaths"?: string | string[];
|
|
1807
|
+
/** The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`. */
|
|
1808
|
+
name: string;
|
|
1809
|
+
/** OAuth 2.0 token for the current user. */
|
|
1810
|
+
oauth_token?: string;
|
|
1811
|
+
/** Returns response with indentations and line breaks. */
|
|
1812
|
+
prettyPrint?: boolean;
|
|
1813
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1814
|
+
quotaUser?: string;
|
|
1815
|
+
/** The list of field paths in the mask. See Document.fields for a field path syntax reference. */
|
|
1816
|
+
"updateMask.fieldPaths"?: string | string[];
|
|
1817
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1818
|
+
upload_protocol?: string;
|
|
1819
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1820
|
+
uploadType?: string;
|
|
1821
|
+
/** Request body */
|
|
1822
|
+
resource: Document;
|
|
1823
|
+
}): Request<Document>;
|
|
1824
|
+
patch(request: {
|
|
1825
|
+
/** V1 error format. */
|
|
1826
|
+
"$.xgafv"?: string;
|
|
1827
|
+
/** OAuth access token. */
|
|
1828
|
+
access_token?: string;
|
|
1829
|
+
/** Data format for response. */
|
|
1830
|
+
alt?: string;
|
|
1831
|
+
/** JSONP */
|
|
1832
|
+
callback?: string;
|
|
1833
|
+
/** When set to `true`, the target document must exist. When set to `false`, the target document must not exist. */
|
|
1834
|
+
"currentDocument.exists"?: boolean;
|
|
1835
|
+
/** When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned. */
|
|
1836
|
+
"currentDocument.updateTime"?: string;
|
|
1837
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1838
|
+
fields?: string;
|
|
1839
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1840
|
+
key?: string;
|
|
1841
|
+
/** The list of field paths in the mask. See Document.fields for a field path syntax reference. */
|
|
1842
|
+
"mask.fieldPaths"?: string | string[];
|
|
1843
|
+
/** The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`. */
|
|
1844
|
+
name: string;
|
|
1845
|
+
/** OAuth 2.0 token for the current user. */
|
|
1846
|
+
oauth_token?: string;
|
|
1847
|
+
/** Returns response with indentations and line breaks. */
|
|
1848
|
+
prettyPrint?: boolean;
|
|
1849
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1850
|
+
quotaUser?: string;
|
|
1851
|
+
/** The list of field paths in the mask. See Document.fields for a field path syntax reference. */
|
|
1852
|
+
"updateMask.fieldPaths"?: string | string[];
|
|
1853
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1854
|
+
upload_protocol?: string;
|
|
1855
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1856
|
+
uploadType?: string;
|
|
1857
|
+
},
|
|
1858
|
+
body: Document): Request<Document>;
|
|
1859
|
+
/** Rolls back a transaction. */
|
|
1860
|
+
rollback(request: {
|
|
1861
|
+
/** V1 error format. */
|
|
1862
|
+
"$.xgafv"?: string;
|
|
1863
|
+
/** OAuth access token. */
|
|
1864
|
+
access_token?: string;
|
|
1865
|
+
/** Data format for response. */
|
|
1866
|
+
alt?: string;
|
|
1867
|
+
/** JSONP */
|
|
1868
|
+
callback?: string;
|
|
1869
|
+
/** Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. */
|
|
1870
|
+
database: string;
|
|
1871
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1872
|
+
fields?: string;
|
|
1873
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1874
|
+
key?: string;
|
|
1875
|
+
/** OAuth 2.0 token for the current user. */
|
|
1876
|
+
oauth_token?: string;
|
|
1877
|
+
/** Returns response with indentations and line breaks. */
|
|
1878
|
+
prettyPrint?: boolean;
|
|
1879
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1880
|
+
quotaUser?: string;
|
|
1881
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1882
|
+
upload_protocol?: string;
|
|
1883
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1884
|
+
uploadType?: string;
|
|
1885
|
+
/** Request body */
|
|
1886
|
+
resource: RollbackRequest;
|
|
1887
|
+
}): Request<{}>;
|
|
1888
|
+
rollback(request: {
|
|
1889
|
+
/** V1 error format. */
|
|
1890
|
+
"$.xgafv"?: string;
|
|
1891
|
+
/** OAuth access token. */
|
|
1892
|
+
access_token?: string;
|
|
1893
|
+
/** Data format for response. */
|
|
1894
|
+
alt?: string;
|
|
1895
|
+
/** JSONP */
|
|
1896
|
+
callback?: string;
|
|
1897
|
+
/** Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. */
|
|
1898
|
+
database: string;
|
|
1899
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1900
|
+
fields?: string;
|
|
1901
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1902
|
+
key?: string;
|
|
1903
|
+
/** OAuth 2.0 token for the current user. */
|
|
1904
|
+
oauth_token?: string;
|
|
1905
|
+
/** Returns response with indentations and line breaks. */
|
|
1906
|
+
prettyPrint?: boolean;
|
|
1907
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1908
|
+
quotaUser?: string;
|
|
1909
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1910
|
+
upload_protocol?: string;
|
|
1911
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1912
|
+
uploadType?: string;
|
|
1913
|
+
},
|
|
1914
|
+
body: RollbackRequest): Request<{}>;
|
|
1915
|
+
/** Runs a query. */
|
|
1916
|
+
runQuery(request: {
|
|
1917
|
+
/** V1 error format. */
|
|
1918
|
+
"$.xgafv"?: string;
|
|
1919
|
+
/** OAuth access token. */
|
|
1920
|
+
access_token?: string;
|
|
1921
|
+
/** Data format for response. */
|
|
1922
|
+
alt?: string;
|
|
1923
|
+
/** JSONP */
|
|
1924
|
+
callback?: string;
|
|
1925
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1926
|
+
fields?: string;
|
|
1927
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1928
|
+
key?: string;
|
|
1929
|
+
/** OAuth 2.0 token for the current user. */
|
|
1930
|
+
oauth_token?: string;
|
|
1931
|
+
/**
|
|
1932
|
+
* Required. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or
|
|
1933
|
+
* `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or
|
|
1934
|
+
* `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
|
|
1935
|
+
*/
|
|
1936
|
+
parent: string;
|
|
1937
|
+
/** Returns response with indentations and line breaks. */
|
|
1938
|
+
prettyPrint?: boolean;
|
|
1939
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1940
|
+
quotaUser?: string;
|
|
1941
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1942
|
+
upload_protocol?: string;
|
|
1943
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1944
|
+
uploadType?: string;
|
|
1945
|
+
/** Request body */
|
|
1946
|
+
resource: RunQueryRequest;
|
|
1947
|
+
}): Request<RunQueryResponse>;
|
|
1948
|
+
runQuery(request: {
|
|
1949
|
+
/** V1 error format. */
|
|
1950
|
+
"$.xgafv"?: string;
|
|
1951
|
+
/** OAuth access token. */
|
|
1952
|
+
access_token?: string;
|
|
1953
|
+
/** Data format for response. */
|
|
1954
|
+
alt?: string;
|
|
1955
|
+
/** JSONP */
|
|
1956
|
+
callback?: string;
|
|
1957
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1958
|
+
fields?: string;
|
|
1959
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1960
|
+
key?: string;
|
|
1961
|
+
/** OAuth 2.0 token for the current user. */
|
|
1962
|
+
oauth_token?: string;
|
|
1963
|
+
/**
|
|
1964
|
+
* Required. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or
|
|
1965
|
+
* `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or
|
|
1966
|
+
* `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
|
|
1967
|
+
*/
|
|
1968
|
+
parent: string;
|
|
1969
|
+
/** Returns response with indentations and line breaks. */
|
|
1970
|
+
prettyPrint?: boolean;
|
|
1971
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1972
|
+
quotaUser?: string;
|
|
1973
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1974
|
+
upload_protocol?: string;
|
|
1975
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1976
|
+
uploadType?: string;
|
|
1977
|
+
},
|
|
1978
|
+
body: RunQueryRequest): Request<RunQueryResponse>;
|
|
1979
|
+
/** Streams batches of document updates and deletes, in order. */
|
|
1980
|
+
write(request: {
|
|
1981
|
+
/** V1 error format. */
|
|
1982
|
+
"$.xgafv"?: string;
|
|
1983
|
+
/** OAuth access token. */
|
|
1984
|
+
access_token?: string;
|
|
1985
|
+
/** Data format for response. */
|
|
1986
|
+
alt?: string;
|
|
1987
|
+
/** JSONP */
|
|
1988
|
+
callback?: string;
|
|
1989
|
+
/** Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. This is only required in the first message. */
|
|
1990
|
+
database: string;
|
|
1991
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1992
|
+
fields?: string;
|
|
1993
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1994
|
+
key?: string;
|
|
1995
|
+
/** OAuth 2.0 token for the current user. */
|
|
1996
|
+
oauth_token?: string;
|
|
1997
|
+
/** Returns response with indentations and line breaks. */
|
|
1998
|
+
prettyPrint?: boolean;
|
|
1999
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2000
|
+
quotaUser?: string;
|
|
2001
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2002
|
+
upload_protocol?: string;
|
|
2003
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2004
|
+
uploadType?: string;
|
|
2005
|
+
/** Request body */
|
|
2006
|
+
resource: WriteRequest;
|
|
2007
|
+
}): Request<WriteResponse>;
|
|
2008
|
+
write(request: {
|
|
2009
|
+
/** V1 error format. */
|
|
2010
|
+
"$.xgafv"?: string;
|
|
2011
|
+
/** OAuth access token. */
|
|
2012
|
+
access_token?: string;
|
|
2013
|
+
/** Data format for response. */
|
|
2014
|
+
alt?: string;
|
|
2015
|
+
/** JSONP */
|
|
2016
|
+
callback?: string;
|
|
2017
|
+
/** Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. This is only required in the first message. */
|
|
2018
|
+
database: string;
|
|
2019
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2020
|
+
fields?: string;
|
|
2021
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2022
|
+
key?: string;
|
|
2023
|
+
/** OAuth 2.0 token for the current user. */
|
|
2024
|
+
oauth_token?: string;
|
|
2025
|
+
/** Returns response with indentations and line breaks. */
|
|
2026
|
+
prettyPrint?: boolean;
|
|
2027
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2028
|
+
quotaUser?: string;
|
|
2029
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2030
|
+
upload_protocol?: string;
|
|
2031
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2032
|
+
uploadType?: string;
|
|
2033
|
+
},
|
|
2034
|
+
body: WriteRequest): Request<WriteResponse>;
|
|
2035
|
+
}
|
|
2036
|
+
interface OperationsResource {
|
|
2037
|
+
/**
|
|
2038
|
+
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support
|
|
2039
|
+
* this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the
|
|
2040
|
+
* operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a
|
|
2041
|
+
* google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
|
|
2042
|
+
*/
|
|
2043
|
+
cancel(request: {
|
|
2044
|
+
/** V1 error format. */
|
|
2045
|
+
"$.xgafv"?: string;
|
|
2046
|
+
/** OAuth access token. */
|
|
2047
|
+
access_token?: string;
|
|
2048
|
+
/** Data format for response. */
|
|
2049
|
+
alt?: string;
|
|
2050
|
+
/** JSONP */
|
|
2051
|
+
callback?: string;
|
|
2052
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2053
|
+
fields?: string;
|
|
2054
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2055
|
+
key?: string;
|
|
2056
|
+
/** The name of the operation resource to be cancelled. */
|
|
2057
|
+
name: string;
|
|
2058
|
+
/** OAuth 2.0 token for the current user. */
|
|
2059
|
+
oauth_token?: string;
|
|
2060
|
+
/** Returns response with indentations and line breaks. */
|
|
2061
|
+
prettyPrint?: boolean;
|
|
2062
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2063
|
+
quotaUser?: string;
|
|
2064
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2065
|
+
upload_protocol?: string;
|
|
2066
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2067
|
+
uploadType?: string;
|
|
2068
|
+
/** Request body */
|
|
2069
|
+
resource: GoogleLongrunningCancelOperationRequest;
|
|
2070
|
+
}): Request<{}>;
|
|
2071
|
+
cancel(request: {
|
|
2072
|
+
/** V1 error format. */
|
|
2073
|
+
"$.xgafv"?: string;
|
|
2074
|
+
/** OAuth access token. */
|
|
2075
|
+
access_token?: string;
|
|
2076
|
+
/** Data format for response. */
|
|
2077
|
+
alt?: string;
|
|
2078
|
+
/** JSONP */
|
|
2079
|
+
callback?: string;
|
|
2080
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2081
|
+
fields?: string;
|
|
2082
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2083
|
+
key?: string;
|
|
2084
|
+
/** The name of the operation resource to be cancelled. */
|
|
2085
|
+
name: string;
|
|
2086
|
+
/** OAuth 2.0 token for the current user. */
|
|
2087
|
+
oauth_token?: string;
|
|
2088
|
+
/** Returns response with indentations and line breaks. */
|
|
2089
|
+
prettyPrint?: boolean;
|
|
2090
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2091
|
+
quotaUser?: string;
|
|
2092
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2093
|
+
upload_protocol?: string;
|
|
2094
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2095
|
+
uploadType?: string;
|
|
2096
|
+
},
|
|
2097
|
+
body: GoogleLongrunningCancelOperationRequest): Request<{}>;
|
|
2098
|
+
/**
|
|
2099
|
+
* Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't
|
|
2100
|
+
* support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
2101
|
+
*/
|
|
2102
|
+
delete(request?: {
|
|
2103
|
+
/** V1 error format. */
|
|
2104
|
+
"$.xgafv"?: string;
|
|
2105
|
+
/** OAuth access token. */
|
|
2106
|
+
access_token?: string;
|
|
2107
|
+
/** Data format for response. */
|
|
2108
|
+
alt?: string;
|
|
2109
|
+
/** JSONP */
|
|
2110
|
+
callback?: string;
|
|
2111
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2112
|
+
fields?: string;
|
|
2113
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2114
|
+
key?: string;
|
|
2115
|
+
/** The name of the operation resource to be deleted. */
|
|
2116
|
+
name: string;
|
|
2117
|
+
/** OAuth 2.0 token for the current user. */
|
|
2118
|
+
oauth_token?: string;
|
|
2119
|
+
/** Returns response with indentations and line breaks. */
|
|
2120
|
+
prettyPrint?: boolean;
|
|
2121
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2122
|
+
quotaUser?: string;
|
|
2123
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2124
|
+
upload_protocol?: string;
|
|
2125
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2126
|
+
uploadType?: string;
|
|
2127
|
+
}): Request<{}>;
|
|
2128
|
+
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
2129
|
+
get(request?: {
|
|
2130
|
+
/** V1 error format. */
|
|
2131
|
+
"$.xgafv"?: string;
|
|
2132
|
+
/** OAuth access token. */
|
|
2133
|
+
access_token?: string;
|
|
2134
|
+
/** Data format for response. */
|
|
2135
|
+
alt?: string;
|
|
2136
|
+
/** JSONP */
|
|
2137
|
+
callback?: string;
|
|
2138
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2139
|
+
fields?: string;
|
|
2140
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2141
|
+
key?: string;
|
|
2142
|
+
/** The name of the operation resource. */
|
|
2143
|
+
name: string;
|
|
2144
|
+
/** OAuth 2.0 token for the current user. */
|
|
2145
|
+
oauth_token?: string;
|
|
2146
|
+
/** Returns response with indentations and line breaks. */
|
|
2147
|
+
prettyPrint?: boolean;
|
|
2148
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2149
|
+
quotaUser?: string;
|
|
2150
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2151
|
+
upload_protocol?: string;
|
|
2152
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2153
|
+
uploadType?: string;
|
|
2154
|
+
}): Request<GoogleLongrunningOperation>;
|
|
2155
|
+
/**
|
|
2156
|
+
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
|
|
2157
|
+
* to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as
|
|
2158
|
+
* `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
|
|
2159
|
+
* ensure the name binding is the parent resource, without the operations collection id.
|
|
2160
|
+
*/
|
|
2161
|
+
list(request?: {
|
|
2162
|
+
/** V1 error format. */
|
|
2163
|
+
"$.xgafv"?: string;
|
|
2164
|
+
/** OAuth access token. */
|
|
2165
|
+
access_token?: string;
|
|
2166
|
+
/** Data format for response. */
|
|
2167
|
+
alt?: string;
|
|
2168
|
+
/** JSONP */
|
|
2169
|
+
callback?: string;
|
|
2170
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2171
|
+
fields?: string;
|
|
2172
|
+
/** The standard list filter. */
|
|
2173
|
+
filter?: string;
|
|
2174
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2175
|
+
key?: string;
|
|
2176
|
+
/** The name of the operation's parent resource. */
|
|
2177
|
+
name: string;
|
|
2178
|
+
/** OAuth 2.0 token for the current user. */
|
|
2179
|
+
oauth_token?: string;
|
|
2180
|
+
/** The standard list page size. */
|
|
2181
|
+
pageSize?: number;
|
|
2182
|
+
/** The standard list page token. */
|
|
2183
|
+
pageToken?: string;
|
|
2184
|
+
/** Returns response with indentations and line breaks. */
|
|
2185
|
+
prettyPrint?: boolean;
|
|
2186
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2187
|
+
quotaUser?: string;
|
|
2188
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2189
|
+
upload_protocol?: string;
|
|
2190
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2191
|
+
uploadType?: string;
|
|
2192
|
+
}): Request<GoogleLongrunningListOperationsResponse>;
|
|
2193
|
+
}
|
|
2194
|
+
interface DatabasesResource {
|
|
2195
|
+
/** Create a database. */
|
|
2196
|
+
create(request: {
|
|
2197
|
+
/** V1 error format. */
|
|
2198
|
+
"$.xgafv"?: string;
|
|
2199
|
+
/** OAuth access token. */
|
|
2200
|
+
access_token?: string;
|
|
2201
|
+
/** Data format for response. */
|
|
2202
|
+
alt?: string;
|
|
2203
|
+
/** JSONP */
|
|
2204
|
+
callback?: string;
|
|
2205
|
+
/**
|
|
2206
|
+
* Required. The ID to use for the database, which will become the final component of the database's resource name. This value should be 4-63 characters. Valid characters are
|
|
2207
|
+
* /a-z-/ with first character a letter and the last a letter or a number. Must not be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/. "(default)" database id is also valid.
|
|
2208
|
+
*/
|
|
2209
|
+
databaseId?: string;
|
|
2210
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2211
|
+
fields?: string;
|
|
2212
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2213
|
+
key?: string;
|
|
2214
|
+
/** OAuth 2.0 token for the current user. */
|
|
2215
|
+
oauth_token?: string;
|
|
2216
|
+
/** Required. A parent name of the form `projects/{project_id}` */
|
|
2217
|
+
parent: string;
|
|
2218
|
+
/** Returns response with indentations and line breaks. */
|
|
2219
|
+
prettyPrint?: boolean;
|
|
2220
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2221
|
+
quotaUser?: string;
|
|
2222
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2223
|
+
upload_protocol?: string;
|
|
2224
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2225
|
+
uploadType?: string;
|
|
2226
|
+
/** Request body */
|
|
2227
|
+
resource: GoogleFirestoreAdminV1Database;
|
|
2228
|
+
}): Request<GoogleLongrunningOperation>;
|
|
2229
|
+
create(request: {
|
|
2230
|
+
/** V1 error format. */
|
|
2231
|
+
"$.xgafv"?: string;
|
|
2232
|
+
/** OAuth access token. */
|
|
2233
|
+
access_token?: string;
|
|
2234
|
+
/** Data format for response. */
|
|
2235
|
+
alt?: string;
|
|
2236
|
+
/** JSONP */
|
|
2237
|
+
callback?: string;
|
|
2238
|
+
/**
|
|
2239
|
+
* Required. The ID to use for the database, which will become the final component of the database's resource name. This value should be 4-63 characters. Valid characters are
|
|
2240
|
+
* /a-z-/ with first character a letter and the last a letter or a number. Must not be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/. "(default)" database id is also valid.
|
|
2241
|
+
*/
|
|
2242
|
+
databaseId?: string;
|
|
2243
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2244
|
+
fields?: string;
|
|
2245
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2246
|
+
key?: string;
|
|
2247
|
+
/** OAuth 2.0 token for the current user. */
|
|
2248
|
+
oauth_token?: string;
|
|
2249
|
+
/** Required. A parent name of the form `projects/{project_id}` */
|
|
2250
|
+
parent: string;
|
|
2251
|
+
/** Returns response with indentations and line breaks. */
|
|
2252
|
+
prettyPrint?: boolean;
|
|
2253
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2254
|
+
quotaUser?: string;
|
|
2255
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2256
|
+
upload_protocol?: string;
|
|
2257
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2258
|
+
uploadType?: string;
|
|
2259
|
+
},
|
|
2260
|
+
body: GoogleFirestoreAdminV1Database): Request<GoogleLongrunningOperation>;
|
|
2261
|
+
/**
|
|
2262
|
+
* Exports a copy of all or a subset of documents from Google Cloud Firestore to another storage system, such as Google Cloud Storage. Recent updates to documents may not be reflected
|
|
2263
|
+
* in the export. The export occurs in the background and its progress can be monitored and managed via the Operation resource that is created. The output of an export may only be used
|
|
2264
|
+
* once the associated operation is done. If an export operation is cancelled before completion it may leave partial data behind in Google Cloud Storage. For more details on export
|
|
2265
|
+
* behavior and output format, refer to: https://cloud.google.com/firestore/docs/manage-data/export-import
|
|
2266
|
+
*/
|
|
2267
|
+
exportDocuments(request: {
|
|
2268
|
+
/** V1 error format. */
|
|
2269
|
+
"$.xgafv"?: string;
|
|
2270
|
+
/** OAuth access token. */
|
|
2271
|
+
access_token?: string;
|
|
2272
|
+
/** Data format for response. */
|
|
2273
|
+
alt?: string;
|
|
2274
|
+
/** JSONP */
|
|
2275
|
+
callback?: string;
|
|
2276
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2277
|
+
fields?: string;
|
|
2278
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2279
|
+
key?: string;
|
|
2280
|
+
/** Required. Database to export. Should be of the form: `projects/{project_id}/databases/{database_id}`. */
|
|
2281
|
+
name: string;
|
|
2282
|
+
/** OAuth 2.0 token for the current user. */
|
|
2283
|
+
oauth_token?: string;
|
|
2284
|
+
/** Returns response with indentations and line breaks. */
|
|
2285
|
+
prettyPrint?: boolean;
|
|
2286
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2287
|
+
quotaUser?: string;
|
|
2288
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2289
|
+
upload_protocol?: string;
|
|
2290
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2291
|
+
uploadType?: string;
|
|
2292
|
+
/** Request body */
|
|
2293
|
+
resource: GoogleFirestoreAdminV1ExportDocumentsRequest;
|
|
2294
|
+
}): Request<GoogleLongrunningOperation>;
|
|
2295
|
+
exportDocuments(request: {
|
|
2296
|
+
/** V1 error format. */
|
|
2297
|
+
"$.xgafv"?: string;
|
|
2298
|
+
/** OAuth access token. */
|
|
2299
|
+
access_token?: string;
|
|
2300
|
+
/** Data format for response. */
|
|
2301
|
+
alt?: string;
|
|
2302
|
+
/** JSONP */
|
|
2303
|
+
callback?: string;
|
|
2304
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2305
|
+
fields?: string;
|
|
2306
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2307
|
+
key?: string;
|
|
2308
|
+
/** Required. Database to export. Should be of the form: `projects/{project_id}/databases/{database_id}`. */
|
|
2309
|
+
name: string;
|
|
2310
|
+
/** OAuth 2.0 token for the current user. */
|
|
2311
|
+
oauth_token?: string;
|
|
2312
|
+
/** Returns response with indentations and line breaks. */
|
|
2313
|
+
prettyPrint?: boolean;
|
|
2314
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2315
|
+
quotaUser?: string;
|
|
2316
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2317
|
+
upload_protocol?: string;
|
|
2318
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2319
|
+
uploadType?: string;
|
|
2320
|
+
},
|
|
2321
|
+
body: GoogleFirestoreAdminV1ExportDocumentsRequest): Request<GoogleLongrunningOperation>;
|
|
2322
|
+
/** Gets information about a database. */
|
|
2323
|
+
get(request?: {
|
|
2324
|
+
/** V1 error format. */
|
|
2325
|
+
"$.xgafv"?: string;
|
|
2326
|
+
/** OAuth access token. */
|
|
2327
|
+
access_token?: string;
|
|
2328
|
+
/** Data format for response. */
|
|
2329
|
+
alt?: string;
|
|
2330
|
+
/** JSONP */
|
|
2331
|
+
callback?: string;
|
|
2332
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2333
|
+
fields?: string;
|
|
2334
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2335
|
+
key?: string;
|
|
2336
|
+
/** Required. A name of the form `projects/{project_id}/databases/{database_id}` */
|
|
2337
|
+
name: string;
|
|
2338
|
+
/** OAuth 2.0 token for the current user. */
|
|
2339
|
+
oauth_token?: string;
|
|
2340
|
+
/** Returns response with indentations and line breaks. */
|
|
2341
|
+
prettyPrint?: boolean;
|
|
2342
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2343
|
+
quotaUser?: string;
|
|
2344
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2345
|
+
upload_protocol?: string;
|
|
2346
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2347
|
+
uploadType?: string;
|
|
2348
|
+
}): Request<GoogleFirestoreAdminV1Database>;
|
|
2349
|
+
/**
|
|
2350
|
+
* Imports documents into Google Cloud Firestore. Existing documents with the same name are overwritten. The import occurs in the background and its progress can be monitored and
|
|
2351
|
+
* managed via the Operation resource that is created. If an ImportDocuments operation is cancelled, it is possible that a subset of the data has already been imported to Cloud
|
|
2352
|
+
* Firestore.
|
|
2353
|
+
*/
|
|
2354
|
+
importDocuments(request: {
|
|
2355
|
+
/** V1 error format. */
|
|
2356
|
+
"$.xgafv"?: string;
|
|
2357
|
+
/** OAuth access token. */
|
|
2358
|
+
access_token?: string;
|
|
2359
|
+
/** Data format for response. */
|
|
2360
|
+
alt?: string;
|
|
2361
|
+
/** JSONP */
|
|
2362
|
+
callback?: string;
|
|
2363
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2364
|
+
fields?: string;
|
|
2365
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2366
|
+
key?: string;
|
|
2367
|
+
/** Required. Database to import into. Should be of the form: `projects/{project_id}/databases/{database_id}`. */
|
|
2368
|
+
name: string;
|
|
2369
|
+
/** OAuth 2.0 token for the current user. */
|
|
2370
|
+
oauth_token?: string;
|
|
2371
|
+
/** Returns response with indentations and line breaks. */
|
|
2372
|
+
prettyPrint?: boolean;
|
|
2373
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2374
|
+
quotaUser?: string;
|
|
2375
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2376
|
+
upload_protocol?: string;
|
|
2377
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2378
|
+
uploadType?: string;
|
|
2379
|
+
/** Request body */
|
|
2380
|
+
resource: GoogleFirestoreAdminV1ImportDocumentsRequest;
|
|
2381
|
+
}): Request<GoogleLongrunningOperation>;
|
|
2382
|
+
importDocuments(request: {
|
|
2383
|
+
/** V1 error format. */
|
|
2384
|
+
"$.xgafv"?: string;
|
|
2385
|
+
/** OAuth access token. */
|
|
2386
|
+
access_token?: string;
|
|
2387
|
+
/** Data format for response. */
|
|
2388
|
+
alt?: string;
|
|
2389
|
+
/** JSONP */
|
|
2390
|
+
callback?: string;
|
|
2391
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2392
|
+
fields?: string;
|
|
2393
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2394
|
+
key?: string;
|
|
2395
|
+
/** Required. Database to import into. Should be of the form: `projects/{project_id}/databases/{database_id}`. */
|
|
2396
|
+
name: string;
|
|
2397
|
+
/** OAuth 2.0 token for the current user. */
|
|
2398
|
+
oauth_token?: string;
|
|
2399
|
+
/** Returns response with indentations and line breaks. */
|
|
2400
|
+
prettyPrint?: boolean;
|
|
2401
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2402
|
+
quotaUser?: string;
|
|
2403
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2404
|
+
upload_protocol?: string;
|
|
2405
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2406
|
+
uploadType?: string;
|
|
2407
|
+
},
|
|
2408
|
+
body: GoogleFirestoreAdminV1ImportDocumentsRequest): Request<GoogleLongrunningOperation>;
|
|
2409
|
+
/** List all the databases in the project. */
|
|
2410
|
+
list(request?: {
|
|
2411
|
+
/** V1 error format. */
|
|
2412
|
+
"$.xgafv"?: string;
|
|
2413
|
+
/** OAuth access token. */
|
|
2414
|
+
access_token?: string;
|
|
2415
|
+
/** Data format for response. */
|
|
2416
|
+
alt?: string;
|
|
2417
|
+
/** JSONP */
|
|
2418
|
+
callback?: string;
|
|
2419
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2420
|
+
fields?: string;
|
|
2421
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2422
|
+
key?: string;
|
|
2423
|
+
/** OAuth 2.0 token for the current user. */
|
|
2424
|
+
oauth_token?: string;
|
|
2425
|
+
/** Required. A parent name of the form `projects/{project_id}` */
|
|
2426
|
+
parent: string;
|
|
2427
|
+
/** Returns response with indentations and line breaks. */
|
|
2428
|
+
prettyPrint?: boolean;
|
|
2429
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2430
|
+
quotaUser?: string;
|
|
2431
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2432
|
+
upload_protocol?: string;
|
|
2433
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2434
|
+
uploadType?: string;
|
|
2435
|
+
}): Request<GoogleFirestoreAdminV1ListDatabasesResponse>;
|
|
2436
|
+
/** Updates a database. */
|
|
2437
|
+
patch(request: {
|
|
2438
|
+
/** V1 error format. */
|
|
2439
|
+
"$.xgafv"?: string;
|
|
2440
|
+
/** OAuth access token. */
|
|
2441
|
+
access_token?: string;
|
|
2442
|
+
/** Data format for response. */
|
|
2443
|
+
alt?: string;
|
|
2444
|
+
/** JSONP */
|
|
2445
|
+
callback?: string;
|
|
2446
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2447
|
+
fields?: string;
|
|
2448
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2449
|
+
key?: string;
|
|
2450
|
+
/** The resource name of the Database. Format: `projects/{project}/databases/{database}` */
|
|
2451
|
+
name: string;
|
|
2452
|
+
/** OAuth 2.0 token for the current user. */
|
|
2453
|
+
oauth_token?: string;
|
|
2454
|
+
/** Returns response with indentations and line breaks. */
|
|
2455
|
+
prettyPrint?: boolean;
|
|
2456
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2457
|
+
quotaUser?: string;
|
|
2458
|
+
/** The list of fields to be updated. */
|
|
2459
|
+
updateMask?: string;
|
|
2460
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2461
|
+
upload_protocol?: string;
|
|
2462
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2463
|
+
uploadType?: string;
|
|
2464
|
+
/** Request body */
|
|
2465
|
+
resource: GoogleFirestoreAdminV1Database;
|
|
2466
|
+
}): Request<GoogleLongrunningOperation>;
|
|
2467
|
+
patch(request: {
|
|
2468
|
+
/** V1 error format. */
|
|
2469
|
+
"$.xgafv"?: string;
|
|
2470
|
+
/** OAuth access token. */
|
|
2471
|
+
access_token?: string;
|
|
2472
|
+
/** Data format for response. */
|
|
2473
|
+
alt?: string;
|
|
2474
|
+
/** JSONP */
|
|
2475
|
+
callback?: string;
|
|
2476
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2477
|
+
fields?: string;
|
|
2478
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2479
|
+
key?: string;
|
|
2480
|
+
/** The resource name of the Database. Format: `projects/{project}/databases/{database}` */
|
|
2481
|
+
name: string;
|
|
2482
|
+
/** OAuth 2.0 token for the current user. */
|
|
2483
|
+
oauth_token?: string;
|
|
2484
|
+
/** Returns response with indentations and line breaks. */
|
|
2485
|
+
prettyPrint?: boolean;
|
|
2486
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2487
|
+
quotaUser?: string;
|
|
2488
|
+
/** The list of fields to be updated. */
|
|
2489
|
+
updateMask?: string;
|
|
2490
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2491
|
+
upload_protocol?: string;
|
|
2492
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2493
|
+
uploadType?: string;
|
|
2494
|
+
},
|
|
2495
|
+
body: GoogleFirestoreAdminV1Database): Request<GoogleLongrunningOperation>;
|
|
2496
|
+
collectionGroups: CollectionGroupsResource;
|
|
2497
|
+
documents: DocumentsResource;
|
|
2498
|
+
operations: OperationsResource;
|
|
2499
|
+
}
|
|
2500
|
+
interface LocationsResource {
|
|
2501
|
+
/** Gets information about a location. */
|
|
2502
|
+
get(request?: {
|
|
2503
|
+
/** V1 error format. */
|
|
2504
|
+
"$.xgafv"?: string;
|
|
2505
|
+
/** OAuth access token. */
|
|
2506
|
+
access_token?: string;
|
|
2507
|
+
/** Data format for response. */
|
|
2508
|
+
alt?: string;
|
|
2509
|
+
/** JSONP */
|
|
2510
|
+
callback?: string;
|
|
2511
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2512
|
+
fields?: string;
|
|
2513
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2514
|
+
key?: string;
|
|
2515
|
+
/** Resource name for the location. */
|
|
2516
|
+
name: string;
|
|
2517
|
+
/** OAuth 2.0 token for the current user. */
|
|
2518
|
+
oauth_token?: string;
|
|
2519
|
+
/** Returns response with indentations and line breaks. */
|
|
2520
|
+
prettyPrint?: boolean;
|
|
2521
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2522
|
+
quotaUser?: string;
|
|
2523
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2524
|
+
upload_protocol?: string;
|
|
2525
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2526
|
+
uploadType?: string;
|
|
2527
|
+
}): Request<Location>;
|
|
2528
|
+
/** Lists information about the supported locations for this service. */
|
|
2529
|
+
list(request?: {
|
|
2530
|
+
/** V1 error format. */
|
|
2531
|
+
"$.xgafv"?: string;
|
|
2532
|
+
/** OAuth access token. */
|
|
2533
|
+
access_token?: string;
|
|
2534
|
+
/** Data format for response. */
|
|
2535
|
+
alt?: string;
|
|
2536
|
+
/** JSONP */
|
|
2537
|
+
callback?: string;
|
|
2538
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2539
|
+
fields?: string;
|
|
2540
|
+
/**
|
|
2541
|
+
* A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in
|
|
2542
|
+
* [AIP-160](https://google.aip.dev/160).
|
|
2543
|
+
*/
|
|
2544
|
+
filter?: string;
|
|
2545
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2546
|
+
key?: string;
|
|
2547
|
+
/** The resource that owns the locations collection, if applicable. */
|
|
2548
|
+
name: string;
|
|
2549
|
+
/** OAuth 2.0 token for the current user. */
|
|
2550
|
+
oauth_token?: string;
|
|
2551
|
+
/** The maximum number of results to return. If not set, the service selects a default. */
|
|
2552
|
+
pageSize?: number;
|
|
2553
|
+
/** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */
|
|
2554
|
+
pageToken?: string;
|
|
2555
|
+
/** Returns response with indentations and line breaks. */
|
|
2556
|
+
prettyPrint?: boolean;
|
|
2557
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2558
|
+
quotaUser?: string;
|
|
2559
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2560
|
+
upload_protocol?: string;
|
|
2561
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2562
|
+
uploadType?: string;
|
|
2563
|
+
}): Request<ListLocationsResponse>;
|
|
2564
|
+
}
|
|
2565
|
+
interface ProjectsResource {
|
|
2566
|
+
databases: DatabasesResource;
|
|
2567
|
+
locations: LocationsResource;
|
|
2568
|
+
}
|
|
2569
|
+
|
|
2570
|
+
const projects: ProjectsResource;
|
|
2571
|
+
}
|
|
2572
|
+
}
|