inventory.proto 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. // Copyright 2020 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.osconfig.agentendpoint.v1;
  16. import "google/protobuf/timestamp.proto";
  17. import "google/type/date.proto";
  18. option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1;agentendpoint";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "InventoryProto";
  21. option java_package = "com.google.cloud.osconfig.agentendpoint.v1";
  22. // OS Config Inventory is a service for collecting and reporting operating
  23. // system and package information on VM instances.
  24. // The inventory details of a VM.
  25. message Inventory {
  26. // Operating system information for the VM.
  27. message OsInfo {
  28. // The VM hostname.
  29. string hostname = 1;
  30. // The operating system long name.
  31. // For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019
  32. // Datacenter'.
  33. string long_name = 2;
  34. // The operating system short name.
  35. // For example, 'windows' or 'debian'.
  36. string short_name = 3;
  37. // The version of the operating system.
  38. string version = 4;
  39. // The system architecture of the operating system.
  40. string architecture = 5;
  41. // The kernel version of the operating system.
  42. string kernel_version = 6;
  43. // The kernel release of the operating system.
  44. string kernel_release = 7;
  45. // The current version of the OS Config agent running on the VM.
  46. string osconfig_agent_version = 8;
  47. }
  48. // Software package information of the operating system.
  49. message SoftwarePackage {
  50. // Information about the different types of software packages.
  51. oneof details {
  52. // Yum package info.
  53. // For details about the yum package manager, see
  54. // https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum.
  55. VersionedPackage yum_package = 1;
  56. // Details of an APT package.
  57. // For details about the apt package manager, see
  58. // https://wiki.debian.org/Apt.
  59. VersionedPackage apt_package = 2;
  60. // Details of a Zypper package.
  61. // For details about the Zypper package manager, see
  62. // https://en.opensuse.org/SDB:Zypper_manual.
  63. VersionedPackage zypper_package = 3;
  64. // Details of a Googet package.
  65. // For details about the googet package manager, see
  66. // https://github.com/google/googet.
  67. VersionedPackage googet_package = 4;
  68. // Details of a Zypper patch.
  69. // For details about the Zypper package manager, see
  70. // https://en.opensuse.org/SDB:Zypper_manual.
  71. ZypperPatch zypper_patch = 5;
  72. // Details of a Windows Update package.
  73. // See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for
  74. // information about Windows Update.
  75. WindowsUpdatePackage wua_package = 6;
  76. // Details of a Windows Quick Fix engineering package.
  77. // See
  78. // https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering
  79. // for info in Windows Quick Fix Engineering.
  80. WindowsQuickFixEngineeringPackage qfe_package = 7;
  81. // Details of a COS package.
  82. VersionedPackage cos_package = 8;
  83. // Details of Windows Application.
  84. WindowsApplication windows_application = 9;
  85. }
  86. }
  87. // Information related to the a standard versioned package. This includes
  88. // package info for APT, Yum, Zypper, and Googet package managers.
  89. message VersionedPackage {
  90. // The name of the package.
  91. string package_name = 1;
  92. // The system architecture this package is intended for.
  93. string architecture = 2;
  94. // The version of the package.
  95. string version = 3;
  96. }
  97. // Details related to a Zypper Patch.
  98. message ZypperPatch {
  99. // The name of the patch.
  100. string patch_name = 1;
  101. // The category of the patch.
  102. string category = 2;
  103. // The severity specified for this patch
  104. string severity = 3;
  105. // Any summary information provided about this patch.
  106. string summary = 4;
  107. }
  108. // Details related to a Windows Update package.
  109. // Field data and names are taken from Windows Update API IUpdate Interface:
  110. // https://docs.microsoft.com/en-us/windows/win32/api/_wua/
  111. // Descriptive fields like title, and description are localized based on
  112. // the locale of the VM being updated.
  113. message WindowsUpdatePackage {
  114. // Categories specified by the Windows Update.
  115. message WindowsUpdateCategory {
  116. // The identifier of the windows update category.
  117. string id = 1;
  118. // The name of the windows update category.
  119. string name = 2;
  120. }
  121. // The localized title of the update package.
  122. string title = 1;
  123. // The localized description of the update package.
  124. string description = 2;
  125. // The categories that are associated with this update package.
  126. repeated WindowsUpdateCategory categories = 3;
  127. // A collection of Microsoft Knowledge Base article IDs that are associated
  128. // with the update package.
  129. repeated string kb_article_ids = 4;
  130. // A hyperlink to the language-specific support information for the update.
  131. string support_url = 5;
  132. // A collection of URLs that provide more information about the update
  133. // package.
  134. repeated string more_info_urls = 6;
  135. // Gets the identifier of an update package. Stays the same across
  136. // revisions.
  137. string update_id = 7;
  138. // The revision number of this update package.
  139. int32 revision_number = 8;
  140. // The last published date of the update, in (UTC) date and time.
  141. google.protobuf.Timestamp last_deployment_change_time = 9;
  142. }
  143. // Information related to a Quick Fix Engineering package.
  144. // Fields are taken from Windows QuickFixEngineering Interface and match
  145. // the source names:
  146. // https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering
  147. message WindowsQuickFixEngineeringPackage {
  148. // A short textual description of the QFE update.
  149. string caption = 1;
  150. // A textual description of the QFE update.
  151. string description = 2;
  152. // Unique identifier associated with a particular QFE update.
  153. string hot_fix_id = 3;
  154. // Date that the QFE update was installed. Mapped from installed_on field.
  155. google.protobuf.Timestamp install_time = 4;
  156. }
  157. // Details about Windows Application - based on Windows Registry.
  158. // All fields in this message are taken from:
  159. // https://docs.microsoft.com/en-us/windows/win32/msi/uninstall-registry-key
  160. message WindowsApplication {
  161. // DisplayName field from Windows Registry.
  162. string display_name = 1;
  163. // DisplayVersion field from Windows Registry.
  164. string display_version = 2;
  165. // Publisher field from Windows Registry.
  166. string publisher = 3;
  167. // Installation date field from Windows Registry.
  168. google.type.Date install_date = 4;
  169. // HelpLink field from Windows Registry.
  170. string help_link = 5;
  171. }
  172. // Base level operating system information for the VM.
  173. OsInfo os_info = 1;
  174. // A list of installed packages currently on the VM.
  175. repeated SoftwarePackage installed_packages = 2;
  176. // A list of software updates available for the VM as reported by the update
  177. // managers.
  178. repeated SoftwarePackage available_packages = 3;
  179. }