Skip to content

Commit a903eec

Browse files
authored
Merge branch 'googleapis:main' into main
2 parents 8875f2c + 5292e03 commit a903eec

16 files changed

+1322
-162
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ system-test/*key.json
1212
.DS_Store
1313
package-lock.json
1414
__pycache__
15-
.vscode

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"events-intercept": "^2.0.0",
6767
"extend": "^3.0.2",
6868
"google-auth-library": "^9.0.0",
69-
"google-gax": "4.3.1",
69+
"google-gax": "4.3.2",
7070
"grpc-gcp": "^1.0.0",
7171
"is": "^3.2.1",
7272
"lodash.snakecase": "^4.1.1",

protos/google/spanner/admin/instance/v1/common.proto

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -40,3 +40,17 @@ message OperationProgress {
4040
// successfully.
4141
google.protobuf.Timestamp end_time = 3;
4242
}
43+
44+
// Indicates the expected fulfillment period of an operation.
45+
enum FulfillmentPeriod {
46+
// Not specified.
47+
FULFILLMENT_PERIOD_UNSPECIFIED = 0;
48+
49+
// Normal fulfillment period. The operation is expected to complete within
50+
// minutes.
51+
FULFILLMENT_PERIOD_NORMAL = 1;
52+
53+
// Extended fulfillment period. It can take up to an hour for the operation
54+
// to complete.
55+
FULFILLMENT_PERIOD_EXTENDED = 2;
56+
}

protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,6 +1282,9 @@ message CreateInstanceMetadata {
12821282

12831283
// The time at which this operation failed or was completed successfully.
12841284
google.protobuf.Timestamp end_time = 4;
1285+
1286+
// The expected fulfillment period of this create operation.
1287+
FulfillmentPeriod expected_fulfillment_period = 5;
12851288
}
12861289

12871290
// Metadata type for the operation returned by
@@ -1302,6 +1305,9 @@ message UpdateInstanceMetadata {
13021305

13031306
// The time at which this operation failed or was completed successfully.
13041307
google.protobuf.Timestamp end_time = 4;
1308+
1309+
// The expected fulfillment period of this update operation.
1310+
FulfillmentPeriod expected_fulfillment_period = 5;
13051311
}
13061312

13071313
// Metadata type for the operation returned by

protos/google/spanner/executor/v1/cloud_executor.proto

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ message SpannerAction {
7878
// database path if it applies to the same database as the previous action.
7979
string database_path = 1;
8080

81+
// Configuration options for Spanner backend
82+
SpannerOptions spanner_options = 2;
83+
8184
// Action represents a spanner action kind, there will only be one action kind
8285
// per SpannerAction.
8386
oneof action {
@@ -565,8 +568,8 @@ message AdminAction {
565568
// Action that cancels an operation.
566569
CancelOperationAction cancel_operation = 26;
567570

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;
570573
}
571574
}
572575

@@ -772,9 +775,9 @@ message DropCloudDatabaseAction {
772775
string database_id = 3;
773776
}
774777

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.
778781
optional string database_uri = 1;
779782

780783
// The locations of the serving regions, e.g. "asia-south1".
@@ -877,6 +880,10 @@ message RestoreCloudDatabaseAction {
877880
// The id of the database to create and restore to, e.g. "db0". Note that this
878881
// database must not already exist.
879882
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;
880887
}
881888

882889
// Action that gets a Cloud Spanner database.
@@ -916,6 +923,10 @@ message CreateCloudBackupAction {
916923
// [earliest_version_time, NOW], where earliest_version_time is retrieved by
917924
// cloud spanner frontend API (See details: go/cs-pitr-lite-design).
918925
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;
919930
}
920931

921932
// Action that copies a Cloud Spanner database backup.
@@ -1481,3 +1492,16 @@ message HeartbeatRecord {
14811492
// Timestamp for this heartbeat check.
14821493
google.protobuf.Timestamp heartbeat_time = 1;
14831494
}
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+
}

0 commit comments

Comments
 (0)