Skip to content

Commit edbf3bd

Browse files
feat(ondemandscanning): update the api
#### ondemandscanning:v1 The following keys were deleted: - schemas.BaseImage.properties.numLayers.type (Total Keys: 1) The following keys were added: - schemas.BaseImage.properties.layerCount (Total Keys: 2) - schemas.FileLocation.properties.layerDetails.$ref (Total Keys: 1) - schemas.GrafeasV1BaseImage (Total Keys: 6) - schemas.GrafeasV1FileLocation.properties.layerDetails.$ref (Total Keys: 1) - schemas.GrafeasV1LayerDetails (Total Keys: 8) #### ondemandscanning:v1beta1 The following keys were deleted: - schemas.BaseImage.properties.numLayers.type (Total Keys: 1) The following keys were added: - schemas.BaseImage.properties.layerCount (Total Keys: 2) - schemas.FileLocation.properties.layerDetails.$ref (Total Keys: 1) - schemas.GrafeasV1BaseImage (Total Keys: 6) - schemas.GrafeasV1FileLocation.properties.layerDetails.$ref (Total Keys: 1) - schemas.GrafeasV1LayerDetails (Total Keys: 8)
1 parent 9482d41 commit edbf3bd

6 files changed

+170
-12
lines changed

docs/dyn/ondemandscanning_v1.projects.locations.scans.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,26 @@ <h3>Method Details</h3>
135135
&quot;fileLocation&quot;: [ # The path to the jar file / go binary file.
136136
{ # Indicates the location at which a package was found.
137137
&quot;filePath&quot;: &quot;A String&quot;, # For jars that are contained inside .war files, this filepath can indicate the path to war file combined with the path to jar file.
138+
&quot;layerDetails&quot;: { # 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.
139+
&quot;baseImages&quot;: [ # The base images the layer is found within.
140+
{ # BaseImage describes a base image of a container image.
141+
&quot;layerCount&quot;: 42, # The number of layers that the base image is composed of.
142+
&quot;name&quot;: &quot;A String&quot;, # The name of the base image.
143+
&quot;repository&quot;: &quot;A String&quot;, # The repository name in which the base image is from.
144+
},
145+
],
146+
&quot;command&quot;: &quot;A String&quot;, # 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.
147+
&quot;diffId&quot;: &quot;A String&quot;, # The diff ID (sha256 hash) of the layer in the container image.
148+
&quot;index&quot;: 42, # The index of the layer in the container image.
149+
},
138150
},
139151
],
140152
&quot;hashDigest&quot;: &quot;A String&quot;, # 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.
141153
&quot;layerDetails&quot;: { # 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.
142154
&quot;baseImages&quot;: [ # The base images the layer is found within.
143155
{ # BaseImage describes a base image of a container image.
156+
&quot;layerCount&quot;: 42, # The number of layers that the base image is composed of.
144157
&quot;name&quot;: &quot;A String&quot;, # The name of the base image.
145-
&quot;numLayers&quot;: &quot;A String&quot;, # The number of layers that the base image is composed of.
146158
&quot;repository&quot;: &quot;A String&quot;, # The repository name in which the base image is from.
147159
},
148160
],

docs/dyn/ondemandscanning_v1.projects.locations.scans.vulnerabilities.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,18 @@ <h3>Method Details</h3>
865865
&quot;fileLocation&quot;: [ # The location at which this package was found.
866866
{ # Indicates the location at which a package was found.
867867
&quot;filePath&quot;: &quot;A String&quot;, # For jars that are contained inside .war files, this filepath can indicate the path to war file combined with the path to jar file.
868+
&quot;layerDetails&quot;: { # Details about the layer a package was found in. # Each package found in a file should have its own layer metadata (that is, information from the origin layer of the package).
869+
&quot;baseImages&quot;: [ # The base images the layer is found within.
870+
{ # BaseImage describes a base image of a container image.
871+
&quot;layerCount&quot;: 42, # The number of layers that the base image is composed of.
872+
&quot;name&quot;: &quot;A String&quot;, # The name of the base image.
873+
&quot;repository&quot;: &quot;A String&quot;, # The repository name in which the base image is from.
874+
},
875+
],
876+
&quot;command&quot;: &quot;A String&quot;, # 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.
877+
&quot;diffId&quot;: &quot;A String&quot;, # The diff ID (typically a sha256 hash) of the layer in the container image.
878+
&quot;index&quot;: 42, # The index of the layer in the container image.
879+
},
868880
},
869881
],
870882
&quot;fixAvailable&quot;: True or False, # Output only. Whether a fix is available for this package.

docs/dyn/ondemandscanning_v1beta1.projects.locations.scans.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,26 @@ <h3>Method Details</h3>
134134
&quot;fileLocation&quot;: [ # The path to the jar file / go binary file.
135135
{ # Indicates the location at which a package was found.
136136
&quot;filePath&quot;: &quot;A String&quot;, # For jars that are contained inside .war files, this filepath can indicate the path to war file combined with the path to jar file.
137+
&quot;layerDetails&quot;: { # 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.
138+
&quot;baseImages&quot;: [ # The base images the layer is found within.
139+
{ # BaseImage describes a base image of a container image.
140+
&quot;layerCount&quot;: 42, # The number of layers that the base image is composed of.
141+
&quot;name&quot;: &quot;A String&quot;, # The name of the base image.
142+
&quot;repository&quot;: &quot;A String&quot;, # The repository name in which the base image is from.
143+
},
144+
],
145+
&quot;command&quot;: &quot;A String&quot;, # 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.
146+
&quot;diffId&quot;: &quot;A String&quot;, # The diff ID (sha256 hash) of the layer in the container image.
147+
&quot;index&quot;: 42, # The index of the layer in the container image.
148+
},
137149
},
138150
],
139151
&quot;hashDigest&quot;: &quot;A String&quot;, # 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.
140152
&quot;layerDetails&quot;: { # 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.
141153
&quot;baseImages&quot;: [ # The base images the layer is found within.
142154
{ # BaseImage describes a base image of a container image.
155+
&quot;layerCount&quot;: 42, # The number of layers that the base image is composed of.
143156
&quot;name&quot;: &quot;A String&quot;, # The name of the base image.
144-
&quot;numLayers&quot;: &quot;A String&quot;, # The number of layers that the base image is composed of.
145157
&quot;repository&quot;: &quot;A String&quot;, # The repository name in which the base image is from.
146158
},
147159
],

docs/dyn/ondemandscanning_v1beta1.projects.locations.scans.vulnerabilities.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,18 @@ <h3>Method Details</h3>
865865
&quot;fileLocation&quot;: [ # The location at which this package was found.
866866
{ # Indicates the location at which a package was found.
867867
&quot;filePath&quot;: &quot;A String&quot;, # For jars that are contained inside .war files, this filepath can indicate the path to war file combined with the path to jar file.
868+
&quot;layerDetails&quot;: { # Details about the layer a package was found in. # Each package found in a file should have its own layer metadata (that is, information from the origin layer of the package).
869+
&quot;baseImages&quot;: [ # The base images the layer is found within.
870+
{ # BaseImage describes a base image of a container image.
871+
&quot;layerCount&quot;: 42, # The number of layers that the base image is composed of.
872+
&quot;name&quot;: &quot;A String&quot;, # The name of the base image.
873+
&quot;repository&quot;: &quot;A String&quot;, # The repository name in which the base image is from.
874+
},
875+
],
876+
&quot;command&quot;: &quot;A String&quot;, # 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.
877+
&quot;diffId&quot;: &quot;A String&quot;, # The diff ID (typically a sha256 hash) of the layer in the container image.
878+
&quot;index&quot;: 42, # The index of the layer in the container image.
879+
},
868880
},
869881
],
870882
&quot;fixAvailable&quot;: True or False, # Output only. Whether a fix is available for this package.

googleapiclient/discovery_cache/documents/ondemandscanning.v1.json

Lines changed: 60 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@
339339
}
340340
}
341341
},
342-
"revision": "20250210",
342+
"revision": "20250217",
343343
"rootUrl": "https://ondemandscanning.googleapis.com/",
344344
"schemas": {
345345
"AliasContext": {
@@ -511,14 +511,15 @@
511511
"description": "BaseImage describes a base image of a container image.",
512512
"id": "BaseImage",
513513
"properties": {
514+
"layerCount": {
515+
"description": "The number of layers that the base image is composed of.",
516+
"format": "int32",
517+
"type": "integer"
518+
},
514519
"name": {
515520
"description": "The name of the base image.",
516521
"type": "string"
517522
},
518-
"numLayers": {
519-
"description": "The number of layers that the base image is composed of.",
520-
"type": "string"
521-
},
522523
"repository": {
523524
"description": "The repository name in which the base image is from.",
524525
"type": "string"
@@ -1193,6 +1194,9 @@
11931194
"filePath": {
11941195
"description": "For jars that are contained inside .war files, this filepath can indicate the path to war file combined with the path to jar file.",
11951196
"type": "string"
1197+
},
1198+
"layerDetails": {
1199+
"$ref": "LayerDetails"
11961200
}
11971201
},
11981202
"type": "object"
@@ -1257,13 +1261,64 @@
12571261
},
12581262
"type": "object"
12591263
},
1264+
"GrafeasV1BaseImage": {
1265+
"description": "BaseImage describes a base image of a container image.",
1266+
"id": "GrafeasV1BaseImage",
1267+
"properties": {
1268+
"layerCount": {
1269+
"description": "The number of layers that the base image is composed of.",
1270+
"format": "int32",
1271+
"type": "integer"
1272+
},
1273+
"name": {
1274+
"description": "The name of the base image.",
1275+
"type": "string"
1276+
},
1277+
"repository": {
1278+
"description": "The repository name in which the base image is from.",
1279+
"type": "string"
1280+
}
1281+
},
1282+
"type": "object"
1283+
},
12601284
"GrafeasV1FileLocation": {
12611285
"description": "Indicates the location at which a package was found.",
12621286
"id": "GrafeasV1FileLocation",
12631287
"properties": {
12641288
"filePath": {
12651289
"description": "For jars that are contained inside .war files, this filepath can indicate the path to war file combined with the path to jar file.",
12661290
"type": "string"
1291+
},
1292+
"layerDetails": {
1293+
"$ref": "GrafeasV1LayerDetails",
1294+
"description": "Each package found in a file should have its own layer metadata (that is, information from the origin layer of the package)."
1295+
}
1296+
},
1297+
"type": "object"
1298+
},
1299+
"GrafeasV1LayerDetails": {
1300+
"description": "Details about the layer a package was found in.",
1301+
"id": "GrafeasV1LayerDetails",
1302+
"properties": {
1303+
"baseImages": {
1304+
"description": "The base images the layer is found within.",
1305+
"items": {
1306+
"$ref": "GrafeasV1BaseImage"
1307+
},
1308+
"type": "array"
1309+
},
1310+
"command": {
1311+
"description": "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.",
1312+
"type": "string"
1313+
},
1314+
"diffId": {
1315+
"description": "The diff ID (typically a sha256 hash) of the layer in the container image.",
1316+
"type": "string"
1317+
},
1318+
"index": {
1319+
"description": "The index of the layer in the container image.",
1320+
"format": "int32",
1321+
"type": "integer"
12671322
}
12681323
},
12691324
"type": "object"

googleapiclient/discovery_cache/documents/ondemandscanning.v1beta1.json

Lines changed: 60 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@
339339
}
340340
}
341341
},
342-
"revision": "20250210",
342+
"revision": "20250217",
343343
"rootUrl": "https://ondemandscanning.googleapis.com/",
344344
"schemas": {
345345
"AliasContext": {
@@ -506,14 +506,15 @@
506506
"description": "BaseImage describes a base image of a container image.",
507507
"id": "BaseImage",
508508
"properties": {
509+
"layerCount": {
510+
"description": "The number of layers that the base image is composed of.",
511+
"format": "int32",
512+
"type": "integer"
513+
},
509514
"name": {
510515
"description": "The name of the base image.",
511516
"type": "string"
512517
},
513-
"numLayers": {
514-
"description": "The number of layers that the base image is composed of.",
515-
"type": "string"
516-
},
517518
"repository": {
518519
"description": "The repository name in which the base image is from.",
519520
"type": "string"
@@ -1188,6 +1189,9 @@
11881189
"filePath": {
11891190
"description": "For jars that are contained inside .war files, this filepath can indicate the path to war file combined with the path to jar file.",
11901191
"type": "string"
1192+
},
1193+
"layerDetails": {
1194+
"$ref": "LayerDetails"
11911195
}
11921196
},
11931197
"type": "object"
@@ -1252,13 +1256,64 @@
12521256
},
12531257
"type": "object"
12541258
},
1259+
"GrafeasV1BaseImage": {
1260+
"description": "BaseImage describes a base image of a container image.",
1261+
"id": "GrafeasV1BaseImage",
1262+
"properties": {
1263+
"layerCount": {
1264+
"description": "The number of layers that the base image is composed of.",
1265+
"format": "int32",
1266+
"type": "integer"
1267+
},
1268+
"name": {
1269+
"description": "The name of the base image.",
1270+
"type": "string"
1271+
},
1272+
"repository": {
1273+
"description": "The repository name in which the base image is from.",
1274+
"type": "string"
1275+
}
1276+
},
1277+
"type": "object"
1278+
},
12551279
"GrafeasV1FileLocation": {
12561280
"description": "Indicates the location at which a package was found.",
12571281
"id": "GrafeasV1FileLocation",
12581282
"properties": {
12591283
"filePath": {
12601284
"description": "For jars that are contained inside .war files, this filepath can indicate the path to war file combined with the path to jar file.",
12611285
"type": "string"
1286+
},
1287+
"layerDetails": {
1288+
"$ref": "GrafeasV1LayerDetails",
1289+
"description": "Each package found in a file should have its own layer metadata (that is, information from the origin layer of the package)."
1290+
}
1291+
},
1292+
"type": "object"
1293+
},
1294+
"GrafeasV1LayerDetails": {
1295+
"description": "Details about the layer a package was found in.",
1296+
"id": "GrafeasV1LayerDetails",
1297+
"properties": {
1298+
"baseImages": {
1299+
"description": "The base images the layer is found within.",
1300+
"items": {
1301+
"$ref": "GrafeasV1BaseImage"
1302+
},
1303+
"type": "array"
1304+
},
1305+
"command": {
1306+
"description": "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.",
1307+
"type": "string"
1308+
},
1309+
"diffId": {
1310+
"description": "The diff ID (typically a sha256 hash) of the layer in the container image.",
1311+
"type": "string"
1312+
},
1313+
"index": {
1314+
"description": "The index of the layer in the container image.",
1315+
"format": "int32",
1316+
"type": "integer"
12621317
}
12631318
},
12641319
"type": "object"

0 commit comments

Comments
 (0)