Skip to content

Commit

Permalink
feat: add new fields to DatabaseInstance message in the cloud_sql_r…
Browse files Browse the repository at this point in the history
…esources.proto and cleanup proto descriptions

PiperOrigin-RevId: 424175097
  • Loading branch information
Google APIs authored and Copybara-Service committed Jan 25, 2022
1 parent 853e8a2 commit ce08228
Show file tree
Hide file tree
Showing 5 changed files with 242 additions and 217 deletions.
2 changes: 1 addition & 1 deletion google/cloud/sql/v1beta4/cloud_sql.proto
Expand Up @@ -17,9 +17,9 @@ syntax = "proto3";
package google.cloud.sql.v1beta4;

import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/field_behavior.proto";
import "google/cloud/sql/v1beta4/cloud_sql_resources.proto";
import "google/api/client.proto";

option go_package = "google.golang.org/genproto/googleapis/cloud/sql/v1beta4;sql";
option java_multiple_files = true;
Expand Down
28 changes: 15 additions & 13 deletions google/cloud/sql/v1beta4/cloud_sql_connect.proto
Expand Up @@ -17,11 +17,11 @@ syntax = "proto3";
package google.cloud.sql.v1beta4;

import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/field_behavior.proto";
import "google/cloud/sql/v1beta4/cloud_sql_resources.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
import "google/api/client.proto";

option go_package = "google.golang.org/genproto/googleapis/cloud/sql/v1beta4;sql";
option java_multiple_files = true;
Expand Down Expand Up @@ -79,24 +79,26 @@ message ConnectSettings {
// The assigned IP addresses for the instance.
repeated IpMapping ip_addresses = 3;

// The cloud region for the instance. e.g. **us-central1**, **europe-west1**.
// The cloud region for the instance. e.g. `us-central1`, `europe-west1`.
// The region cannot be changed after instance creation.
string region = 4;

// The database engine type and version. The **databaseVersion**
// The database engine type and version. The `databaseVersion`
// field cannot be changed after instance creation.
// MySQL instances: **MYSQL_8_0**, **MYSQL_5_7** (default),
// or **MYSQL_5_6**.
// PostgreSQL instances: **POSTGRES_9_6**, **POSTGRES_10**,
// **POSTGRES_11** or **POSTGRES_12** (default).
// SQL Server instances: **SQLSERVER_2017_STANDARD** (default),
// **SQLSERVER_2017_ENTERPRISE**, **SQLSERVER_2017_EXPRESS**, or
// **SQLSERVER_2017_WEB**.
// MySQL instances: `MYSQL_8_0`, `MYSQL_5_7` (default),
// or `MYSQL_5_6`.
// PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`,
// `POSTGRES_11` or `POSTGRES_12` (default), `POSTGRES_13`, or `POSTGRES_14`.
// SQL Server instances: `SQLSERVER_2017_STANDARD` (default),
// `SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`,
// `SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`,
// `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or
// `SQLSERVER_2019_WEB`.
SqlDatabaseVersion database_version = 31;

// **SECOND_GEN**: Cloud SQL database instance.
// **EXTERNAL**: A database server that is not managed by Google.
// This property is read-only; use the **tier** property in the **settings**
// `SECOND_GEN`: Cloud SQL database instance.
// `EXTERNAL`: A database server that is not managed by Google.
// This property is read-only; use the `tier` property in the `settings`
// object to determine the database type.
SqlBackendType backend_type = 32;
}
Expand Down

0 comments on commit ce08228

Please sign in to comment.