Skip to content

Commit

Permalink
feat: Update osconfig v1 and v1alpha with WindowsApplication (#108)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

Committer: @coodie
PiperOrigin-RevId: 393730900

Source-Link: googleapis/googleapis@69fe13f

Source-Link: googleapis/googleapis-gen@6950931
  • Loading branch information
gcf-owl-bot[bot] authored Aug 30, 2021
1 parent c386ec7 commit 017a497
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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 <https://docs.microsoft.com/en-us/windows/win32/msi/uninstall-registry-key>`__\ {:
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,)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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 <https://docs.microsoft.com/en-us/windows/win32/msi/uninstall-registry-key>`__\ {:
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,)
Expand Down

0 comments on commit 017a497

Please sign in to comment.