Skip to content

Commit 0b2c906

Browse files
Google APIscopybara-github
authored andcommitted
fix: update third_party protos to the most actual version:
- Add item that is affected by vulnerability - Add GetOsPolicyAssignmentReport and analogous List rpc method - Add Inventory to InstanceFilter - Add existing os_policy_assignment_reports.proto fixing the build - Mark methods as deprecated PiperOrigin-RevId: 427981818
1 parent 249e9a1 commit 0b2c906

13 files changed

Lines changed: 622 additions & 149 deletions

google/cloud/osconfig/agentendpoint/v1/BUILD.bazel

Lines changed: 49 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file was automatically generated by BuildFileGenerator
2-
# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel
2+
# https://github.com/googleapis/rules_gapic/tree/master/bazel
33

44
# Most of the manual changes to this file will be overwritten.
55
# It's **only** allowed to change the following rule attribute values:
@@ -30,9 +30,9 @@ proto_library(
3030
],
3131
deps = [
3232
"//google/api:client_proto",
33-
"//google/type:date_proto",
3433
"//google/api:field_behavior_proto",
3534
"//google/api:resource_proto",
35+
"//google/type:date_proto",
3636
"@com_google_protobuf//:timestamp_proto",
3737
],
3838
)
@@ -71,12 +71,15 @@ java_grpc_library(
7171
java_gapic_library(
7272
name = "agentendpoint_java_gapic",
7373
srcs = [":agentendpoint_proto_with_info"],
74+
gapic_yaml = "osconfig_gapic.yaml",
7475
grpc_service_config = "agentendpoint_grpc_service_config.json",
76+
service_yaml = "osconfig_v1.yaml",
7577
test_deps = [
7678
":agentendpoint_java_grpc",
7779
],
7880
deps = [
7981
":agentendpoint_java_proto",
82+
"//google/api:api_java_proto",
8083
],
8184
)
8285

@@ -126,6 +129,7 @@ go_gapic_library(
126129
srcs = [":agentendpoint_proto_with_info"],
127130
grpc_service_config = "agentendpoint_grpc_service_config.json",
128131
importpath = "cloud.google.com/go/osconfig/agentendpoint/apiv1;agentendpoint",
132+
metadata = True,
129133
service_yaml = "osconfig_v1.yaml",
130134
deps = [
131135
":agentendpoint_go_proto",
@@ -144,6 +148,7 @@ go_gapic_assembly_pkg(
144148
name = "gapi-cloud-osconfig-agentendpoint-v1-go",
145149
deps = [
146150
":agentendpoint_go_gapic",
151+
":agentendpoint_go_gapic_srcjar-metadata.srcjar",
147152
":agentendpoint_go_gapic_srcjar-test.srcjar",
148153
":agentendpoint_go_proto",
149154
],
@@ -175,45 +180,45 @@ py_gapic_assembly_pkg(
175180
##############################################################################
176181
# PHP
177182
##############################################################################
178-
# load(
179-
# "@com_google_googleapis_imports//:imports.bzl",
180-
# "php_gapic_assembly_pkg",
181-
# "php_gapic_library",
182-
# "php_grpc_library",
183-
# "php_proto_library",
184-
# )
185-
#
186-
# php_proto_library(
187-
# name = "agentendpoint_php_proto",
188-
# deps = [":agentendpoint_proto"],
189-
# )
190-
#
191-
# php_grpc_library(
192-
# name = "agentendpoint_php_grpc",
193-
# srcs = [":agentendpoint_proto"],
194-
# deps = [":agentendpoint_php_proto"],
195-
# )
196-
#
197-
# php_gapic_library(
198-
# name = "agentendpoint_php_gapic",
199-
# srcs = [":agentendpoint_proto_with_info"],
200-
# grpc_service_config = "agentendpoint_grpc_service_config.json",
201-
# service_yaml = "osconfig_v1.yaml",
202-
# deps = [
203-
# ":agentendpoint_php_grpc",
204-
# ":agentendpoint_php_proto",
205-
# ],
206-
# )
207-
#
208-
# # Open Source Packages
209-
# php_gapic_assembly_pkg(
210-
# name = "google-cloud-osconfig-agentendpoint-v1-php",
211-
# deps = [
212-
# ":agentendpoint_php_gapic",
213-
# ":agentendpoint_php_grpc",
214-
# ":agentendpoint_php_proto",
215-
# ],
216-
# )
183+
load(
184+
"@com_google_googleapis_imports//:imports.bzl",
185+
"php_gapic_assembly_pkg",
186+
"php_gapic_library",
187+
"php_grpc_library",
188+
"php_proto_library",
189+
)
190+
191+
php_proto_library(
192+
name = "agentendpoint_php_proto",
193+
deps = [":agentendpoint_proto"],
194+
)
195+
196+
php_grpc_library(
197+
name = "agentendpoint_php_grpc",
198+
srcs = [":agentendpoint_proto"],
199+
deps = [":agentendpoint_php_proto"],
200+
)
201+
202+
php_gapic_library(
203+
name = "agentendpoint_php_gapic",
204+
srcs = [":agentendpoint_proto_with_info"],
205+
grpc_service_config = "agentendpoint_grpc_service_config.json",
206+
service_yaml = "osconfig_v1.yaml",
207+
deps = [
208+
":agentendpoint_php_grpc",
209+
":agentendpoint_php_proto",
210+
],
211+
)
212+
213+
# Open Source Packages
214+
php_gapic_assembly_pkg(
215+
name = "google-cloud-osconfig-agentendpoint-v1-php",
216+
deps = [
217+
":agentendpoint_php_gapic",
218+
":agentendpoint_php_grpc",
219+
":agentendpoint_php_proto",
220+
],
221+
)
217222

218223
##############################################################################
219224
# Node.js
@@ -226,6 +231,7 @@ load(
226231

227232
nodejs_gapic_library(
228233
name = "agentendpoint_nodejs_gapic",
234+
package_name = "@google-cloud/agentendpoint",
229235
src = ":agentendpoint_proto_with_info",
230236
extra_protoc_parameters = ["metadata"],
231237
grpc_service_config = "agentendpoint_grpc_service_config.json",
@@ -247,8 +253,8 @@ nodejs_gapic_assembly_pkg(
247253
##############################################################################
248254
load(
249255
"@com_google_googleapis_imports//:imports.bzl",
250-
"ruby_gapic_assembly_pkg",
251256
"ruby_cloud_gapic_library",
257+
"ruby_gapic_assembly_pkg",
252258
"ruby_grpc_library",
253259
"ruby_proto_library",
254260
)
@@ -266,7 +272,7 @@ ruby_grpc_library(
266272

267273
ruby_cloud_gapic_library(
268274
name = "agentendpoint_ruby_gapic",
269-
srcs = [":agentendpoint_proto_with_info",],
275+
srcs = [":agentendpoint_proto_with_info"],
270276
extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-agentendpoint-v1"],
271277
grpc_service_config = "agentendpoint_grpc_service_config.json",
272278
deps = [

google/cloud/osconfig/agentendpoint/v1beta/BUILD.bazel

Lines changed: 46 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file was automatically generated by BuildFileGenerator
2-
# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel
2+
# https://github.com/googleapis/rules_gapic/tree/master/bazel
33

44
# Most of the manual changes to this file will be overwritten.
55
# It's **only** allowed to change the following rule attribute values:
@@ -66,12 +66,15 @@ java_grpc_library(
6666
java_gapic_library(
6767
name = "agentendpoint_java_gapic",
6868
srcs = [":agentendpoint_proto_with_info"],
69+
gapic_yaml = "osconfig_gapic.yaml",
6970
grpc_service_config = "agentendpoint_grpc_service_config.json",
71+
service_yaml = "osconfig_v1beta.yaml",
7072
test_deps = [
7173
":agentendpoint_java_grpc",
7274
],
7375
deps = [
7476
":agentendpoint_java_proto",
77+
"//google/api:api_java_proto",
7578
],
7679
)
7780

@@ -120,6 +123,7 @@ go_gapic_library(
120123
srcs = [":agentendpoint_proto_with_info"],
121124
grpc_service_config = "agentendpoint_grpc_service_config.json",
122125
importpath = "cloud.google.com/go/osconfig/agentendpoint/apiv1beta;agentendpoint",
126+
metadata = True,
123127
service_yaml = "osconfig_v1beta.yaml",
124128
deps = [
125129
":agentendpoint_go_proto",
@@ -138,6 +142,7 @@ go_gapic_assembly_pkg(
138142
name = "gapi-cloud-osconfig-agentendpoint-v1beta-go",
139143
deps = [
140144
":agentendpoint_go_gapic",
145+
":agentendpoint_go_gapic_srcjar-metadata.srcjar",
141146
":agentendpoint_go_gapic_srcjar-test.srcjar",
142147
":agentendpoint_go_proto",
143148
],
@@ -188,28 +193,26 @@ php_grpc_library(
188193
deps = [":agentendpoint_php_proto"],
189194
)
190195

191-
# Add api.http options to all RPCs in the services to enable PHP GAPIC
192-
# generation
193-
#php_gapic_library(
194-
# name = "agentendpoint_php_gapic",
195-
# srcs = [":agentendpoint_proto_with_info"],
196-
# grpc_service_config = "agentendpoint_grpc_service_config.json",
197-
# package = "google.cloud.osconfig.agentendpoint.v1beta",
198-
# deps = [
199-
# ":agentendpoint_php_grpc",
200-
# ":agentendpoint_php_proto",
201-
# ],
202-
#)
203-
#
204-
## Open Source Packages
205-
#php_gapic_assembly_pkg(
206-
# name = "google-cloud-osconfig-agentendpoint-v1beta-php",
207-
# deps = [
208-
# ":agentendpoint_php_gapic",
209-
# ":agentendpoint_php_grpc",
210-
# ":agentendpoint_php_proto",
211-
# ],
212-
#)
196+
php_gapic_library(
197+
name = "agentendpoint_php_gapic",
198+
srcs = [":agentendpoint_proto_with_info"],
199+
grpc_service_config = "agentendpoint_grpc_service_config.json",
200+
service_yaml = "osconfig_v1beta.yaml",
201+
deps = [
202+
":agentendpoint_php_grpc",
203+
":agentendpoint_php_proto",
204+
],
205+
)
206+
207+
# Open Source Packages
208+
php_gapic_assembly_pkg(
209+
name = "google-cloud-osconfig-agentendpoint-v1beta-php",
210+
deps = [
211+
":agentendpoint_php_gapic",
212+
":agentendpoint_php_grpc",
213+
":agentendpoint_php_proto",
214+
],
215+
)
213216

214217
##############################################################################
215218
# Node.js
@@ -222,6 +225,7 @@ load(
222225

223226
nodejs_gapic_library(
224227
name = "agentendpoint_nodejs_gapic",
228+
package_name = "@google-cloud/agentendpoint",
225229
src = ":agentendpoint_proto_with_info",
226230
extra_protoc_parameters = ["metadata"],
227231
grpc_service_config = "agentendpoint_grpc_service_config.json",
@@ -243,8 +247,8 @@ nodejs_gapic_assembly_pkg(
243247
##############################################################################
244248
load(
245249
"@com_google_googleapis_imports//:imports.bzl",
246-
"ruby_gapic_assembly_pkg",
247250
"ruby_cloud_gapic_library",
251+
"ruby_gapic_assembly_pkg",
248252
"ruby_grpc_library",
249253
"ruby_proto_library",
250254
)
@@ -262,7 +266,7 @@ ruby_grpc_library(
262266

263267
ruby_cloud_gapic_library(
264268
name = "agentendpoint_ruby_gapic",
265-
srcs = [":agentendpoint_proto_with_info",],
269+
srcs = [":agentendpoint_proto_with_info"],
266270
extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-agentendpoint-v1beta"],
267271
grpc_service_config = "agentendpoint_grpc_service_config.json",
268272
deps = [
@@ -327,4 +331,20 @@ csharp_gapic_assembly_pkg(
327331
##############################################################################
328332
# C++
329333
##############################################################################
330-
# Put your C++ rules here
334+
load(
335+
"@com_google_googleapis_imports//:imports.bzl",
336+
"cc_grpc_library",
337+
"cc_proto_library",
338+
)
339+
340+
cc_proto_library(
341+
name = "agentendpoint_cc_proto",
342+
deps = [":agentendpoint_proto"],
343+
)
344+
345+
cc_grpc_library(
346+
name = "agentendpoint_cc_grpc",
347+
srcs = [":agentendpoint_proto"],
348+
grpc_only = True,
349+
deps = [":agentendpoint_cc_proto"],
350+
)

google/cloud/osconfig/v1alpha/BUILD.bazel

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ proto_library(
2525
"instance_os_policies_compliance.proto",
2626
"inventory.proto",
2727
"os_policy.proto",
28+
"os_policy_assignment_reports.proto",
2829
"os_policy_assignments.proto",
2930
"osconfig_common.proto",
3031
"osconfig_zonal_service.proto",
@@ -77,12 +78,15 @@ java_grpc_library(
7778
java_gapic_library(
7879
name = "osconfig_java_gapic",
7980
srcs = [":osconfig_proto_with_info"],
81+
gapic_yaml = None,
8082
grpc_service_config = "osconfig_grpc_service_config.json",
83+
service_yaml = "osconfig_v1alpha.yaml",
8184
test_deps = [
8285
":osconfig_java_grpc",
8386
],
8487
deps = [
8588
":osconfig_java_proto",
89+
"//google/api:api_java_proto",
8690
],
8791
)
8892

@@ -175,9 +179,7 @@ py_gapic_library(
175179
name = "osconfig_py_gapic",
176180
srcs = [":osconfig_proto"],
177181
grpc_service_config = "osconfig_grpc_service_config.json",
178-
opt_args = [
179-
"warehouse-package-name=google-cloud-os-config",
180-
],
182+
opt_args = ["warehouse-package-name=google-cloud-os-config"],
181183
)
182184

183185
# Open Source Packages
@@ -356,4 +358,20 @@ csharp_gapic_assembly_pkg(
356358
##############################################################################
357359
# C++
358360
##############################################################################
359-
# Put your C++ rules here
361+
load(
362+
"@com_google_googleapis_imports//:imports.bzl",
363+
"cc_grpc_library",
364+
"cc_proto_library",
365+
)
366+
367+
cc_proto_library(
368+
name = "osconfig_cc_proto",
369+
deps = [":osconfig_proto"],
370+
)
371+
372+
cc_grpc_library(
373+
name = "osconfig_cc_grpc",
374+
srcs = [":osconfig_proto"],
375+
grpc_only = True,
376+
deps = [":osconfig_cc_proto"],
377+
)

0 commit comments

Comments
 (0)