Skip to content

Commit

Permalink
feat: [batch] add a CloudLoggingOption and use_generic_task_monitored…
Browse files Browse the repository at this point in the history
…_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: googleapis/googleapis-gen@b07e603
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: googleapis/googleapis-gen@f2e86a5
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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Nov 27, 2023
1 parent 8cca9aa commit 5c91759
Show file tree
Hide file tree
Showing 13 changed files with 1,229 additions and 123 deletions.
Expand Up @@ -971,6 +971,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.batch.v1.LogsPolicy$CloudLoggingOption",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.batch.v1.LogsPolicy$CloudLoggingOption$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.batch.v1.LogsPolicy$Destination",
"queryAllDeclaredConstructors": true,
Expand Down
Expand Up @@ -4466,7 +4466,7 @@ public interface AcceleratorOrBuilder
* <code>bool install_gpu_drivers = 3 [deprecated = true];</code>
*
* @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is
* deprecated. See google/cloud/batch/v1/job.proto;l=340
* deprecated. See google/cloud/batch/v1/job.proto;l=349
* @return The installGpuDrivers.
*/
@java.lang.Deprecated
Expand Down Expand Up @@ -4637,7 +4637,7 @@ public long getCount() {
* <code>bool install_gpu_drivers = 3 [deprecated = true];</code>
*
* @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is
* deprecated. See google/cloud/batch/v1/job.proto;l=340
* deprecated. See google/cloud/batch/v1/job.proto;l=349
* @return The installGpuDrivers.
*/
@java.lang.Override
Expand Down Expand Up @@ -5299,7 +5299,7 @@ public Builder clearCount() {
* <code>bool install_gpu_drivers = 3 [deprecated = true];</code>
*
* @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is
* deprecated. See google/cloud/batch/v1/job.proto;l=340
* deprecated. See google/cloud/batch/v1/job.proto;l=349
* @return The installGpuDrivers.
*/
@java.lang.Override
Expand All @@ -5317,7 +5317,7 @@ public boolean getInstallGpuDrivers() {
* <code>bool install_gpu_drivers = 3 [deprecated = true];</code>
*
* @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is
* deprecated. See google/cloud/batch/v1/job.proto;l=340
* deprecated. See google/cloud/batch/v1/job.proto;l=349
* @param value The installGpuDrivers to set.
* @return This builder for chaining.
*/
Expand All @@ -5339,7 +5339,7 @@ public Builder setInstallGpuDrivers(boolean value) {
* <code>bool install_gpu_drivers = 3 [deprecated = true];</code>
*
* @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is
* deprecated. See google/cloud/batch/v1/job.proto;l=340
* deprecated. See google/cloud/batch/v1/job.proto;l=349
* @return This builder for chaining.
*/
@java.lang.Deprecated
Expand Down Expand Up @@ -13018,6 +13018,10 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
*
* <pre>
* The network policy.
*
* If you define an instance template in the InstancePolicyOrTemplate field,
* Batch will use the network settings in the instance template instead of
* this field.
* </pre>
*
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
Expand All @@ -13033,6 +13037,10 @@ public boolean hasNetwork() {
*
* <pre>
* The network policy.
*
* If you define an instance template in the InstancePolicyOrTemplate field,
* Batch will use the network settings in the instance template instead of
* this field.
* </pre>
*
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
Expand All @@ -13050,6 +13058,10 @@ public com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy getNetwork() {
*
* <pre>
* The network policy.
*
* If you define an instance template in the InstancePolicyOrTemplate field,
* Batch will use the network settings in the instance template instead of
* this field.
* </pre>
*
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
Expand Down Expand Up @@ -14699,6 +14711,10 @@ public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> va
*
* <pre>
* The network policy.
*
* If you define an instance template in the InstancePolicyOrTemplate field,
* Batch will use the network settings in the instance template instead of
* this field.
* </pre>
*
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
Expand All @@ -14713,6 +14729,10 @@ public boolean hasNetwork() {
*
* <pre>
* The network policy.
*
* If you define an instance template in the InstancePolicyOrTemplate field,
* Batch will use the network settings in the instance template instead of
* this field.
* </pre>
*
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
Expand All @@ -14733,6 +14753,10 @@ public com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy getNetwork() {
*
* <pre>
* The network policy.
*
* If you define an instance template in the InstancePolicyOrTemplate field,
* Batch will use the network settings in the instance template instead of
* this field.
* </pre>
*
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
Expand All @@ -14755,6 +14779,10 @@ public Builder setNetwork(com.google.cloud.batch.v1.AllocationPolicy.NetworkPoli
*
* <pre>
* The network policy.
*
* If you define an instance template in the InstancePolicyOrTemplate field,
* Batch will use the network settings in the instance template instead of
* this field.
* </pre>
*
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
Expand All @@ -14775,6 +14803,10 @@ public Builder setNetwork(
*
* <pre>
* The network policy.
*
* If you define an instance template in the InstancePolicyOrTemplate field,
* Batch will use the network settings in the instance template instead of
* this field.
* </pre>
*
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
Expand All @@ -14801,6 +14833,10 @@ public Builder mergeNetwork(com.google.cloud.batch.v1.AllocationPolicy.NetworkPo
*
* <pre>
* The network policy.
*
* If you define an instance template in the InstancePolicyOrTemplate field,
* Batch will use the network settings in the instance template instead of
* this field.
* </pre>
*
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
Expand All @@ -14820,6 +14856,10 @@ public Builder clearNetwork() {
*
* <pre>
* The network policy.
*
* If you define an instance template in the InstancePolicyOrTemplate field,
* Batch will use the network settings in the instance template instead of
* this field.
* </pre>
*
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
Expand All @@ -14834,6 +14874,10 @@ public com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.Builder getNetwo
*
* <pre>
* The network policy.
*
* If you define an instance template in the InstancePolicyOrTemplate field,
* Batch will use the network settings in the instance template instead of
* this field.
* </pre>
*
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
Expand All @@ -14852,6 +14896,10 @@ public com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicyOrBuilder getNetw
*
* <pre>
* The network policy.
*
* If you define an instance template in the InstancePolicyOrTemplate field,
* Batch will use the network settings in the instance template instead of
* this field.
* </pre>
*
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
Expand Down
Expand Up @@ -251,6 +251,10 @@ java.lang.String getLabelsOrDefault(
*
* <pre>
* The network policy.
*
* If you define an instance template in the InstancePolicyOrTemplate field,
* Batch will use the network settings in the instance template instead of
* this field.
* </pre>
*
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
Expand All @@ -263,6 +267,10 @@ java.lang.String getLabelsOrDefault(
*
* <pre>
* The network policy.
*
* If you define an instance template in the InstancePolicyOrTemplate field,
* Batch will use the network settings in the instance template instead of
* this field.
* </pre>
*
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
Expand All @@ -275,6 +283,10 @@ java.lang.String getLabelsOrDefault(
*
* <pre>
* The network policy.
*
* If you define an instance template in the InstancePolicyOrTemplate field,
* Batch will use the network settings in the instance template instead of
* this field.
* </pre>
*
* <code>.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;</code>
Expand Down

0 comments on commit 5c91759

Please sign in to comment.