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