Skip to content

Commit 6151695

Browse files
feat: Automated regeneration of ContainerAnalysis client (#13164)
Auto-created at 2025-03-15 13:11:40 +0000 using the toys pull request generator.
1 parent 71deb57 commit 6151695

File tree

9 files changed

+225
-5
lines changed

9 files changed

+225
-5
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 "20250207"
23+
@discovery_revision "20250307"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
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.ContainerAnalysis.V1.Model.BaseImage do
19+
@moduledoc """
20+
BaseImage describes a base image of a container image.
21+
22+
## Attributes
23+
24+
* `layerCount` (*type:* `integer()`, *default:* `nil`) - The number of layers that the base image is composed of.
25+
* `name` (*type:* `String.t`, *default:* `nil`) - The name of the base image.
26+
* `repository` (*type:* `String.t`, *default:* `nil`) - The repository name in which the base image is from.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:layerCount => integer() | nil,
33+
:name => String.t() | nil,
34+
:repository => String.t() | nil
35+
}
36+
37+
field(:layerCount)
38+
field(:name)
39+
field(:repository)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.ContainerAnalysis.V1.Model.BaseImage do
43+
def decode(value, options) do
44+
GoogleApi.ContainerAnalysis.V1.Model.BaseImage.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.ContainerAnalysis.V1.Model.BaseImage do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.ContainerAnalysis.V1.Model.BuildStep do
1919
@moduledoc """
20-
A step in the build pipeline. Next ID: 21
20+
A step in the build pipeline. Next ID: 22
2121
2222
## Attributes
2323
@@ -32,6 +32,7 @@ defmodule GoogleApi.ContainerAnalysis.V1.Model.BuildStep do
3232
* `id` (*type:* `String.t`, *default:* `nil`) - Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.
3333
* `name` (*type:* `String.t`, *default:* `nil`) - Required. The name of the container image that will run this particular build step. If the image is available in the host's Docker daemon's cache, it will be run directly. If not, the host will attempt to pull the image first, using the builder service account's credentials if necessary. The Docker daemon's cache will already have the latest versions of all of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also have cached many of the layers for some popular images, like "ubuntu", "debian", but they will be refreshed at the time you attempt to use them. If you built an image in a previous build step, it will be stored in the host's Docker daemon's cache and is available to use as the name for a later build step.
3434
* `pullTiming` (*type:* `GoogleApi.ContainerAnalysis.V1.Model.TimeSpan.t`, *default:* `nil`) - Output only. Stores timing information for pulling this build step's builder image only.
35+
* `results` (*type:* `list(GoogleApi.ContainerAnalysis.V1.Model.StepResult.t)`, *default:* `nil`) -
3536
* `script` (*type:* `String.t`, *default:* `nil`) - A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args.
3637
* `secretEnv` (*type:* `list(String.t)`, *default:* `nil`) - A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`.
3738
* `status` (*type:* `String.t`, *default:* `nil`) - Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses.
@@ -55,6 +56,7 @@ defmodule GoogleApi.ContainerAnalysis.V1.Model.BuildStep do
5556
:id => String.t() | nil,
5657
:name => String.t() | nil,
5758
:pullTiming => GoogleApi.ContainerAnalysis.V1.Model.TimeSpan.t() | nil,
59+
:results => list(GoogleApi.ContainerAnalysis.V1.Model.StepResult.t()) | nil,
5860
:script => String.t() | nil,
5961
:secretEnv => list(String.t()) | nil,
6062
:status => String.t() | nil,
@@ -75,6 +77,7 @@ defmodule GoogleApi.ContainerAnalysis.V1.Model.BuildStep do
7577
field(:id)
7678
field(:name)
7779
field(:pullTiming, as: GoogleApi.ContainerAnalysis.V1.Model.TimeSpan)
80+
field(:results, as: GoogleApi.ContainerAnalysis.V1.Model.StepResult, type: :list)
7881
field(:script)
7982
field(:secretEnv, type: :list)
8083
field(:status)

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,18 @@ defmodule GoogleApi.ContainerAnalysis.V1.Model.GrafeasV1FileLocation do
2222
## Attributes
2323
2424
* `filePath` (*type:* `String.t`, *default:* `nil`) - For jars that are contained inside .war files, this filepath can indicate the path to war file combined with the path to jar file.
25+
* `layerDetails` (*type:* `GoogleApi.ContainerAnalysis.V1.Model.LayerDetails.t`, *default:* `nil`) - Each package found in a file should have its own layer metadata (that is, information from the origin layer of the package).
2526
"""
2627

2728
use GoogleApi.Gax.ModelBase
2829

2930
@type t :: %__MODULE__{
30-
:filePath => String.t() | nil
31+
:filePath => String.t() | nil,
32+
:layerDetails => GoogleApi.ContainerAnalysis.V1.Model.LayerDetails.t() | nil
3133
}
3234

3335
field(:filePath)
36+
field(:layerDetails, as: GoogleApi.ContainerAnalysis.V1.Model.LayerDetails)
3437
end
3538

3639
defimpl Poison.Decoder, for: GoogleApi.ContainerAnalysis.V1.Model.GrafeasV1FileLocation do
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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.LayerDetails do
19+
@moduledoc """
20+
Details about the layer a package was found in.
21+
22+
## Attributes
23+
24+
* `baseImages` (*type:* `list(GoogleApi.ContainerAnalysis.V1.Model.BaseImage.t)`, *default:* `nil`) - The base images the layer is found within.
25+
* `command` (*type:* `String.t`, *default:* `nil`) - The layer build command that was used to build the layer. This may not be found in all layers depending on how the container image is built.
26+
* `diffId` (*type:* `String.t`, *default:* `nil`) - The diff ID (typically a sha256 hash) of the layer in the container image.
27+
* `index` (*type:* `integer()`, *default:* `nil`) - The index of the layer in the container image.
28+
"""
29+
30+
use GoogleApi.Gax.ModelBase
31+
32+
@type t :: %__MODULE__{
33+
:baseImages => list(GoogleApi.ContainerAnalysis.V1.Model.BaseImage.t()) | nil,
34+
:command => String.t() | nil,
35+
:diffId => String.t() | nil,
36+
:index => integer() | nil
37+
}
38+
39+
field(:baseImages, as: GoogleApi.ContainerAnalysis.V1.Model.BaseImage, type: :list)
40+
field(:command)
41+
field(:diffId)
42+
field(:index)
43+
end
44+
45+
defimpl Poison.Decoder, for: GoogleApi.ContainerAnalysis.V1.Model.LayerDetails do
46+
def decode(value, options) do
47+
GoogleApi.ContainerAnalysis.V1.Model.LayerDetails.decode(value, options)
48+
end
49+
end
50+
51+
defimpl Poison.Encoder, for: GoogleApi.ContainerAnalysis.V1.Model.LayerDetails do
52+
def encode(value, options) do
53+
GoogleApi.Gax.ModelBase.encode(value, options)
54+
end
55+
end
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.ContainerAnalysis.V1.Model.StepResult do
19+
@moduledoc """
20+
StepResult is the declaration of a result for a build step.
21+
22+
## Attributes
23+
24+
* `attestationContentName` (*type:* `String.t`, *default:* `nil`) -
25+
* `attestationType` (*type:* `String.t`, *default:* `nil`) -
26+
* `name` (*type:* `String.t`, *default:* `nil`) -
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:attestationContentName => String.t() | nil,
33+
:attestationType => String.t() | nil,
34+
:name => String.t() | nil
35+
}
36+
37+
field(:attestationContentName)
38+
field(:attestationType)
39+
field(:name)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.ContainerAnalysis.V1.Model.StepResult do
43+
def decode(value, options) do
44+
GoogleApi.ContainerAnalysis.V1.Model.StepResult.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.ContainerAnalysis.V1.Model.StepResult do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end

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

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

23-
@discovery_revision "20250207"
23+
@discovery_revision "20250307"
2424

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

clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/build_step.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.ContainerAnalysis.V1beta1.Model.BuildStep do
1919
@moduledoc """
20-
A step in the build pipeline. Next ID: 21
20+
A step in the build pipeline. Next ID: 22
2121
2222
## Attributes
2323
@@ -32,6 +32,7 @@ defmodule GoogleApi.ContainerAnalysis.V1beta1.Model.BuildStep do
3232
* `id` (*type:* `String.t`, *default:* `nil`) - Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.
3333
* `name` (*type:* `String.t`, *default:* `nil`) - Required. The name of the container image that will run this particular build step. If the image is available in the host's Docker daemon's cache, it will be run directly. If not, the host will attempt to pull the image first, using the builder service account's credentials if necessary. The Docker daemon's cache will already have the latest versions of all of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also have cached many of the layers for some popular images, like "ubuntu", "debian", but they will be refreshed at the time you attempt to use them. If you built an image in a previous build step, it will be stored in the host's Docker daemon's cache and is available to use as the name for a later build step.
3434
* `pullTiming` (*type:* `GoogleApi.ContainerAnalysis.V1beta1.Model.TimeSpan.t`, *default:* `nil`) - Output only. Stores timing information for pulling this build step's builder image only.
35+
* `results` (*type:* `list(GoogleApi.ContainerAnalysis.V1beta1.Model.StepResult.t)`, *default:* `nil`) -
3536
* `script` (*type:* `String.t`, *default:* `nil`) - A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args.
3637
* `secretEnv` (*type:* `list(String.t)`, *default:* `nil`) - A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`.
3738
* `status` (*type:* `String.t`, *default:* `nil`) - Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses.
@@ -55,6 +56,7 @@ defmodule GoogleApi.ContainerAnalysis.V1beta1.Model.BuildStep do
5556
:id => String.t() | nil,
5657
:name => String.t() | nil,
5758
:pullTiming => GoogleApi.ContainerAnalysis.V1beta1.Model.TimeSpan.t() | nil,
59+
:results => list(GoogleApi.ContainerAnalysis.V1beta1.Model.StepResult.t()) | nil,
5860
:script => String.t() | nil,
5961
:secretEnv => list(String.t()) | nil,
6062
:status => String.t() | nil,
@@ -75,6 +77,7 @@ defmodule GoogleApi.ContainerAnalysis.V1beta1.Model.BuildStep do
7577
field(:id)
7678
field(:name)
7779
field(:pullTiming, as: GoogleApi.ContainerAnalysis.V1beta1.Model.TimeSpan)
80+
field(:results, as: GoogleApi.ContainerAnalysis.V1beta1.Model.StepResult, type: :list)
7881
field(:script)
7982
field(:secretEnv, type: :list)
8083
field(:status)
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.ContainerAnalysis.V1beta1.Model.StepResult do
19+
@moduledoc """
20+
StepResult is the declaration of a result for a build step.
21+
22+
## Attributes
23+
24+
* `attestationContentName` (*type:* `String.t`, *default:* `nil`) -
25+
* `attestationType` (*type:* `String.t`, *default:* `nil`) -
26+
* `name` (*type:* `String.t`, *default:* `nil`) -
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:attestationContentName => String.t() | nil,
33+
:attestationType => String.t() | nil,
34+
:name => String.t() | nil
35+
}
36+
37+
field(:attestationContentName)
38+
field(:attestationType)
39+
field(:name)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.ContainerAnalysis.V1beta1.Model.StepResult do
43+
def decode(value, options) do
44+
GoogleApi.ContainerAnalysis.V1beta1.Model.StepResult.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.ContainerAnalysis.V1beta1.Model.StepResult do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end

0 commit comments

Comments
 (0)