Skip to content

Commit f9b5b1e

Browse files
feat: Automated regeneration of CloudBuild client (googleapis#12822)
Auto-created at 2025-01-15 13:12:17 +0000 using the toys pull request generator.
1 parent 04a7363 commit f9b5b1e

File tree

9 files changed

+126
-4
lines changed

9 files changed

+126
-4
lines changed

clients/cloud_build/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_cloud_build, "~> 0.53"}]
14+
[{:google_api_cloud_build, "~> 0.54"}]
1515
end
1616
```
1717

clients/cloud_build/lib/google_api/cloud_build/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.CloudBuild.V1 do
2020
API client metadata for GoogleApi.CloudBuild.V1.
2121
"""
2222

23-
@discovery_revision "20241210"
23+
@discovery_revision "20250114"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/cloud_build/lib/google_api/cloud_build/v1/model/artifacts.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ defmodule GoogleApi.CloudBuild.V1.Model.Artifacts do
2121
2222
## Attributes
2323
24+
* `goModules` (*type:* `list(GoogleApi.CloudBuild.V1.Model.GoModule.t)`, *default:* `nil`) - Optional. A list of Go modules to be uploaded to Artifact Registry upon successful completion of all build steps. If any objects fail to be pushed, the build is marked FAILURE.
2425
* `images` (*type:* `list(String.t)`, *default:* `nil`) - A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account's credentials. The digests of the pushed images will be stored in the Build resource's results field. If any of the images fail to be pushed, the build is marked FAILURE.
2526
* `mavenArtifacts` (*type:* `list(GoogleApi.CloudBuild.V1.Model.MavenArtifact.t)`, *default:* `nil`) - A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE.
2627
* `npmPackages` (*type:* `list(GoogleApi.CloudBuild.V1.Model.NpmPackage.t)`, *default:* `nil`) - A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps. Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any packages fail to be pushed, the build is marked FAILURE.
@@ -31,13 +32,15 @@ defmodule GoogleApi.CloudBuild.V1.Model.Artifacts do
3132
use GoogleApi.Gax.ModelBase
3233

3334
@type t :: %__MODULE__{
35+
:goModules => list(GoogleApi.CloudBuild.V1.Model.GoModule.t()) | nil,
3436
:images => list(String.t()) | nil,
3537
:mavenArtifacts => list(GoogleApi.CloudBuild.V1.Model.MavenArtifact.t()) | nil,
3638
:npmPackages => list(GoogleApi.CloudBuild.V1.Model.NpmPackage.t()) | nil,
3739
:objects => GoogleApi.CloudBuild.V1.Model.ArtifactObjects.t() | nil,
3840
:pythonPackages => list(GoogleApi.CloudBuild.V1.Model.PythonPackage.t()) | nil
3941
}
4042

43+
field(:goModules, as: GoogleApi.CloudBuild.V1.Model.GoModule, type: :list)
4144
field(:images, type: :list)
4245
field(:mavenArtifacts, as: GoogleApi.CloudBuild.V1.Model.MavenArtifact, type: :list)
4346
field(:npmPackages, as: GoogleApi.CloudBuild.V1.Model.NpmPackage, type: :list)

clients/cloud_build/lib/google_api/cloud_build/v1/model/build_options.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ defmodule GoogleApi.CloudBuild.V1.Model.BuildOptions do
2525
* `defaultLogsBucketBehavior` (*type:* `String.t`, *default:* `nil`) - Optional. Option to specify how default logs buckets are setup.
2626
* `diskSizeGb` (*type:* `String.t`, *default:* `nil`) - Requested disk size for the VM that runs the build. Note that this is *NOT* "disk free"; some of the space will be used by the operating system and build utilities. Also note that this is the minimum disk size that will be allocated for the build -- the build may run with a larger disk than requested. At present, the maximum disk size is 4000GB; builds that request more than the maximum are rejected with an error.
2727
* `dynamicSubstitutions` (*type:* `boolean()`, *default:* `nil`) - Option to specify whether or not to apply bash style string operations to the substitutions. NOTE: this is always enabled for triggered builds and cannot be overridden in the build configuration file.
28+
* `enableStructuredLogging` (*type:* `boolean()`, *default:* `nil`) - Optional. Option to specify whether structured logging is enabled. If true, JSON-formatted logs are parsed as structured logs.
2829
* `env` (*type:* `list(String.t)`, *default:* `nil`) - A list of global environment variable definitions that will exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will use the build step value. The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE".
2930
* `logStreamingOption` (*type:* `String.t`, *default:* `nil`) - Option to define build log streaming behavior to Cloud Storage.
3031
* `logging` (*type:* `String.t`, *default:* `nil`) - Option to specify the logging mode, which determines if and where build logs are stored.
@@ -45,6 +46,7 @@ defmodule GoogleApi.CloudBuild.V1.Model.BuildOptions do
4546
:defaultLogsBucketBehavior => String.t() | nil,
4647
:diskSizeGb => String.t() | nil,
4748
:dynamicSubstitutions => boolean() | nil,
49+
:enableStructuredLogging => boolean() | nil,
4850
:env => list(String.t()) | nil,
4951
:logStreamingOption => String.t() | nil,
5052
:logging => String.t() | nil,
@@ -62,6 +64,7 @@ defmodule GoogleApi.CloudBuild.V1.Model.BuildOptions do
6264
field(:defaultLogsBucketBehavior)
6365
field(:diskSizeGb)
6466
field(:dynamicSubstitutions)
67+
field(:enableStructuredLogging)
6568
field(:env, type: :list)
6669
field(:logStreamingOption)
6770
field(:logging)
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.CloudBuild.V1.Model.GoModule do
19+
@moduledoc """
20+
Go module to upload to Artifact Registry upon successful completion of all build steps. A module refers to all dependencies in a go.mod file.
21+
22+
## Attributes
23+
24+
* `modulePath` (*type:* `String.t`, *default:* `nil`) - Optional. The Go module's "module path". e.g. example.com/foo/v2
25+
* `moduleVersion` (*type:* `String.t`, *default:* `nil`) - Optional. The Go module's semantic version in the form vX.Y.Z. e.g. v0.1.1 Pre-release identifiers can also be added by appending a dash and dot separated ASCII alphanumeric characters and hyphens. e.g. v0.2.3-alpha.x.12m.5
26+
* `repositoryLocation` (*type:* `String.t`, *default:* `nil`) - Optional. Location of the Artifact Registry repository. i.e. us-east1 Defaults to the build’s location.
27+
* `repositoryName` (*type:* `String.t`, *default:* `nil`) - Optional. Artifact Registry repository name. Specified Go modules will be zipped and uploaded to Artifact Registry with this location as a prefix. e.g. my-go-repo
28+
* `repositoryProjectId` (*type:* `String.t`, *default:* `nil`) - Optional. Project ID of the Artifact Registry repository. Defaults to the build project.
29+
* `sourcePath` (*type:* `String.t`, *default:* `nil`) - Optional. Source path of the go.mod file in the build's workspace. If not specified, this will default to the current directory. e.g. ~/code/go/mypackage
30+
"""
31+
32+
use GoogleApi.Gax.ModelBase
33+
34+
@type t :: %__MODULE__{
35+
:modulePath => String.t() | nil,
36+
:moduleVersion => String.t() | nil,
37+
:repositoryLocation => String.t() | nil,
38+
:repositoryName => String.t() | nil,
39+
:repositoryProjectId => String.t() | nil,
40+
:sourcePath => String.t() | nil
41+
}
42+
43+
field(:modulePath)
44+
field(:moduleVersion)
45+
field(:repositoryLocation)
46+
field(:repositoryName)
47+
field(:repositoryProjectId)
48+
field(:sourcePath)
49+
end
50+
51+
defimpl Poison.Decoder, for: GoogleApi.CloudBuild.V1.Model.GoModule do
52+
def decode(value, options) do
53+
GoogleApi.CloudBuild.V1.Model.GoModule.decode(value, options)
54+
end
55+
end
56+
57+
defimpl Poison.Encoder, for: GoogleApi.CloudBuild.V1.Model.GoModule do
58+
def encode(value, options) do
59+
GoogleApi.Gax.ModelBase.encode(value, options)
60+
end
61+
end

clients/cloud_build/lib/google_api/cloud_build/v1/model/results.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ defmodule GoogleApi.CloudBuild.V1.Model.Results do
2525
* `artifactTiming` (*type:* `GoogleApi.CloudBuild.V1.Model.TimeSpan.t`, *default:* `nil`) - Time to push all non-container artifacts to Cloud Storage.
2626
* `buildStepImages` (*type:* `list(String.t)`, *default:* `nil`) - List of build step digests, in the order corresponding to build step indices.
2727
* `buildStepOutputs` (*type:* `list(String.t)`, *default:* `nil`) - List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 50KB of data is stored. Note that the `$BUILDER_OUTPUT` variable is read-only and can't be substituted.
28+
* `goModules` (*type:* `list(GoogleApi.CloudBuild.V1.Model.UploadedGoModule.t)`, *default:* `nil`) - Optional. Go module artifacts uploaded to Artifact Registry at the end of the build.
2829
* `images` (*type:* `list(GoogleApi.CloudBuild.V1.Model.BuiltImage.t)`, *default:* `nil`) - Container images that were built as a part of the build.
2930
* `mavenArtifacts` (*type:* `list(GoogleApi.CloudBuild.V1.Model.UploadedMavenArtifact.t)`, *default:* `nil`) - Maven artifacts uploaded to Artifact Registry at the end of the build.
3031
* `npmPackages` (*type:* `list(GoogleApi.CloudBuild.V1.Model.UploadedNpmPackage.t)`, *default:* `nil`) - Npm packages uploaded to Artifact Registry at the end of the build.
@@ -39,6 +40,7 @@ defmodule GoogleApi.CloudBuild.V1.Model.Results do
3940
:artifactTiming => GoogleApi.CloudBuild.V1.Model.TimeSpan.t() | nil,
4041
:buildStepImages => list(String.t()) | nil,
4142
:buildStepOutputs => list(String.t()) | nil,
43+
:goModules => list(GoogleApi.CloudBuild.V1.Model.UploadedGoModule.t()) | nil,
4244
:images => list(GoogleApi.CloudBuild.V1.Model.BuiltImage.t()) | nil,
4345
:mavenArtifacts => list(GoogleApi.CloudBuild.V1.Model.UploadedMavenArtifact.t()) | nil,
4446
:npmPackages => list(GoogleApi.CloudBuild.V1.Model.UploadedNpmPackage.t()) | nil,
@@ -50,6 +52,7 @@ defmodule GoogleApi.CloudBuild.V1.Model.Results do
5052
field(:artifactTiming, as: GoogleApi.CloudBuild.V1.Model.TimeSpan)
5153
field(:buildStepImages, type: :list)
5254
field(:buildStepOutputs, type: :list)
55+
field(:goModules, as: GoogleApi.CloudBuild.V1.Model.UploadedGoModule, type: :list)
5356
field(:images, as: GoogleApi.CloudBuild.V1.Model.BuiltImage, type: :list)
5457
field(:mavenArtifacts, as: GoogleApi.CloudBuild.V1.Model.UploadedMavenArtifact, type: :list)
5558
field(:npmPackages, as: GoogleApi.CloudBuild.V1.Model.UploadedNpmPackage, type: :list)
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.CloudBuild.V1.Model.UploadedGoModule do
19+
@moduledoc """
20+
A Go module artifact uploaded to Artifact Registry using the GoModule directive.
21+
22+
## Attributes
23+
24+
* `fileHashes` (*type:* `GoogleApi.CloudBuild.V1.Model.FileHashes.t`, *default:* `nil`) - Hash types and values of the Go Module Artifact.
25+
* `pushTiming` (*type:* `GoogleApi.CloudBuild.V1.Model.TimeSpan.t`, *default:* `nil`) - Output only. Stores timing information for pushing the specified artifact.
26+
* `uri` (*type:* `String.t`, *default:* `nil`) - URI of the uploaded artifact.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:fileHashes => GoogleApi.CloudBuild.V1.Model.FileHashes.t() | nil,
33+
:pushTiming => GoogleApi.CloudBuild.V1.Model.TimeSpan.t() | nil,
34+
:uri => String.t() | nil
35+
}
36+
37+
field(:fileHashes, as: GoogleApi.CloudBuild.V1.Model.FileHashes)
38+
field(:pushTiming, as: GoogleApi.CloudBuild.V1.Model.TimeSpan)
39+
field(:uri)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.CloudBuild.V1.Model.UploadedGoModule do
43+
def decode(value, options) do
44+
GoogleApi.CloudBuild.V1.Model.UploadedGoModule.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.CloudBuild.V1.Model.UploadedGoModule do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end

clients/cloud_build/lib/google_api/cloud_build/v2/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.CloudBuild.V2 do
2020
API client metadata for GoogleApi.CloudBuild.V2.
2121
"""
2222

23-
@discovery_revision "20241210"
23+
@discovery_revision "20250114"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/cloud_build/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.CloudBuild.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.53.1"
21+
@version "0.54.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)