123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- syntax = "proto3";
- package google.cloud.run.v2;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/cloud/run/v2/condition.proto";
- import "google/cloud/run/v2/k8s.min.proto";
- import "google/cloud/run/v2/vendor_settings.proto";
- import "google/protobuf/duration.proto";
- import "google/protobuf/timestamp.proto";
- import "google/rpc/status.proto";
- option go_package = "google.golang.org/genproto/googleapis/cloud/run/v2;run";
- option java_multiple_files = true;
- option java_outer_classname = "TaskProto";
- option java_package = "com.google.cloud.run.v2";
- service Tasks {
- option (google.api.default_host) = "run.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
-
- rpc GetTask(GetTaskRequest) returns (Task) {
- option (google.api.http) = {
- get: "/v2/{name=projects/*/locations/*/jobs/*/executions/*/tasks/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc ListTasks(ListTasksRequest) returns (ListTasksResponse) {
- option (google.api.http) = {
- get: "/v2/{parent=projects/*/locations/*/jobs/*/executions/*}/tasks"
- };
- option (google.api.method_signature) = "parent";
- }
- }
- message GetTaskRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "run.googleapis.com/Task"
- }
- ];
- }
- message ListTasksRequest {
-
-
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "run.googleapis.com/Task"
- }
- ];
-
- int32 page_size = 2;
-
-
- string page_token = 3;
-
- bool show_deleted = 4;
- }
- message ListTasksResponse {
-
- repeated Task tasks = 1;
-
-
- string next_page_token = 2;
- }
- message Task {
- option (google.api.resource) = {
- type: "run.googleapis.com/Task"
- pattern: "projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}"
- style: DECLARATIVE_FRIENDLY
- };
-
- string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- int64 generation = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
-
-
-
-
-
- map<string, string> labels = 4;
-
- map<string, string> annotations = 5;
-
-
-
- google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
- google.protobuf.Timestamp start_time = 27 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- google.protobuf.Timestamp completion_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- google.protobuf.Timestamp delete_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
- google.protobuf.Timestamp expire_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string job = 12 [
- (google.api.field_behavior) = OUTPUT_ONLY,
- (google.api.resource_reference) = {
- type: "run.googleapis.com/Job"
- }
- ];
-
- string execution = 13 [
- (google.api.field_behavior) = OUTPUT_ONLY,
- (google.api.resource_reference) = {
- type: "run.googleapis.com/Execution"
- }
- ];
-
-
- repeated Container containers = 14;
-
- repeated Volume volumes = 15;
-
- int32 max_retries = 16;
-
-
-
- google.protobuf.Duration timeout = 17;
-
-
-
-
- string service_account = 18;
-
- ExecutionEnvironment execution_environment = 20;
-
-
-
- bool reconciling = 21 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- repeated Condition conditions = 22 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- int64 observed_generation = 23 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- int32 index = 24 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- int32 retried = 25 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- TaskAttemptResult last_attempt_result = 26 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
- string encryption_key = 28 [
- (google.api.field_behavior) = OUTPUT_ONLY,
- (google.api.resource_reference) = {
- type: "cloudkms.googleapis.com/CryptoKey"
- }
- ];
-
-
- VpcAccess vpc_access = 29 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- string etag = 99 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message TaskAttemptResult {
-
-
- google.rpc.Status status = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
- int32 exit_code = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
|