Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/google-cloud-sql/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
**/node_modules
**/.coverage
build/
docs/
protos/
system-test/
samples/generated/
4 changes: 4 additions & 0 deletions packages/google-cloud-sql/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./node_modules/gts",
"root": true
}
4 changes: 2 additions & 2 deletions packages/google-cloud-sql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ More Information: [Google Cloud Platform Launch Stages][launch_stages]

## Contributing

Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-sql/CONTRIBUTING.md).
Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md).

Please note that this `README.md`
and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
Expand All @@ -251,7 +251,7 @@ are generated from a central template.

Apache Version 2.0

See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-sql/LICENSE)
See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)

[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
[projects]: https://console.cloud.google.com/project
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ message SqlInstancesCloneRequest {
// not include the project ID.
string instance = 1 [(google.api.field_behavior) = REQUIRED];

// Required. Project ID of the source as well as the clone Cloud SQL instance.
// Required. Project ID of the source Cloud SQL instance.
string project = 2 [(google.api.field_behavior) = REQUIRED];

InstancesCloneRequest body = 100 [(google.api.field_behavior) = REQUIRED];
Expand Down Expand Up @@ -1366,6 +1366,20 @@ message PointInTimeRestoreContext {
// instance. This value cannot be the same as the preferred_zone field.
optional string preferred_secondary_zone = 9
[(google.api.field_behavior) = OPTIONAL];

// Optional. Specifies the instance settings that will be overridden from the
// source instance. This field is only applicable for cross project PITRs.
DatabaseInstance target_instance_settings = 11
[(google.api.field_behavior) = OPTIONAL];

// Optional. Specifies the instance settings that will be cleared from the
// source instance. This field is only applicable for cross project PITRs.
repeated string target_instance_clear_settings_field_names = 12
[(google.api.field_behavior) = OPTIONAL];

// Optional. The region of the target instance where the datasource will be
// restored. For example: "us-central1".
optional string region = 13 [(google.api.field_behavior) = OPTIONAL];
}

// Binary log coordinates.
Expand Down Expand Up @@ -2313,7 +2327,7 @@ message ExecuteSqlPayload {

// Credentials for the database connection.
oneof user_password {
// Optional. When set to true, the API caller identity associated with the
// Optional. When set to `true`, the API caller identity associated with the
// request is used for database authentication. The API caller must be an
// IAM user in the database.
bool auto_iam_authn = 11 [(google.api.field_behavior) = OPTIONAL];
Expand Down Expand Up @@ -2510,4 +2524,7 @@ enum SqlSuspensionReason {

// The KMS key used by the instance is either revoked or denied access to
KMS_KEY_ISSUE = 5;

// The project is suspended due to abuse detected by Ares.
PROJECT_ABUSE = 8;
}
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,24 @@ message PscConfig {
// authorized to connect via PSC interface.
// format: projects/PROJECT/regions/REGION/networkAttachments/ID
string network_attachment_uri = 4 [(google.api.field_behavior) = OPTIONAL];

// Optional. Indicates whether PSC DNS automation is enabled for this
// instance. When enabled, Cloud SQL provisions a universal DNS record across
// all networks configured with Private Service Connect (PSC)
// auto-connections. This will default to true for new instances when Private
// Service Connect is enabled.
optional bool psc_auto_dns_enabled = 5
[(google.api.field_behavior) = OPTIONAL];

// Optional. Indicates whether PSC write endpoint DNS automation is enabled
// for this instance. When enabled, Cloud SQL provisions a universal global
// DNS record across all networks configured with Private Service Connect
// (PSC) auto-connections that always points to the cluster primary instance.
// This feature is only supported for Enterprise Plus edition.
// This will default to true for new Enterprise Plus instances when
// `psc_auto_dns_enabled` is enabled.
optional bool psc_write_endpoint_dns_enabled = 6
[(google.api.field_behavior) = OPTIONAL];
}

// Settings for an automatically-setup Private Service Connect consumer endpoint
Expand All @@ -937,7 +955,7 @@ message PscAutoConnectionConfig {
// Optional. This is the project ID of consumer service project of this
// consumer endpoint.
//
// Optional. This is only applicable if consumer_network is a shared vpc
// This is only applicable if `consumer_network` is a shared VPC
// network.
string consumer_project = 1 [(google.api.field_behavior) = OPTIONAL];

Expand Down Expand Up @@ -1340,6 +1358,9 @@ message Operation {

// Creates a Cloud SQL read pool instance.
CREATE_READ_POOL = 53;

// Pre-checks the major version upgrade operation.
PRE_CHECK_MAJOR_VERSION_UPGRADE = 54;
}

// The status of an operation.
Expand Down Expand Up @@ -1769,6 +1790,11 @@ message Settings {
optional ReadPoolAutoScaleConfig read_pool_auto_scale_config = 48
[(google.api.field_behavior) = OPTIONAL];

// Optional. Whether the replica is in accelerated mode. This feature is in
// private preview and requires allowlisting to take effect.
google.protobuf.BoolValue accelerated_replica_mode = 49
[(google.api.field_behavior) = OPTIONAL];

// Optional. Cloud SQL for MySQL auto-upgrade configuration. When this
// parameter is set to true, auto-upgrade is enabled for MySQL 8.0 minor
// versions. The MySQL version must be 8.0.35 or higher.
Expand All @@ -1789,31 +1815,32 @@ message Settings {
[(google.api.field_behavior) = OPTIONAL];
}

// Performance Capture configuration.
// Performance capture configuration.
message PerformanceCaptureConfig {
// Optional. Enable or disable the Performance Capture feature.
// Optional. Enables or disables the performance capture feature.
optional bool enabled = 1 [(google.api.field_behavior) = OPTIONAL];

// Optional. The time interval in seconds between any two probes.
// Optional. Specifies the interval in seconds between consecutive probes that
// check if any trigger condition thresholds have been reached.
optional int32 probing_interval_seconds = 2
[(google.api.field_behavior) = OPTIONAL];

// Optional. The minimum number of consecutive readings above threshold that
// triggers instance state capture.
// Optional. Specifies the minimum number of consecutive probe threshold that
// triggers performance capture.
optional int32 probe_threshold = 3 [(google.api.field_behavior) = OPTIONAL];

// Optional. The minimum number of server threads running to trigger the
// capture on primary.
// Optional. Specifies the minimum number of MySQL `Threads_running` to
// trigger the performance capture on the primary instance.
optional int32 running_threads_threshold = 4
[(google.api.field_behavior) = OPTIONAL];

// Optional. The minimum number of seconds replica must be lagging behind
// primary to trigger capture on replica.
// Optional. Specifies the minimum number of seconds replica must be lagging
// behind primary instance to trigger the performance capture on replica.
optional int32 seconds_behind_source_threshold = 5
[(google.api.field_behavior) = OPTIONAL];

// Optional. The amount of time in seconds that a transaction needs to have
// been open before the watcher starts recording it.
// Optional. Specifies the amount of time in seconds that a transaction needs
// to have been open before the watcher starts recording it.
optional int32 transaction_duration_threshold = 8
[(google.api.field_behavior) = OPTIONAL];
}
Expand Down Expand Up @@ -2167,6 +2194,9 @@ enum SqlDatabaseVersion {
// The database version is PostgreSQL 18.
POSTGRES_18 = 557;

// The database version is PostgreSQL 19.
POSTGRES_19 = 684;

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

Expand All @@ -2190,6 +2220,15 @@ enum SqlDatabaseVersion {

// The database version is SQL Server 2022 Web.
SQLSERVER_2022_WEB = 202;

// The database version is SQL Server 2025 Standard.
SQLSERVER_2025_STANDARD = 549;

// The database version is SQL Server 2025 Enterprise.
SQLSERVER_2025_ENTERPRISE = 550;

// The database version is SQL Server 2025 Express.
SQLSERVER_2025_EXPRESS = 551;
}

// The pricing plan for this instance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package google.cloud.sql.v1;
import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/cloud/sql/v1/cloud_sql_resources.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
Expand Down
Loading
Loading