Skip to content

Commit e72efcc

Browse files
feat(ondemandscanning): update the api
#### ondemandscanning:v1 The following keys were added: - schemas.BinarySourceInfo (Total Keys: 4) - schemas.PackageData.properties.binarySourceInfo (Total Keys: 2) #### ondemandscanning:v1beta1 The following keys were added: - schemas.BinarySourceInfo (Total Keys: 4) - schemas.PackageData.properties.binarySourceInfo (Total Keys: 2)
1 parent ced02fd commit e72efcc

File tree

4 files changed

+76
-10
lines changed

4 files changed

+76
-10
lines changed

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

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,19 @@ <h3>Method Details</h3>
100100
&quot;packages&quot;: [ # The packages to analyze.
101101
{
102102
&quot;architecture&quot;: &quot;A String&quot;, # The architecture of the package.
103-
&quot;binaryVersion&quot;: { # The binary package. This is significant when the source is different than the binary itself. Historically if they&#x27;ve differed, we&#x27;ve stored the name of the source and its version in the package/version fields, but we should also store the binary package info, as that&#x27;s what&#x27;s actually installed. See b/175908657#comment15.
103+
&quot;binarySourceInfo&quot;: [ # A bundle containing the binary and source information.
104+
{
105+
&quot;binaryVersion&quot;: { # The binary package. This is significant when the source is different than the binary itself. Historically if they&#x27;ve differed, we&#x27;ve stored the name of the source and its version in the package/version fields, but we should also store the binary package info, as that&#x27;s what&#x27;s actually installed. See b/175908657#comment15.
106+
&quot;name&quot;: &quot;A String&quot;,
107+
&quot;version&quot;: &quot;A String&quot;,
108+
},
109+
&quot;sourceVersion&quot;: { # The source package. Similar to the above, this is significant when the source is different than the binary itself. Since the top-level package/version fields are based on an if/else, we need a separate field for both binary and source if we want to know definitively where the data is coming from.
110+
&quot;name&quot;: &quot;A String&quot;,
111+
&quot;version&quot;: &quot;A String&quot;,
112+
},
113+
},
114+
],
115+
&quot;binaryVersion&quot;: { # DEPRECATED
104116
&quot;name&quot;: &quot;A String&quot;,
105117
&quot;version&quot;: &quot;A String&quot;,
106118
},
@@ -128,7 +140,7 @@ <h3>Method Details</h3>
128140
&quot;patchedCve&quot;: [ # CVEs that this package is no longer vulnerable to go/drydock-dd-custom-binary-scanning
129141
&quot;A String&quot;,
130142
],
131-
&quot;sourceVersion&quot;: { # The source package. Similar to the above, this is significant when the source is different than the binary itself. Since the top-level package/version fields are based on an if/else, we need a separate field for both binary and source if we want to know definitively where the data is coming from.
143+
&quot;sourceVersion&quot;: { # DEPRECATED
132144
&quot;name&quot;: &quot;A String&quot;,
133145
&quot;version&quot;: &quot;A String&quot;,
134146
},

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

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,19 @@ <h3>Method Details</h3>
9999
&quot;packages&quot;: [ # The packages to analyze.
100100
{
101101
&quot;architecture&quot;: &quot;A String&quot;, # The architecture of the package.
102-
&quot;binaryVersion&quot;: { # The binary package. This is significant when the source is different than the binary itself. Historically if they&#x27;ve differed, we&#x27;ve stored the name of the source and its version in the package/version fields, but we should also store the binary package info, as that&#x27;s what&#x27;s actually installed. See b/175908657#comment15.
102+
&quot;binarySourceInfo&quot;: [ # A bundle containing the binary and source information.
103+
{
104+
&quot;binaryVersion&quot;: { # The binary package. This is significant when the source is different than the binary itself. Historically if they&#x27;ve differed, we&#x27;ve stored the name of the source and its version in the package/version fields, but we should also store the binary package info, as that&#x27;s what&#x27;s actually installed. See b/175908657#comment15.
105+
&quot;name&quot;: &quot;A String&quot;,
106+
&quot;version&quot;: &quot;A String&quot;,
107+
},
108+
&quot;sourceVersion&quot;: { # The source package. Similar to the above, this is significant when the source is different than the binary itself. Since the top-level package/version fields are based on an if/else, we need a separate field for both binary and source if we want to know definitively where the data is coming from.
109+
&quot;name&quot;: &quot;A String&quot;,
110+
&quot;version&quot;: &quot;A String&quot;,
111+
},
112+
},
113+
],
114+
&quot;binaryVersion&quot;: { # DEPRECATED
103115
&quot;name&quot;: &quot;A String&quot;,
104116
&quot;version&quot;: &quot;A String&quot;,
105117
},
@@ -127,7 +139,7 @@ <h3>Method Details</h3>
127139
&quot;patchedCve&quot;: [ # CVEs that this package is no longer vulnerable to go/drydock-dd-custom-binary-scanning
128140
&quot;A String&quot;,
129141
],
130-
&quot;sourceVersion&quot;: { # The source package. Similar to the above, this is significant when the source is different than the binary itself. Since the top-level package/version fields are based on an if/else, we need a separate field for both binary and source if we want to know definitively where the data is coming from.
142+
&quot;sourceVersion&quot;: { # DEPRECATED
131143
&quot;name&quot;: &quot;A String&quot;,
132144
&quot;version&quot;: &quot;A String&quot;,
133145
},

googleapiclient/discovery_cache/documents/ondemandscanning.v1.json

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@
339339
}
340340
}
341341
},
342-
"revision": "20230517",
342+
"revision": "20230522",
343343
"rootUrl": "https://ondemandscanning.googleapis.com/",
344344
"schemas": {
345345
"AliasContext": {
@@ -506,6 +506,20 @@
506506
},
507507
"type": "object"
508508
},
509+
"BinarySourceInfo": {
510+
"id": "BinarySourceInfo",
511+
"properties": {
512+
"binaryVersion": {
513+
"$ref": "PackageVersion",
514+
"description": "The binary package. This is significant when the source is different than the binary itself. Historically if they've differed, we've stored the name of the source and its version in the package/version fields, but we should also store the binary package info, as that's what's actually installed. See b/175908657#comment15."
515+
},
516+
"sourceVersion": {
517+
"$ref": "PackageVersion",
518+
"description": "The source package. Similar to the above, this is significant when the source is different than the binary itself. Since the top-level package/version fields are based on an if/else, we need a separate field for both binary and source if we want to know definitively where the data is coming from."
519+
}
520+
},
521+
"type": "object"
522+
},
509523
"BuildOccurrence": {
510524
"description": "Details of a build occurrence.",
511525
"id": "BuildOccurrence",
@@ -1750,9 +1764,16 @@
17501764
"description": "The architecture of the package.",
17511765
"type": "string"
17521766
},
1767+
"binarySourceInfo": {
1768+
"description": "A bundle containing the binary and source information.",
1769+
"items": {
1770+
"$ref": "BinarySourceInfo"
1771+
},
1772+
"type": "array"
1773+
},
17531774
"binaryVersion": {
17541775
"$ref": "PackageVersion",
1755-
"description": "The binary package. This is significant when the source is different than the binary itself. Historically if they've differed, we've stored the name of the source and its version in the package/version fields, but we should also store the binary package info, as that's what's actually installed. See b/175908657#comment15."
1776+
"description": "DEPRECATED"
17561777
},
17571778
"cpeUri": {
17581779
"description": "The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in which the vulnerability may manifest. Examples include distro or storage location for vulnerable jar.",
@@ -1823,7 +1844,7 @@
18231844
},
18241845
"sourceVersion": {
18251846
"$ref": "PackageVersion",
1826-
"description": "The source package. Similar to the above, this is significant when the source is different than the binary itself. Since the top-level package/version fields are based on an if/else, we need a separate field for both binary and source if we want to know definitively where the data is coming from."
1847+
"description": "DEPRECATED"
18271848
},
18281849
"unused": {
18291850
"type": "string"

googleapiclient/discovery_cache/documents/ondemandscanning.v1beta1.json

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@
339339
}
340340
}
341341
},
342-
"revision": "20230517",
342+
"revision": "20230522",
343343
"rootUrl": "https://ondemandscanning.googleapis.com/",
344344
"schemas": {
345345
"AliasContext": {
@@ -502,6 +502,20 @@
502502
},
503503
"type": "object"
504504
},
505+
"BinarySourceInfo": {
506+
"id": "BinarySourceInfo",
507+
"properties": {
508+
"binaryVersion": {
509+
"$ref": "PackageVersion",
510+
"description": "The binary package. This is significant when the source is different than the binary itself. Historically if they've differed, we've stored the name of the source and its version in the package/version fields, but we should also store the binary package info, as that's what's actually installed. See b/175908657#comment15."
511+
},
512+
"sourceVersion": {
513+
"$ref": "PackageVersion",
514+
"description": "The source package. Similar to the above, this is significant when the source is different than the binary itself. Since the top-level package/version fields are based on an if/else, we need a separate field for both binary and source if we want to know definitively where the data is coming from."
515+
}
516+
},
517+
"type": "object"
518+
},
505519
"BuildOccurrence": {
506520
"description": "Details of a build occurrence.",
507521
"id": "BuildOccurrence",
@@ -1746,9 +1760,16 @@
17461760
"description": "The architecture of the package.",
17471761
"type": "string"
17481762
},
1763+
"binarySourceInfo": {
1764+
"description": "A bundle containing the binary and source information.",
1765+
"items": {
1766+
"$ref": "BinarySourceInfo"
1767+
},
1768+
"type": "array"
1769+
},
17491770
"binaryVersion": {
17501771
"$ref": "PackageVersion",
1751-
"description": "The binary package. This is significant when the source is different than the binary itself. Historically if they've differed, we've stored the name of the source and its version in the package/version fields, but we should also store the binary package info, as that's what's actually installed. See b/175908657#comment15."
1772+
"description": "DEPRECATED"
17521773
},
17531774
"cpeUri": {
17541775
"description": "The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in which the vulnerability may manifest. Examples include distro or storage location for vulnerable jar.",
@@ -1819,7 +1840,7 @@
18191840
},
18201841
"sourceVersion": {
18211842
"$ref": "PackageVersion",
1822-
"description": "The source package. Similar to the above, this is significant when the source is different than the binary itself. Since the top-level package/version fields are based on an if/else, we need a separate field for both binary and source if we want to know definitively where the data is coming from."
1843+
"description": "DEPRECATED"
18231844
},
18241845
"unused": {
18251846
"type": "string"

0 commit comments

Comments
 (0)