From 96eb526e795f4cb6d89e592409139e84c93cb2f4 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sat, 16 Nov 2024 13:10:48 +0000 Subject: [PATCH] feat: Automated regeneration of Batch client --- clients/batch/lib/google_api/batch/v1/metadata.ex | 2 +- .../lib/google_api/batch/v1/model/cloud_logging_option.ex | 2 +- .../batch/v1/model/instance_policy_or_template.ex | 2 +- .../batch/lib/google_api/batch/v1/model/logs_policy.ex | 8 ++++---- clients/batch/mix.exs | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/clients/batch/lib/google_api/batch/v1/metadata.ex b/clients/batch/lib/google_api/batch/v1/metadata.ex index 898f268496..4a57ade032 100644 --- a/clients/batch/lib/google_api/batch/v1/metadata.ex +++ b/clients/batch/lib/google_api/batch/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.Batch.V1 do API client metadata for GoogleApi.Batch.V1. """ - @discovery_revision "20241002" + @discovery_revision "20241106" def discovery_revision(), do: @discovery_revision end diff --git a/clients/batch/lib/google_api/batch/v1/model/cloud_logging_option.ex b/clients/batch/lib/google_api/batch/v1/model/cloud_logging_option.ex index fe554df263..680c553a74 100644 --- a/clients/batch/lib/google_api/batch/v1/model/cloud_logging_option.ex +++ b/clients/batch/lib/google_api/batch/v1/model/cloud_logging_option.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Batch.V1.Model.CloudLoggingOption do ## Attributes - * `useGenericTaskMonitoredResource` (*type:* `boolean()`, *default:* `nil`) - Optional. Set this flag to true to change the [monitored resource type](https://cloud.google.com/monitoring/api/resources) for Cloud Logging logs generated by this Batch job from the [`batch.googleapis.com/Job`](https://cloud.google.com/monitoring/api/resources#tag_batch.googleapis.com/Job) type to the formerly used [`generic_task`](https://cloud.google.com/monitoring/api/resources#tag_generic_task) type. + * `useGenericTaskMonitoredResource` (*type:* `boolean()`, *default:* `nil`) - Optional. Set this field to `true` to change the [monitored resource type](https://cloud.google.com/monitoring/api/resources) for Cloud Logging logs generated by this Batch job from the [`batch.googleapis.com/Job`](https://cloud.google.com/monitoring/api/resources#tag_batch.googleapis.com/Job) type to the formerly used [`generic_task`](https://cloud.google.com/monitoring/api/resources#tag_generic_task) type. """ use GoogleApi.Gax.ModelBase diff --git a/clients/batch/lib/google_api/batch/v1/model/instance_policy_or_template.ex b/clients/batch/lib/google_api/batch/v1/model/instance_policy_or_template.ex index c3fe7a9462..d4a0dfe985 100644 --- a/clients/batch/lib/google_api/batch/v1/model/instance_policy_or_template.ex +++ b/clients/batch/lib/google_api/batch/v1/model/instance_policy_or_template.ex @@ -24,7 +24,7 @@ defmodule GoogleApi.Batch.V1.Model.InstancePolicyOrTemplate do * `blockProjectSshKeys` (*type:* `boolean()`, *default:* `nil`) - Optional. Set this field to `true` if you want Batch to block project-level SSH keys from accessing this job's VMs. Alternatively, you can configure the job to specify a VM instance template that blocks project-level SSH keys. In either case, Batch blocks project-level SSH keys while creating the VMs for this job. Batch allows project-level SSH keys for a job's VMs only if all the following are true: + This field is undefined or set to `false`. + The job's VM instance template (if any) doesn't block project-level SSH keys. Notably, you can override this behavior by manually updating a VM to block or allow project-level SSH keys. For more information about blocking project-level SSH keys, see the Compute Engine documentation: https://cloud.google.com/compute/docs/connect/restrict-ssh-keys#block-keys * `installGpuDrivers` (*type:* `boolean()`, *default:* `nil`) - Set this field true if you want Batch to help fetch drivers from a third party location and install them for GPUs specified in `policy.accelerators` or `instance_template` on your behalf. Default is false. For Container-Optimized Image cases, Batch will install the accelerator driver following milestones of https://cloud.google.com/container-optimized-os/docs/release-notes. For non Container-Optimized Image cases, following https://github.com/GoogleCloudPlatform/compute-gpu-installation/blob/main/linux/install_gpu_driver.py. * `installOpsAgent` (*type:* `boolean()`, *default:* `nil`) - Optional. Set this field true if you want Batch to install Ops Agent on your behalf. Default is false. - * `instanceTemplate` (*type:* `String.t`, *default:* `nil`) - Name of an instance template used to create VMs. Named the field as 'instance_template' instead of 'template' to avoid C++ keyword conflict. Batch only supports global instance templates. You can specify the global instance template as a full or partial URL. + * `instanceTemplate` (*type:* `String.t`, *default:* `nil`) - Name of an instance template used to create VMs. Named the field as 'instance_template' instead of 'template' to avoid C++ keyword conflict. Batch only supports global instance templates from the same project as the job. You can specify the global instance template as a full or partial URL. * `policy` (*type:* `GoogleApi.Batch.V1.Model.InstancePolicy.t`, *default:* `nil`) - InstancePolicy. """ diff --git a/clients/batch/lib/google_api/batch/v1/model/logs_policy.ex b/clients/batch/lib/google_api/batch/v1/model/logs_policy.ex index 729229e697..f8a58b137e 100644 --- a/clients/batch/lib/google_api/batch/v1/model/logs_policy.ex +++ b/clients/batch/lib/google_api/batch/v1/model/logs_policy.ex @@ -17,13 +17,13 @@ defmodule GoogleApi.Batch.V1.Model.LogsPolicy do @moduledoc """ - LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be preserved. + LogsPolicy describes if and how a job's logs are preserved. Logs include information that is automatically written by the Batch service agent and any information that you configured the job's runnables to write to the `stdout` or `stderr` streams. ## Attributes - * `cloudLoggingOption` (*type:* `GoogleApi.Batch.V1.Model.CloudLoggingOption.t`, *default:* `nil`) - Optional. Additional settings for Cloud Logging. It will only take effect when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`. - * `destination` (*type:* `String.t`, *default:* `nil`) - Where logs should be saved. - * `logsPath` (*type:* `String.t`, *default:* `nil`) - The path to which logs are saved when the destination = PATH. This can be a local file path on the VM, or under the mount point of a Persistent Disk or Filestore, or a Cloud Storage path. + * `cloudLoggingOption` (*type:* `GoogleApi.Batch.V1.Model.CloudLoggingOption.t`, *default:* `nil`) - Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally set this field to configure additional settings for Cloud Logging. + * `destination` (*type:* `String.t`, *default:* `nil`) - If and where logs should be saved. + * `logsPath` (*type:* `String.t`, *default:* `nil`) - When `destination` is set to `PATH`, you must set this field to the path where you want logs to be saved. This path can point to a local directory on the VM or (if congifured) a directory under the mount path of any Cloud Storage bucket, network file system (NFS), or writable persistent disk that is mounted to the job. For example, if the job has a bucket with `mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the root directory of the `remotePath` of that bucket by setting this field to `/mnt/disks/my-bucket/`. """ use GoogleApi.Gax.ModelBase diff --git a/clients/batch/mix.exs b/clients/batch/mix.exs index 4d89bcd764..9c08120278 100644 --- a/clients/batch/mix.exs +++ b/clients/batch/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.Batch.Mixfile do use Mix.Project - @version "0.6.4" + @version "0.6.5" def project() do [