@google-cloud/spanner 7.6.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 +29 -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 +15 -1
- package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +6 -0
- package/build/protos/google/spanner/executor/v1/cloud_executor.proto +30 -6
- 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 +310 -40
- package/build/protos/protos.js +942 -89
- package/build/protos/protos.json +115 -5
- package/build/src/codec.d.ts +56 -1
- package/build/src/codec.js +109 -4
- package/build/src/database.d.ts +41 -5
- package/build/src/database.js +37 -2
- 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 +95 -64
- package/build/src/v1/instance_admin_client.js +10 -7
- package/build/src/v1/spanner_client.js +10 -7
- package/build/src/v1/spanner_client_config.json +15 -14
- package/build/src/v1/spanner_executor_proxy_client.js +10 -7
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -78,6 +78,9 @@ message SpannerAction {
|
|
|
78
78
|
// database path if it applies to the same database as the previous action.
|
|
79
79
|
string database_path = 1;
|
|
80
80
|
|
|
81
|
+
// Configuration options for Spanner backend
|
|
82
|
+
SpannerOptions spanner_options = 2;
|
|
83
|
+
|
|
81
84
|
// Action represents a spanner action kind, there will only be one action kind
|
|
82
85
|
// per SpannerAction.
|
|
83
86
|
oneof action {
|
|
@@ -565,8 +568,8 @@ message AdminAction {
|
|
|
565
568
|
// Action that cancels an operation.
|
|
566
569
|
CancelOperationAction cancel_operation = 26;
|
|
567
570
|
|
|
568
|
-
// Action that
|
|
569
|
-
|
|
571
|
+
// Action that changes quorum of a Cloud Spanner database.
|
|
572
|
+
ChangeQuorumCloudDatabaseAction change_quorum_cloud_database = 28;
|
|
570
573
|
}
|
|
571
574
|
}
|
|
572
575
|
|
|
@@ -772,9 +775,9 @@ message DropCloudDatabaseAction {
|
|
|
772
775
|
string database_id = 3;
|
|
773
776
|
}
|
|
774
777
|
|
|
775
|
-
// Action that
|
|
776
|
-
message
|
|
777
|
-
// The fully qualified uri of the database to be
|
|
778
|
+
// Action that changes quorum of a Cloud Spanner database.
|
|
779
|
+
message ChangeQuorumCloudDatabaseAction {
|
|
780
|
+
// The fully qualified uri of the database whose quorum has to be changed.
|
|
778
781
|
optional string database_uri = 1;
|
|
779
782
|
|
|
780
783
|
// The locations of the serving regions, e.g. "asia-south1".
|
|
@@ -877,6 +880,10 @@ message RestoreCloudDatabaseAction {
|
|
|
877
880
|
// The id of the database to create and restore to, e.g. "db0". Note that this
|
|
878
881
|
// database must not already exist.
|
|
879
882
|
string database_id = 5;
|
|
883
|
+
|
|
884
|
+
// The KMS key(s) used to encrypt the restored database to be created if the
|
|
885
|
+
// restored database should be CMEK protected.
|
|
886
|
+
google.spanner.admin.database.v1.EncryptionConfig encryption_config = 7;
|
|
880
887
|
}
|
|
881
888
|
|
|
882
889
|
// Action that gets a Cloud Spanner database.
|
|
@@ -916,6 +923,10 @@ message CreateCloudBackupAction {
|
|
|
916
923
|
// [earliest_version_time, NOW], where earliest_version_time is retrieved by
|
|
917
924
|
// cloud spanner frontend API (See details: go/cs-pitr-lite-design).
|
|
918
925
|
optional google.protobuf.Timestamp version_time = 6;
|
|
926
|
+
|
|
927
|
+
// The KMS key(s) used to encrypt the backup to be created if the backup
|
|
928
|
+
// should be CMEK protected.
|
|
929
|
+
google.spanner.admin.database.v1.EncryptionConfig encryption_config = 7;
|
|
919
930
|
}
|
|
920
931
|
|
|
921
932
|
// Action that copies a Cloud Spanner database backup.
|
|
@@ -1481,3 +1492,16 @@ message HeartbeatRecord {
|
|
|
1481
1492
|
// Timestamp for this heartbeat check.
|
|
1482
1493
|
google.protobuf.Timestamp heartbeat_time = 1;
|
|
1483
1494
|
}
|
|
1495
|
+
|
|
1496
|
+
// Options for Cloud Spanner Service.
|
|
1497
|
+
message SpannerOptions {
|
|
1498
|
+
// Options for configuring the session pool
|
|
1499
|
+
SessionPoolOptions session_pool_options = 1;
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
// Options for the session pool used by the DatabaseClient.
|
|
1503
|
+
message SessionPoolOptions {
|
|
1504
|
+
// passing this as true, will make applicable RPCs use multiplexed sessions
|
|
1505
|
+
// instead of regular sessions
|
|
1506
|
+
bool use_multiplexed = 1;
|
|
1507
|
+
}
|