Skip to content

Commit 9d12fe7

Browse files
feat: Automated regeneration of ondemandscanning v1beta1 client (googleapis#21849)
Auto-created at 2025-02-26 21:05:05 +0000 using the toys pull request generator.
1 parent 2c223d1 commit 9d12fe7

File tree

5 files changed

+263
-3
lines changed

5 files changed

+263
-3
lines changed

api_names_out.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283025,6 +283025,10 @@
283025283025
"/ondemandscanning:v1beta1/AttestationOccurrence/serializedPayload": serialized_payload
283026283026
"/ondemandscanning:v1beta1/AttestationOccurrence/signatures": signatures
283027283027
"/ondemandscanning:v1beta1/AttestationOccurrence/signatures/signature": signature
283028+
"/ondemandscanning:v1beta1/BaseImage": base_image
283029+
"/ondemandscanning:v1beta1/BaseImage/layerCount": layer_count
283030+
"/ondemandscanning:v1beta1/BaseImage/name": name
283031+
"/ondemandscanning:v1beta1/BaseImage/repository": repository
283028283032
"/ondemandscanning:v1beta1/Binary": binary
283029283033
"/ondemandscanning:v1beta1/Binary/name": name
283030283034
"/ondemandscanning:v1beta1/Binary/version": version
@@ -283149,6 +283153,7 @@
283149283153
"/ondemandscanning:v1beta1/FileHashes/fileHash/file_hash": file_hash
283150283154
"/ondemandscanning:v1beta1/FileLocation": file_location
283151283155
"/ondemandscanning:v1beta1/FileLocation/filePath": file_path
283156+
"/ondemandscanning:v1beta1/FileLocation/layerDetails": layer_details
283152283157
"/ondemandscanning:v1beta1/Fingerprint": fingerprint
283153283158
"/ondemandscanning:v1beta1/Fingerprint/v1Name": v1_name
283154283159
"/ondemandscanning:v1beta1/Fingerprint/v2Blob": v2_blob
@@ -283162,8 +283167,19 @@
283162283167
"/ondemandscanning:v1beta1/GitSourceContext": git_source_context
283163283168
"/ondemandscanning:v1beta1/GitSourceContext/revisionId": revision_id
283164283169
"/ondemandscanning:v1beta1/GitSourceContext/url": url
283170+
"/ondemandscanning:v1beta1/GrafeasV1BaseImage": grafeas_v1_base_image
283171+
"/ondemandscanning:v1beta1/GrafeasV1BaseImage/layerCount": layer_count
283172+
"/ondemandscanning:v1beta1/GrafeasV1BaseImage/name": name
283173+
"/ondemandscanning:v1beta1/GrafeasV1BaseImage/repository": repository
283165283174
"/ondemandscanning:v1beta1/GrafeasV1FileLocation": grafeas_v1_file_location
283166283175
"/ondemandscanning:v1beta1/GrafeasV1FileLocation/filePath": file_path
283176+
"/ondemandscanning:v1beta1/GrafeasV1FileLocation/layerDetails": layer_details
283177+
"/ondemandscanning:v1beta1/GrafeasV1LayerDetails": grafeas_v1_layer_details
283178+
"/ondemandscanning:v1beta1/GrafeasV1LayerDetails/baseImages": base_images
283179+
"/ondemandscanning:v1beta1/GrafeasV1LayerDetails/baseImages/base_image": base_image
283180+
"/ondemandscanning:v1beta1/GrafeasV1LayerDetails/command": command
283181+
"/ondemandscanning:v1beta1/GrafeasV1LayerDetails/diffId": diff_id
283182+
"/ondemandscanning:v1beta1/GrafeasV1LayerDetails/index": index
283167283183
"/ondemandscanning:v1beta1/GrafeasV1SlsaProvenanceZeroTwoSlsaBuilder": grafeas_v1_slsa_provenance_zero_two_slsa_builder
283168283184
"/ondemandscanning:v1beta1/GrafeasV1SlsaProvenanceZeroTwoSlsaBuilder/id": id
283169283185
"/ondemandscanning:v1beta1/GrafeasV1SlsaProvenanceZeroTwoSlsaCompleteness": grafeas_v1_slsa_provenance_zero_two_slsa_completeness
@@ -283263,6 +283279,12 @@
283263283279
"/ondemandscanning:v1beta1/Layer": layer
283264283280
"/ondemandscanning:v1beta1/Layer/arguments": arguments
283265283281
"/ondemandscanning:v1beta1/Layer/directive": directive
283282+
"/ondemandscanning:v1beta1/LayerDetails": layer_details
283283+
"/ondemandscanning:v1beta1/LayerDetails/baseImages": base_images
283284+
"/ondemandscanning:v1beta1/LayerDetails/baseImages/base_image": base_image
283285+
"/ondemandscanning:v1beta1/LayerDetails/command": command
283286+
"/ondemandscanning:v1beta1/LayerDetails/diffId": diff_id
283287+
"/ondemandscanning:v1beta1/LayerDetails/index": index
283266283288
"/ondemandscanning:v1beta1/License": license
283267283289
"/ondemandscanning:v1beta1/License/comments": comments
283268283290
"/ondemandscanning:v1beta1/License/expression": expression
@@ -283337,6 +283359,7 @@
283337283359
"/ondemandscanning:v1beta1/PackageData/fileLocation": file_location
283338283360
"/ondemandscanning:v1beta1/PackageData/fileLocation/file_location": file_location
283339283361
"/ondemandscanning:v1beta1/PackageData/hashDigest": hash_digest
283362+
"/ondemandscanning:v1beta1/PackageData/layerDetails": layer_details
283340283363
"/ondemandscanning:v1beta1/PackageData/licenses": licenses
283341283364
"/ondemandscanning:v1beta1/PackageData/licenses/license": license
283342283365
"/ondemandscanning:v1beta1/PackageData/maintainer": maintainer

generated/google-apis-ondemandscanning_v1beta1/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-ondemandscanning_v1beta1
22

3+
### v0.51.0 (2025-02-26)
4+
5+
* Regenerated from discovery document revision 20250217
6+
* Regenerated using generator version 0.16.0
7+
38
### v0.50.0 (2024-12-15)
49

510
* Regenerated from discovery document revision 20241209

generated/google-apis-ondemandscanning_v1beta1/lib/google/apis/ondemandscanning_v1beta1/classes.rb

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,37 @@ def update!(**args)
269269
end
270270
end
271271

272+
# BaseImage describes a base image of a container image.
273+
class BaseImage
274+
include Google::Apis::Core::Hashable
275+
276+
# The number of layers that the base image is composed of.
277+
# Corresponds to the JSON property `layerCount`
278+
# @return [Fixnum]
279+
attr_accessor :layer_count
280+
281+
# The name of the base image.
282+
# Corresponds to the JSON property `name`
283+
# @return [String]
284+
attr_accessor :name
285+
286+
# The repository name in which the base image is from.
287+
# Corresponds to the JSON property `repository`
288+
# @return [String]
289+
attr_accessor :repository
290+
291+
def initialize(**args)
292+
update!(**args)
293+
end
294+
295+
# Update properties of this object
296+
def update!(**args)
297+
@layer_count = args[:layer_count] if args.key?(:layer_count)
298+
@name = args[:name] if args.key?(:name)
299+
@repository = args[:repository] if args.key?(:repository)
300+
end
301+
end
302+
272303
#
273304
class BinarySourceInfo
274305
include Google::Apis::Core::Hashable
@@ -1107,13 +1138,21 @@ class FileLocation
11071138
# @return [String]
11081139
attr_accessor :file_path
11091140

1141+
# Details about the layer a package was found in. This should be the same as the
1142+
# LayerDetails message in google3/third_party/scalibr/binary/proto/scan_result.
1143+
# proto.
1144+
# Corresponds to the JSON property `layerDetails`
1145+
# @return [Google::Apis::OndemandscanningV1beta1::LayerDetails]
1146+
attr_accessor :layer_details
1147+
11101148
def initialize(**args)
11111149
update!(**args)
11121150
end
11131151

11141152
# Update properties of this object
11151153
def update!(**args)
11161154
@file_path = args[:file_path] if args.key?(:file_path)
1155+
@layer_details = args[:layer_details] if args.key?(:layer_details)
11171156
end
11181157
end
11191158

@@ -1215,6 +1254,37 @@ def update!(**args)
12151254
end
12161255
end
12171256

1257+
# BaseImage describes a base image of a container image.
1258+
class GrafeasV1BaseImage
1259+
include Google::Apis::Core::Hashable
1260+
1261+
# The number of layers that the base image is composed of.
1262+
# Corresponds to the JSON property `layerCount`
1263+
# @return [Fixnum]
1264+
attr_accessor :layer_count
1265+
1266+
# The name of the base image.
1267+
# Corresponds to the JSON property `name`
1268+
# @return [String]
1269+
attr_accessor :name
1270+
1271+
# The repository name in which the base image is from.
1272+
# Corresponds to the JSON property `repository`
1273+
# @return [String]
1274+
attr_accessor :repository
1275+
1276+
def initialize(**args)
1277+
update!(**args)
1278+
end
1279+
1280+
# Update properties of this object
1281+
def update!(**args)
1282+
@layer_count = args[:layer_count] if args.key?(:layer_count)
1283+
@name = args[:name] if args.key?(:name)
1284+
@repository = args[:repository] if args.key?(:repository)
1285+
end
1286+
end
1287+
12181288
# Indicates the location at which a package was found.
12191289
class GrafeasV1FileLocation
12201290
include Google::Apis::Core::Hashable
@@ -1225,13 +1295,57 @@ class GrafeasV1FileLocation
12251295
# @return [String]
12261296
attr_accessor :file_path
12271297

1298+
# Details about the layer a package was found in.
1299+
# Corresponds to the JSON property `layerDetails`
1300+
# @return [Google::Apis::OndemandscanningV1beta1::GrafeasV1LayerDetails]
1301+
attr_accessor :layer_details
1302+
12281303
def initialize(**args)
12291304
update!(**args)
12301305
end
12311306

12321307
# Update properties of this object
12331308
def update!(**args)
12341309
@file_path = args[:file_path] if args.key?(:file_path)
1310+
@layer_details = args[:layer_details] if args.key?(:layer_details)
1311+
end
1312+
end
1313+
1314+
# Details about the layer a package was found in.
1315+
class GrafeasV1LayerDetails
1316+
include Google::Apis::Core::Hashable
1317+
1318+
# The base images the layer is found within.
1319+
# Corresponds to the JSON property `baseImages`
1320+
# @return [Array<Google::Apis::OndemandscanningV1beta1::GrafeasV1BaseImage>]
1321+
attr_accessor :base_images
1322+
1323+
# The layer build command that was used to build the layer. This may not be
1324+
# found in all layers depending on how the container image is built.
1325+
# Corresponds to the JSON property `command`
1326+
# @return [String]
1327+
attr_accessor :command
1328+
1329+
# The diff ID (typically a sha256 hash) of the layer in the container image.
1330+
# Corresponds to the JSON property `diffId`
1331+
# @return [String]
1332+
attr_accessor :diff_id
1333+
1334+
# The index of the layer in the container image.
1335+
# Corresponds to the JSON property `index`
1336+
# @return [Fixnum]
1337+
attr_accessor :index
1338+
1339+
def initialize(**args)
1340+
update!(**args)
1341+
end
1342+
1343+
# Update properties of this object
1344+
def update!(**args)
1345+
@base_images = args[:base_images] if args.key?(:base_images)
1346+
@command = args[:command] if args.key?(:command)
1347+
@diff_id = args[:diff_id] if args.key?(:diff_id)
1348+
@index = args[:index] if args.key?(:index)
12351349
end
12361350
end
12371351

@@ -1748,6 +1862,46 @@ def update!(**args)
17481862
end
17491863
end
17501864

1865+
# Details about the layer a package was found in. This should be the same as the
1866+
# LayerDetails message in google3/third_party/scalibr/binary/proto/scan_result.
1867+
# proto.
1868+
class LayerDetails
1869+
include Google::Apis::Core::Hashable
1870+
1871+
# The base images the layer is found within.
1872+
# Corresponds to the JSON property `baseImages`
1873+
# @return [Array<Google::Apis::OndemandscanningV1beta1::BaseImage>]
1874+
attr_accessor :base_images
1875+
1876+
# The layer build command that was used to build the layer. This may not be
1877+
# found in all layers depending on how the container image is built.
1878+
# Corresponds to the JSON property `command`
1879+
# @return [String]
1880+
attr_accessor :command
1881+
1882+
# The diff ID (sha256 hash) of the layer in the container image.
1883+
# Corresponds to the JSON property `diffId`
1884+
# @return [String]
1885+
attr_accessor :diff_id
1886+
1887+
# The index of the layer in the container image.
1888+
# Corresponds to the JSON property `index`
1889+
# @return [Fixnum]
1890+
attr_accessor :index
1891+
1892+
def initialize(**args)
1893+
update!(**args)
1894+
end
1895+
1896+
# Update properties of this object
1897+
def update!(**args)
1898+
@base_images = args[:base_images] if args.key?(:base_images)
1899+
@command = args[:command] if args.key?(:command)
1900+
@diff_id = args[:diff_id] if args.key?(:diff_id)
1901+
@index = args[:index] if args.key?(:index)
1902+
end
1903+
end
1904+
17511905
# License information.
17521906
class License
17531907
include Google::Apis::Core::Hashable
@@ -2259,6 +2413,13 @@ class PackageData
22592413
# @return [String]
22602414
attr_accessor :hash_digest
22612415

2416+
# Details about the layer a package was found in. This should be the same as the
2417+
# LayerDetails message in google3/third_party/scalibr/binary/proto/scan_result.
2418+
# proto.
2419+
# Corresponds to the JSON property `layerDetails`
2420+
# @return [Google::Apis::OndemandscanningV1beta1::LayerDetails]
2421+
attr_accessor :layer_details
2422+
22622423
# The list of licenses found that are related to a given package. Note that
22632424
# licenses may also be stored on the BinarySourceInfo. If there is no
22642425
# BinarySourceInfo (because there's no concept of source vs binary), then it
@@ -2328,6 +2489,7 @@ def update!(**args)
23282489
@dependency_chain = args[:dependency_chain] if args.key?(:dependency_chain)
23292490
@file_location = args[:file_location] if args.key?(:file_location)
23302491
@hash_digest = args[:hash_digest] if args.key?(:hash_digest)
2492+
@layer_details = args[:layer_details] if args.key?(:layer_details)
23312493
@licenses = args[:licenses] if args.key?(:licenses)
23322494
@maintainer = args[:maintainer] if args.key?(:maintainer)
23332495
@os = args[:os] if args.key?(:os)

generated/google-apis-ondemandscanning_v1beta1/lib/google/apis/ondemandscanning_v1beta1/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module OndemandscanningV1beta1
1818
# Version of the google-apis-ondemandscanning_v1beta1 gem
19-
GEM_VERSION = "0.50.0"
19+
GEM_VERSION = "0.51.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.15.1"
22+
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20241209"
25+
REVISION = "20250217"
2626
end
2727
end
2828
end

0 commit comments

Comments
 (0)