Skip to content

Commit ef705a6

Browse files
Google APIscopybara-github
authored andcommitted
feat: Generate client library for Cloud Resource Manager V3 API.
PiperOrigin-RevId: 365856330
1 parent d6642a0 commit ef705a6

10 files changed

Lines changed: 2912 additions & 0 deletions
Lines changed: 357 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,357 @@
1+
# This file was automatically generated by BuildFileGenerator
2+
# https://github.com/googleapis/rules_gapic/tree/master/bazel
3+
4+
# Most of the manual changes to this file will be overwritten.
5+
# It's **only** allowed to change the following rule attribute values:
6+
# - names of *_gapic_assembly_* rules
7+
# - certain parameters of *_gapic_library rules, including but not limited to:
8+
# * extra_protoc_parameters
9+
# * extra_protoc_file_parameters
10+
# The complete list of preserved parameters can be found in the source code.
11+
12+
# This is an API workspace, having public visibility by default makes perfect sense.
13+
package(default_visibility = ["//visibility:public"])
14+
15+
##############################################################################
16+
# Common
17+
##############################################################################
18+
load("@rules_proto//proto:defs.bzl", "proto_library")
19+
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
20+
21+
proto_library(
22+
name = "resourcemanager_proto",
23+
srcs = [
24+
"folders.proto",
25+
"organizations.proto",
26+
"projects.proto",
27+
"tag_bindings.proto",
28+
"tag_keys.proto",
29+
"tag_values.proto",
30+
],
31+
deps = [
32+
"//google/api:annotations_proto",
33+
"//google/api:client_proto",
34+
"//google/api:field_behavior_proto",
35+
"//google/api:resource_proto",
36+
"//google/iam/v1:iam_policy_proto",
37+
"//google/iam/v1:policy_proto",
38+
"//google/longrunning:operations_proto",
39+
"@com_google_protobuf//:field_mask_proto",
40+
"@com_google_protobuf//:timestamp_proto",
41+
],
42+
)
43+
44+
proto_library_with_info(
45+
name = "resourcemanager_proto_with_info",
46+
deps = [
47+
":resourcemanager_proto",
48+
# This line was manually modified since Projects, Folders, Organizations
49+
# are special cased since they are also common resources.
50+
#"//google/cloud:common_resources_proto",
51+
],
52+
)
53+
54+
##############################################################################
55+
# Java
56+
##############################################################################
57+
load(
58+
"@com_google_googleapis_imports//:imports.bzl",
59+
"java_gapic_assembly_gradle_pkg",
60+
"java_gapic_library",
61+
"java_gapic_test",
62+
"java_grpc_library",
63+
"java_proto_library",
64+
)
65+
66+
java_proto_library(
67+
name = "resourcemanager_java_proto",
68+
deps = [":resourcemanager_proto"],
69+
)
70+
71+
java_grpc_library(
72+
name = "resourcemanager_java_grpc",
73+
srcs = [":resourcemanager_proto"],
74+
deps = [":resourcemanager_java_proto"],
75+
)
76+
77+
java_gapic_library(
78+
name = "resourcemanager_java_gapic",
79+
srcs = [":resourcemanager_proto_with_info"],
80+
grpc_service_config = "cloudresourcemanager_v3_grpc_service_config.json",
81+
test_deps = [
82+
":resourcemanager_java_grpc",
83+
"//google/iam/v1:iam_java_grpc",
84+
],
85+
deps = [
86+
":resourcemanager_java_proto",
87+
"//google/iam/v1:iam_java_proto",
88+
],
89+
)
90+
91+
java_gapic_test(
92+
name = "resourcemanager_java_gapic_test_suite",
93+
test_classes = [
94+
"com.google.cloud.resourcemanager.v3.FoldersClientTest",
95+
"com.google.cloud.resourcemanager.v3.OrganizationsClientTest",
96+
"com.google.cloud.resourcemanager.v3.ProjectsClientTest",
97+
"com.google.cloud.resourcemanager.v3.TagBindingsClientTest",
98+
"com.google.cloud.resourcemanager.v3.TagKeysClientTest",
99+
"com.google.cloud.resourcemanager.v3.TagValuesClientTest",
100+
],
101+
runtime_deps = [":resourcemanager_java_gapic_test"],
102+
)
103+
104+
# Open Source Packages
105+
java_gapic_assembly_gradle_pkg(
106+
name = "google-cloud-resourcemanager-v3-java",
107+
deps = [
108+
":resourcemanager_java_gapic",
109+
":resourcemanager_java_grpc",
110+
":resourcemanager_java_proto",
111+
":resourcemanager_proto",
112+
],
113+
)
114+
115+
##############################################################################
116+
# Go
117+
##############################################################################
118+
load(
119+
"@com_google_googleapis_imports//:imports.bzl",
120+
"go_gapic_assembly_pkg",
121+
"go_gapic_library",
122+
"go_proto_library",
123+
"go_test",
124+
)
125+
126+
go_proto_library(
127+
name = "resourcemanager_go_proto",
128+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
129+
importpath = "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3",
130+
protos = [":resourcemanager_proto"],
131+
deps = [
132+
"//google/api:annotations_go_proto",
133+
"//google/iam/v1:iam_go_proto",
134+
"//google/longrunning:longrunning_go_proto",
135+
],
136+
)
137+
138+
go_gapic_library(
139+
name = "resourcemanager_go_gapic",
140+
srcs = [":resourcemanager_proto_with_info"],
141+
grpc_service_config = "cloudresourcemanager_v3_grpc_service_config.json",
142+
importpath = "cloud.google.com/go/resourcemanager/apiv3;resourcemanager",
143+
metadata = True,
144+
service_yaml = "cloudresourcemanager_v3.yaml",
145+
deps = [
146+
":resourcemanager_go_proto",
147+
"//google/iam/v1:iam_go_proto",
148+
"//google/longrunning:longrunning_go_proto",
149+
"@com_google_cloud_go//longrunning:go_default_library",
150+
"@com_google_cloud_go//longrunning/autogen:go_default_library",
151+
],
152+
)
153+
154+
go_test(
155+
name = "resourcemanager_go_gapic_test",
156+
srcs = [":resourcemanager_go_gapic_srcjar_test"],
157+
embed = [":resourcemanager_go_gapic"],
158+
importpath = "cloud.google.com/go/resourcemanager/apiv3",
159+
)
160+
161+
# Open Source Packages
162+
go_gapic_assembly_pkg(
163+
name = "gapi-cloud-resourcemanager-v3-go",
164+
deps = [
165+
":resourcemanager_go_gapic",
166+
":resourcemanager_go_gapic_srcjar-metadata.srcjar",
167+
":resourcemanager_go_gapic_srcjar-test.srcjar",
168+
":resourcemanager_go_proto",
169+
],
170+
)
171+
172+
##############################################################################
173+
# Python
174+
##############################################################################
175+
load(
176+
"@com_google_googleapis_imports//:imports.bzl",
177+
"py_gapic_assembly_pkg",
178+
"py_gapic_library",
179+
)
180+
181+
py_gapic_library(
182+
name = "resourcemanager_py_gapic",
183+
srcs = [":resourcemanager_proto"],
184+
grpc_service_config = "cloudresourcemanager_v3_grpc_service_config.json",
185+
)
186+
187+
# Open Source Packages
188+
py_gapic_assembly_pkg(
189+
name = "resourcemanager-v3-py",
190+
deps = [
191+
":resourcemanager_py_gapic",
192+
],
193+
)
194+
195+
##############################################################################
196+
# PHP
197+
##############################################################################
198+
load(
199+
"@com_google_googleapis_imports//:imports.bzl",
200+
"php_gapic_assembly_pkg",
201+
"php_gapic_library",
202+
"php_grpc_library",
203+
"php_proto_library",
204+
)
205+
206+
php_proto_library(
207+
name = "resourcemanager_php_proto",
208+
deps = [":resourcemanager_proto"],
209+
)
210+
211+
php_grpc_library(
212+
name = "resourcemanager_php_grpc",
213+
srcs = [":resourcemanager_proto"],
214+
deps = [":resourcemanager_php_proto"],
215+
)
216+
217+
php_gapic_library(
218+
name = "resourcemanager_php_gapic",
219+
src = ":resourcemanager_proto_with_info",
220+
gapic_yaml = "cloudresourcemanager_gapic.yaml",
221+
grpc_service_config = "cloudresourcemanager_v3_grpc_service_config.json",
222+
package = "google.cloud.resourcemanager.v3",
223+
service_yaml = "cloudresourcemanager_v3.yaml",
224+
deps = [
225+
":resourcemanager_php_grpc",
226+
":resourcemanager_php_proto",
227+
],
228+
)
229+
230+
# Open Source Packages
231+
php_gapic_assembly_pkg(
232+
name = "google-cloud-resourcemanager-v3-php",
233+
deps = [
234+
":resourcemanager_php_gapic",
235+
":resourcemanager_php_grpc",
236+
":resourcemanager_php_proto",
237+
],
238+
)
239+
240+
##############################################################################
241+
# Node.js
242+
##############################################################################
243+
load(
244+
"@com_google_googleapis_imports//:imports.bzl",
245+
"nodejs_gapic_assembly_pkg",
246+
"nodejs_gapic_library",
247+
)
248+
249+
nodejs_gapic_library(
250+
name = "resourcemanager_nodejs_gapic",
251+
package_name = "@google-cloud/resourcemanager",
252+
src = ":resourcemanager_proto_with_info",
253+
extra_protoc_parameters = ["metadata"],
254+
grpc_service_config = "cloudresourcemanager_v3_grpc_service_config.json",
255+
package = "google.cloud.resourcemanager.v3",
256+
service_yaml = "cloudresourcemanager_v3.yaml",
257+
deps = [],
258+
)
259+
260+
nodejs_gapic_assembly_pkg(
261+
name = "resourcemanager-v3-nodejs",
262+
deps = [
263+
":resourcemanager_nodejs_gapic",
264+
":resourcemanager_proto",
265+
],
266+
)
267+
268+
##############################################################################
269+
# Ruby
270+
##############################################################################
271+
load(
272+
"@com_google_googleapis_imports//:imports.bzl",
273+
"ruby_cloud_gapic_library",
274+
"ruby_gapic_assembly_pkg",
275+
"ruby_grpc_library",
276+
"ruby_proto_library",
277+
)
278+
279+
ruby_proto_library(
280+
name = "resourcemanager_ruby_proto",
281+
deps = [":resourcemanager_proto"],
282+
)
283+
284+
ruby_grpc_library(
285+
name = "resourcemanager_ruby_grpc",
286+
srcs = [":resourcemanager_proto"],
287+
deps = [":resourcemanager_ruby_proto"],
288+
)
289+
290+
ruby_cloud_gapic_library(
291+
name = "resourcemanager_ruby_gapic",
292+
srcs = [":resourcemanager_proto_with_info"],
293+
extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-resourcemanager-v3"],
294+
grpc_service_config = "cloudresourcemanager_v3_grpc_service_config.json",
295+
deps = [
296+
":resourcemanager_ruby_grpc",
297+
":resourcemanager_ruby_proto",
298+
],
299+
)
300+
301+
# Open Source Packages
302+
ruby_gapic_assembly_pkg(
303+
name = "google-cloud-resourcemanager-v3-ruby",
304+
deps = [
305+
":resourcemanager_ruby_gapic",
306+
":resourcemanager_ruby_grpc",
307+
":resourcemanager_ruby_proto",
308+
],
309+
)
310+
311+
##############################################################################
312+
# C#
313+
##############################################################################
314+
load(
315+
"@com_google_googleapis_imports//:imports.bzl",
316+
"csharp_gapic_assembly_pkg",
317+
"csharp_gapic_library",
318+
"csharp_grpc_library",
319+
"csharp_proto_library",
320+
)
321+
322+
csharp_proto_library(
323+
name = "resourcemanager_csharp_proto",
324+
deps = [":resourcemanager_proto"],
325+
)
326+
327+
csharp_grpc_library(
328+
name = "resourcemanager_csharp_grpc",
329+
srcs = [":resourcemanager_proto"],
330+
deps = [":resourcemanager_csharp_proto"],
331+
)
332+
333+
csharp_gapic_library(
334+
name = "resourcemanager_csharp_gapic",
335+
srcs = [":resourcemanager_proto_with_info"],
336+
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
337+
grpc_service_config = "cloudresourcemanager_v3_grpc_service_config.json",
338+
deps = [
339+
":resourcemanager_csharp_grpc",
340+
":resourcemanager_csharp_proto",
341+
],
342+
)
343+
344+
# Open Source Packages
345+
csharp_gapic_assembly_pkg(
346+
name = "google-cloud-resourcemanager-v3-csharp",
347+
deps = [
348+
":resourcemanager_csharp_gapic",
349+
":resourcemanager_csharp_grpc",
350+
":resourcemanager_csharp_proto",
351+
],
352+
)
353+
354+
##############################################################################
355+
# C++
356+
##############################################################################
357+
# Put your C++ rules here
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
type: com.google.api.codegen.ConfigProto
2+
config_schema_version: 2.0.0
3+
# The settings of generated code in a specific language.
4+
language_settings:
5+
java:
6+
package_name: com.google.cloud.resourcemanager.v3
7+
python:
8+
package_name: google.cloud.resourcemanager.v3
9+
go:
10+
package_name: cloud.google.com/go/cloudresourcemanager/apiv3
11+
csharp:
12+
package_name: Google.Cloud.ResourceManager.V3
13+
ruby:
14+
package_name: Google::Cloud::ResourceManager::V3
15+
php:
16+
package_name: Google\Cloud\ResourceManager\V3
17+
nodejs:
18+
package_name: cloudresourcemanager.v3

0 commit comments

Comments
 (0)