Skip to content

Commit 69fe13f

Browse files
Google APIscopybara-github
authored andcommitted
feat: Update osconfig v1 and v1alpha with WindowsApplication
Committer: @coodie PiperOrigin-RevId: 393730900
1 parent 9e99074 commit 69fe13f

4 files changed

Lines changed: 72 additions & 9 deletions

File tree

google/cloud/osconfig/v1/BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ proto_library(
3232
"//google/api:client_proto",
3333
"//google/api:field_behavior_proto",
3434
"//google/api:resource_proto",
35+
"//google/type:date_proto",
3536
"//google/type:datetime_proto",
3637
"//google/type:dayofweek_proto",
3738
"//google/type:timeofday_proto",
@@ -121,6 +122,7 @@ go_proto_library(
121122
protos = [":osconfig_proto"],
122123
deps = [
123124
"//google/api:annotations_go_proto",
125+
"//google/type:date_go_proto",
124126
"//google/type:datetime_go_proto",
125127
"//google/type:dayofweek_go_proto",
126128
"//google/type:timeofday_go_proto",

google/cloud/osconfig/v1/inventory.proto

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ syntax = "proto3";
1717
package google.cloud.osconfig.v1;
1818

1919
import "google/protobuf/timestamp.proto";
20+
import "google/type/date.proto";
2021

2122
option csharp_namespace = "Google.Cloud.OsConfig.V1";
2223
option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig";
@@ -152,6 +153,9 @@ message Inventory {
152153

153154
// Details of a COS package.
154155
VersionedPackage cos_package = 8;
156+
157+
// Details of a Windows Application
158+
WindowsApplication windows_application = 9;
155159
}
156160
}
157161

@@ -247,6 +251,31 @@ message Inventory {
247251
google.protobuf.Timestamp install_time = 5;
248252
}
249253

254+
// Contains information about a Windows application as retrieved from the
255+
// Windows Registry. For more information about these fields, see
256+
//
257+
// [Windows Installer Properties for the Uninstall
258+
// Registry](https://docs.microsoft.com/en-us/windows/win32/msi/uninstall-registry-key){:
259+
// class="external" }
260+
message WindowsApplication {
261+
// The name of the application or product.
262+
string display_name = 1;
263+
264+
// The version of the product or application in string format.
265+
string display_version = 2;
266+
267+
// The name of the manufacturer for the product or application.
268+
string publisher = 3;
269+
270+
// The last time this product received service. The value of this property
271+
// is replaced each time a patch is applied or removed from the product or
272+
// the command-line option is used to repair the product.
273+
google.type.Date install_date = 4;
274+
275+
// The internet address for technical support.
276+
string help_link = 5;
277+
}
278+
250279
// Base level operating system information for the VM.
251280
OsInfo os_info = 1;
252281

google/cloud/osconfig/v1alpha/BUILD.bazel

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ proto_library(
3636
"//google/api:field_behavior_proto",
3737
"//google/api:resource_proto",
3838
"//google/longrunning:operations_proto",
39+
"//google/type:date_proto",
3940
"@com_google_protobuf//:duration_proto",
4041
"@com_google_protobuf//:field_mask_proto",
4142
"@com_google_protobuf//:timestamp_proto",
@@ -123,6 +124,7 @@ go_proto_library(
123124
deps = [
124125
"//google/api:annotations_go_proto",
125126
"//google/longrunning:longrunning_go_proto",
127+
"//google/type:date_go_proto",
126128
],
127129
)
128130

@@ -131,13 +133,13 @@ go_gapic_library(
131133
srcs = [":osconfig_proto_with_info"],
132134
grpc_service_config = "osconfig_grpc_service_config.json",
133135
importpath = "cloud.google.com/go/osconfig/apiv1alpha;osconfig",
134-
service_yaml = "osconfig_v1alpha.yaml",
135136
metadata = True,
137+
service_yaml = "osconfig_v1alpha.yaml",
136138
deps = [
137139
":osconfig_go_proto",
138140
"//google/longrunning:longrunning_go_proto",
139-
"@com_google_cloud_go//longrunning/autogen:go_default_library",
140141
"@com_google_cloud_go//longrunning:go_default_library",
142+
"@com_google_cloud_go//longrunning/autogen:go_default_library",
141143
"@io_bazel_rules_go//proto/wkt:duration_go_proto",
142144
],
143145
)
@@ -154,8 +156,8 @@ go_gapic_assembly_pkg(
154156
name = "gapi-cloud-osconfig-v1alpha-go",
155157
deps = [
156158
":osconfig_go_gapic",
157-
":osconfig_go_gapic_srcjar-test.srcjar",
158159
":osconfig_go_gapic_srcjar-metadata.srcjar",
160+
":osconfig_go_gapic_srcjar-test.srcjar",
159161
":osconfig_go_proto",
160162
],
161163
)
@@ -259,8 +261,8 @@ nodejs_gapic_assembly_pkg(
259261
##############################################################################
260262
load(
261263
"@com_google_googleapis_imports//:imports.bzl",
262-
"ruby_gapic_assembly_pkg",
263264
"ruby_cloud_gapic_library",
265+
"ruby_gapic_assembly_pkg",
264266
"ruby_grpc_library",
265267
"ruby_proto_library",
266268
)

google/cloud/osconfig/v1alpha/inventory.proto

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package google.cloud.osconfig.v1alpha;
1919
import "google/api/field_behavior.proto";
2020
import "google/api/resource.proto";
2121
import "google/protobuf/timestamp.proto";
22+
import "google/type/date.proto";
2223

2324
option csharp_namespace = "Google.Cloud.OsConfig.V1Alpha";
2425
option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha;osconfig";
@@ -165,6 +166,9 @@ message Inventory {
165166

166167
// Details of a COS package.
167168
VersionedPackage cos_package = 8;
169+
170+
// Details of Windows Application.
171+
WindowsApplication windows_application = 9;
168172
}
169173
}
170174

@@ -260,6 +264,31 @@ message Inventory {
260264
google.protobuf.Timestamp install_time = 5;
261265
}
262266

267+
// Contains information about a Windows application as retrieved from the
268+
// Windows Registry. For more information about these fields, see
269+
//
270+
// [Windows Installer Properties for the Uninstall
271+
// Registry](https://docs.microsoft.com/en-us/windows/win32/msi/uninstall-registry-key){:
272+
// class="external" }
273+
message WindowsApplication {
274+
// The name of the application or product.
275+
string display_name = 1;
276+
277+
// The version of the product or application in string format.
278+
string display_version = 2;
279+
280+
// The name of the manufacturer for the product or application.
281+
string publisher = 3;
282+
283+
// The last time this product received service. The value of this property
284+
// is replaced each time a patch is applied or removed from the product or
285+
// the command-line option is used to repair the product.
286+
google.type.Date install_date = 4;
287+
288+
// The internet address for technical support.
289+
string help_link = 5;
290+
}
291+
263292
// Output only. The `Inventory` API resource name.
264293
//
265294
// Format:
@@ -269,14 +298,15 @@ message Inventory {
269298
// Output only. Base level operating system information for the VM.
270299
OsInfo os_info = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
271300

272-
// Output only. Inventory items related to the VM keyed by an opaque unique identifier for
273-
// each inventory item. The identifier is unique to each distinct and
274-
// addressable inventory item and will change, when there is a new package
275-
// version.
301+
// Output only. Inventory items related to the VM keyed by an opaque unique
302+
// identifier for each inventory item. The identifier is unique to each
303+
// distinct and addressable inventory item and will change, when there is a
304+
// new package version.
276305
map<string, Item> items = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
277306

278307
// Output only. Timestamp of the last reported inventory for the VM.
279-
google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
308+
google.protobuf.Timestamp update_time = 4
309+
[(google.api.field_behavior) = OUTPUT_ONLY];
280310
}
281311

282312
// A request message for getting inventory data for the specified VM.

0 commit comments

Comments
 (0)