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