@google-cloud/spanner 7.7.0 → 7.9.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 +31 -0
- package/README.md +5 -0
- package/build/protos/google/spanner/admin/database/v1/backup.proto +190 -109
- package/build/protos/google/spanner/admin/database/v1/common.proto +30 -10
- package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +166 -100
- package/build/protos/google/spanner/admin/instance/v1/common.proto +1 -1
- package/build/protos/google/spanner/executor/v1/cloud_executor.proto +1 -1
- package/build/protos/google/spanner/v1/commit_response.proto +1 -1
- package/build/protos/google/spanner/v1/keys.proto +1 -1
- package/build/protos/google/spanner/v1/mutation.proto +1 -1
- package/build/protos/google/spanner/v1/query_plan.proto +1 -1
- package/build/protos/google/spanner/v1/result_set.proto +1 -1
- package/build/protos/google/spanner/v1/spanner.proto +1 -1
- package/build/protos/google/spanner/v1/transaction.proto +1 -1
- package/build/protos/google/spanner/v1/type.proto +1 -1
- package/build/protos/protos.d.ts +30 -0
- package/build/protos/protos.js +204 -0
- package/build/protos/protos.json +43 -0
- package/build/src/codec.d.ts +55 -1
- package/build/src/codec.js +109 -4
- package/build/src/common-grpc/service.d.ts +0 -1
- package/build/src/common.js +2 -2
- package/build/src/database.d.ts +94 -7
- package/build/src/database.js +131 -0
- package/build/src/index.d.ts +59 -3
- package/build/src/index.js +55 -1
- package/build/src/instance.d.ts +0 -2
- package/build/src/partial-result-stream.d.ts +41 -1
- package/build/src/partial-result-stream.js +8 -3
- package/build/src/session-pool.d.ts +0 -2
- package/build/src/session-pool.js +7 -7
- package/build/src/table.d.ts +1 -0
- package/build/src/table.js +36 -2
- package/build/src/transaction-runner.d.ts +1 -0
- package/build/src/transaction-runner.js +5 -2
- package/build/src/transaction.d.ts +100 -2
- package/build/src/transaction.js +135 -30
- package/build/src/v1/database_admin_client.d.ts +175 -127
- package/build/src/v1/database_admin_client.js +85 -57
- package/build/src/v1/instance_admin_client.d.ts +0 -1
- package/build/src/v1/spanner_client.d.ts +0 -1
- package/build/src/v1/spanner_client_config.json +15 -14
- package/package.json +6 -6
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import type * as gax from 'google-gax';
|
|
3
2
|
import type { Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback } from 'google-gax';
|
|
4
3
|
import { Transform } from 'stream';
|
|
@@ -9,7 +8,7 @@ import * as protos from '../../protos/protos';
|
|
|
9
8
|
* The Cloud Spanner Database Admin API can be used to:
|
|
10
9
|
* * create, drop, and list databases
|
|
11
10
|
* * update the schema of pre-existing databases
|
|
12
|
-
* * create, delete and list backups for a database
|
|
11
|
+
* * create, delete, copy and list backups for a database
|
|
13
12
|
* * restore a database from an existing backup
|
|
14
13
|
* @class
|
|
15
14
|
* @memberof v1
|
|
@@ -302,7 +301,8 @@ export declare class DatabaseAdminClient {
|
|
|
302
301
|
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;
|
|
303
302
|
testIamPermissions(request: protos.google.iam.v1.ITestIamPermissionsRequest, callback: Callback<protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, {} | null | undefined>): void;
|
|
304
303
|
/**
|
|
305
|
-
* Gets metadata on a pending or completed
|
|
304
|
+
* Gets metadata on a pending or completed
|
|
305
|
+
* {@link protos.google.spanner.admin.database.v1.Backup|Backup}.
|
|
306
306
|
*
|
|
307
307
|
* @param {Object} request
|
|
308
308
|
* The request object that will be sent.
|
|
@@ -325,7 +325,8 @@ export declare class DatabaseAdminClient {
|
|
|
325
325
|
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;
|
|
326
326
|
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;
|
|
327
327
|
/**
|
|
328
|
-
* Updates a pending or completed
|
|
328
|
+
* Updates a pending or completed
|
|
329
|
+
* {@link protos.google.spanner.admin.database.v1.Backup|Backup}.
|
|
329
330
|
*
|
|
330
331
|
* @param {Object} request
|
|
331
332
|
* The request object that will be sent.
|
|
@@ -355,7 +356,8 @@ export declare class DatabaseAdminClient {
|
|
|
355
356
|
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;
|
|
356
357
|
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;
|
|
357
358
|
/**
|
|
358
|
-
* Deletes a pending or completed
|
|
359
|
+
* Deletes a pending or completed
|
|
360
|
+
* {@link protos.google.spanner.admin.database.v1.Backup|Backup}.
|
|
359
361
|
*
|
|
360
362
|
* @param {Object} request
|
|
361
363
|
* The request object that will be sent.
|
|
@@ -383,8 +385,8 @@ export declare class DatabaseAdminClient {
|
|
|
383
385
|
* have a name of the format `<database_name>/operations/<operation_id>` and
|
|
384
386
|
* can be used to track preparation of the database. The
|
|
385
387
|
* {@link protos.google.longrunning.Operation.metadata|metadata} field type is
|
|
386
|
-
* {@link protos.google.spanner.admin.database.v1.CreateDatabaseMetadata|CreateDatabaseMetadata}.
|
|
387
|
-
* {@link protos.google.longrunning.Operation.response|response} field type is
|
|
388
|
+
* {@link protos.google.spanner.admin.database.v1.CreateDatabaseMetadata|CreateDatabaseMetadata}.
|
|
389
|
+
* The {@link protos.google.longrunning.Operation.response|response} field type is
|
|
388
390
|
* {@link protos.google.spanner.admin.database.v1.Database|Database}, if successful.
|
|
389
391
|
*
|
|
390
392
|
* @param {Object} request
|
|
@@ -404,8 +406,8 @@ export declare class DatabaseAdminClient {
|
|
|
404
406
|
* statements execute atomically with the creation of the database:
|
|
405
407
|
* if there is an error in any statement, the database is not created.
|
|
406
408
|
* @param {google.spanner.admin.database.v1.EncryptionConfig} [request.encryptionConfig]
|
|
407
|
-
* Optional. The encryption configuration for the database. If this field is
|
|
408
|
-
* specified, Cloud Spanner will encrypt/decrypt all data at rest using
|
|
409
|
+
* Optional. The encryption configuration for the database. If this field is
|
|
410
|
+
* not specified, Cloud Spanner will encrypt/decrypt all data at rest using
|
|
409
411
|
* Google default encryption.
|
|
410
412
|
* @param {google.spanner.admin.database.v1.DatabaseDialect} [request.databaseDialect]
|
|
411
413
|
* Optional. The dialect of the Cloud Spanner Database.
|
|
@@ -531,7 +533,8 @@ export declare class DatabaseAdminClient {
|
|
|
531
533
|
* the format `<database_name>/operations/<operation_id>` and can be used to
|
|
532
534
|
* track execution of the schema change(s). The
|
|
533
535
|
* {@link protos.google.longrunning.Operation.metadata|metadata} field type is
|
|
534
|
-
* {@link protos.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata|UpdateDatabaseDdlMetadata}.
|
|
536
|
+
* {@link protos.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata|UpdateDatabaseDdlMetadata}.
|
|
537
|
+
* The operation has no response.
|
|
535
538
|
*
|
|
536
539
|
* @param {Object} request
|
|
537
540
|
* The request object that will be sent.
|
|
@@ -547,18 +550,20 @@ export declare class DatabaseAdminClient {
|
|
|
547
550
|
*
|
|
548
551
|
* Specifying an explicit operation ID simplifies determining
|
|
549
552
|
* whether the statements were executed in the event that the
|
|
550
|
-
* {@link protos.google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl|UpdateDatabaseDdl}
|
|
551
|
-
* or the return value is otherwise lost: the
|
|
552
|
-
*
|
|
553
|
+
* {@link protos.google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl|UpdateDatabaseDdl}
|
|
554
|
+
* call is replayed, or the return value is otherwise lost: the
|
|
555
|
+
* {@link protos.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database|database}
|
|
556
|
+
* and `operation_id` fields can be combined to form the
|
|
553
557
|
* {@link protos.google.longrunning.Operation.name|name} of the resulting
|
|
554
|
-
* {@link protos.google.longrunning.Operation|longrunning.Operation}:
|
|
558
|
+
* {@link protos.google.longrunning.Operation|longrunning.Operation}:
|
|
559
|
+
* `<database>/operations/<operation_id>`.
|
|
555
560
|
*
|
|
556
561
|
* `operation_id` should be unique within the database, and must be
|
|
557
562
|
* a valid identifier: `{@link protos.a-z0-9_|a-z}*`. Note that
|
|
558
563
|
* automatically-generated operation IDs always begin with an
|
|
559
564
|
* underscore. If the named operation already exists,
|
|
560
|
-
* {@link protos.google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl|UpdateDatabaseDdl}
|
|
561
|
-
* `ALREADY_EXISTS`.
|
|
565
|
+
* {@link protos.google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl|UpdateDatabaseDdl}
|
|
566
|
+
* returns `ALREADY_EXISTS`.
|
|
562
567
|
* @param {Buffer} [request.protoDescriptors]
|
|
563
568
|
* Optional. Proto descriptors used by CREATE/ALTER PROTO BUNDLE statements.
|
|
564
569
|
* Contains a protobuf-serialized
|
|
@@ -607,12 +612,12 @@ export declare class DatabaseAdminClient {
|
|
|
607
612
|
* `projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
|
|
608
613
|
* and can be used to track creation of the backup. The
|
|
609
614
|
* {@link protos.google.longrunning.Operation.metadata|metadata} field type is
|
|
610
|
-
* {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
|
|
611
|
-
* {@link protos.google.longrunning.Operation.response|response} field type is
|
|
612
|
-
* {@link protos.google.spanner.admin.database.v1.Backup|Backup}, if successful.
|
|
613
|
-
* creation and delete the
|
|
614
|
-
* There can be only one pending backup creation per database. Backup
|
|
615
|
-
* of different databases can run concurrently.
|
|
615
|
+
* {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
|
|
616
|
+
* The {@link protos.google.longrunning.Operation.response|response} field type is
|
|
617
|
+
* {@link protos.google.spanner.admin.database.v1.Backup|Backup}, if successful.
|
|
618
|
+
* Cancelling the returned operation will stop the creation and delete the
|
|
619
|
+
* backup. There can be only one pending backup creation per database. Backup
|
|
620
|
+
* creation of different databases can run concurrently.
|
|
616
621
|
*
|
|
617
622
|
* @param {Object} request
|
|
618
623
|
* The request object that will be sent.
|
|
@@ -630,11 +635,11 @@ export declare class DatabaseAdminClient {
|
|
|
630
635
|
* @param {google.spanner.admin.database.v1.Backup} request.backup
|
|
631
636
|
* Required. The backup to create.
|
|
632
637
|
* @param {google.spanner.admin.database.v1.CreateBackupEncryptionConfig} [request.encryptionConfig]
|
|
633
|
-
* Optional. The encryption configuration used to encrypt the backup. If this
|
|
634
|
-
* not specified, the backup will use the same
|
|
635
|
-
*
|
|
636
|
-
* {@link protos.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type|encryption_type}
|
|
637
|
-
* `USE_DATABASE_ENCRYPTION`.
|
|
638
|
+
* Optional. The encryption configuration used to encrypt the backup. If this
|
|
639
|
+
* field is not specified, the backup will use the same encryption
|
|
640
|
+
* configuration as the database by default, namely
|
|
641
|
+
* {@link protos.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type|encryption_type}
|
|
642
|
+
* = `USE_DATABASE_ENCRYPTION`.
|
|
638
643
|
* @param {object} [options]
|
|
639
644
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
640
645
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -671,15 +676,16 @@ export declare class DatabaseAdminClient {
|
|
|
671
676
|
* The {@link protos.google.longrunning.Operation.metadata|metadata} field type is
|
|
672
677
|
* {@link protos.google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}.
|
|
673
678
|
* The {@link protos.google.longrunning.Operation.response|response} field type is
|
|
674
|
-
* {@link protos.google.spanner.admin.database.v1.Backup|Backup}, if successful.
|
|
675
|
-
* copying and delete the
|
|
676
|
-
* Concurrent CopyBackup requests can run on the same
|
|
679
|
+
* {@link protos.google.spanner.admin.database.v1.Backup|Backup}, if successful.
|
|
680
|
+
* Cancelling the returned operation will stop the copying and delete the
|
|
681
|
+
* destination backup. Concurrent CopyBackup requests can run on the same
|
|
682
|
+
* source backup.
|
|
677
683
|
*
|
|
678
684
|
* @param {Object} request
|
|
679
685
|
* The request object that will be sent.
|
|
680
686
|
* @param {string} request.parent
|
|
681
|
-
* Required. The name of the destination instance that will contain the backup
|
|
682
|
-
* Values are of the form: `projects/<project>/instances/<instance>`.
|
|
687
|
+
* Required. The name of the destination instance that will contain the backup
|
|
688
|
+
* copy. Values are of the form: `projects/<project>/instances/<instance>`.
|
|
683
689
|
* @param {string} request.backupId
|
|
684
690
|
* Required. The id of the backup copy.
|
|
685
691
|
* The `backup_id` appended to `parent` forms the full backup_uri of the form
|
|
@@ -698,11 +704,11 @@ export declare class DatabaseAdminClient {
|
|
|
698
704
|
* passed, the backup is eligible to be automatically deleted by Cloud Spanner
|
|
699
705
|
* to free the resources used by the backup.
|
|
700
706
|
* @param {google.spanner.admin.database.v1.CopyBackupEncryptionConfig} [request.encryptionConfig]
|
|
701
|
-
* Optional. The encryption configuration used to encrypt the backup. If this
|
|
702
|
-
* not specified, the backup will use the same
|
|
703
|
-
*
|
|
704
|
-
* {@link protos.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type|encryption_type}
|
|
705
|
-
* `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
|
|
707
|
+
* Optional. The encryption configuration used to encrypt the backup. If this
|
|
708
|
+
* field is not specified, the backup will use the same encryption
|
|
709
|
+
* configuration as the source backup by default, namely
|
|
710
|
+
* {@link protos.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type|encryption_type}
|
|
711
|
+
* = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
|
|
706
712
|
* @param {object} [options]
|
|
707
713
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
708
714
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -765,12 +771,12 @@ export declare class DatabaseAdminClient {
|
|
|
765
771
|
* Name of the backup from which to restore. Values are of the form
|
|
766
772
|
* `projects/<project>/instances/<instance>/backups/<backup>`.
|
|
767
773
|
* @param {google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig} [request.encryptionConfig]
|
|
768
|
-
* Optional. An encryption configuration describing the encryption type and
|
|
769
|
-
* resources in Cloud KMS used to encrypt/decrypt the database to restore
|
|
770
|
-
* If this field is not specified, the restored database will use
|
|
771
|
-
*
|
|
772
|
-
* {@link protos.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type|encryption_type}
|
|
773
|
-
* `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
|
|
774
|
+
* Optional. An encryption configuration describing the encryption type and
|
|
775
|
+
* key resources in Cloud KMS used to encrypt/decrypt the database to restore
|
|
776
|
+
* to. If this field is not specified, the restored database will use the same
|
|
777
|
+
* encryption configuration as the backup by default, namely
|
|
778
|
+
* {@link protos.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type|encryption_type}
|
|
779
|
+
* = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
|
|
774
780
|
* @param {object} [options]
|
|
775
781
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
776
782
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -810,8 +816,9 @@ export declare class DatabaseAdminClient {
|
|
|
810
816
|
* defaults to the server's maximum allowed page size.
|
|
811
817
|
* @param {string} request.pageToken
|
|
812
818
|
* If non-empty, `page_token` should contain a
|
|
813
|
-
* {@link protos.google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token|next_page_token}
|
|
814
|
-
*
|
|
819
|
+
* {@link protos.google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token|next_page_token}
|
|
820
|
+
* from a previous
|
|
821
|
+
* {@link protos.google.spanner.admin.database.v1.ListDatabasesResponse|ListDatabasesResponse}.
|
|
815
822
|
* @param {object} [options]
|
|
816
823
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
817
824
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -843,8 +850,9 @@ export declare class DatabaseAdminClient {
|
|
|
843
850
|
* defaults to the server's maximum allowed page size.
|
|
844
851
|
* @param {string} request.pageToken
|
|
845
852
|
* If non-empty, `page_token` should contain a
|
|
846
|
-
* {@link protos.google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token|next_page_token}
|
|
847
|
-
*
|
|
853
|
+
* {@link protos.google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token|next_page_token}
|
|
854
|
+
* from a previous
|
|
855
|
+
* {@link protos.google.spanner.admin.database.v1.ListDatabasesResponse|ListDatabasesResponse}.
|
|
848
856
|
* @param {object} [options]
|
|
849
857
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
850
858
|
* @returns {Stream}
|
|
@@ -871,8 +879,9 @@ export declare class DatabaseAdminClient {
|
|
|
871
879
|
* defaults to the server's maximum allowed page size.
|
|
872
880
|
* @param {string} request.pageToken
|
|
873
881
|
* If non-empty, `page_token` should contain a
|
|
874
|
-
* {@link protos.google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token|next_page_token}
|
|
875
|
-
*
|
|
882
|
+
* {@link protos.google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token|next_page_token}
|
|
883
|
+
* from a previous
|
|
884
|
+
* {@link protos.google.spanner.admin.database.v1.ListDatabasesResponse|ListDatabasesResponse}.
|
|
876
885
|
* @param {object} [options]
|
|
877
886
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
878
887
|
* @returns {Object}
|
|
@@ -903,7 +912,9 @@ export declare class DatabaseAdminClient {
|
|
|
903
912
|
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
|
|
904
913
|
* Colon `:` is the contains operator. Filter rules are not case sensitive.
|
|
905
914
|
*
|
|
906
|
-
* The following fields in the
|
|
915
|
+
* The following fields in the
|
|
916
|
+
* {@link protos.google.spanner.admin.database.v1.Backup|Backup} are eligible for
|
|
917
|
+
* filtering:
|
|
907
918
|
*
|
|
908
919
|
* * `name`
|
|
909
920
|
* * `database`
|
|
@@ -935,9 +946,10 @@ export declare class DatabaseAdminClient {
|
|
|
935
946
|
* less, defaults to the server's maximum allowed page size.
|
|
936
947
|
* @param {string} request.pageToken
|
|
937
948
|
* If non-empty, `page_token` should contain a
|
|
938
|
-
* {@link protos.google.spanner.admin.database.v1.ListBackupsResponse.next_page_token|next_page_token}
|
|
939
|
-
*
|
|
940
|
-
*
|
|
949
|
+
* {@link protos.google.spanner.admin.database.v1.ListBackupsResponse.next_page_token|next_page_token}
|
|
950
|
+
* from a previous
|
|
951
|
+
* {@link protos.google.spanner.admin.database.v1.ListBackupsResponse|ListBackupsResponse}
|
|
952
|
+
* to the same `parent` and with the same `filter`.
|
|
941
953
|
* @param {object} [options]
|
|
942
954
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
943
955
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -973,7 +985,9 @@ export declare class DatabaseAdminClient {
|
|
|
973
985
|
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
|
|
974
986
|
* Colon `:` is the contains operator. Filter rules are not case sensitive.
|
|
975
987
|
*
|
|
976
|
-
* The following fields in the
|
|
988
|
+
* The following fields in the
|
|
989
|
+
* {@link protos.google.spanner.admin.database.v1.Backup|Backup} are eligible for
|
|
990
|
+
* filtering:
|
|
977
991
|
*
|
|
978
992
|
* * `name`
|
|
979
993
|
* * `database`
|
|
@@ -1005,9 +1019,10 @@ export declare class DatabaseAdminClient {
|
|
|
1005
1019
|
* less, defaults to the server's maximum allowed page size.
|
|
1006
1020
|
* @param {string} request.pageToken
|
|
1007
1021
|
* If non-empty, `page_token` should contain a
|
|
1008
|
-
* {@link protos.google.spanner.admin.database.v1.ListBackupsResponse.next_page_token|next_page_token}
|
|
1009
|
-
*
|
|
1010
|
-
*
|
|
1022
|
+
* {@link protos.google.spanner.admin.database.v1.ListBackupsResponse.next_page_token|next_page_token}
|
|
1023
|
+
* from a previous
|
|
1024
|
+
* {@link protos.google.spanner.admin.database.v1.ListBackupsResponse|ListBackupsResponse}
|
|
1025
|
+
* to the same `parent` and with the same `filter`.
|
|
1011
1026
|
* @param {object} [options]
|
|
1012
1027
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1013
1028
|
* @returns {Stream}
|
|
@@ -1038,7 +1053,9 @@ export declare class DatabaseAdminClient {
|
|
|
1038
1053
|
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
|
|
1039
1054
|
* Colon `:` is the contains operator. Filter rules are not case sensitive.
|
|
1040
1055
|
*
|
|
1041
|
-
* The following fields in the
|
|
1056
|
+
* The following fields in the
|
|
1057
|
+
* {@link protos.google.spanner.admin.database.v1.Backup|Backup} are eligible for
|
|
1058
|
+
* filtering:
|
|
1042
1059
|
*
|
|
1043
1060
|
* * `name`
|
|
1044
1061
|
* * `database`
|
|
@@ -1070,9 +1087,10 @@ export declare class DatabaseAdminClient {
|
|
|
1070
1087
|
* less, defaults to the server's maximum allowed page size.
|
|
1071
1088
|
* @param {string} request.pageToken
|
|
1072
1089
|
* If non-empty, `page_token` should contain a
|
|
1073
|
-
* {@link protos.google.spanner.admin.database.v1.ListBackupsResponse.next_page_token|next_page_token}
|
|
1074
|
-
*
|
|
1075
|
-
*
|
|
1090
|
+
* {@link protos.google.spanner.admin.database.v1.ListBackupsResponse.next_page_token|next_page_token}
|
|
1091
|
+
* from a previous
|
|
1092
|
+
* {@link protos.google.spanner.admin.database.v1.ListBackupsResponse|ListBackupsResponse}
|
|
1093
|
+
* to the same `parent` and with the same `filter`.
|
|
1076
1094
|
* @param {object} [options]
|
|
1077
1095
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1078
1096
|
* @returns {Object}
|
|
@@ -1114,7 +1132,9 @@ export declare class DatabaseAdminClient {
|
|
|
1114
1132
|
* * `name` - The name of the long-running operation
|
|
1115
1133
|
* * `done` - False if the operation is in progress, else true.
|
|
1116
1134
|
* * `metadata.@type` - the type of metadata. For example, the type string
|
|
1117
|
-
* for
|
|
1135
|
+
* for
|
|
1136
|
+
* {@link protos.google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata}
|
|
1137
|
+
* is
|
|
1118
1138
|
* `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
|
|
1119
1139
|
* * `metadata.<field_name>` - any field in metadata.value.
|
|
1120
1140
|
* `metadata.@type` must be specified first, if filtering on metadata
|
|
@@ -1136,7 +1156,8 @@ export declare class DatabaseAdminClient {
|
|
|
1136
1156
|
* `(metadata.name:restored_howl) AND` \
|
|
1137
1157
|
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
|
|
1138
1158
|
* `(error:*)` - Return operations where:
|
|
1139
|
-
* * The operation's metadata type is
|
|
1159
|
+
* * The operation's metadata type is
|
|
1160
|
+
* {@link protos.google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata}.
|
|
1140
1161
|
* * The database is restored from a backup.
|
|
1141
1162
|
* * The backup name contains "backup_howl".
|
|
1142
1163
|
* * The restored database's name contains "restored_howl".
|
|
@@ -1148,8 +1169,9 @@ export declare class DatabaseAdminClient {
|
|
|
1148
1169
|
* @param {string} request.pageToken
|
|
1149
1170
|
* If non-empty, `page_token` should contain a
|
|
1150
1171
|
* {@link protos.google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token|next_page_token}
|
|
1151
|
-
* from a previous
|
|
1152
|
-
*
|
|
1172
|
+
* from a previous
|
|
1173
|
+
* {@link protos.google.spanner.admin.database.v1.ListDatabaseOperationsResponse|ListDatabaseOperationsResponse}
|
|
1174
|
+
* to the same `parent` and with the same `filter`.
|
|
1153
1175
|
* @param {object} [options]
|
|
1154
1176
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1155
1177
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -1191,7 +1213,9 @@ export declare class DatabaseAdminClient {
|
|
|
1191
1213
|
* * `name` - The name of the long-running operation
|
|
1192
1214
|
* * `done` - False if the operation is in progress, else true.
|
|
1193
1215
|
* * `metadata.@type` - the type of metadata. For example, the type string
|
|
1194
|
-
* for
|
|
1216
|
+
* for
|
|
1217
|
+
* {@link protos.google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata}
|
|
1218
|
+
* is
|
|
1195
1219
|
* `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
|
|
1196
1220
|
* * `metadata.<field_name>` - any field in metadata.value.
|
|
1197
1221
|
* `metadata.@type` must be specified first, if filtering on metadata
|
|
@@ -1213,7 +1237,8 @@ export declare class DatabaseAdminClient {
|
|
|
1213
1237
|
* `(metadata.name:restored_howl) AND` \
|
|
1214
1238
|
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
|
|
1215
1239
|
* `(error:*)` - Return operations where:
|
|
1216
|
-
* * The operation's metadata type is
|
|
1240
|
+
* * The operation's metadata type is
|
|
1241
|
+
* {@link protos.google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata}.
|
|
1217
1242
|
* * The database is restored from a backup.
|
|
1218
1243
|
* * The backup name contains "backup_howl".
|
|
1219
1244
|
* * The restored database's name contains "restored_howl".
|
|
@@ -1225,8 +1250,9 @@ export declare class DatabaseAdminClient {
|
|
|
1225
1250
|
* @param {string} request.pageToken
|
|
1226
1251
|
* If non-empty, `page_token` should contain a
|
|
1227
1252
|
* {@link protos.google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token|next_page_token}
|
|
1228
|
-
* from a previous
|
|
1229
|
-
*
|
|
1253
|
+
* from a previous
|
|
1254
|
+
* {@link protos.google.spanner.admin.database.v1.ListDatabaseOperationsResponse|ListDatabaseOperationsResponse}
|
|
1255
|
+
* to the same `parent` and with the same `filter`.
|
|
1230
1256
|
* @param {object} [options]
|
|
1231
1257
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1232
1258
|
* @returns {Stream}
|
|
@@ -1263,7 +1289,9 @@ export declare class DatabaseAdminClient {
|
|
|
1263
1289
|
* * `name` - The name of the long-running operation
|
|
1264
1290
|
* * `done` - False if the operation is in progress, else true.
|
|
1265
1291
|
* * `metadata.@type` - the type of metadata. For example, the type string
|
|
1266
|
-
* for
|
|
1292
|
+
* for
|
|
1293
|
+
* {@link protos.google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata}
|
|
1294
|
+
* is
|
|
1267
1295
|
* `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
|
|
1268
1296
|
* * `metadata.<field_name>` - any field in metadata.value.
|
|
1269
1297
|
* `metadata.@type` must be specified first, if filtering on metadata
|
|
@@ -1285,7 +1313,8 @@ export declare class DatabaseAdminClient {
|
|
|
1285
1313
|
* `(metadata.name:restored_howl) AND` \
|
|
1286
1314
|
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
|
|
1287
1315
|
* `(error:*)` - Return operations where:
|
|
1288
|
-
* * The operation's metadata type is
|
|
1316
|
+
* * The operation's metadata type is
|
|
1317
|
+
* {@link protos.google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata}.
|
|
1289
1318
|
* * The database is restored from a backup.
|
|
1290
1319
|
* * The backup name contains "backup_howl".
|
|
1291
1320
|
* * The restored database's name contains "restored_howl".
|
|
@@ -1297,8 +1326,9 @@ export declare class DatabaseAdminClient {
|
|
|
1297
1326
|
* @param {string} request.pageToken
|
|
1298
1327
|
* If non-empty, `page_token` should contain a
|
|
1299
1328
|
* {@link protos.google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token|next_page_token}
|
|
1300
|
-
* from a previous
|
|
1301
|
-
*
|
|
1329
|
+
* from a previous
|
|
1330
|
+
* {@link protos.google.spanner.admin.database.v1.ListDatabaseOperationsResponse|ListDatabaseOperationsResponse}
|
|
1331
|
+
* to the same `parent` and with the same `filter`.
|
|
1302
1332
|
* @param {object} [options]
|
|
1303
1333
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1304
1334
|
* @returns {Object}
|
|
@@ -1342,7 +1372,9 @@ export declare class DatabaseAdminClient {
|
|
|
1342
1372
|
* * `name` - The name of the long-running operation
|
|
1343
1373
|
* * `done` - False if the operation is in progress, else true.
|
|
1344
1374
|
* * `metadata.@type` - the type of metadata. For example, the type string
|
|
1345
|
-
* for
|
|
1375
|
+
* for
|
|
1376
|
+
* {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}
|
|
1377
|
+
* is
|
|
1346
1378
|
* `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
|
|
1347
1379
|
* * `metadata.<field_name>` - any field in metadata.value.
|
|
1348
1380
|
* `metadata.@type` must be specified first if filtering on metadata
|
|
@@ -1360,14 +1392,15 @@ export declare class DatabaseAdminClient {
|
|
|
1360
1392
|
* * `done:true` - The operation is complete.
|
|
1361
1393
|
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
|
|
1362
1394
|
* `metadata.database:prod` - Returns operations where:
|
|
1363
|
-
* * The operation's metadata type is
|
|
1364
|
-
*
|
|
1365
|
-
* string "prod".
|
|
1395
|
+
* * The operation's metadata type is
|
|
1396
|
+
* {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
|
|
1397
|
+
* * The source database name of backup contains the string "prod".
|
|
1366
1398
|
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
|
|
1367
1399
|
* `(metadata.name:howl) AND` \
|
|
1368
1400
|
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
|
|
1369
1401
|
* `(error:*)` - Returns operations where:
|
|
1370
|
-
* * The operation's metadata type is
|
|
1402
|
+
* * The operation's metadata type is
|
|
1403
|
+
* {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
|
|
1371
1404
|
* * The backup name contains the string "howl".
|
|
1372
1405
|
* * The operation started before 2018-03-28T14:50:00Z.
|
|
1373
1406
|
* * The operation resulted in an error.
|
|
@@ -1375,9 +1408,9 @@ export declare class DatabaseAdminClient {
|
|
|
1375
1408
|
* `(metadata.source_backup:test) AND` \
|
|
1376
1409
|
* `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \
|
|
1377
1410
|
* `(error:*)` - Returns operations where:
|
|
1378
|
-
* * The operation's metadata type is
|
|
1379
|
-
*
|
|
1380
|
-
* "test".
|
|
1411
|
+
* * The operation's metadata type is
|
|
1412
|
+
* {@link protos.google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}.
|
|
1413
|
+
* * The source backup name contains the string "test".
|
|
1381
1414
|
* * The operation started before 2022-01-18T14:50:00Z.
|
|
1382
1415
|
* * The operation resulted in an error.
|
|
1383
1416
|
* * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
|
|
@@ -1387,12 +1420,13 @@ export declare class DatabaseAdminClient {
|
|
|
1387
1420
|
* `(metadata.source_backup:test_bkp)) AND` \
|
|
1388
1421
|
* `(error:*)` - Returns operations where:
|
|
1389
1422
|
* * The operation's metadata matches either of criteria:
|
|
1390
|
-
* * The operation's metadata type is
|
|
1391
|
-
* database
|
|
1423
|
+
* * The operation's metadata type is
|
|
1424
|
+
* {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}
|
|
1425
|
+
* AND the source database name of the backup contains the string
|
|
1392
1426
|
* "test_db"
|
|
1393
|
-
* * The operation's metadata type is
|
|
1394
|
-
*
|
|
1395
|
-
* "test_bkp"
|
|
1427
|
+
* * The operation's metadata type is
|
|
1428
|
+
* {@link protos.google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}
|
|
1429
|
+
* AND the source backup name contains the string "test_bkp"
|
|
1396
1430
|
* * The operation resulted in an error.
|
|
1397
1431
|
* @param {number} request.pageSize
|
|
1398
1432
|
* Number of operations to be returned in the response. If 0 or
|
|
@@ -1400,8 +1434,9 @@ export declare class DatabaseAdminClient {
|
|
|
1400
1434
|
* @param {string} request.pageToken
|
|
1401
1435
|
* If non-empty, `page_token` should contain a
|
|
1402
1436
|
* {@link protos.google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token|next_page_token}
|
|
1403
|
-
* from a previous
|
|
1404
|
-
*
|
|
1437
|
+
* from a previous
|
|
1438
|
+
* {@link protos.google.spanner.admin.database.v1.ListBackupOperationsResponse|ListBackupOperationsResponse}
|
|
1439
|
+
* to the same `parent` and with the same `filter`.
|
|
1405
1440
|
* @param {object} [options]
|
|
1406
1441
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1407
1442
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -1443,7 +1478,9 @@ export declare class DatabaseAdminClient {
|
|
|
1443
1478
|
* * `name` - The name of the long-running operation
|
|
1444
1479
|
* * `done` - False if the operation is in progress, else true.
|
|
1445
1480
|
* * `metadata.@type` - the type of metadata. For example, the type string
|
|
1446
|
-
* for
|
|
1481
|
+
* for
|
|
1482
|
+
* {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}
|
|
1483
|
+
* is
|
|
1447
1484
|
* `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
|
|
1448
1485
|
* * `metadata.<field_name>` - any field in metadata.value.
|
|
1449
1486
|
* `metadata.@type` must be specified first if filtering on metadata
|
|
@@ -1461,14 +1498,15 @@ export declare class DatabaseAdminClient {
|
|
|
1461
1498
|
* * `done:true` - The operation is complete.
|
|
1462
1499
|
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
|
|
1463
1500
|
* `metadata.database:prod` - Returns operations where:
|
|
1464
|
-
* * The operation's metadata type is
|
|
1465
|
-
*
|
|
1466
|
-
* string "prod".
|
|
1501
|
+
* * The operation's metadata type is
|
|
1502
|
+
* {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
|
|
1503
|
+
* * The source database name of backup contains the string "prod".
|
|
1467
1504
|
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
|
|
1468
1505
|
* `(metadata.name:howl) AND` \
|
|
1469
1506
|
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
|
|
1470
1507
|
* `(error:*)` - Returns operations where:
|
|
1471
|
-
* * The operation's metadata type is
|
|
1508
|
+
* * The operation's metadata type is
|
|
1509
|
+
* {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
|
|
1472
1510
|
* * The backup name contains the string "howl".
|
|
1473
1511
|
* * The operation started before 2018-03-28T14:50:00Z.
|
|
1474
1512
|
* * The operation resulted in an error.
|
|
@@ -1476,9 +1514,9 @@ export declare class DatabaseAdminClient {
|
|
|
1476
1514
|
* `(metadata.source_backup:test) AND` \
|
|
1477
1515
|
* `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \
|
|
1478
1516
|
* `(error:*)` - Returns operations where:
|
|
1479
|
-
* * The operation's metadata type is
|
|
1480
|
-
*
|
|
1481
|
-
* "test".
|
|
1517
|
+
* * The operation's metadata type is
|
|
1518
|
+
* {@link protos.google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}.
|
|
1519
|
+
* * The source backup name contains the string "test".
|
|
1482
1520
|
* * The operation started before 2022-01-18T14:50:00Z.
|
|
1483
1521
|
* * The operation resulted in an error.
|
|
1484
1522
|
* * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
|
|
@@ -1488,12 +1526,13 @@ export declare class DatabaseAdminClient {
|
|
|
1488
1526
|
* `(metadata.source_backup:test_bkp)) AND` \
|
|
1489
1527
|
* `(error:*)` - Returns operations where:
|
|
1490
1528
|
* * The operation's metadata matches either of criteria:
|
|
1491
|
-
* * The operation's metadata type is
|
|
1492
|
-
* database
|
|
1529
|
+
* * The operation's metadata type is
|
|
1530
|
+
* {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}
|
|
1531
|
+
* AND the source database name of the backup contains the string
|
|
1493
1532
|
* "test_db"
|
|
1494
|
-
* * The operation's metadata type is
|
|
1495
|
-
*
|
|
1496
|
-
* "test_bkp"
|
|
1533
|
+
* * The operation's metadata type is
|
|
1534
|
+
* {@link protos.google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}
|
|
1535
|
+
* AND the source backup name contains the string "test_bkp"
|
|
1497
1536
|
* * The operation resulted in an error.
|
|
1498
1537
|
* @param {number} request.pageSize
|
|
1499
1538
|
* Number of operations to be returned in the response. If 0 or
|
|
@@ -1501,8 +1540,9 @@ export declare class DatabaseAdminClient {
|
|
|
1501
1540
|
* @param {string} request.pageToken
|
|
1502
1541
|
* If non-empty, `page_token` should contain a
|
|
1503
1542
|
* {@link protos.google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token|next_page_token}
|
|
1504
|
-
* from a previous
|
|
1505
|
-
*
|
|
1543
|
+
* from a previous
|
|
1544
|
+
* {@link protos.google.spanner.admin.database.v1.ListBackupOperationsResponse|ListBackupOperationsResponse}
|
|
1545
|
+
* to the same `parent` and with the same `filter`.
|
|
1506
1546
|
* @param {object} [options]
|
|
1507
1547
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1508
1548
|
* @returns {Stream}
|
|
@@ -1539,7 +1579,9 @@ export declare class DatabaseAdminClient {
|
|
|
1539
1579
|
* * `name` - The name of the long-running operation
|
|
1540
1580
|
* * `done` - False if the operation is in progress, else true.
|
|
1541
1581
|
* * `metadata.@type` - the type of metadata. For example, the type string
|
|
1542
|
-
* for
|
|
1582
|
+
* for
|
|
1583
|
+
* {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}
|
|
1584
|
+
* is
|
|
1543
1585
|
* `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
|
|
1544
1586
|
* * `metadata.<field_name>` - any field in metadata.value.
|
|
1545
1587
|
* `metadata.@type` must be specified first if filtering on metadata
|
|
@@ -1557,14 +1599,15 @@ export declare class DatabaseAdminClient {
|
|
|
1557
1599
|
* * `done:true` - The operation is complete.
|
|
1558
1600
|
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
|
|
1559
1601
|
* `metadata.database:prod` - Returns operations where:
|
|
1560
|
-
* * The operation's metadata type is
|
|
1561
|
-
*
|
|
1562
|
-
* string "prod".
|
|
1602
|
+
* * The operation's metadata type is
|
|
1603
|
+
* {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
|
|
1604
|
+
* * The source database name of backup contains the string "prod".
|
|
1563
1605
|
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
|
|
1564
1606
|
* `(metadata.name:howl) AND` \
|
|
1565
1607
|
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
|
|
1566
1608
|
* `(error:*)` - Returns operations where:
|
|
1567
|
-
* * The operation's metadata type is
|
|
1609
|
+
* * The operation's metadata type is
|
|
1610
|
+
* {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
|
|
1568
1611
|
* * The backup name contains the string "howl".
|
|
1569
1612
|
* * The operation started before 2018-03-28T14:50:00Z.
|
|
1570
1613
|
* * The operation resulted in an error.
|
|
@@ -1572,9 +1615,9 @@ export declare class DatabaseAdminClient {
|
|
|
1572
1615
|
* `(metadata.source_backup:test) AND` \
|
|
1573
1616
|
* `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \
|
|
1574
1617
|
* `(error:*)` - Returns operations where:
|
|
1575
|
-
* * The operation's metadata type is
|
|
1576
|
-
*
|
|
1577
|
-
* "test".
|
|
1618
|
+
* * The operation's metadata type is
|
|
1619
|
+
* {@link protos.google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}.
|
|
1620
|
+
* * The source backup name contains the string "test".
|
|
1578
1621
|
* * The operation started before 2022-01-18T14:50:00Z.
|
|
1579
1622
|
* * The operation resulted in an error.
|
|
1580
1623
|
* * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
|
|
@@ -1584,12 +1627,13 @@ export declare class DatabaseAdminClient {
|
|
|
1584
1627
|
* `(metadata.source_backup:test_bkp)) AND` \
|
|
1585
1628
|
* `(error:*)` - Returns operations where:
|
|
1586
1629
|
* * The operation's metadata matches either of criteria:
|
|
1587
|
-
* * The operation's metadata type is
|
|
1588
|
-
* database
|
|
1630
|
+
* * The operation's metadata type is
|
|
1631
|
+
* {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}
|
|
1632
|
+
* AND the source database name of the backup contains the string
|
|
1589
1633
|
* "test_db"
|
|
1590
|
-
* * The operation's metadata type is
|
|
1591
|
-
*
|
|
1592
|
-
* "test_bkp"
|
|
1634
|
+
* * The operation's metadata type is
|
|
1635
|
+
* {@link protos.google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}
|
|
1636
|
+
* AND the source backup name contains the string "test_bkp"
|
|
1593
1637
|
* * The operation resulted in an error.
|
|
1594
1638
|
* @param {number} request.pageSize
|
|
1595
1639
|
* Number of operations to be returned in the response. If 0 or
|
|
@@ -1597,8 +1641,9 @@ export declare class DatabaseAdminClient {
|
|
|
1597
1641
|
* @param {string} request.pageToken
|
|
1598
1642
|
* If non-empty, `page_token` should contain a
|
|
1599
1643
|
* {@link protos.google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token|next_page_token}
|
|
1600
|
-
* from a previous
|
|
1601
|
-
*
|
|
1644
|
+
* from a previous
|
|
1645
|
+
* {@link protos.google.spanner.admin.database.v1.ListBackupOperationsResponse|ListBackupOperationsResponse}
|
|
1646
|
+
* to the same `parent` and with the same `filter`.
|
|
1602
1647
|
* @param {object} [options]
|
|
1603
1648
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1604
1649
|
* @returns {Object}
|
|
@@ -1618,14 +1663,15 @@ export declare class DatabaseAdminClient {
|
|
|
1618
1663
|
* @param {string} request.parent
|
|
1619
1664
|
* Required. The database whose roles should be listed.
|
|
1620
1665
|
* Values are of the form
|
|
1621
|
-
* `projects/<project>/instances/<instance>/databases/<database
|
|
1666
|
+
* `projects/<project>/instances/<instance>/databases/<database>`.
|
|
1622
1667
|
* @param {number} request.pageSize
|
|
1623
1668
|
* Number of database roles to be returned in the response. If 0 or less,
|
|
1624
1669
|
* defaults to the server's maximum allowed page size.
|
|
1625
1670
|
* @param {string} request.pageToken
|
|
1626
1671
|
* If non-empty, `page_token` should contain a
|
|
1627
|
-
* {@link protos.google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token|next_page_token}
|
|
1628
|
-
*
|
|
1672
|
+
* {@link protos.google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token|next_page_token}
|
|
1673
|
+
* from a previous
|
|
1674
|
+
* {@link protos.google.spanner.admin.database.v1.ListDatabaseRolesResponse|ListDatabaseRolesResponse}.
|
|
1629
1675
|
* @param {object} [options]
|
|
1630
1676
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1631
1677
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -1652,14 +1698,15 @@ export declare class DatabaseAdminClient {
|
|
|
1652
1698
|
* @param {string} request.parent
|
|
1653
1699
|
* Required. The database whose roles should be listed.
|
|
1654
1700
|
* Values are of the form
|
|
1655
|
-
* `projects/<project>/instances/<instance>/databases/<database
|
|
1701
|
+
* `projects/<project>/instances/<instance>/databases/<database>`.
|
|
1656
1702
|
* @param {number} request.pageSize
|
|
1657
1703
|
* Number of database roles to be returned in the response. If 0 or less,
|
|
1658
1704
|
* defaults to the server's maximum allowed page size.
|
|
1659
1705
|
* @param {string} request.pageToken
|
|
1660
1706
|
* If non-empty, `page_token` should contain a
|
|
1661
|
-
* {@link protos.google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token|next_page_token}
|
|
1662
|
-
*
|
|
1707
|
+
* {@link protos.google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token|next_page_token}
|
|
1708
|
+
* from a previous
|
|
1709
|
+
* {@link protos.google.spanner.admin.database.v1.ListDatabaseRolesResponse|ListDatabaseRolesResponse}.
|
|
1663
1710
|
* @param {object} [options]
|
|
1664
1711
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1665
1712
|
* @returns {Stream}
|
|
@@ -1681,14 +1728,15 @@ export declare class DatabaseAdminClient {
|
|
|
1681
1728
|
* @param {string} request.parent
|
|
1682
1729
|
* Required. The database whose roles should be listed.
|
|
1683
1730
|
* Values are of the form
|
|
1684
|
-
* `projects/<project>/instances/<instance>/databases/<database
|
|
1731
|
+
* `projects/<project>/instances/<instance>/databases/<database>`.
|
|
1685
1732
|
* @param {number} request.pageSize
|
|
1686
1733
|
* Number of database roles to be returned in the response. If 0 or less,
|
|
1687
1734
|
* defaults to the server's maximum allowed page size.
|
|
1688
1735
|
* @param {string} request.pageToken
|
|
1689
1736
|
* If non-empty, `page_token` should contain a
|
|
1690
|
-
* {@link protos.google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token|next_page_token}
|
|
1691
|
-
*
|
|
1737
|
+
* {@link protos.google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token|next_page_token}
|
|
1738
|
+
* from a previous
|
|
1739
|
+
* {@link protos.google.spanner.admin.database.v1.ListDatabaseRolesResponse|ListDatabaseRolesResponse}.
|
|
1692
1740
|
* @param {object} [options]
|
|
1693
1741
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1694
1742
|
* @returns {Object}
|