@maxim_mazurok/gapi.client.datastore-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 +1452 -0
- package/package.json +20 -0
- package/readme.md +116 -0
- package/tests.ts +643 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,1452 @@
|
|
|
1
|
+
/* Type definitions for non-npm package Cloud Datastore API v1 0.0 */
|
|
2
|
+
// Project: https://cloud.google.com/datastore/
|
|
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://datastore.googleapis.com/$discovery/rest?version=v1
|
|
13
|
+
// Revision: 20220715
|
|
14
|
+
|
|
15
|
+
/// <reference types="gapi.client" />
|
|
16
|
+
|
|
17
|
+
declare namespace gapi.client {
|
|
18
|
+
/** Load Cloud Datastore API v1 */
|
|
19
|
+
function load(urlOrObject: "https://datastore.googleapis.com/$discovery/rest?version=v1"): Promise<void>;
|
|
20
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
21
|
+
function load(name: "datastore", version: "v1"): Promise<void>;
|
|
22
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
23
|
+
function load(name: "datastore", version: "v1", callback: () => any): void;
|
|
24
|
+
|
|
25
|
+
namespace datastore {
|
|
26
|
+
interface AllocateIdsRequest {
|
|
27
|
+
/** If not empty, the ID of the database against which to make the request. */
|
|
28
|
+
databaseId?: string;
|
|
29
|
+
/** Required. A list of keys with incomplete key paths for which to allocate IDs. No key may be reserved/read-only. */
|
|
30
|
+
keys?: Key[];
|
|
31
|
+
}
|
|
32
|
+
interface AllocateIdsResponse {
|
|
33
|
+
/** The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID. */
|
|
34
|
+
keys?: Key[];
|
|
35
|
+
}
|
|
36
|
+
interface ArrayValue {
|
|
37
|
+
/** Values in the array. The order of values in an array is preserved as long as all values have identical settings for 'exclude_from_indexes'. */
|
|
38
|
+
values?: Value[];
|
|
39
|
+
}
|
|
40
|
+
interface BeginTransactionRequest {
|
|
41
|
+
/** If not empty, the ID of the database against which to make the request. */
|
|
42
|
+
databaseId?: string;
|
|
43
|
+
/** Options for a new transaction. */
|
|
44
|
+
transactionOptions?: TransactionOptions;
|
|
45
|
+
}
|
|
46
|
+
interface BeginTransactionResponse {
|
|
47
|
+
/** The transaction identifier (always present). */
|
|
48
|
+
transaction?: string;
|
|
49
|
+
}
|
|
50
|
+
interface CommitRequest {
|
|
51
|
+
/** If not empty, the ID of the database against which to make the request. */
|
|
52
|
+
databaseId?: string;
|
|
53
|
+
/** The type of commit to perform. Defaults to `TRANSACTIONAL`. */
|
|
54
|
+
mode?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The mutations to perform. When mode is `TRANSACTIONAL`, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are
|
|
57
|
+
* not permitted in a single `Commit` request: - `insert` followed by `insert` - `update` followed by `insert` - `upsert` followed by `insert` - `delete` followed by `update` When mode
|
|
58
|
+
* is `NON_TRANSACTIONAL`, no two mutations may affect a single entity.
|
|
59
|
+
*/
|
|
60
|
+
mutations?: Mutation[];
|
|
61
|
+
/** The identifier of the transaction associated with the commit. A transaction identifier is returned by a call to Datastore.BeginTransaction. */
|
|
62
|
+
transaction?: string;
|
|
63
|
+
}
|
|
64
|
+
interface CommitResponse {
|
|
65
|
+
/** The transaction commit timestamp. Not set for non-transactional commits. */
|
|
66
|
+
commitTime?: string;
|
|
67
|
+
/** The number of index entries updated during the commit, or zero if none were updated. */
|
|
68
|
+
indexUpdates?: number;
|
|
69
|
+
/** The result of performing the mutations. The i-th mutation result corresponds to the i-th mutation in the request. */
|
|
70
|
+
mutationResults?: MutationResult[];
|
|
71
|
+
}
|
|
72
|
+
interface CompositeFilter {
|
|
73
|
+
/** The list of filters to combine. Requires: * At least one filter is present. */
|
|
74
|
+
filters?: Filter[];
|
|
75
|
+
/** The operator for combining multiple filters. */
|
|
76
|
+
op?: string;
|
|
77
|
+
}
|
|
78
|
+
// tslint:disable-next-line:no-empty-interface
|
|
79
|
+
interface Empty {
|
|
80
|
+
}
|
|
81
|
+
interface Entity {
|
|
82
|
+
/**
|
|
83
|
+
* The entity's key. An entity must have a key, unless otherwise documented (for example, an entity in `Value.entity_value` may have no key). An entity's kind is its key path's last
|
|
84
|
+
* element's kind, or null if it has no key.
|
|
85
|
+
*/
|
|
86
|
+
key?: Key;
|
|
87
|
+
/**
|
|
88
|
+
* The entity's properties. The map's keys are property names. A property name matching regex `__.*__` is reserved. A reserved property name is forbidden in certain documented
|
|
89
|
+
* contexts. The name must not contain more than 500 characters. The name cannot be `""`.
|
|
90
|
+
*/
|
|
91
|
+
properties?: { [P in string]: Value };
|
|
92
|
+
}
|
|
93
|
+
interface EntityResult {
|
|
94
|
+
/** A cursor that points to the position after the result entity. Set only when the `EntityResult` is part of a `QueryResultBatch` message. */
|
|
95
|
+
cursor?: string;
|
|
96
|
+
/** The resulting entity. */
|
|
97
|
+
entity?: Entity;
|
|
98
|
+
/** The time at which the entity was last changed. This field is set for `FULL` entity results. If this entity is missing, this field will not be set. */
|
|
99
|
+
updateTime?: string;
|
|
100
|
+
/**
|
|
101
|
+
* The version of the entity, a strictly positive number that monotonically increases with changes to the entity. This field is set for `FULL` entity results. For missing entities in
|
|
102
|
+
* `LookupResponse`, this is the version of the snapshot that was used to look up the entity, and it is always set except for eventually consistent reads.
|
|
103
|
+
*/
|
|
104
|
+
version?: string;
|
|
105
|
+
}
|
|
106
|
+
interface Filter {
|
|
107
|
+
/** A composite filter. */
|
|
108
|
+
compositeFilter?: CompositeFilter;
|
|
109
|
+
/** A filter on a property. */
|
|
110
|
+
propertyFilter?: PropertyFilter;
|
|
111
|
+
}
|
|
112
|
+
interface GoogleDatastoreAdminV1beta1CommonMetadata {
|
|
113
|
+
/** The time the operation ended, either successfully or otherwise. */
|
|
114
|
+
endTime?: string;
|
|
115
|
+
/** The client-assigned labels which were provided when the operation was created. May also include additional labels. */
|
|
116
|
+
labels?: { [P in string]: string };
|
|
117
|
+
/** The type of the operation. Can be used as a filter in ListOperationsRequest. */
|
|
118
|
+
operationType?: string;
|
|
119
|
+
/** The time that work began on the operation. */
|
|
120
|
+
startTime?: string;
|
|
121
|
+
/** The current state of the Operation. */
|
|
122
|
+
state?: string;
|
|
123
|
+
}
|
|
124
|
+
interface GoogleDatastoreAdminV1beta1EntityFilter {
|
|
125
|
+
/** If empty, then this represents all kinds. */
|
|
126
|
+
kinds?: string[];
|
|
127
|
+
/**
|
|
128
|
+
* An empty list represents all namespaces. This is the preferred usage for projects that don't use namespaces. An empty string element represents the default namespace. This should be
|
|
129
|
+
* used if the project has data in non-default namespaces, but doesn't want to include them. Each namespace in this list must be unique.
|
|
130
|
+
*/
|
|
131
|
+
namespaceIds?: string[];
|
|
132
|
+
}
|
|
133
|
+
interface GoogleDatastoreAdminV1beta1ExportEntitiesMetadata {
|
|
134
|
+
/** Metadata common to all Datastore Admin operations. */
|
|
135
|
+
common?: GoogleDatastoreAdminV1beta1CommonMetadata;
|
|
136
|
+
/** Description of which entities are being exported. */
|
|
137
|
+
entityFilter?: GoogleDatastoreAdminV1beta1EntityFilter;
|
|
138
|
+
/**
|
|
139
|
+
* Location for the export metadata and data files. This will be the same value as the google.datastore.admin.v1beta1.ExportEntitiesRequest.output_url_prefix field. The final output
|
|
140
|
+
* location is provided in google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url.
|
|
141
|
+
*/
|
|
142
|
+
outputUrlPrefix?: string;
|
|
143
|
+
/** An estimate of the number of bytes processed. */
|
|
144
|
+
progressBytes?: GoogleDatastoreAdminV1beta1Progress;
|
|
145
|
+
/** An estimate of the number of entities processed. */
|
|
146
|
+
progressEntities?: GoogleDatastoreAdminV1beta1Progress;
|
|
147
|
+
}
|
|
148
|
+
interface GoogleDatastoreAdminV1beta1ExportEntitiesResponse {
|
|
149
|
+
/**
|
|
150
|
+
* Location of the output metadata file. This can be used to begin an import into Cloud Datastore (this project or another project). See
|
|
151
|
+
* google.datastore.admin.v1beta1.ImportEntitiesRequest.input_url. Only present if the operation completed successfully.
|
|
152
|
+
*/
|
|
153
|
+
outputUrl?: string;
|
|
154
|
+
}
|
|
155
|
+
interface GoogleDatastoreAdminV1beta1ImportEntitiesMetadata {
|
|
156
|
+
/** Metadata common to all Datastore Admin operations. */
|
|
157
|
+
common?: GoogleDatastoreAdminV1beta1CommonMetadata;
|
|
158
|
+
/** Description of which entities are being imported. */
|
|
159
|
+
entityFilter?: GoogleDatastoreAdminV1beta1EntityFilter;
|
|
160
|
+
/** The location of the import metadata file. This will be the same value as the google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url field. */
|
|
161
|
+
inputUrl?: string;
|
|
162
|
+
/** An estimate of the number of bytes processed. */
|
|
163
|
+
progressBytes?: GoogleDatastoreAdminV1beta1Progress;
|
|
164
|
+
/** An estimate of the number of entities processed. */
|
|
165
|
+
progressEntities?: GoogleDatastoreAdminV1beta1Progress;
|
|
166
|
+
}
|
|
167
|
+
interface GoogleDatastoreAdminV1beta1Progress {
|
|
168
|
+
/** The amount of work that has been completed. Note that this may be greater than work_estimated. */
|
|
169
|
+
workCompleted?: string;
|
|
170
|
+
/** An estimate of how much work needs to be performed. May be zero if the work estimate is unavailable. */
|
|
171
|
+
workEstimated?: string;
|
|
172
|
+
}
|
|
173
|
+
interface GoogleDatastoreAdminV1CommonMetadata {
|
|
174
|
+
/** The time the operation ended, either successfully or otherwise. */
|
|
175
|
+
endTime?: string;
|
|
176
|
+
/** The client-assigned labels which were provided when the operation was created. May also include additional labels. */
|
|
177
|
+
labels?: { [P in string]: string };
|
|
178
|
+
/** The type of the operation. Can be used as a filter in ListOperationsRequest. */
|
|
179
|
+
operationType?: string;
|
|
180
|
+
/** The time that work began on the operation. */
|
|
181
|
+
startTime?: string;
|
|
182
|
+
/** The current state of the Operation. */
|
|
183
|
+
state?: string;
|
|
184
|
+
}
|
|
185
|
+
interface GoogleDatastoreAdminV1DatastoreFirestoreMigrationMetadata {
|
|
186
|
+
/** The current state of migration from Cloud Datastore to Cloud Firestore in Datastore mode. */
|
|
187
|
+
migrationState?: string;
|
|
188
|
+
/** The current step of migration from Cloud Datastore to Cloud Firestore in Datastore mode. */
|
|
189
|
+
migrationStep?: string;
|
|
190
|
+
}
|
|
191
|
+
interface GoogleDatastoreAdminV1EntityFilter {
|
|
192
|
+
/** If empty, then this represents all kinds. */
|
|
193
|
+
kinds?: string[];
|
|
194
|
+
/**
|
|
195
|
+
* An empty list represents all namespaces. This is the preferred usage for projects that don't use namespaces. An empty string element represents the default namespace. This should be
|
|
196
|
+
* used if the project has data in non-default namespaces, but doesn't want to include them. Each namespace in this list must be unique.
|
|
197
|
+
*/
|
|
198
|
+
namespaceIds?: string[];
|
|
199
|
+
}
|
|
200
|
+
interface GoogleDatastoreAdminV1ExportEntitiesMetadata {
|
|
201
|
+
/** Metadata common to all Datastore Admin operations. */
|
|
202
|
+
common?: GoogleDatastoreAdminV1CommonMetadata;
|
|
203
|
+
/** Description of which entities are being exported. */
|
|
204
|
+
entityFilter?: GoogleDatastoreAdminV1EntityFilter;
|
|
205
|
+
/**
|
|
206
|
+
* Location for the export metadata and data files. This will be the same value as the google.datastore.admin.v1.ExportEntitiesRequest.output_url_prefix field. The final output
|
|
207
|
+
* location is provided in google.datastore.admin.v1.ExportEntitiesResponse.output_url.
|
|
208
|
+
*/
|
|
209
|
+
outputUrlPrefix?: string;
|
|
210
|
+
/** An estimate of the number of bytes processed. */
|
|
211
|
+
progressBytes?: GoogleDatastoreAdminV1Progress;
|
|
212
|
+
/** An estimate of the number of entities processed. */
|
|
213
|
+
progressEntities?: GoogleDatastoreAdminV1Progress;
|
|
214
|
+
}
|
|
215
|
+
interface GoogleDatastoreAdminV1ExportEntitiesRequest {
|
|
216
|
+
/** Description of what data from the project is included in the export. */
|
|
217
|
+
entityFilter?: GoogleDatastoreAdminV1EntityFilter;
|
|
218
|
+
/** Client-assigned labels. */
|
|
219
|
+
labels?: { [P in string]: string };
|
|
220
|
+
/**
|
|
221
|
+
* Required. Location for the export metadata and data files. The full resource URL of the external storage location. Currently, only Google Cloud Storage is supported. So
|
|
222
|
+
* output_url_prefix should be of the form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name of the Cloud Storage bucket and `NAMESPACE_PATH` is an optional Cloud
|
|
223
|
+
* Storage namespace path (this is not a Cloud Datastore namespace). For more information about Cloud Storage namespace paths, see [Object name
|
|
224
|
+
* considerations](https://cloud.google.com/storage/docs/naming#object-considerations). The resulting files will be nested deeper than the specified URL prefix. The final output URL
|
|
225
|
+
* will be provided in the google.datastore.admin.v1.ExportEntitiesResponse.output_url field. That value should be used for subsequent ImportEntities operations. By nesting the data
|
|
226
|
+
* files deeper, the same Cloud Storage bucket can be used in multiple ExportEntities operations without conflict.
|
|
227
|
+
*/
|
|
228
|
+
outputUrlPrefix?: string;
|
|
229
|
+
}
|
|
230
|
+
interface GoogleDatastoreAdminV1ExportEntitiesResponse {
|
|
231
|
+
/**
|
|
232
|
+
* Location of the output metadata file. This can be used to begin an import into Cloud Datastore (this project or another project). See
|
|
233
|
+
* google.datastore.admin.v1.ImportEntitiesRequest.input_url. Only present if the operation completed successfully.
|
|
234
|
+
*/
|
|
235
|
+
outputUrl?: string;
|
|
236
|
+
}
|
|
237
|
+
interface GoogleDatastoreAdminV1ImportEntitiesMetadata {
|
|
238
|
+
/** Metadata common to all Datastore Admin operations. */
|
|
239
|
+
common?: GoogleDatastoreAdminV1CommonMetadata;
|
|
240
|
+
/** Description of which entities are being imported. */
|
|
241
|
+
entityFilter?: GoogleDatastoreAdminV1EntityFilter;
|
|
242
|
+
/** The location of the import metadata file. This will be the same value as the google.datastore.admin.v1.ExportEntitiesResponse.output_url field. */
|
|
243
|
+
inputUrl?: string;
|
|
244
|
+
/** An estimate of the number of bytes processed. */
|
|
245
|
+
progressBytes?: GoogleDatastoreAdminV1Progress;
|
|
246
|
+
/** An estimate of the number of entities processed. */
|
|
247
|
+
progressEntities?: GoogleDatastoreAdminV1Progress;
|
|
248
|
+
}
|
|
249
|
+
interface GoogleDatastoreAdminV1ImportEntitiesRequest {
|
|
250
|
+
/**
|
|
251
|
+
* Optionally specify which kinds/namespaces are to be imported. If provided, the list must be a subset of the EntityFilter used in creating the export, otherwise a FAILED_PRECONDITION
|
|
252
|
+
* error will be returned. If no filter is specified then all entities from the export are imported.
|
|
253
|
+
*/
|
|
254
|
+
entityFilter?: GoogleDatastoreAdminV1EntityFilter;
|
|
255
|
+
/**
|
|
256
|
+
* Required. The full resource URL of the external storage location. Currently, only Google Cloud Storage is supported. So input_url should be of the form:
|
|
257
|
+
* `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is an optional Cloud Storage
|
|
258
|
+
* namespace path (this is not a Cloud Datastore namespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written by the ExportEntities operation. For more information about
|
|
259
|
+
* Cloud Storage namespace paths, see [Object name considerations](https://cloud.google.com/storage/docs/naming#object-considerations). For more information, see
|
|
260
|
+
* google.datastore.admin.v1.ExportEntitiesResponse.output_url.
|
|
261
|
+
*/
|
|
262
|
+
inputUrl?: string;
|
|
263
|
+
/** Client-assigned labels. */
|
|
264
|
+
labels?: { [P in string]: string };
|
|
265
|
+
}
|
|
266
|
+
interface GoogleDatastoreAdminV1Index {
|
|
267
|
+
/** Required. The index's ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED. */
|
|
268
|
+
ancestor?: string;
|
|
269
|
+
/** Output only. The resource ID of the index. */
|
|
270
|
+
indexId?: string;
|
|
271
|
+
/** Required. The entity kind to which this index applies. */
|
|
272
|
+
kind?: string;
|
|
273
|
+
/** Output only. Project ID. */
|
|
274
|
+
projectId?: string;
|
|
275
|
+
/** Required. An ordered sequence of property names and their index attributes. */
|
|
276
|
+
properties?: GoogleDatastoreAdminV1IndexedProperty[];
|
|
277
|
+
/** Output only. The state of the index. */
|
|
278
|
+
state?: string;
|
|
279
|
+
}
|
|
280
|
+
interface GoogleDatastoreAdminV1IndexedProperty {
|
|
281
|
+
/** Required. The indexed property's direction. Must not be DIRECTION_UNSPECIFIED. */
|
|
282
|
+
direction?: string;
|
|
283
|
+
/** Required. The property name to index. */
|
|
284
|
+
name?: string;
|
|
285
|
+
}
|
|
286
|
+
interface GoogleDatastoreAdminV1IndexOperationMetadata {
|
|
287
|
+
/** Metadata common to all Datastore Admin operations. */
|
|
288
|
+
common?: GoogleDatastoreAdminV1CommonMetadata;
|
|
289
|
+
/** The index resource ID that this operation is acting on. */
|
|
290
|
+
indexId?: string;
|
|
291
|
+
/** An estimate of the number of entities processed. */
|
|
292
|
+
progressEntities?: GoogleDatastoreAdminV1Progress;
|
|
293
|
+
}
|
|
294
|
+
interface GoogleDatastoreAdminV1ListIndexesResponse {
|
|
295
|
+
/** The indexes. */
|
|
296
|
+
indexes?: GoogleDatastoreAdminV1Index[];
|
|
297
|
+
/** The standard List next-page token. */
|
|
298
|
+
nextPageToken?: string;
|
|
299
|
+
}
|
|
300
|
+
interface GoogleDatastoreAdminV1MigrationProgressEvent {
|
|
301
|
+
/** Details for the `PREPARE` step. */
|
|
302
|
+
prepareStepDetails?: GoogleDatastoreAdminV1PrepareStepDetails;
|
|
303
|
+
/** Details for the `REDIRECT_WRITES` step. */
|
|
304
|
+
redirectWritesStepDetails?: GoogleDatastoreAdminV1RedirectWritesStepDetails;
|
|
305
|
+
/** The step that is starting. An event with step set to `START` indicates that the migration has been reverted back to the initial pre-migration state. */
|
|
306
|
+
step?: string;
|
|
307
|
+
}
|
|
308
|
+
interface GoogleDatastoreAdminV1MigrationStateEvent {
|
|
309
|
+
/** The new state of the migration. */
|
|
310
|
+
state?: string;
|
|
311
|
+
}
|
|
312
|
+
interface GoogleDatastoreAdminV1PrepareStepDetails {
|
|
313
|
+
/** The concurrency mode this database will use when it reaches the `REDIRECT_WRITES` step. */
|
|
314
|
+
concurrencyMode?: string;
|
|
315
|
+
}
|
|
316
|
+
interface GoogleDatastoreAdminV1Progress {
|
|
317
|
+
/** The amount of work that has been completed. Note that this may be greater than work_estimated. */
|
|
318
|
+
workCompleted?: string;
|
|
319
|
+
/** An estimate of how much work needs to be performed. May be zero if the work estimate is unavailable. */
|
|
320
|
+
workEstimated?: string;
|
|
321
|
+
}
|
|
322
|
+
interface GoogleDatastoreAdminV1RedirectWritesStepDetails {
|
|
323
|
+
/** Ths concurrency mode for this database. */
|
|
324
|
+
concurrencyMode?: string;
|
|
325
|
+
}
|
|
326
|
+
interface GoogleLongrunningListOperationsResponse {
|
|
327
|
+
/** The standard List next-page token. */
|
|
328
|
+
nextPageToken?: string;
|
|
329
|
+
/** A list of operations that matches the specified filter in the request. */
|
|
330
|
+
operations?: GoogleLongrunningOperation[];
|
|
331
|
+
}
|
|
332
|
+
interface GoogleLongrunningOperation {
|
|
333
|
+
/** 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. */
|
|
334
|
+
done?: boolean;
|
|
335
|
+
/** The error result of the operation in case of failure or cancellation. */
|
|
336
|
+
error?: Status;
|
|
337
|
+
/**
|
|
338
|
+
* 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
|
|
339
|
+
* metadata. Any method that returns a long-running operation should document the metadata type, if any.
|
|
340
|
+
*/
|
|
341
|
+
metadata?: { [P in string]: any };
|
|
342
|
+
/**
|
|
343
|
+
* 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
|
|
344
|
+
* with `operations/{unique_id}`.
|
|
345
|
+
*/
|
|
346
|
+
name?: string;
|
|
347
|
+
/**
|
|
348
|
+
* 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
|
|
349
|
+
* 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
|
|
350
|
+
* original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
|
|
351
|
+
*/
|
|
352
|
+
response?: { [P in string]: any };
|
|
353
|
+
}
|
|
354
|
+
interface GqlQuery {
|
|
355
|
+
/**
|
|
356
|
+
* When false, the query string must not contain any literals and instead must bind all values. For example, `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while
|
|
357
|
+
* `SELECT * FROM Kind WHERE a = @value` is.
|
|
358
|
+
*/
|
|
359
|
+
allowLiterals?: boolean;
|
|
360
|
+
/**
|
|
361
|
+
* For each non-reserved named binding site in the query string, there must be a named parameter with that name, but not necessarily the inverse. Key must match regex `A-Za-z_$*`, must
|
|
362
|
+
* not match regex `__.*__`, and must not be `""`.
|
|
363
|
+
*/
|
|
364
|
+
namedBindings?: { [P in string]: GqlQueryParameter };
|
|
365
|
+
/**
|
|
366
|
+
* Numbered binding site @1 references the first numbered parameter, effectively using 1-based indexing, rather than the usual 0. For each binding site numbered i in `query_string`,
|
|
367
|
+
* there must be an i-th numbered parameter. The inverse must also be true.
|
|
368
|
+
*/
|
|
369
|
+
positionalBindings?: GqlQueryParameter[];
|
|
370
|
+
/** A string of the format described [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference). */
|
|
371
|
+
queryString?: string;
|
|
372
|
+
}
|
|
373
|
+
interface GqlQueryParameter {
|
|
374
|
+
/** A query cursor. Query cursors are returned in query result batches. */
|
|
375
|
+
cursor?: string;
|
|
376
|
+
/** A value parameter. */
|
|
377
|
+
value?: Value;
|
|
378
|
+
}
|
|
379
|
+
interface Key {
|
|
380
|
+
/** Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition. */
|
|
381
|
+
partitionId?: PartitionId;
|
|
382
|
+
/**
|
|
383
|
+
* The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a
|
|
384
|
+
* _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all
|
|
385
|
+
* prefixes of the path are called the element's _ancestors_. An entity path is always fully complete: *all* of the entity's ancestors are required to be in the path along with the
|
|
386
|
+
* entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. For example, the last
|
|
387
|
+
* path element of the key of `Mutation.insert` may have no identifier. A path can never be empty, and a path can have at most 100 elements.
|
|
388
|
+
*/
|
|
389
|
+
path?: PathElement[];
|
|
390
|
+
}
|
|
391
|
+
interface KindExpression {
|
|
392
|
+
/** The name of the kind. */
|
|
393
|
+
name?: string;
|
|
394
|
+
}
|
|
395
|
+
interface LatLng {
|
|
396
|
+
/** The latitude in degrees. It must be in the range [-90.0, +90.0]. */
|
|
397
|
+
latitude?: number;
|
|
398
|
+
/** The longitude in degrees. It must be in the range [-180.0, +180.0]. */
|
|
399
|
+
longitude?: number;
|
|
400
|
+
}
|
|
401
|
+
interface LookupRequest {
|
|
402
|
+
/** If not empty, the ID of the database against which to make the request. */
|
|
403
|
+
databaseId?: string;
|
|
404
|
+
/** Required. Keys of entities to look up. */
|
|
405
|
+
keys?: Key[];
|
|
406
|
+
/** The options for this lookup request. */
|
|
407
|
+
readOptions?: ReadOptions;
|
|
408
|
+
}
|
|
409
|
+
interface LookupResponse {
|
|
410
|
+
/** A list of keys that were not looked up due to resource constraints. The order of results in this field is undefined and has no relation to the order of the keys in the input. */
|
|
411
|
+
deferred?: Key[];
|
|
412
|
+
/** Entities found as `ResultType.FULL` entities. The order of results in this field is undefined and has no relation to the order of the keys in the input. */
|
|
413
|
+
found?: EntityResult[];
|
|
414
|
+
/** Entities not found as `ResultType.KEY_ONLY` entities. The order of results in this field is undefined and has no relation to the order of the keys in the input. */
|
|
415
|
+
missing?: EntityResult[];
|
|
416
|
+
/** The time at which these entities were read or found missing. */
|
|
417
|
+
readTime?: string;
|
|
418
|
+
}
|
|
419
|
+
interface Mutation {
|
|
420
|
+
/** The version of the entity that this mutation is being applied to. If this does not match the current version on the server, the mutation conflicts. */
|
|
421
|
+
baseVersion?: string;
|
|
422
|
+
/** The key of the entity to delete. The entity may or may not already exist. Must have a complete key path and must not be reserved/read-only. */
|
|
423
|
+
delete?: Key;
|
|
424
|
+
/** The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete. */
|
|
425
|
+
insert?: Entity;
|
|
426
|
+
/** The entity to update. The entity must already exist. Must have a complete key path. */
|
|
427
|
+
update?: Entity;
|
|
428
|
+
/** The update time of the entity that this mutation is being applied to. If this does not match the current update time on the server, the mutation conflicts. */
|
|
429
|
+
updateTime?: string;
|
|
430
|
+
/** The entity to upsert. The entity may or may not already exist. The entity key's final path element may be incomplete. */
|
|
431
|
+
upsert?: Entity;
|
|
432
|
+
}
|
|
433
|
+
interface MutationResult {
|
|
434
|
+
/** Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation. */
|
|
435
|
+
conflictDetected?: boolean;
|
|
436
|
+
/** The automatically allocated key. Set only when the mutation allocated a key. */
|
|
437
|
+
key?: Key;
|
|
438
|
+
/**
|
|
439
|
+
* The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of
|
|
440
|
+
* the current entity. This field will not be set after a 'delete'.
|
|
441
|
+
*/
|
|
442
|
+
updateTime?: string;
|
|
443
|
+
/**
|
|
444
|
+
* The version of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the version will be the version of the current
|
|
445
|
+
* entity or, if no entity is present, a version that is strictly greater than the version of any previous entity and less than the version of any possible future entity.
|
|
446
|
+
*/
|
|
447
|
+
version?: string;
|
|
448
|
+
}
|
|
449
|
+
interface PartitionId {
|
|
450
|
+
/** If not empty, the ID of the database to which the entities belong. */
|
|
451
|
+
databaseId?: string;
|
|
452
|
+
/** If not empty, the ID of the namespace to which the entities belong. */
|
|
453
|
+
namespaceId?: string;
|
|
454
|
+
/** The ID of the project to which the entities belong. */
|
|
455
|
+
projectId?: string;
|
|
456
|
+
}
|
|
457
|
+
interface PathElement {
|
|
458
|
+
/** The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future. */
|
|
459
|
+
id?: string;
|
|
460
|
+
/**
|
|
461
|
+
* The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `""`. Must be valid UTF-8
|
|
462
|
+
* bytes. Legacy values that are not valid UTF-8 are encoded as `__bytes__` where `` is the base-64 encoding of the bytes.
|
|
463
|
+
*/
|
|
464
|
+
kind?: string;
|
|
465
|
+
/**
|
|
466
|
+
* The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `""`. Must be valid UTF-8 bytes.
|
|
467
|
+
* Legacy values that are not valid UTF-8 are encoded as `__bytes__` where `` is the base-64 encoding of the bytes.
|
|
468
|
+
*/
|
|
469
|
+
name?: string;
|
|
470
|
+
}
|
|
471
|
+
interface Projection {
|
|
472
|
+
/** The property to project. */
|
|
473
|
+
property?: PropertyReference;
|
|
474
|
+
}
|
|
475
|
+
interface PropertyFilter {
|
|
476
|
+
/** The operator to filter by. */
|
|
477
|
+
op?: string;
|
|
478
|
+
/** The property to filter by. */
|
|
479
|
+
property?: PropertyReference;
|
|
480
|
+
/** The value to compare the property to. */
|
|
481
|
+
value?: Value;
|
|
482
|
+
}
|
|
483
|
+
interface PropertyOrder {
|
|
484
|
+
/** The direction to order by. Defaults to `ASCENDING`. */
|
|
485
|
+
direction?: string;
|
|
486
|
+
/** The property to order by. */
|
|
487
|
+
property?: PropertyReference;
|
|
488
|
+
}
|
|
489
|
+
interface PropertyReference {
|
|
490
|
+
/** The name of the property. If name includes "."s, it may be interpreted as a property name path. */
|
|
491
|
+
name?: string;
|
|
492
|
+
}
|
|
493
|
+
interface Query {
|
|
494
|
+
/**
|
|
495
|
+
* The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are
|
|
496
|
+
* returned).
|
|
497
|
+
*/
|
|
498
|
+
distinctOn?: PropertyReference[];
|
|
499
|
+
/**
|
|
500
|
+
* An ending point for the query results. Query cursors are returned in query result batches and [can only be used to limit the same
|
|
501
|
+
* query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
|
|
502
|
+
*/
|
|
503
|
+
endCursor?: string;
|
|
504
|
+
/** The filter to apply. */
|
|
505
|
+
filter?: Filter;
|
|
506
|
+
/** The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified. */
|
|
507
|
+
kind?: KindExpression[];
|
|
508
|
+
/** The maximum number of results to return. Applies after all other constraints. Optional. Unspecified is interpreted as no limit. Must be >= 0 if specified. */
|
|
509
|
+
limit?: number;
|
|
510
|
+
/** The number of results to skip. Applies before limit, but after all other constraints. Optional. Must be >= 0 if specified. */
|
|
511
|
+
offset?: number;
|
|
512
|
+
/** The order to apply to the query results (if empty, order is unspecified). */
|
|
513
|
+
order?: PropertyOrder[];
|
|
514
|
+
/** The projection to return. Defaults to returning all properties. */
|
|
515
|
+
projection?: Projection[];
|
|
516
|
+
/**
|
|
517
|
+
* A starting point for the query results. Query cursors are returned in query result batches and [can only be used to continue the same
|
|
518
|
+
* query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
|
|
519
|
+
*/
|
|
520
|
+
startCursor?: string;
|
|
521
|
+
}
|
|
522
|
+
interface QueryResultBatch {
|
|
523
|
+
/** A cursor that points to the position after the last result in the batch. */
|
|
524
|
+
endCursor?: string;
|
|
525
|
+
/** The results for this batch. */
|
|
526
|
+
entityResults?: EntityResult[];
|
|
527
|
+
/** The result type for every entity in `entity_results`. */
|
|
528
|
+
entityResultType?: string;
|
|
529
|
+
/** The state of the query after the current batch. */
|
|
530
|
+
moreResults?: string;
|
|
531
|
+
/**
|
|
532
|
+
* Read timestamp this batch was returned from. This applies to the range of results from the query's `start_cursor` (or the beginning of the query if no cursor was given) to this
|
|
533
|
+
* batch's `end_cursor` (not the query's `end_cursor`). In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read
|
|
534
|
+
* timestamp is valid for all preceding batches. This value will not be set for eventually consistent queries in Cloud Datastore.
|
|
535
|
+
*/
|
|
536
|
+
readTime?: string;
|
|
537
|
+
/** A cursor that points to the position after the last skipped result. Will be set when `skipped_results` != 0. */
|
|
538
|
+
skippedCursor?: string;
|
|
539
|
+
/** The number of results skipped, typically because of an offset. */
|
|
540
|
+
skippedResults?: number;
|
|
541
|
+
/**
|
|
542
|
+
* The version number of the snapshot this batch was returned from. This applies to the range of results from the query's `start_cursor` (or the beginning of the query if no cursor was
|
|
543
|
+
* given) to this batch's `end_cursor` (not the query's `end_cursor`). In a single transaction, subsequent query result batches for the same query can have a greater snapshot version
|
|
544
|
+
* number. Each batch's snapshot version is valid for all preceding batches. The value will be zero for eventually consistent queries.
|
|
545
|
+
*/
|
|
546
|
+
snapshotVersion?: string;
|
|
547
|
+
}
|
|
548
|
+
interface ReadOnly {
|
|
549
|
+
/** Reads entities at the given time. This may not be older than 60 seconds. */
|
|
550
|
+
readTime?: string;
|
|
551
|
+
}
|
|
552
|
+
interface ReadOptions {
|
|
553
|
+
/** The non-transactional read consistency to use. Cannot be set to `STRONG` for global queries. */
|
|
554
|
+
readConsistency?: string;
|
|
555
|
+
/** Reads entities as they were at the given time. This may not be older than 270 seconds. This value is only supported for Cloud Firestore in Datastore mode. */
|
|
556
|
+
readTime?: string;
|
|
557
|
+
/** The identifier of the transaction in which to read. A transaction identifier is returned by a call to Datastore.BeginTransaction. */
|
|
558
|
+
transaction?: string;
|
|
559
|
+
}
|
|
560
|
+
interface ReadWrite {
|
|
561
|
+
/** The transaction identifier of the transaction being retried. */
|
|
562
|
+
previousTransaction?: string;
|
|
563
|
+
}
|
|
564
|
+
interface ReserveIdsRequest {
|
|
565
|
+
/** If not empty, the ID of the database against which to make the request. */
|
|
566
|
+
databaseId?: string;
|
|
567
|
+
/** Required. A list of keys with complete key paths whose numeric IDs should not be auto-allocated. */
|
|
568
|
+
keys?: Key[];
|
|
569
|
+
}
|
|
570
|
+
// tslint:disable-next-line:no-empty-interface
|
|
571
|
+
interface ReserveIdsResponse {
|
|
572
|
+
}
|
|
573
|
+
interface RollbackRequest {
|
|
574
|
+
/** If not empty, the ID of the database against which to make the request. */
|
|
575
|
+
databaseId?: string;
|
|
576
|
+
/** Required. The transaction identifier, returned by a call to Datastore.BeginTransaction. */
|
|
577
|
+
transaction?: string;
|
|
578
|
+
}
|
|
579
|
+
// tslint:disable-next-line:no-empty-interface
|
|
580
|
+
interface RollbackResponse {
|
|
581
|
+
}
|
|
582
|
+
interface RunQueryRequest {
|
|
583
|
+
/** If not empty, the ID of the database against which to make the request. */
|
|
584
|
+
databaseId?: string;
|
|
585
|
+
/** The GQL query to run. This query must be a non-aggregation query. */
|
|
586
|
+
gqlQuery?: GqlQuery;
|
|
587
|
+
/**
|
|
588
|
+
* Entities are partitioned into subsets, identified by a partition ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context
|
|
589
|
+
* partition ID.
|
|
590
|
+
*/
|
|
591
|
+
partitionId?: PartitionId;
|
|
592
|
+
/** The query to run. */
|
|
593
|
+
query?: Query;
|
|
594
|
+
/** The options for this query. */
|
|
595
|
+
readOptions?: ReadOptions;
|
|
596
|
+
}
|
|
597
|
+
interface RunQueryResponse {
|
|
598
|
+
/** A batch of query results (always present). */
|
|
599
|
+
batch?: QueryResultBatch;
|
|
600
|
+
/** The parsed form of the `GqlQuery` from the request, if it was set. */
|
|
601
|
+
query?: Query;
|
|
602
|
+
}
|
|
603
|
+
interface Status {
|
|
604
|
+
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
605
|
+
code?: number;
|
|
606
|
+
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
607
|
+
details?: Array<{ [P in string]: any }>;
|
|
608
|
+
/**
|
|
609
|
+
* 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
|
|
610
|
+
* client.
|
|
611
|
+
*/
|
|
612
|
+
message?: string;
|
|
613
|
+
}
|
|
614
|
+
interface TransactionOptions {
|
|
615
|
+
/** The transaction should only allow reads. */
|
|
616
|
+
readOnly?: ReadOnly;
|
|
617
|
+
/** The transaction should allow both reads and writes. */
|
|
618
|
+
readWrite?: ReadWrite;
|
|
619
|
+
}
|
|
620
|
+
interface Value {
|
|
621
|
+
/** An array value. Cannot contain another array value. A `Value` instance that sets field `array_value` must not set fields `meaning` or `exclude_from_indexes`. */
|
|
622
|
+
arrayValue?: ArrayValue;
|
|
623
|
+
/** A blob value. May have at most 1,000,000 bytes. When `exclude_from_indexes` is false, may have at most 1500 bytes. In JSON requests, must be base64-encoded. */
|
|
624
|
+
blobValue?: string;
|
|
625
|
+
/** A boolean value. */
|
|
626
|
+
booleanValue?: boolean;
|
|
627
|
+
/** A double value. */
|
|
628
|
+
doubleValue?: number;
|
|
629
|
+
/** An entity value. - May have no key. - May have a key with an incomplete key path. - May have a reserved/read-only key. */
|
|
630
|
+
entityValue?: Entity;
|
|
631
|
+
/** If the value should be excluded from all indexes including those defined explicitly. */
|
|
632
|
+
excludeFromIndexes?: boolean;
|
|
633
|
+
/** A geo point value representing a point on the surface of Earth. */
|
|
634
|
+
geoPointValue?: LatLng;
|
|
635
|
+
/** An integer value. */
|
|
636
|
+
integerValue?: string;
|
|
637
|
+
/** A key value. */
|
|
638
|
+
keyValue?: Key;
|
|
639
|
+
/** The `meaning` field should only be populated for backwards compatibility. */
|
|
640
|
+
meaning?: number;
|
|
641
|
+
/** A null value. */
|
|
642
|
+
nullValue?: string;
|
|
643
|
+
/** A UTF-8 encoded string value. When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes. */
|
|
644
|
+
stringValue?: string;
|
|
645
|
+
/** A timestamp value. When stored in the Datastore, precise only to microseconds; any additional precision is rounded down. */
|
|
646
|
+
timestampValue?: string;
|
|
647
|
+
}
|
|
648
|
+
interface IndexesResource {
|
|
649
|
+
/**
|
|
650
|
+
* Creates the specified index. A newly created index's initial state is `CREATING`. On completion of the returned google.longrunning.Operation, the state will be `READY`. If the index
|
|
651
|
+
* already exists, the call will return an `ALREADY_EXISTS` status. During index creation, the process could result in an error, in which case the index will move to the `ERROR` state.
|
|
652
|
+
* The process can be recovered by fixing the data that caused the error, removing the index with delete, then re-creating the index with create. Indexes with a single property cannot
|
|
653
|
+
* be created.
|
|
654
|
+
*/
|
|
655
|
+
create(request: {
|
|
656
|
+
/** V1 error format. */
|
|
657
|
+
"$.xgafv"?: string;
|
|
658
|
+
/** OAuth access token. */
|
|
659
|
+
access_token?: string;
|
|
660
|
+
/** Data format for response. */
|
|
661
|
+
alt?: string;
|
|
662
|
+
/** JSONP */
|
|
663
|
+
callback?: string;
|
|
664
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
665
|
+
fields?: string;
|
|
666
|
+
/** 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. */
|
|
667
|
+
key?: string;
|
|
668
|
+
/** OAuth 2.0 token for the current user. */
|
|
669
|
+
oauth_token?: string;
|
|
670
|
+
/** Returns response with indentations and line breaks. */
|
|
671
|
+
prettyPrint?: boolean;
|
|
672
|
+
/** Project ID against which to make the request. */
|
|
673
|
+
projectId: string;
|
|
674
|
+
/** 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. */
|
|
675
|
+
quotaUser?: string;
|
|
676
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
677
|
+
upload_protocol?: string;
|
|
678
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
679
|
+
uploadType?: string;
|
|
680
|
+
/** Request body */
|
|
681
|
+
resource: GoogleDatastoreAdminV1Index;
|
|
682
|
+
}): Request<GoogleLongrunningOperation>;
|
|
683
|
+
create(request: {
|
|
684
|
+
/** V1 error format. */
|
|
685
|
+
"$.xgafv"?: string;
|
|
686
|
+
/** OAuth access token. */
|
|
687
|
+
access_token?: string;
|
|
688
|
+
/** Data format for response. */
|
|
689
|
+
alt?: string;
|
|
690
|
+
/** JSONP */
|
|
691
|
+
callback?: string;
|
|
692
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
693
|
+
fields?: string;
|
|
694
|
+
/** 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. */
|
|
695
|
+
key?: string;
|
|
696
|
+
/** OAuth 2.0 token for the current user. */
|
|
697
|
+
oauth_token?: string;
|
|
698
|
+
/** Returns response with indentations and line breaks. */
|
|
699
|
+
prettyPrint?: boolean;
|
|
700
|
+
/** Project ID against which to make the request. */
|
|
701
|
+
projectId: string;
|
|
702
|
+
/** 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. */
|
|
703
|
+
quotaUser?: string;
|
|
704
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
705
|
+
upload_protocol?: string;
|
|
706
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
707
|
+
uploadType?: string;
|
|
708
|
+
},
|
|
709
|
+
body: GoogleDatastoreAdminV1Index): Request<GoogleLongrunningOperation>;
|
|
710
|
+
/**
|
|
711
|
+
* Deletes an existing index. An index can only be deleted if it is in a `READY` or `ERROR` state. On successful execution of the request, the index will be in a `DELETING` state. And
|
|
712
|
+
* on completion of the returned google.longrunning.Operation, the index will be removed. During index deletion, the process could result in an error, in which case the index will move
|
|
713
|
+
* to the `ERROR` state. The process can be recovered by fixing the data that caused the error, followed by calling delete again.
|
|
714
|
+
*/
|
|
715
|
+
delete(request?: {
|
|
716
|
+
/** V1 error format. */
|
|
717
|
+
"$.xgafv"?: string;
|
|
718
|
+
/** OAuth access token. */
|
|
719
|
+
access_token?: string;
|
|
720
|
+
/** Data format for response. */
|
|
721
|
+
alt?: string;
|
|
722
|
+
/** JSONP */
|
|
723
|
+
callback?: string;
|
|
724
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
725
|
+
fields?: string;
|
|
726
|
+
/** The resource ID of the index to delete. */
|
|
727
|
+
indexId: string;
|
|
728
|
+
/** 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. */
|
|
729
|
+
key?: string;
|
|
730
|
+
/** OAuth 2.0 token for the current user. */
|
|
731
|
+
oauth_token?: string;
|
|
732
|
+
/** Returns response with indentations and line breaks. */
|
|
733
|
+
prettyPrint?: boolean;
|
|
734
|
+
/** Project ID against which to make the request. */
|
|
735
|
+
projectId: string;
|
|
736
|
+
/** 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. */
|
|
737
|
+
quotaUser?: string;
|
|
738
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
739
|
+
upload_protocol?: string;
|
|
740
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
741
|
+
uploadType?: string;
|
|
742
|
+
}): Request<GoogleLongrunningOperation>;
|
|
743
|
+
/** Gets an index. */
|
|
744
|
+
get(request?: {
|
|
745
|
+
/** V1 error format. */
|
|
746
|
+
"$.xgafv"?: string;
|
|
747
|
+
/** OAuth access token. */
|
|
748
|
+
access_token?: string;
|
|
749
|
+
/** Data format for response. */
|
|
750
|
+
alt?: string;
|
|
751
|
+
/** JSONP */
|
|
752
|
+
callback?: string;
|
|
753
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
754
|
+
fields?: string;
|
|
755
|
+
/** The resource ID of the index to get. */
|
|
756
|
+
indexId: string;
|
|
757
|
+
/** 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. */
|
|
758
|
+
key?: string;
|
|
759
|
+
/** OAuth 2.0 token for the current user. */
|
|
760
|
+
oauth_token?: string;
|
|
761
|
+
/** Returns response with indentations and line breaks. */
|
|
762
|
+
prettyPrint?: boolean;
|
|
763
|
+
/** Project ID against which to make the request. */
|
|
764
|
+
projectId: string;
|
|
765
|
+
/** 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. */
|
|
766
|
+
quotaUser?: string;
|
|
767
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
768
|
+
upload_protocol?: string;
|
|
769
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
770
|
+
uploadType?: string;
|
|
771
|
+
}): Request<GoogleDatastoreAdminV1Index>;
|
|
772
|
+
/** Lists the indexes that match the specified filters. Datastore uses an eventually consistent query to fetch the list of indexes and may occasionally return stale results. */
|
|
773
|
+
list(request?: {
|
|
774
|
+
/** V1 error format. */
|
|
775
|
+
"$.xgafv"?: string;
|
|
776
|
+
/** OAuth access token. */
|
|
777
|
+
access_token?: string;
|
|
778
|
+
/** Data format for response. */
|
|
779
|
+
alt?: string;
|
|
780
|
+
/** JSONP */
|
|
781
|
+
callback?: string;
|
|
782
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
783
|
+
fields?: string;
|
|
784
|
+
filter?: string;
|
|
785
|
+
/** 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. */
|
|
786
|
+
key?: string;
|
|
787
|
+
/** OAuth 2.0 token for the current user. */
|
|
788
|
+
oauth_token?: string;
|
|
789
|
+
/** The maximum number of items to return. If zero, then all results will be returned. */
|
|
790
|
+
pageSize?: number;
|
|
791
|
+
/** The next_page_token value returned from a previous List request, if any. */
|
|
792
|
+
pageToken?: string;
|
|
793
|
+
/** Returns response with indentations and line breaks. */
|
|
794
|
+
prettyPrint?: boolean;
|
|
795
|
+
/** Project ID against which to make the request. */
|
|
796
|
+
projectId: string;
|
|
797
|
+
/** 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. */
|
|
798
|
+
quotaUser?: string;
|
|
799
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
800
|
+
upload_protocol?: string;
|
|
801
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
802
|
+
uploadType?: string;
|
|
803
|
+
}): Request<GoogleDatastoreAdminV1ListIndexesResponse>;
|
|
804
|
+
}
|
|
805
|
+
interface OperationsResource {
|
|
806
|
+
/**
|
|
807
|
+
* 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
|
|
808
|
+
* 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
|
|
809
|
+
* operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a
|
|
810
|
+
* google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
|
|
811
|
+
*/
|
|
812
|
+
cancel(request?: {
|
|
813
|
+
/** V1 error format. */
|
|
814
|
+
"$.xgafv"?: string;
|
|
815
|
+
/** OAuth access token. */
|
|
816
|
+
access_token?: string;
|
|
817
|
+
/** Data format for response. */
|
|
818
|
+
alt?: string;
|
|
819
|
+
/** JSONP */
|
|
820
|
+
callback?: string;
|
|
821
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
822
|
+
fields?: string;
|
|
823
|
+
/** 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. */
|
|
824
|
+
key?: string;
|
|
825
|
+
/** The name of the operation resource to be cancelled. */
|
|
826
|
+
name: string;
|
|
827
|
+
/** OAuth 2.0 token for the current user. */
|
|
828
|
+
oauth_token?: string;
|
|
829
|
+
/** Returns response with indentations and line breaks. */
|
|
830
|
+
prettyPrint?: boolean;
|
|
831
|
+
/** 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. */
|
|
832
|
+
quotaUser?: string;
|
|
833
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
834
|
+
upload_protocol?: string;
|
|
835
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
836
|
+
uploadType?: string;
|
|
837
|
+
}): Request<{}>;
|
|
838
|
+
/**
|
|
839
|
+
* 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
|
|
840
|
+
* support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
841
|
+
*/
|
|
842
|
+
delete(request?: {
|
|
843
|
+
/** V1 error format. */
|
|
844
|
+
"$.xgafv"?: string;
|
|
845
|
+
/** OAuth access token. */
|
|
846
|
+
access_token?: string;
|
|
847
|
+
/** Data format for response. */
|
|
848
|
+
alt?: string;
|
|
849
|
+
/** JSONP */
|
|
850
|
+
callback?: string;
|
|
851
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
852
|
+
fields?: string;
|
|
853
|
+
/** 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. */
|
|
854
|
+
key?: string;
|
|
855
|
+
/** The name of the operation resource to be deleted. */
|
|
856
|
+
name: string;
|
|
857
|
+
/** OAuth 2.0 token for the current user. */
|
|
858
|
+
oauth_token?: string;
|
|
859
|
+
/** Returns response with indentations and line breaks. */
|
|
860
|
+
prettyPrint?: boolean;
|
|
861
|
+
/** 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. */
|
|
862
|
+
quotaUser?: string;
|
|
863
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
864
|
+
upload_protocol?: string;
|
|
865
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
866
|
+
uploadType?: string;
|
|
867
|
+
}): Request<{}>;
|
|
868
|
+
/** 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. */
|
|
869
|
+
get(request?: {
|
|
870
|
+
/** V1 error format. */
|
|
871
|
+
"$.xgafv"?: string;
|
|
872
|
+
/** OAuth access token. */
|
|
873
|
+
access_token?: string;
|
|
874
|
+
/** Data format for response. */
|
|
875
|
+
alt?: string;
|
|
876
|
+
/** JSONP */
|
|
877
|
+
callback?: string;
|
|
878
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
879
|
+
fields?: string;
|
|
880
|
+
/** 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. */
|
|
881
|
+
key?: string;
|
|
882
|
+
/** The name of the operation resource. */
|
|
883
|
+
name: string;
|
|
884
|
+
/** OAuth 2.0 token for the current user. */
|
|
885
|
+
oauth_token?: string;
|
|
886
|
+
/** Returns response with indentations and line breaks. */
|
|
887
|
+
prettyPrint?: boolean;
|
|
888
|
+
/** 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. */
|
|
889
|
+
quotaUser?: string;
|
|
890
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
891
|
+
upload_protocol?: string;
|
|
892
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
893
|
+
uploadType?: string;
|
|
894
|
+
}): Request<GoogleLongrunningOperation>;
|
|
895
|
+
/**
|
|
896
|
+
* 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
|
|
897
|
+
* 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
|
|
898
|
+
* `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
|
|
899
|
+
* ensure the name binding is the parent resource, without the operations collection id.
|
|
900
|
+
*/
|
|
901
|
+
list(request?: {
|
|
902
|
+
/** V1 error format. */
|
|
903
|
+
"$.xgafv"?: string;
|
|
904
|
+
/** OAuth access token. */
|
|
905
|
+
access_token?: string;
|
|
906
|
+
/** Data format for response. */
|
|
907
|
+
alt?: string;
|
|
908
|
+
/** JSONP */
|
|
909
|
+
callback?: string;
|
|
910
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
911
|
+
fields?: string;
|
|
912
|
+
/** The standard list filter. */
|
|
913
|
+
filter?: string;
|
|
914
|
+
/** 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. */
|
|
915
|
+
key?: string;
|
|
916
|
+
/** The name of the operation's parent resource. */
|
|
917
|
+
name: string;
|
|
918
|
+
/** OAuth 2.0 token for the current user. */
|
|
919
|
+
oauth_token?: string;
|
|
920
|
+
/** The standard list page size. */
|
|
921
|
+
pageSize?: number;
|
|
922
|
+
/** The standard list page token. */
|
|
923
|
+
pageToken?: string;
|
|
924
|
+
/** Returns response with indentations and line breaks. */
|
|
925
|
+
prettyPrint?: boolean;
|
|
926
|
+
/** 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. */
|
|
927
|
+
quotaUser?: string;
|
|
928
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
929
|
+
upload_protocol?: string;
|
|
930
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
931
|
+
uploadType?: string;
|
|
932
|
+
}): Request<GoogleLongrunningListOperationsResponse>;
|
|
933
|
+
}
|
|
934
|
+
interface ProjectsResource {
|
|
935
|
+
/** Allocates IDs for the given keys, which is useful for referencing an entity before it is inserted. */
|
|
936
|
+
allocateIds(request: {
|
|
937
|
+
/** V1 error format. */
|
|
938
|
+
"$.xgafv"?: string;
|
|
939
|
+
/** OAuth access token. */
|
|
940
|
+
access_token?: string;
|
|
941
|
+
/** Data format for response. */
|
|
942
|
+
alt?: string;
|
|
943
|
+
/** JSONP */
|
|
944
|
+
callback?: string;
|
|
945
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
946
|
+
fields?: string;
|
|
947
|
+
/** 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. */
|
|
948
|
+
key?: string;
|
|
949
|
+
/** OAuth 2.0 token for the current user. */
|
|
950
|
+
oauth_token?: string;
|
|
951
|
+
/** Returns response with indentations and line breaks. */
|
|
952
|
+
prettyPrint?: boolean;
|
|
953
|
+
/** Required. The ID of the project against which to make the request. */
|
|
954
|
+
projectId: string;
|
|
955
|
+
/** 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. */
|
|
956
|
+
quotaUser?: string;
|
|
957
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
958
|
+
upload_protocol?: string;
|
|
959
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
960
|
+
uploadType?: string;
|
|
961
|
+
/** Request body */
|
|
962
|
+
resource: AllocateIdsRequest;
|
|
963
|
+
}): Request<AllocateIdsResponse>;
|
|
964
|
+
allocateIds(request: {
|
|
965
|
+
/** V1 error format. */
|
|
966
|
+
"$.xgafv"?: string;
|
|
967
|
+
/** OAuth access token. */
|
|
968
|
+
access_token?: string;
|
|
969
|
+
/** Data format for response. */
|
|
970
|
+
alt?: string;
|
|
971
|
+
/** JSONP */
|
|
972
|
+
callback?: string;
|
|
973
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
974
|
+
fields?: string;
|
|
975
|
+
/** 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. */
|
|
976
|
+
key?: string;
|
|
977
|
+
/** OAuth 2.0 token for the current user. */
|
|
978
|
+
oauth_token?: string;
|
|
979
|
+
/** Returns response with indentations and line breaks. */
|
|
980
|
+
prettyPrint?: boolean;
|
|
981
|
+
/** Required. The ID of the project against which to make the request. */
|
|
982
|
+
projectId: string;
|
|
983
|
+
/** 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. */
|
|
984
|
+
quotaUser?: string;
|
|
985
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
986
|
+
upload_protocol?: string;
|
|
987
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
988
|
+
uploadType?: string;
|
|
989
|
+
},
|
|
990
|
+
body: AllocateIdsRequest): Request<AllocateIdsResponse>;
|
|
991
|
+
/** Begins a new transaction. */
|
|
992
|
+
beginTransaction(request: {
|
|
993
|
+
/** V1 error format. */
|
|
994
|
+
"$.xgafv"?: string;
|
|
995
|
+
/** OAuth access token. */
|
|
996
|
+
access_token?: string;
|
|
997
|
+
/** Data format for response. */
|
|
998
|
+
alt?: string;
|
|
999
|
+
/** JSONP */
|
|
1000
|
+
callback?: string;
|
|
1001
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1002
|
+
fields?: string;
|
|
1003
|
+
/** 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. */
|
|
1004
|
+
key?: string;
|
|
1005
|
+
/** OAuth 2.0 token for the current user. */
|
|
1006
|
+
oauth_token?: string;
|
|
1007
|
+
/** Returns response with indentations and line breaks. */
|
|
1008
|
+
prettyPrint?: boolean;
|
|
1009
|
+
/** Required. The ID of the project against which to make the request. */
|
|
1010
|
+
projectId: string;
|
|
1011
|
+
/** 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. */
|
|
1012
|
+
quotaUser?: string;
|
|
1013
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1014
|
+
upload_protocol?: string;
|
|
1015
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1016
|
+
uploadType?: string;
|
|
1017
|
+
/** Request body */
|
|
1018
|
+
resource: BeginTransactionRequest;
|
|
1019
|
+
}): Request<BeginTransactionResponse>;
|
|
1020
|
+
beginTransaction(request: {
|
|
1021
|
+
/** V1 error format. */
|
|
1022
|
+
"$.xgafv"?: string;
|
|
1023
|
+
/** OAuth access token. */
|
|
1024
|
+
access_token?: string;
|
|
1025
|
+
/** Data format for response. */
|
|
1026
|
+
alt?: string;
|
|
1027
|
+
/** JSONP */
|
|
1028
|
+
callback?: string;
|
|
1029
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1030
|
+
fields?: string;
|
|
1031
|
+
/** 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. */
|
|
1032
|
+
key?: string;
|
|
1033
|
+
/** OAuth 2.0 token for the current user. */
|
|
1034
|
+
oauth_token?: string;
|
|
1035
|
+
/** Returns response with indentations and line breaks. */
|
|
1036
|
+
prettyPrint?: boolean;
|
|
1037
|
+
/** Required. The ID of the project against which to make the request. */
|
|
1038
|
+
projectId: string;
|
|
1039
|
+
/** 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. */
|
|
1040
|
+
quotaUser?: string;
|
|
1041
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1042
|
+
upload_protocol?: string;
|
|
1043
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1044
|
+
uploadType?: string;
|
|
1045
|
+
},
|
|
1046
|
+
body: BeginTransactionRequest): Request<BeginTransactionResponse>;
|
|
1047
|
+
/** Commits a transaction, optionally creating, deleting or modifying some entities. */
|
|
1048
|
+
commit(request: {
|
|
1049
|
+
/** V1 error format. */
|
|
1050
|
+
"$.xgafv"?: string;
|
|
1051
|
+
/** OAuth access token. */
|
|
1052
|
+
access_token?: string;
|
|
1053
|
+
/** Data format for response. */
|
|
1054
|
+
alt?: string;
|
|
1055
|
+
/** JSONP */
|
|
1056
|
+
callback?: string;
|
|
1057
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1058
|
+
fields?: string;
|
|
1059
|
+
/** 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. */
|
|
1060
|
+
key?: 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
|
+
/** Required. The ID of the project against which to make the request. */
|
|
1066
|
+
projectId: string;
|
|
1067
|
+
/** 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. */
|
|
1068
|
+
quotaUser?: string;
|
|
1069
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1070
|
+
upload_protocol?: string;
|
|
1071
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1072
|
+
uploadType?: string;
|
|
1073
|
+
/** Request body */
|
|
1074
|
+
resource: CommitRequest;
|
|
1075
|
+
}): Request<CommitResponse>;
|
|
1076
|
+
commit(request: {
|
|
1077
|
+
/** V1 error format. */
|
|
1078
|
+
"$.xgafv"?: string;
|
|
1079
|
+
/** OAuth access token. */
|
|
1080
|
+
access_token?: string;
|
|
1081
|
+
/** Data format for response. */
|
|
1082
|
+
alt?: string;
|
|
1083
|
+
/** JSONP */
|
|
1084
|
+
callback?: string;
|
|
1085
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1086
|
+
fields?: string;
|
|
1087
|
+
/** 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. */
|
|
1088
|
+
key?: string;
|
|
1089
|
+
/** OAuth 2.0 token for the current user. */
|
|
1090
|
+
oauth_token?: string;
|
|
1091
|
+
/** Returns response with indentations and line breaks. */
|
|
1092
|
+
prettyPrint?: boolean;
|
|
1093
|
+
/** Required. The ID of the project against which to make the request. */
|
|
1094
|
+
projectId: string;
|
|
1095
|
+
/** 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. */
|
|
1096
|
+
quotaUser?: string;
|
|
1097
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1098
|
+
upload_protocol?: string;
|
|
1099
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1100
|
+
uploadType?: string;
|
|
1101
|
+
},
|
|
1102
|
+
body: CommitRequest): Request<CommitResponse>;
|
|
1103
|
+
/**
|
|
1104
|
+
* Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage system, such as Google Cloud Storage. Recent updates to entities may not be reflected in
|
|
1105
|
+
* 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
|
|
1106
|
+
* once the associated operation is done. If an export operation is cancelled before completion it may leave partial data behind in Google Cloud Storage.
|
|
1107
|
+
*/
|
|
1108
|
+
export(request: {
|
|
1109
|
+
/** V1 error format. */
|
|
1110
|
+
"$.xgafv"?: string;
|
|
1111
|
+
/** OAuth access token. */
|
|
1112
|
+
access_token?: string;
|
|
1113
|
+
/** Data format for response. */
|
|
1114
|
+
alt?: string;
|
|
1115
|
+
/** JSONP */
|
|
1116
|
+
callback?: string;
|
|
1117
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1118
|
+
fields?: string;
|
|
1119
|
+
/** 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. */
|
|
1120
|
+
key?: string;
|
|
1121
|
+
/** OAuth 2.0 token for the current user. */
|
|
1122
|
+
oauth_token?: string;
|
|
1123
|
+
/** Returns response with indentations and line breaks. */
|
|
1124
|
+
prettyPrint?: boolean;
|
|
1125
|
+
/** Required. Project ID against which to make the request. */
|
|
1126
|
+
projectId: string;
|
|
1127
|
+
/** 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. */
|
|
1128
|
+
quotaUser?: string;
|
|
1129
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1130
|
+
upload_protocol?: string;
|
|
1131
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1132
|
+
uploadType?: string;
|
|
1133
|
+
/** Request body */
|
|
1134
|
+
resource: GoogleDatastoreAdminV1ExportEntitiesRequest;
|
|
1135
|
+
}): Request<GoogleLongrunningOperation>;
|
|
1136
|
+
export(request: {
|
|
1137
|
+
/** V1 error format. */
|
|
1138
|
+
"$.xgafv"?: string;
|
|
1139
|
+
/** OAuth access token. */
|
|
1140
|
+
access_token?: string;
|
|
1141
|
+
/** Data format for response. */
|
|
1142
|
+
alt?: string;
|
|
1143
|
+
/** JSONP */
|
|
1144
|
+
callback?: string;
|
|
1145
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1146
|
+
fields?: string;
|
|
1147
|
+
/** 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. */
|
|
1148
|
+
key?: string;
|
|
1149
|
+
/** OAuth 2.0 token for the current user. */
|
|
1150
|
+
oauth_token?: string;
|
|
1151
|
+
/** Returns response with indentations and line breaks. */
|
|
1152
|
+
prettyPrint?: boolean;
|
|
1153
|
+
/** Required. Project ID against which to make the request. */
|
|
1154
|
+
projectId: string;
|
|
1155
|
+
/** 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. */
|
|
1156
|
+
quotaUser?: string;
|
|
1157
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1158
|
+
upload_protocol?: string;
|
|
1159
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1160
|
+
uploadType?: string;
|
|
1161
|
+
},
|
|
1162
|
+
body: GoogleDatastoreAdminV1ExportEntitiesRequest): Request<GoogleLongrunningOperation>;
|
|
1163
|
+
/**
|
|
1164
|
+
* Imports entities into Google Cloud Datastore. Existing entities with the same key are overwritten. The import occurs in the background and its progress can be monitored and managed
|
|
1165
|
+
* via the Operation resource that is created. If an ImportEntities operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Datastore.
|
|
1166
|
+
*/
|
|
1167
|
+
import(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
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1177
|
+
fields?: string;
|
|
1178
|
+
/** 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. */
|
|
1179
|
+
key?: string;
|
|
1180
|
+
/** OAuth 2.0 token for the current user. */
|
|
1181
|
+
oauth_token?: string;
|
|
1182
|
+
/** Returns response with indentations and line breaks. */
|
|
1183
|
+
prettyPrint?: boolean;
|
|
1184
|
+
/** Required. Project ID against which to make the request. */
|
|
1185
|
+
projectId: string;
|
|
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
|
+
/** Request body */
|
|
1193
|
+
resource: GoogleDatastoreAdminV1ImportEntitiesRequest;
|
|
1194
|
+
}): Request<GoogleLongrunningOperation>;
|
|
1195
|
+
import(request: {
|
|
1196
|
+
/** V1 error format. */
|
|
1197
|
+
"$.xgafv"?: string;
|
|
1198
|
+
/** OAuth access token. */
|
|
1199
|
+
access_token?: string;
|
|
1200
|
+
/** Data format for response. */
|
|
1201
|
+
alt?: string;
|
|
1202
|
+
/** JSONP */
|
|
1203
|
+
callback?: string;
|
|
1204
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1205
|
+
fields?: string;
|
|
1206
|
+
/** 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. */
|
|
1207
|
+
key?: string;
|
|
1208
|
+
/** OAuth 2.0 token for the current user. */
|
|
1209
|
+
oauth_token?: string;
|
|
1210
|
+
/** Returns response with indentations and line breaks. */
|
|
1211
|
+
prettyPrint?: boolean;
|
|
1212
|
+
/** Required. Project ID against which to make the request. */
|
|
1213
|
+
projectId: string;
|
|
1214
|
+
/** 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. */
|
|
1215
|
+
quotaUser?: string;
|
|
1216
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1217
|
+
upload_protocol?: string;
|
|
1218
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1219
|
+
uploadType?: string;
|
|
1220
|
+
},
|
|
1221
|
+
body: GoogleDatastoreAdminV1ImportEntitiesRequest): Request<GoogleLongrunningOperation>;
|
|
1222
|
+
/** Looks up entities by key. */
|
|
1223
|
+
lookup(request: {
|
|
1224
|
+
/** V1 error format. */
|
|
1225
|
+
"$.xgafv"?: string;
|
|
1226
|
+
/** OAuth access token. */
|
|
1227
|
+
access_token?: string;
|
|
1228
|
+
/** Data format for response. */
|
|
1229
|
+
alt?: string;
|
|
1230
|
+
/** JSONP */
|
|
1231
|
+
callback?: string;
|
|
1232
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1233
|
+
fields?: string;
|
|
1234
|
+
/** 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. */
|
|
1235
|
+
key?: string;
|
|
1236
|
+
/** OAuth 2.0 token for the current user. */
|
|
1237
|
+
oauth_token?: string;
|
|
1238
|
+
/** Returns response with indentations and line breaks. */
|
|
1239
|
+
prettyPrint?: boolean;
|
|
1240
|
+
/** Required. The ID of the project against which to make the request. */
|
|
1241
|
+
projectId: string;
|
|
1242
|
+
/** 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. */
|
|
1243
|
+
quotaUser?: string;
|
|
1244
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1245
|
+
upload_protocol?: string;
|
|
1246
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1247
|
+
uploadType?: string;
|
|
1248
|
+
/** Request body */
|
|
1249
|
+
resource: LookupRequest;
|
|
1250
|
+
}): Request<LookupResponse>;
|
|
1251
|
+
lookup(request: {
|
|
1252
|
+
/** V1 error format. */
|
|
1253
|
+
"$.xgafv"?: string;
|
|
1254
|
+
/** OAuth access token. */
|
|
1255
|
+
access_token?: string;
|
|
1256
|
+
/** Data format for response. */
|
|
1257
|
+
alt?: string;
|
|
1258
|
+
/** JSONP */
|
|
1259
|
+
callback?: string;
|
|
1260
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1261
|
+
fields?: string;
|
|
1262
|
+
/** 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. */
|
|
1263
|
+
key?: string;
|
|
1264
|
+
/** OAuth 2.0 token for the current user. */
|
|
1265
|
+
oauth_token?: string;
|
|
1266
|
+
/** Returns response with indentations and line breaks. */
|
|
1267
|
+
prettyPrint?: boolean;
|
|
1268
|
+
/** Required. The ID of the project against which to make the request. */
|
|
1269
|
+
projectId: string;
|
|
1270
|
+
/** 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. */
|
|
1271
|
+
quotaUser?: string;
|
|
1272
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1273
|
+
upload_protocol?: string;
|
|
1274
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1275
|
+
uploadType?: string;
|
|
1276
|
+
},
|
|
1277
|
+
body: LookupRequest): Request<LookupResponse>;
|
|
1278
|
+
/** Prevents the supplied keys' IDs from being auto-allocated by Cloud Datastore. */
|
|
1279
|
+
reserveIds(request: {
|
|
1280
|
+
/** V1 error format. */
|
|
1281
|
+
"$.xgafv"?: string;
|
|
1282
|
+
/** OAuth access token. */
|
|
1283
|
+
access_token?: string;
|
|
1284
|
+
/** Data format for response. */
|
|
1285
|
+
alt?: string;
|
|
1286
|
+
/** JSONP */
|
|
1287
|
+
callback?: string;
|
|
1288
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1289
|
+
fields?: string;
|
|
1290
|
+
/** 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. */
|
|
1291
|
+
key?: string;
|
|
1292
|
+
/** OAuth 2.0 token for the current user. */
|
|
1293
|
+
oauth_token?: string;
|
|
1294
|
+
/** Returns response with indentations and line breaks. */
|
|
1295
|
+
prettyPrint?: boolean;
|
|
1296
|
+
/** Required. The ID of the project against which to make the request. */
|
|
1297
|
+
projectId: string;
|
|
1298
|
+
/** 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. */
|
|
1299
|
+
quotaUser?: string;
|
|
1300
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1301
|
+
upload_protocol?: string;
|
|
1302
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1303
|
+
uploadType?: string;
|
|
1304
|
+
/** Request body */
|
|
1305
|
+
resource: ReserveIdsRequest;
|
|
1306
|
+
}): Request<{}>;
|
|
1307
|
+
reserveIds(request: {
|
|
1308
|
+
/** V1 error format. */
|
|
1309
|
+
"$.xgafv"?: string;
|
|
1310
|
+
/** OAuth access token. */
|
|
1311
|
+
access_token?: string;
|
|
1312
|
+
/** Data format for response. */
|
|
1313
|
+
alt?: string;
|
|
1314
|
+
/** JSONP */
|
|
1315
|
+
callback?: string;
|
|
1316
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1317
|
+
fields?: string;
|
|
1318
|
+
/** 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. */
|
|
1319
|
+
key?: string;
|
|
1320
|
+
/** OAuth 2.0 token for the current user. */
|
|
1321
|
+
oauth_token?: string;
|
|
1322
|
+
/** Returns response with indentations and line breaks. */
|
|
1323
|
+
prettyPrint?: boolean;
|
|
1324
|
+
/** Required. The ID of the project against which to make the request. */
|
|
1325
|
+
projectId: string;
|
|
1326
|
+
/** 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. */
|
|
1327
|
+
quotaUser?: string;
|
|
1328
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1329
|
+
upload_protocol?: string;
|
|
1330
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1331
|
+
uploadType?: string;
|
|
1332
|
+
},
|
|
1333
|
+
body: ReserveIdsRequest): Request<{}>;
|
|
1334
|
+
/** Rolls back a transaction. */
|
|
1335
|
+
rollback(request: {
|
|
1336
|
+
/** V1 error format. */
|
|
1337
|
+
"$.xgafv"?: string;
|
|
1338
|
+
/** OAuth access token. */
|
|
1339
|
+
access_token?: string;
|
|
1340
|
+
/** Data format for response. */
|
|
1341
|
+
alt?: string;
|
|
1342
|
+
/** JSONP */
|
|
1343
|
+
callback?: string;
|
|
1344
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1345
|
+
fields?: string;
|
|
1346
|
+
/** 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. */
|
|
1347
|
+
key?: string;
|
|
1348
|
+
/** OAuth 2.0 token for the current user. */
|
|
1349
|
+
oauth_token?: string;
|
|
1350
|
+
/** Returns response with indentations and line breaks. */
|
|
1351
|
+
prettyPrint?: boolean;
|
|
1352
|
+
/** Required. The ID of the project against which to make the request. */
|
|
1353
|
+
projectId: string;
|
|
1354
|
+
/** 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. */
|
|
1355
|
+
quotaUser?: string;
|
|
1356
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1357
|
+
upload_protocol?: string;
|
|
1358
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1359
|
+
uploadType?: string;
|
|
1360
|
+
/** Request body */
|
|
1361
|
+
resource: RollbackRequest;
|
|
1362
|
+
}): Request<{}>;
|
|
1363
|
+
rollback(request: {
|
|
1364
|
+
/** V1 error format. */
|
|
1365
|
+
"$.xgafv"?: string;
|
|
1366
|
+
/** OAuth access token. */
|
|
1367
|
+
access_token?: string;
|
|
1368
|
+
/** Data format for response. */
|
|
1369
|
+
alt?: string;
|
|
1370
|
+
/** JSONP */
|
|
1371
|
+
callback?: string;
|
|
1372
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1373
|
+
fields?: string;
|
|
1374
|
+
/** 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. */
|
|
1375
|
+
key?: string;
|
|
1376
|
+
/** OAuth 2.0 token for the current user. */
|
|
1377
|
+
oauth_token?: string;
|
|
1378
|
+
/** Returns response with indentations and line breaks. */
|
|
1379
|
+
prettyPrint?: boolean;
|
|
1380
|
+
/** Required. The ID of the project against which to make the request. */
|
|
1381
|
+
projectId: string;
|
|
1382
|
+
/** 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. */
|
|
1383
|
+
quotaUser?: string;
|
|
1384
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1385
|
+
upload_protocol?: string;
|
|
1386
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1387
|
+
uploadType?: string;
|
|
1388
|
+
},
|
|
1389
|
+
body: RollbackRequest): Request<{}>;
|
|
1390
|
+
/** Queries for entities. */
|
|
1391
|
+
runQuery(request: {
|
|
1392
|
+
/** V1 error format. */
|
|
1393
|
+
"$.xgafv"?: string;
|
|
1394
|
+
/** OAuth access token. */
|
|
1395
|
+
access_token?: string;
|
|
1396
|
+
/** Data format for response. */
|
|
1397
|
+
alt?: string;
|
|
1398
|
+
/** JSONP */
|
|
1399
|
+
callback?: string;
|
|
1400
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1401
|
+
fields?: string;
|
|
1402
|
+
/** 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. */
|
|
1403
|
+
key?: string;
|
|
1404
|
+
/** OAuth 2.0 token for the current user. */
|
|
1405
|
+
oauth_token?: string;
|
|
1406
|
+
/** Returns response with indentations and line breaks. */
|
|
1407
|
+
prettyPrint?: boolean;
|
|
1408
|
+
/** Required. The ID of the project against which to make the request. */
|
|
1409
|
+
projectId: string;
|
|
1410
|
+
/** 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. */
|
|
1411
|
+
quotaUser?: string;
|
|
1412
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1413
|
+
upload_protocol?: string;
|
|
1414
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1415
|
+
uploadType?: string;
|
|
1416
|
+
/** Request body */
|
|
1417
|
+
resource: RunQueryRequest;
|
|
1418
|
+
}): Request<RunQueryResponse>;
|
|
1419
|
+
runQuery(request: {
|
|
1420
|
+
/** V1 error format. */
|
|
1421
|
+
"$.xgafv"?: string;
|
|
1422
|
+
/** OAuth access token. */
|
|
1423
|
+
access_token?: string;
|
|
1424
|
+
/** Data format for response. */
|
|
1425
|
+
alt?: string;
|
|
1426
|
+
/** JSONP */
|
|
1427
|
+
callback?: string;
|
|
1428
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1429
|
+
fields?: string;
|
|
1430
|
+
/** 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. */
|
|
1431
|
+
key?: string;
|
|
1432
|
+
/** OAuth 2.0 token for the current user. */
|
|
1433
|
+
oauth_token?: string;
|
|
1434
|
+
/** Returns response with indentations and line breaks. */
|
|
1435
|
+
prettyPrint?: boolean;
|
|
1436
|
+
/** Required. The ID of the project against which to make the request. */
|
|
1437
|
+
projectId: string;
|
|
1438
|
+
/** 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. */
|
|
1439
|
+
quotaUser?: string;
|
|
1440
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1441
|
+
upload_protocol?: string;
|
|
1442
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1443
|
+
uploadType?: string;
|
|
1444
|
+
},
|
|
1445
|
+
body: RunQueryRequest): Request<RunQueryResponse>;
|
|
1446
|
+
indexes: IndexesResource;
|
|
1447
|
+
operations: OperationsResource;
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
const projects: ProjectsResource;
|
|
1451
|
+
}
|
|
1452
|
+
}
|