Skip to content

Commit a6fb279

Browse files
Google APIscopybara-github
authored andcommitted
feat: added client library for Iceberg Rest Catalog
Clients can now manage Iceberg Rest Catalogs. PiperOrigin-RevId: 803210504
1 parent 9412ec4 commit a6fb279

4 files changed

Lines changed: 1267 additions & 0 deletions

File tree

Lines changed: 389 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,389 @@
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+
# buildifier: disable=load-on-top
13+
14+
# This is an API workspace, having public visibility by default makes perfect sense.
15+
package(default_visibility = ["//visibility:public"])
16+
17+
##############################################################################
18+
# Common
19+
##############################################################################
20+
# buildifier: disable=same-origin-load
21+
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
22+
load("@rules_proto//proto:defs.bzl", "proto_library")
23+
24+
proto_library(
25+
name = "biglake_proto",
26+
srcs = [
27+
"iceberg_rest_catalog.proto",
28+
],
29+
deps = [
30+
"//google/api:annotations_proto",
31+
"//google/api:client_proto",
32+
"//google/api:field_behavior_proto",
33+
"//google/api:httpbody_proto",
34+
"//google/api:resource_proto",
35+
"@com_google_protobuf//:empty_proto",
36+
"@com_google_protobuf//:field_mask_proto",
37+
"@com_google_protobuf//:struct_proto",
38+
"@com_google_protobuf//:timestamp_proto",
39+
],
40+
)
41+
42+
proto_library_with_info(
43+
name = "biglake_proto_with_info",
44+
deps = [
45+
":biglake_proto",
46+
"//google/cloud:common_resources_proto",
47+
],
48+
)
49+
50+
##############################################################################
51+
# Java
52+
##############################################################################
53+
# buildifier: disable=same-origin-load
54+
load(
55+
"@com_google_googleapis_imports//:imports.bzl",
56+
"java_gapic_assembly_gradle_pkg",
57+
"java_gapic_library",
58+
"java_gapic_test",
59+
"java_grpc_library",
60+
"java_proto_library",
61+
)
62+
63+
java_proto_library(
64+
name = "biglake_java_proto",
65+
deps = [":biglake_proto"],
66+
)
67+
68+
java_grpc_library(
69+
name = "biglake_java_grpc",
70+
srcs = [":biglake_proto"],
71+
deps = [":biglake_java_proto"],
72+
)
73+
74+
java_gapic_library(
75+
name = "biglake_java_gapic",
76+
srcs = [":biglake_proto_with_info"],
77+
gapic_yaml = None,
78+
grpc_service_config = "biglake_iceberg_v1_grpc_service_config.json",
79+
rest_numeric_enums = True,
80+
service_yaml = "biglake_v1.yaml",
81+
test_deps = [
82+
":biglake_java_grpc",
83+
],
84+
transport = "grpc+rest",
85+
deps = [
86+
":biglake_java_proto",
87+
"//google/api:api_java_proto",
88+
],
89+
)
90+
91+
java_gapic_test(
92+
name = "biglake_java_gapic_test_suite",
93+
test_classes = [
94+
"com.google.cloud.biglake.v1.IcebergCatalogServiceClientHttpJsonTest",
95+
"com.google.cloud.biglake.v1.IcebergCatalogServiceClientTest",
96+
],
97+
runtime_deps = [":biglake_java_gapic_test"],
98+
)
99+
100+
# Open Source Packages
101+
java_gapic_assembly_gradle_pkg(
102+
name = "google-cloud-biglake-v1-java",
103+
transport = "grpc+rest",
104+
deps = [
105+
":biglake_java_gapic",
106+
":biglake_java_grpc",
107+
":biglake_java_proto",
108+
":biglake_proto",
109+
],
110+
include_samples = True,
111+
)
112+
113+
##############################################################################
114+
# Go
115+
##############################################################################
116+
# buildifier: disable=same-origin-load
117+
load(
118+
"@com_google_googleapis_imports//:imports.bzl",
119+
"go_gapic_assembly_pkg",
120+
"go_gapic_library",
121+
"go_proto_library",
122+
)
123+
124+
go_proto_library(
125+
name = "biglake_go_proto",
126+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
127+
importpath = "cloud.google.com/go/biglake/apiv1/biglakepb",
128+
protos = [":biglake_proto"],
129+
deps = [
130+
"//google/api:annotations_go_proto",
131+
"//google/api:httpbody_go_proto",
132+
],
133+
)
134+
135+
go_gapic_library(
136+
name = "biglake_go_gapic",
137+
srcs = [":biglake_proto_with_info"],
138+
grpc_service_config = "biglake_iceberg_v1_grpc_service_config.json",
139+
importpath = "cloud.google.com/go/biglake/apiv1;biglake",
140+
metadata = True,
141+
release_level = "beta",
142+
rest_numeric_enums = True,
143+
service_yaml = "biglake_v1.yaml",
144+
transport = "grpc+rest",
145+
deps = [
146+
":biglake_go_proto",
147+
"//google/api:httpbody_go_proto",
148+
],
149+
)
150+
151+
# Open Source Packages
152+
go_gapic_assembly_pkg(
153+
name = "gapi-cloud-biglake-v1-go",
154+
deps = [
155+
":biglake_go_gapic",
156+
":biglake_go_gapic_srcjar-test.srcjar",
157+
":biglake_go_gapic_srcjar-metadata.srcjar",
158+
":biglake_go_gapic_srcjar-snippets.srcjar",
159+
":biglake_go_proto",
160+
],
161+
)
162+
163+
##############################################################################
164+
# Python
165+
##############################################################################
166+
# buildifier: disable=same-origin-load
167+
load(
168+
"@com_google_googleapis_imports//:imports.bzl",
169+
"py_gapic_assembly_pkg",
170+
"py_gapic_library",
171+
"py_test",
172+
)
173+
174+
py_gapic_library(
175+
name = "biglake_py_gapic",
176+
srcs = [":biglake_proto"],
177+
grpc_service_config = "biglake_iceberg_v1_grpc_service_config.json",
178+
rest_numeric_enums = True,
179+
service_yaml = "biglake_v1.yaml",
180+
transport = "grpc+rest",
181+
deps = [
182+
],
183+
)
184+
185+
py_test(
186+
name = "biglake_py_gapic_test",
187+
srcs = [
188+
"biglake_py_gapic_pytest.py",
189+
"biglake_py_gapic_test.py",
190+
],
191+
legacy_create_init = False,
192+
deps = [":biglake_py_gapic"],
193+
)
194+
195+
# Open Source Packages
196+
py_gapic_assembly_pkg(
197+
name = "biglake-v1-py",
198+
deps = [
199+
":biglake_py_gapic",
200+
],
201+
)
202+
203+
##############################################################################
204+
# PHP
205+
##############################################################################
206+
# buildifier: disable=same-origin-load
207+
load(
208+
"@com_google_googleapis_imports//:imports.bzl",
209+
"php_gapic_assembly_pkg",
210+
"php_gapic_library",
211+
"php_proto_library",
212+
)
213+
214+
php_proto_library(
215+
name = "biglake_php_proto",
216+
deps = [":biglake_proto"],
217+
)
218+
219+
php_gapic_library(
220+
name = "biglake_php_gapic",
221+
srcs = [":biglake_proto_with_info"],
222+
grpc_service_config = "biglake_iceberg_v1_grpc_service_config.json",
223+
rest_numeric_enums = True,
224+
migration_mode = "NEW_SURFACE_ONLY",
225+
service_yaml = "biglake_v1.yaml",
226+
transport = "grpc+rest",
227+
deps = [
228+
":biglake_php_proto",
229+
],
230+
)
231+
232+
# Open Source Packages
233+
php_gapic_assembly_pkg(
234+
name = "google-cloud-biglake-v1-php",
235+
deps = [
236+
":biglake_php_gapic",
237+
":biglake_php_proto",
238+
],
239+
)
240+
241+
##############################################################################
242+
# Node.js
243+
##############################################################################
244+
# buildifier: disable=same-origin-load
245+
load(
246+
"@com_google_googleapis_imports//:imports.bzl",
247+
"nodejs_gapic_assembly_pkg",
248+
"nodejs_gapic_library",
249+
)
250+
251+
nodejs_gapic_library(
252+
name = "biglake_nodejs_gapic",
253+
package_name = "@google-cloud/biglake",
254+
src = ":biglake_proto_with_info",
255+
extra_protoc_parameters = ["metadata"],
256+
grpc_service_config = "biglake_iceberg_v1_grpc_service_config.json",
257+
package = "google.cloud.biglake.v1",
258+
rest_numeric_enums = True,
259+
service_yaml = "biglake_v1.yaml",
260+
transport = "grpc+rest",
261+
deps = [],
262+
)
263+
264+
nodejs_gapic_assembly_pkg(
265+
name = "biglake-v1-nodejs",
266+
deps = [
267+
":biglake_nodejs_gapic",
268+
":biglake_proto",
269+
],
270+
)
271+
272+
##############################################################################
273+
# Ruby
274+
##############################################################################
275+
# buildifier: disable=same-origin-load
276+
load(
277+
"@com_google_googleapis_imports//:imports.bzl",
278+
"ruby_gapic_assembly_pkg",
279+
"ruby_cloud_gapic_library",
280+
"ruby_grpc_library",
281+
"ruby_proto_library",
282+
)
283+
284+
ruby_proto_library(
285+
name = "biglake_ruby_proto",
286+
deps = [":biglake_proto"],
287+
)
288+
289+
ruby_grpc_library(
290+
name = "biglake_ruby_grpc",
291+
srcs = [":biglake_proto"],
292+
deps = [":biglake_ruby_proto"],
293+
)
294+
295+
ruby_cloud_gapic_library(
296+
name = "biglake_ruby_gapic",
297+
srcs = [":biglake_proto_with_info"],
298+
extra_protoc_parameters = [
299+
"ruby-cloud-gem-name=google-cloud-biglake-v1",
300+
],
301+
grpc_service_config = "biglake_iceberg_v1_grpc_service_config.json",
302+
rest_numeric_enums = True,
303+
service_yaml = "biglake_v1.yaml",
304+
transport = "grpc+rest",
305+
deps = [
306+
":biglake_ruby_grpc",
307+
":biglake_ruby_proto",
308+
],
309+
)
310+
311+
# Open Source Packages
312+
ruby_gapic_assembly_pkg(
313+
name = "google-cloud-biglake-v1-ruby",
314+
deps = [
315+
":biglake_ruby_gapic",
316+
":biglake_ruby_grpc",
317+
":biglake_ruby_proto",
318+
],
319+
)
320+
321+
##############################################################################
322+
# C#
323+
##############################################################################
324+
# buildifier: disable=same-origin-load
325+
load(
326+
"@com_google_googleapis_imports//:imports.bzl",
327+
"csharp_gapic_assembly_pkg",
328+
"csharp_gapic_library",
329+
"csharp_grpc_library",
330+
"csharp_proto_library",
331+
)
332+
333+
csharp_proto_library(
334+
name = "biglake_csharp_proto",
335+
extra_opts = [],
336+
deps = [":biglake_proto"],
337+
)
338+
339+
csharp_grpc_library(
340+
name = "biglake_csharp_grpc",
341+
srcs = [":biglake_proto"],
342+
deps = [":biglake_csharp_proto"],
343+
)
344+
345+
csharp_gapic_library(
346+
name = "biglake_csharp_gapic",
347+
srcs = [":biglake_proto_with_info"],
348+
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
349+
grpc_service_config = "biglake_iceberg_v1_grpc_service_config.json",
350+
rest_numeric_enums = True,
351+
service_yaml = "biglake_v1.yaml",
352+
transport = "grpc+rest",
353+
deps = [
354+
":biglake_csharp_grpc",
355+
":biglake_csharp_proto",
356+
],
357+
)
358+
359+
# Open Source Packages
360+
csharp_gapic_assembly_pkg(
361+
name = "google-cloud-biglake-v1-csharp",
362+
deps = [
363+
":biglake_csharp_gapic",
364+
":biglake_csharp_grpc",
365+
":biglake_csharp_proto",
366+
],
367+
)
368+
369+
##############################################################################
370+
# C++
371+
##############################################################################
372+
# buildifier: disable=same-origin-load
373+
load(
374+
"@com_google_googleapis_imports//:imports.bzl",
375+
"cc_grpc_library",
376+
"cc_proto_library",
377+
)
378+
379+
cc_proto_library(
380+
name = "biglake_cc_proto",
381+
deps = [":biglake_proto"],
382+
)
383+
384+
cc_grpc_library(
385+
name = "biglake_cc_grpc",
386+
srcs = [":biglake_proto"],
387+
grpc_only = True,
388+
deps = [":biglake_cc_proto"],
389+
)

0 commit comments

Comments
 (0)