Skip to content

Commit 2c1d1b2

Browse files
Google APIscopybara-github
authored andcommitted
chore: update resourcesettings build rules
Committer: @neenushaji PiperOrigin-RevId: 380831596
1 parent 284d1dd commit 2c1d1b2

1 file changed

Lines changed: 181 additions & 4 deletions

File tree

google/cloud/resourcesettings/v1/BUILD.bazel

Lines changed: 181 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
# This file was automatically generated by BuildFileGenerator
2+
# https://github.com/googleapis/rules_gapic/tree/master/bazel
3+
# Most of the manual changes to this file will be overwritten.
4+
# It's **only** allowed to change the following rule attribute values:
5+
# - names of *_gapic_assembly_* rules
6+
# - certain parameters of *_gapic_library rules, including but not limited to:
7+
# * extra_protoc_parameters
8+
# * extra_protoc_file_parameters
9+
# The complete list of preserved parameters can be found in the source code.
210

311
# This is an API workspace, having public visibility by default makes perfect sense.
412
package(default_visibility = ["//visibility:public"])
@@ -7,6 +15,7 @@ package(default_visibility = ["//visibility:public"])
715
# Common
816
##############################################################################
917
load("@rules_proto//proto:defs.bzl", "proto_library")
18+
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
1019

1120
proto_library(
1221
name = "resourcesettings_proto",
@@ -18,8 +27,14 @@ proto_library(
1827
"//google/api:client_proto",
1928
"//google/api:field_behavior_proto",
2029
"//google/api:resource_proto",
21-
"@com_google_protobuf//:empty_proto",
22-
"@com_google_protobuf//:timestamp_proto",
30+
],
31+
)
32+
33+
proto_library_with_info(
34+
name = "resourcesettings_proto_with_info",
35+
deps = [
36+
":resourcesettings_proto",
37+
"//google/cloud:common_resources_proto",
2338
],
2439
)
2540

@@ -28,6 +43,9 @@ proto_library(
2843
##############################################################################
2944
load(
3045
"@com_google_googleapis_imports//:imports.bzl",
46+
"java_gapic_assembly_gradle_pkg",
47+
"java_gapic_library",
48+
"java_gapic_test",
3149
"java_grpc_library",
3250
"java_proto_library",
3351
)
@@ -43,12 +61,46 @@ java_grpc_library(
4361
deps = [":resourcesettings_java_proto"],
4462
)
4563

64+
java_gapic_library(
65+
name = "resourcesettings_java_gapic",
66+
srcs = [":resourcesettings_proto_with_info"],
67+
grpc_service_config = "resourcesettings_grpc_service_config.json",
68+
test_deps = [
69+
":resourcesettings_java_grpc",
70+
],
71+
deps = [
72+
":resourcesettings_java_proto",
73+
],
74+
)
75+
76+
java_gapic_test(
77+
name = "resourcesettings_java_gapic_test_suite",
78+
test_classes = [
79+
"com.google.cloud.resourcesettings.v1.ResourceSettingsServiceClientTest",
80+
],
81+
runtime_deps = [":resourcesettings_java_gapic_test"],
82+
)
83+
84+
# Open Source Packages
85+
java_gapic_assembly_gradle_pkg(
86+
name = "google-cloud-resourcesettings-v1-java",
87+
deps = [
88+
":resourcesettings_java_gapic",
89+
":resourcesettings_java_grpc",
90+
":resourcesettings_java_proto",
91+
":resourcesettings_proto",
92+
],
93+
)
94+
4695
##############################################################################
4796
# Go
4897
##############################################################################
4998
load(
5099
"@com_google_googleapis_imports//:imports.bzl",
100+
"go_gapic_assembly_pkg",
101+
"go_gapic_library",
51102
"go_proto_library",
103+
"go_test",
52104
)
53105

54106
go_proto_library(
@@ -61,6 +113,36 @@ go_proto_library(
61113
],
62114
)
63115

116+
go_gapic_library(
117+
name = "resourcesettings_go_gapic",
118+
srcs = [":resourcesettings_proto_with_info"],
119+
grpc_service_config = "resourcesettings_grpc_service_config.json",
120+
importpath = "cloud.google.com/go/resourcesettings/apiv1;resourcesettings",
121+
metadata = True,
122+
service_yaml = "resourcesettings_v1.yaml",
123+
deps = [
124+
":resourcesettings_go_proto",
125+
],
126+
)
127+
128+
go_test(
129+
name = "resourcesettings_go_gapic_test",
130+
srcs = [":resourcesettings_go_gapic_srcjar_test"],
131+
embed = [":resourcesettings_go_gapic"],
132+
importpath = "cloud.google.com/go/resourcesettings/apiv1",
133+
)
134+
135+
# Open Source Packages
136+
go_gapic_assembly_pkg(
137+
name = "gapi-cloud-resourcesettings-v1-go",
138+
deps = [
139+
":resourcesettings_go_gapic",
140+
":resourcesettings_go_gapic_srcjar-metadata.srcjar",
141+
":resourcesettings_go_gapic_srcjar-test.srcjar",
142+
":resourcesettings_go_proto",
143+
],
144+
)
145+
64146
##############################################################################
65147
# Python
66148
##############################################################################
@@ -74,7 +156,7 @@ py_gapic_library(
74156
name = "resourcesettings_py_gapic",
75157
srcs = [":resourcesettings_proto"],
76158
grpc_service_config = "resourcesettings_grpc_service_config.json",
77-
opt_args = ["warehouse-package-name=google-cloud-resource-settings"]
159+
opt_args = ["warehouse-package-name=google-cloud-resource-settings"],
78160
)
79161

80162
# Open Source Packages
@@ -90,6 +172,8 @@ py_gapic_assembly_pkg(
90172
##############################################################################
91173
load(
92174
"@com_google_googleapis_imports//:imports.bzl",
175+
"php_gapic_assembly_pkg",
176+
"php_gapic_library",
93177
"php_grpc_library",
94178
"php_proto_library",
95179
)
@@ -105,6 +189,27 @@ php_grpc_library(
105189
deps = [":resourcesettings_php_proto"],
106190
)
107191

192+
php_gapic_library(
193+
name = "resourcesettings_php_gapic",
194+
srcs = [":resourcesettings_proto_with_info"],
195+
grpc_service_config = "resourcesettings_grpc_service_config.json",
196+
service_yaml = "resourcesettings_v1.yaml",
197+
deps = [
198+
":resourcesettings_php_grpc",
199+
":resourcesettings_php_proto",
200+
],
201+
)
202+
203+
# Open Source Packages
204+
php_gapic_assembly_pkg(
205+
name = "google-cloud-resourcesettings-v1-php",
206+
deps = [
207+
":resourcesettings_php_gapic",
208+
":resourcesettings_php_grpc",
209+
":resourcesettings_php_proto",
210+
],
211+
)
212+
108213
##############################################################################
109214
# Node.js
110215
##############################################################################
@@ -114,12 +219,32 @@ load(
114219
"nodejs_gapic_library",
115220
)
116221

222+
nodejs_gapic_library(
223+
name = "resourcesettings_nodejs_gapic",
224+
package_name = "@google-cloud/resourcesettings",
225+
src = ":resourcesettings_proto_with_info",
226+
extra_protoc_parameters = ["metadata"],
227+
grpc_service_config = "resourcesettings_grpc_service_config.json",
228+
package = "google.cloud.resourcesettings.v1",
229+
service_yaml = "resourcesettings_v1.yaml",
230+
deps = [],
231+
)
232+
233+
nodejs_gapic_assembly_pkg(
234+
name = "resourcesettings-v1-nodejs",
235+
deps = [
236+
":resourcesettings_nodejs_gapic",
237+
":resourcesettings_proto",
238+
],
239+
)
117240

118241
##############################################################################
119242
# Ruby
120243
##############################################################################
121244
load(
122245
"@com_google_googleapis_imports//:imports.bzl",
246+
"ruby_cloud_gapic_library",
247+
"ruby_gapic_assembly_pkg",
123248
"ruby_grpc_library",
124249
"ruby_proto_library",
125250
)
@@ -135,11 +260,42 @@ ruby_grpc_library(
135260
deps = [":resourcesettings_ruby_proto"],
136261
)
137262

263+
ruby_cloud_gapic_library(
264+
name = "resourcesettings_ruby_gapic",
265+
srcs = [":resourcesettings_proto_with_info"],
266+
extra_protoc_parameters = [
267+
"ruby-cloud-gem-name=google-cloud-resource_settings-v1",
268+
"ruby-cloud-env-prefix=RESOURCE_SETTINGS",
269+
"ruby-cloud-product-url=https://cloud.google.com/resource-manager/docs/resource-settings/overview",
270+
"ruby-cloud-api-id=resourcesettings.googleapis.com",
271+
"ruby-cloud-api-shortname=resourcesettings",
272+
],
273+
grpc_service_config = "resourcesettings_grpc_service_config.json",
274+
ruby_cloud_description = "You can use Resource Settings to centrally configure settings for your Google Cloud projects, folders, and organization. These settings are inherited by their descendants in the resource hierarchy. Each setting is created and managed by Google.",
275+
ruby_cloud_title = "Resource Settings V1",
276+
deps = [
277+
":resourcesettings_ruby_grpc",
278+
":resourcesettings_ruby_proto",
279+
],
280+
)
281+
282+
# Open Source Packages
283+
ruby_gapic_assembly_pkg(
284+
name = "google-cloud-resourcesettings-v1-ruby",
285+
deps = [
286+
":resourcesettings_ruby_gapic",
287+
":resourcesettings_ruby_grpc",
288+
":resourcesettings_ruby_proto",
289+
],
290+
)
291+
138292
##############################################################################
139293
# C#
140294
##############################################################################
141295
load(
142296
"@com_google_googleapis_imports//:imports.bzl",
297+
"csharp_gapic_assembly_pkg",
298+
"csharp_gapic_library",
143299
"csharp_grpc_library",
144300
"csharp_proto_library",
145301
)
@@ -155,7 +311,28 @@ csharp_grpc_library(
155311
deps = [":resourcesettings_csharp_proto"],
156312
)
157313

314+
csharp_gapic_library(
315+
name = "resourcesettings_csharp_gapic",
316+
srcs = [":resourcesettings_proto_with_info"],
317+
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
318+
grpc_service_config = "resourcesettings_grpc_service_config.json",
319+
deps = [
320+
":resourcesettings_csharp_grpc",
321+
":resourcesettings_csharp_proto",
322+
],
323+
)
324+
325+
# Open Source Packages
326+
csharp_gapic_assembly_pkg(
327+
name = "google-cloud-resourcesettings-v1-csharp",
328+
deps = [
329+
":resourcesettings_csharp_gapic",
330+
":resourcesettings_csharp_grpc",
331+
":resourcesettings_csharp_proto",
332+
],
333+
)
334+
158335
##############################################################################
159336
# C++
160337
##############################################################################
161-
# Put your C++ code here
338+
# Put your C++ rules here

0 commit comments

Comments
 (0)