@@ -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 )
0 commit comments