Skip to content

Commit 9716938

Browse files
feat(ondemandscanning): update the api
#### ondemandscanning:v1 The following keys were added: - schemas.PackageIssue.properties.effectiveSeverity (Total Keys: 2) - schemas.PackageIssue.properties.packageType.type (Total Keys: 1) #### ondemandscanning:v1beta1 The following keys were added: - schemas.PackageIssue.properties.effectiveSeverity (Total Keys: 2) - schemas.PackageIssue.properties.packageType.type (Total Keys: 1)
1 parent 986811e commit 9716938

File tree

4 files changed

+60
-6
lines changed

4 files changed

+60
-6
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ <h3>Method Details</h3>
455455
},
456456
&quot;vulnerability&quot;: { # An occurrence of a severity vulnerability on a resource. # Describes a security vulnerability.
457457
&quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.
458-
&quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity.
458+
&quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity. When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues.
459459
&quot;fixAvailable&quot;: True or False, # Output only. Whether at least one of the affected packages has a fix available.
460460
&quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
461461
&quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
@@ -470,6 +470,7 @@ <h3>Method Details</h3>
470470
&quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
471471
&quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
472472
},
473+
&quot;effectiveSeverity&quot;: &quot;A String&quot;, # Output only. The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available.
473474
&quot;fixAvailable&quot;: True or False, # Output only. Whether a fix is available for this package.
474475
&quot;fixedCpeUri&quot;: &quot;A String&quot;, # The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.
475476
&quot;fixedPackage&quot;: &quot;A String&quot;, # The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.
@@ -481,6 +482,7 @@ <h3>Method Details</h3>
481482
&quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
482483
&quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
483484
},
485+
&quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
484486
},
485487
],
486488
&quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ <h3>Method Details</h3>
455455
},
456456
&quot;vulnerability&quot;: { # An occurrence of a severity vulnerability on a resource. # Describes a security vulnerability.
457457
&quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.
458-
&quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity.
458+
&quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity. When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues.
459459
&quot;fixAvailable&quot;: True or False, # Output only. Whether at least one of the affected packages has a fix available.
460460
&quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
461461
&quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
@@ -470,6 +470,7 @@ <h3>Method Details</h3>
470470
&quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
471471
&quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
472472
},
473+
&quot;effectiveSeverity&quot;: &quot;A String&quot;, # Output only. The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available.
473474
&quot;fixAvailable&quot;: True or False, # Output only. Whether a fix is available for this package.
474475
&quot;fixedCpeUri&quot;: &quot;A String&quot;, # The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.
475476
&quot;fixedPackage&quot;: &quot;A String&quot;, # The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.
@@ -481,6 +482,7 @@ <h3>Method Details</h3>
481482
&quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
482483
&quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
483484
},
485+
&quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
484486
},
485487
],
486488
&quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.

googleapiclient/discovery_cache/documents/ondemandscanning.v1.json

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@
339339
}
340340
}
341341
},
342-
"revision": "20210809",
342+
"revision": "20210816",
343343
"rootUrl": "https://ondemandscanning.googleapis.com/",
344344
"schemas": {
345345
"AliasContext": {
@@ -1369,6 +1369,27 @@
13691369
"$ref": "Version",
13701370
"description": "Required. The version of the package that is installed on the resource affected by this vulnerability."
13711371
},
1372+
"effectiveSeverity": {
1373+
"description": "Output only. The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available.",
1374+
"enum": [
1375+
"SEVERITY_UNSPECIFIED",
1376+
"MINIMAL",
1377+
"LOW",
1378+
"MEDIUM",
1379+
"HIGH",
1380+
"CRITICAL"
1381+
],
1382+
"enumDescriptions": [
1383+
"Unknown.",
1384+
"Minimal severity.",
1385+
"Low severity.",
1386+
"Medium severity.",
1387+
"High severity.",
1388+
"Critical severity."
1389+
],
1390+
"readOnly": true,
1391+
"type": "string"
1392+
},
13721393
"fixAvailable": {
13731394
"description": "Output only. Whether a fix is available for this package.",
13741395
"type": "boolean"
@@ -1384,6 +1405,10 @@
13841405
"fixedVersion": {
13851406
"$ref": "Version",
13861407
"description": "Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available."
1408+
},
1409+
"packageType": {
1410+
"description": "The type of package (e.g. OS, MAVEN, GO).",
1411+
"type": "string"
13871412
}
13881413
},
13891414
"type": "object"
@@ -1702,7 +1727,7 @@
17021727
"type": "number"
17031728
},
17041729
"effectiveSeverity": {
1705-
"description": "The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity.",
1730+
"description": "The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity. When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues.",
17061731
"enum": [
17071732
"SEVERITY_UNSPECIFIED",
17081733
"MINIMAL",

googleapiclient/discovery_cache/documents/ondemandscanning.v1beta1.json

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@
339339
}
340340
}
341341
},
342-
"revision": "20210809",
342+
"revision": "20210816",
343343
"rootUrl": "https://ondemandscanning.googleapis.com/",
344344
"schemas": {
345345
"AliasContext": {
@@ -1369,6 +1369,27 @@
13691369
"$ref": "Version",
13701370
"description": "Required. The version of the package that is installed on the resource affected by this vulnerability."
13711371
},
1372+
"effectiveSeverity": {
1373+
"description": "Output only. The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available.",
1374+
"enum": [
1375+
"SEVERITY_UNSPECIFIED",
1376+
"MINIMAL",
1377+
"LOW",
1378+
"MEDIUM",
1379+
"HIGH",
1380+
"CRITICAL"
1381+
],
1382+
"enumDescriptions": [
1383+
"Unknown.",
1384+
"Minimal severity.",
1385+
"Low severity.",
1386+
"Medium severity.",
1387+
"High severity.",
1388+
"Critical severity."
1389+
],
1390+
"readOnly": true,
1391+
"type": "string"
1392+
},
13721393
"fixAvailable": {
13731394
"description": "Output only. Whether a fix is available for this package.",
13741395
"type": "boolean"
@@ -1384,6 +1405,10 @@
13841405
"fixedVersion": {
13851406
"$ref": "Version",
13861407
"description": "Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available."
1408+
},
1409+
"packageType": {
1410+
"description": "The type of package (e.g. OS, MAVEN, GO).",
1411+
"type": "string"
13871412
}
13881413
},
13891414
"type": "object"
@@ -1702,7 +1727,7 @@
17021727
"type": "number"
17031728
},
17041729
"effectiveSeverity": {
1705-
"description": "The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity.",
1730+
"description": "The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity. When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues.",
17061731
"enum": [
17071732
"SEVERITY_UNSPECIFIED",
17081733
"MINIMAL",

0 commit comments

Comments
 (0)