Skip to content

Commit 05c9163

Browse files
feat: Automated regeneration of OnDemandScanning client (googleapis#12962)
Auto-created at 2025-02-12 13:17:37 +0000 using the toys pull request generator.
1 parent a141dc5 commit 05c9163

File tree

6 files changed

+113
-3
lines changed

6 files changed

+113
-3
lines changed

clients/on_demand_scanning/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_on_demand_scanning, "~> 0.6"}]
14+
[{:google_api_on_demand_scanning, "~> 0.7"}]
1515
end
1616
```
1717

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 "20241209"
23+
@discovery_revision "20250210"
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.OnDemandScanning.V1.Model.BaseImage do
19+
@moduledoc """
20+
BaseImage describes a base image of a container image.
21+
22+
## Attributes
23+
24+
* `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.
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+
:name => String.t() | nil,
33+
:numLayers => String.t() | nil,
34+
:repository => String.t() | nil
35+
}
36+
37+
field(:name)
38+
field(:numLayers)
39+
field(:repository)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.OnDemandScanning.V1.Model.BaseImage do
43+
def decode(value, options) do
44+
GoogleApi.OnDemandScanning.V1.Model.BaseImage.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.OnDemandScanning.V1.Model.BaseImage do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end
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.LayerDetails do
19+
@moduledoc """
20+
Details about the layer a package was found in. This should be the same as the LayerDetails message in google3/third_party/scalibr/binary/proto/scan_result.proto.
21+
22+
## Attributes
23+
24+
* `baseImages` (*type:* `list(GoogleApi.OnDemandScanning.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 (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.BaseImage.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.BaseImage, type: :list)
40+
field(:command)
41+
field(:diffId)
42+
field(:index)
43+
end
44+
45+
defimpl Poison.Decoder, for: GoogleApi.OnDemandScanning.V1.Model.LayerDetails do
46+
def decode(value, options) do
47+
GoogleApi.OnDemandScanning.V1.Model.LayerDetails.decode(value, options)
48+
end
49+
end
50+
51+
defimpl Poison.Encoder, for: GoogleApi.OnDemandScanning.V1.Model.LayerDetails do
52+
def encode(value, options) do
53+
GoogleApi.Gax.ModelBase.encode(value, options)
54+
end
55+
end

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ defmodule GoogleApi.OnDemandScanning.V1.Model.PackageData do
2828
* `dependencyChain` (*type:* `list(GoogleApi.OnDemandScanning.V1.Model.LanguagePackageDependency.t)`, *default:* `nil`) - The dependency chain between this package and the user's artifact. List in order from the customer's package under review first, to the current package last. Inclusive of the original package and the current package.
2929
* `fileLocation` (*type:* `list(GoogleApi.OnDemandScanning.V1.Model.FileLocation.t)`, *default:* `nil`) - The path to the jar file / go binary file.
3030
* `hashDigest` (*type:* `String.t`, *default:* `nil`) - HashDigest stores the SHA512 hash digest of the jar file if the package is of type Maven. This field will be unset for non Maven packages.
31+
* `layerDetails` (*type:* `GoogleApi.OnDemandScanning.V1.Model.LayerDetails.t`, *default:* `nil`) -
3132
* `licenses` (*type:* `list(String.t)`, *default:* `nil`) - The list of licenses found that are related to a given package. Note that licenses may also be stored on the BinarySourceInfo. If there is no BinarySourceInfo (because there's no concept of source vs binary), then it will be stored here, while if there are BinarySourceInfos, it will be stored there, as one source can have multiple binaries with different licenses.
3233
* `maintainer` (*type:* `GoogleApi.OnDemandScanning.V1.Model.Maintainer.t`, *default:* `nil`) - The maintainer of the package.
3334
* `os` (*type:* `String.t`, *default:* `nil`) - The OS affected by a vulnerability Used to generate the cpe_uri for OS packages
@@ -52,6 +53,7 @@ defmodule GoogleApi.OnDemandScanning.V1.Model.PackageData do
5253
list(GoogleApi.OnDemandScanning.V1.Model.LanguagePackageDependency.t()) | nil,
5354
:fileLocation => list(GoogleApi.OnDemandScanning.V1.Model.FileLocation.t()) | nil,
5455
:hashDigest => String.t() | nil,
56+
:layerDetails => GoogleApi.OnDemandScanning.V1.Model.LayerDetails.t() | nil,
5557
:licenses => list(String.t()) | nil,
5658
:maintainer => GoogleApi.OnDemandScanning.V1.Model.Maintainer.t() | nil,
5759
:os => String.t() | nil,
@@ -76,6 +78,7 @@ defmodule GoogleApi.OnDemandScanning.V1.Model.PackageData do
7678

7779
field(:fileLocation, as: GoogleApi.OnDemandScanning.V1.Model.FileLocation, type: :list)
7880
field(:hashDigest)
81+
field(:layerDetails, as: GoogleApi.OnDemandScanning.V1.Model.LayerDetails)
7982
field(:licenses, type: :list)
8083
field(:maintainer, as: GoogleApi.OnDemandScanning.V1.Model.Maintainer)
8184
field(:os)

clients/on_demand_scanning/mix.exs

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

21-
@version "0.6.1"
21+
@version "0.7.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)