xref: /aosp_15_r20/external/googleapis/google/cloud/securitycenter/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 = "securitycenter_proto",
26    srcs = [
27        "access.proto",
28        "application.proto",
29        "attack_exposure.proto",
30        "attack_path.proto",
31        "backup_disaster_recovery.proto",
32        "bigquery_export.proto",
33        "cloud_dlp_data_profile.proto",
34        "cloud_dlp_inspection.proto",
35        "compliance.proto",
36        "connection.proto",
37        "contact_details.proto",
38        "container.proto",
39        "database.proto",
40        "exfiltration.proto",
41        "external_system.proto",
42        "file.proto",
43        "finding.proto",
44        "iam_binding.proto",
45        "indicator.proto",
46        "kernel_rootkit.proto",
47        "kubernetes.proto",
48        "label.proto",
49        "load_balancer.proto",
50        "log_entry.proto",
51        "mitre_attack.proto",
52        "mute_config.proto",
53        "notification_config.proto",
54        "notification_message.proto",
55        "org_policy.proto",
56        "process.proto",
57        "resource.proto",
58        "resource_value_config.proto",
59        "security_marks.proto",
60        "security_posture.proto",
61        "securitycenter_service.proto",
62        "simulation.proto",
63        "source.proto",
64        "valued_resource.proto",
65        "vulnerability.proto",
66    ],
67    deps = [
68        "//google/api:annotations_proto",
69        "//google/api:client_proto",
70        "//google/api:field_behavior_proto",
71        "//google/api:resource_proto",
72        "//google/api:routing_proto",
73        "//google/iam/v1:iam_policy_proto",
74        "//google/iam/v1:policy_proto",
75        "//google/longrunning:operations_proto",
76        "@com_google_protobuf//:empty_proto",
77        "@com_google_protobuf//:field_mask_proto",
78        "@com_google_protobuf//:struct_proto",
79        "@com_google_protobuf//:timestamp_proto",
80    ],
81)
82
83proto_library_with_info(
84    name = "securitycenter_proto_with_info",
85    deps = [
86        ":securitycenter_proto",
87        "//google/cloud:common_resources_proto",
88    ],
89)
90
91##############################################################################
92# Java
93##############################################################################
94# buildifier: disable=same-origin-load
95load(
96    "@com_google_googleapis_imports//:imports.bzl",
97    "java_gapic_assembly_gradle_pkg",
98    "java_gapic_library",
99    "java_gapic_test",
100    "java_grpc_library",
101    "java_proto_library",
102)
103
104java_proto_library(
105    name = "securitycenter_java_proto",
106    deps = [":securitycenter_proto"],
107)
108
109java_grpc_library(
110    name = "securitycenter_java_grpc",
111    srcs = [":securitycenter_proto"],
112    deps = [":securitycenter_java_proto"],
113)
114
115java_gapic_library(
116    name = "securitycenter_java_gapic",
117    srcs = [":securitycenter_proto_with_info"],
118    gapic_yaml = None,
119    grpc_service_config = None,
120    rest_numeric_enums = True,
121    service_yaml = "securitycenter_v2.yaml",
122    test_deps = [
123        "//google/iam/v1:iam_java_grpc",
124        ":securitycenter_java_grpc",
125    ],
126    transport = "grpc+rest",
127    deps = [
128        ":securitycenter_java_proto",
129        "//google/api:api_java_proto",
130        "//google/iam/v1:iam_java_proto",
131    ],
132)
133
134java_gapic_test(
135    name = "securitycenter_java_gapic_test_suite",
136    test_classes = [
137        "com.google.cloud.securitycenter.v2.SecurityCenterClientHttpJsonTest",
138        "com.google.cloud.securitycenter.v2.SecurityCenterClientTest",
139    ],
140    runtime_deps = [":securitycenter_java_gapic_test"],
141)
142
143# Open Source Packages
144java_gapic_assembly_gradle_pkg(
145    name = "google-cloud-securitycenter-v2-java",
146    transport = "grpc+rest",
147    deps = [
148        ":securitycenter_java_gapic",
149        ":securitycenter_java_grpc",
150        ":securitycenter_java_proto",
151        ":securitycenter_proto",
152    ],
153    include_samples = True,
154)
155
156##############################################################################
157# Go
158##############################################################################
159# buildifier: disable=same-origin-load
160load(
161    "@com_google_googleapis_imports//:imports.bzl",
162    "go_gapic_assembly_pkg",
163    "go_gapic_library",
164    "go_proto_library",
165)
166
167go_proto_library(
168    name = "securitycenter_go_proto",
169    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
170    importpath = "cloud.google.com/go/securitycenter/apiv2/securitycenterpb",
171    protos = [":securitycenter_proto"],
172    deps = [
173        "//google/api:annotations_go_proto",
174        "//google/iam/v1:iam_go_proto",
175        "//google/longrunning:longrunning_go_proto",
176    ],
177)
178
179go_gapic_library(
180    name = "securitycenter_go_gapic",
181    srcs = [":securitycenter_proto_with_info"],
182    grpc_service_config = None,
183    importpath = "cloud.google.com/go/securitycenter/apiv2;securitycenter",
184    metadata = True,
185    release_level = "beta",
186    rest_numeric_enums = True,
187    service_yaml = "securitycenter_v2.yaml",
188    transport = "grpc+rest",
189    deps = [
190        ":securitycenter_go_proto",
191        "//google/iam/v1:iam_go_proto",
192        "//google/longrunning:longrunning_go_proto",
193        "@com_google_cloud_go_longrunning//:go_default_library",
194        "@com_google_cloud_go_longrunning//autogen:go_default_library",
195        "@io_bazel_rules_go//proto/wkt:struct_go_proto",
196    ],
197)
198
199# Open Source Packages
200go_gapic_assembly_pkg(
201    name = "gapi-cloud-securitycenter-v2-go",
202    deps = [
203        ":securitycenter_go_gapic",
204        ":securitycenter_go_gapic_srcjar-test.srcjar",
205        ":securitycenter_go_gapic_srcjar-metadata.srcjar",
206        ":securitycenter_go_gapic_srcjar-snippets.srcjar",
207        ":securitycenter_go_proto",
208    ],
209)
210
211##############################################################################
212# Python
213##############################################################################
214# buildifier: disable=same-origin-load
215load(
216    "@com_google_googleapis_imports//:imports.bzl",
217    "py_gapic_assembly_pkg",
218    "py_gapic_library",
219    "py_test",
220)
221
222py_gapic_library(
223    name = "securitycenter_py_gapic",
224    srcs = [":securitycenter_proto"],
225    grpc_service_config = None,
226    rest_numeric_enums = True,
227    service_yaml = "securitycenter_v2.yaml",
228    transport = "grpc+rest",
229    deps = [
230        "//google/iam/v1:iam_policy_py_proto",
231    ],
232)
233
234py_test(
235    name = "securitycenter_py_gapic_test",
236    srcs = [
237        "securitycenter_py_gapic_pytest.py",
238        "securitycenter_py_gapic_test.py",
239    ],
240    legacy_create_init = False,
241    deps = [":securitycenter_py_gapic"],
242)
243
244# Open Source Packages
245py_gapic_assembly_pkg(
246    name = "securitycenter-v2-py",
247    deps = [
248        ":securitycenter_py_gapic",
249    ],
250)
251
252##############################################################################
253# PHP
254##############################################################################
255# buildifier: disable=same-origin-load
256load(
257    "@com_google_googleapis_imports//:imports.bzl",
258    "php_gapic_assembly_pkg",
259    "php_gapic_library",
260    "php_proto_library",
261)
262
263php_proto_library(
264    name = "securitycenter_php_proto",
265    deps = [":securitycenter_proto"],
266)
267
268php_gapic_library(
269    name = "securitycenter_php_gapic",
270    srcs = [":securitycenter_proto_with_info"],
271    grpc_service_config = None,
272    rest_numeric_enums = True,
273    migration_mode = "NEW_SURFACE_ONLY",
274    service_yaml = "securitycenter_v2.yaml",
275    transport = "grpc+rest",
276    deps = [
277        ":securitycenter_php_proto",
278    ],
279)
280
281# Open Source Packages
282php_gapic_assembly_pkg(
283    name = "google-cloud-securitycenter-v2-php",
284    deps = [
285        ":securitycenter_php_gapic",
286        ":securitycenter_php_proto",
287    ],
288)
289
290##############################################################################
291# Node.js
292##############################################################################
293# buildifier: disable=same-origin-load
294load(
295    "@com_google_googleapis_imports//:imports.bzl",
296    "nodejs_gapic_assembly_pkg",
297    "nodejs_gapic_library",
298)
299
300nodejs_gapic_library(
301    name = "securitycenter_nodejs_gapic",
302    package_name = "@google-cloud/securitycenter",
303    src = ":securitycenter_proto_with_info",
304    extra_protoc_parameters = ["metadata"],
305    grpc_service_config = None,
306    package = "google.cloud.securitycenter.v2",
307    rest_numeric_enums = True,
308    service_yaml = "securitycenter_v2.yaml",
309    transport = "grpc+rest",
310    deps = [],
311)
312
313nodejs_gapic_assembly_pkg(
314    name = "securitycenter-v2-nodejs",
315    deps = [
316        ":securitycenter_nodejs_gapic",
317        ":securitycenter_proto",
318    ],
319)
320
321##############################################################################
322# Ruby
323##############################################################################
324# buildifier: disable=same-origin-load
325load(
326    "@com_google_googleapis_imports//:imports.bzl",
327    "ruby_gapic_assembly_pkg",
328    "ruby_cloud_gapic_library",
329    "ruby_grpc_library",
330    "ruby_proto_library",
331)
332
333ruby_proto_library(
334    name = "securitycenter_ruby_proto",
335    deps = [":securitycenter_proto"],
336)
337
338ruby_grpc_library(
339    name = "securitycenter_ruby_grpc",
340    srcs = [":securitycenter_proto"],
341    deps = [":securitycenter_ruby_proto"],
342)
343
344ruby_cloud_gapic_library(
345    name = "securitycenter_ruby_gapic",
346    srcs = [":securitycenter_proto_with_info"],
347    extra_protoc_parameters = [
348        "ruby-cloud-api-id=securitycenter.googleapis.com",
349        "ruby-cloud-api-shortname=securitycenter",
350        "ruby-cloud-env-prefix=SECURITY_CENTER",
351        "ruby-cloud-gem-name=google-cloud-security_center-v2",
352        "ruby-cloud-product-url=https://cloud.google.com/security-command-center",
353    ],
354    grpc_service_config = None,
355    rest_numeric_enums = True,
356    service_yaml = "securitycenter_v2.yaml",
357    transport = "grpc+rest",
358    deps = [
359        ":securitycenter_ruby_grpc",
360        ":securitycenter_ruby_proto",
361    ],
362)
363
364# Open Source Packages
365ruby_gapic_assembly_pkg(
366    name = "google-cloud-securitycenter-v2-ruby",
367    deps = [
368        ":securitycenter_ruby_gapic",
369        ":securitycenter_ruby_grpc",
370        ":securitycenter_ruby_proto",
371    ],
372)
373
374##############################################################################
375# C#
376##############################################################################
377# buildifier: disable=same-origin-load
378load(
379    "@com_google_googleapis_imports//:imports.bzl",
380    "csharp_gapic_assembly_pkg",
381    "csharp_gapic_library",
382    "csharp_grpc_library",
383    "csharp_proto_library",
384)
385
386csharp_proto_library(
387    name = "securitycenter_csharp_proto",
388    extra_opts = [],
389    deps = [":securitycenter_proto"],
390)
391
392csharp_grpc_library(
393    name = "securitycenter_csharp_grpc",
394    srcs = [":securitycenter_proto"],
395    deps = [":securitycenter_csharp_proto"],
396)
397
398csharp_gapic_library(
399    name = "securitycenter_csharp_gapic",
400    srcs = [":securitycenter_proto_with_info"],
401    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
402    grpc_service_config = None,
403    rest_numeric_enums = True,
404    service_yaml = "securitycenter_v2.yaml",
405    transport = "grpc+rest",
406    deps = [
407        ":securitycenter_csharp_grpc",
408        ":securitycenter_csharp_proto",
409    ],
410)
411
412# Open Source Packages
413csharp_gapic_assembly_pkg(
414    name = "google-cloud-securitycenter-v2-csharp",
415    deps = [
416        ":securitycenter_csharp_gapic",
417        ":securitycenter_csharp_grpc",
418        ":securitycenter_csharp_proto",
419    ],
420)
421
422##############################################################################
423# C++
424##############################################################################
425# buildifier: disable=same-origin-load
426load(
427    "@com_google_googleapis_imports//:imports.bzl",
428    "cc_grpc_library",
429    "cc_proto_library",
430)
431
432cc_proto_library(
433    name = "securitycenter_cc_proto",
434    deps = [":securitycenter_proto"],
435)
436
437cc_grpc_library(
438    name = "securitycenter_cc_grpc",
439    srcs = [":securitycenter_proto"],
440    grpc_only = True,
441    deps = [":securitycenter_cc_proto"],
442)
443