xref: /aosp_15_r20/external/googleapis/google/cloud/run/v2/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# buildifier: disable=load-on-top
13
14# This is an API workspace, having public visibility by default makes perfect sense.
15package(default_visibility = ["//visibility:public"])
16
17##############################################################################
18# Common
19##############################################################################
20# buildifier: disable=same-origin-load
21load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
22load("@rules_proto//proto:defs.bzl", "proto_library")
23
24proto_library(
25    name = "run_proto",
26    srcs = [
27        "condition.proto",
28        "execution.proto",
29        "execution_template.proto",
30        "job.proto",
31        "k8s.min.proto",
32        "revision.proto",
33        "revision_template.proto",
34        "service.proto",
35        "status.proto",
36        "task.proto",
37        "task_template.proto",
38        "traffic_target.proto",
39        "vendor_settings.proto",
40    ],
41    deps = [
42        "//google/api:annotations_proto",
43        "//google/api:client_proto",
44        "//google/api:field_behavior_proto",
45        "//google/api:launch_stage_proto",
46        "//google/api:resource_proto",
47        "//google/api:routing_proto",
48        "//google/iam/v1:iam_policy_proto",
49        "//google/iam/v1:policy_proto",
50        "//google/longrunning:operations_proto",
51        "//google/rpc:status_proto",
52        "@com_google_protobuf//:duration_proto",
53        "@com_google_protobuf//:timestamp_proto",
54    ],
55)
56
57proto_library_with_info(
58    name = "run_proto_with_info",
59    deps = [
60        ":run_proto",
61        "//google/cloud:common_resources_proto",
62        "//google/cloud/location:location_proto",
63    ],
64)
65
66##############################################################################
67# Java
68##############################################################################
69# buildifier: disable=same-origin-load
70load(
71    "@com_google_googleapis_imports//:imports.bzl",
72    "java_gapic_assembly_gradle_pkg",
73    "java_gapic_library",
74    "java_gapic_test",
75    "java_grpc_library",
76    "java_proto_library",
77)
78
79java_proto_library(
80    name = "run_java_proto",
81    deps = [":run_proto"],
82)
83
84java_grpc_library(
85    name = "run_java_grpc",
86    srcs = [":run_proto"],
87    deps = [":run_java_proto"],
88)
89
90java_gapic_library(
91    name = "run_java_gapic",
92    srcs = [":run_proto_with_info"],
93    gapic_yaml = None,
94    grpc_service_config = "run_grpc_service_config.json",
95    rest_numeric_enums = True,
96    service_yaml = "run_v2.yaml",
97    test_deps = [
98        ":run_java_grpc",
99        "//google/cloud/location:location_java_grpc",
100        "//google/iam/v1:iam_java_grpc",
101    ],
102    transport = "grpc+rest",
103    deps = [
104        ":run_java_proto",
105        "//google/api:api_java_proto",
106        "//google/cloud/location:location_java_proto",
107        "//google/iam/v1:iam_java_proto",
108    ],
109)
110
111java_gapic_test(
112    name = "run_java_gapic_test_suite",
113    test_classes = [
114        "com.google.cloud.run.v2.ExecutionsClientHttpJsonTest",
115        "com.google.cloud.run.v2.ExecutionsClientTest",
116        "com.google.cloud.run.v2.JobsClientHttpJsonTest",
117        "com.google.cloud.run.v2.JobsClientTest",
118        "com.google.cloud.run.v2.RevisionsClientHttpJsonTest",
119        "com.google.cloud.run.v2.RevisionsClientTest",
120        "com.google.cloud.run.v2.ServicesClientHttpJsonTest",
121        "com.google.cloud.run.v2.ServicesClientTest",
122        "com.google.cloud.run.v2.TasksClientHttpJsonTest",
123        "com.google.cloud.run.v2.TasksClientTest",
124    ],
125    runtime_deps = [":run_java_gapic_test"],
126)
127
128# Open Source Packages
129java_gapic_assembly_gradle_pkg(
130    name = "google-cloud-run-v2-java",
131    include_samples = True,
132    transport = "grpc+rest",
133    deps = [
134        ":run_java_gapic",
135        ":run_java_grpc",
136        ":run_java_proto",
137        ":run_proto",
138    ],
139)
140
141##############################################################################
142# Go
143##############################################################################
144# buildifier: disable=same-origin-load
145load(
146    "@com_google_googleapis_imports//:imports.bzl",
147    "go_gapic_assembly_pkg",
148    "go_gapic_library",
149    "go_proto_library",
150)
151
152go_proto_library(
153    name = "run_go_proto",
154    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
155    importpath = "cloud.google.com/go/run/apiv2/runpb",
156    protos = [":run_proto"],
157    deps = [
158        "//google/api:annotations_go_proto",
159        "//google/api:api_go_proto",
160        "//google/iam/v1:iam_go_proto",
161        "//google/longrunning:longrunning_go_proto",
162        "//google/rpc:status_go_proto",
163    ],
164)
165
166go_gapic_library(
167    name = "run_go_gapic",
168    srcs = [":run_proto_with_info"],
169    grpc_service_config = "run_grpc_service_config.json",
170    importpath = "cloud.google.com/go/run/apiv2;run",
171    metadata = True,
172    release_level = "ga",
173    rest_numeric_enums = True,
174    service_yaml = "run_v2.yaml",
175    transport = "grpc+rest",
176    deps = [
177        ":run_go_proto",
178        "//google/cloud/location:location_go_proto",
179        "//google/iam/v1:iam_go_proto",
180        "//google/longrunning:longrunning_go_proto",
181        "@com_google_cloud_go_longrunning//:go_default_library",
182        "@com_google_cloud_go_longrunning//autogen:go_default_library",
183        "@io_bazel_rules_go//proto/wkt:duration_go_proto",
184    ],
185)
186
187# Open Source Packages
188go_gapic_assembly_pkg(
189    name = "gapi-cloud-run-v2-go",
190    deps = [
191        ":run_go_gapic",
192        ":run_go_gapic_srcjar-metadata.srcjar",
193        ":run_go_gapic_srcjar-snippets.srcjar",
194        ":run_go_gapic_srcjar-test.srcjar",
195        ":run_go_proto",
196    ],
197)
198
199##############################################################################
200# Python
201##############################################################################
202# buildifier: disable=same-origin-load
203load(
204    "@com_google_googleapis_imports//:imports.bzl",
205    "py_gapic_assembly_pkg",
206    "py_gapic_library",
207    "py_test",
208)
209
210py_gapic_library(
211    name = "run_py_gapic",
212    srcs = [":run_proto"],
213    grpc_service_config = "run_grpc_service_config.json",
214    rest_numeric_enums = True,
215    service_yaml = "run_v2.yaml",
216    transport = "grpc+rest",
217    deps = [
218        "//google/iam/v1:iam_policy_py_proto",
219    ],
220)
221
222py_test(
223    name = "run_py_gapic_test",
224    srcs = [
225        "run_py_gapic_pytest.py",
226        "run_py_gapic_test.py",
227    ],
228    legacy_create_init = False,
229    deps = [":run_py_gapic"],
230)
231
232# Open Source Packages
233py_gapic_assembly_pkg(
234    name = "run-v2-py",
235    deps = [
236        ":run_py_gapic",
237    ],
238)
239
240##############################################################################
241# PHP
242##############################################################################
243# buildifier: disable=same-origin-load
244load(
245    "@com_google_googleapis_imports//:imports.bzl",
246    "php_gapic_assembly_pkg",
247    "php_gapic_library",
248    "php_proto_library",
249)
250
251php_proto_library(
252    name = "run_php_proto",
253    deps = [":run_proto"],
254)
255
256php_gapic_library(
257    name = "run_php_gapic",
258    srcs = [":run_proto_with_info"],
259    grpc_service_config = "run_grpc_service_config.json",
260    migration_mode = "MIGRATING",
261    rest_numeric_enums = True,
262    service_yaml = "run_v2.yaml",
263    transport = "grpc+rest",
264    deps = [
265        ":run_php_proto",
266    ],
267)
268
269# Open Source Packages
270php_gapic_assembly_pkg(
271    name = "google-cloud-run-v2-php",
272    deps = [
273        ":run_php_gapic",
274        ":run_php_proto",
275    ],
276)
277
278##############################################################################
279# Node.js
280##############################################################################
281# buildifier: disable=same-origin-load
282load(
283    "@com_google_googleapis_imports//:imports.bzl",
284    "nodejs_gapic_assembly_pkg",
285    "nodejs_gapic_library",
286)
287
288nodejs_gapic_library(
289    name = "run_nodejs_gapic",
290    package_name = "@google-cloud/run",
291    src = ":run_proto_with_info",
292    extra_protoc_parameters = ["metadata"],
293    grpc_service_config = "run_grpc_service_config.json",
294    package = "google.cloud.run.v2",
295    rest_numeric_enums = True,
296    service_yaml = "run_v2.yaml",
297    transport = "grpc+rest",
298    deps = [],
299)
300
301nodejs_gapic_assembly_pkg(
302    name = "run-v2-nodejs",
303    deps = [
304        ":run_nodejs_gapic",
305        ":run_proto",
306    ],
307)
308
309##############################################################################
310# Ruby
311##############################################################################
312# buildifier: disable=same-origin-load
313load(
314    "@com_google_googleapis_imports//:imports.bzl",
315    "ruby_cloud_gapic_library",
316    "ruby_gapic_assembly_pkg",
317    "ruby_grpc_library",
318    "ruby_proto_library",
319)
320
321ruby_proto_library(
322    name = "run_ruby_proto",
323    deps = [":run_proto"],
324)
325
326ruby_grpc_library(
327    name = "run_ruby_grpc",
328    srcs = [":run_proto"],
329    deps = [":run_ruby_proto"],
330)
331
332ruby_cloud_gapic_library(
333    name = "run_ruby_gapic",
334    srcs = [":run_proto_with_info"],
335    extra_protoc_parameters = [
336        "ruby-cloud-api-id=run.googleapis.com",
337        "ruby-cloud-api-shortname=run",
338        "ruby-cloud-gem-name=google-cloud-run-v2",
339        "ruby-cloud-product-url=https://cloud.google.com/run/",
340        "ruby-cloud-wrapper-gem-override=google-cloud-run-client",
341    ],
342    grpc_service_config = "run_grpc_service_config.json",
343    rest_numeric_enums = True,
344    ruby_cloud_description = "Cloud Run deploys and manages user provided container images that scale automatically based on incoming requests.",
345    ruby_cloud_title = "Cloud Run V2",
346    service_yaml = "run_v2.yaml",
347    transport = "grpc+rest",
348    deps = [
349        ":run_ruby_grpc",
350        ":run_ruby_proto",
351    ],
352)
353
354# Open Source Packages
355ruby_gapic_assembly_pkg(
356    name = "google-cloud-run-v2-ruby",
357    deps = [
358        ":run_ruby_gapic",
359        ":run_ruby_grpc",
360        ":run_ruby_proto",
361    ],
362)
363
364##############################################################################
365# C#
366##############################################################################
367# buildifier: disable=same-origin-load
368load(
369    "@com_google_googleapis_imports//:imports.bzl",
370    "csharp_gapic_assembly_pkg",
371    "csharp_gapic_library",
372    "csharp_grpc_library",
373    "csharp_proto_library",
374)
375
376csharp_proto_library(
377    name = "run_csharp_proto",
378    extra_opts = [],
379    deps = [":run_proto"],
380)
381
382csharp_grpc_library(
383    name = "run_csharp_grpc",
384    srcs = [":run_proto"],
385    deps = [":run_csharp_proto"],
386)
387
388csharp_gapic_library(
389    name = "run_csharp_gapic",
390    srcs = [":run_proto_with_info"],
391    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
392    grpc_service_config = "run_grpc_service_config.json",
393    rest_numeric_enums = True,
394    service_yaml = "run_v2.yaml",
395    transport = "grpc+rest",
396    deps = [
397        ":run_csharp_grpc",
398        ":run_csharp_proto",
399    ],
400)
401
402# Open Source Packages
403csharp_gapic_assembly_pkg(
404    name = "google-cloud-run-v2-csharp",
405    deps = [
406        ":run_csharp_gapic",
407        ":run_csharp_grpc",
408        ":run_csharp_proto",
409    ],
410)
411
412##############################################################################
413# C++
414##############################################################################
415# buildifier: disable=same-origin-load
416load(
417    "@com_google_googleapis_imports//:imports.bzl",
418    "cc_grpc_library",
419    "cc_proto_library",
420)
421
422cc_proto_library(
423    name = "run_cc_proto",
424    deps = [":run_proto"],
425)
426
427cc_grpc_library(
428    name = "run_cc_grpc",
429    srcs = [":run_proto"],
430    grpc_only = True,
431    deps = [":run_cc_proto"],
432)
433