lib/grafeas/v1/vulnerability_pb.rb in grafeas-v1-0.8.0 vs lib/grafeas/v1/vulnerability_pb.rb in grafeas-v1-0.9.0
- old
+ new
@@ -7,10 +7,11 @@
require 'google/protobuf/timestamp_pb'
require 'grafeas/v1/common_pb'
require 'grafeas/v1/cvss_pb'
require 'grafeas/v1/package_pb'
require 'grafeas/v1/severity_pb'
+require 'grafeas/v1/vex_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do
add_file("grafeas/v1/vulnerability.proto", :syntax => :proto3) do
add_message "grafeas.v1.VulnerabilityNote" do
optional :cvss_score, :float, 1
@@ -59,10 +60,11 @@
repeated :related_urls, :message, 7, "grafeas.v1.RelatedUrl"
optional :effective_severity, :enum, 8, "grafeas.v1.Severity"
optional :fix_available, :bool, 9
optional :cvss_version, :enum, 11, "grafeas.v1.CVSSVersion"
optional :cvss_v2, :message, 12, "grafeas.v1.CVSS"
+ optional :vex_assessment, :message, 13, "grafeas.v1.VulnerabilityOccurrence.VexAssessment"
end
add_message "grafeas.v1.VulnerabilityOccurrence.PackageIssue" do
optional :affected_cpe_uri, :string, 1
optional :affected_package, :string, 2
optional :affected_version, :message, 3, "grafeas.v1.Version"
@@ -72,10 +74,19 @@
optional :fix_available, :bool, 7
optional :package_type, :string, 8
optional :effective_severity, :enum, 9, "grafeas.v1.Severity"
repeated :file_location, :message, 10, "grafeas.v1.FileLocation"
end
+ add_message "grafeas.v1.VulnerabilityOccurrence.VexAssessment" do
+ optional :cve, :string, 1
+ repeated :related_uris, :message, 2, "grafeas.v1.RelatedUrl"
+ optional :note_name, :string, 3
+ optional :state, :enum, 4, "grafeas.v1.VulnerabilityAssessmentNote.Assessment.State"
+ repeated :impacts, :string, 5
+ repeated :remediations, :message, 6, "grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation"
+ optional :justification, :message, 7, "grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification"
+ end
end
end
module Grafeas
module V1
@@ -83,7 +94,8 @@
VulnerabilityNote::Detail = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityNote.Detail").msgclass
VulnerabilityNote::WindowsDetail = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityNote.WindowsDetail").msgclass
VulnerabilityNote::WindowsDetail::KnowledgeBase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase").msgclass
VulnerabilityOccurrence = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityOccurrence").msgclass
VulnerabilityOccurrence::PackageIssue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityOccurrence.PackageIssue").msgclass
+ VulnerabilityOccurrence::VexAssessment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityOccurrence.VexAssessment").msgclass
end
end