|
|
|
@ -17,19 +17,17 @@ syntax = "proto3"; |
|
|
|
|
package google.cloud.sql.v1; |
|
|
|
|
|
|
|
|
|
import "google/api/annotations.proto"; |
|
|
|
|
import "google/api/client.proto"; |
|
|
|
|
import "google/api/field_behavior.proto"; |
|
|
|
|
import "google/cloud/sql/v1/cloud_sql_resources.proto"; |
|
|
|
|
import "google/protobuf/timestamp.proto"; |
|
|
|
|
import "google/protobuf/wrappers.proto"; |
|
|
|
|
import "google/api/client.proto"; |
|
|
|
|
|
|
|
|
|
option go_package = "cloud.google.com/go/sql/apiv1/sqlpb;sqlpb"; |
|
|
|
|
option java_multiple_files = true; |
|
|
|
|
option java_outer_classname = "CloudSqlServiceProto"; |
|
|
|
|
option java_package = "com.google.cloud.sql.v1"; |
|
|
|
|
|
|
|
|
|
// LINT: LEGACY_NAMES |
|
|
|
|
|
|
|
|
|
// Service to manage Cloud SQL instances. |
|
|
|
|
service SqlInstancesService { |
|
|
|
|
option (google.api.default_host) = "sqladmin.googleapis.com"; |
|
|
|
@ -133,7 +131,8 @@ service SqlInstancesService { |
|
|
|
|
// the certificate that is currently in use, a CA that has been added but not |
|
|
|
|
// yet used to sign a certificate, and a CA used to sign a certificate that |
|
|
|
|
// has previously rotated out. |
|
|
|
|
rpc ListServerCas(SqlInstancesListServerCasRequest) returns (InstancesListServerCasResponse) { |
|
|
|
|
rpc ListServerCas(SqlInstancesListServerCasRequest) |
|
|
|
|
returns (InstancesListServerCasResponse) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
get: "/v1/projects/{project}/instances/{instance}/listServerCas" |
|
|
|
|
}; |
|
|
|
@ -225,7 +224,8 @@ service SqlInstancesService { |
|
|
|
|
// and signed by a private key specific to the target instance. Users may use |
|
|
|
|
// the certificate to authenticate as themselves when connecting to the |
|
|
|
|
// database. |
|
|
|
|
rpc CreateEphemeral(SqlInstancesCreateEphemeralCertRequest) returns (SslCert) { |
|
|
|
|
rpc CreateEphemeral(SqlInstancesCreateEphemeralCertRequest) |
|
|
|
|
returns (SslCert) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
post: "/v1/projects/{project}/instances/{instance}/createEphemeral" |
|
|
|
|
body: "body" |
|
|
|
@ -233,7 +233,8 @@ service SqlInstancesService { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Reschedules the maintenance on the given instance. |
|
|
|
|
rpc RescheduleMaintenance(SqlInstancesRescheduleMaintenanceRequest) returns (Operation) { |
|
|
|
|
rpc RescheduleMaintenance(SqlInstancesRescheduleMaintenanceRequest) |
|
|
|
|
returns (Operation) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
post: "/v1/projects/{project}/instances/{instance}/rescheduleMaintenance" |
|
|
|
|
body: "body" |
|
|
|
@ -241,7 +242,8 @@ service SqlInstancesService { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Verify External primary instance external sync settings. |
|
|
|
|
rpc VerifyExternalSyncSettings(SqlInstancesVerifyExternalSyncSettingsRequest) returns (SqlInstancesVerifyExternalSyncSettingsResponse) { |
|
|
|
|
rpc VerifyExternalSyncSettings(SqlInstancesVerifyExternalSyncSettingsRequest) |
|
|
|
|
returns (SqlInstancesVerifyExternalSyncSettingsResponse) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
post: "/v1/projects/{project}/instances/{instance}/verifyExternalSyncSettings" |
|
|
|
|
body: "*" |
|
|
|
@ -249,7 +251,8 @@ service SqlInstancesService { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Start External primary instance migration. |
|
|
|
|
rpc StartExternalSync(SqlInstancesStartExternalSyncRequest) returns (Operation) { |
|
|
|
|
rpc StartExternalSync(SqlInstancesStartExternalSyncRequest) |
|
|
|
|
returns (Operation) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
post: "/v1/projects/{project}/instances/{instance}/startExternalSync" |
|
|
|
|
body: "*" |
|
|
|
@ -525,7 +528,8 @@ message SqlInstancesVerifyExternalSyncSettingsRequest { |
|
|
|
|
|
|
|
|
|
oneof sync_config { |
|
|
|
|
// Optional. MySQL-specific settings for start external sync. |
|
|
|
|
MySqlSyncConfig mysql_sync_config = 6 [(google.api.field_behavior) = OPTIONAL]; |
|
|
|
|
MySqlSyncConfig mysql_sync_config = 6 |
|
|
|
|
[(google.api.field_behavior) = OPTIONAL]; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -934,7 +938,8 @@ message DatabaseInstance { |
|
|
|
|
// Output only. The time when the instance was created in |
|
|
|
|
// [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example |
|
|
|
|
// **2012-11-15T16:19:00.094Z**. |
|
|
|
|
google.protobuf.Timestamp create_time = 39 [(google.api.field_behavior) = OUTPUT_ONLY]; |
|
|
|
|
google.protobuf.Timestamp create_time = 39 |
|
|
|
|
[(google.api.field_behavior) = OUTPUT_ONLY]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Reschedule options for maintenance windows. |
|
|
|
@ -947,7 +952,8 @@ message SqlInstancesRescheduleMaintenanceRequestBody { |
|
|
|
|
// reschedule_type=SPECIFIC_TIME, in |
|
|
|
|
// [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example |
|
|
|
|
// **2012-11-15T16:19:00.094Z**. |
|
|
|
|
google.protobuf.Timestamp schedule_time = 2 [(google.api.field_behavior) = OPTIONAL]; |
|
|
|
|
google.protobuf.Timestamp schedule_time = 2 |
|
|
|
|
[(google.api.field_behavior) = OPTIONAL]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
enum RescheduleType { |
|
|
|
|