Skip to content

Commit 9f3335a

Browse files
Google APIscopybara-github
authored andcommitted
feat: A new field max_chargeable_bytes is added to message .google.cloud.sql.v1.BackupRun
feat: A new enum `CaMode` is added feat: A new field `server_ca_mode` is added to message `.google.cloud.sql.v1.ConnectSettings` feat: A new field `satisfies_pzi` is added to message `.google.cloud.sql.v1.DatabaseInstance` feat: A new field `switch_transaction_logs_to_cloud_storage_enabled` is added to message `.google.cloud.sql.v1.DatabaseInstance` feat: A new value `UNSUPPORTED_COLUMNS` is added to enum `SqlExternalSyncSettingErrorType` feat: A new enum `CaMode` is added feat: A new field `server_ca_mode` is added to message `.google.cloud.sql.v1.IpConfiguration` feat: A new value `MAJOR_VERSION_UPGRADE` is added to enum `SqlOperationType` docs: A comment for method `AddServerCa` in service `SqlInstancesService` is changed docs: A comment for method `RotateServerCa` in service `SqlInstancesService` is changed PiperOrigin-RevId: 665459194
1 parent 5988300 commit 9f3335a

4 files changed

Lines changed: 61 additions & 2 deletions

File tree

google/cloud/sql/v1/cloud_sql_backup_runs.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ message BackupRun {
187187
// Backup time zone to prevent restores to an instance with
188188
// a different time zone. Now relevant only for SQL Server.
189189
string time_zone = 23;
190+
191+
// Output only. The maximum chargeable bytes for the backup.
192+
optional int64 max_chargeable_bytes = 24
193+
[(google.api.field_behavior) = OUTPUT_ONLY];
190194
}
191195

192196
// Backup run list results.

google/cloud/sql/v1/cloud_sql_connect.proto

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,19 @@ message GetConnectSettingsRequest {
7373

7474
// Connect settings retrieval response.
7575
message ConnectSettings {
76+
// Various Certificate Authority (CA) modes for certificate signing.
77+
enum CaMode {
78+
// CA mode is unknown.
79+
CA_MODE_UNSPECIFIED = 0;
80+
81+
// Google-managed self-signed internal CA.
82+
GOOGLE_MANAGED_INTERNAL_CA = 1;
83+
84+
// Google-managed regional CA part of root CA hierarchy hosted on Google
85+
// Cloud's Certificate Authority Service (CAS).
86+
GOOGLE_MANAGED_CAS_CA = 2;
87+
}
88+
7689
// This is always `sql#connectSettings`.
7790
string kind = 1;
7891

@@ -110,6 +123,9 @@ message ConnectSettings {
110123

111124
// The dns name of the instance.
112125
string dns_name = 34;
126+
127+
// Specify what type of CA is used for the server certificate.
128+
CaMode server_ca_mode = 35;
113129
}
114130

115131
// Ephemeral certificate creation request.

google/cloud/sql/v1/cloud_sql_instances.proto

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ service SqlInstancesService {
4040
// instance. Required to prepare for a certificate rotation. If a CA version
4141
// was previously added but never used in a certificate rotation, this
4242
// operation replaces that version. There cannot be more than one CA version
43-
// waiting to be rotated in.
43+
// waiting to be rotated in. For instances that have enabled Certificate
44+
// Authority Service (CAS) based server CA, please use AddServerCertificate to
45+
// add a new server certificate.
4446
rpc AddServerCa(SqlInstancesAddServerCaRequest) returns (Operation) {
4547
option (google.api.http) = {
4648
post: "/v1/projects/{project}/instances/{instance}/addServerCa"
@@ -207,7 +209,9 @@ service SqlInstancesService {
207209
}
208210

209211
// Rotates the server certificate to one signed by the Certificate Authority
210-
// (CA) version previously added with the addServerCA method.
212+
// (CA) version previously added with the addServerCA method. For instances
213+
// that have enabled Certificate Authority Service (CAS) based server CA,
214+
// please use RotateServerCertificate to rotate the server certificate.
211215
rpc RotateServerCa(SqlInstancesRotateServerCaRequest) returns (Operation) {
212216
option (google.api.http) = {
213217
post: "/v1/projects/{project}/instances/{instance}/rotateServerCa"
@@ -1269,6 +1273,18 @@ message DatabaseInstance {
12691273

12701274
// Gemini instance configuration.
12711275
optional GeminiInstanceConfig gemini_config = 55;
1276+
1277+
// Output only. This status indicates whether the instance satisfies PZI.
1278+
//
1279+
// The status is reserved for future use.
1280+
google.protobuf.BoolValue satisfies_pzi = 56
1281+
[(google.api.field_behavior) = OUTPUT_ONLY];
1282+
1283+
// Input only. Whether Cloud SQL is enabled to switch storing point-in-time
1284+
// recovery log files from a data disk to Cloud Storage.
1285+
optional google.protobuf.BoolValue
1286+
switch_transaction_logs_to_cloud_storage_enabled = 57
1287+
[(google.api.field_behavior) = INPUT_ONLY];
12721288
}
12731289

12741290
// Gemini instance configuration.
@@ -1617,6 +1633,10 @@ message SqlExternalSyncSettingError {
16171633
// data to the destination instance, you must enable the PGAudit extension
16181634
// on the instance.
16191635
EXTENSIONS_NOT_ENABLED_IN_REPLICA = 48;
1636+
1637+
// The source database has generated columns that can't be migrated. Please
1638+
// change them to regular columns before migration.
1639+
UNSUPPORTED_COLUMNS = 49;
16201640
}
16211641

16221642
// Can be `sql#externalSyncSettingError` or

google/cloud/sql/v1/cloud_sql_resources.proto

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,19 @@ message IpConfiguration {
636636
TRUSTED_CLIENT_CERTIFICATE_REQUIRED = 3;
637637
}
638638

639+
// Various Certificate Authority (CA) modes for certificate signing.
640+
enum CaMode {
641+
// CA mode is unknown.
642+
CA_MODE_UNSPECIFIED = 0;
643+
644+
// Google-managed self-signed internal CA.
645+
GOOGLE_MANAGED_INTERNAL_CA = 1;
646+
647+
// Google-managed regional CA part of root CA hierarchy hosted on Google
648+
// Cloud's Certificate Authority Service (CAS).
649+
GOOGLE_MANAGED_CAS_CA = 2;
650+
}
651+
639652
// Whether the instance is assigned a public IP address or not.
640653
google.protobuf.BoolValue ipv4_enabled = 1;
641654

@@ -699,6 +712,9 @@ message IpConfiguration {
699712

700713
// PSC settings for this instance.
701714
optional PscConfig psc_config = 9;
715+
716+
// Specify what type of CA is used for the server certificate.
717+
optional CaMode server_ca_mode = 10;
702718
}
703719

704720
// PSC settings for a Cloud SQL instance.
@@ -1035,6 +1051,9 @@ message Operation {
10351051
// Switches a primary instance to a replica. This operation runs as part of
10361052
// a switchover operation to the original primary instance.
10371053
SWITCHOVER_TO_REPLICA = 47;
1054+
1055+
// Updates the major version of a Cloud SQL instance.
1056+
MAJOR_VERSION_UPGRADE = 48;
10381057
}
10391058

10401059
// The status of an operation.

0 commit comments

Comments
 (0)