xref: /aosp_15_r20/external/googleapis/google/cloud/apigeeconnect/v1/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 = "apigeeconnect_proto",
23    srcs = [
24        "connection.proto",
25        "tether.proto",
26    ],
27    deps = [
28        "//google/api:annotations_proto",
29        "//google/api:client_proto",
30        "//google/api:field_behavior_proto",
31        "//google/api:resource_proto",
32        "//google/rpc:status_proto",
33        "@com_google_protobuf//:duration_proto",
34    ],
35)
36
37proto_library_with_info(
38    name = "apigeeconnect_proto_with_info",
39    deps = [
40        ":apigeeconnect_proto",
41        "//google/cloud:common_resources_proto",
42    ],
43)
44
45##############################################################################
46# Java
47##############################################################################
48load(
49    "@com_google_googleapis_imports//:imports.bzl",
50    "java_gapic_assembly_gradle_pkg",
51    "java_gapic_library",
52    "java_gapic_test",
53    "java_grpc_library",
54    "java_proto_library",
55)
56
57java_proto_library(
58    name = "apigeeconnect_java_proto",
59    deps = [":apigeeconnect_proto"],
60)
61
62java_grpc_library(
63    name = "apigeeconnect_java_grpc",
64    srcs = [":apigeeconnect_proto"],
65    deps = [":apigeeconnect_java_proto"],
66)
67
68java_gapic_library(
69    name = "apigeeconnect_java_gapic",
70    srcs = [":apigeeconnect_proto_with_info"],
71    grpc_service_config = "connection_grpc_service_config.json",
72    rest_numeric_enums = True,
73    service_yaml = "apigeeconnect_v1.yaml",
74    test_deps = [
75        ":apigeeconnect_java_grpc",
76    ],
77    transport = "grpc+rest",
78    deps = [
79        ":apigeeconnect_java_proto",
80    ],
81)
82
83java_gapic_test(
84    name = "apigeeconnect_java_gapic_test_suite",
85    test_classes = [
86        "com.google.cloud.apigeeconnect.v1.ConnectionServiceClientHttpJsonTest",
87        "com.google.cloud.apigeeconnect.v1.ConnectionServiceClientTest",
88        "com.google.cloud.apigeeconnect.v1.TetherClientTest",
89    ],
90    runtime_deps = [":apigeeconnect_java_gapic_test"],
91)
92
93# Open Source Packages
94java_gapic_assembly_gradle_pkg(
95    name = "google-cloud-apigeeconnect-v1-java",
96    include_samples = True,
97    transport = "grpc+rest",
98    deps = [
99        ":apigeeconnect_java_gapic",
100        ":apigeeconnect_java_grpc",
101        ":apigeeconnect_java_proto",
102        ":apigeeconnect_proto",
103    ],
104)
105
106##############################################################################
107# Go
108##############################################################################
109load(
110    "@com_google_googleapis_imports//:imports.bzl",
111    "go_gapic_assembly_pkg",
112    "go_gapic_library",
113    "go_proto_library",
114)
115
116go_proto_library(
117    name = "apigeeconnect_go_proto",
118    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
119    importpath = "cloud.google.com/go/apigeeconnect/apiv1/apigeeconnectpb",
120    protos = [":apigeeconnect_proto"],
121    deps = [
122        "//google/api:annotations_go_proto",
123        "//google/rpc:status_go_proto",
124    ],
125)
126
127go_gapic_library(
128    name = "apigeeconnect_go_gapic",
129    srcs = [":apigeeconnect_proto_with_info"],
130    grpc_service_config = "connection_grpc_service_config.json",
131    importpath = "cloud.google.com/go/apigeeconnect/apiv1;apigeeconnect",
132    metadata = True,
133    release_level = "ga",
134    rest_numeric_enums = True,
135    service_yaml = "apigeeconnect_v1.yaml",
136    deps = [
137        ":apigeeconnect_go_proto",
138        "@io_bazel_rules_go//proto/wkt:duration_go_proto",
139    ],
140)
141
142# Open Source Packages
143go_gapic_assembly_pkg(
144    name = "gapi-cloud-apigeeconnect-v1-go",
145    deps = [
146        ":apigeeconnect_go_gapic",
147        ":apigeeconnect_go_gapic_srcjar-metadata.srcjar",
148        ":apigeeconnect_go_gapic_srcjar-snippets.srcjar",
149        ":apigeeconnect_go_gapic_srcjar-test.srcjar",
150        ":apigeeconnect_go_proto",
151    ],
152)
153
154##############################################################################
155# Python
156##############################################################################
157load(
158    "@com_google_googleapis_imports//:imports.bzl",
159    "py_gapic_assembly_pkg",
160    "py_gapic_library",
161    "py_test",
162)
163
164py_gapic_library(
165    name = "apigeeconnect_py_gapic",
166    srcs = [":apigeeconnect_proto"],
167    grpc_service_config = "connection_grpc_service_config.json",
168    opt_args = ["warehouse-package-name=google-cloud-apigee-connect"],
169    rest_numeric_enums = True,
170    service_yaml = "apigeeconnect_v1.yaml",
171    transport = "grpc",
172)
173
174py_test(
175    name = "apigeeconnect_py_gapic_test",
176    srcs = [
177        "apigeeconnect_py_gapic_pytest.py",
178        "apigeeconnect_py_gapic_test.py",
179    ],
180    legacy_create_init = False,
181    deps = [":apigeeconnect_py_gapic"],
182)
183
184# Open Source Packages
185py_gapic_assembly_pkg(
186    name = "apigeeconnect-v1-py",
187    deps = [
188        ":apigeeconnect_py_gapic",
189    ],
190)
191
192##############################################################################
193# PHP
194##############################################################################
195load(
196    "@com_google_googleapis_imports//:imports.bzl",
197    "php_gapic_assembly_pkg",
198    "php_gapic_library",
199    "php_proto_library",
200)
201
202php_proto_library(
203    name = "apigeeconnect_php_proto",
204    deps = [":apigeeconnect_proto"],
205)
206
207php_gapic_library(
208    name = "apigeeconnect_php_gapic",
209    srcs = [":apigeeconnect_proto_with_info"],
210    grpc_service_config = "connection_grpc_service_config.json",
211    migration_mode = "MIGRATING",
212    rest_numeric_enums = True,
213    service_yaml = "apigeeconnect_v1.yaml",
214    transport = "grpc+rest",
215    deps = [":apigeeconnect_php_proto"],
216)
217
218# Open Source Packages
219php_gapic_assembly_pkg(
220    name = "google-cloud-apigeeconnect-v1-php",
221    deps = [
222        ":apigeeconnect_php_gapic",
223        ":apigeeconnect_php_proto",
224    ],
225)
226
227##############################################################################
228# Node.js
229##############################################################################
230load(
231    "@com_google_googleapis_imports//:imports.bzl",
232    "nodejs_gapic_assembly_pkg",
233    "nodejs_gapic_library",
234)
235
236nodejs_gapic_library(
237    name = "apigeeconnect_nodejs_gapic",
238    package_name = "@google-cloud/apigee-connect",
239    src = ":apigeeconnect_proto_with_info",
240    extra_protoc_parameters = ["metadata"],
241    grpc_service_config = "connection_grpc_service_config.json",
242    package = "google.cloud.apigeeconnect.v1",
243    rest_numeric_enums = True,
244    service_yaml = "apigeeconnect_v1.yaml",
245    transport = "grpc+rest",
246    deps = [],
247)
248
249nodejs_gapic_assembly_pkg(
250    name = "apigeeconnect-v1-nodejs",
251    deps = [
252        ":apigeeconnect_nodejs_gapic",
253        ":apigeeconnect_proto",
254    ],
255)
256
257##############################################################################
258# Ruby
259##############################################################################
260load(
261    "@com_google_googleapis_imports//:imports.bzl",
262    "ruby_cloud_gapic_library",
263    "ruby_gapic_assembly_pkg",
264    "ruby_grpc_library",
265    "ruby_proto_library",
266)
267
268ruby_proto_library(
269    name = "apigeeconnect_ruby_proto",
270    deps = [":apigeeconnect_proto"],
271)
272
273ruby_grpc_library(
274    name = "apigeeconnect_ruby_grpc",
275    srcs = [":apigeeconnect_proto"],
276    deps = [":apigeeconnect_ruby_proto"],
277)
278
279ruby_cloud_gapic_library(
280    name = "apigeeconnect_ruby_gapic",
281    srcs = [":apigeeconnect_proto_with_info"],
282    extra_protoc_parameters = [
283        "ruby-cloud-gem-name=google-cloud-apigee_connect-v1",
284        "ruby-cloud-env-prefix=APIGEE_CONNECT",
285        "ruby-cloud-product-url=https://cloud.google.com/apigee/docs/hybrid/v1.4/apigee-connect",
286        "ruby-cloud-api-id=apigeeconnect.googleapis.com",
287        "ruby-cloud-api-shortname=apigeeconnect",
288    ],
289    grpc_service_config = "connection_grpc_service_config.json",
290    rest_numeric_enums = True,
291    ruby_cloud_description = "Apigee Connect allows the Apigee hybrid management plane to connect securely to the MART service in the runtime plane without requiring you to expose the MART endpoint on the internet. If you use Apigee Connect, you do not need to configure the MART ingress gateway with a host alias and an authorized DNS certificate.",
292    ruby_cloud_title = "Apigee Connect V1",
293    service_yaml = "apigeeconnect_v1.yaml",
294    transport = "grpc+rest",
295    deps = [
296        ":apigeeconnect_ruby_grpc",
297        ":apigeeconnect_ruby_proto",
298    ],
299)
300
301# Open Source Packages
302ruby_gapic_assembly_pkg(
303    name = "google-cloud-apigeeconnect-v1-ruby",
304    deps = [
305        ":apigeeconnect_ruby_gapic",
306        ":apigeeconnect_ruby_grpc",
307        ":apigeeconnect_ruby_proto",
308    ],
309)
310
311##############################################################################
312# C#
313##############################################################################
314load(
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
322csharp_proto_library(
323    name = "apigeeconnect_csharp_proto",
324    deps = [":apigeeconnect_proto"],
325)
326
327csharp_grpc_library(
328    name = "apigeeconnect_csharp_grpc",
329    srcs = [":apigeeconnect_proto"],
330    deps = [":apigeeconnect_csharp_proto"],
331)
332
333csharp_gapic_library(
334    name = "apigeeconnect_csharp_gapic",
335    srcs = [":apigeeconnect_proto_with_info"],
336    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
337    grpc_service_config = "connection_grpc_service_config.json",
338    rest_numeric_enums = True,
339    service_yaml = "apigeeconnect_v1.yaml",
340    transport = "grpc+rest",
341    deps = [
342        ":apigeeconnect_csharp_grpc",
343        ":apigeeconnect_csharp_proto",
344    ],
345)
346
347# Open Source Packages
348csharp_gapic_assembly_pkg(
349    name = "google-cloud-apigeeconnect-v1-csharp",
350    deps = [
351        ":apigeeconnect_csharp_gapic",
352        ":apigeeconnect_csharp_grpc",
353        ":apigeeconnect_csharp_proto",
354    ],
355)
356
357##############################################################################
358# C++
359##############################################################################
360load(
361    "@com_google_googleapis_imports//:imports.bzl",
362    "cc_grpc_library",
363    "cc_proto_library",
364)
365
366cc_proto_library(
367    name = "apigeeconnect_cc_proto",
368    deps = [":apigeeconnect_proto"],
369)
370
371cc_grpc_library(
372    name = "apigeeconnect_cc_grpc",
373    srcs = [":apigeeconnect_proto"],
374    grpc_only = True,
375    deps = [":apigeeconnect_cc_proto"],
376)
377