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