123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233 |
- syntax = "proto3";
- package google.cloud.bigquery.migration.v2;
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/cloud/bigquery/migration/v2/migration_error_details.proto";
- import "google/cloud/bigquery/migration/v2/migration_metrics.proto";
- import "google/cloud/bigquery/migration/v2/translation_config.proto";
- import "google/protobuf/timestamp.proto";
- import "google/rpc/error_details.proto";
- option csharp_namespace = "Google.Cloud.BigQuery.Migration.V2";
- option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/migration/v2;migration";
- option java_multiple_files = true;
- option java_outer_classname = "MigrationEntitiesProto";
- option java_package = "com.google.cloud.bigquery.migration.v2";
- option php_namespace = "Google\\Cloud\\BigQuery\\Migration\\V2";
- message MigrationWorkflow {
- option (google.api.resource) = {
- type: "bigquerymigration.googleapis.com/MigrationWorkflow"
- pattern: "projects/{project}/locations/{location}/workflows/{workflow}"
- };
-
- enum State {
-
- STATE_UNSPECIFIED = 0;
-
-
- DRAFT = 1;
-
- RUNNING = 2;
-
-
- PAUSED = 3;
-
-
-
- COMPLETED = 4;
- }
-
-
-
-
- string name = 1 [
- (google.api.field_behavior) = OUTPUT_ONLY,
- (google.api.field_behavior) = IMMUTABLE
- ];
-
-
- string display_name = 6;
-
-
-
- map<string, MigrationTask> tasks = 2;
-
- State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.protobuf.Timestamp create_time = 4;
-
- google.protobuf.Timestamp last_update_time = 5;
- }
- message MigrationTask {
-
- enum State {
-
- STATE_UNSPECIFIED = 0;
-
- PENDING = 1;
-
- ORCHESTRATING = 2;
-
- RUNNING = 3;
-
-
- PAUSED = 4;
-
- SUCCEEDED = 5;
-
- FAILED = 6;
- }
-
- oneof task_details {
-
- TranslationConfigDetails translation_config_details = 14;
- }
-
-
- string id = 1 [
- (google.api.field_behavior) = OUTPUT_ONLY,
- (google.api.field_behavior) = IMMUTABLE
- ];
-
-
-
-
-
-
- string type = 2;
-
- State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- google.rpc.ErrorInfo processing_error = 5
- [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.protobuf.Timestamp create_time = 6;
-
- google.protobuf.Timestamp last_update_time = 7;
- }
- message MigrationSubtask {
- option (google.api.resource) = {
- type: "bigquerymigration.googleapis.com/MigrationSubtask"
- pattern: "projects/{project}/locations/{location}/workflows/{workflow}/subtasks/{subtask}"
- };
-
- enum State {
-
- STATE_UNSPECIFIED = 0;
-
- ACTIVE = 1;
-
- RUNNING = 2;
-
- SUCCEEDED = 3;
-
- FAILED = 4;
-
-
- PAUSED = 5;
- }
-
-
-
-
- string name = 1 [
- (google.api.field_behavior) = OUTPUT_ONLY,
- (google.api.field_behavior) = IMMUTABLE
- ];
-
- string task_id = 2;
-
-
-
-
- string type = 3;
-
- State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- google.rpc.ErrorInfo processing_error = 6
- [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
- repeated ResourceErrorDetail resource_error_details = 12
- [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
- int32 resource_error_count = 13;
-
- google.protobuf.Timestamp create_time = 7;
-
- google.protobuf.Timestamp last_update_time = 8;
-
- repeated TimeSeries metrics = 11;
- }
|