Skip to content

Commit

Permalink
feat: Update OSConfig API
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 409204961
  • Loading branch information
Google APIs authored and copybara-github committed Nov 11, 2021
1 parent 2bea4df commit a85beae
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions google/cloud/osconfig/v1/vulnerability.proto
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,32 @@ message VulnerabilityReport {
repeated Reference references = 6;
}

// OS inventory item that is affected by a vulnerability or fixed as a
// result of a vulnerability.
message Item {
// Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
// This field displays the inventory items affected by this vulnerability.
// If the vulnerability report was not updated after the VM inventory
// update, these values might not display in VM inventory. For some
// operating systems, this field might be empty.
string installed_inventory_item_id = 1;

// Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.
// If the vulnerability report was not updated after the VM inventory
// update, these values might not display in VM inventory. If there is no
// available fix, the field is empty. The `inventory_item` value specifies
// the latest `SoftwarePackage` available to the VM that fixes the
// vulnerability.
string available_inventory_item_id = 2;

// The recommended [CPE URI](https://cpe.mitre.org/specification/) update
// that contains a fix for this vulnerability.
string fixed_cpe_uri = 3;

// The upstream OS patch, packages or KB that fixes the vulnerability.
string upstream_fix = 4;
}

// Contains metadata as per the upstream feed of the operating system and
// NVD.
Details details = 1;
Expand All @@ -84,21 +110,24 @@ message VulnerabilityReport {
// If the vulnerability report was not updated after the VM inventory
// update, these values might not display in VM inventory. For some distros,
// this field may be empty.
repeated string installed_inventory_item_ids = 2;
repeated string installed_inventory_item_ids = 2 [deprecated = true];

// Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.
// If the vulnerability report was not updated after the VM inventory
// update, these values might not display in VM inventory. If there is no
// available fix, the field is empty. The `inventory_item` value specifies
// the latest `SoftwarePackage` available to the VM that fixes the
// vulnerability.
repeated string available_inventory_item_ids = 3;
repeated string available_inventory_item_ids = 3 [deprecated = true];

// The timestamp for when the vulnerability was first detected.
google.protobuf.Timestamp create_time = 4;

// The timestamp for when the vulnerability was last modified.
google.protobuf.Timestamp update_time = 5;

// List of items affected by the vulnerability.
repeated Item items = 6;
}

// Output only. The `vulnerabilityReport` API resource name.
Expand Down

0 comments on commit a85beae

Please sign in to comment.