Skip to content

Commit c140711

Browse files
feat(grafeas): add support for upgrade notes; add cpe and last_scan_time to DiscoveryOccurrence; add source_update_time to VulnerabilityNote (via synth) (#10084)
1 parent e113605 commit c140711

14 files changed

+1328
-3820
lines changed

grafeas/grafeas/grafeas_v1/gapic/enums.py

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class NoteKind(enum.IntEnum):
4747
DEPLOYMENT (int): The note and occurrence track deployment events.
4848
DISCOVERY (int): The note and occurrence track the initial discovery status of a resource.
4949
ATTESTATION (int): This represents a logical "role" that can attest to artifacts.
50+
UPGRADE (int): This represents an available package upgrade.
5051
"""
5152

5253
NOTE_KIND_UNSPECIFIED = 0
@@ -57,6 +58,7 @@ class NoteKind(enum.IntEnum):
5758
DEPLOYMENT = 5
5859
DISCOVERY = 6
5960
ATTESTATION = 7
61+
UPGRADE = 8
6062

6163

6264
class Severity(enum.IntEnum):

grafeas/grafeas/grafeas_v1/proto/common.proto

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ enum NoteKind {
3939
DISCOVERY = 6;
4040
// This represents a logical "role" that can attest to artifacts.
4141
ATTESTATION = 7;
42+
// This represents an available package upgrade.
43+
UPGRADE = 8;
4244
}
4345

4446
// Metadata for any related URL information.

grafeas/grafeas/grafeas_v1/proto/common_pb2.py

+6-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

grafeas/grafeas/grafeas_v1/proto/discovery.proto

+7
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ syntax = "proto3";
1616

1717
package grafeas.v1;
1818

19+
import "google/protobuf/timestamp.proto";
1920
import "google/rpc/status.proto";
2021
import "grafeas/v1/common.proto";
2122

@@ -73,4 +74,10 @@ message DiscoveryOccurrence {
7374
// details to show to the user. The LocalizedMessage is output only and
7475
// populated by the API.
7576
google.rpc.Status analysis_status_error = 3;
77+
78+
// The CPE of the resource being scanned.
79+
string cpe = 4;
80+
81+
// The last time this resource was scanned.
82+
google.protobuf.Timestamp last_scan_time = 5;
7683
}

grafeas/grafeas/grafeas_v1/proto/discovery_pb2.py

+54-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)