xref: /aosp_15_r20/external/googleapis/google/cloud/securesourcemanager/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 = "securesourcemanager_proto",
23    srcs = [
24        "secure_source_manager.proto",
25    ],
26    deps = [
27        "//google/api:annotations_proto",
28        "//google/api:client_proto",
29        "//google/api:field_behavior_proto",
30        "//google/api:resource_proto",
31        "//google/iam/v1:iam_policy_proto",
32        "//google/iam/v1:policy_proto",
33        "//google/longrunning:operations_proto",
34        "@com_google_protobuf//:empty_proto",
35        "@com_google_protobuf//:timestamp_proto",
36    ],
37)
38
39proto_library_with_info(
40    name = "securesourcemanager_proto_with_info",
41    deps = [
42        ":securesourcemanager_proto",
43        "//google/cloud/location:location_proto",
44        "//google/cloud:common_resources_proto",
45        "//google/iam/v1:iam_policy_proto",
46    ],
47)
48
49##############################################################################
50# Java
51##############################################################################
52load(
53    "@com_google_googleapis_imports//:imports.bzl",
54    "java_gapic_assembly_gradle_pkg",
55    "java_gapic_library",
56    "java_gapic_test",
57    "java_grpc_library",
58    "java_proto_library",
59)
60
61java_proto_library(
62    name = "securesourcemanager_java_proto",
63    deps = [":securesourcemanager_proto"],
64)
65
66java_grpc_library(
67    name = "securesourcemanager_java_grpc",
68    srcs = [":securesourcemanager_proto"],
69    deps = [":securesourcemanager_java_proto"],
70)
71
72java_gapic_library(
73    name = "securesourcemanager_java_gapic",
74    srcs = [":securesourcemanager_proto_with_info"],
75    gapic_yaml = None,
76    grpc_service_config = "securesourcemanager_grpc_service_config.json",
77    rest_numeric_enums = True,
78    service_yaml = "securesourcemanager_v1.yaml",
79    test_deps = [
80        "//google/cloud/location:location_java_grpc",
81        "//google/iam/v1:iam_java_grpc",
82        ":securesourcemanager_java_grpc",
83    ],
84    transport = "grpc+rest",
85    deps = [
86        ":securesourcemanager_java_proto",
87        "//google/api:api_java_proto",
88        "//google/cloud/location:location_java_proto",
89        "//google/iam/v1:iam_java_proto",
90    ],
91)
92
93java_gapic_test(
94    name = "securesourcemanager_java_gapic_test_suite",
95    test_classes = [
96        "com.google.cloud.securesourcemanager.v1.SecureSourceManagerClientHttpJsonTest",
97        "com.google.cloud.securesourcemanager.v1.SecureSourceManagerClientTest",
98    ],
99    runtime_deps = [":securesourcemanager_java_gapic_test"],
100)
101
102# Open Source Packages
103java_gapic_assembly_gradle_pkg(
104    name = "google-cloud-securesourcemanager-v1-java",
105    transport = "grpc+rest",
106    deps = [
107        ":securesourcemanager_java_gapic",
108        ":securesourcemanager_java_grpc",
109        ":securesourcemanager_java_proto",
110        ":securesourcemanager_proto",
111    ],
112    include_samples = True,
113)
114
115##############################################################################
116# Go
117##############################################################################
118load(
119    "@com_google_googleapis_imports//:imports.bzl",
120    "go_gapic_assembly_pkg",
121    "go_gapic_library",
122    "go_proto_library",
123)
124
125go_proto_library(
126    name = "securesourcemanager_go_proto",
127    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
128    importpath = "cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb",
129    protos = [":securesourcemanager_proto"],
130    deps = [
131        "//google/api:annotations_go_proto",
132        "//google/iam/v1:iam_go_proto",
133        "//google/longrunning:longrunning_go_proto",
134    ],
135)
136
137go_gapic_library(
138    name = "securesourcemanager_go_gapic",
139    srcs = [":securesourcemanager_proto_with_info"],
140    grpc_service_config = "securesourcemanager_grpc_service_config.json",
141    importpath = "cloud.google.com/go/securesourcemanager/apiv1;securesourcemanager",
142    metadata = True,
143    release_level = "beta",
144    rest_numeric_enums = True,
145    service_yaml = "securesourcemanager_v1.yaml",
146    transport = "grpc+rest",
147    deps = [
148        ":securesourcemanager_go_proto",
149        "//google/cloud/location:location_go_proto",
150        "//google/iam/v1:iam_go_proto",
151        "//google/longrunning:longrunning_go_proto",
152        "@com_google_cloud_go_longrunning//:go_default_library",
153        "@com_google_cloud_go_longrunning//autogen:go_default_library",
154    ],
155)
156
157# Open Source Packages
158go_gapic_assembly_pkg(
159    name = "gapi-cloud-securesourcemanager-v1-go",
160    deps = [
161        ":securesourcemanager_go_gapic",
162        ":securesourcemanager_go_gapic_srcjar-test.srcjar",
163        ":securesourcemanager_go_gapic_srcjar-metadata.srcjar",
164        ":securesourcemanager_go_gapic_srcjar-snippets.srcjar",
165        ":securesourcemanager_go_proto",
166    ],
167)
168
169##############################################################################
170# Python
171##############################################################################
172load(
173    "@com_google_googleapis_imports//:imports.bzl",
174    "py_gapic_assembly_pkg",
175    "py_gapic_library",
176    "py_test",
177)
178
179py_gapic_library(
180    name = "securesourcemanager_py_gapic",
181    srcs = [":securesourcemanager_proto"],
182    grpc_service_config = "securesourcemanager_grpc_service_config.json",
183    rest_numeric_enums = True,
184    service_yaml = "securesourcemanager_v1.yaml",
185    transport = "grpc+rest",
186    deps = [
187        "//google/iam/v1:iam_policy_py_proto",
188    ],
189)
190
191py_test(
192    name = "securesourcemanager_py_gapic_test",
193    srcs = [
194        "securesourcemanager_py_gapic_pytest.py",
195        "securesourcemanager_py_gapic_test.py",
196    ],
197    legacy_create_init = False,
198    deps = [":securesourcemanager_py_gapic"],
199)
200
201# Open Source Packages
202py_gapic_assembly_pkg(
203    name = "securesourcemanager-v1-py",
204    deps = [
205        ":securesourcemanager_py_gapic",
206    ],
207)
208
209##############################################################################
210# PHP
211##############################################################################
212load(
213    "@com_google_googleapis_imports//:imports.bzl",
214    "php_gapic_assembly_pkg",
215    "php_gapic_library",
216    "php_proto_library",
217)
218
219php_proto_library(
220    name = "securesourcemanager_php_proto",
221    deps = [":securesourcemanager_proto"],
222)
223
224php_gapic_library(
225    name = "securesourcemanager_php_gapic",
226    srcs = [":securesourcemanager_proto_with_info"],
227    grpc_service_config = "securesourcemanager_grpc_service_config.json",
228    rest_numeric_enums = True,
229    migration_mode = "NEW_SURFACE_ONLY",
230    service_yaml = "securesourcemanager_v1.yaml",
231    transport = "grpc+rest",
232    deps = [
233        ":securesourcemanager_php_proto",
234    ],
235)
236
237# Open Source Packages
238php_gapic_assembly_pkg(
239    name = "google-cloud-securesourcemanager-v1-php",
240    deps = [
241        ":securesourcemanager_php_gapic",
242        ":securesourcemanager_php_proto",
243    ],
244)
245
246##############################################################################
247# Node.js
248##############################################################################
249load(
250    "@com_google_googleapis_imports//:imports.bzl",
251    "nodejs_gapic_assembly_pkg",
252    "nodejs_gapic_library",
253)
254
255nodejs_gapic_library(
256    name = "securesourcemanager_nodejs_gapic",
257    package_name = "@google-cloud/securesourcemanager",
258    src = ":securesourcemanager_proto_with_info",
259    extra_protoc_parameters = ["metadata"],
260    grpc_service_config = "securesourcemanager_grpc_service_config.json",
261    package = "google.cloud.securesourcemanager.v1",
262    rest_numeric_enums = True,
263    service_yaml = "securesourcemanager_v1.yaml",
264    transport = "grpc+rest",
265    deps = [],
266)
267
268nodejs_gapic_assembly_pkg(
269    name = "securesourcemanager-v1-nodejs",
270    deps = [
271        ":securesourcemanager_nodejs_gapic",
272        ":securesourcemanager_proto",
273    ],
274)
275
276##############################################################################
277# Ruby
278##############################################################################
279load(
280    "@com_google_googleapis_imports//:imports.bzl",
281    "ruby_gapic_assembly_pkg",
282    "ruby_cloud_gapic_library",
283    "ruby_grpc_library",
284    "ruby_proto_library",
285)
286
287ruby_proto_library(
288    name = "securesourcemanager_ruby_proto",
289    deps = [":securesourcemanager_proto"],
290)
291
292ruby_grpc_library(
293    name = "securesourcemanager_ruby_grpc",
294    srcs = [":securesourcemanager_proto"],
295    deps = [":securesourcemanager_ruby_proto"],
296)
297
298ruby_cloud_gapic_library(
299    name = "securesourcemanager_ruby_gapic",
300    srcs = [":securesourcemanager_proto_with_info"],
301    extra_protoc_parameters = [
302        "ruby-cloud-gem-name=google-cloud-secure_source_manager-v1",
303    ],
304    grpc_service_config = "securesourcemanager_grpc_service_config.json",
305    rest_numeric_enums = True,
306    service_yaml = "securesourcemanager_v1.yaml",
307    transport = "grpc+rest",
308    deps = [
309        ":securesourcemanager_ruby_grpc",
310        ":securesourcemanager_ruby_proto",
311    ],
312)
313
314# Open Source Packages
315ruby_gapic_assembly_pkg(
316    name = "google-cloud-securesourcemanager-v1-ruby",
317    deps = [
318        ":securesourcemanager_ruby_gapic",
319        ":securesourcemanager_ruby_grpc",
320        ":securesourcemanager_ruby_proto",
321    ],
322)
323
324##############################################################################
325# C#
326##############################################################################
327load(
328    "@com_google_googleapis_imports//:imports.bzl",
329    "csharp_gapic_assembly_pkg",
330    "csharp_gapic_library",
331    "csharp_grpc_library",
332    "csharp_proto_library",
333)
334
335csharp_proto_library(
336    name = "securesourcemanager_csharp_proto",
337    extra_opts = [],
338    deps = [":securesourcemanager_proto"],
339)
340
341csharp_grpc_library(
342    name = "securesourcemanager_csharp_grpc",
343    srcs = [":securesourcemanager_proto"],
344    deps = [":securesourcemanager_csharp_proto"],
345)
346
347csharp_gapic_library(
348    name = "securesourcemanager_csharp_gapic",
349    srcs = [":securesourcemanager_proto_with_info"],
350    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
351    grpc_service_config = "securesourcemanager_grpc_service_config.json",
352    rest_numeric_enums = True,
353    service_yaml = "securesourcemanager_v1.yaml",
354    deps = [
355        ":securesourcemanager_csharp_grpc",
356        ":securesourcemanager_csharp_proto",
357    ],
358)
359
360# Open Source Packages
361csharp_gapic_assembly_pkg(
362    name = "google-cloud-securesourcemanager-v1-csharp",
363    deps = [
364        ":securesourcemanager_csharp_gapic",
365        ":securesourcemanager_csharp_grpc",
366        ":securesourcemanager_csharp_proto",
367    ],
368)
369
370##############################################################################
371# C++
372##############################################################################
373load(
374    "@com_google_googleapis_imports//:imports.bzl",
375    "cc_grpc_library",
376    "cc_proto_library",
377)
378
379cc_proto_library(
380    name = "securesourcemanager_cc_proto",
381    deps = [":securesourcemanager_proto"],
382)
383
384cc_grpc_library(
385    name = "securesourcemanager_cc_grpc",
386    srcs = [":securesourcemanager_proto"],
387    grpc_only = True,
388    deps = [":securesourcemanager_cc_proto"],
389)
390