Skip to content

Commit 1ec70e5

Browse files
feat: Automated regeneration of OnDemandScanning client (googleapis#12996)
Auto-created at 2025-02-20 13:13:13 +0000 using the toys pull request generator.
1 parent 3528e7a commit 1ec70e5

File tree

6 files changed

+119
-6
lines changed

6 files changed

+119
-6
lines changed

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

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

23-
@discovery_revision "20250210"
23+
@discovery_revision "20250217"
2424

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

clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/base_image.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@ defmodule GoogleApi.OnDemandScanning.V1.Model.BaseImage do
2121
2222
## Attributes
2323
24+
* `layerCount` (*type:* `integer()`, *default:* `nil`) - The number of layers that the base image is composed of.
2425
* `name` (*type:* `String.t`, *default:* `nil`) - The name of the base image.
25-
* `numLayers` (*type:* `String.t`, *default:* `nil`) - The number of layers that the base image is composed of.
2626
* `repository` (*type:* `String.t`, *default:* `nil`) - The repository name in which the base image is from.
2727
"""
2828

2929
use GoogleApi.Gax.ModelBase
3030

3131
@type t :: %__MODULE__{
32+
:layerCount => integer() | nil,
3233
:name => String.t() | nil,
33-
:numLayers => String.t() | nil,
3434
:repository => String.t() | nil
3535
}
3636

37+
field(:layerCount)
3738
field(:name)
38-
field(:numLayers)
3939
field(:repository)
4040
end
4141

clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/file_location.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,18 @@ defmodule GoogleApi.OnDemandScanning.V1.Model.FileLocation 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.OnDemandScanning.V1.Model.LayerDetails.t`, *default:* `nil`) -
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.OnDemandScanning.V1.Model.LayerDetails.t() | nil
3133
}
3234

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

3639
defimpl Poison.Decoder, for: GoogleApi.OnDemandScanning.V1.Model.FileLocation do
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.OnDemandScanning.V1.Model.GrafeasV1BaseImage 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.OnDemandScanning.V1.Model.GrafeasV1BaseImage do
43+
def decode(value, options) do
44+
GoogleApi.OnDemandScanning.V1.Model.GrafeasV1BaseImage.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.OnDemandScanning.V1.Model.GrafeasV1BaseImage do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end

clients/on_demand_scanning/lib/google_api/on_demand_scanning/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.OnDemandScanning.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.OnDemandScanning.V1.Model.GrafeasV1LayerDetails.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.OnDemandScanning.V1.Model.GrafeasV1LayerDetails.t() | nil
3133
}
3234

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

3639
defimpl Poison.Decoder, for: GoogleApi.OnDemandScanning.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.OnDemandScanning.V1.Model.GrafeasV1LayerDetails do
19+
@moduledoc """
20+
Details about the layer a package was found in.
21+
22+
## Attributes
23+
24+
* `baseImages` (*type:* `list(GoogleApi.OnDemandScanning.V1.Model.GrafeasV1BaseImage.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.OnDemandScanning.V1.Model.GrafeasV1BaseImage.t()) | nil,
34+
:command => String.t() | nil,
35+
:diffId => String.t() | nil,
36+
:index => integer() | nil
37+
}
38+
39+
field(:baseImages, as: GoogleApi.OnDemandScanning.V1.Model.GrafeasV1BaseImage, type: :list)
40+
field(:command)
41+
field(:diffId)
42+
field(:index)
43+
end
44+
45+
defimpl Poison.Decoder, for: GoogleApi.OnDemandScanning.V1.Model.GrafeasV1LayerDetails do
46+
def decode(value, options) do
47+
GoogleApi.OnDemandScanning.V1.Model.GrafeasV1LayerDetails.decode(value, options)
48+
end
49+
end
50+
51+
defimpl Poison.Encoder, for: GoogleApi.OnDemandScanning.V1.Model.GrafeasV1LayerDetails do
52+
def encode(value, options) do
53+
GoogleApi.Gax.ModelBase.encode(value, options)
54+
end
55+
end

0 commit comments

Comments
 (0)