@google-cloud/spanner 5.17.0 → 6.1.0
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/CHANGELOG.md +53 -0
- package/README.md +16 -0
- package/build/protos/google/spanner/admin/database/v1/backup.proto +174 -9
- package/build/protos/google/spanner/admin/database/v1/common.proto +1 -2
- package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +27 -2
- package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +22 -10
- package/build/protos/google/spanner/v1/commit_response.proto +1 -3
- package/build/protos/google/spanner/v1/keys.proto +1 -2
- package/build/protos/google/spanner/v1/mutation.proto +1 -2
- package/build/protos/google/spanner/v1/query_plan.proto +1 -2
- package/build/protos/google/spanner/v1/result_set.proto +1 -3
- package/build/protos/google/spanner/v1/spanner.proto +4 -1
- package/build/protos/google/spanner/v1/transaction.proto +73 -22
- package/build/protos/google/spanner/v1/type.proto +1 -2
- package/build/protos/protos.d.ts +883 -282
- package/build/protos/protos.js +2447 -880
- package/build/protos/protos.json +297 -87
- package/build/src/backup.d.ts +27 -5
- package/build/src/backup.js +62 -31
- package/build/src/batch-transaction.js +1 -1
- package/build/src/codec.d.ts +12 -1
- package/build/src/codec.js +44 -13
- package/build/src/common-grpc/service-object.js +1 -1
- package/build/src/common-grpc/service.js +2 -2
- package/build/src/database.d.ts +26 -6
- package/build/src/database.js +8 -8
- package/build/src/index.d.ts +18 -3
- package/build/src/index.js +26 -7
- package/build/src/instance.d.ts +41 -1
- package/build/src/instance.js +56 -2
- package/build/src/session-pool.d.ts +1 -0
- package/build/src/session-pool.js +46 -46
- package/build/src/session.js +1 -1
- package/build/src/table.d.ts +5 -1
- package/build/src/table.js +1 -1
- package/build/src/transaction-runner.js +3 -3
- package/build/src/transaction.d.ts +10 -2
- package/build/src/transaction.js +12 -12
- package/build/src/v1/database_admin_client.d.ts +267 -30
- package/build/src/v1/database_admin_client.js +148 -13
- package/build/src/v1/database_admin_client_config.json +5 -0
- package/build/src/v1/index.js +1 -0
- package/build/src/v1/instance_admin_client.d.ts +63 -18
- package/build/src/v1/instance_admin_client.js +42 -9
- package/build/src/v1/spanner_client.d.ts +70 -19
- package/build/src/v1/spanner_client.js +7 -8
- package/package.json +12 -12
|
@@ -40,7 +40,7 @@ export declare class DatabaseAdminClient {
|
|
|
40
40
|
*
|
|
41
41
|
* @param {object} [options] - The configuration object.
|
|
42
42
|
* The options accepted by the constructor are described in detail
|
|
43
|
-
* in [this document](https://github.com/googleapis/gax-nodejs/blob/
|
|
43
|
+
* in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
|
|
44
44
|
* The common options are:
|
|
45
45
|
* @param {object} [options.credentials] - Credentials object.
|
|
46
46
|
* @param {string} [options.credentials.client_email]
|
|
@@ -63,11 +63,10 @@ export declare class DatabaseAdminClient {
|
|
|
63
63
|
* API remote host.
|
|
64
64
|
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
|
|
65
65
|
* Follows the structure of {@link gapicConfig}.
|
|
66
|
-
* @param {boolean} [options.fallback] - Use HTTP fallback mode.
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* if you need to override this behavior.
|
|
66
|
+
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
|
|
67
|
+
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
|
|
68
|
+
* For more information, please check the
|
|
69
|
+
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
|
71
70
|
*/
|
|
72
71
|
constructor(opts?: ClientOptions);
|
|
73
72
|
/**
|
|
@@ -126,7 +125,11 @@ export declare class DatabaseAdminClient {
|
|
|
126
125
|
* @example <caption>include:samples/generated/v1/database_admin.get_database.js</caption>
|
|
127
126
|
* region_tag:spanner_v1_generated_DatabaseAdmin_GetDatabase_async
|
|
128
127
|
*/
|
|
129
|
-
getDatabase(request?: protos.google.spanner.admin.database.v1.IGetDatabaseRequest, options?: CallOptions): Promise<[
|
|
128
|
+
getDatabase(request?: protos.google.spanner.admin.database.v1.IGetDatabaseRequest, options?: CallOptions): Promise<[
|
|
129
|
+
protos.google.spanner.admin.database.v1.IDatabase,
|
|
130
|
+
protos.google.spanner.admin.database.v1.IGetDatabaseRequest | undefined,
|
|
131
|
+
{} | undefined
|
|
132
|
+
]>;
|
|
130
133
|
getDatabase(request: protos.google.spanner.admin.database.v1.IGetDatabaseRequest, options: CallOptions, callback: Callback<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.IGetDatabaseRequest | null | undefined, {} | null | undefined>): void;
|
|
131
134
|
getDatabase(request: protos.google.spanner.admin.database.v1.IGetDatabaseRequest, callback: Callback<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.IGetDatabaseRequest | null | undefined, {} | null | undefined>): void;
|
|
132
135
|
/**
|
|
@@ -150,7 +153,11 @@ export declare class DatabaseAdminClient {
|
|
|
150
153
|
* @example <caption>include:samples/generated/v1/database_admin.drop_database.js</caption>
|
|
151
154
|
* region_tag:spanner_v1_generated_DatabaseAdmin_DropDatabase_async
|
|
152
155
|
*/
|
|
153
|
-
dropDatabase(request?: protos.google.spanner.admin.database.v1.IDropDatabaseRequest, options?: CallOptions): Promise<[
|
|
156
|
+
dropDatabase(request?: protos.google.spanner.admin.database.v1.IDropDatabaseRequest, options?: CallOptions): Promise<[
|
|
157
|
+
protos.google.protobuf.IEmpty,
|
|
158
|
+
protos.google.spanner.admin.database.v1.IDropDatabaseRequest | undefined,
|
|
159
|
+
{} | undefined
|
|
160
|
+
]>;
|
|
154
161
|
dropDatabase(request: protos.google.spanner.admin.database.v1.IDropDatabaseRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IDropDatabaseRequest | null | undefined, {} | null | undefined>): void;
|
|
155
162
|
dropDatabase(request: protos.google.spanner.admin.database.v1.IDropDatabaseRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IDropDatabaseRequest | null | undefined, {} | null | undefined>): void;
|
|
156
163
|
/**
|
|
@@ -174,7 +181,11 @@ export declare class DatabaseAdminClient {
|
|
|
174
181
|
* @example <caption>include:samples/generated/v1/database_admin.get_database_ddl.js</caption>
|
|
175
182
|
* region_tag:spanner_v1_generated_DatabaseAdmin_GetDatabaseDdl_async
|
|
176
183
|
*/
|
|
177
|
-
getDatabaseDdl(request?: protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest, options?: CallOptions): Promise<[
|
|
184
|
+
getDatabaseDdl(request?: protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest, options?: CallOptions): Promise<[
|
|
185
|
+
protos.google.spanner.admin.database.v1.IGetDatabaseDdlResponse,
|
|
186
|
+
(protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest | undefined),
|
|
187
|
+
{} | undefined
|
|
188
|
+
]>;
|
|
178
189
|
getDatabaseDdl(request: protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest, options: CallOptions, callback: Callback<protos.google.spanner.admin.database.v1.IGetDatabaseDdlResponse, protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest | null | undefined, {} | null | undefined>): void;
|
|
179
190
|
getDatabaseDdl(request: protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest, callback: Callback<protos.google.spanner.admin.database.v1.IGetDatabaseDdlResponse, protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest | null | undefined, {} | null | undefined>): void;
|
|
180
191
|
/**
|
|
@@ -196,6 +207,12 @@ export declare class DatabaseAdminClient {
|
|
|
196
207
|
* the policy is limited to a few 10s of KB. An empty policy is a
|
|
197
208
|
* valid policy but certain Cloud Platform services (such as Projects)
|
|
198
209
|
* might reject them.
|
|
210
|
+
* @param {google.protobuf.FieldMask} request.updateMask
|
|
211
|
+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
|
212
|
+
* the fields in the mask will be modified. If no mask is provided, the
|
|
213
|
+
* following default mask is used:
|
|
214
|
+
*
|
|
215
|
+
* `paths: "bindings, etag"`
|
|
199
216
|
* @param {object} [options]
|
|
200
217
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
201
218
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -206,7 +223,11 @@ export declare class DatabaseAdminClient {
|
|
|
206
223
|
* @example <caption>include:samples/generated/v1/database_admin.set_iam_policy.js</caption>
|
|
207
224
|
* region_tag:spanner_v1_generated_DatabaseAdmin_SetIamPolicy_async
|
|
208
225
|
*/
|
|
209
|
-
setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
226
|
+
setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
227
|
+
protos.google.iam.v1.IPolicy,
|
|
228
|
+
protos.google.iam.v1.ISetIamPolicyRequest | undefined,
|
|
229
|
+
{} | undefined
|
|
230
|
+
]>;
|
|
210
231
|
setIamPolicy(request: protos.google.iam.v1.ISetIamPolicyRequest, options: CallOptions, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
211
232
|
setIamPolicy(request: protos.google.iam.v1.ISetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
212
233
|
/**
|
|
@@ -226,7 +247,7 @@ export declare class DatabaseAdminClient {
|
|
|
226
247
|
* See the operation documentation for the appropriate value for this field.
|
|
227
248
|
* @param {google.iam.v1.GetPolicyOptions} request.options
|
|
228
249
|
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
|
229
|
-
* `GetIamPolicy`.
|
|
250
|
+
* `GetIamPolicy`.
|
|
230
251
|
* @param {object} [options]
|
|
231
252
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
232
253
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -237,7 +258,11 @@ export declare class DatabaseAdminClient {
|
|
|
237
258
|
* @example <caption>include:samples/generated/v1/database_admin.get_iam_policy.js</caption>
|
|
238
259
|
* region_tag:spanner_v1_generated_DatabaseAdmin_GetIamPolicy_async
|
|
239
260
|
*/
|
|
240
|
-
getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
261
|
+
getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
262
|
+
protos.google.iam.v1.IPolicy,
|
|
263
|
+
protos.google.iam.v1.IGetIamPolicyRequest | undefined,
|
|
264
|
+
{} | undefined
|
|
265
|
+
]>;
|
|
241
266
|
getIamPolicy(request: protos.google.iam.v1.IGetIamPolicyRequest, options: CallOptions, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
242
267
|
getIamPolicy(request: protos.google.iam.v1.IGetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
243
268
|
/**
|
|
@@ -272,7 +297,11 @@ export declare class DatabaseAdminClient {
|
|
|
272
297
|
* @example <caption>include:samples/generated/v1/database_admin.test_iam_permissions.js</caption>
|
|
273
298
|
* region_tag:spanner_v1_generated_DatabaseAdmin_TestIamPermissions_async
|
|
274
299
|
*/
|
|
275
|
-
testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[
|
|
300
|
+
testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[
|
|
301
|
+
protos.google.iam.v1.ITestIamPermissionsResponse,
|
|
302
|
+
protos.google.iam.v1.ITestIamPermissionsRequest | undefined,
|
|
303
|
+
{} | undefined
|
|
304
|
+
]>;
|
|
276
305
|
testIamPermissions(request: protos.google.iam.v1.ITestIamPermissionsRequest, options: CallOptions, callback: Callback<protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, {} | null | undefined>): void;
|
|
277
306
|
testIamPermissions(request: protos.google.iam.v1.ITestIamPermissionsRequest, callback: Callback<protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, {} | null | undefined>): void;
|
|
278
307
|
/**
|
|
@@ -294,7 +323,11 @@ export declare class DatabaseAdminClient {
|
|
|
294
323
|
* @example <caption>include:samples/generated/v1/database_admin.get_backup.js</caption>
|
|
295
324
|
* region_tag:spanner_v1_generated_DatabaseAdmin_GetBackup_async
|
|
296
325
|
*/
|
|
297
|
-
getBackup(request?: protos.google.spanner.admin.database.v1.IGetBackupRequest, options?: CallOptions): Promise<[
|
|
326
|
+
getBackup(request?: protos.google.spanner.admin.database.v1.IGetBackupRequest, options?: CallOptions): Promise<[
|
|
327
|
+
protos.google.spanner.admin.database.v1.IBackup,
|
|
328
|
+
protos.google.spanner.admin.database.v1.IGetBackupRequest | undefined,
|
|
329
|
+
{} | undefined
|
|
330
|
+
]>;
|
|
298
331
|
getBackup(request: protos.google.spanner.admin.database.v1.IGetBackupRequest, options: CallOptions, callback: Callback<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.IGetBackupRequest | null | undefined, {} | null | undefined>): void;
|
|
299
332
|
getBackup(request: protos.google.spanner.admin.database.v1.IGetBackupRequest, callback: Callback<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.IGetBackupRequest | null | undefined, {} | null | undefined>): void;
|
|
300
333
|
/**
|
|
@@ -323,7 +356,11 @@ export declare class DatabaseAdminClient {
|
|
|
323
356
|
* @example <caption>include:samples/generated/v1/database_admin.update_backup.js</caption>
|
|
324
357
|
* region_tag:spanner_v1_generated_DatabaseAdmin_UpdateBackup_async
|
|
325
358
|
*/
|
|
326
|
-
updateBackup(request?: protos.google.spanner.admin.database.v1.IUpdateBackupRequest, options?: CallOptions): Promise<[
|
|
359
|
+
updateBackup(request?: protos.google.spanner.admin.database.v1.IUpdateBackupRequest, options?: CallOptions): Promise<[
|
|
360
|
+
protos.google.spanner.admin.database.v1.IBackup,
|
|
361
|
+
protos.google.spanner.admin.database.v1.IUpdateBackupRequest | undefined,
|
|
362
|
+
{} | undefined
|
|
363
|
+
]>;
|
|
327
364
|
updateBackup(request: protos.google.spanner.admin.database.v1.IUpdateBackupRequest, options: CallOptions, callback: Callback<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.IUpdateBackupRequest | null | undefined, {} | null | undefined>): void;
|
|
328
365
|
updateBackup(request: protos.google.spanner.admin.database.v1.IUpdateBackupRequest, callback: Callback<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.IUpdateBackupRequest | null | undefined, {} | null | undefined>): void;
|
|
329
366
|
/**
|
|
@@ -345,7 +382,11 @@ export declare class DatabaseAdminClient {
|
|
|
345
382
|
* @example <caption>include:samples/generated/v1/database_admin.delete_backup.js</caption>
|
|
346
383
|
* region_tag:spanner_v1_generated_DatabaseAdmin_DeleteBackup_async
|
|
347
384
|
*/
|
|
348
|
-
deleteBackup(request?: protos.google.spanner.admin.database.v1.IDeleteBackupRequest, options?: CallOptions): Promise<[
|
|
385
|
+
deleteBackup(request?: protos.google.spanner.admin.database.v1.IDeleteBackupRequest, options?: CallOptions): Promise<[
|
|
386
|
+
protos.google.protobuf.IEmpty,
|
|
387
|
+
protos.google.spanner.admin.database.v1.IDeleteBackupRequest | undefined,
|
|
388
|
+
{} | undefined
|
|
389
|
+
]>;
|
|
349
390
|
deleteBackup(request: protos.google.spanner.admin.database.v1.IDeleteBackupRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IDeleteBackupRequest | null | undefined, {} | null | undefined>): void;
|
|
350
391
|
deleteBackup(request: protos.google.spanner.admin.database.v1.IDeleteBackupRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IDeleteBackupRequest | null | undefined, {} | null | undefined>): void;
|
|
351
392
|
/**
|
|
@@ -392,7 +433,11 @@ export declare class DatabaseAdminClient {
|
|
|
392
433
|
* @example <caption>include:samples/generated/v1/database_admin.create_database.js</caption>
|
|
393
434
|
* region_tag:spanner_v1_generated_DatabaseAdmin_CreateDatabase_async
|
|
394
435
|
*/
|
|
395
|
-
createDatabase(request?: protos.google.spanner.admin.database.v1.ICreateDatabaseRequest, options?: CallOptions): Promise<[
|
|
436
|
+
createDatabase(request?: protos.google.spanner.admin.database.v1.ICreateDatabaseRequest, options?: CallOptions): Promise<[
|
|
437
|
+
LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.ICreateDatabaseMetadata>,
|
|
438
|
+
protos.google.longrunning.IOperation | undefined,
|
|
439
|
+
{} | undefined
|
|
440
|
+
]>;
|
|
396
441
|
createDatabase(request: protos.google.spanner.admin.database.v1.ICreateDatabaseRequest, options: CallOptions, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.ICreateDatabaseMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
397
442
|
createDatabase(request: protos.google.spanner.admin.database.v1.ICreateDatabaseRequest, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.ICreateDatabaseMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
398
443
|
/**
|
|
@@ -455,7 +500,11 @@ export declare class DatabaseAdminClient {
|
|
|
455
500
|
* @example <caption>include:samples/generated/v1/database_admin.update_database_ddl.js</caption>
|
|
456
501
|
* region_tag:spanner_v1_generated_DatabaseAdmin_UpdateDatabaseDdl_async
|
|
457
502
|
*/
|
|
458
|
-
updateDatabaseDdl(request?: protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlRequest, options?: CallOptions): Promise<[
|
|
503
|
+
updateDatabaseDdl(request?: protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlRequest, options?: CallOptions): Promise<[
|
|
504
|
+
LROperation<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlMetadata>,
|
|
505
|
+
protos.google.longrunning.IOperation | undefined,
|
|
506
|
+
{} | undefined
|
|
507
|
+
]>;
|
|
459
508
|
updateDatabaseDdl(request: protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
460
509
|
updateDatabaseDdl(request: protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
461
510
|
/**
|
|
@@ -518,7 +567,11 @@ export declare class DatabaseAdminClient {
|
|
|
518
567
|
* @example <caption>include:samples/generated/v1/database_admin.create_backup.js</caption>
|
|
519
568
|
* region_tag:spanner_v1_generated_DatabaseAdmin_CreateBackup_async
|
|
520
569
|
*/
|
|
521
|
-
createBackup(request?: protos.google.spanner.admin.database.v1.ICreateBackupRequest, options?: CallOptions): Promise<[
|
|
570
|
+
createBackup(request?: protos.google.spanner.admin.database.v1.ICreateBackupRequest, options?: CallOptions): Promise<[
|
|
571
|
+
LROperation<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.ICreateBackupMetadata>,
|
|
572
|
+
protos.google.longrunning.IOperation | undefined,
|
|
573
|
+
{} | undefined
|
|
574
|
+
]>;
|
|
522
575
|
createBackup(request: protos.google.spanner.admin.database.v1.ICreateBackupRequest, options: CallOptions, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.ICreateBackupMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
523
576
|
createBackup(request: protos.google.spanner.admin.database.v1.ICreateBackupRequest, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.ICreateBackupMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
524
577
|
/**
|
|
@@ -534,6 +587,80 @@ export declare class DatabaseAdminClient {
|
|
|
534
587
|
* region_tag:spanner_v1_generated_DatabaseAdmin_CreateBackup_async
|
|
535
588
|
*/
|
|
536
589
|
checkCreateBackupProgress(name: string): Promise<LROperation<protos.google.spanner.admin.database.v1.Backup, protos.google.spanner.admin.database.v1.CreateBackupMetadata>>;
|
|
590
|
+
/**
|
|
591
|
+
* Starts copying a Cloud Spanner Backup.
|
|
592
|
+
* The returned backup {@link google.longrunning.Operation|long-running operation}
|
|
593
|
+
* will have a name of the format
|
|
594
|
+
* `projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
|
|
595
|
+
* and can be used to track copying of the backup. The operation is associated
|
|
596
|
+
* with the destination backup.
|
|
597
|
+
* The {@link google.longrunning.Operation.metadata|metadata} field type is
|
|
598
|
+
* {@link google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}.
|
|
599
|
+
* The {@link google.longrunning.Operation.response|response} field type is
|
|
600
|
+
* {@link google.spanner.admin.database.v1.Backup|Backup}, if successful. Cancelling the returned operation will stop the
|
|
601
|
+
* copying and delete the backup.
|
|
602
|
+
* Concurrent CopyBackup requests can run on the same source backup.
|
|
603
|
+
*
|
|
604
|
+
* @param {Object} request
|
|
605
|
+
* The request object that will be sent.
|
|
606
|
+
* @param {string} request.parent
|
|
607
|
+
* Required. The name of the destination instance that will contain the backup copy.
|
|
608
|
+
* Values are of the form: `projects/<project>/instances/<instance>`.
|
|
609
|
+
* @param {string} request.backupId
|
|
610
|
+
* Required. The id of the backup copy.
|
|
611
|
+
* The `backup_id` appended to `parent` forms the full backup_uri of the form
|
|
612
|
+
* `projects/<project>/instances/<instance>/backups/<backup>`.
|
|
613
|
+
* @param {string} request.sourceBackup
|
|
614
|
+
* Required. The source backup to be copied.
|
|
615
|
+
* The source backup needs to be in READY state for it to be copied.
|
|
616
|
+
* Once CopyBackup is in progress, the source backup cannot be deleted or
|
|
617
|
+
* cleaned up on expiration until CopyBackup is finished.
|
|
618
|
+
* Values are of the form:
|
|
619
|
+
* `projects/<project>/instances/<instance>/backups/<backup>`.
|
|
620
|
+
* @param {google.protobuf.Timestamp} request.expireTime
|
|
621
|
+
* Required. The expiration time of the backup in microsecond granularity.
|
|
622
|
+
* The expiration time must be at least 6 hours and at most 366 days
|
|
623
|
+
* from the `create_time` of the source backup. Once the `expire_time` has
|
|
624
|
+
* passed, the backup is eligible to be automatically deleted by Cloud Spanner
|
|
625
|
+
* to free the resources used by the backup.
|
|
626
|
+
* @param {google.spanner.admin.database.v1.CopyBackupEncryptionConfig} [request.encryptionConfig]
|
|
627
|
+
* Optional. The encryption configuration used to encrypt the backup. If this field is
|
|
628
|
+
* not specified, the backup will use the same
|
|
629
|
+
* encryption configuration as the source backup by default, namely
|
|
630
|
+
* {@link google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type|encryption_type} =
|
|
631
|
+
* `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
|
|
632
|
+
* @param {object} [options]
|
|
633
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
634
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
635
|
+
* The first element of the array is an object representing
|
|
636
|
+
* a long running operation. Its `promise()` method returns a promise
|
|
637
|
+
* you can `await` for.
|
|
638
|
+
* Please see the
|
|
639
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
640
|
+
* for more details and examples.
|
|
641
|
+
* @example <caption>include:samples/generated/v1/database_admin.copy_backup.js</caption>
|
|
642
|
+
* region_tag:spanner_v1_generated_DatabaseAdmin_CopyBackup_async
|
|
643
|
+
*/
|
|
644
|
+
copyBackup(request?: protos.google.spanner.admin.database.v1.ICopyBackupRequest, options?: CallOptions): Promise<[
|
|
645
|
+
LROperation<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.ICopyBackupMetadata>,
|
|
646
|
+
protos.google.longrunning.IOperation | undefined,
|
|
647
|
+
{} | undefined
|
|
648
|
+
]>;
|
|
649
|
+
copyBackup(request: protos.google.spanner.admin.database.v1.ICopyBackupRequest, options: CallOptions, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.ICopyBackupMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
650
|
+
copyBackup(request: protos.google.spanner.admin.database.v1.ICopyBackupRequest, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.ICopyBackupMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
651
|
+
/**
|
|
652
|
+
* Check the status of the long running operation returned by `copyBackup()`.
|
|
653
|
+
* @param {String} name
|
|
654
|
+
* The operation name that will be passed.
|
|
655
|
+
* @returns {Promise} - The promise which resolves to an object.
|
|
656
|
+
* The decoded operation object has result and metadata field to get information from.
|
|
657
|
+
* Please see the
|
|
658
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
659
|
+
* for more details and examples.
|
|
660
|
+
* @example <caption>include:samples/generated/v1/database_admin.copy_backup.js</caption>
|
|
661
|
+
* region_tag:spanner_v1_generated_DatabaseAdmin_CopyBackup_async
|
|
662
|
+
*/
|
|
663
|
+
checkCopyBackupProgress(name: string): Promise<LROperation<protos.google.spanner.admin.database.v1.Backup, protos.google.spanner.admin.database.v1.CopyBackupMetadata>>;
|
|
537
664
|
/**
|
|
538
665
|
* Create a new database by restoring from a completed backup. The new
|
|
539
666
|
* database must be in the same project and in an instance with the same
|
|
@@ -588,7 +715,11 @@ export declare class DatabaseAdminClient {
|
|
|
588
715
|
* @example <caption>include:samples/generated/v1/database_admin.restore_database.js</caption>
|
|
589
716
|
* region_tag:spanner_v1_generated_DatabaseAdmin_RestoreDatabase_async
|
|
590
717
|
*/
|
|
591
|
-
restoreDatabase(request?: protos.google.spanner.admin.database.v1.IRestoreDatabaseRequest, options?: CallOptions): Promise<[
|
|
718
|
+
restoreDatabase(request?: protos.google.spanner.admin.database.v1.IRestoreDatabaseRequest, options?: CallOptions): Promise<[
|
|
719
|
+
LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.IRestoreDatabaseMetadata>,
|
|
720
|
+
protos.google.longrunning.IOperation | undefined,
|
|
721
|
+
{} | undefined
|
|
722
|
+
]>;
|
|
592
723
|
restoreDatabase(request: protos.google.spanner.admin.database.v1.IRestoreDatabaseRequest, options: CallOptions, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.IRestoreDatabaseMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
593
724
|
restoreDatabase(request: protos.google.spanner.admin.database.v1.IRestoreDatabaseRequest, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.IRestoreDatabaseMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
594
725
|
/**
|
|
@@ -632,7 +763,11 @@ export declare class DatabaseAdminClient {
|
|
|
632
763
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
633
764
|
* for more details and examples.
|
|
634
765
|
*/
|
|
635
|
-
listDatabases(request?: protos.google.spanner.admin.database.v1.IListDatabasesRequest, options?: CallOptions): Promise<[
|
|
766
|
+
listDatabases(request?: protos.google.spanner.admin.database.v1.IListDatabasesRequest, options?: CallOptions): Promise<[
|
|
767
|
+
protos.google.spanner.admin.database.v1.IDatabase[],
|
|
768
|
+
protos.google.spanner.admin.database.v1.IListDatabasesRequest | null,
|
|
769
|
+
protos.google.spanner.admin.database.v1.IListDatabasesResponse
|
|
770
|
+
]>;
|
|
636
771
|
listDatabases(request: protos.google.spanner.admin.database.v1.IListDatabasesRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListDatabasesRequest, protos.google.spanner.admin.database.v1.IListDatabasesResponse | null | undefined, protos.google.spanner.admin.database.v1.IDatabase>): void;
|
|
637
772
|
listDatabases(request: protos.google.spanner.admin.database.v1.IListDatabasesRequest, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListDatabasesRequest, protos.google.spanner.admin.database.v1.IListDatabasesResponse | null | undefined, protos.google.spanner.admin.database.v1.IDatabase>): void;
|
|
638
773
|
/**
|
|
@@ -759,7 +894,11 @@ export declare class DatabaseAdminClient {
|
|
|
759
894
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
760
895
|
* for more details and examples.
|
|
761
896
|
*/
|
|
762
|
-
listBackups(request?: protos.google.spanner.admin.database.v1.IListBackupsRequest, options?: CallOptions): Promise<[
|
|
897
|
+
listBackups(request?: protos.google.spanner.admin.database.v1.IListBackupsRequest, options?: CallOptions): Promise<[
|
|
898
|
+
protos.google.spanner.admin.database.v1.IBackup[],
|
|
899
|
+
protos.google.spanner.admin.database.v1.IListBackupsRequest | null,
|
|
900
|
+
protos.google.spanner.admin.database.v1.IListBackupsResponse
|
|
901
|
+
]>;
|
|
763
902
|
listBackups(request: protos.google.spanner.admin.database.v1.IListBackupsRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListBackupsRequest, protos.google.spanner.admin.database.v1.IListBackupsResponse | null | undefined, protos.google.spanner.admin.database.v1.IBackup>): void;
|
|
764
903
|
listBackups(request: protos.google.spanner.admin.database.v1.IListBackupsRequest, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListBackupsRequest, protos.google.spanner.admin.database.v1.IListBackupsResponse | null | undefined, protos.google.spanner.admin.database.v1.IBackup>): void;
|
|
765
904
|
/**
|
|
@@ -926,6 +1065,8 @@ export declare class DatabaseAdminClient {
|
|
|
926
1065
|
* for {@link google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata} is
|
|
927
1066
|
* `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
|
|
928
1067
|
* * `metadata.<field_name>` - any field in metadata.value.
|
|
1068
|
+
* `metadata.@type` must be specified first, if filtering on metadata
|
|
1069
|
+
* fields.
|
|
929
1070
|
* * `error` - Error associated with the long-running operation.
|
|
930
1071
|
* * `response.@type` - the type of response.
|
|
931
1072
|
* * `response.<field_name>` - any field in response.value.
|
|
@@ -970,7 +1111,11 @@ export declare class DatabaseAdminClient {
|
|
|
970
1111
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
971
1112
|
* for more details and examples.
|
|
972
1113
|
*/
|
|
973
|
-
listDatabaseOperations(request?: protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest, options?: CallOptions): Promise<[
|
|
1114
|
+
listDatabaseOperations(request?: protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest, options?: CallOptions): Promise<[
|
|
1115
|
+
protos.google.longrunning.IOperation[],
|
|
1116
|
+
protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest | null,
|
|
1117
|
+
protos.google.spanner.admin.database.v1.IListDatabaseOperationsResponse
|
|
1118
|
+
]>;
|
|
974
1119
|
listDatabaseOperations(request: protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest, protos.google.spanner.admin.database.v1.IListDatabaseOperationsResponse | null | undefined, protos.google.longrunning.IOperation>): void;
|
|
975
1120
|
listDatabaseOperations(request: protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest, protos.google.spanner.admin.database.v1.IListDatabaseOperationsResponse | null | undefined, protos.google.longrunning.IOperation>): void;
|
|
976
1121
|
/**
|
|
@@ -998,6 +1143,8 @@ export declare class DatabaseAdminClient {
|
|
|
998
1143
|
* for {@link google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata} is
|
|
999
1144
|
* `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
|
|
1000
1145
|
* * `metadata.<field_name>` - any field in metadata.value.
|
|
1146
|
+
* `metadata.@type` must be specified first, if filtering on metadata
|
|
1147
|
+
* fields.
|
|
1001
1148
|
* * `error` - Error associated with the long-running operation.
|
|
1002
1149
|
* * `response.@type` - the type of response.
|
|
1003
1150
|
* * `response.<field_name>` - any field in response.value.
|
|
@@ -1069,6 +1216,8 @@ export declare class DatabaseAdminClient {
|
|
|
1069
1216
|
* for {@link google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata} is
|
|
1070
1217
|
* `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
|
|
1071
1218
|
* * `metadata.<field_name>` - any field in metadata.value.
|
|
1219
|
+
* `metadata.@type` must be specified first, if filtering on metadata
|
|
1220
|
+
* fields.
|
|
1072
1221
|
* * `error` - Error associated with the long-running operation.
|
|
1073
1222
|
* * `response.@type` - the type of response.
|
|
1074
1223
|
* * `response.<field_name>` - any field in response.value.
|
|
@@ -1149,6 +1298,8 @@ export declare class DatabaseAdminClient {
|
|
|
1149
1298
|
* for {@link google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata} is
|
|
1150
1299
|
* `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
|
|
1151
1300
|
* * `metadata.<field_name>` - any field in metadata.value.
|
|
1301
|
+
* `metadata.@type` must be specified first if filtering on metadata
|
|
1302
|
+
* fields.
|
|
1152
1303
|
* * `error` - Error associated with the long-running operation.
|
|
1153
1304
|
* * `response.@type` - the type of response.
|
|
1154
1305
|
* * `response.<field_name>` - any field in response.value.
|
|
@@ -1160,8 +1311,11 @@ export declare class DatabaseAdminClient {
|
|
|
1160
1311
|
* Here are a few examples:
|
|
1161
1312
|
*
|
|
1162
1313
|
* * `done:true` - The operation is complete.
|
|
1163
|
-
* * `metadata.database
|
|
1164
|
-
*
|
|
1314
|
+
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
|
|
1315
|
+
* `metadata.database:prod` - Returns operations where:
|
|
1316
|
+
* * The operation's metadata type is {@link google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
|
|
1317
|
+
* * The database the backup was taken from has a name containing the
|
|
1318
|
+
* string "prod".
|
|
1165
1319
|
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
|
|
1166
1320
|
* `(metadata.name:howl) AND` \
|
|
1167
1321
|
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
|
|
@@ -1170,6 +1324,29 @@ export declare class DatabaseAdminClient {
|
|
|
1170
1324
|
* * The backup name contains the string "howl".
|
|
1171
1325
|
* * The operation started before 2018-03-28T14:50:00Z.
|
|
1172
1326
|
* * The operation resulted in an error.
|
|
1327
|
+
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CopyBackupMetadata) AND` \
|
|
1328
|
+
* `(metadata.source_backup:test) AND` \
|
|
1329
|
+
* `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \
|
|
1330
|
+
* `(error:*)` - Returns operations where:
|
|
1331
|
+
* * The operation's metadata type is {@link google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}.
|
|
1332
|
+
* * The source backup of the copied backup name contains the string
|
|
1333
|
+
* "test".
|
|
1334
|
+
* * The operation started before 2022-01-18T14:50:00Z.
|
|
1335
|
+
* * The operation resulted in an error.
|
|
1336
|
+
* * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
|
|
1337
|
+
* `(metadata.database:test_db)) OR` \
|
|
1338
|
+
* `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CopyBackupMetadata)
|
|
1339
|
+
* AND` \
|
|
1340
|
+
* `(metadata.source_backup:test_bkp)) AND` \
|
|
1341
|
+
* `(error:*)` - Returns operations where:
|
|
1342
|
+
* * The operation's metadata matches either of criteria:
|
|
1343
|
+
* * The operation's metadata type is {@link google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata} AND the
|
|
1344
|
+
* database the backup was taken from has name containing string
|
|
1345
|
+
* "test_db"
|
|
1346
|
+
* * The operation's metadata type is {@link google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata} AND the
|
|
1347
|
+
* backup the backup was copied from has name containing string
|
|
1348
|
+
* "test_bkp"
|
|
1349
|
+
* * The operation resulted in an error.
|
|
1173
1350
|
* @param {number} request.pageSize
|
|
1174
1351
|
* Number of operations to be returned in the response. If 0 or
|
|
1175
1352
|
* less, defaults to the server's maximum allowed page size.
|
|
@@ -1191,7 +1368,11 @@ export declare class DatabaseAdminClient {
|
|
|
1191
1368
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1192
1369
|
* for more details and examples.
|
|
1193
1370
|
*/
|
|
1194
|
-
listBackupOperations(request?: protos.google.spanner.admin.database.v1.IListBackupOperationsRequest, options?: CallOptions): Promise<[
|
|
1371
|
+
listBackupOperations(request?: protos.google.spanner.admin.database.v1.IListBackupOperationsRequest, options?: CallOptions): Promise<[
|
|
1372
|
+
protos.google.longrunning.IOperation[],
|
|
1373
|
+
protos.google.spanner.admin.database.v1.IListBackupOperationsRequest | null,
|
|
1374
|
+
protos.google.spanner.admin.database.v1.IListBackupOperationsResponse
|
|
1375
|
+
]>;
|
|
1195
1376
|
listBackupOperations(request: protos.google.spanner.admin.database.v1.IListBackupOperationsRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListBackupOperationsRequest, protos.google.spanner.admin.database.v1.IListBackupOperationsResponse | null | undefined, protos.google.longrunning.IOperation>): void;
|
|
1196
1377
|
listBackupOperations(request: protos.google.spanner.admin.database.v1.IListBackupOperationsRequest, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListBackupOperationsRequest, protos.google.spanner.admin.database.v1.IListBackupOperationsResponse | null | undefined, protos.google.longrunning.IOperation>): void;
|
|
1197
1378
|
/**
|
|
@@ -1219,6 +1400,8 @@ export declare class DatabaseAdminClient {
|
|
|
1219
1400
|
* for {@link google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata} is
|
|
1220
1401
|
* `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
|
|
1221
1402
|
* * `metadata.<field_name>` - any field in metadata.value.
|
|
1403
|
+
* `metadata.@type` must be specified first if filtering on metadata
|
|
1404
|
+
* fields.
|
|
1222
1405
|
* * `error` - Error associated with the long-running operation.
|
|
1223
1406
|
* * `response.@type` - the type of response.
|
|
1224
1407
|
* * `response.<field_name>` - any field in response.value.
|
|
@@ -1230,8 +1413,11 @@ export declare class DatabaseAdminClient {
|
|
|
1230
1413
|
* Here are a few examples:
|
|
1231
1414
|
*
|
|
1232
1415
|
* * `done:true` - The operation is complete.
|
|
1233
|
-
* * `metadata.database
|
|
1234
|
-
*
|
|
1416
|
+
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
|
|
1417
|
+
* `metadata.database:prod` - Returns operations where:
|
|
1418
|
+
* * The operation's metadata type is {@link google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
|
|
1419
|
+
* * The database the backup was taken from has a name containing the
|
|
1420
|
+
* string "prod".
|
|
1235
1421
|
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
|
|
1236
1422
|
* `(metadata.name:howl) AND` \
|
|
1237
1423
|
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
|
|
@@ -1240,6 +1426,29 @@ export declare class DatabaseAdminClient {
|
|
|
1240
1426
|
* * The backup name contains the string "howl".
|
|
1241
1427
|
* * The operation started before 2018-03-28T14:50:00Z.
|
|
1242
1428
|
* * The operation resulted in an error.
|
|
1429
|
+
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CopyBackupMetadata) AND` \
|
|
1430
|
+
* `(metadata.source_backup:test) AND` \
|
|
1431
|
+
* `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \
|
|
1432
|
+
* `(error:*)` - Returns operations where:
|
|
1433
|
+
* * The operation's metadata type is {@link google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}.
|
|
1434
|
+
* * The source backup of the copied backup name contains the string
|
|
1435
|
+
* "test".
|
|
1436
|
+
* * The operation started before 2022-01-18T14:50:00Z.
|
|
1437
|
+
* * The operation resulted in an error.
|
|
1438
|
+
* * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
|
|
1439
|
+
* `(metadata.database:test_db)) OR` \
|
|
1440
|
+
* `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CopyBackupMetadata)
|
|
1441
|
+
* AND` \
|
|
1442
|
+
* `(metadata.source_backup:test_bkp)) AND` \
|
|
1443
|
+
* `(error:*)` - Returns operations where:
|
|
1444
|
+
* * The operation's metadata matches either of criteria:
|
|
1445
|
+
* * The operation's metadata type is {@link google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata} AND the
|
|
1446
|
+
* database the backup was taken from has name containing string
|
|
1447
|
+
* "test_db"
|
|
1448
|
+
* * The operation's metadata type is {@link google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata} AND the
|
|
1449
|
+
* backup the backup was copied from has name containing string
|
|
1450
|
+
* "test_bkp"
|
|
1451
|
+
* * The operation resulted in an error.
|
|
1243
1452
|
* @param {number} request.pageSize
|
|
1244
1453
|
* Number of operations to be returned in the response. If 0 or
|
|
1245
1454
|
* less, defaults to the server's maximum allowed page size.
|
|
@@ -1288,6 +1497,8 @@ export declare class DatabaseAdminClient {
|
|
|
1288
1497
|
* for {@link google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata} is
|
|
1289
1498
|
* `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
|
|
1290
1499
|
* * `metadata.<field_name>` - any field in metadata.value.
|
|
1500
|
+
* `metadata.@type` must be specified first if filtering on metadata
|
|
1501
|
+
* fields.
|
|
1291
1502
|
* * `error` - Error associated with the long-running operation.
|
|
1292
1503
|
* * `response.@type` - the type of response.
|
|
1293
1504
|
* * `response.<field_name>` - any field in response.value.
|
|
@@ -1299,8 +1510,11 @@ export declare class DatabaseAdminClient {
|
|
|
1299
1510
|
* Here are a few examples:
|
|
1300
1511
|
*
|
|
1301
1512
|
* * `done:true` - The operation is complete.
|
|
1302
|
-
* * `metadata.database
|
|
1303
|
-
*
|
|
1513
|
+
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
|
|
1514
|
+
* `metadata.database:prod` - Returns operations where:
|
|
1515
|
+
* * The operation's metadata type is {@link google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
|
|
1516
|
+
* * The database the backup was taken from has a name containing the
|
|
1517
|
+
* string "prod".
|
|
1304
1518
|
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
|
|
1305
1519
|
* `(metadata.name:howl) AND` \
|
|
1306
1520
|
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
|
|
@@ -1309,6 +1523,29 @@ export declare class DatabaseAdminClient {
|
|
|
1309
1523
|
* * The backup name contains the string "howl".
|
|
1310
1524
|
* * The operation started before 2018-03-28T14:50:00Z.
|
|
1311
1525
|
* * The operation resulted in an error.
|
|
1526
|
+
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CopyBackupMetadata) AND` \
|
|
1527
|
+
* `(metadata.source_backup:test) AND` \
|
|
1528
|
+
* `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \
|
|
1529
|
+
* `(error:*)` - Returns operations where:
|
|
1530
|
+
* * The operation's metadata type is {@link google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}.
|
|
1531
|
+
* * The source backup of the copied backup name contains the string
|
|
1532
|
+
* "test".
|
|
1533
|
+
* * The operation started before 2022-01-18T14:50:00Z.
|
|
1534
|
+
* * The operation resulted in an error.
|
|
1535
|
+
* * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
|
|
1536
|
+
* `(metadata.database:test_db)) OR` \
|
|
1537
|
+
* `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CopyBackupMetadata)
|
|
1538
|
+
* AND` \
|
|
1539
|
+
* `(metadata.source_backup:test_bkp)) AND` \
|
|
1540
|
+
* `(error:*)` - Returns operations where:
|
|
1541
|
+
* * The operation's metadata matches either of criteria:
|
|
1542
|
+
* * The operation's metadata type is {@link google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata} AND the
|
|
1543
|
+
* database the backup was taken from has name containing string
|
|
1544
|
+
* "test_db"
|
|
1545
|
+
* * The operation's metadata type is {@link google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata} AND the
|
|
1546
|
+
* backup the backup was copied from has name containing string
|
|
1547
|
+
* "test_bkp"
|
|
1548
|
+
* * The operation resulted in an error.
|
|
1312
1549
|
* @param {number} request.pageSize
|
|
1313
1550
|
* Number of operations to be returned in the response. If 0 or
|
|
1314
1551
|
* less, defaults to the server's maximum allowed page size.
|