Skip to content

Commit 944ca57

Browse files
feat: Automated regeneration of ContainerAnalysis client (googleapis#12983)
Auto-created at 2025-02-16 13:09:33 +0000 using the toys pull request generator.
1 parent 3fba2f2 commit 944ca57

19 files changed

+617
-4
lines changed

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 "20250124"
23+
@discovery_revision "20250207"
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_build.ex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ defmodule GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCl
2626
* `availableSecrets` (*type:* `GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1Secrets.t`, *default:* `nil`) - Secrets and secret environment variables.
2727
* `buildTriggerId` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
2828
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time at which the request to create the build was received.
29+
* `dependencies` (*type:* `list(GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency.t)`, *default:* `nil`) - Optional. Dependencies that the Cloud Build worker will fetch before executing user steps.
2930
* `failureInfo` (*type:* `GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo.t`, *default:* `nil`) - Output only. Contains information about the build when status=FAILURE.
3031
* `finishTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build's execution.
3132
* `gitConfig` (*type:* `GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig.t`, *default:* `nil`) - Optional. Configuration for git operations.
@@ -67,6 +68,11 @@ defmodule GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCl
6768
| nil,
6869
:buildTriggerId => String.t() | nil,
6970
:createTime => DateTime.t() | nil,
71+
:dependencies =>
72+
list(
73+
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency.t()
74+
)
75+
| nil,
7076
:failureInfo =>
7177
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo.t()
7278
| nil,
@@ -139,6 +145,12 @@ defmodule GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCl
139145
field(:buildTriggerId)
140146
field(:createTime, as: DateTime)
141147

148+
field(:dependencies,
149+
as:
150+
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency,
151+
type: :list
152+
)
153+
142154
field(:failureInfo,
143155
as:
144156
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo

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
@@ -31,6 +31,7 @@ defmodule GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCl
3131
* `logging` (*type:* `String.t`, *default:* `nil`) - Option to specify the logging mode, which determines if and where build logs are stored.
3232
* `machineType` (*type:* `String.t`, *default:* `nil`) - Compute Engine machine type on which to run the build.
3333
* `pool` (*type:* `GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption.t`, *default:* `nil`) - Optional. Specification for execution on a `WorkerPool`. See [running builds in a private pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) for more information.
34+
* `pubsubTopic` (*type:* `String.t`, *default:* `nil`) - Optional. Option to specify the Pub/Sub topic to receive build status updates.
3435
* `requestedVerifyOption` (*type:* `String.t`, *default:* `nil`) - Requested verifiability options.
3536
* `secretEnv` (*type:* `list(String.t)`, *default:* `nil`) - A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`. These variables will be available to all build steps in this build.
3637
* `sourceProvenanceHash` (*type:* `list(String.t)`, *default:* `nil`) - Requested hash for SourceProvenance.
@@ -54,6 +55,7 @@ defmodule GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCl
5455
:pool =>
5556
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption.t()
5657
| nil,
58+
:pubsubTopic => String.t() | nil,
5759
:requestedVerifyOption => String.t() | nil,
5860
:secretEnv => list(String.t()) | nil,
5961
:sourceProvenanceHash => list(String.t()) | nil,
@@ -81,6 +83,7 @@ defmodule GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCl
8183
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption
8284
)
8385

86+
field(:pubsubTopic)
8487
field(:requestedVerifyOption)
8588
field(:secretEnv, type: :list)
8689
field(:sourceProvenanceHash, type: :list)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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.ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency do
19+
@moduledoc """
20+
A dependency that the Cloud Build worker will fetch before executing user steps.
21+
22+
## Attributes
23+
24+
* `empty` (*type:* `boolean()`, *default:* `nil`) - If set to true disable all dependency fetching (ignoring the default source as well).
25+
* `gitSource` (*type:* `GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency.t`, *default:* `nil`) - Represents a git repository as a build dependency.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:empty => boolean() | nil,
32+
:gitSource =>
33+
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency.t()
34+
| nil
35+
}
36+
37+
field(:empty)
38+
39+
field(:gitSource,
40+
as:
41+
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency
42+
)
43+
end
44+
45+
defimpl Poison.Decoder,
46+
for: GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency do
47+
def decode(value, options) do
48+
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency.decode(
49+
value,
50+
options
51+
)
52+
end
53+
end
54+
55+
defimpl Poison.Encoder,
56+
for: GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency do
57+
def encode(value, options) do
58+
GoogleApi.Gax.ModelBase.encode(value, options)
59+
end
60+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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.ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency do
19+
@moduledoc """
20+
Represents a git repository as a build dependency.
21+
22+
## Attributes
23+
24+
* `depth` (*type:* `String.t`, *default:* `nil`) - Optional. How much history should be fetched for the build (default 1, -1 for all history).
25+
* `destPath` (*type:* `String.t`, *default:* `nil`) - Required. Where should the files be placed on the worker.
26+
* `recurseSubmodules` (*type:* `boolean()`, *default:* `nil`) - Optional. True if submodules should be fetched too (default false).
27+
* `repository` (*type:* `GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceRepository.t`, *default:* `nil`) - Required. The kind of repo (url or dev connect).
28+
* `revision` (*type:* `String.t`, *default:* `nil`) - Required. The revision that we will fetch the repo at.
29+
"""
30+
31+
use GoogleApi.Gax.ModelBase
32+
33+
@type t :: %__MODULE__{
34+
:depth => String.t() | nil,
35+
:destPath => String.t() | nil,
36+
:recurseSubmodules => boolean() | nil,
37+
:repository =>
38+
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceRepository.t()
39+
| nil,
40+
:revision => String.t() | nil
41+
}
42+
43+
field(:depth)
44+
field(:destPath)
45+
field(:recurseSubmodules)
46+
47+
field(:repository,
48+
as:
49+
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceRepository
50+
)
51+
52+
field(:revision)
53+
end
54+
55+
defimpl Poison.Decoder,
56+
for:
57+
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency do
58+
def decode(value, options) do
59+
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency.decode(
60+
value,
61+
options
62+
)
63+
end
64+
end
65+
66+
defimpl Poison.Encoder,
67+
for:
68+
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency do
69+
def encode(value, options) do
70+
GoogleApi.Gax.ModelBase.encode(value, options)
71+
end
72+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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.ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceRepository do
19+
@moduledoc """
20+
A repository for a git source.
21+
22+
## Attributes
23+
24+
* `developerConnect` (*type:* `String.t`, *default:* `nil`) - The Developer Connect Git repository link or the url that matches a repository link in the current project, formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`
25+
* `url` (*type:* `String.t`, *default:* `nil`) - Location of the Git repository.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:developerConnect => String.t() | nil,
32+
:url => String.t() | nil
33+
}
34+
35+
field(:developerConnect)
36+
field(:url)
37+
end
38+
39+
defimpl Poison.Decoder,
40+
for:
41+
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceRepository do
42+
def decode(value, options) do
43+
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceRepository.decode(
44+
value,
45+
options
46+
)
47+
end
48+
end
49+
50+
defimpl Poison.Encoder,
51+
for:
52+
GoogleApi.ContainerAnalysis.V1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceRepository do
53+
def encode(value, options) do
54+
GoogleApi.Gax.ModelBase.encode(value, options)
55+
end
56+
end

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.ContainerAnalysis.V1.Model.ExportSBOMRequest do
2121
2222
## Attributes
2323
24-
* `cloudStorageLocation` (*type:* `GoogleApi.ContainerAnalysis.V1.Model.CloudStorageLocation.t`, *default:* `nil`) - Empty placeholder to denote that this is a Google Cloud Storage export request.
24+
* `cloudStorageLocation` (*type:* `GoogleApi.ContainerAnalysis.V1.Model.CloudStorageLocation.t`, *default:* `nil`) - Optional. Empty placeholder to denote that this is a Google Cloud Storage export request.
2525
"""
2626

2727
use GoogleApi.Gax.ModelBase

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 "20250124"
23+
@discovery_revision "20250207"
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_build.ex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ defmodule GoogleApi.ContainerAnalysis.V1alpha1.Model.ContaineranalysisGoogleDevt
2626
* `availableSecrets` (*type:* `GoogleApi.ContainerAnalysis.V1alpha1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1Secrets.t`, *default:* `nil`) - Secrets and secret environment variables.
2727
* `buildTriggerId` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
2828
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time at which the request to create the build was received.
29+
* `dependencies` (*type:* `list(GoogleApi.ContainerAnalysis.V1alpha1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency.t)`, *default:* `nil`) - Optional. Dependencies that the Cloud Build worker will fetch before executing user steps.
2930
* `failureInfo` (*type:* `GoogleApi.ContainerAnalysis.V1alpha1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo.t`, *default:* `nil`) - Output only. Contains information about the build when status=FAILURE.
3031
* `finishTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build's execution.
3132
* `gitConfig` (*type:* `GoogleApi.ContainerAnalysis.V1alpha1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig.t`, *default:* `nil`) - Optional. Configuration for git operations.
@@ -67,6 +68,11 @@ defmodule GoogleApi.ContainerAnalysis.V1alpha1.Model.ContaineranalysisGoogleDevt
6768
| nil,
6869
:buildTriggerId => String.t() | nil,
6970
:createTime => DateTime.t() | nil,
71+
:dependencies =>
72+
list(
73+
GoogleApi.ContainerAnalysis.V1alpha1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency.t()
74+
)
75+
| nil,
7076
:failureInfo =>
7177
GoogleApi.ContainerAnalysis.V1alpha1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo.t()
7278
| nil,
@@ -141,6 +147,12 @@ defmodule GoogleApi.ContainerAnalysis.V1alpha1.Model.ContaineranalysisGoogleDevt
141147
field(:buildTriggerId)
142148
field(:createTime, as: DateTime)
143149

150+
field(:dependencies,
151+
as:
152+
GoogleApi.ContainerAnalysis.V1alpha1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency,
153+
type: :list
154+
)
155+
144156
field(:failureInfo,
145157
as:
146158
GoogleApi.ContainerAnalysis.V1alpha1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ defmodule GoogleApi.ContainerAnalysis.V1alpha1.Model.ContaineranalysisGoogleDevt
3131
* `logging` (*type:* `String.t`, *default:* `nil`) - Option to specify the logging mode, which determines if and where build logs are stored.
3232
* `machineType` (*type:* `String.t`, *default:* `nil`) - Compute Engine machine type on which to run the build.
3333
* `pool` (*type:* `GoogleApi.ContainerAnalysis.V1alpha1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption.t`, *default:* `nil`) - Optional. Specification for execution on a `WorkerPool`. See [running builds in a private pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) for more information.
34+
* `pubsubTopic` (*type:* `String.t`, *default:* `nil`) - Optional. Option to specify the Pub/Sub topic to receive build status updates.
3435
* `requestedVerifyOption` (*type:* `String.t`, *default:* `nil`) - Requested verifiability options.
3536
* `secretEnv` (*type:* `list(String.t)`, *default:* `nil`) - A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`. These variables will be available to all build steps in this build.
3637
* `sourceProvenanceHash` (*type:* `list(String.t)`, *default:* `nil`) - Requested hash for SourceProvenance.
@@ -54,6 +55,7 @@ defmodule GoogleApi.ContainerAnalysis.V1alpha1.Model.ContaineranalysisGoogleDevt
5455
:pool =>
5556
GoogleApi.ContainerAnalysis.V1alpha1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption.t()
5657
| nil,
58+
:pubsubTopic => String.t() | nil,
5759
:requestedVerifyOption => String.t() | nil,
5860
:secretEnv => list(String.t()) | nil,
5961
:sourceProvenanceHash => list(String.t()) | nil,
@@ -81,6 +83,7 @@ defmodule GoogleApi.ContainerAnalysis.V1alpha1.Model.ContaineranalysisGoogleDevt
8183
GoogleApi.ContainerAnalysis.V1alpha1.Model.ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption
8284
)
8385

86+
field(:pubsubTopic)
8487
field(:requestedVerifyOption)
8588
field(:secretEnv, type: :list)
8689
field(:sourceProvenanceHash, type: :list)

0 commit comments

Comments
 (0)