Skip to content

Commit 3e68770

Browse files
feat: Automated regeneration of ContainerAnalysis client (googleapis#12896)
Auto-created at 2025-01-31 13:10:03 +0000 using the toys pull request generator.
1 parent a91e443 commit 3e68770

20 files changed

+501
-5
lines changed

clients/container_analysis/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_container_analysis, "~> 0.33"}]
14+
[{:google_api_container_analysis, "~> 0.34"}]
1515
end
1616
```
1717

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

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

23-
@discovery_revision "20240816"
23+
@discovery_revision "20250124"
2424

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

clients/container_analysis/lib/google_api/container_analysis/v1/model/containeranalysis_google_devtools_cloudbuild_v1_artifacts.ex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ defmodule GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCl
2121
2222
## Attributes
2323
24+
* `goModules` (*type:* `list(GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule.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.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact.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.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage.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,6 +32,11 @@ defmodule GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCl
3132
use GoogleApi.Gax.ModelBase
3233

3334
@type t :: %__MODULE__{
35+
:goModules =>
36+
list(
37+
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule.t()
38+
)
39+
| nil,
3440
:images => list(String.t()) | nil,
3541
:mavenArtifacts =>
3642
list(
@@ -52,6 +58,12 @@ defmodule GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCl
5258
| nil
5359
}
5460

61+
field(:goModules,
62+
as:
63+
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule,
64+
type: :list
65+
)
66+
5567
field(:images, type: :list)
5668

5769
field(:mavenArtifacts,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule 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,
52+
for:
53+
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule do
54+
def decode(value, options) do
55+
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule.decode(
56+
value,
57+
options
58+
)
59+
end
60+
end
61+
62+
defimpl Poison.Encoder,
63+
for:
64+
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule do
65+
def encode(value, options) do
66+
GoogleApi.Gax.ModelBase.encode(value, options)
67+
end
68+
end

clients/container_analysis/lib/google_api/container_analysis/v1/model/containeranalysis_google_devtools_cloudbuild_v1_build_options.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ defmodule GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCl
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.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCl
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,
@@ -68,6 +70,7 @@ defmodule GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCl
6870
field(:defaultLogsBucketBehavior)
6971
field(:diskSizeGb)
7072
field(:dynamicSubstitutions)
73+
field(:enableStructuredLogging)
7174
field(:env, type: :list)
7275
field(:logStreamingOption)
7376
field(:logging)

clients/container_analysis/lib/google_api/container_analysis/v1/model/containeranalysis_google_devtools_cloudbuild_v1_results.ex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ defmodule GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCl
2525
* `artifactTiming` (*type:* `GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan.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.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule.t)`, *default:* `nil`) - Optional. Go module artifacts uploaded to Artifact Registry at the end of the build.
2829
* `images` (*type:* `list(GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage.t)`, *default:* `nil`) - Container images that were built as a part of the build.
2930
* `mavenArtifacts` (*type:* `list(GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact.t)`, *default:* `nil`) - Maven artifacts uploaded to Artifact Registry at the end of the build.
3031
* `npmPackages` (*type:* `list(GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedNpmPackage.t)`, *default:* `nil`) - Npm packages uploaded to Artifact Registry at the end of the build.
@@ -41,6 +42,11 @@ defmodule GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCl
4142
| nil,
4243
:buildStepImages => list(String.t()) | nil,
4344
:buildStepOutputs => list(String.t()) | nil,
45+
:goModules =>
46+
list(
47+
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule.t()
48+
)
49+
| nil,
4450
:images =>
4551
list(
4652
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage.t()
@@ -73,6 +79,12 @@ defmodule GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCl
7379
field(:buildStepImages, type: :list)
7480
field(:buildStepOutputs, type: :list)
7581

82+
field(:goModules,
83+
as:
84+
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule,
85+
type: :list
86+
)
87+
7688
field(:images,
7789
as:
7890
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule do
19+
@moduledoc """
20+
A Go module artifact uploaded to Artifact Registry using the GoModule directive.
21+
22+
## Attributes
23+
24+
* `fileHashes` (*type:* `GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes.t`, *default:* `nil`) - Hash types and values of the Go Module Artifact.
25+
* `pushTiming` (*type:* `GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan.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 =>
33+
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes.t()
34+
| nil,
35+
:pushTiming =>
36+
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan.t()
37+
| nil,
38+
:uri => String.t() | nil
39+
}
40+
41+
field(:fileHashes,
42+
as: GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes
43+
)
44+
45+
field(:pushTiming,
46+
as: GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan
47+
)
48+
49+
field(:uri)
50+
end
51+
52+
defimpl Poison.Decoder,
53+
for:
54+
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule do
55+
def decode(value, options) do
56+
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule.decode(
57+
value,
58+
options
59+
)
60+
end
61+
end
62+
63+
defimpl Poison.Encoder,
64+
for:
65+
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule do
66+
def encode(value, options) do
67+
GoogleApi.Gax.ModelBase.encode(value, options)
68+
end
69+
end

clients/container_analysis/lib/google_api/container_analysis/v1alpha1/metadata.ex

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

23-
@discovery_revision "20240816"
23+
@discovery_revision "20250124"
2424

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

clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/containeranalysis_google_devtools_cloudbuild_v1_artifacts.ex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ defmodule GoogleApi.ContainerAnalysis.V1alpha1.Model.ContaineranalysisGoogleDevt
2121
2222
## Attributes
2323
24+
* `goModules` (*type:* `list(GoogleApi.ContainerAnalysis.V1alpha1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule.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.ContainerAnalysis.V1alpha1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact.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.ContainerAnalysis.V1alpha1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage.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,6 +32,11 @@ defmodule GoogleApi.ContainerAnalysis.V1alpha1.Model.ContaineranalysisGoogleDevt
3132
use GoogleApi.Gax.ModelBase
3233

3334
@type t :: %__MODULE__{
35+
:goModules =>
36+
list(
37+
GoogleApi.ContainerAnalysis.V1alpha1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule.t()
38+
)
39+
| nil,
3440
:images => list(String.t()) | nil,
3541
:mavenArtifacts =>
3642
list(
@@ -52,6 +58,12 @@ defmodule GoogleApi.ContainerAnalysis.V1alpha1.Model.ContaineranalysisGoogleDevt
5258
| nil
5359
}
5460

61+
field(:goModules,
62+
as:
63+
GoogleApi.ContainerAnalysis.V1alpha1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule,
64+
type: :list
65+
)
66+
5567
field(:images, type: :list)
5668

5769
field(:mavenArtifacts,

0 commit comments

Comments
 (0)