Skip to content

Commit 5c91759

Browse files
feat: [batch] add a CloudLoggingOption and use_generic_task_monitored_resource fields for users to opt out new batch monitored resource in cloud logging (#10073)
* feat: Add TaskGroup.enable_oslogin to give the Batch job submitter the ability to run runnables as non-root controlled by IAM docs: Update documentation for the network field of AllocationPolicy PiperOrigin-RevId: 584258085 Source-Link: googleapis/googleapis@0f85c39 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b07e603f8671a6b281e4c3edb92ff219da25b30c Copy-Tag: eyJwIjoiamF2YS1iYXRjaC8uT3dsQm90LnlhbWwiLCJoIjoiYjA3ZTYwM2Y4NjcxYTZiMjgxZTRjM2VkYjkyZmYyMTlkYTI1YjMwYyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add a CloudLoggingOption and use_generic_task_monitored_resource fields for users to opt out new batch monitored resource in cloud logging docs: update comment for AllocationPolicy.network PiperOrigin-RevId: 584365225 Source-Link: googleapis/googleapis@ad35fda Source-Link: https://github.com/googleapis/googleapis-gen/commit/f2e86a550e4dcb9d19269247cd10be88d3e00a9d Copy-Tag: eyJwIjoiamF2YS1iYXRjaC8uT3dsQm90LnlhbWwiLCJoIjoiZjJlODZhNTUwZTRkY2I5ZDE5MjY5MjQ3Y2QxMGJlODhkM2UwMGE5ZCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 8cca9aa commit 5c91759

File tree

13 files changed

+1229
-123
lines changed

13 files changed

+1229
-123
lines changed

java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1/reflect-config.json

+18
Original file line numberDiff line numberDiff line change
@@ -971,6 +971,24 @@
971971
"allDeclaredClasses": true,
972972
"allPublicClasses": true
973973
},
974+
{
975+
"name": "com.google.cloud.batch.v1.LogsPolicy$CloudLoggingOption",
976+
"queryAllDeclaredConstructors": true,
977+
"queryAllPublicConstructors": true,
978+
"queryAllDeclaredMethods": true,
979+
"allPublicMethods": true,
980+
"allDeclaredClasses": true,
981+
"allPublicClasses": true
982+
},
983+
{
984+
"name": "com.google.cloud.batch.v1.LogsPolicy$CloudLoggingOption$Builder",
985+
"queryAllDeclaredConstructors": true,
986+
"queryAllPublicConstructors": true,
987+
"queryAllDeclaredMethods": true,
988+
"allPublicMethods": true,
989+
"allDeclaredClasses": true,
990+
"allPublicClasses": true
991+
},
974992
{
975993
"name": "com.google.cloud.batch.v1.LogsPolicy$Destination",
976994
"queryAllDeclaredConstructors": true,

java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java

+53-5
Original file line numberDiff line numberDiff line change
@@ -4466,7 +4466,7 @@ public interface AcceleratorOrBuilder
44664466
* <code>bool install_gpu_drivers = 3 [deprecated = true];</code>
44674467
*
44684468
* @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is
4469-
* deprecated. See google/cloud/batch/v1/job.proto;l=340
4469+
* deprecated. See google/cloud/batch/v1/job.proto;l=349
44704470
* @return The installGpuDrivers.
44714471
*/
44724472
@java.lang.Deprecated
@@ -4637,7 +4637,7 @@ public long getCount() {
46374637
* <code>bool install_gpu_drivers = 3 [deprecated = true];</code>
46384638
*
46394639
* @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is
4640-
* deprecated. See google/cloud/batch/v1/job.proto;l=340
4640+
* deprecated. See google/cloud/batch/v1/job.proto;l=349
46414641
* @return The installGpuDrivers.
46424642
*/
46434643
@java.lang.Override
@@ -5299,7 +5299,7 @@ public Builder clearCount() {
52995299
* <code>bool install_gpu_drivers = 3 [deprecated = true];</code>
53005300
*
53015301
* @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is
5302-
* deprecated. See google/cloud/batch/v1/job.proto;l=340
5302+
* deprecated. See google/cloud/batch/v1/job.proto;l=349
53035303
* @return The installGpuDrivers.
53045304
*/
53055305
@java.lang.Override
@@ -5317,7 +5317,7 @@ public boolean getInstallGpuDrivers() {
53175317
* <code>bool install_gpu_drivers = 3 [deprecated = true];</code>
53185318
*
53195319
* @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is
5320-
* deprecated. See google/cloud/batch/v1/job.proto;l=340
5320+
* deprecated. See google/cloud/batch/v1/job.proto;l=349
53215321
* @param value The installGpuDrivers to set.
53225322
* @return This builder for chaining.
53235323
*/
@@ -5339,7 +5339,7 @@ public Builder setInstallGpuDrivers(boolean value) {
53395339
* <code>bool install_gpu_drivers = 3 [deprecated = true];</code>
53405340
*
53415341
* @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is
5342-
* deprecated. See google/cloud/batch/v1/job.proto;l=340
5342+
* deprecated. See google/cloud/batch/v1/job.proto;l=349
53435343
* @return This builder for chaining.
53445344
*/
53455345
@java.lang.Deprecated
@@ -13018,6 +13018,10 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
1301813018
*
1301913019
* <pre>
1302013020
* The network policy.
13021+
*
13022+
* If you define an instance template in the InstancePolicyOrTemplate field,
13023+
* Batch will use the network settings in the instance template instead of
13024+
* this field.
1302113025
* </pre>
1302213026
*
1302313027
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
@@ -13033,6 +13037,10 @@ public boolean hasNetwork() {
1303313037
*
1303413038
* <pre>
1303513039
* The network policy.
13040+
*
13041+
* If you define an instance template in the InstancePolicyOrTemplate field,
13042+
* Batch will use the network settings in the instance template instead of
13043+
* this field.
1303613044
* </pre>
1303713045
*
1303813046
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
@@ -13050,6 +13058,10 @@ public com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy getNetwork() {
1305013058
*
1305113059
* <pre>
1305213060
* The network policy.
13061+
*
13062+
* If you define an instance template in the InstancePolicyOrTemplate field,
13063+
* Batch will use the network settings in the instance template instead of
13064+
* this field.
1305313065
* </pre>
1305413066
*
1305513067
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
@@ -14699,6 +14711,10 @@ public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> va
1469914711
*
1470014712
* <pre>
1470114713
* The network policy.
14714+
*
14715+
* If you define an instance template in the InstancePolicyOrTemplate field,
14716+
* Batch will use the network settings in the instance template instead of
14717+
* this field.
1470214718
* </pre>
1470314719
*
1470414720
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
@@ -14713,6 +14729,10 @@ public boolean hasNetwork() {
1471314729
*
1471414730
* <pre>
1471514731
* The network policy.
14732+
*
14733+
* If you define an instance template in the InstancePolicyOrTemplate field,
14734+
* Batch will use the network settings in the instance template instead of
14735+
* this field.
1471614736
* </pre>
1471714737
*
1471814738
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
@@ -14733,6 +14753,10 @@ public com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy getNetwork() {
1473314753
*
1473414754
* <pre>
1473514755
* The network policy.
14756+
*
14757+
* If you define an instance template in the InstancePolicyOrTemplate field,
14758+
* Batch will use the network settings in the instance template instead of
14759+
* this field.
1473614760
* </pre>
1473714761
*
1473814762
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
@@ -14755,6 +14779,10 @@ public Builder setNetwork(com.google.cloud.batch.v1.AllocationPolicy.NetworkPoli
1475514779
*
1475614780
* <pre>
1475714781
* The network policy.
14782+
*
14783+
* If you define an instance template in the InstancePolicyOrTemplate field,
14784+
* Batch will use the network settings in the instance template instead of
14785+
* this field.
1475814786
* </pre>
1475914787
*
1476014788
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
@@ -14775,6 +14803,10 @@ public Builder setNetwork(
1477514803
*
1477614804
* <pre>
1477714805
* The network policy.
14806+
*
14807+
* If you define an instance template in the InstancePolicyOrTemplate field,
14808+
* Batch will use the network settings in the instance template instead of
14809+
* this field.
1477814810
* </pre>
1477914811
*
1478014812
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
@@ -14801,6 +14833,10 @@ public Builder mergeNetwork(com.google.cloud.batch.v1.AllocationPolicy.NetworkPo
1480114833
*
1480214834
* <pre>
1480314835
* The network policy.
14836+
*
14837+
* If you define an instance template in the InstancePolicyOrTemplate field,
14838+
* Batch will use the network settings in the instance template instead of
14839+
* this field.
1480414840
* </pre>
1480514841
*
1480614842
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
@@ -14820,6 +14856,10 @@ public Builder clearNetwork() {
1482014856
*
1482114857
* <pre>
1482214858
* The network policy.
14859+
*
14860+
* If you define an instance template in the InstancePolicyOrTemplate field,
14861+
* Batch will use the network settings in the instance template instead of
14862+
* this field.
1482314863
* </pre>
1482414864
*
1482514865
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
@@ -14834,6 +14874,10 @@ public com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.Builder getNetwo
1483414874
*
1483514875
* <pre>
1483614876
* The network policy.
14877+
*
14878+
* If you define an instance template in the InstancePolicyOrTemplate field,
14879+
* Batch will use the network settings in the instance template instead of
14880+
* this field.
1483714881
* </pre>
1483814882
*
1483914883
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
@@ -14852,6 +14896,10 @@ public com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicyOrBuilder getNetw
1485214896
*
1485314897
* <pre>
1485414898
* The network policy.
14899+
*
14900+
* If you define an instance template in the InstancePolicyOrTemplate field,
14901+
* Batch will use the network settings in the instance template instead of
14902+
* this field.
1485514903
* </pre>
1485614904
*
1485714905
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>

java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicyOrBuilder.java

+12
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,10 @@ java.lang.String getLabelsOrDefault(
251251
*
252252
* <pre>
253253
* The network policy.
254+
*
255+
* If you define an instance template in the InstancePolicyOrTemplate field,
256+
* Batch will use the network settings in the instance template instead of
257+
* this field.
254258
* </pre>
255259
*
256260
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
@@ -263,6 +267,10 @@ java.lang.String getLabelsOrDefault(
263267
*
264268
* <pre>
265269
* The network policy.
270+
*
271+
* If you define an instance template in the InstancePolicyOrTemplate field,
272+
* Batch will use the network settings in the instance template instead of
273+
* this field.
266274
* </pre>
267275
*
268276
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
@@ -275,6 +283,10 @@ java.lang.String getLabelsOrDefault(
275283
*
276284
* <pre>
277285
* The network policy.
286+
*
287+
* If you define an instance template in the InstancePolicyOrTemplate field,
288+
* Batch will use the network settings in the instance template instead of
289+
* this field.
278290
* </pre>
279291
*
280292
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>

0 commit comments

Comments
 (0)