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

Commit

Permalink
feat: add enum for grafeas v1 cvss to support both cvss v2 and v3 (#241)
Browse files Browse the repository at this point in the history
* feat: add enum for grafeas v1 cvss to support both cvss v2 and v3

PiperOrigin-RevId: 523785347

Source-Link: googleapis/googleapis@4e8d390

Source-Link: https://github.com/googleapis/googleapis-gen/commit/d1e6d67ece598e97f9398c6cb35ffc61308e6dbc
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDFlNmQ2N2VjZTU5OGU5N2Y5Mzk4YzZjYjM1ZmZjNjEzMDhlNmRiYyJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Apr 13, 2023
1 parent 05a0571 commit a44411d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions grafeas/grafeas_v1/types/cvss.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,13 @@ class AttackComplexity(proto.Enum):
No description available.
ATTACK_COMPLEXITY_HIGH (2):
No description available.
ATTACK_COMPLEXITY_MEDIUM (3):
No description available.
"""
ATTACK_COMPLEXITY_UNSPECIFIED = 0
ATTACK_COMPLEXITY_LOW = 1
ATTACK_COMPLEXITY_HIGH = 2
ATTACK_COMPLEXITY_MEDIUM = 3

class Authentication(proto.Enum):
r"""
Expand Down Expand Up @@ -389,11 +392,17 @@ class Impact(proto.Enum):
No description available.
IMPACT_NONE (3):
No description available.
IMPACT_PARTIAL (4):
No description available.
IMPACT_COMPLETE (5):
No description available.
"""
IMPACT_UNSPECIFIED = 0
IMPACT_HIGH = 1
IMPACT_LOW = 2
IMPACT_NONE = 3
IMPACT_PARTIAL = 4
IMPACT_COMPLETE = 5

base_score: float = proto.Field(
proto.FLOAT,
Expand Down

0 comments on commit a44411d

Please sign in to comment.