Skip to content

Commit 03ce2eb

Browse files
Google APIscopybara-github
authored andcommitted
feat: added support for Notebooks v1
Committer: @gogasca PiperOrigin-RevId: 393792683
1 parent c1296cd commit 03ce2eb

12 files changed

Lines changed: 3421 additions & 0 deletions
Lines changed: 359 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,359 @@
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 = "notebooks_proto",
23+
srcs = [
24+
"environment.proto",
25+
"event.proto",
26+
"execution.proto",
27+
"instance.proto",
28+
"instance_config.proto",
29+
"managed_service.proto",
30+
"runtime.proto",
31+
"schedule.proto",
32+
"service.proto",
33+
],
34+
deps = [
35+
"//google/api:annotations_proto",
36+
"//google/api:client_proto",
37+
"//google/api:field_behavior_proto",
38+
"//google/api:resource_proto",
39+
"//google/longrunning:operations_proto",
40+
"@com_google_protobuf//:timestamp_proto",
41+
],
42+
)
43+
44+
proto_library_with_info(
45+
name = "notebooks_proto_with_info",
46+
deps = [
47+
":notebooks_proto",
48+
"//google/cloud/location:location_proto",
49+
"//google/cloud:common_resources_proto",
50+
],
51+
)
52+
53+
##############################################################################
54+
# Java
55+
##############################################################################
56+
load(
57+
"@com_google_googleapis_imports//:imports.bzl",
58+
"java_gapic_assembly_gradle_pkg",
59+
"java_gapic_library",
60+
"java_gapic_test",
61+
"java_grpc_library",
62+
"java_proto_library",
63+
)
64+
65+
java_proto_library(
66+
name = "notebooks_java_proto",
67+
deps = [":notebooks_proto"],
68+
)
69+
70+
java_grpc_library(
71+
name = "notebooks_java_grpc",
72+
srcs = [":notebooks_proto"],
73+
deps = [":notebooks_java_proto"],
74+
)
75+
76+
java_gapic_library(
77+
name = "notebooks_java_gapic",
78+
srcs = [":notebooks_proto_with_info"],
79+
gapic_yaml = None,
80+
grpc_service_config = "notebooks_grpc_service_config.json",
81+
service_yaml = "notebooks_v1.yaml",
82+
test_deps = [
83+
":notebooks_java_grpc",
84+
"//google/cloud/location:location_java_grpc",
85+
],
86+
deps = [
87+
":notebooks_java_proto",
88+
"//google/api:api_java_proto",
89+
"//google/cloud/location:location_java_grpc",
90+
"//google/cloud/location:location_java_proto",
91+
],
92+
)
93+
94+
java_gapic_test(
95+
name = "notebooks_java_gapic_test_suite",
96+
test_classes = [
97+
"com.google.cloud.notebooks.v1.ManagedNotebookServiceClientTest",
98+
"com.google.cloud.notebooks.v1.NotebookServiceClientTest",
99+
],
100+
runtime_deps = [":notebooks_java_gapic_test"],
101+
)
102+
103+
# Open Source Packages
104+
java_gapic_assembly_gradle_pkg(
105+
name = "google-cloud-notebooks-v1-java",
106+
deps = [
107+
":notebooks_java_gapic",
108+
":notebooks_java_grpc",
109+
":notebooks_java_proto",
110+
":notebooks_proto",
111+
"//google/cloud/location:location_java_grpc",
112+
"//google/cloud/location:location_java_proto",
113+
"//google/cloud/location:location_proto",
114+
],
115+
)
116+
117+
##############################################################################
118+
# Go
119+
##############################################################################
120+
load(
121+
"@com_google_googleapis_imports//:imports.bzl",
122+
"go_gapic_assembly_pkg",
123+
"go_gapic_library",
124+
"go_proto_library",
125+
"go_test",
126+
)
127+
128+
go_proto_library(
129+
name = "notebooks_go_proto",
130+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
131+
importpath = "google.golang.org/genproto/googleapis/cloud/notebooks/v1",
132+
protos = [":notebooks_proto"],
133+
deps = [
134+
"//google/api:annotations_go_proto",
135+
"//google/longrunning:longrunning_go_proto",
136+
"//google/cloud/location:location_go_proto",
137+
],
138+
)
139+
140+
go_gapic_library(
141+
name = "notebooks_go_gapic",
142+
srcs = [":notebooks_proto_with_info"],
143+
grpc_service_config = "notebooks_grpc_service_config.json",
144+
importpath = "cloud.google.com/go/notebooks/apiv1;notebooks",
145+
service_yaml = "notebooks_v1.yaml",
146+
metadata = True,
147+
deps = [
148+
":notebooks_go_proto",
149+
"//google/longrunning:longrunning_go_proto",
150+
"//google/cloud/location:location_go_proto",
151+
"@com_google_cloud_go//longrunning/autogen:go_default_library",
152+
"@com_google_cloud_go//longrunning:go_default_library",
153+
],
154+
)
155+
156+
go_test(
157+
name = "notebooks_go_gapic_test",
158+
srcs = [":notebooks_go_gapic_srcjar_test"],
159+
embed = [":notebooks_go_gapic"],
160+
importpath = "cloud.google.com/go/notebooks/apiv1",
161+
)
162+
163+
# Open Source Packages
164+
go_gapic_assembly_pkg(
165+
name = "gapi-cloud-notebooks-v1-go",
166+
deps = [
167+
":notebooks_go_gapic",
168+
":notebooks_go_gapic_srcjar-test.srcjar",
169+
":notebooks_go_gapic_srcjar-metadata.srcjar",
170+
":notebooks_go_proto",
171+
],
172+
)
173+
174+
##############################################################################
175+
# Python
176+
##############################################################################
177+
load(
178+
"@com_google_googleapis_imports//:imports.bzl",
179+
"py_gapic_assembly_pkg",
180+
"py_gapic_library",
181+
)
182+
183+
py_gapic_library(
184+
name = "notebooks_py_gapic",
185+
srcs = [":notebooks_proto"],
186+
grpc_service_config = "notebooks_grpc_service_config.json",
187+
)
188+
189+
# Open Source Packages
190+
py_gapic_assembly_pkg(
191+
name = "notebooks-v1-py",
192+
deps = [
193+
":notebooks_py_gapic",
194+
],
195+
)
196+
197+
##############################################################################
198+
# PHP
199+
##############################################################################
200+
load(
201+
"@com_google_googleapis_imports//:imports.bzl",
202+
"php_gapic_assembly_pkg",
203+
"php_gapic_library",
204+
"php_grpc_library",
205+
"php_proto_library",
206+
)
207+
208+
php_proto_library(
209+
name = "notebooks_php_proto",
210+
deps = [":notebooks_proto"],
211+
)
212+
213+
php_grpc_library(
214+
name = "notebooks_php_grpc",
215+
srcs = [":notebooks_proto"],
216+
deps = [":notebooks_php_proto"],
217+
)
218+
219+
php_gapic_library(
220+
name = "notebooks_php_gapic",
221+
srcs = [":notebooks_proto_with_info"],
222+
grpc_service_config = "notebooks_grpc_service_config.json",
223+
service_yaml = "notebooks_v1.yaml",
224+
deps = [
225+
":notebooks_php_grpc",
226+
":notebooks_php_proto",
227+
],
228+
)
229+
230+
# Open Source Packages
231+
php_gapic_assembly_pkg(
232+
name = "google-cloud-notebooks-v1-php",
233+
deps = [
234+
":notebooks_php_gapic",
235+
":notebooks_php_grpc",
236+
":notebooks_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 = "notebooks_nodejs_gapic",
251+
package_name = "@google-cloud/notebooks",
252+
src = ":notebooks_proto_with_info",
253+
extra_protoc_parameters = ["metadata"],
254+
grpc_service_config = "notebooks_grpc_service_config.json",
255+
package = "google.cloud.notebooks.v1",
256+
service_yaml = "notebooks_v1.yaml",
257+
deps = [],
258+
)
259+
260+
nodejs_gapic_assembly_pkg(
261+
name = "notebooks-v1-nodejs",
262+
deps = [
263+
":notebooks_nodejs_gapic",
264+
":notebooks_proto",
265+
],
266+
)
267+
268+
##############################################################################
269+
# Ruby
270+
##############################################################################
271+
load(
272+
"@com_google_googleapis_imports//:imports.bzl",
273+
"ruby_gapic_assembly_pkg",
274+
"ruby_cloud_gapic_library",
275+
"ruby_grpc_library",
276+
"ruby_proto_library",
277+
)
278+
279+
ruby_proto_library(
280+
name = "notebooks_ruby_proto",
281+
deps = [":notebooks_proto"],
282+
)
283+
284+
ruby_grpc_library(
285+
name = "notebooks_ruby_grpc",
286+
srcs = [":notebooks_proto"],
287+
deps = [":notebooks_ruby_proto"],
288+
)
289+
290+
ruby_cloud_gapic_library(
291+
name = "notebooks_ruby_gapic",
292+
srcs = [":notebooks_proto_with_info"],
293+
extra_protoc_parameters = [
294+
"ruby-cloud-gem-name=google-cloud-notebooks-v1",
295+
],
296+
grpc_service_config = "notebooks_grpc_service_config.json",
297+
deps = [
298+
":notebooks_ruby_grpc",
299+
":notebooks_ruby_proto",
300+
],
301+
)
302+
303+
# Open Source Packages
304+
ruby_gapic_assembly_pkg(
305+
name = "google-cloud-notebooks-v1-ruby",
306+
deps = [
307+
":notebooks_ruby_gapic",
308+
":notebooks_ruby_grpc",
309+
":notebooks_ruby_proto",
310+
],
311+
)
312+
313+
##############################################################################
314+
# C#
315+
##############################################################################
316+
load(
317+
"@com_google_googleapis_imports//:imports.bzl",
318+
"csharp_gapic_assembly_pkg",
319+
"csharp_gapic_library",
320+
"csharp_grpc_library",
321+
"csharp_proto_library",
322+
)
323+
324+
csharp_proto_library(
325+
name = "notebooks_csharp_proto",
326+
deps = [":notebooks_proto"],
327+
)
328+
329+
csharp_grpc_library(
330+
name = "notebooks_csharp_grpc",
331+
srcs = [":notebooks_proto"],
332+
deps = [":notebooks_csharp_proto"],
333+
)
334+
335+
csharp_gapic_library(
336+
name = "notebooks_csharp_gapic",
337+
srcs = [":notebooks_proto_with_info"],
338+
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
339+
grpc_service_config = "notebooks_grpc_service_config.json",
340+
deps = [
341+
":notebooks_csharp_grpc",
342+
":notebooks_csharp_proto",
343+
],
344+
)
345+
346+
# Open Source Packages
347+
csharp_gapic_assembly_pkg(
348+
name = "google-cloud-notebooks-v1-csharp",
349+
deps = [
350+
":notebooks_csharp_gapic",
351+
":notebooks_csharp_grpc",
352+
":notebooks_csharp_proto",
353+
],
354+
)
355+
356+
##############################################################################
357+
# C++
358+
##############################################################################
359+
# Put your C++ rules here

0 commit comments

Comments
 (0)