123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273 |
- syntax = "proto3";
- package google.cloud.batch.v1;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/cloud/batch/v1/job.proto";
- import "google/cloud/batch/v1/task.proto";
- import "google/longrunning/operations.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 = "BatchProto";
- 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";
- service BatchService {
- option (google.api.default_host) = "batch.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
-
- rpc CreateJob(CreateJobRequest) returns (Job) {
- option (google.api.http) = {
- post: "/v1/{parent=projects/*/locations/*}/jobs"
- body: "job"
- };
- option (google.api.method_signature) = "parent,job,job_id";
- }
-
- rpc GetJob(GetJobRequest) returns (Job) {
- option (google.api.http) = {
- get: "/v1/{name=projects/*/locations/*/jobs/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc DeleteJob(DeleteJobRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- delete: "/v1/{name=projects/*/locations/*/jobs/*}"
- };
- option (google.api.method_signature) = "name";
- option (google.longrunning.operation_info) = {
- response_type: "google.protobuf.Empty"
- metadata_type: "google.cloud.batch.v1.OperationMetadata"
- };
- }
-
- rpc ListJobs(ListJobsRequest) returns (ListJobsResponse) {
- option (google.api.http) = {
- get: "/v1/{parent=projects/*/locations/*}/jobs"
- };
- option (google.api.method_signature) = "parent";
- }
-
- rpc GetTask(GetTaskRequest) returns (Task) {
- option (google.api.http) = {
- get: "/v1/{name=projects/*/locations/*/jobs/*/taskGroups/*/tasks/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc ListTasks(ListTasksRequest) returns (ListTasksResponse) {
- option (google.api.http) = {
- get: "/v1/{parent=projects/*/locations/*/jobs/*/taskGroups/*}/tasks"
- };
- option (google.api.method_signature) = "parent";
- }
- }
- message CreateJobRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "batch.googleapis.com/Job"
- }
- ];
-
-
-
-
-
-
-
-
-
- string job_id = 2;
-
- Job job = 3 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
-
-
-
-
-
-
-
- string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
- }
- message GetJobRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "batch.googleapis.com/Job"
- }
- ];
- }
- message DeleteJobRequest {
-
- string name = 1;
-
- string reason = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
-
-
-
-
-
-
-
- string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
- }
- message ListJobsRequest {
-
- string parent = 1;
-
- string filter = 4;
-
- int32 page_size = 2;
-
- string page_token = 3;
- }
- message ListJobsResponse {
-
- repeated Job jobs = 1;
-
- string next_page_token = 2;
-
- repeated string unreachable = 3;
- }
- message ListTasksRequest {
-
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "batch.googleapis.com/TaskGroup"
- }
- ];
-
-
-
- string filter = 2;
-
- int32 page_size = 3;
-
- string page_token = 4;
- }
- message ListTasksResponse {
-
- repeated Task tasks = 1;
-
- string next_page_token = 2;
-
- repeated string unreachable = 3;
- }
- message GetTaskRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "batch.googleapis.com/Task"
- }
- ];
- }
- message OperationMetadata {
-
- google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
- bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
|