123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715 |
- syntax = "proto3";
- package google.cloud.clouddms.v1;
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/protobuf/duration.proto";
- import "google/protobuf/timestamp.proto";
- import "google/protobuf/wrappers.proto";
- import "google/rpc/status.proto";
- option csharp_namespace = "Google.Cloud.CloudDms.V1";
- option go_package = "google.golang.org/genproto/googleapis/cloud/clouddms/v1;clouddms";
- option java_multiple_files = true;
- option java_outer_classname = "ClouddmsResourcesProto";
- option java_package = "com.google.cloud.clouddms.v1";
- option php_namespace = "Google\\Cloud\\CloudDms\\V1";
- option ruby_package = "Google::Cloud::CloudDMS::V1";
- message SslConfig {
-
- enum SslType {
-
- SSL_TYPE_UNSPECIFIED = 0;
-
- SERVER_ONLY = 1;
-
-
- SERVER_CLIENT = 2;
- }
-
-
- SslType type = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
- string client_key = 2 [(google.api.field_behavior) = INPUT_ONLY];
-
-
-
- string client_certificate = 3 [(google.api.field_behavior) = INPUT_ONLY];
-
-
-
- string ca_certificate = 4 [
- (google.api.field_behavior) = INPUT_ONLY,
- (google.api.field_behavior) = REQUIRED
- ];
- }
- message MySqlConnectionProfile {
-
- string host = 1 [(google.api.field_behavior) = REQUIRED];
-
- int32 port = 2 [(google.api.field_behavior) = REQUIRED];
-
-
- string username = 3 [(google.api.field_behavior) = REQUIRED];
-
-
-
- string password = 4 [
- (google.api.field_behavior) = INPUT_ONLY,
- (google.api.field_behavior) = REQUIRED
- ];
-
- bool password_set = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- SslConfig ssl = 6;
-
-
- string cloud_sql_id = 7;
- }
- message PostgreSqlConnectionProfile {
-
- string host = 1 [(google.api.field_behavior) = REQUIRED];
-
- int32 port = 2 [(google.api.field_behavior) = REQUIRED];
-
-
- string username = 3 [(google.api.field_behavior) = REQUIRED];
-
-
-
- string password = 4 [
- (google.api.field_behavior) = INPUT_ONLY,
- (google.api.field_behavior) = REQUIRED
- ];
-
- bool password_set = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- SslConfig ssl = 6;
-
-
- string cloud_sql_id = 7;
- }
- message CloudSqlConnectionProfile {
-
- string cloud_sql_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- CloudSqlSettings settings = 2 [(google.api.field_behavior) = IMMUTABLE];
-
- string private_ip = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string public_ip = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message SqlAclEntry {
-
- string value = 1;
-
- oneof expiration {
-
-
-
- google.protobuf.Timestamp expire_time = 10;
-
- google.protobuf.Duration ttl = 11 [(google.api.field_behavior) = INPUT_ONLY];
- }
-
- string label = 3;
- }
- message SqlIpConfig {
-
- google.protobuf.BoolValue enable_ipv4 = 1;
-
-
-
-
- string private_network = 2;
-
- google.protobuf.BoolValue require_ssl = 3;
-
-
-
-
- repeated SqlAclEntry authorized_networks = 4;
- }
- message CloudSqlSettings {
-
- enum SqlActivationPolicy {
-
- SQL_ACTIVATION_POLICY_UNSPECIFIED = 0;
-
- ALWAYS = 1;
-
- NEVER = 2;
- }
-
- enum SqlDataDiskType {
-
- SQL_DATA_DISK_TYPE_UNSPECIFIED = 0;
-
- PD_SSD = 1;
-
- PD_HDD = 2;
- }
-
- enum SqlDatabaseVersion {
-
- SQL_DATABASE_VERSION_UNSPECIFIED = 0;
-
- MYSQL_5_6 = 1;
-
- MYSQL_5_7 = 2;
-
- POSTGRES_9_6 = 3;
-
- POSTGRES_11 = 4;
-
- POSTGRES_10 = 5;
-
- MYSQL_8_0 = 6;
-
- POSTGRES_12 = 7;
-
- POSTGRES_13 = 8;
- }
-
- SqlDatabaseVersion database_version = 1;
-
-
-
-
-
- map<string, string> user_labels = 2;
-
-
-
-
-
-
- string tier = 3;
-
-
- google.protobuf.Int64Value storage_auto_resize_limit = 4;
-
-
-
-
-
-
-
-
- SqlActivationPolicy activation_policy = 5;
-
-
-
- SqlIpConfig ip_config = 6;
-
-
-
-
-
- google.protobuf.BoolValue auto_storage_increase = 7;
-
-
-
- map<string, string> database_flags = 8;
-
- SqlDataDiskType data_disk_type = 9;
-
-
- google.protobuf.Int64Value data_disk_size_gb = 10;
-
-
- string zone = 11;
-
-
-
- string source_id = 12;
-
- string root_password = 13 [(google.api.field_behavior) = INPUT_ONLY];
-
- bool root_password_set = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string collation = 15;
- }
- message StaticIpConnectivity {
- }
- message ReverseSshConnectivity {
-
-
- string vm_ip = 1 [(google.api.field_behavior) = REQUIRED];
-
-
- int32 vm_port = 2 [(google.api.field_behavior) = REQUIRED];
-
-
- string vm = 3;
-
- string vpc = 4;
- }
- message VpcPeeringConnectivity {
-
- string vpc = 1;
- }
- message DatabaseType {
-
- DatabaseProvider provider = 1;
-
- DatabaseEngine engine = 2;
- }
- message MigrationJob {
- option (google.api.resource) = {
- type: "datamigration.googleapis.com/MigrationJob"
- pattern: "projects/{project}/locations/{location}/migrationJobs/{migration_job}"
- };
-
- enum State {
-
- STATE_UNSPECIFIED = 0;
-
- MAINTENANCE = 1;
-
- DRAFT = 2;
-
- CREATING = 3;
-
- NOT_STARTED = 4;
-
- RUNNING = 5;
-
- FAILED = 6;
-
- COMPLETED = 7;
-
- DELETING = 8;
-
- STOPPING = 9;
-
- STOPPED = 10;
-
- DELETED = 11;
-
- UPDATING = 12;
-
- STARTING = 13;
-
- RESTARTING = 14;
-
- RESUMING = 15;
- }
-
- enum Phase {
-
- PHASE_UNSPECIFIED = 0;
-
- FULL_DUMP = 1;
-
- CDC = 2;
-
- PROMOTE_IN_PROGRESS = 3;
-
- WAITING_FOR_SOURCE_WRITES_TO_STOP = 4;
-
- PREPARING_THE_DUMP = 5;
- }
-
- enum Type {
-
- TYPE_UNSPECIFIED = 0;
-
- ONE_TIME = 1;
-
- CONTINUOUS = 2;
- }
-
-
- string name = 1;
-
-
-
- google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
- google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
-
- map<string, string> labels = 4;
-
- string display_name = 5;
-
- State state = 6;
-
- Phase phase = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- Type type = 8 [(google.api.field_behavior) = REQUIRED];
-
-
- string dump_path = 9;
-
- string source = 10 [(google.api.field_behavior) = REQUIRED];
-
- string destination = 11 [(google.api.field_behavior) = REQUIRED];
-
- oneof connectivity {
-
-
- ReverseSshConnectivity reverse_ssh_connectivity = 101;
-
- VpcPeeringConnectivity vpc_peering_connectivity = 102;
-
- StaticIpConnectivity static_ip_connectivity = 103;
- }
-
-
- google.protobuf.Duration duration = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.rpc.Status error = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- DatabaseType source_database = 14;
-
- DatabaseType destination_database = 15;
-
- google.protobuf.Timestamp end_time = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message ConnectionProfile {
- option (google.api.resource) = {
- type: "datamigration.googleapis.com/ConnectionProfile"
- pattern: "projects/{project}/locations/{location}/connectionProfiles/{connection_profile}"
- };
-
- enum State {
-
- STATE_UNSPECIFIED = 0;
-
- DRAFT = 1;
-
- CREATING = 2;
-
- READY = 3;
-
- UPDATING = 4;
-
- DELETING = 5;
-
- DELETED = 6;
-
- FAILED = 7;
- }
-
-
- string name = 1;
-
-
-
- google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
- google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
-
- map<string, string> labels = 4;
-
- State state = 5;
-
- string display_name = 6;
-
- oneof connection_profile {
-
- MySqlConnectionProfile mysql = 100;
-
- PostgreSqlConnectionProfile postgresql = 101;
-
- CloudSqlConnectionProfile cloudsql = 102;
- }
-
- google.rpc.Status error = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- DatabaseProvider provider = 8;
- }
- message MigrationJobVerificationError {
-
- enum ErrorCode {
-
- ERROR_CODE_UNSPECIFIED = 0;
-
- CONNECTION_FAILURE = 1;
-
- AUTHENTICATION_FAILURE = 2;
-
- INVALID_CONNECTION_PROFILE_CONFIG = 3;
-
- VERSION_INCOMPATIBILITY = 4;
-
- CONNECTION_PROFILE_TYPES_INCOMPATIBILITY = 5;
-
- NO_PGLOGICAL_INSTALLED = 7;
-
- PGLOGICAL_NODE_ALREADY_EXISTS = 8;
-
- INVALID_WAL_LEVEL = 9;
-
-
- INVALID_SHARED_PRELOAD_LIBRARY = 10;
-
- INSUFFICIENT_MAX_REPLICATION_SLOTS = 11;
-
- INSUFFICIENT_MAX_WAL_SENDERS = 12;
-
- INSUFFICIENT_MAX_WORKER_PROCESSES = 13;
-
-
- UNSUPPORTED_EXTENSIONS = 14;
-
- UNSUPPORTED_MIGRATION_TYPE = 15;
-
- INVALID_RDS_LOGICAL_REPLICATION = 16;
-
- UNSUPPORTED_GTID_MODE = 17;
-
-
- UNSUPPORTED_TABLE_DEFINITION = 18;
-
- UNSUPPORTED_DEFINER = 19;
-
- CANT_RESTART_RUNNING_MIGRATION = 21;
- }
-
- ErrorCode error_code = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string error_message = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string error_detail_message = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- enum DatabaseEngine {
-
- DATABASE_ENGINE_UNSPECIFIED = 0;
-
- MYSQL = 1;
-
- POSTGRESQL = 2;
- }
- enum DatabaseProvider {
-
- DATABASE_PROVIDER_UNSPECIFIED = 0;
-
- CLOUDSQL = 1;
-
- RDS = 2;
- }
|