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