xref: /aosp_15_r20/external/googleapis/google/cloud/notebooks/v1beta1/BUILD.bazel (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
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.
13package(default_visibility = ["//visibility:public"])
14
15##############################################################################
16# Common
17##############################################################################
18load("@rules_proto//proto:defs.bzl", "proto_library")
19load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
20
21proto_library(
22    name = "notebooks_proto",
23    srcs = [
24        "environment.proto",
25        "instance.proto",
26        "service.proto",
27    ],
28    deps = [
29        "//google/api:annotations_proto",
30        "//google/api:client_proto",
31        "//google/api:field_behavior_proto",
32        "//google/api:resource_proto",
33        "//google/longrunning:operations_proto",
34        "@com_google_protobuf//:timestamp_proto",
35    ],
36)
37
38proto_library_with_info(
39    name = "notebooks_proto_with_info",
40    deps = [
41        ":notebooks_proto",
42        "//google/cloud:common_resources_proto",
43        "//google/cloud/location:location_proto",
44        "//google/iam/v1:iam_policy_proto",
45    ],
46)
47
48##############################################################################
49# Java
50##############################################################################
51load(
52    "@com_google_googleapis_imports//:imports.bzl",
53    "java_gapic_assembly_gradle_pkg",
54    "java_gapic_library",
55    "java_gapic_test",
56    "java_grpc_library",
57    "java_proto_library",
58)
59
60java_proto_library(
61    name = "notebooks_java_proto",
62    deps = [":notebooks_proto"],
63)
64
65java_grpc_library(
66    name = "notebooks_java_grpc",
67    srcs = [":notebooks_proto"],
68    deps = [":notebooks_java_proto"],
69)
70
71java_gapic_library(
72    name = "notebooks_java_gapic",
73    srcs = [":notebooks_proto_with_info"],
74    gapic_yaml = None,
75    grpc_service_config = "notebooks_grpc_service_config.json",
76    rest_numeric_enums = True,
77    service_yaml = "notebooks_v1beta1.yaml",
78    test_deps = [
79        "//google/cloud/location:location_java_grpc",
80        "//google/iam/v1:iam_java_grpc",
81        ":notebooks_java_grpc",
82    ],
83    transport = "grpc",
84    deps = [
85        ":notebooks_java_proto",
86        "//google/api:api_java_proto",
87        "//google/cloud/location:location_java_proto",
88        "//google/iam/v1:iam_java_proto",
89    ],
90)
91
92java_gapic_test(
93    name = "notebooks_java_gapic_test_suite",
94    test_classes = [
95        "com.google.cloud.notebooks.v1beta1.NotebookServiceClientTest",
96    ],
97    runtime_deps = [":notebooks_java_gapic_test"],
98)
99
100# Open Source Packages
101java_gapic_assembly_gradle_pkg(
102    name = "google-cloud-notebooks-v1beta1-java",
103    include_samples = True,
104    transport = "grpc",
105    deps = [
106        ":notebooks_java_gapic",
107        ":notebooks_java_grpc",
108        ":notebooks_java_proto",
109        ":notebooks_proto",
110    ],
111)
112
113##############################################################################
114# Go
115##############################################################################
116load(
117    "@com_google_googleapis_imports//:imports.bzl",
118    "go_gapic_assembly_pkg",
119    "go_gapic_library",
120    "go_proto_library",
121)
122
123go_proto_library(
124    name = "notebooks_go_proto",
125    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
126    importpath = "cloud.google.com/go/notebooks/apiv1beta1/notebookspb",
127    protos = [":notebooks_proto"],
128    deps = [
129        "//google/api:annotations_go_proto",
130        "//google/longrunning:longrunning_go_proto",
131    ],
132)
133
134go_gapic_library(
135    name = "notebooks_go_gapic",
136    srcs = [":notebooks_proto_with_info"],
137    grpc_service_config = "notebooks_grpc_service_config.json",
138    importpath = "cloud.google.com/go/notebooks/apiv1beta1;notebooks",
139    metadata = True,
140    release_level = "beta",
141    rest_numeric_enums = True,
142    service_yaml = "notebooks_v1beta1.yaml",
143    transport = "grpc+rest",
144    deps = [
145        ":notebooks_go_proto",
146        "//google/cloud/location:location_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# Open Source Packages
155go_gapic_assembly_pkg(
156    name = "gapi-cloud-notebooks-v1beta1-go",
157    deps = [
158        ":notebooks_go_gapic",
159        ":notebooks_go_gapic_srcjar-metadata.srcjar",
160        ":notebooks_go_gapic_srcjar-snippets.srcjar",
161        ":notebooks_go_gapic_srcjar-test.srcjar",
162        ":notebooks_go_proto",
163    ],
164)
165
166##############################################################################
167# Python
168##############################################################################
169load(
170    "@com_google_googleapis_imports//:imports.bzl",
171    "py_gapic_assembly_pkg",
172    "py_gapic_library",
173    "py_test",
174)
175
176py_gapic_library(
177    name = "notebooks_py_gapic",
178    srcs = [":notebooks_proto"],
179    grpc_service_config = "notebooks_grpc_service_config.json",
180    rest_numeric_enums = True,
181    service_yaml = "notebooks_v1beta1.yaml",
182    transport = "grpc+rest",
183    deps = [
184        "//google/iam/v1:iam_policy_py_proto",
185    ],
186)
187
188py_test(
189    name = "notebooks_py_gapic_test",
190    srcs = [
191        "notebooks_py_gapic_pytest.py",
192        "notebooks_py_gapic_test.py",
193    ],
194    legacy_create_init = False,
195    deps = [":notebooks_py_gapic"],
196)
197
198# Open Source Packages
199py_gapic_assembly_pkg(
200    name = "notebooks-v1beta1-py",
201    deps = [
202        ":notebooks_py_gapic",
203    ],
204)
205
206##############################################################################
207# PHP
208##############################################################################
209load(
210    "@com_google_googleapis_imports//:imports.bzl",
211    "php_gapic_assembly_pkg",
212    "php_gapic_library",
213    "php_proto_library",
214)
215
216php_proto_library(
217    name = "notebooks_php_proto",
218    deps = [":notebooks_proto"],
219)
220
221php_gapic_library(
222    name = "notebooks_php_gapic",
223    srcs = [":notebooks_proto_with_info"],
224    grpc_service_config = "notebooks_grpc_service_config.json",
225    migration_mode = "PRE_MIGRATION_SURFACE_ONLY",
226    rest_numeric_enums = True,
227    service_yaml = "notebooks_v1beta1.yaml",
228    transport = "grpc+rest",
229    deps = [
230        ":notebooks_php_proto",
231    ],
232)
233
234# Open Source Packages
235php_gapic_assembly_pkg(
236    name = "google-cloud-notebooks-v1beta1-php",
237    deps = [
238        ":notebooks_php_gapic",
239        ":notebooks_php_proto",
240    ],
241)
242
243##############################################################################
244# Node.js
245##############################################################################
246load(
247    "@com_google_googleapis_imports//:imports.bzl",
248    "nodejs_gapic_assembly_pkg",
249    "nodejs_gapic_library",
250)
251
252nodejs_gapic_library(
253    name = "notebooks_nodejs_gapic",
254    package_name = "@google-cloud/notebooks",
255    src = ":notebooks_proto_with_info",
256    extra_protoc_parameters = ["metadata"],
257    grpc_service_config = "notebooks_grpc_service_config.json",
258    package = "google.cloud.notebooks.v1beta1",
259    rest_numeric_enums = True,
260    service_yaml = "notebooks_v1beta1.yaml",
261    transport = "grpc+rest",
262    deps = [],
263)
264
265nodejs_gapic_assembly_pkg(
266    name = "notebooks-v1beta1-nodejs",
267    deps = [
268        ":notebooks_nodejs_gapic",
269        ":notebooks_proto",
270    ],
271)
272
273##############################################################################
274# Ruby
275##############################################################################
276load(
277    "@com_google_googleapis_imports//:imports.bzl",
278    "ruby_cloud_gapic_library",
279    "ruby_gapic_assembly_pkg",
280    "ruby_grpc_library",
281    "ruby_proto_library",
282)
283
284ruby_proto_library(
285    name = "notebooks_ruby_proto",
286    deps = [":notebooks_proto"],
287)
288
289ruby_grpc_library(
290    name = "notebooks_ruby_grpc",
291    srcs = [":notebooks_proto"],
292    deps = [":notebooks_ruby_proto"],
293)
294
295ruby_cloud_gapic_library(
296    name = "notebooks_ruby_gapic",
297    srcs = [":notebooks_proto_with_info"],
298    extra_protoc_parameters = [
299        "ruby-cloud-api-id=notebooks.googleapis.com",
300        "ruby-cloud-api-shortname=notebooks",
301        "ruby-cloud-env-prefix=NOTEBOOKS",
302        "ruby-cloud-gem-name=google-cloud-notebooks-v1beta1",
303        "ruby-cloud-product-url=https://cloud.google.com/ai-platform-notebooks",
304    ],
305    grpc_service_config = "notebooks_grpc_service_config.json",
306    rest_numeric_enums = True,
307    ruby_cloud_description = "AI Platform Notebooks makes it easy to manage JupyterLab instances through a protected, publicly available notebook instance URL. A JupyterLab instance is a Deep Learning virtual machine instance with the latest machine learning and data science libraries pre-installed.",
308    ruby_cloud_title = "AI Platform Notebooks V1beta1",
309    service_yaml = "notebooks_v1beta1.yaml",
310    transport = "grpc",
311    deps = [
312        ":notebooks_ruby_grpc",
313        ":notebooks_ruby_proto",
314    ],
315)
316
317# Open Source Packages
318ruby_gapic_assembly_pkg(
319    name = "google-cloud-notebooks-v1beta1-ruby",
320    deps = [
321        ":notebooks_ruby_gapic",
322        ":notebooks_ruby_grpc",
323        ":notebooks_ruby_proto",
324    ],
325)
326
327##############################################################################
328# C#
329##############################################################################
330load(
331    "@com_google_googleapis_imports//:imports.bzl",
332    "csharp_gapic_assembly_pkg",
333    "csharp_gapic_library",
334    "csharp_grpc_library",
335    "csharp_proto_library",
336)
337
338csharp_proto_library(
339    name = "notebooks_csharp_proto",
340    deps = [":notebooks_proto"],
341)
342
343csharp_grpc_library(
344    name = "notebooks_csharp_grpc",
345    srcs = [":notebooks_proto"],
346    deps = [":notebooks_csharp_proto"],
347)
348
349csharp_gapic_library(
350    name = "notebooks_csharp_gapic",
351    srcs = [":notebooks_proto_with_info"],
352    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
353    grpc_service_config = "notebooks_grpc_service_config.json",
354    rest_numeric_enums = True,
355    service_yaml = "notebooks_v1beta1.yaml",
356    transport = "grpc",
357    deps = [
358        ":notebooks_csharp_grpc",
359        ":notebooks_csharp_proto",
360    ],
361)
362
363# Open Source Packages
364csharp_gapic_assembly_pkg(
365    name = "google-cloud-notebooks-v1beta1-csharp",
366    deps = [
367        ":notebooks_csharp_gapic",
368        ":notebooks_csharp_grpc",
369        ":notebooks_csharp_proto",
370    ],
371)
372
373##############################################################################
374# C++
375##############################################################################
376load(
377    "@com_google_googleapis_imports//:imports.bzl",
378    "cc_grpc_library",
379    "cc_proto_library",
380)
381
382cc_proto_library(
383    name = "notebooks_cc_proto",
384    deps = [":notebooks_proto"],
385)
386
387cc_grpc_library(
388    name = "notebooks_cc_grpc",
389    srcs = [":notebooks_proto"],
390    grpc_only = True,
391    deps = [":notebooks_cc_proto"],
392)
393