123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405 |
- 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/execution_template.proto";
- import "google/cloud/run/v2/vendor_settings.proto";
- import "google/iam/v1/iam_policy.proto";
- import "google/iam/v1/policy.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 = "JobProto";
- option java_package = "com.google.cloud.run.v2";
- service Jobs {
- option (google.api.default_host) = "run.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
-
- rpc CreateJob(CreateJobRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v2/{parent=projects/*/locations/*}/jobs"
- body: "job"
- };
- option (google.api.method_signature) = "parent,job,job_id";
- option (google.longrunning.operation_info) = {
- response_type: "Job"
- metadata_type: "Job"
- };
- }
-
- rpc GetJob(GetJobRequest) returns (Job) {
- option (google.api.http) = {
- get: "/v2/{name=projects/*/locations/*/jobs/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc ListJobs(ListJobsRequest) returns (ListJobsResponse) {
- option (google.api.http) = {
- get: "/v2/{parent=projects/*/locations/*}/jobs"
- };
- option (google.api.method_signature) = "parent";
- }
-
- rpc UpdateJob(UpdateJobRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- patch: "/v2/{job.name=projects/*/locations/*/jobs/*}"
- body: "job"
- };
- option (google.api.method_signature) = "job";
- option (google.longrunning.operation_info) = {
- response_type: "Job"
- metadata_type: "Job"
- };
- }
-
- rpc DeleteJob(DeleteJobRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- delete: "/v2/{name=projects/*/locations/*/jobs/*}"
- };
- option (google.api.method_signature) = "name";
- option (google.longrunning.operation_info) = {
- response_type: "Job"
- metadata_type: "Job"
- };
- }
-
- rpc RunJob(RunJobRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v2/{name=projects/*/locations/*/jobs/*}:run"
- body: "*"
- };
- option (google.api.method_signature) = "name";
- option (google.longrunning.operation_info) = {
- response_type: "Execution"
- metadata_type: "Execution"
- };
- }
-
-
- rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) {
- option (google.api.http) = {
- get: "/v2/{resource=projects/*/locations/*/jobs/*}:getIamPolicy"
- };
- }
-
-
- rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) {
- option (google.api.http) = {
- post: "/v2/{resource=projects/*/locations/*/jobs/*}:setIamPolicy"
- body: "*"
- };
- }
-
-
-
- rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) {
- option (google.api.http) = {
- post: "/v2/{resource=projects/*/locations/*/jobs/*}:testIamPermissions"
- body: "*"
- };
- }
- }
- message CreateJobRequest {
-
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "run.googleapis.com/Job"
- }
- ];
-
- Job job = 2 [(google.api.field_behavior) = REQUIRED];
-
-
- string job_id = 3 [(google.api.field_behavior) = REQUIRED];
-
-
- bool validate_only = 4;
- }
- message GetJobRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "run.googleapis.com/Job"
- }
- ];
- }
- message UpdateJobRequest {
-
- Job job = 1 [(google.api.field_behavior) = REQUIRED];
-
-
- bool validate_only = 3;
-
-
-
- bool allow_missing = 4;
- }
- message ListJobsRequest {
-
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "run.googleapis.com/Job"
- }
- ];
-
- int32 page_size = 2;
-
-
- string page_token = 3;
-
- bool show_deleted = 4;
- }
- message ListJobsResponse {
-
- repeated Job jobs = 1;
-
-
- string next_page_token = 2;
- }
- message DeleteJobRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "run.googleapis.com/Job"
- }
- ];
-
-
- bool validate_only = 3;
-
-
- string etag = 4;
- }
- message RunJobRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "run.googleapis.com/Job"
- }
- ];
-
-
- bool validate_only = 2;
-
-
- string etag = 3;
- }
- message Job {
- option (google.api.resource) = {
- type: "run.googleapis.com/Job"
- pattern: "projects/{project}/locations/{location}/jobs/{job}"
- style: DECLARATIVE_FRIENDLY
- };
-
-
-
-
- string name = 1;
-
-
- 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 update_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.protobuf.Timestamp delete_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- google.protobuf.Timestamp expire_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string creator = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string last_modifier = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string client = 12;
-
- string client_version = 13;
-
-
-
-
- google.api.LaunchStage launch_stage = 14;
-
- BinaryAuthorization binary_authorization = 15;
-
- ExecutionTemplate template = 16 [(google.api.field_behavior) = REQUIRED];
-
-
- int64 observed_generation = 17 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- Condition terminal_condition = 18 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
- repeated Condition conditions = 19 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- int32 execution_count = 20 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- ExecutionReference latest_created_execution = 22 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- bool reconciling = 23 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- string etag = 99 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message ExecutionReference {
-
- string name = 1 [(google.api.resource_reference) = {
- type: "run.googleapis.com/Execution"
- }];
-
- google.protobuf.Timestamp create_time = 2;
-
- google.protobuf.Timestamp completion_time = 3;
- }
|