Skip to content

Commit 718e046

Browse files
yoshi-automationsofisl
authored andcommitted
feat(osconfig): update the API
#### osconfig:v1alpha The following keys were added: - schemas.VulnerabilityReport.properties.highestUpgradableCveSeverity.description - schemas.VulnerabilityReport.properties.highestUpgradableCveSeverity.enum - schemas.VulnerabilityReport.properties.highestUpgradableCveSeverity.enumDescriptions - schemas.VulnerabilityReport.properties.highestUpgradableCveSeverity.readOnly - schemas.VulnerabilityReport.properties.highestUpgradableCveSeverity.type #### osconfig:v1 The following keys were added: - schemas.VulnerabilityReport.properties.highestUpgradableCveSeverity.description - schemas.VulnerabilityReport.properties.highestUpgradableCveSeverity.enum - schemas.VulnerabilityReport.properties.highestUpgradableCveSeverity.enumDescriptions - schemas.VulnerabilityReport.properties.highestUpgradableCveSeverity.readOnly - schemas.VulnerabilityReport.properties.highestUpgradableCveSeverity.type
1 parent b142210 commit 718e046

File tree

4 files changed

+58
-2
lines changed

4 files changed

+58
-2
lines changed

discovery/osconfig-v1.json

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@
10831083
}
10841084
}
10851085
},
1086-
"revision": "20250511",
1086+
"revision": "20250727",
10871087
"rootUrl": "https://osconfig.googleapis.com/",
10881088
"schemas": {
10891089
"AptSettings": {
@@ -3665,6 +3665,29 @@
36653665
"description": "This API resource represents the vulnerability report for a specified Compute Engine virtual machine (VM) instance at a given point in time. For more information, see [Vulnerability reports](https://cloud.google.com/compute/docs/instances/os-inventory-management#vulnerability-reports).",
36663666
"id": "VulnerabilityReport",
36673667
"properties": {
3668+
"highestUpgradableCveSeverity": {
3669+
"description": "Output only. Highest level of severity among all the upgradable vulnerabilities with CVEs attached.",
3670+
"enum": [
3671+
"VULNERABILITY_SEVERITY_LEVEL_UNSPECIFIED",
3672+
"NONE",
3673+
"MINIMAL",
3674+
"LOW",
3675+
"MEDIUM",
3676+
"HIGH",
3677+
"CRITICAL"
3678+
],
3679+
"enumDescriptions": [
3680+
"Default SeverityLevel. This value is unused.",
3681+
"Vulnerability has no severity level.",
3682+
"Vulnerability severity level is minimal. This is level below the low severity level.",
3683+
"Vulnerability severity level is low. This is level below the medium severity level.",
3684+
"Vulnerability severity level is medium. This is level below the high severity level.",
3685+
"Vulnerability severity level is high. This is level below the critical severity level.",
3686+
"Vulnerability severity level is critical. This is the highest severity level."
3687+
],
3688+
"readOnly": true,
3689+
"type": "string"
3690+
},
36683691
"name": {
36693692
"description": "Output only. The `vulnerabilityReport` API resource name. Format: `projects/{project_number}/locations/{location}/instances/{instance_id}/vulnerabilityReport`",
36703693
"readOnly": true,

discovery/osconfig-v1alpha.json

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@
707707
}
708708
}
709709
},
710-
"revision": "20250511",
710+
"revision": "20250727",
711711
"rootUrl": "https://osconfig.googleapis.com/",
712712
"schemas": {
713713
"CVSSv3": {
@@ -2720,6 +2720,29 @@
27202720
"description": "This API resource represents the vulnerability report for a specified Compute Engine virtual machine (VM) instance at a given point in time. For more information, see [Vulnerability reports](https://cloud.google.com/compute/docs/instances/os-inventory-management#vulnerability-reports).",
27212721
"id": "VulnerabilityReport",
27222722
"properties": {
2723+
"highestUpgradableCveSeverity": {
2724+
"description": "Output only. Highest level of severity among all the upgradable vulnerabilities with CVEs attached.",
2725+
"enum": [
2726+
"VULNERABILITY_SEVERITY_LEVEL_UNSPECIFIED",
2727+
"NONE",
2728+
"MINIMAL",
2729+
"LOW",
2730+
"MEDIUM",
2731+
"HIGH",
2732+
"CRITICAL"
2733+
],
2734+
"enumDescriptions": [
2735+
"Default SeverityLevel. This value is unused.",
2736+
"Vulnerability has no severity level.",
2737+
"Vulnerability severity level is minimal. This is level below the low severity level.",
2738+
"Vulnerability severity level is low. This is level below the medium severity level.",
2739+
"Vulnerability severity level is medium. This is level below the high severity level.",
2740+
"Vulnerability severity level is high. This is level below the critical severity level.",
2741+
"Vulnerability severity level is critical. This is the highest severity level."
2742+
],
2743+
"readOnly": true,
2744+
"type": "string"
2745+
},
27232746
"name": {
27242747
"description": "Output only. The `vulnerabilityReport` API resource name. Format: `projects/{project_number}/locations/{location}/instances/{instance_id}/vulnerabilityReport`",
27252748
"readOnly": true,

src/apis/osconfig/v1.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1912,6 +1912,10 @@ export namespace osconfig_v1 {
19121912
* This API resource represents the vulnerability report for a specified Compute Engine virtual machine (VM) instance at a given point in time. For more information, see [Vulnerability reports](https://cloud.google.com/compute/docs/instances/os-inventory-management#vulnerability-reports).
19131913
*/
19141914
export interface Schema$VulnerabilityReport {
1915+
/**
1916+
* Output only. Highest level of severity among all the upgradable vulnerabilities with CVEs attached.
1917+
*/
1918+
highestUpgradableCveSeverity?: string | null;
19151919
/**
19161920
* Output only. The `vulnerabilityReport` API resource name. Format: `projects/{project_number\}/locations/{location\}/instances/{instance_id\}/vulnerabilityReport`
19171921
*/
@@ -3211,6 +3215,7 @@ export namespace osconfig_v1 {
32113215
*
32123216
* // Example response
32133217
* // {
3218+
* // "highestUpgradableCveSeverity": "my_highestUpgradableCveSeverity",
32143219
* // "name": "my_name",
32153220
* // "updateTime": "my_updateTime",
32163221
* // "vulnerabilities": []

src/apis/osconfig/v1alpha.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,6 +1489,10 @@ export namespace osconfig_v1alpha {
14891489
* This API resource represents the vulnerability report for a specified Compute Engine virtual machine (VM) instance at a given point in time. For more information, see [Vulnerability reports](https://cloud.google.com/compute/docs/instances/os-inventory-management#vulnerability-reports).
14901490
*/
14911491
export interface Schema$VulnerabilityReport {
1492+
/**
1493+
* Output only. Highest level of severity among all the upgradable vulnerabilities with CVEs attached.
1494+
*/
1495+
highestUpgradableCveSeverity?: string | null;
14921496
/**
14931497
* Output only. The `vulnerabilityReport` API resource name. Format: `projects/{project_number\}/locations/{location\}/instances/{instance_id\}/vulnerabilityReport`
14941498
*/
@@ -2706,6 +2710,7 @@ export namespace osconfig_v1alpha {
27062710
*
27072711
* // Example response
27082712
* // {
2713+
* // "highestUpgradableCveSeverity": "my_highestUpgradableCveSeverity",
27092714
* // "name": "my_name",
27102715
* // "updateTime": "my_updateTime",
27112716
* // "vulnerabilities": []

0 commit comments

Comments
 (0)