Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Commit

Permalink
feat(grafeas): add support for upgrade notes; add cpe and `last_sca…
Browse files Browse the repository at this point in the history
…n_time` to `DiscoveryOccurrence`; add `source_update_time` to `VulnerabilityNote` (via synth) (#10084)
  • Loading branch information
yoshi-automation committed Jan 30, 2020
1 parent 40d9653 commit 2ee967b
Show file tree
Hide file tree
Showing 14 changed files with 1,328 additions and 3,820 deletions.
2 changes: 2 additions & 0 deletions grafeas/grafeas_v1/gapic/enums.py
Expand Up @@ -47,6 +47,7 @@ class NoteKind(enum.IntEnum):
DEPLOYMENT (int): The note and occurrence track deployment events.
DISCOVERY (int): The note and occurrence track the initial discovery status of a resource.
ATTESTATION (int): This represents a logical "role" that can attest to artifacts.
UPGRADE (int): This represents an available package upgrade.
"""

NOTE_KIND_UNSPECIFIED = 0
Expand All @@ -57,6 +58,7 @@ class NoteKind(enum.IntEnum):
DEPLOYMENT = 5
DISCOVERY = 6
ATTESTATION = 7
UPGRADE = 8


class Severity(enum.IntEnum):
Expand Down
2 changes: 2 additions & 0 deletions grafeas/grafeas_v1/proto/common.proto
Expand Up @@ -39,6 +39,8 @@ enum NoteKind {
DISCOVERY = 6;
// This represents a logical "role" that can attest to artifacts.
ATTESTATION = 7;
// This represents an available package upgrade.
UPGRADE = 8;
}

// Metadata for any related URL information.
Expand Down
8 changes: 6 additions & 2 deletions grafeas/grafeas_v1/proto/common_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions grafeas/grafeas_v1/proto/discovery.proto
Expand Up @@ -16,6 +16,7 @@ syntax = "proto3";

package grafeas.v1;

import "google/protobuf/timestamp.proto";
import "google/rpc/status.proto";
import "grafeas/v1/common.proto";

Expand Down Expand Up @@ -73,4 +74,10 @@ message DiscoveryOccurrence {
// details to show to the user. The LocalizedMessage is output only and
// populated by the API.
google.rpc.Status analysis_status_error = 3;

// The CPE of the resource being scanned.
string cpe = 4;

// The last time this resource was scanned.
google.protobuf.Timestamp last_scan_time = 5;
}
63 changes: 54 additions & 9 deletions grafeas/grafeas_v1/proto/discovery_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2ee967b

Please sign in to comment.