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: Automated regeneration of Batch client #12537

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion clients/batch/lib/google_api/batch/v1/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""

Expand Down
8 changes: 4 additions & 4 deletions clients/batch/lib/google_api/batch/v1/model/logs_policy.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion clients/batch/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.Batch.Mixfile do
use Mix.Project

@version "0.6.4"
@version "0.6.5"

def project() do
[
Expand Down
Loading