lib/grafeas/v1/vulnerability_pb.rb in grafeas-v1-0.3.1 vs lib/grafeas/v1/vulnerability_pb.rb in grafeas-v1-0.4.0

- old
+ new

@@ -4,10 +4,11 @@ require 'google/api/field_behavior_pb' 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 'google/protobuf' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("grafeas/v1/vulnerability.proto", :syntax => :proto3) do add_message "grafeas.v1.VulnerabilityNote" do @@ -46,22 +47,18 @@ end add_message "grafeas.v1.VulnerabilityOccurrence" do optional :type, :string, 1 optional :severity, :enum, 2, "grafeas.v1.Severity" optional :cvss_score, :float, 3 - optional :cvssv3, :message, 10, "grafeas.v1.VulnerabilityOccurrence.CVSSV3" + optional :cvssv3, :message, 10, "grafeas.v1.CVSS" repeated :package_issue, :message, 4, "grafeas.v1.VulnerabilityOccurrence.PackageIssue" optional :short_description, :string, 5 optional :long_description, :string, 6 repeated :related_urls, :message, 7, "grafeas.v1.RelatedUrl" optional :effective_severity, :enum, 8, "grafeas.v1.Severity" optional :fix_available, :bool, 9 end - add_message "grafeas.v1.VulnerabilityOccurrence.CVSSV3" do - optional :base_score, :float, 1 - optional :severity, :enum, 2, "grafeas.v1.Severity" - 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" optional :fixed_cpe_uri, :string, 4 @@ -69,28 +66,18 @@ optional :fixed_version, :message, 6, "grafeas.v1.Version" optional :fix_available, :bool, 7 optional :package_type, :string, 8 optional :effective_severity, :enum, 9, "grafeas.v1.Severity" end - add_enum "grafeas.v1.Severity" do - value :SEVERITY_UNSPECIFIED, 0 - value :MINIMAL, 1 - value :LOW, 2 - value :MEDIUM, 3 - value :HIGH, 4 - value :CRITICAL, 5 - end end end module Grafeas module V1 VulnerabilityNote = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityNote").msgclass 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::CVSSV3 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityOccurrence.CVSSV3").msgclass VulnerabilityOccurrence::PackageIssue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityOccurrence.PackageIssue").msgclass - Severity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Severity").enummodule end end