123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625 |
- syntax = "proto3";
- package google.cloud.clouddms.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/clouddms/v1/clouddms_resources.proto";
- import "google/longrunning/operations.proto";
- import "google/protobuf/field_mask.proto";
- import "google/protobuf/timestamp.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 = "ClouddmsProto";
- option java_package = "com.google.cloud.clouddms.v1";
- option php_namespace = "Google\\Cloud\\CloudDms\\V1";
- option ruby_package = "Google::Cloud::CloudDMS::V1";
- service DataMigrationService {
- option (google.api.default_host) = "datamigration.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
-
- rpc ListMigrationJobs(ListMigrationJobsRequest) returns (ListMigrationJobsResponse) {
- option (google.api.http) = {
- get: "/v1/{parent=projects/*/locations/*}/migrationJobs"
- };
- option (google.api.method_signature) = "parent";
- }
-
- rpc GetMigrationJob(GetMigrationJobRequest) returns (MigrationJob) {
- option (google.api.http) = {
- get: "/v1/{name=projects/*/locations/*/migrationJobs/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc CreateMigrationJob(CreateMigrationJobRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1/{parent=projects/*/locations/*}/migrationJobs"
- body: "migration_job"
- };
- option (google.api.method_signature) = "parent,migration_job,migration_job_id";
- option (google.longrunning.operation_info) = {
- response_type: "MigrationJob"
- metadata_type: "OperationMetadata"
- };
- }
-
- rpc UpdateMigrationJob(UpdateMigrationJobRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- patch: "/v1/{migration_job.name=projects/*/locations/*/migrationJobs/*}"
- body: "migration_job"
- };
- option (google.api.method_signature) = "migration_job,update_mask";
- option (google.longrunning.operation_info) = {
- response_type: "MigrationJob"
- metadata_type: "OperationMetadata"
- };
- }
-
- rpc DeleteMigrationJob(DeleteMigrationJobRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- delete: "/v1/{name=projects/*/locations/*/migrationJobs/*}"
- };
- option (google.api.method_signature) = "name";
- option (google.longrunning.operation_info) = {
- response_type: "google.protobuf.Empty"
- metadata_type: "OperationMetadata"
- };
- }
-
- rpc StartMigrationJob(StartMigrationJobRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1/{name=projects/*/locations/*/migrationJobs/*}:start"
- body: "*"
- };
- option (google.longrunning.operation_info) = {
- response_type: "MigrationJob"
- metadata_type: "OperationMetadata"
- };
- }
-
- rpc StopMigrationJob(StopMigrationJobRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1/{name=projects/*/locations/*/migrationJobs/*}:stop"
- body: "*"
- };
- option (google.longrunning.operation_info) = {
- response_type: "MigrationJob"
- metadata_type: "OperationMetadata"
- };
- }
-
-
- rpc ResumeMigrationJob(ResumeMigrationJobRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1/{name=projects/*/locations/*/migrationJobs/*}:resume"
- body: "*"
- };
- option (google.longrunning.operation_info) = {
- response_type: "MigrationJob"
- metadata_type: "OperationMetadata"
- };
- }
-
-
- rpc PromoteMigrationJob(PromoteMigrationJobRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1/{name=projects/*/locations/*/migrationJobs/*}:promote"
- body: "*"
- };
- option (google.longrunning.operation_info) = {
- response_type: "MigrationJob"
- metadata_type: "OperationMetadata"
- };
- }
-
-
- rpc VerifyMigrationJob(VerifyMigrationJobRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1/{name=projects/*/locations/*/migrationJobs/*}:verify"
- body: "*"
- };
- option (google.longrunning.operation_info) = {
- response_type: "MigrationJob"
- metadata_type: "OperationMetadata"
- };
- }
-
-
-
- rpc RestartMigrationJob(RestartMigrationJobRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1/{name=projects/*/locations/*/migrationJobs/*}:restart"
- body: "*"
- };
- option (google.longrunning.operation_info) = {
- response_type: "MigrationJob"
- metadata_type: "OperationMetadata"
- };
- }
-
-
- rpc GenerateSshScript(GenerateSshScriptRequest) returns (SshScript) {
- option (google.api.http) = {
- post: "/v1/{migration_job=projects/*/locations/*/migrationJobs/*}:generateSshScript"
- body: "*"
- };
- }
-
- rpc ListConnectionProfiles(ListConnectionProfilesRequest) returns (ListConnectionProfilesResponse) {
- option (google.api.http) = {
- get: "/v1/{parent=projects/*/locations/*}/connectionProfiles"
- };
- option (google.api.method_signature) = "parent";
- }
-
- rpc GetConnectionProfile(GetConnectionProfileRequest) returns (ConnectionProfile) {
- option (google.api.http) = {
- get: "/v1/{name=projects/*/locations/*/connectionProfiles/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc CreateConnectionProfile(CreateConnectionProfileRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1/{parent=projects/*/locations/*}/connectionProfiles"
- body: "connection_profile"
- };
- option (google.api.method_signature) = "parent,connection_profile,connection_profile_id";
- option (google.longrunning.operation_info) = {
- response_type: "ConnectionProfile"
- metadata_type: "OperationMetadata"
- };
- }
-
- rpc UpdateConnectionProfile(UpdateConnectionProfileRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- patch: "/v1/{connection_profile.name=projects/*/locations/*/connectionProfiles/*}"
- body: "connection_profile"
- };
- option (google.api.method_signature) = "connection_profile,update_mask";
- option (google.longrunning.operation_info) = {
- response_type: "ConnectionProfile"
- metadata_type: "OperationMetadata"
- };
- }
-
-
-
- rpc DeleteConnectionProfile(DeleteConnectionProfileRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- delete: "/v1/{name=projects/*/locations/*/connectionProfiles/*}"
- };
- option (google.api.method_signature) = "name";
- option (google.longrunning.operation_info) = {
- response_type: "google.protobuf.Empty"
- metadata_type: "OperationMetadata"
- };
- }
- }
- message ListMigrationJobsRequest {
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "datamigration.googleapis.com/MigrationJob"
- }
- ];
-
-
-
-
- int32 page_size = 2;
-
-
-
-
-
- string page_token = 3;
-
-
-
-
-
-
-
-
-
- string filter = 4;
-
-
- string order_by = 5;
- }
- message ListMigrationJobsResponse {
-
- repeated MigrationJob migration_jobs = 1;
-
-
- string next_page_token = 2;
-
- repeated string unreachable = 3;
- }
- message GetMigrationJobRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "datamigration.googleapis.com/MigrationJob"
- }
- ];
- }
- message CreateMigrationJobRequest {
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "datamigration.googleapis.com/MigrationJob"
- }
- ];
-
- string migration_job_id = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
- MigrationJob migration_job = 3 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
-
- string request_id = 4;
- }
- message UpdateMigrationJobRequest {
-
-
- google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED];
-
- MigrationJob migration_job = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
-
- string request_id = 3;
- }
- message DeleteMigrationJobRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "datamigration.googleapis.com/MigrationJob"
- }
- ];
-
-
-
-
-
-
-
- string request_id = 2;
-
-
-
- bool force = 3;
- }
- message StartMigrationJobRequest {
-
- string name = 1 [(google.api.resource_reference) = {
- type: "datamigration.googleapis.com/MigrationJob"
- }];
- }
- message StopMigrationJobRequest {
-
- string name = 1 [(google.api.resource_reference) = {
- type: "datamigration.googleapis.com/MigrationJob"
- }];
- }
- message ResumeMigrationJobRequest {
-
- string name = 1 [(google.api.resource_reference) = {
- type: "datamigration.googleapis.com/MigrationJob"
- }];
- }
- message PromoteMigrationJobRequest {
-
- string name = 1 [(google.api.resource_reference) = {
- type: "datamigration.googleapis.com/MigrationJob"
- }];
- }
- message VerifyMigrationJobRequest {
-
- string name = 1 [(google.api.resource_reference) = {
- type: "datamigration.googleapis.com/MigrationJob"
- }];
- }
- message RestartMigrationJobRequest {
-
- string name = 1 [(google.api.resource_reference) = {
- type: "datamigration.googleapis.com/MigrationJob"
- }];
- }
- message GenerateSshScriptRequest {
-
- string migration_job = 1 [(google.api.resource_reference) = {
- type: "datamigration.googleapis.com/MigrationJob"
- }];
-
- string vm = 2 [(google.api.field_behavior) = REQUIRED];
-
- oneof vm_config {
-
- VmCreationConfig vm_creation_config = 100;
-
- VmSelectionConfig vm_selection_config = 101;
- }
-
- int32 vm_port = 3;
- }
- message VmCreationConfig {
-
- string vm_machine_type = 1 [(google.api.field_behavior) = REQUIRED];
-
- string vm_zone = 2;
-
- string subnet = 3;
- }
- message VmSelectionConfig {
-
- string vm_zone = 1 [(google.api.field_behavior) = REQUIRED];
- }
- message SshScript {
-
- string script = 1;
- }
- message ListConnectionProfilesRequest {
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "datamigration.googleapis.com/ConnectionProfile"
- }
- ];
-
-
-
-
- int32 page_size = 2;
-
-
-
-
-
- string page_token = 3;
-
-
-
-
-
-
-
-
-
- string filter = 4;
-
- string order_by = 5;
- }
- message ListConnectionProfilesResponse {
-
- repeated ConnectionProfile connection_profiles = 1;
-
-
- string next_page_token = 2;
-
- repeated string unreachable = 3;
- }
- message GetConnectionProfileRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "datamigration.googleapis.com/ConnectionProfile"
- }
- ];
- }
- message CreateConnectionProfileRequest {
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "datamigration.googleapis.com/ConnectionProfile"
- }
- ];
-
- string connection_profile_id = 2 [(google.api.field_behavior) = REQUIRED];
-
- ConnectionProfile connection_profile = 3 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
-
- string request_id = 4;
- }
- message UpdateConnectionProfileRequest {
-
-
- google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED];
-
- ConnectionProfile connection_profile = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
-
- string request_id = 3;
- }
- message DeleteConnectionProfileRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "datamigration.googleapis.com/ConnectionProfile"
- }
- ];
-
-
-
-
-
-
-
- string request_id = 2;
-
-
- bool force = 3;
- }
- message OperationMetadata {
-
- google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
- bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
|