123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393 |
- syntax = "proto3";
- package google.cloud.dataplex.v1;
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/cloud/dataplex/v1/resources.proto";
- import "google/protobuf/duration.proto";
- import "google/protobuf/timestamp.proto";
- option go_package = "google.golang.org/genproto/googleapis/cloud/dataplex/v1;dataplex";
- option java_multiple_files = true;
- option java_outer_classname = "TasksProto";
- option java_package = "com.google.cloud.dataplex.v1";
- message Task {
- option (google.api.resource) = {
- type: "dataplex.googleapis.com/Task"
- pattern: "projects/{project}/locations/{location}/lakes/{lake}/tasks/{task}"
- };
-
- message InfrastructureSpec {
-
- message BatchComputeResources {
-
-
- int32 executors_count = 1 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- int32 max_executors_count = 2 [(google.api.field_behavior) = OPTIONAL];
- }
-
- message ContainerImageRuntime {
-
- string image = 1 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- repeated string java_jars = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- repeated string python_packages = 3 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
-
- map<string, string> properties = 4 [(google.api.field_behavior) = OPTIONAL];
- }
-
- message VpcNetwork {
-
- oneof network_name {
-
-
- string network = 1 [(google.api.field_behavior) = OPTIONAL];
-
- string sub_network = 2 [(google.api.field_behavior) = OPTIONAL];
- }
-
- repeated string network_tags = 3 [(google.api.field_behavior) = OPTIONAL];
- }
-
- oneof resources {
-
- BatchComputeResources batch = 52;
- }
-
- oneof runtime {
-
- ContainerImageRuntime container_image = 101;
- }
-
- oneof network {
-
- VpcNetwork vpc_network = 150;
- }
- }
-
- message TriggerSpec {
-
- enum Type {
-
- TYPE_UNSPECIFIED = 0;
-
- ON_DEMAND = 1;
-
- RECURRING = 2;
- }
-
- Type type = 5 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.field_behavior) = IMMUTABLE
- ];
-
-
-
- google.protobuf.Timestamp start_time = 6 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- bool disabled = 4 [(google.api.field_behavior) = OPTIONAL];
-
-
- int32 max_retries = 7 [(google.api.field_behavior) = OPTIONAL];
-
- oneof trigger {
-
-
-
-
-
-
-
-
- string schedule = 100 [(google.api.field_behavior) = OPTIONAL];
- }
- }
-
- message ExecutionSpec {
-
-
-
-
-
-
-
-
-
-
-
-
- map<string, string> args = 4 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- string service_account = 5 [(google.api.field_behavior) = REQUIRED];
-
-
-
- string project = 7 [(google.api.field_behavior) = OPTIONAL];
-
- google.protobuf.Duration max_job_execution_lifetime = 8 [(google.api.field_behavior) = OPTIONAL];
-
-
- string kms_key = 9 [(google.api.field_behavior) = OPTIONAL];
- }
-
- message SparkTaskConfig {
-
-
-
- oneof driver {
-
-
-
- string main_jar_file_uri = 100;
-
-
-
-
-
- string main_class = 101;
-
-
-
- string python_script_file = 102;
-
-
-
-
- string sql_script_file = 104;
-
-
-
- string sql_script = 105;
- }
-
-
- repeated string file_uris = 3 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- repeated string archive_uris = 4 [(google.api.field_behavior) = OPTIONAL];
-
- InfrastructureSpec infrastructure_spec = 6 [(google.api.field_behavior) = OPTIONAL];
- }
-
- message NotebookTaskConfig {
-
-
-
-
- string notebook = 4 [(google.api.field_behavior) = REQUIRED];
-
- InfrastructureSpec infrastructure_spec = 3 [(google.api.field_behavior) = OPTIONAL];
-
-
- repeated string file_uris = 5 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- repeated string archive_uris = 6 [(google.api.field_behavior) = OPTIONAL];
- }
-
- message ExecutionStatus {
-
- google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- Job latest_job = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
-
-
-
- string name = 1 [
- (google.api.field_behavior) = OUTPUT_ONLY,
- (google.api.resource_reference) = {
- type: "dataplex.googleapis.com/Task"
- }
- ];
-
-
- string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string description = 5 [(google.api.field_behavior) = OPTIONAL];
-
- string display_name = 6 [(google.api.field_behavior) = OPTIONAL];
-
- State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- map<string, string> labels = 8 [(google.api.field_behavior) = OPTIONAL];
-
- TriggerSpec trigger_spec = 100 [(google.api.field_behavior) = REQUIRED];
-
- ExecutionSpec execution_spec = 101 [(google.api.field_behavior) = REQUIRED];
-
- ExecutionStatus execution_status = 201 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- oneof config {
-
- SparkTaskConfig spark = 300;
-
- NotebookTaskConfig notebook = 302;
- }
- }
- message Job {
- option (google.api.resource) = {
- type: "dataplex.googleapis.com/Job"
- pattern: "projects/{project}/locations/{location}/lakes/{lake}/tasks/{task}/jobs/{job}"
- };
- enum Service {
-
- SERVICE_UNSPECIFIED = 0;
-
- DATAPROC = 1;
- }
- enum State {
-
- STATE_UNSPECIFIED = 0;
-
- RUNNING = 1;
-
- CANCELLING = 2;
-
- CANCELLED = 3;
-
- SUCCEEDED = 4;
-
- FAILED = 5;
-
- ABORTED = 6;
- }
-
-
- string name = 1 [
- (google.api.field_behavior) = OUTPUT_ONLY,
- (google.api.resource_reference) = {
- type: "dataplex.googleapis.com/Job"
- }
- ];
-
- string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.protobuf.Timestamp start_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.protobuf.Timestamp end_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- uint32 retry_count = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- Service service = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string service_job = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string message = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
|