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/launch_stage.proto";
- import "google/api/resource.proto";
- import "google/cloud/run/v2/condition.proto";
- import "google/cloud/run/v2/task_template.proto";
- import "google/longrunning/operations.proto";
- import "google/protobuf/timestamp.proto";
- option go_package = "google.golang.org/genproto/googleapis/cloud/run/v2;run";
- option java_multiple_files = true;
- option java_outer_classname = "ExecutionProto";
- option java_package = "com.google.cloud.run.v2";
- service Executions {
- option (google.api.default_host) = "run.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
-
- rpc GetExecution(GetExecutionRequest) returns (Execution) {
- option (google.api.http) = {
- get: "/v2/{name=projects/*/locations/*/jobs/*/executions/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc ListExecutions(ListExecutionsRequest) returns (ListExecutionsResponse) {
- option (google.api.http) = {
- get: "/v2/{parent=projects/*/locations/*/jobs/*}/executions"
- };
- option (google.api.method_signature) = "parent";
- }
-
- rpc DeleteExecution(DeleteExecutionRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- delete: "/v2/{name=projects/*/locations/*/jobs/*/executions/*}"
- };
- option (google.api.method_signature) = "name";
- option (google.longrunning.operation_info) = {
- response_type: "Execution"
- metadata_type: "Execution"
- };
- }
- }
- message GetExecutionRequest {
-
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "run.googleapis.com/Execution"
- }
- ];
- }
- message ListExecutionsRequest {
-
-
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "run.googleapis.com/Execution"
- }
- ];
-
- int32 page_size = 2;
-
-
- string page_token = 3;
-
- bool show_deleted = 4;
- }
- message ListExecutionsResponse {
-
- repeated Execution executions = 1;
-
-
- string next_page_token = 2;
- }
- message DeleteExecutionRequest {
-
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "run.googleapis.com/Execution"
- }
- ];
-
-
- bool validate_only = 2;
-
-
- string etag = 3;
- }
- message Execution {
- option (google.api.resource) = {
- type: "run.googleapis.com/Execution"
- pattern: "projects/{project}/locations/{location}/jobs/{job}/executions/{execution}"
- 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 = 22 [(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];
-
-
-
-
- google.api.LaunchStage launch_stage = 11;
-
- string job = 12 [
- (google.api.field_behavior) = OUTPUT_ONLY,
- (google.api.resource_reference) = {
- type: "run.googleapis.com/Job"
- }
- ];
-
-
-
-
-
-
- int32 parallelism = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
-
- int32 task_count = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- TaskTemplate template = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
- bool reconciling = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- repeated Condition conditions = 17 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- int64 observed_generation = 18 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- int32 running_count = 19 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- int32 succeeded_count = 20 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- int32 failed_count = 21 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- string etag = 99 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
|