lib/google/cloud/osconfig/v1alpha/vulnerability_pb.rb in google-cloud-os_config-v1alpha-0.5.0 vs lib/google/cloud/osconfig/v1alpha/vulnerability_pb.rb in google-cloud-os_config-v1alpha-0.6.0

- old
+ new

@@ -1,107 +1,40 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/osconfig/v1alpha/vulnerability.proto require 'google/protobuf' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/osconfig/v1alpha/vulnerability.proto", :syntax => :proto3) do - add_message "google.cloud.osconfig.v1alpha.VulnerabilityReport" do - optional :name, :string, 1 - repeated :vulnerabilities, :message, 2, "google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability" - optional :update_time, :message, 3, "google.protobuf.Timestamp" + +descriptor_data = "\n1google/cloud/osconfig/v1alpha/vulnerability.proto\x12\x1dgoogle.cloud.osconfig.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdc\x08\n\x13VulnerabilityReport\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12^\n\x0fvulnerabilities\x18\x02 \x03(\x0b\x32@.google.cloud.osconfig.v1alpha.VulnerabilityReport.VulnerabilityB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a\x96\x06\n\rVulnerability\x12Y\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32H.google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details\x12(\n\x1cinstalled_inventory_item_ids\x18\x02 \x03(\tB\x02\x18\x01\x12(\n\x1c\x61vailable_inventory_item_ids\x18\x03 \x03(\tB\x02\x18\x01\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12T\n\x05items\x18\x06 \x03(\x0b\x32\x45.google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Item\x1a\x9e\x02\n\x07\x44\x65tails\x12\x0b\n\x03\x63ve\x18\x01 \x01(\t\x12\x15\n\rcvss_v2_score\x18\x02 \x01(\x02\x12\x36\n\x07\x63vss_v3\x18\x03 \x01(\x0b\x32%.google.cloud.osconfig.v1alpha.CVSSv3\x12\x10\n\x08severity\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12\x66\n\nreferences\x18\x06 \x03(\x0b\x32R.google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference\x1a(\n\tReference\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x0e\n\x06source\x18\x02 \x01(\t\x1a}\n\x04Item\x12#\n\x1binstalled_inventory_item_id\x18\x01 \x01(\t\x12#\n\x1b\x61vailable_inventory_item_id\x18\x02 \x01(\t\x12\x15\n\rfixed_cpe_uri\x18\x03 \x01(\t\x12\x14\n\x0cupstream_fix\x18\x04 \x01(\t:\x82\x01\xea\x41\x7f\n+osconfig.googleapis.com/VulnerabilityReport\x12Pprojects/{project}/locations/{location}/instances/{instance}/vulnerabilityReport\"b\n\x1dGetVulnerabilityReportRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+osconfig.googleapis.com/VulnerabilityReport\"\x91\x01\n\x1fListVulnerabilityReportsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63ompute.googleapis.com/Instance\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"\x8e\x01\n ListVulnerabilityReportsResponse\x12Q\n\x15vulnerability_reports\x18\x01 \x03(\x0b\x32\x32.google.cloud.osconfig.v1alpha.VulnerabilityReport\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xdd\n\n\x06\x43VSSv3\x12\x12\n\nbase_score\x18\x01 \x01(\x02\x12\x1c\n\x14\x65xploitability_score\x18\x02 \x01(\x02\x12\x14\n\x0cimpact_score\x18\x03 \x01(\x02\x12I\n\rattack_vector\x18\x05 \x01(\x0e\x32\x32.google.cloud.osconfig.v1alpha.CVSSv3.AttackVector\x12Q\n\x11\x61ttack_complexity\x18\x06 \x01(\x0e\x32\x36.google.cloud.osconfig.v1alpha.CVSSv3.AttackComplexity\x12U\n\x13privileges_required\x18\x07 \x01(\x0e\x32\x38.google.cloud.osconfig.v1alpha.CVSSv3.PrivilegesRequired\x12O\n\x10user_interaction\x18\x08 \x01(\x0e\x32\x35.google.cloud.osconfig.v1alpha.CVSSv3.UserInteraction\x12:\n\x05scope\x18\t \x01(\x0e\x32+.google.cloud.osconfig.v1alpha.CVSSv3.Scope\x12L\n\x16\x63onfidentiality_impact\x18\n \x01(\x0e\x32,.google.cloud.osconfig.v1alpha.CVSSv3.Impact\x12\x46\n\x10integrity_impact\x18\x0b \x01(\x0e\x32,.google.cloud.osconfig.v1alpha.CVSSv3.Impact\x12I\n\x13\x61vailability_impact\x18\x0c \x01(\x0e\x32,.google.cloud.osconfig.v1alpha.CVSSv3.Impact\"\x99\x01\n\x0c\x41ttackVector\x12\x1d\n\x19\x41TTACK_VECTOR_UNSPECIFIED\x10\x00\x12\x19\n\x15\x41TTACK_VECTOR_NETWORK\x10\x01\x12\x1a\n\x16\x41TTACK_VECTOR_ADJACENT\x10\x02\x12\x17\n\x13\x41TTACK_VECTOR_LOCAL\x10\x03\x12\x1a\n\x16\x41TTACK_VECTOR_PHYSICAL\x10\x04\"l\n\x10\x41ttackComplexity\x12!\n\x1d\x41TTACK_COMPLEXITY_UNSPECIFIED\x10\x00\x12\x19\n\x15\x41TTACK_COMPLEXITY_LOW\x10\x01\x12\x1a\n\x16\x41TTACK_COMPLEXITY_HIGH\x10\x02\"\x92\x01\n\x12PrivilegesRequired\x12#\n\x1fPRIVILEGES_REQUIRED_UNSPECIFIED\x10\x00\x12\x1c\n\x18PRIVILEGES_REQUIRED_NONE\x10\x01\x12\x1b\n\x17PRIVILEGES_REQUIRED_LOW\x10\x02\x12\x1c\n\x18PRIVILEGES_REQUIRED_HIGH\x10\x03\"m\n\x0fUserInteraction\x12 \n\x1cUSER_INTERACTION_UNSPECIFIED\x10\x00\x12\x19\n\x15USER_INTERACTION_NONE\x10\x01\x12\x1d\n\x19USER_INTERACTION_REQUIRED\x10\x02\"F\n\x05Scope\x12\x15\n\x11SCOPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fSCOPE_UNCHANGED\x10\x01\x12\x11\n\rSCOPE_CHANGED\x10\x02\"R\n\x06Impact\x12\x16\n\x12IMPACT_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIMPACT_HIGH\x10\x01\x12\x0e\n\nIMPACT_LOW\x10\x02\x12\x0f\n\x0bIMPACT_NONE\x10\x03\x42\xdb\x01\n!com.google.cloud.osconfig.v1alphaB\x12VulnerabilityProtoP\x01Z=cloud.google.com/go/osconfig/apiv1alpha/osconfigpb;osconfigpb\xaa\x02\x1dGoogle.Cloud.OsConfig.V1Alpha\xca\x02\x1dGoogle\\Cloud\\OsConfig\\V1alpha\xea\x02 Google::Cloud::OsConfig::V1alphab\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError => e + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" end - add_message "google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability" do - optional :details, :message, 1, "google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details" - repeated :installed_inventory_item_ids, :string, 2 - repeated :available_inventory_item_ids, :string, 3 - optional :create_time, :message, 4, "google.protobuf.Timestamp" - optional :update_time, :message, 5, "google.protobuf.Timestamp" - repeated :items, :message, 6, "google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Item" - end - add_message "google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details" do - optional :cve, :string, 1 - optional :cvss_v2_score, :float, 2 - optional :cvss_v3, :message, 3, "google.cloud.osconfig.v1alpha.CVSSv3" - optional :severity, :string, 4 - optional :description, :string, 5 - repeated :references, :message, 6, "google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference" - end - add_message "google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference" do - optional :url, :string, 1 - optional :source, :string, 2 - end - add_message "google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Item" do - optional :installed_inventory_item_id, :string, 1 - optional :available_inventory_item_id, :string, 2 - optional :fixed_cpe_uri, :string, 3 - optional :upstream_fix, :string, 4 - end - add_message "google.cloud.osconfig.v1alpha.GetVulnerabilityReportRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.osconfig.v1alpha.ListVulnerabilityReportsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - optional :filter, :string, 4 - end - add_message "google.cloud.osconfig.v1alpha.ListVulnerabilityReportsResponse" do - repeated :vulnerability_reports, :message, 1, "google.cloud.osconfig.v1alpha.VulnerabilityReport" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.osconfig.v1alpha.CVSSv3" do - optional :base_score, :float, 1 - optional :exploitability_score, :float, 2 - optional :impact_score, :float, 3 - optional :attack_vector, :enum, 5, "google.cloud.osconfig.v1alpha.CVSSv3.AttackVector" - optional :attack_complexity, :enum, 6, "google.cloud.osconfig.v1alpha.CVSSv3.AttackComplexity" - optional :privileges_required, :enum, 7, "google.cloud.osconfig.v1alpha.CVSSv3.PrivilegesRequired" - optional :user_interaction, :enum, 8, "google.cloud.osconfig.v1alpha.CVSSv3.UserInteraction" - optional :scope, :enum, 9, "google.cloud.osconfig.v1alpha.CVSSv3.Scope" - optional :confidentiality_impact, :enum, 10, "google.cloud.osconfig.v1alpha.CVSSv3.Impact" - optional :integrity_impact, :enum, 11, "google.cloud.osconfig.v1alpha.CVSSv3.Impact" - optional :availability_impact, :enum, 12, "google.cloud.osconfig.v1alpha.CVSSv3.Impact" - end - add_enum "google.cloud.osconfig.v1alpha.CVSSv3.AttackVector" do - value :ATTACK_VECTOR_UNSPECIFIED, 0 - value :ATTACK_VECTOR_NETWORK, 1 - value :ATTACK_VECTOR_ADJACENT, 2 - value :ATTACK_VECTOR_LOCAL, 3 - value :ATTACK_VECTOR_PHYSICAL, 4 - end - add_enum "google.cloud.osconfig.v1alpha.CVSSv3.AttackComplexity" do - value :ATTACK_COMPLEXITY_UNSPECIFIED, 0 - value :ATTACK_COMPLEXITY_LOW, 1 - value :ATTACK_COMPLEXITY_HIGH, 2 - end - add_enum "google.cloud.osconfig.v1alpha.CVSSv3.PrivilegesRequired" do - value :PRIVILEGES_REQUIRED_UNSPECIFIED, 0 - value :PRIVILEGES_REQUIRED_NONE, 1 - value :PRIVILEGES_REQUIRED_LOW, 2 - value :PRIVILEGES_REQUIRED_HIGH, 3 - end - add_enum "google.cloud.osconfig.v1alpha.CVSSv3.UserInteraction" do - value :USER_INTERACTION_UNSPECIFIED, 0 - value :USER_INTERACTION_NONE, 1 - value :USER_INTERACTION_REQUIRED, 2 - end - add_enum "google.cloud.osconfig.v1alpha.CVSSv3.Scope" do - value :SCOPE_UNSPECIFIED, 0 - value :SCOPE_UNCHANGED, 1 - value :SCOPE_CHANGED, 2 - end - add_enum "google.cloud.osconfig.v1alpha.CVSSv3.Impact" do - value :IMPACT_UNSPECIFIED, 0 - value :IMPACT_HIGH, 1 - value :IMPACT_LOW, 2 - value :IMPACT_NONE, 3 - end end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." end module Google module Cloud module OsConfig