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

- old
+ new

@@ -1,125 +1,42 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/osconfig/v1alpha/inventory.proto require 'google/protobuf' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' require 'google/protobuf/timestamp_pb' require 'google/type/date_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/osconfig/v1alpha/inventory.proto", :syntax => :proto3) do - add_message "google.cloud.osconfig.v1alpha.Inventory" do - optional :name, :string, 3 - optional :os_info, :message, 1, "google.cloud.osconfig.v1alpha.Inventory.OsInfo" - map :items, :string, :message, 2, "google.cloud.osconfig.v1alpha.Inventory.Item" - optional :update_time, :message, 4, "google.protobuf.Timestamp" + +descriptor_data = "\n-google/cloud/osconfig/v1alpha/inventory.proto\x12\x1dgoogle.cloud.osconfig.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x16google/type/date.proto\"\xb7\x16\n\tInventory\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x45\n\x07os_info\x18\x01 \x01(\x0b\x32/.google.cloud.osconfig.v1alpha.Inventory.OsInfoB\x03\xe0\x41\x03\x12G\n\x05items\x18\x02 \x03(\x0b\x32\x33.google.cloud.osconfig.v1alpha.Inventory.ItemsEntryB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a\xb8\x01\n\x06OsInfo\x12\x10\n\x08hostname\x18\t \x01(\t\x12\x11\n\tlong_name\x18\x02 \x01(\t\x12\x12\n\nshort_name\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\t\x12\x14\n\x0c\x61rchitecture\x18\x05 \x01(\t\x12\x16\n\x0ekernel_version\x18\x06 \x01(\t\x12\x16\n\x0ekernel_release\x18\x07 \x01(\t\x12\x1e\n\x16osconfig_agent_version\x18\x08 \x01(\t\x1a\xcb\x04\n\x04Item\x12\n\n\x02id\x18\x01 \x01(\t\x12M\n\x0borigin_type\x18\x02 \x01(\x0e\x32\x38.google.cloud.osconfig.v1alpha.Inventory.Item.OriginType\x12/\n\x0b\x63reate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\x04type\x18\x05 \x01(\x0e\x32\x32.google.cloud.osconfig.v1alpha.Inventory.Item.Type\x12U\n\x11installed_package\x18\x06 \x01(\x0b\x32\x38.google.cloud.osconfig.v1alpha.Inventory.SoftwarePackageH\x00\x12U\n\x11\x61vailable_package\x18\x07 \x01(\x0b\x32\x38.google.cloud.osconfig.v1alpha.Inventory.SoftwarePackageH\x00\"?\n\nOriginType\x12\x1b\n\x17ORIGIN_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10INVENTORY_REPORT\x10\x01\"J\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11INSTALLED_PACKAGE\x10\x01\x12\x15\n\x11\x41VAILABLE_PACKAGE\x10\x02\x42\t\n\x07\x64\x65tails\x1a\x9f\x06\n\x0fSoftwarePackage\x12P\n\x0byum_package\x18\x01 \x01(\x0b\x32\x39.google.cloud.osconfig.v1alpha.Inventory.VersionedPackageH\x00\x12P\n\x0b\x61pt_package\x18\x02 \x01(\x0b\x32\x39.google.cloud.osconfig.v1alpha.Inventory.VersionedPackageH\x00\x12S\n\x0ezypper_package\x18\x03 \x01(\x0b\x32\x39.google.cloud.osconfig.v1alpha.Inventory.VersionedPackageH\x00\x12S\n\x0egooget_package\x18\x04 \x01(\x0b\x32\x39.google.cloud.osconfig.v1alpha.Inventory.VersionedPackageH\x00\x12L\n\x0czypper_patch\x18\x05 \x01(\x0b\x32\x34.google.cloud.osconfig.v1alpha.Inventory.ZypperPatchH\x00\x12T\n\x0bwua_package\x18\x06 \x01(\x0b\x32=.google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackageH\x00\x12\x61\n\x0bqfe_package\x18\x07 \x01(\x0b\x32J.google.cloud.osconfig.v1alpha.Inventory.WindowsQuickFixEngineeringPackageH\x00\x12P\n\x0b\x63os_package\x18\x08 \x01(\x0b\x32\x39.google.cloud.osconfig.v1alpha.Inventory.VersionedPackageH\x00\x12Z\n\x13windows_application\x18\t \x01(\x0b\x32;.google.cloud.osconfig.v1alpha.Inventory.WindowsApplicationH\x00\x42\t\n\x07\x64\x65tails\x1aO\n\x10VersionedPackage\x12\x14\n\x0cpackage_name\x18\x04 \x01(\t\x12\x14\n\x0c\x61rchitecture\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x1aV\n\x0bZypperPatch\x12\x12\n\npatch_name\x18\x05 \x01(\t\x12\x10\n\x08\x63\x61tegory\x18\x02 \x01(\t\x12\x10\n\x08severity\x18\x03 \x01(\t\x12\x0f\n\x07summary\x18\x04 \x01(\t\x1a\x88\x03\n\x14WindowsUpdatePackage\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12g\n\ncategories\x18\x03 \x03(\x0b\x32S.google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory\x12\x16\n\x0ekb_article_ids\x18\x04 \x03(\t\x12\x13\n\x0bsupport_url\x18\x0b \x01(\t\x12\x16\n\x0emore_info_urls\x18\x05 \x03(\t\x12\x11\n\tupdate_id\x18\x06 \x01(\t\x12\x17\n\x0frevision_number\x18\x07 \x01(\x05\x12?\n\x1blast_deployment_change_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x31\n\x15WindowsUpdateCategory\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x1a\x8f\x01\n!WindowsQuickFixEngineeringPackage\x12\x0f\n\x07\x63\x61ption\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x12\n\nhot_fix_id\x18\x03 \x01(\t\x12\x30\n\x0cinstall_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x92\x01\n\x12WindowsApplication\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x17\n\x0f\x64isplay_version\x18\x02 \x01(\t\x12\x11\n\tpublisher\x18\x03 \x01(\t\x12\'\n\x0cinstall_date\x18\x04 \x01(\x0b\x32\x11.google.type.Date\x12\x11\n\thelp_link\x18\x05 \x01(\t\x1a[\n\nItemsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12<\n\x05value\x18\x02 \x01(\x0b\x32-.google.cloud.osconfig.v1alpha.Inventory.Item:\x02\x38\x01:n\xea\x41k\n!osconfig.googleapis.com/Inventory\x12\x46projects/{project}/locations/{location}/instances/{instance}/inventory\"\x8a\x01\n\x13GetInventoryRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!osconfig.googleapis.com/Inventory\x12:\n\x04view\x18\x02 \x01(\x0e\x32,.google.cloud.osconfig.v1alpha.InventoryView\"\xc4\x01\n\x16ListInventoriesRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63ompute.googleapis.com/Instance\x12:\n\x04view\x18\x02 \x01(\x0e\x32,.google.cloud.osconfig.v1alpha.InventoryView\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\"q\n\x17ListInventoriesResponse\x12=\n\x0binventories\x18\x01 \x03(\x0b\x32(.google.cloud.osconfig.v1alpha.Inventory\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t*D\n\rInventoryView\x12\x1e\n\x1aINVENTORY_VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\x02\x42\xd4\x01\n!com.google.cloud.osconfig.v1alphaB\x0bInventoriesP\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"], + ["google.type.Date", "google/type/date.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.Inventory.OsInfo" do - optional :hostname, :string, 9 - optional :long_name, :string, 2 - optional :short_name, :string, 3 - optional :version, :string, 4 - optional :architecture, :string, 5 - optional :kernel_version, :string, 6 - optional :kernel_release, :string, 7 - optional :osconfig_agent_version, :string, 8 - end - add_message "google.cloud.osconfig.v1alpha.Inventory.Item" do - optional :id, :string, 1 - optional :origin_type, :enum, 2, "google.cloud.osconfig.v1alpha.Inventory.Item.OriginType" - optional :create_time, :message, 8, "google.protobuf.Timestamp" - optional :update_time, :message, 9, "google.protobuf.Timestamp" - optional :type, :enum, 5, "google.cloud.osconfig.v1alpha.Inventory.Item.Type" - oneof :details do - optional :installed_package, :message, 6, "google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage" - optional :available_package, :message, 7, "google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage" - end - end - add_enum "google.cloud.osconfig.v1alpha.Inventory.Item.OriginType" do - value :ORIGIN_TYPE_UNSPECIFIED, 0 - value :INVENTORY_REPORT, 1 - end - add_enum "google.cloud.osconfig.v1alpha.Inventory.Item.Type" do - value :TYPE_UNSPECIFIED, 0 - value :INSTALLED_PACKAGE, 1 - value :AVAILABLE_PACKAGE, 2 - end - add_message "google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage" do - oneof :details do - optional :yum_package, :message, 1, "google.cloud.osconfig.v1alpha.Inventory.VersionedPackage" - optional :apt_package, :message, 2, "google.cloud.osconfig.v1alpha.Inventory.VersionedPackage" - optional :zypper_package, :message, 3, "google.cloud.osconfig.v1alpha.Inventory.VersionedPackage" - optional :googet_package, :message, 4, "google.cloud.osconfig.v1alpha.Inventory.VersionedPackage" - optional :zypper_patch, :message, 5, "google.cloud.osconfig.v1alpha.Inventory.ZypperPatch" - optional :wua_package, :message, 6, "google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage" - optional :qfe_package, :message, 7, "google.cloud.osconfig.v1alpha.Inventory.WindowsQuickFixEngineeringPackage" - optional :cos_package, :message, 8, "google.cloud.osconfig.v1alpha.Inventory.VersionedPackage" - optional :windows_application, :message, 9, "google.cloud.osconfig.v1alpha.Inventory.WindowsApplication" - end - end - add_message "google.cloud.osconfig.v1alpha.Inventory.VersionedPackage" do - optional :package_name, :string, 4 - optional :architecture, :string, 2 - optional :version, :string, 3 - end - add_message "google.cloud.osconfig.v1alpha.Inventory.ZypperPatch" do - optional :patch_name, :string, 5 - optional :category, :string, 2 - optional :severity, :string, 3 - optional :summary, :string, 4 - end - add_message "google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage" do - optional :title, :string, 1 - optional :description, :string, 2 - repeated :categories, :message, 3, "google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory" - repeated :kb_article_ids, :string, 4 - optional :support_url, :string, 11 - repeated :more_info_urls, :string, 5 - optional :update_id, :string, 6 - optional :revision_number, :int32, 7 - optional :last_deployment_change_time, :message, 10, "google.protobuf.Timestamp" - end - add_message "google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory" do - optional :id, :string, 1 - optional :name, :string, 2 - end - add_message "google.cloud.osconfig.v1alpha.Inventory.WindowsQuickFixEngineeringPackage" do - optional :caption, :string, 1 - optional :description, :string, 2 - optional :hot_fix_id, :string, 3 - optional :install_time, :message, 5, "google.protobuf.Timestamp" - end - add_message "google.cloud.osconfig.v1alpha.Inventory.WindowsApplication" do - optional :display_name, :string, 1 - optional :display_version, :string, 2 - optional :publisher, :string, 3 - optional :install_date, :message, 4, "google.type.Date" - optional :help_link, :string, 5 - end - add_message "google.cloud.osconfig.v1alpha.GetInventoryRequest" do - optional :name, :string, 1 - optional :view, :enum, 2, "google.cloud.osconfig.v1alpha.InventoryView" - end - add_message "google.cloud.osconfig.v1alpha.ListInventoriesRequest" do - optional :parent, :string, 1 - optional :view, :enum, 2, "google.cloud.osconfig.v1alpha.InventoryView" - optional :page_size, :int32, 3 - optional :page_token, :string, 4 - optional :filter, :string, 5 - end - add_message "google.cloud.osconfig.v1alpha.ListInventoriesResponse" do - repeated :inventories, :message, 1, "google.cloud.osconfig.v1alpha.Inventory" - optional :next_page_token, :string, 2 - end - add_enum "google.cloud.osconfig.v1alpha.InventoryView" do - value :INVENTORY_VIEW_UNSPECIFIED, 0 - value :BASIC, 1 - value :FULL, 2 - 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