Skip to content

Commit

Permalink
feat: Add SessionPoolOptions, SpannerOptions protos in executor protos
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 621265883
  • Loading branch information
Google APIs authored and Copybara-Service committed Apr 2, 2024
1 parent a74854d commit fed9845
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions google/spanner/executor/v1/cloud_executor.proto
Expand Up @@ -78,6 +78,9 @@ message SpannerAction {
// database path if it applies to the same database as the previous action.
string database_path = 1;

// Configuration options for Spanner backend
SpannerOptions spanner_options = 2;

// Action represents a spanner action kind, there will only be one action kind
// per SpannerAction.
oneof action {
Expand Down Expand Up @@ -565,8 +568,8 @@ message AdminAction {
// Action that cancels an operation.
CancelOperationAction cancel_operation = 26;

// Action that reconfigures a Cloud Spanner database.
ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;
// Action that changes quorum of a Cloud Spanner database.
ChangeQuorumCloudDatabaseAction change_quorum_cloud_database = 28;
}
}

Expand Down Expand Up @@ -772,9 +775,9 @@ message DropCloudDatabaseAction {
string database_id = 3;
}

// Action that reconfigures a Cloud Spanner database.
message ReconfigureCloudDatabaseAction {
// The fully qualified uri of the database to be reconfigured.
// Action that changes quorum of a Cloud Spanner database.
message ChangeQuorumCloudDatabaseAction {
// The fully qualified uri of the database whose quorum has to be changed.
optional string database_uri = 1;

// The locations of the serving regions, e.g. "asia-south1".
Expand Down Expand Up @@ -877,6 +880,10 @@ message RestoreCloudDatabaseAction {
// The id of the database to create and restore to, e.g. "db0". Note that this
// database must not already exist.
string database_id = 5;

// The KMS key(s) used to encrypt the restored database to be created if the
// restored database should be CMEK protected.
google.spanner.admin.database.v1.EncryptionConfig encryption_config = 7;
}

// Action that gets a Cloud Spanner database.
Expand Down Expand Up @@ -916,6 +923,10 @@ message CreateCloudBackupAction {
// [earliest_version_time, NOW], where earliest_version_time is retrieved by
// cloud spanner frontend API (See details: go/cs-pitr-lite-design).
optional google.protobuf.Timestamp version_time = 6;

// The KMS key(s) used to encrypt the backup to be created if the backup
// should be CMEK protected.
google.spanner.admin.database.v1.EncryptionConfig encryption_config = 7;
}

// Action that copies a Cloud Spanner database backup.
Expand Down Expand Up @@ -1481,3 +1492,16 @@ message HeartbeatRecord {
// Timestamp for this heartbeat check.
google.protobuf.Timestamp heartbeat_time = 1;
}

// Options for Cloud Spanner Service.
message SpannerOptions {
// Options for configuring the session pool
SessionPoolOptions session_pool_options = 1;
}

// Options for the session pool used by the DatabaseClient.
message SessionPoolOptions {
// passing this as true, will make applicable RPCs use multiplexed sessions
// instead of regular sessions
bool use_multiplexed = 1;
}

0 comments on commit fed9845

Please sign in to comment.