123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297 |
- syntax = "proto3";
- package google.cloud.batch.v1;
- import "google/api/resource.proto";
- import "google/cloud/batch/v1/volume.proto";
- import "google/protobuf/duration.proto";
- import "google/protobuf/timestamp.proto";
- option csharp_namespace = "Google.Cloud.Batch.V1";
- option go_package = "google.golang.org/genproto/googleapis/cloud/batch/v1;batch";
- option java_multiple_files = true;
- option java_outer_classname = "TaskProto";
- option java_package = "com.google.cloud.batch.v1";
- option objc_class_prefix = "GCB";
- option php_namespace = "Google\\Cloud\\Batch\\V1";
- option ruby_package = "Google::Cloud::Batch::V1";
- message ComputeResource {
-
- int64 cpu_milli = 1;
-
- int64 memory_mib = 2;
-
- int64 boot_disk_mib = 4;
- }
- message StatusEvent {
-
- string type = 3;
-
- string description = 1;
-
- google.protobuf.Timestamp event_time = 2;
-
- TaskExecution task_execution = 4;
- }
- message TaskExecution {
-
-
- int32 exit_code = 1;
- }
- message TaskStatus {
-
- enum State {
-
- STATE_UNSPECIFIED = 0;
-
- PENDING = 1;
-
- ASSIGNED = 2;
-
- RUNNING = 3;
-
- FAILED = 4;
-
- SUCCEEDED = 5;
- }
-
- State state = 1;
-
- repeated StatusEvent status_events = 2;
- }
- message Runnable {
-
- message Container {
-
- string image_uri = 1;
-
-
-
- repeated string commands = 2;
-
- string entrypoint = 3;
-
-
-
- repeated string volumes = 7;
-
-
- string options = 8;
-
-
-
- bool block_external_network = 9;
-
-
-
- string username = 10;
-
-
-
- string password = 11;
- }
-
- message Script {
- oneof command {
-
- string path = 1;
-
- string text = 2;
- }
- }
-
- message Barrier {
-
-
- string name = 1;
- }
-
- oneof executable {
-
- Container container = 1;
-
- Script script = 2;
-
- Barrier barrier = 6;
- }
-
-
- bool ignore_exit_status = 3;
-
-
-
- bool background = 4;
-
-
-
-
-
-
-
-
- bool always_run = 5;
-
-
- Environment environment = 7;
-
- google.protobuf.Duration timeout = 8;
- }
- message TaskSpec {
-
-
-
-
-
-
-
-
-
-
- repeated Runnable runnables = 8;
-
- ComputeResource compute_resource = 3;
-
-
- google.protobuf.Duration max_run_duration = 4;
-
-
-
- int32 max_retry_count = 5;
-
-
-
-
-
-
-
-
-
- repeated LifecyclePolicy lifecycle_policies = 9;
-
-
- map<string, string> environments = 6 [deprecated = true];
-
- repeated Volume volumes = 7;
-
- Environment environment = 10;
- }
- message LifecyclePolicy {
-
- message ActionCondition {
-
-
-
-
- repeated int32 exit_codes = 1;
- }
-
- enum Action {
-
- ACTION_UNSPECIFIED = 0;
-
- RETRY_TASK = 1;
-
- FAIL_TASK = 2;
- }
-
- Action action = 1;
-
- ActionCondition action_condition = 2;
- }
- message Task {
- option (google.api.resource) = {
- type: "batch.googleapis.com/Task"
- pattern: "projects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}/tasks/{task}"
- };
-
-
-
-
- string name = 1;
-
- TaskStatus status = 2;
- }
- message Environment {
-
- map<string, string> variables = 1;
- }
|