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 Run client #12579

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/run/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_run, "~> 0.40"}]
[{:google_api_run, "~> 0.41"}]
end
```

Expand Down
2 changes: 1 addition & 1 deletion clients/run/lib/google_api/run/v2/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Run.V2 do
API client metadata for GoogleApi.Run.V2.
"""

@discovery_revision "20241109"
@discovery_revision "20241115"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2BuildpacksBuild do
* `enableAutomaticUpdates` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether or not the application container will be enrolled in automatic base image updates. When true, the application will be built on a scratch base image, so the base layers can be appended at run time.
* `environmentVariables` (*type:* `map()`, *default:* `nil`) - Optional. User-provided build-time environment variables.
* `functionTarget` (*type:* `String.t`, *default:* `nil`) - Optional. Name of the function target if the source is a function source. Required for function builds.
* `projectDescriptor` (*type:* `String.t`, *default:* `nil`) - Optional. project_descriptor stores the path to the project descriptor file. When empty, it means that there is no project descriptor file in the source.
* `runtime` (*type:* `String.t`, *default:* `nil`) - The runtime name, e.g. 'go113'. Leave blank for generic builds.
"""

Expand All @@ -37,6 +38,7 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2BuildpacksBuild do
:enableAutomaticUpdates => boolean() | nil,
:environmentVariables => map() | nil,
:functionTarget => String.t() | nil,
:projectDescriptor => String.t() | nil,
:runtime => String.t() | nil
}

Expand All @@ -45,6 +47,7 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2BuildpacksBuild do
field(:enableAutomaticUpdates)
field(:environmentVariables, type: :map)
field(:functionTarget)
field(:projectDescriptor)
field(:runtime)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2RevisionTemplate do
* `executionEnvironment` (*type:* `String.t`, *default:* `nil`) - Optional. The sandbox environment to host this Revision.
* `healthCheckDisabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Disables health checking containers during deployment.
* `labels` (*type:* `map()`, *default:* `nil`) - Optional. Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 RevisionTemplate.
* `maxInstanceRequestConcurrency` (*type:* `integer()`, *default:* `nil`) - Optional. Sets the maximum number of requests that each serving instance can receive. If not specified or 0, defaults to 80 when requested `CPU >= 1` and defaults to 1 when requested `CPU < 1`.
* `maxInstanceRequestConcurrency` (*type:* `integer()`, *default:* `nil`) - Optional. Sets the maximum number of requests that each serving instance can receive. If not specified or 0, concurrency defaults to 80 when requested `CPU >= 1` and defaults to 1 when requested `CPU < 1`.
* `nodeSelector` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2NodeSelector.t`, *default:* `nil`) - Optional. The node selector for the revision template.
* `revision` (*type:* `String.t`, *default:* `nil`) - Optional. The unique name for the revision. If this field is omitted, it will be automatically generated based on the Service name.
* `scaling` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2RevisionScaling.t`, *default:* `nil`) - Optional. Scaling settings for this Revision.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2SecretVolumeSource do

## Attributes

* `defaultMode` (*type:* `integer()`, *default:* `nil`) - Integer representation of mode bits to use on created files by default. Must be a value between 0000 and 0777 (octal), defaulting to 0444. Directories within the path are not affected by this setting. Notes * Internally, a umask of 0222 will be applied to any non-zero value. * This is an integer representation of the mode bits. So, the octal integer value should look exactly as the chmod numeric notation with a leading zero. Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10). For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. This might be in conflict with other options that affect the file mode, like fsGroup, and as a result, other mode bits could be set.
* `defaultMode` (*type:* `integer()`, *default:* `nil`) - Integer representation of mode bits to use on created files by default. Must be a value between 0000 and 0777 (octal), defaulting to 0444. Directories within the path are not affected by this setting. Notes * Internally, a umask of 0222 will be applied to any non-zero value. * This is an integer representation of the mode bits. So, the octal integer value should look exactly as the chmod numeric notation with a leading zero. Some examples: for chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. This might be in conflict with other options that affect the file mode, like fsGroup, and as a result, other mode bits could be set.
* `items` (*type:* `list(GoogleApi.Run.V2.Model.GoogleCloudRunV2VersionToPath.t)`, *default:* `nil`) - If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version.
* `secret` (*type:* `String.t`, *default:* `nil`) - Required. The name of the secret in Cloud Secret Manager. Format: {secret} if the secret is in the same project. projects/{project}/secrets/{secret} if the secret is in a different project.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2VersionToPath do

## Attributes

* `mode` (*type:* `integer()`, *default:* `nil`) - Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used. Notes * Internally, a umask of 0222 will be applied to any non-zero value. * This is an integer representation of the mode bits. So, the octal integer value should look exactly as the chmod numeric notation with a leading zero. Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10). For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
* `mode` (*type:* `integer()`, *default:* `nil`) - Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used. Notes * Internally, a umask of 0222 will be applied to any non-zero value. * This is an integer representation of the mode bits. So, the octal integer value should look exactly as the chmod numeric notation with a leading zero. Some examples: for chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
* `path` (*type:* `String.t`, *default:* `nil`) - Required. The relative path of the secret in the container.
* `version` (*type:* `String.t`, *default:* `nil`) - The Cloud Secret Manager secret version. Can be 'latest' for the latest value, or an integer or a secret alias for a specific version.
"""
Expand Down
2 changes: 1 addition & 1 deletion clients/run/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.Run.Mixfile do
use Mix.Project

@version "0.40.0"
@version "0.41.0"

def project() do
[
Expand Down
Loading