Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [batch] support custom scopes for service account in v1 #9082

Merged
merged 4 commits into from
Feb 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions java-batch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-batch</artifactId>
<version>0.9.0</version>
<version>0.10.0</version>
</dependency>
```

If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-batch:0.9.0'
implementation 'com.google.cloud:google-cloud-batch:0.10.0'
```

If you are using SBT, add this to your dependencies:

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.9.0"
libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.10.0"
```

## Authentication
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -73,78 +73,77 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
"\n!google/cloud/batch/v1/batch.proto\022\025goo"
+ "gle.cloud.batch.v1\032\033google/protobuf/empt"
+ "y.proto\032\034google/api/annotations.proto\032\027g"
+ "oogle/api/client.proto\032\037google/api/field"
+ "_behavior.proto\032\031google/api/resource.pro"
+ "to\032\037google/cloud/batch/v1/job.proto\032 goo"
+ "gle/cloud/batch/v1/task.proto\032#google/lo"
+ "ngrunning/operations.proto\032\037google/proto"
+ "buf/timestamp.proto\"\233\001\n\020CreateJobRequest"
+ "\0220\n\006parent\030\001 \001(\tB \340A\002\372A\032\022\030batch.googleap"
+ "is.com/Job\022\016\n\006job_id\030\002 \001(\t\022,\n\003job\030\003 \001(\0132"
+ "\032.google.cloud.batch.v1.JobB\003\340A\002\022\027\n\nrequ"
+ "est_id\030\004 \001(\tB\003\340A\001\"?\n\rGetJobRequest\022.\n\004na"
+ "me\030\001 \001(\tB \340A\002\372A\032\n\030batch.googleapis.com/J"
+ "ob\"N\n\020DeleteJobRequest\022\014\n\004name\030\001 \001(\t\022\023\n\006"
+ "reason\030\002 \001(\tB\003\340A\001\022\027\n\nrequest_id\030\004 \001(\tB\003\340"
+ "A\001\"X\n\017ListJobsRequest\022\016\n\006parent\030\001 \001(\t\022\016\n"
+ "\006filter\030\004 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage"
+ "_token\030\003 \001(\t\"j\n\020ListJobsResponse\022(\n\004jobs"
+ "\030\001 \003(\0132\032.google.cloud.batch.v1.Job\022\027\n\017ne"
+ "xt_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t"
+ "\"\201\001\n\020ListTasksRequest\0226\n\006parent\030\001 \001(\tB&\340"
+ "A\002\372A \n\036batch.googleapis.com/TaskGroup\022\016\n"
+ "\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage"
+ "_token\030\004 \001(\t\"m\n\021ListTasksResponse\022*\n\005tas"
+ "ks\030\001 \003(\0132\033.google.cloud.batch.v1.Task\022\027\n"
+ "\017next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 "
+ "\003(\t\"A\n\016GetTaskRequest\022/\n\004name\030\001 \001(\tB!\340A\002"
+ "\372A\033\n\031batch.googleapis.com/Task\"\200\002\n\021Opera"
+ "tionMetadata\0224\n\013create_time\030\001 \001(\0132\032.goog"
+ "le.protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002"
+ " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n"
+ "\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n"
+ "\016status_message\030\005 \001(\tB\003\340A\003\022#\n\026requested_"
+ "cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007"
+ " \001(\tB\003\340A\0032\266\010\n\014BatchService\022\233\001\n\tCreateJob"
+ "\022\'.google.cloud.batch.v1.CreateJobReques"
+ "t\032\032.google.cloud.batch.v1.Job\"I\202\323\344\223\002/\"(/"
+ "v1/{parent=projects/*/locations/*}/jobs:"
+ "\003job\332A\021parent,job,job_id\022\203\001\n\006GetJob\022$.go"
+ "ogle.cloud.batch.v1.GetJobRequest\032\032.goog"
+ "le.cloud.batch.v1.Job\"7\202\323\344\223\002*\022(/v1/{name"
+ "=projects/*/locations/*/jobs/*}\332A\004name\022\317"
+ "\001\n\tDeleteJob\022\'.google.cloud.batch.v1.Del"
+ "eteJobRequest\032\035.google.longrunning.Opera"
+ "tion\"z\202\323\344\223\002**(/v1/{name=projects/*/locat"
+ "ions/*/jobs/*}\332A\004name\312A@\n\025google.protobu"
+ "f.Empty\022\'google.cloud.batch.v1.Operation"
+ "Metadata\022\226\001\n\010ListJobs\022&.google.cloud.bat"
+ "ch.v1.ListJobsRequest\032\'.google.cloud.bat"
+ "ch.v1.ListJobsResponse\"9\202\323\344\223\002*\022(/v1/{par"
+ "ent=projects/*/locations/*}/jobs\332A\006paren"
+ "t\022\233\001\n\007GetTask\022%.google.cloud.batch.v1.Ge"
+ "tTaskRequest\032\033.google.cloud.batch.v1.Tas"
+ "k\"L\202\323\344\223\002?\022=/v1/{name=projects/*/location"
+ "s/*/jobs/*/taskGroups/*/tasks/*}\332A\004name\022"
+ "\256\001\n\tListTasks\022\'.google.cloud.batch.v1.Li"
+ "stTasksRequest\032(.google.cloud.batch.v1.L"
+ "istTasksResponse\"N\202\323\344\223\002?\022=/v1/{parent=pr"
+ "ojects/*/locations/*/jobs/*/taskGroups/*"
+ "}/tasks\332A\006parent\032H\312A\024batch.googleapis.co"
+ "m\322A.https://www.googleapis.com/auth/clou"
+ "d-platformB\253\001\n\031com.google.cloud.batch.v1"
+ "B\nBatchProtoP\001Z/cloud.google.com/go/batc"
+ "h/apiv1/batchpb;batchpb\242\002\003GCB\252\002\025Google.C"
+ "loud.Batch.V1\312\002\025Google\\Cloud\\Batch\\V1\352\002\030"
+ "Google::Cloud::Batch::V1P\000b\006proto3"
+ "gle.cloud.batch.v1\032\034google/api/annotatio"
+ "ns.proto\032\027google/api/client.proto\032\037googl"
+ "e/api/field_behavior.proto\032\031google/api/r"
+ "esource.proto\032\037google/cloud/batch/v1/job"
+ ".proto\032 google/cloud/batch/v1/task.proto"
+ "\032#google/longrunning/operations.proto\032\037g"
+ "oogle/protobuf/timestamp.proto\"\233\001\n\020Creat"
+ "eJobRequest\0220\n\006parent\030\001 \001(\tB \340A\002\372A\032\022\030bat"
+ "ch.googleapis.com/Job\022\016\n\006job_id\030\002 \001(\t\022,\n"
+ "\003job\030\003 \001(\0132\032.google.cloud.batch.v1.JobB\003"
+ "\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"?\n\rGetJobRe"
+ "quest\022.\n\004name\030\001 \001(\tB \340A\002\372A\032\n\030batch.googl"
+ "eapis.com/Job\"N\n\020DeleteJobRequest\022\014\n\004nam"
+ "e\030\001 \001(\t\022\023\n\006reason\030\002 \001(\tB\003\340A\001\022\027\n\nrequest_"
+ "id\030\004 \001(\tB\003\340A\001\"X\n\017ListJobsRequest\022\016\n\006pare"
+ "nt\030\001 \001(\t\022\016\n\006filter\030\004 \001(\t\022\021\n\tpage_size\030\002 "
+ "\001(\005\022\022\n\npage_token\030\003 \001(\t\"j\n\020ListJobsRespo"
+ "nse\022(\n\004jobs\030\001 \003(\0132\032.google.cloud.batch.v"
+ "1.Job\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac"
+ "hable\030\003 \003(\t\"\201\001\n\020ListTasksRequest\0226\n\006pare"
+ "nt\030\001 \001(\tB&\340A\002\372A \n\036batch.googleapis.com/T"
+ "askGroup\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 "
+ "\001(\005\022\022\n\npage_token\030\004 \001(\t\"m\n\021ListTasksResp"
+ "onse\022*\n\005tasks\030\001 \003(\0132\033.google.cloud.batch"
+ ".v1.Task\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unr"
+ "eachable\030\003 \003(\t\"A\n\016GetTaskRequest\022/\n\004name"
+ "\030\001 \001(\tB!\340A\002\372A\033\n\031batch.googleapis.com/Tas"
+ "k\"\200\002\n\021OperationMetadata\0224\n\013create_time\030\001"
+ " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n"
+ "\010end_time\030\002 \001(\0132\032.google.protobuf.Timest"
+ "ampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 "
+ "\001(\tB\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022#\n"
+ "\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013ap"
+ "i_version\030\007 \001(\tB\003\340A\0032\266\010\n\014BatchService\022\233\001"
+ "\n\tCreateJob\022\'.google.cloud.batch.v1.Crea"
+ "teJobRequest\032\032.google.cloud.batch.v1.Job"
+ "\"I\202\323\344\223\002/\"(/v1/{parent=projects/*/locatio"
+ "ns/*}/jobs:\003job\332A\021parent,job,job_id\022\203\001\n\006"
+ "GetJob\022$.google.cloud.batch.v1.GetJobReq"
+ "uest\032\032.google.cloud.batch.v1.Job\"7\202\323\344\223\002*"
+ "\022(/v1/{name=projects/*/locations/*/jobs/"
+ "*}\332A\004name\022\317\001\n\tDeleteJob\022\'.google.cloud.b"
+ "atch.v1.DeleteJobRequest\032\035.google.longru"
+ "nning.Operation\"z\202\323\344\223\002**(/v1/{name=proje"
+ "cts/*/locations/*/jobs/*}\332A\004name\312A@\n\025goo"
+ "gle.protobuf.Empty\022\'google.cloud.batch.v"
+ "1.OperationMetadata\022\226\001\n\010ListJobs\022&.googl"
+ "e.cloud.batch.v1.ListJobsRequest\032\'.googl"
+ "e.cloud.batch.v1.ListJobsResponse\"9\202\323\344\223\002"
+ "*\022(/v1/{parent=projects/*/locations/*}/j"
+ "obs\332A\006parent\022\233\001\n\007GetTask\022%.google.cloud."
+ "batch.v1.GetTaskRequest\032\033.google.cloud.b"
+ "atch.v1.Task\"L\202\323\344\223\002?\022=/v1/{name=projects"
+ "/*/locations/*/jobs/*/taskGroups/*/tasks"
+ "/*}\332A\004name\022\256\001\n\tListTasks\022\'.google.cloud."
+ "batch.v1.ListTasksRequest\032(.google.cloud"
+ ".batch.v1.ListTasksResponse\"N\202\323\344\223\002?\022=/v1"
+ "/{parent=projects/*/locations/*/jobs/*/t"
+ "askGroups/*}/tasks\332A\006parent\032H\312A\024batch.go"
+ "ogleapis.com\322A.https://www.googleapis.co"
+ "m/auth/cloud-platformB\253\001\n\031com.google.clo"
+ "ud.batch.v1B\nBatchProtoP\001Z/cloud.google."
+ "com/go/batch/apiv1/batchpb;batchpb\242\002\003GCB"
+ "\252\002\025Google.Cloud.Batch.V1\312\002\025Google\\Cloud\\"
+ "Batch\\V1\352\002\030Google::Cloud::Batch::V1b\006pro"
+ "to3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.EmptyProto.getDescriptor(),
com.google.api.AnnotationsProto.getDescriptor(),
com.google.api.ClientProto.getDescriptor(),
com.google.api.FieldBehaviorProto.getDescriptor(),
Expand Down Expand Up @@ -243,7 +242,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
registry.add(com.google.longrunning.OperationsProto.operationInfo);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
com.google.protobuf.EmptyProto.getDescriptor();
com.google.api.AnnotationsProto.getDescriptor();
com.google.api.ClientProto.getDescriptor();
com.google.api.FieldBehaviorProto.getDescriptor();
Expand Down
Loading