@google-cloud/spanner 5.16.3 → 6.0.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.
Files changed (47) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/README.md +28 -12
  3. package/build/protos/google/spanner/admin/database/v1/backup.proto +177 -9
  4. package/build/protos/google/spanner/admin/database/v1/common.proto +14 -2
  5. package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +40 -5
  6. package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +8 -5
  7. package/build/protos/google/spanner/v1/commit_response.proto +2 -4
  8. package/build/protos/google/spanner/v1/keys.proto +0 -1
  9. package/build/protos/google/spanner/v1/mutation.proto +5 -5
  10. package/build/protos/google/spanner/v1/query_plan.proto +18 -19
  11. package/build/protos/google/spanner/v1/result_set.proto +1 -1
  12. package/build/protos/google/spanner/v1/spanner.proto +21 -19
  13. package/build/protos/google/spanner/v1/transaction.proto +19 -32
  14. package/build/protos/google/spanner/v1/type.proto +33 -7
  15. package/build/protos/protos.d.ts +684 -64
  16. package/build/protos/protos.js +1760 -84
  17. package/build/protos/protos.json +273 -21
  18. package/build/src/backup.d.ts +27 -5
  19. package/build/src/backup.js +62 -31
  20. package/build/src/batch-transaction.js +1 -1
  21. package/build/src/codec.d.ts +11 -0
  22. package/build/src/codec.js +39 -2
  23. package/build/src/common-grpc/service-object.js +1 -1
  24. package/build/src/common-grpc/service.js +2 -2
  25. package/build/src/database.d.ts +26 -6
  26. package/build/src/database.js +8 -8
  27. package/build/src/index.d.ts +18 -3
  28. package/build/src/index.js +26 -7
  29. package/build/src/instance.d.ts +42 -2
  30. package/build/src/instance.js +56 -2
  31. package/build/src/session-pool.d.ts +1 -0
  32. package/build/src/session-pool.js +46 -46
  33. package/build/src/session.js +1 -1
  34. package/build/src/table.d.ts +5 -1
  35. package/build/src/table.js +1 -1
  36. package/build/src/transaction-runner.js +3 -3
  37. package/build/src/transaction.d.ts +10 -2
  38. package/build/src/transaction.js +12 -12
  39. package/build/src/v1/database_admin_client.d.ts +271 -28
  40. package/build/src/v1/database_admin_client.js +113 -11
  41. package/build/src/v1/database_admin_client_config.json +5 -0
  42. package/build/src/v1/index.js +1 -0
  43. package/build/src/v1/instance_admin_client.d.ts +57 -11
  44. package/build/src/v1/instance_admin_client.js +2 -3
  45. package/build/src/v1/spanner_client.d.ts +66 -44
  46. package/build/src/v1/spanner_client.js +13 -11
  47. package/package.json +11 -11
@@ -6,10 +6,11 @@ import * as protos from '../../protos/protos';
6
6
  /**
7
7
  * Cloud Spanner Database Admin API
8
8
  *
9
- * The Cloud Spanner Database Admin API can be used to create, drop, and
10
- * list databases. It also enables updating the schema of pre-existing
11
- * databases. It can be also used to create, delete and list backups for a
12
- * database and to restore from an existing backup.
9
+ * The Cloud Spanner Database Admin API can be used to:
10
+ * * create, drop, and list databases
11
+ * * update the schema of pre-existing databases
12
+ * * create, delete and list backups for a database
13
+ * * restore a database from an existing backup
13
14
  * @class
14
15
  * @memberof v1
15
16
  */
@@ -125,13 +126,19 @@ export declare class DatabaseAdminClient {
125
126
  * @example <caption>include:samples/generated/v1/database_admin.get_database.js</caption>
126
127
  * region_tag:spanner_v1_generated_DatabaseAdmin_GetDatabase_async
127
128
  */
128
- getDatabase(request?: protos.google.spanner.admin.database.v1.IGetDatabaseRequest, options?: CallOptions): Promise<[protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.IGetDatabaseRequest | undefined, {} | undefined]>;
129
+ getDatabase(request?: protos.google.spanner.admin.database.v1.IGetDatabaseRequest, options?: CallOptions): Promise<[
130
+ protos.google.spanner.admin.database.v1.IDatabase,
131
+ protos.google.spanner.admin.database.v1.IGetDatabaseRequest | undefined,
132
+ {} | undefined
133
+ ]>;
129
134
  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;
130
135
  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;
131
136
  /**
132
137
  * Drops (aka deletes) a Cloud Spanner database.
133
138
  * Completed backups for the database will be retained according to their
134
139
  * `expire_time`.
140
+ * Note: Cloud Spanner might continue to accept requests for a few seconds
141
+ * after the database has been deleted.
135
142
  *
136
143
  * @param {Object} request
137
144
  * The request object that will be sent.
@@ -147,7 +154,11 @@ export declare class DatabaseAdminClient {
147
154
  * @example <caption>include:samples/generated/v1/database_admin.drop_database.js</caption>
148
155
  * region_tag:spanner_v1_generated_DatabaseAdmin_DropDatabase_async
149
156
  */
150
- dropDatabase(request?: protos.google.spanner.admin.database.v1.IDropDatabaseRequest, options?: CallOptions): Promise<[protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IDropDatabaseRequest | undefined, {} | undefined]>;
157
+ dropDatabase(request?: protos.google.spanner.admin.database.v1.IDropDatabaseRequest, options?: CallOptions): Promise<[
158
+ protos.google.protobuf.IEmpty,
159
+ protos.google.spanner.admin.database.v1.IDropDatabaseRequest | undefined,
160
+ {} | undefined
161
+ ]>;
151
162
  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;
152
163
  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;
153
164
  /**
@@ -171,7 +182,11 @@ export declare class DatabaseAdminClient {
171
182
  * @example <caption>include:samples/generated/v1/database_admin.get_database_ddl.js</caption>
172
183
  * region_tag:spanner_v1_generated_DatabaseAdmin_GetDatabaseDdl_async
173
184
  */
174
- getDatabaseDdl(request?: protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest, options?: CallOptions): Promise<[protos.google.spanner.admin.database.v1.IGetDatabaseDdlResponse, (protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest | undefined), {} | undefined]>;
185
+ getDatabaseDdl(request?: protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest, options?: CallOptions): Promise<[
186
+ protos.google.spanner.admin.database.v1.IGetDatabaseDdlResponse,
187
+ (protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest | undefined),
188
+ {} | undefined
189
+ ]>;
175
190
  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;
176
191
  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;
177
192
  /**
@@ -193,6 +208,12 @@ export declare class DatabaseAdminClient {
193
208
  * the policy is limited to a few 10s of KB. An empty policy is a
194
209
  * valid policy but certain Cloud Platform services (such as Projects)
195
210
  * might reject them.
211
+ * @param {google.protobuf.FieldMask} request.updateMask
212
+ * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
213
+ * the fields in the mask will be modified. If no mask is provided, the
214
+ * following default mask is used:
215
+ *
216
+ * `paths: "bindings, etag"`
196
217
  * @param {object} [options]
197
218
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
198
219
  * @returns {Promise} - The promise which resolves to an array.
@@ -203,7 +224,11 @@ export declare class DatabaseAdminClient {
203
224
  * @example <caption>include:samples/generated/v1/database_admin.set_iam_policy.js</caption>
204
225
  * region_tag:spanner_v1_generated_DatabaseAdmin_SetIamPolicy_async
205
226
  */
206
- setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | undefined, {} | undefined]>;
227
+ setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[
228
+ protos.google.iam.v1.IPolicy,
229
+ protos.google.iam.v1.ISetIamPolicyRequest | undefined,
230
+ {} | undefined
231
+ ]>;
207
232
  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;
208
233
  setIamPolicy(request: protos.google.iam.v1.ISetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
209
234
  /**
@@ -223,7 +248,7 @@ export declare class DatabaseAdminClient {
223
248
  * See the operation documentation for the appropriate value for this field.
224
249
  * @param {google.iam.v1.GetPolicyOptions} request.options
225
250
  * OPTIONAL: A `GetPolicyOptions` object for specifying options to
226
- * `GetIamPolicy`. This field is only used by Cloud IAM.
251
+ * `GetIamPolicy`.
227
252
  * @param {object} [options]
228
253
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
229
254
  * @returns {Promise} - The promise which resolves to an array.
@@ -234,7 +259,11 @@ export declare class DatabaseAdminClient {
234
259
  * @example <caption>include:samples/generated/v1/database_admin.get_iam_policy.js</caption>
235
260
  * region_tag:spanner_v1_generated_DatabaseAdmin_GetIamPolicy_async
236
261
  */
237
- getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | undefined, {} | undefined]>;
262
+ getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[
263
+ protos.google.iam.v1.IPolicy,
264
+ protos.google.iam.v1.IGetIamPolicyRequest | undefined,
265
+ {} | undefined
266
+ ]>;
238
267
  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;
239
268
  getIamPolicy(request: protos.google.iam.v1.IGetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
240
269
  /**
@@ -269,7 +298,11 @@ export declare class DatabaseAdminClient {
269
298
  * @example <caption>include:samples/generated/v1/database_admin.test_iam_permissions.js</caption>
270
299
  * region_tag:spanner_v1_generated_DatabaseAdmin_TestIamPermissions_async
271
300
  */
272
- testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | undefined, {} | undefined]>;
301
+ testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[
302
+ protos.google.iam.v1.ITestIamPermissionsResponse,
303
+ protos.google.iam.v1.ITestIamPermissionsRequest | undefined,
304
+ {} | undefined
305
+ ]>;
273
306
  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;
274
307
  testIamPermissions(request: protos.google.iam.v1.ITestIamPermissionsRequest, callback: Callback<protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, {} | null | undefined>): void;
275
308
  /**
@@ -291,7 +324,11 @@ export declare class DatabaseAdminClient {
291
324
  * @example <caption>include:samples/generated/v1/database_admin.get_backup.js</caption>
292
325
  * region_tag:spanner_v1_generated_DatabaseAdmin_GetBackup_async
293
326
  */
294
- getBackup(request?: protos.google.spanner.admin.database.v1.IGetBackupRequest, options?: CallOptions): Promise<[protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.IGetBackupRequest | undefined, {} | undefined]>;
327
+ getBackup(request?: protos.google.spanner.admin.database.v1.IGetBackupRequest, options?: CallOptions): Promise<[
328
+ protos.google.spanner.admin.database.v1.IBackup,
329
+ protos.google.spanner.admin.database.v1.IGetBackupRequest | undefined,
330
+ {} | undefined
331
+ ]>;
295
332
  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;
296
333
  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;
297
334
  /**
@@ -320,7 +357,11 @@ export declare class DatabaseAdminClient {
320
357
  * @example <caption>include:samples/generated/v1/database_admin.update_backup.js</caption>
321
358
  * region_tag:spanner_v1_generated_DatabaseAdmin_UpdateBackup_async
322
359
  */
323
- updateBackup(request?: protos.google.spanner.admin.database.v1.IUpdateBackupRequest, options?: CallOptions): Promise<[protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.IUpdateBackupRequest | undefined, {} | undefined]>;
360
+ updateBackup(request?: protos.google.spanner.admin.database.v1.IUpdateBackupRequest, options?: CallOptions): Promise<[
361
+ protos.google.spanner.admin.database.v1.IBackup,
362
+ protos.google.spanner.admin.database.v1.IUpdateBackupRequest | undefined,
363
+ {} | undefined
364
+ ]>;
324
365
  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;
325
366
  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;
326
367
  /**
@@ -342,7 +383,11 @@ export declare class DatabaseAdminClient {
342
383
  * @example <caption>include:samples/generated/v1/database_admin.delete_backup.js</caption>
343
384
  * region_tag:spanner_v1_generated_DatabaseAdmin_DeleteBackup_async
344
385
  */
345
- deleteBackup(request?: protos.google.spanner.admin.database.v1.IDeleteBackupRequest, options?: CallOptions): Promise<[protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IDeleteBackupRequest | undefined, {} | undefined]>;
386
+ deleteBackup(request?: protos.google.spanner.admin.database.v1.IDeleteBackupRequest, options?: CallOptions): Promise<[
387
+ protos.google.protobuf.IEmpty,
388
+ protos.google.spanner.admin.database.v1.IDeleteBackupRequest | undefined,
389
+ {} | undefined
390
+ ]>;
346
391
  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;
347
392
  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;
348
393
  /**
@@ -375,6 +420,8 @@ export declare class DatabaseAdminClient {
375
420
  * Optional. The encryption configuration for the database. If this field is not
376
421
  * specified, Cloud Spanner will encrypt/decrypt all data at rest using
377
422
  * Google default encryption.
423
+ * @param {google.spanner.admin.database.v1.DatabaseDialect} [request.databaseDialect]
424
+ * Optional. The dialect of the Cloud Spanner Database.
378
425
  * @param {object} [options]
379
426
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
380
427
  * @returns {Promise} - The promise which resolves to an array.
@@ -387,7 +434,11 @@ export declare class DatabaseAdminClient {
387
434
  * @example <caption>include:samples/generated/v1/database_admin.create_database.js</caption>
388
435
  * region_tag:spanner_v1_generated_DatabaseAdmin_CreateDatabase_async
389
436
  */
390
- createDatabase(request?: protos.google.spanner.admin.database.v1.ICreateDatabaseRequest, options?: CallOptions): Promise<[LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.ICreateDatabaseMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined]>;
437
+ createDatabase(request?: protos.google.spanner.admin.database.v1.ICreateDatabaseRequest, options?: CallOptions): Promise<[
438
+ LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.ICreateDatabaseMetadata>,
439
+ protos.google.longrunning.IOperation | undefined,
440
+ {} | undefined
441
+ ]>;
391
442
  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;
392
443
  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;
393
444
  /**
@@ -450,7 +501,11 @@ export declare class DatabaseAdminClient {
450
501
  * @example <caption>include:samples/generated/v1/database_admin.update_database_ddl.js</caption>
451
502
  * region_tag:spanner_v1_generated_DatabaseAdmin_UpdateDatabaseDdl_async
452
503
  */
453
- updateDatabaseDdl(request?: protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlRequest, options?: CallOptions): Promise<[LROperation<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined]>;
504
+ updateDatabaseDdl(request?: protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlRequest, options?: CallOptions): Promise<[
505
+ LROperation<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlMetadata>,
506
+ protos.google.longrunning.IOperation | undefined,
507
+ {} | undefined
508
+ ]>;
454
509
  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;
455
510
  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;
456
511
  /**
@@ -513,7 +568,11 @@ export declare class DatabaseAdminClient {
513
568
  * @example <caption>include:samples/generated/v1/database_admin.create_backup.js</caption>
514
569
  * region_tag:spanner_v1_generated_DatabaseAdmin_CreateBackup_async
515
570
  */
516
- createBackup(request?: protos.google.spanner.admin.database.v1.ICreateBackupRequest, options?: CallOptions): Promise<[LROperation<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.ICreateBackupMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined]>;
571
+ createBackup(request?: protos.google.spanner.admin.database.v1.ICreateBackupRequest, options?: CallOptions): Promise<[
572
+ LROperation<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.ICreateBackupMetadata>,
573
+ protos.google.longrunning.IOperation | undefined,
574
+ {} | undefined
575
+ ]>;
517
576
  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;
518
577
  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;
519
578
  /**
@@ -529,6 +588,80 @@ export declare class DatabaseAdminClient {
529
588
  * region_tag:spanner_v1_generated_DatabaseAdmin_CreateBackup_async
530
589
  */
531
590
  checkCreateBackupProgress(name: string): Promise<LROperation<protos.google.spanner.admin.database.v1.Backup, protos.google.spanner.admin.database.v1.CreateBackupMetadata>>;
591
+ /**
592
+ * Starts copying a Cloud Spanner Backup.
593
+ * The returned backup {@link google.longrunning.Operation|long-running operation}
594
+ * will have a name of the format
595
+ * `projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
596
+ * and can be used to track copying of the backup. The operation is associated
597
+ * with the destination backup.
598
+ * The {@link google.longrunning.Operation.metadata|metadata} field type is
599
+ * {@link google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}.
600
+ * The {@link google.longrunning.Operation.response|response} field type is
601
+ * {@link google.spanner.admin.database.v1.Backup|Backup}, if successful. Cancelling the returned operation will stop the
602
+ * copying and delete the backup.
603
+ * Concurrent CopyBackup requests can run on the same source backup.
604
+ *
605
+ * @param {Object} request
606
+ * The request object that will be sent.
607
+ * @param {string} request.parent
608
+ * Required. The name of the destination instance that will contain the backup copy.
609
+ * Values are of the form: `projects/<project>/instances/<instance>`.
610
+ * @param {string} request.backupId
611
+ * Required. The id of the backup copy.
612
+ * The `backup_id` appended to `parent` forms the full backup_uri of the form
613
+ * `projects/<project>/instances/<instance>/backups/<backup>`.
614
+ * @param {string} request.sourceBackup
615
+ * Required. The source backup to be copied.
616
+ * The source backup needs to be in READY state for it to be copied.
617
+ * Once CopyBackup is in progress, the source backup cannot be deleted or
618
+ * cleaned up on expiration until CopyBackup is finished.
619
+ * Values are of the form:
620
+ * `projects/<project>/instances/<instance>/backups/<backup>`.
621
+ * @param {google.protobuf.Timestamp} request.expireTime
622
+ * Required. The expiration time of the backup in microsecond granularity.
623
+ * The expiration time must be at least 6 hours and at most 366 days
624
+ * from the `create_time` of the source backup. Once the `expire_time` has
625
+ * passed, the backup is eligible to be automatically deleted by Cloud Spanner
626
+ * to free the resources used by the backup.
627
+ * @param {google.spanner.admin.database.v1.CopyBackupEncryptionConfig} [request.encryptionConfig]
628
+ * Optional. The encryption configuration used to encrypt the backup. If this field is
629
+ * not specified, the backup will use the same
630
+ * encryption configuration as the source backup by default, namely
631
+ * {@link google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type|encryption_type} =
632
+ * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
633
+ * @param {object} [options]
634
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
635
+ * @returns {Promise} - The promise which resolves to an array.
636
+ * The first element of the array is an object representing
637
+ * a long running operation. Its `promise()` method returns a promise
638
+ * you can `await` for.
639
+ * Please see the
640
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
641
+ * for more details and examples.
642
+ * @example <caption>include:samples/generated/v1/database_admin.copy_backup.js</caption>
643
+ * region_tag:spanner_v1_generated_DatabaseAdmin_CopyBackup_async
644
+ */
645
+ copyBackup(request?: protos.google.spanner.admin.database.v1.ICopyBackupRequest, options?: CallOptions): Promise<[
646
+ LROperation<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.ICopyBackupMetadata>,
647
+ protos.google.longrunning.IOperation | undefined,
648
+ {} | undefined
649
+ ]>;
650
+ 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;
651
+ 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;
652
+ /**
653
+ * Check the status of the long running operation returned by `copyBackup()`.
654
+ * @param {String} name
655
+ * The operation name that will be passed.
656
+ * @returns {Promise} - The promise which resolves to an object.
657
+ * The decoded operation object has result and metadata field to get information from.
658
+ * Please see the
659
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
660
+ * for more details and examples.
661
+ * @example <caption>include:samples/generated/v1/database_admin.copy_backup.js</caption>
662
+ * region_tag:spanner_v1_generated_DatabaseAdmin_CopyBackup_async
663
+ */
664
+ checkCopyBackupProgress(name: string): Promise<LROperation<protos.google.spanner.admin.database.v1.Backup, protos.google.spanner.admin.database.v1.CopyBackupMetadata>>;
532
665
  /**
533
666
  * Create a new database by restoring from a completed backup. The new
534
667
  * database must be in the same project and in an instance with the same
@@ -583,7 +716,11 @@ export declare class DatabaseAdminClient {
583
716
  * @example <caption>include:samples/generated/v1/database_admin.restore_database.js</caption>
584
717
  * region_tag:spanner_v1_generated_DatabaseAdmin_RestoreDatabase_async
585
718
  */
586
- restoreDatabase(request?: protos.google.spanner.admin.database.v1.IRestoreDatabaseRequest, options?: CallOptions): Promise<[LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.IRestoreDatabaseMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined]>;
719
+ restoreDatabase(request?: protos.google.spanner.admin.database.v1.IRestoreDatabaseRequest, options?: CallOptions): Promise<[
720
+ LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.IRestoreDatabaseMetadata>,
721
+ protos.google.longrunning.IOperation | undefined,
722
+ {} | undefined
723
+ ]>;
587
724
  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;
588
725
  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;
589
726
  /**
@@ -627,7 +764,11 @@ export declare class DatabaseAdminClient {
627
764
  * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
628
765
  * for more details and examples.
629
766
  */
630
- listDatabases(request?: protos.google.spanner.admin.database.v1.IListDatabasesRequest, options?: CallOptions): Promise<[protos.google.spanner.admin.database.v1.IDatabase[], protos.google.spanner.admin.database.v1.IListDatabasesRequest | null, protos.google.spanner.admin.database.v1.IListDatabasesResponse]>;
767
+ listDatabases(request?: protos.google.spanner.admin.database.v1.IListDatabasesRequest, options?: CallOptions): Promise<[
768
+ protos.google.spanner.admin.database.v1.IDatabase[],
769
+ protos.google.spanner.admin.database.v1.IListDatabasesRequest | null,
770
+ protos.google.spanner.admin.database.v1.IListDatabasesResponse
771
+ ]>;
631
772
  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;
632
773
  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;
633
774
  /**
@@ -754,7 +895,11 @@ export declare class DatabaseAdminClient {
754
895
  * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
755
896
  * for more details and examples.
756
897
  */
757
- listBackups(request?: protos.google.spanner.admin.database.v1.IListBackupsRequest, options?: CallOptions): Promise<[protos.google.spanner.admin.database.v1.IBackup[], protos.google.spanner.admin.database.v1.IListBackupsRequest | null, protos.google.spanner.admin.database.v1.IListBackupsResponse]>;
898
+ listBackups(request?: protos.google.spanner.admin.database.v1.IListBackupsRequest, options?: CallOptions): Promise<[
899
+ protos.google.spanner.admin.database.v1.IBackup[],
900
+ protos.google.spanner.admin.database.v1.IListBackupsRequest | null,
901
+ protos.google.spanner.admin.database.v1.IListBackupsResponse
902
+ ]>;
758
903
  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;
759
904
  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;
760
905
  /**
@@ -921,6 +1066,8 @@ export declare class DatabaseAdminClient {
921
1066
  * for {@link google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata} is
922
1067
  * `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
923
1068
  * * `metadata.<field_name>` - any field in metadata.value.
1069
+ * `metadata.@type` must be specified first, if filtering on metadata
1070
+ * fields.
924
1071
  * * `error` - Error associated with the long-running operation.
925
1072
  * * `response.@type` - the type of response.
926
1073
  * * `response.<field_name>` - any field in response.value.
@@ -965,7 +1112,11 @@ export declare class DatabaseAdminClient {
965
1112
  * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
966
1113
  * for more details and examples.
967
1114
  */
968
- listDatabaseOperations(request?: protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest, options?: CallOptions): Promise<[protos.google.longrunning.IOperation[], protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest | null, protos.google.spanner.admin.database.v1.IListDatabaseOperationsResponse]>;
1115
+ listDatabaseOperations(request?: protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest, options?: CallOptions): Promise<[
1116
+ protos.google.longrunning.IOperation[],
1117
+ protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest | null,
1118
+ protos.google.spanner.admin.database.v1.IListDatabaseOperationsResponse
1119
+ ]>;
969
1120
  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;
970
1121
  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;
971
1122
  /**
@@ -993,6 +1144,8 @@ export declare class DatabaseAdminClient {
993
1144
  * for {@link google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata} is
994
1145
  * `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
995
1146
  * * `metadata.<field_name>` - any field in metadata.value.
1147
+ * `metadata.@type` must be specified first, if filtering on metadata
1148
+ * fields.
996
1149
  * * `error` - Error associated with the long-running operation.
997
1150
  * * `response.@type` - the type of response.
998
1151
  * * `response.<field_name>` - any field in response.value.
@@ -1064,6 +1217,8 @@ export declare class DatabaseAdminClient {
1064
1217
  * for {@link google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata} is
1065
1218
  * `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
1066
1219
  * * `metadata.<field_name>` - any field in metadata.value.
1220
+ * `metadata.@type` must be specified first, if filtering on metadata
1221
+ * fields.
1067
1222
  * * `error` - Error associated with the long-running operation.
1068
1223
  * * `response.@type` - the type of response.
1069
1224
  * * `response.<field_name>` - any field in response.value.
@@ -1144,6 +1299,8 @@ export declare class DatabaseAdminClient {
1144
1299
  * for {@link google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata} is
1145
1300
  * `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
1146
1301
  * * `metadata.<field_name>` - any field in metadata.value.
1302
+ * `metadata.@type` must be specified first if filtering on metadata
1303
+ * fields.
1147
1304
  * * `error` - Error associated with the long-running operation.
1148
1305
  * * `response.@type` - the type of response.
1149
1306
  * * `response.<field_name>` - any field in response.value.
@@ -1155,8 +1312,11 @@ export declare class DatabaseAdminClient {
1155
1312
  * Here are a few examples:
1156
1313
  *
1157
1314
  * * `done:true` - The operation is complete.
1158
- * * `metadata.database:prod` - The database the backup was taken from has
1159
- * a name containing the string "prod".
1315
+ * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
1316
+ * `metadata.database:prod` - Returns operations where:
1317
+ * * The operation's metadata type is {@link google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
1318
+ * * The database the backup was taken from has a name containing the
1319
+ * string "prod".
1160
1320
  * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
1161
1321
  * `(metadata.name:howl) AND` \
1162
1322
  * `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
@@ -1165,6 +1325,29 @@ export declare class DatabaseAdminClient {
1165
1325
  * * The backup name contains the string "howl".
1166
1326
  * * The operation started before 2018-03-28T14:50:00Z.
1167
1327
  * * The operation resulted in an error.
1328
+ * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CopyBackupMetadata) AND` \
1329
+ * `(metadata.source_backup:test) AND` \
1330
+ * `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \
1331
+ * `(error:*)` - Returns operations where:
1332
+ * * The operation's metadata type is {@link google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}.
1333
+ * * The source backup of the copied backup name contains the string
1334
+ * "test".
1335
+ * * The operation started before 2022-01-18T14:50:00Z.
1336
+ * * The operation resulted in an error.
1337
+ * * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
1338
+ * `(metadata.database:test_db)) OR` \
1339
+ * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CopyBackupMetadata)
1340
+ * AND` \
1341
+ * `(metadata.source_backup:test_bkp)) AND` \
1342
+ * `(error:*)` - Returns operations where:
1343
+ * * The operation's metadata matches either of criteria:
1344
+ * * The operation's metadata type is {@link google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata} AND the
1345
+ * database the backup was taken from has name containing string
1346
+ * "test_db"
1347
+ * * The operation's metadata type is {@link google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata} AND the
1348
+ * backup the backup was copied from has name containing string
1349
+ * "test_bkp"
1350
+ * * The operation resulted in an error.
1168
1351
  * @param {number} request.pageSize
1169
1352
  * Number of operations to be returned in the response. If 0 or
1170
1353
  * less, defaults to the server's maximum allowed page size.
@@ -1186,7 +1369,11 @@ export declare class DatabaseAdminClient {
1186
1369
  * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
1187
1370
  * for more details and examples.
1188
1371
  */
1189
- listBackupOperations(request?: protos.google.spanner.admin.database.v1.IListBackupOperationsRequest, options?: CallOptions): Promise<[protos.google.longrunning.IOperation[], protos.google.spanner.admin.database.v1.IListBackupOperationsRequest | null, protos.google.spanner.admin.database.v1.IListBackupOperationsResponse]>;
1372
+ listBackupOperations(request?: protos.google.spanner.admin.database.v1.IListBackupOperationsRequest, options?: CallOptions): Promise<[
1373
+ protos.google.longrunning.IOperation[],
1374
+ protos.google.spanner.admin.database.v1.IListBackupOperationsRequest | null,
1375
+ protos.google.spanner.admin.database.v1.IListBackupOperationsResponse
1376
+ ]>;
1190
1377
  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;
1191
1378
  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;
1192
1379
  /**
@@ -1214,6 +1401,8 @@ export declare class DatabaseAdminClient {
1214
1401
  * for {@link google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata} is
1215
1402
  * `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
1216
1403
  * * `metadata.<field_name>` - any field in metadata.value.
1404
+ * `metadata.@type` must be specified first if filtering on metadata
1405
+ * fields.
1217
1406
  * * `error` - Error associated with the long-running operation.
1218
1407
  * * `response.@type` - the type of response.
1219
1408
  * * `response.<field_name>` - any field in response.value.
@@ -1225,8 +1414,11 @@ export declare class DatabaseAdminClient {
1225
1414
  * Here are a few examples:
1226
1415
  *
1227
1416
  * * `done:true` - The operation is complete.
1228
- * * `metadata.database:prod` - The database the backup was taken from has
1229
- * a name containing the string "prod".
1417
+ * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
1418
+ * `metadata.database:prod` - Returns operations where:
1419
+ * * The operation's metadata type is {@link google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
1420
+ * * The database the backup was taken from has a name containing the
1421
+ * string "prod".
1230
1422
  * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
1231
1423
  * `(metadata.name:howl) AND` \
1232
1424
  * `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
@@ -1235,6 +1427,29 @@ export declare class DatabaseAdminClient {
1235
1427
  * * The backup name contains the string "howl".
1236
1428
  * * The operation started before 2018-03-28T14:50:00Z.
1237
1429
  * * The operation resulted in an error.
1430
+ * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CopyBackupMetadata) AND` \
1431
+ * `(metadata.source_backup:test) AND` \
1432
+ * `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \
1433
+ * `(error:*)` - Returns operations where:
1434
+ * * The operation's metadata type is {@link google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}.
1435
+ * * The source backup of the copied backup name contains the string
1436
+ * "test".
1437
+ * * The operation started before 2022-01-18T14:50:00Z.
1438
+ * * The operation resulted in an error.
1439
+ * * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
1440
+ * `(metadata.database:test_db)) OR` \
1441
+ * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CopyBackupMetadata)
1442
+ * AND` \
1443
+ * `(metadata.source_backup:test_bkp)) AND` \
1444
+ * `(error:*)` - Returns operations where:
1445
+ * * The operation's metadata matches either of criteria:
1446
+ * * The operation's metadata type is {@link google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata} AND the
1447
+ * database the backup was taken from has name containing string
1448
+ * "test_db"
1449
+ * * The operation's metadata type is {@link google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata} AND the
1450
+ * backup the backup was copied from has name containing string
1451
+ * "test_bkp"
1452
+ * * The operation resulted in an error.
1238
1453
  * @param {number} request.pageSize
1239
1454
  * Number of operations to be returned in the response. If 0 or
1240
1455
  * less, defaults to the server's maximum allowed page size.
@@ -1283,6 +1498,8 @@ export declare class DatabaseAdminClient {
1283
1498
  * for {@link google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata} is
1284
1499
  * `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
1285
1500
  * * `metadata.<field_name>` - any field in metadata.value.
1501
+ * `metadata.@type` must be specified first if filtering on metadata
1502
+ * fields.
1286
1503
  * * `error` - Error associated with the long-running operation.
1287
1504
  * * `response.@type` - the type of response.
1288
1505
  * * `response.<field_name>` - any field in response.value.
@@ -1294,8 +1511,11 @@ export declare class DatabaseAdminClient {
1294
1511
  * Here are a few examples:
1295
1512
  *
1296
1513
  * * `done:true` - The operation is complete.
1297
- * * `metadata.database:prod` - The database the backup was taken from has
1298
- * a name containing the string "prod".
1514
+ * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
1515
+ * `metadata.database:prod` - Returns operations where:
1516
+ * * The operation's metadata type is {@link google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
1517
+ * * The database the backup was taken from has a name containing the
1518
+ * string "prod".
1299
1519
  * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
1300
1520
  * `(metadata.name:howl) AND` \
1301
1521
  * `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
@@ -1304,6 +1524,29 @@ export declare class DatabaseAdminClient {
1304
1524
  * * The backup name contains the string "howl".
1305
1525
  * * The operation started before 2018-03-28T14:50:00Z.
1306
1526
  * * The operation resulted in an error.
1527
+ * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CopyBackupMetadata) AND` \
1528
+ * `(metadata.source_backup:test) AND` \
1529
+ * `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \
1530
+ * `(error:*)` - Returns operations where:
1531
+ * * The operation's metadata type is {@link google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}.
1532
+ * * The source backup of the copied backup name contains the string
1533
+ * "test".
1534
+ * * The operation started before 2022-01-18T14:50:00Z.
1535
+ * * The operation resulted in an error.
1536
+ * * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
1537
+ * `(metadata.database:test_db)) OR` \
1538
+ * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CopyBackupMetadata)
1539
+ * AND` \
1540
+ * `(metadata.source_backup:test_bkp)) AND` \
1541
+ * `(error:*)` - Returns operations where:
1542
+ * * The operation's metadata matches either of criteria:
1543
+ * * The operation's metadata type is {@link google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata} AND the
1544
+ * database the backup was taken from has name containing string
1545
+ * "test_db"
1546
+ * * The operation's metadata type is {@link google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata} AND the
1547
+ * backup the backup was copied from has name containing string
1548
+ * "test_bkp"
1549
+ * * The operation resulted in an error.
1307
1550
  * @param {number} request.pageSize
1308
1551
  * Number of operations to be returned in the response. If 0 or
1309
1552
  * less, defaults to the server's maximum allowed page size.