@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.
Files changed (40) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +4 -0
  3. package/build/protos/google/spanner/admin/database/v1/backup.proto +190 -109
  4. package/build/protos/google/spanner/admin/database/v1/common.proto +30 -10
  5. package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +166 -100
  6. package/build/protos/google/spanner/admin/instance/v1/common.proto +15 -1
  7. package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +6 -0
  8. package/build/protos/google/spanner/executor/v1/cloud_executor.proto +30 -6
  9. package/build/protos/google/spanner/v1/commit_response.proto +1 -1
  10. package/build/protos/google/spanner/v1/keys.proto +1 -1
  11. package/build/protos/google/spanner/v1/mutation.proto +1 -1
  12. package/build/protos/google/spanner/v1/query_plan.proto +1 -1
  13. package/build/protos/google/spanner/v1/result_set.proto +1 -1
  14. package/build/protos/google/spanner/v1/spanner.proto +1 -1
  15. package/build/protos/google/spanner/v1/transaction.proto +1 -1
  16. package/build/protos/google/spanner/v1/type.proto +1 -1
  17. package/build/protos/protos.d.ts +310 -40
  18. package/build/protos/protos.js +942 -89
  19. package/build/protos/protos.json +115 -5
  20. package/build/src/codec.d.ts +56 -1
  21. package/build/src/codec.js +109 -4
  22. package/build/src/database.d.ts +41 -5
  23. package/build/src/database.js +37 -2
  24. package/build/src/index.d.ts +50 -1
  25. package/build/src/index.js +53 -0
  26. package/build/src/partial-result-stream.d.ts +41 -0
  27. package/build/src/partial-result-stream.js +6 -1
  28. package/build/src/table.d.ts +1 -0
  29. package/build/src/table.js +36 -2
  30. package/build/src/transaction-runner.d.ts +1 -0
  31. package/build/src/transaction-runner.js +3 -0
  32. package/build/src/transaction.d.ts +55 -0
  33. package/build/src/transaction.js +28 -2
  34. package/build/src/v1/database_admin_client.d.ts +175 -126
  35. package/build/src/v1/database_admin_client.js +95 -64
  36. package/build/src/v1/instance_admin_client.js +10 -7
  37. package/build/src/v1/spanner_client.js +10 -7
  38. package/build/src/v1/spanner_client_config.json +15 -14
  39. package/build/src/v1/spanner_executor_proxy_client.js +10 -7
  40. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
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 reconfigures a Cloud Spanner database.
569
- ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;
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 reconfigures a Cloud Spanner database.
776
- message ReconfigureCloudDatabaseAction {
777
- // The fully qualified uri of the database to be reconfigured.
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
+ }
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
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.
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
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.
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
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.
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
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.
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
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.
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
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.
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
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.
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
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.