From befbfdcd6bffdc402330bd0b715593ac788bd3b0 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 30 Aug 2021 12:52:26 +0000 Subject: [PATCH] feat: Update osconfig v1 and v1alpha with WindowsApplication (#108) - [ ] Regenerate this pull request now. Committer: @coodie PiperOrigin-RevId: 393730900 Source-Link: https://github.com/googleapis/googleapis/commit/69fe13f7ca3ca96f34e042596c11e40bb3277924 Source-Link: https://github.com/googleapis/googleapis-gen/commit/69509318baafc42cbe4253dd9b53d56dd5a8f8ad --- google/cloud/osconfig_v1/types/inventory.py | 42 +++++++++++++++++++ .../cloud/osconfig_v1alpha/types/inventory.py | 42 +++++++++++++++++++ 2 files changed, 84 insertions(+) diff --git a/google/cloud/osconfig_v1/types/inventory.py b/google/cloud/osconfig_v1/types/inventory.py index d78bb46..e829fca 100644 --- a/google/cloud/osconfig_v1/types/inventory.py +++ b/google/cloud/osconfig_v1/types/inventory.py @@ -16,6 +16,7 @@ import proto # type: ignore from google.protobuf import timestamp_pb2 # type: ignore +from google.type import date_pb2 # type: ignore __protobuf__ = proto.module( @@ -164,6 +165,8 @@ class SoftwarePackage(proto.Message): for info in Windows Quick Fix Engineering. cos_package (google.cloud.osconfig_v1.types.Inventory.VersionedPackage): Details of a COS package. + windows_application (google.cloud.osconfig_v1.types.Inventory.WindowsApplication): + Details of a Windows Application """ yum_package = proto.Field( @@ -211,6 +214,12 @@ class SoftwarePackage(proto.Message): oneof="details", message="Inventory.VersionedPackage", ) + windows_application = proto.Field( + proto.MESSAGE, + number=9, + oneof="details", + message="Inventory.WindowsApplication", + ) class VersionedPackage(proto.Message): r"""Information related to the a standard versioned package. @@ -343,6 +352,39 @@ class WindowsQuickFixEngineeringPackage(proto.Message): proto.MESSAGE, number=5, message=timestamp_pb2.Timestamp, ) + class WindowsApplication(proto.Message): + r"""Contains information about a Windows application as retrieved from + the Windows Registry. For more information about these fields, see + + `Windows Installer Properties for the Uninstall + Registry `__\ {: + class="external" } + + Attributes: + display_name (str): + The name of the application or product. + display_version (str): + The version of the product or application in + string format. + publisher (str): + The name of the manufacturer for the product + or application. + install_date (google.type.date_pb2.Date): + The last time this product received service. + The value of this property is replaced each time + a patch is applied or removed from the product + or the command-line option is used to repair the + product. + help_link (str): + The internet address for technical support. + """ + + display_name = proto.Field(proto.STRING, number=1,) + display_version = proto.Field(proto.STRING, number=2,) + publisher = proto.Field(proto.STRING, number=3,) + install_date = proto.Field(proto.MESSAGE, number=4, message=date_pb2.Date,) + help_link = proto.Field(proto.STRING, number=5,) + os_info = proto.Field(proto.MESSAGE, number=1, message=OsInfo,) items = proto.MapField(proto.STRING, proto.MESSAGE, number=2, message=Item,) diff --git a/google/cloud/osconfig_v1alpha/types/inventory.py b/google/cloud/osconfig_v1alpha/types/inventory.py index a5e4ae8..52972ef 100644 --- a/google/cloud/osconfig_v1alpha/types/inventory.py +++ b/google/cloud/osconfig_v1alpha/types/inventory.py @@ -16,6 +16,7 @@ import proto # type: ignore from google.protobuf import timestamp_pb2 # type: ignore +from google.type import date_pb2 # type: ignore __protobuf__ = proto.module( @@ -195,6 +196,8 @@ class SoftwarePackage(proto.Message): for info in Windows Quick Fix Engineering. cos_package (google.cloud.osconfig_v1alpha.types.Inventory.VersionedPackage): Details of a COS package. + windows_application (google.cloud.osconfig_v1alpha.types.Inventory.WindowsApplication): + Details of Windows Application. """ yum_package = proto.Field( @@ -242,6 +245,12 @@ class SoftwarePackage(proto.Message): oneof="details", message="Inventory.VersionedPackage", ) + windows_application = proto.Field( + proto.MESSAGE, + number=9, + oneof="details", + message="Inventory.WindowsApplication", + ) class VersionedPackage(proto.Message): r"""Information related to the a standard versioned package. @@ -374,6 +383,39 @@ class WindowsQuickFixEngineeringPackage(proto.Message): proto.MESSAGE, number=5, message=timestamp_pb2.Timestamp, ) + class WindowsApplication(proto.Message): + r"""Contains information about a Windows application as retrieved from + the Windows Registry. For more information about these fields, see + + `Windows Installer Properties for the Uninstall + Registry `__\ {: + class="external" } + + Attributes: + display_name (str): + The name of the application or product. + display_version (str): + The version of the product or application in + string format. + publisher (str): + The name of the manufacturer for the product + or application. + install_date (google.type.date_pb2.Date): + The last time this product received service. + The value of this property is replaced each time + a patch is applied or removed from the product + or the command-line option is used to repair the + product. + help_link (str): + The internet address for technical support. + """ + + display_name = proto.Field(proto.STRING, number=1,) + display_version = proto.Field(proto.STRING, number=2,) + publisher = proto.Field(proto.STRING, number=3,) + install_date = proto.Field(proto.MESSAGE, number=4, message=date_pb2.Date,) + help_link = proto.Field(proto.STRING, number=5,) + name = proto.Field(proto.STRING, number=3,) os_info = proto.Field(proto.MESSAGE, number=1, message=OsInfo,) items = proto.MapField(proto.STRING, proto.MESSAGE, number=2, message=Item,)