Skip to content

Commit

Permalink
feat: [sql] A new field upgradable_database_versions is added to me…
Browse files Browse the repository at this point in the history
…ssage `.google.cloud.sql.v1beta4.DatabaseInstance` (#5478)

* feat: A new field `psa_write_endpoint` is added to message `.google.cloud.sql.v1.ReplicationCluster`
feat: A new value `SWITCHOVER_TO_REPLICA` is added to enum `SqlOperationType`
docs: A comment for field `satisfies_pzs` in message `.google.cloud.sql.v1.DatabaseInstance` is changed
docs: A comment for enum value `SWITCHOVER` in enum `SqlOperationType` is changed

PiperOrigin-RevId: 643109418

Source-Link: googleapis/googleapis@63f1b7b

Source-Link: googleapis/googleapis-gen@1b7b6e6
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNxbC8uT3dsQm90LnlhbWwiLCJoIjoiMWI3YjZlNjBjMGMzNzAyODE5ZWFmMjRhN2ZlMGM1MzM1YWZlMjliYSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat: A new field `preferred_secondary_zone` is added to message `.google.cloud.sql.v1beta4.CloneContext`
feat: A new field `psa_write_endpoint` is added to message `.google.cloud.sql.v1beta4.ReplicationCluster`
feat: A new value `SWITCHOVER_TO_REPLICA` is added to enum `SqlOperationType`
feat: A new value `POSTGRES_16` is added to enum `SqlDatabaseVersion`
feat: A new value `MYSQL_8_4_0` is added to enum `SqlDatabaseVersion`
docs: A comment for field `preferred_zone` in message `.google.cloud.sql.v1beta4.CloneContext` is changed
docs: A comment for field `satisfies_pzs` in message `.google.cloud.sql.v1beta4.DatabaseInstance` is changed
docs: A comment for enum value `SWITCHOVER` in enum `SqlOperationType` is changed

PiperOrigin-RevId: 644510265

Source-Link: googleapis/googleapis@6f90365

Source-Link: googleapis/googleapis-gen@c35e4b1
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNxbC8uT3dsQm90LnlhbWwiLCJoIjoiYzM1ZTRiMWVhMTQyYzE0YTQ1NzE5MjU5NDBkOWI5YWVhYmE1MDM3NiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat: A new field `upgradable_database_versions` is added to message `.google.cloud.sql.v1.DatabaseInstance`
feat: A new message `AvailableDatabaseVersion` is added
feat: A new value `UNSUPPORTED_EXTENSIONS_NOT_MIGRATED` is added to enum `SqlExternalSyncSettingErrorType`
feat: A new value `EXTENSIONS_NOT_MIGRATED` is added to enum `SqlExternalSyncSettingErrorType`
feat: A new value `PG_CRON_FLAG_ENABLED_IN_REPLICA` is added to enum `SqlExternalSyncSettingErrorType`
feat: A new value `POSTGRES_16` is added to enum `SqlDatabaseVersion`
feat: A new value `MYSQL_8_4_0` is added to enum `SqlDatabaseVersion`
docs: A comment for field `preferred_zone` in message `.google.cloud.sql.v1.CloneContext` is changed
docs: A comment for field `advanced_machine_features` in message `.google.cloud.sql.v1.Settings` is changed

PiperOrigin-RevId: 646631009

Source-Link: googleapis/googleapis@2bbcfb5

Source-Link: googleapis/googleapis-gen@784c8ea
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNxbC8uT3dsQm90LnlhbWwiLCJoIjoiNzg0YzhlYWIwOTExYmI0YjkxMmMwZmJlMmIxY2RlNzUyNTdlYWNjMyJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat: A new field `upgradable_database_versions` is added to message `.google.cloud.sql.v1beta4.DatabaseInstance`
feat: A new message `AvailableDatabaseVersion` is added
feat: A new value `UNSUPPORTED_EXTENSIONS_NOT_MIGRATED` is added to enum `SqlExternalSyncSettingErrorType`
feat: A new value `EXTENSIONS_NOT_MIGRATED` is added to enum `SqlExternalSyncSettingErrorType`
feat: A new value `PG_CRON_FLAG_ENABLED_IN_REPLICA` is added to enum `SqlExternalSyncSettingErrorType`
docs: A comment for field `advanced_machine_features` in message `.google.cloud.sql.v1beta4.Settings` is changed

PiperOrigin-RevId: 646632725

Source-Link: googleapis/googleapis@9a94427

Source-Link: googleapis/googleapis-gen@17db1f2
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNxbC8uT3dsQm90LnlhbWwiLCJoIjoiMTdkYjFmMjBhN2FlYWY1MDU2MTI1YzMwYzQzZGUxYjdiN2EyNGYyOSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Jun 26, 2024
1 parent 63900a1 commit e0f0fd2
Show file tree
Hide file tree
Showing 6 changed files with 1,465 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -971,9 +971,9 @@ message CloneContext {
// instance. Clone all databases if empty.
repeated string database_names = 9;

// Optional. (Point-in-time recovery for PostgreSQL only) Clone to an instance
// in the specified zone. If no zone is specified, clone to the same zone as
// the source instance.
// Optional. Copy clone and point-in-time recovery clone of an instance to the
// specified zone. If no zone is specified, clone to the same primary zone as
// the source instance. This field applies to all DB types.
optional string preferred_zone = 10 [(google.api.field_behavior) = OPTIONAL];
}

Expand Down Expand Up @@ -1208,8 +1208,9 @@ message DatabaseInstance {
// The start time of any upcoming scheduled maintenance for this instance.
SqlScheduledMaintenance scheduled_maintenance = 30;

// The status indicating if instance satisfiesPzs.
// Reserved for future use.
// This status indicates whether the instance satisfies PZS.
//
// The status is reserved for future use.
google.protobuf.BoolValue satisfies_pzs = 35;

// Output only. Stores the current database version running on the instance
Expand Down Expand Up @@ -1238,6 +1239,10 @@ message DatabaseInstance {
// The current software version on the instance.
string maintenance_version = 42;

// Output only. All database versions that are available for upgrade.
repeated AvailableDatabaseVersion upgradable_database_versions = 45
[(google.api.field_behavior) = OUTPUT_ONLY];

optional SqlNetworkArchitecture sql_network_architecture = 47;

// Output only. The link to service attachment of PSC instance.
Expand Down Expand Up @@ -1297,6 +1302,15 @@ message GeminiInstanceConfig {
// the event that the primary instance experiences regional failure.
// Only applicable to MySQL.
message ReplicationCluster {
// Output only. If set, it indicates this instance has a private service
// access (PSA) dns endpoint that is pointing to the primary instance of the
// cluster. If this instance is the primary, the dns should be pointing to
// this instance. After Switchover or Replica failover, this DNS endpoint
// points to the promoted instance. This is a read-only field, returned to the
// user as information. This field can exist even if a standalone instance
// does not yet have a replica, or had a DR replica that was deleted.
string psa_write_endpoint = 1 [(google.api.field_behavior) = OUTPUT_ONLY];

// Optional. If the instance is a primary instance, then this field identifies
// the disaster recovery (DR) replica. A DR replica is an optional
// configuration for Enterprise Plus edition instances. If the instance is a
Expand All @@ -1310,6 +1324,19 @@ message ReplicationCluster {
bool dr_replica = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
}

// An available database version. It can be a major or a minor version.
message AvailableDatabaseVersion {
// The version's major version name.
optional string major_version = 3;

// The database version name. For MySQL 8.0, this string provides the database
// major and minor version.
optional string name = 8;

// The database version's display name.
optional string display_name = 9;
}

// Reschedule options for maintenance windows.
message SqlInstancesRescheduleMaintenanceRequestBody {
enum RescheduleType {
Expand Down Expand Up @@ -1572,6 +1599,18 @@ message SqlExternalSyncSettingError {
// cores of the replica instance is less than 8, and the memory of the
// replica is less than 32 GB.
INSUFFICIENT_MACHINE_TIER = 44;

// The warning message indicates the unsupported extensions will not be
// migrated to the destination.
UNSUPPORTED_EXTENSIONS_NOT_MIGRATED = 45;

// The warning message indicates the pg_cron extension and settings will not
// be migrated to the destination.
EXTENSIONS_NOT_MIGRATED = 46;

// The error message indicates that pg_cron flags are enabled on the
// destination which is not supported during the migration.
PG_CRON_FLAG_ENABLED_IN_REPLICA = 47;
}

// Can be `sql#externalSyncSettingError` or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,8 @@ message Operation {
// Re-encrypts CMEK instances with latest key version.
REENCRYPT = 38;

// Switches over to replica instance from primary.
// Switches the roles of the primary and replica pair. The target instance
// should be the replica.
SWITCHOVER = 39;

// Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
Expand All @@ -994,6 +995,10 @@ message Operation {
// Maintenance typically causes the instance to be unavailable for 1-3
// minutes.
SELF_SERVICE_MAINTENANCE = 46;

// Switches a primary instance to a replica. This operation runs as part of
// a switchover operation to the original primary instance.
SWITCHOVER_TO_REPLICA = 47;
}

// The status of an operation.
Expand Down Expand Up @@ -1327,8 +1332,8 @@ message Settings {
// Server timezone, relevant only for Cloud SQL for SQL Server.
string time_zone = 34;

// Specifies advance machine configuration for the instance
// relevant only for SQL Server.
// Specifies advanced machine configuration for the instances relevant only
// for SQL Server.
AdvancedMachineFeatures advanced_machine_features = 35;

// Configuration for data cache.
Expand Down Expand Up @@ -1503,6 +1508,9 @@ enum SqlDatabaseVersion {
// The database version is PostgreSQL 15.
POSTGRES_15 = 172;

// The database version is PostgreSQL 16.
POSTGRES_16 = 272;

// The database version is MySQL 8.
MYSQL_8_0 = 20;

Expand Down Expand Up @@ -1557,6 +1565,9 @@ enum SqlDatabaseVersion {
// The database version is MySQL 8.4.
MYSQL_8_4 = 398;

// The database version is MySQL 8.4 and the patch version is 0.
MYSQL_8_4_0 = 399;

// The database version is SQL Server 2019 Standard.
SQLSERVER_2019_STANDARD = 26;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,17 @@ message CloneContext {
// instance. Clone all databases if empty.
repeated string database_names = 9;

// Optional. (Point-in-time recovery for PostgreSQL only) Clone to an instance
// in the specified zone. If no zone is specified, clone to the same zone as
// Optional. Copy clone and point-in-time recovery clone of an instance to the
// specified zone. If no zone is specified, clone to the same primary zone as
// the source instance.
optional string preferred_zone = 10 [(google.api.field_behavior) = OPTIONAL];

// Optional. Copy clone and point-in-time recovery clone of a regional
// instance in the specified zones. If not specified, clone to the same
// secondary zone as the source instance. This value cannot be the same as the
// preferred_zone field.
optional string preferred_secondary_zone = 11
[(google.api.field_behavior) = OPTIONAL];
}

// Represents a SQL database on the Cloud SQL instance.
Expand Down Expand Up @@ -602,8 +609,9 @@ message DatabaseInstance {
// The start time of any upcoming scheduled maintenance for this instance.
SqlScheduledMaintenance scheduled_maintenance = 30;

// The status indicating if instance satisfiesPzs.
// Reserved for future use.
// This status indicates whether the instance satisfies PZS.
//
// The status is reserved for future use.
google.protobuf.BoolValue satisfies_pzs = 35;

// Output only. Stores the current database version running on the instance
Expand Down Expand Up @@ -632,6 +640,10 @@ message DatabaseInstance {
// The current software version on the instance.
string maintenance_version = 42;

// Output only. All database versions that are available for upgrade.
repeated AvailableDatabaseVersion upgradable_database_versions = 45
[(google.api.field_behavior) = OUTPUT_ONLY];

// The SQL network architecture for the instance.
optional SqlNetworkArchitecture sql_network_architecture = 47;

Expand Down Expand Up @@ -691,6 +703,16 @@ message GeminiInstanceConfig {
// in the event that the primary instance has regional failure.
// Only applicable to MySQL.
message ReplicationCluster {
// Output only. If set, it indicates this instance has a private service
// access (PSA) dns endpoint that is pointing to the primary instance of the
// cluster. If this instance is the primary, the dns should be pointing to
// this instance. After Switchover or Replica failover, this DNS endpoint
// points to the promoted instance. This is a read-only field, returned to the
// user as information. This field can exist even if a standalone instance
// does not yet have a replica, or had a DR replica that was deleted.
optional string psa_write_endpoint = 1
[(google.api.field_behavior) = OUTPUT_ONLY];

// Optional. If the instance is a primary instance, then this field identifies
// the disaster recovery (DR) replica. A DR replica is an optional
// configuration for Enterprise Plus edition instances. If the instance is a
Expand All @@ -705,6 +727,19 @@ message ReplicationCluster {
optional bool dr_replica = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
}

// An available database version. It can be a major or a minor version.
message AvailableDatabaseVersion {
// The version's major version name.
optional string major_version = 3;

// The database version name. For MySQL 8.0, this string provides the database
// major and minor version.
optional string name = 8;

// The database version's display name.
optional string display_name = 9;
}

// Database list response.
message DatabasesListResponse {
// This is always `sql#databasesList`.
Expand Down Expand Up @@ -1389,6 +1424,18 @@ message SqlExternalSyncSettingError {
// cores of the replica instance is less than 8, and the memory of the
// replica is less than 32 GB.
INSUFFICIENT_MACHINE_TIER = 44;

// The warning message indicates the unsupported extensions will not be
// migrated to the destination.
UNSUPPORTED_EXTENSIONS_NOT_MIGRATED = 45;

// The warning message indicates the pg_cron extension and settings will not
// be migrated to the destination.
EXTENSIONS_NOT_MIGRATED = 46;

// The error message indicates that pg_cron flags are enabled on the
// destination which is not supported during the migration.
PG_CRON_FLAG_ENABLED_IN_REPLICA = 47;
}

// Can be `sql#externalSyncSettingError` or
Expand Down Expand Up @@ -1838,7 +1885,8 @@ message Operation {
// Re-encrypts CMEK instances with latest key version.
REENCRYPT = 38;

// Switches over to replica instance from primary.
// Switches the roles of the primary and replica pair. The target instance
// should be the replica.
SWITCHOVER = 39;

// Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
Expand All @@ -1865,6 +1913,10 @@ message Operation {
// Maintenance typically causes the instance to be unavailable for 1-3
// minutes.
SELF_SERVICE_MAINTENANCE = 46;

// Switches a primary instance to a replica. This operation runs as part of
// a switchover operation to the original primary instance.
SWITCHOVER_TO_REPLICA = 47;
}

// The status of an operation.
Expand Down Expand Up @@ -2264,8 +2316,8 @@ message Settings {
// Server timezone, relevant only for Cloud SQL for SQL Server.
string time_zone = 34;

// Specifies advance machine configuration for the instance
// relevant only for SQL Server.
// Specifies advanced machine configuration for the instances relevant only
// for SQL Server.
AdvancedMachineFeatures advanced_machine_features = 35;

// Configuration for data cache.
Expand Down Expand Up @@ -2599,6 +2651,9 @@ enum SqlDatabaseVersion {
// The database version is PostgreSQL 15.
POSTGRES_15 = 172;

// The database version is PostgreSQL 16.
POSTGRES_16 = 272;

// The database version is MySQL 8.
MYSQL_8_0 = 20;

Expand Down Expand Up @@ -2653,6 +2708,9 @@ enum SqlDatabaseVersion {
// The database version is MySQL 8.4.
MYSQL_8_4 = 398;

// The database version is MySQL 8.4 and the patch version is 0.
MYSQL_8_4_0 = 399;

// The database version is SQL Server 2019 Standard.
SQLSERVER_2019_STANDARD = 26;

Expand Down
Loading

0 comments on commit e0f0fd2

Please sign in to comment.