Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit befbfdc

Browse files
feat: Update osconfig v1 and v1alpha with WindowsApplication (#108)
- [ ] Regenerate this pull request now. Committer: @coodie PiperOrigin-RevId: 393730900 Source-Link: googleapis/googleapis@69fe13f Source-Link: https://github.com/googleapis/googleapis-gen/commit/69509318baafc42cbe4253dd9b53d56dd5a8f8ad
1 parent 0386249 commit befbfdc

File tree

2 files changed

+84
-0
lines changed

2 files changed

+84
-0
lines changed

google/cloud/osconfig_v1/types/inventory.py

+42
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import proto # type: ignore
1717

1818
from google.protobuf import timestamp_pb2 # type: ignore
19+
from google.type import date_pb2 # type: ignore
1920

2021

2122
__protobuf__ = proto.module(
@@ -164,6 +165,8 @@ class SoftwarePackage(proto.Message):
164165
for info in Windows Quick Fix Engineering.
165166
cos_package (google.cloud.osconfig_v1.types.Inventory.VersionedPackage):
166167
Details of a COS package.
168+
windows_application (google.cloud.osconfig_v1.types.Inventory.WindowsApplication):
169+
Details of a Windows Application
167170
"""
168171

169172
yum_package = proto.Field(
@@ -211,6 +214,12 @@ class SoftwarePackage(proto.Message):
211214
oneof="details",
212215
message="Inventory.VersionedPackage",
213216
)
217+
windows_application = proto.Field(
218+
proto.MESSAGE,
219+
number=9,
220+
oneof="details",
221+
message="Inventory.WindowsApplication",
222+
)
214223

215224
class VersionedPackage(proto.Message):
216225
r"""Information related to the a standard versioned package.
@@ -343,6 +352,39 @@ class WindowsQuickFixEngineeringPackage(proto.Message):
343352
proto.MESSAGE, number=5, message=timestamp_pb2.Timestamp,
344353
)
345354

355+
class WindowsApplication(proto.Message):
356+
r"""Contains information about a Windows application as retrieved from
357+
the Windows Registry. For more information about these fields, see
358+
359+
`Windows Installer Properties for the Uninstall
360+
Registry <https://docs.microsoft.com/en-us/windows/win32/msi/uninstall-registry-key>`__\ {:
361+
class="external" }
362+
363+
Attributes:
364+
display_name (str):
365+
The name of the application or product.
366+
display_version (str):
367+
The version of the product or application in
368+
string format.
369+
publisher (str):
370+
The name of the manufacturer for the product
371+
or application.
372+
install_date (google.type.date_pb2.Date):
373+
The last time this product received service.
374+
The value of this property is replaced each time
375+
a patch is applied or removed from the product
376+
or the command-line option is used to repair the
377+
product.
378+
help_link (str):
379+
The internet address for technical support.
380+
"""
381+
382+
display_name = proto.Field(proto.STRING, number=1,)
383+
display_version = proto.Field(proto.STRING, number=2,)
384+
publisher = proto.Field(proto.STRING, number=3,)
385+
install_date = proto.Field(proto.MESSAGE, number=4, message=date_pb2.Date,)
386+
help_link = proto.Field(proto.STRING, number=5,)
387+
346388
os_info = proto.Field(proto.MESSAGE, number=1, message=OsInfo,)
347389
items = proto.MapField(proto.STRING, proto.MESSAGE, number=2, message=Item,)
348390

google/cloud/osconfig_v1alpha/types/inventory.py

+42
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import proto # type: ignore
1717

1818
from google.protobuf import timestamp_pb2 # type: ignore
19+
from google.type import date_pb2 # type: ignore
1920

2021

2122
__protobuf__ = proto.module(
@@ -195,6 +196,8 @@ class SoftwarePackage(proto.Message):
195196
for info in Windows Quick Fix Engineering.
196197
cos_package (google.cloud.osconfig_v1alpha.types.Inventory.VersionedPackage):
197198
Details of a COS package.
199+
windows_application (google.cloud.osconfig_v1alpha.types.Inventory.WindowsApplication):
200+
Details of Windows Application.
198201
"""
199202

200203
yum_package = proto.Field(
@@ -242,6 +245,12 @@ class SoftwarePackage(proto.Message):
242245
oneof="details",
243246
message="Inventory.VersionedPackage",
244247
)
248+
windows_application = proto.Field(
249+
proto.MESSAGE,
250+
number=9,
251+
oneof="details",
252+
message="Inventory.WindowsApplication",
253+
)
245254

246255
class VersionedPackage(proto.Message):
247256
r"""Information related to the a standard versioned package.
@@ -374,6 +383,39 @@ class WindowsQuickFixEngineeringPackage(proto.Message):
374383
proto.MESSAGE, number=5, message=timestamp_pb2.Timestamp,
375384
)
376385

386+
class WindowsApplication(proto.Message):
387+
r"""Contains information about a Windows application as retrieved from
388+
the Windows Registry. For more information about these fields, see
389+
390+
`Windows Installer Properties for the Uninstall
391+
Registry <https://docs.microsoft.com/en-us/windows/win32/msi/uninstall-registry-key>`__\ {:
392+
class="external" }
393+
394+
Attributes:
395+
display_name (str):
396+
The name of the application or product.
397+
display_version (str):
398+
The version of the product or application in
399+
string format.
400+
publisher (str):
401+
The name of the manufacturer for the product
402+
or application.
403+
install_date (google.type.date_pb2.Date):
404+
The last time this product received service.
405+
The value of this property is replaced each time
406+
a patch is applied or removed from the product
407+
or the command-line option is used to repair the
408+
product.
409+
help_link (str):
410+
The internet address for technical support.
411+
"""
412+
413+
display_name = proto.Field(proto.STRING, number=1,)
414+
display_version = proto.Field(proto.STRING, number=2,)
415+
publisher = proto.Field(proto.STRING, number=3,)
416+
install_date = proto.Field(proto.MESSAGE, number=4, message=date_pb2.Date,)
417+
help_link = proto.Field(proto.STRING, number=5,)
418+
377419
name = proto.Field(proto.STRING, number=3,)
378420
os_info = proto.Field(proto.MESSAGE, number=1, message=OsInfo,)
379421
items = proto.MapField(proto.STRING, proto.MESSAGE, number=2, message=Item,)

0 commit comments

Comments
 (0)