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 = "privateca_proto", 23 srcs = [ 24 "resources.proto", 25 "service.proto", 26 ], 27 deps = [ 28 "//google/api:annotations_proto", 29 "//google/api:client_proto", 30 "//google/api:field_behavior_proto", 31 "//google/api:resource_proto", 32 "//google/longrunning:operations_proto", 33 "@com_google_protobuf//:duration_proto", 34 "@com_google_protobuf//:field_mask_proto", 35 "@com_google_protobuf//:timestamp_proto", 36 "@com_google_protobuf//:wrappers_proto", 37 ], 38) 39 40proto_library_with_info( 41 name = "privateca_proto_with_info", 42 deps = [ 43 ":privateca_proto", 44 "//google/cloud:common_resources_proto", 45 ], 46) 47 48############################################################################## 49# Java 50############################################################################## 51load( 52 "@com_google_googleapis_imports//:imports.bzl", 53 "java_gapic_assembly_gradle_pkg", 54 "java_gapic_library", 55 "java_gapic_test", 56 "java_grpc_library", 57 "java_proto_library", 58) 59 60java_proto_library( 61 name = "privateca_java_proto", 62 deps = [":privateca_proto"], 63) 64 65java_grpc_library( 66 name = "privateca_java_grpc", 67 srcs = [":privateca_proto"], 68 deps = [":privateca_java_proto"], 69) 70 71java_gapic_library( 72 name = "privateca_java_gapic", 73 srcs = [":privateca_proto_with_info"], 74 grpc_service_config = "privateca_grpc_service_config.json", 75 rest_numeric_enums = True, 76 service_yaml = "privateca_v1beta1.yaml", 77 test_deps = [ 78 ":privateca_java_grpc", 79 ], 80 transport = "grpc+rest", 81 deps = [ 82 ":privateca_java_proto", 83 "//google/api:api_java_proto", 84 ], 85) 86 87java_gapic_test( 88 name = "privateca_java_gapic_test_suite", 89 test_classes = [ 90 "com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClientHttpJsonTest", 91 "com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClientTest", 92 ], 93 runtime_deps = [":privateca_java_gapic_test"], 94) 95 96# Open Source Packages 97java_gapic_assembly_gradle_pkg( 98 name = "google-cloud-security-privateca-v1beta1-java", 99 include_samples = True, 100 transport = "grpc+rest", 101 deps = [ 102 ":privateca_java_gapic", 103 ":privateca_java_grpc", 104 ":privateca_java_proto", 105 ":privateca_proto", 106 ], 107) 108 109############################################################################## 110# Go 111############################################################################## 112load( 113 "@com_google_googleapis_imports//:imports.bzl", 114 "go_gapic_assembly_pkg", 115 "go_gapic_library", 116 "go_proto_library", 117) 118 119go_proto_library( 120 name = "privateca_go_proto", 121 compilers = ["@io_bazel_rules_go//proto:go_grpc"], 122 importpath = "cloud.google.com/go/security/privateca/apiv1beta1/privatecapb", 123 protos = [":privateca_proto"], 124 deps = [ 125 "//google/api:annotations_go_proto", 126 "//google/longrunning:longrunning_go_proto", 127 ], 128) 129 130go_gapic_library( 131 name = "privateca_go_gapic", 132 srcs = [":privateca_proto_with_info"], 133 grpc_service_config = "privateca_grpc_service_config.json", 134 importpath = "cloud.google.com/go/security/privateca/apiv1beta1;privateca", 135 metadata = True, 136 release_level = "beta", 137 rest_numeric_enums = True, 138 service_yaml = "privateca_v1beta1.yaml", 139 transport = "grpc+rest", 140 deps = [ 141 ":privateca_go_proto", 142 "//google/longrunning:longrunning_go_proto", 143 "@com_google_cloud_go_longrunning//:go_default_library", 144 "@com_google_cloud_go_longrunning//autogen:go_default_library", 145 "@io_bazel_rules_go//proto/wkt:duration_go_proto", 146 ], 147) 148 149# Open Source Packages 150go_gapic_assembly_pkg( 151 name = "gapi-cloud-security-privateca-v1beta1-go", 152 deps = [ 153 ":privateca_go_gapic", 154 ":privateca_go_gapic_srcjar-snippets.srcjar", 155 ":privateca_go_gapic_srcjar-test.srcjar", 156 ":privateca_go_proto", 157 ], 158) 159 160############################################################################## 161# Python 162############################################################################## 163load( 164 "@com_google_googleapis_imports//:imports.bzl", 165 "py_gapic_assembly_pkg", 166 "py_gapic_library", 167 "py_test", 168) 169 170py_gapic_library( 171 name = "privateca_py_gapic", 172 srcs = [":privateca_proto"], 173 grpc_service_config = "privateca_grpc_service_config.json", 174 opt_args = [ 175 "warehouse-package-name=google-cloud-private-ca", 176 ], 177 rest_numeric_enums = True, 178 service_yaml = "privateca_v1beta1.yaml", 179 transport = "grpc+rest", 180) 181 182py_test( 183 name = "privateca_py_gapic_test", 184 srcs = [ 185 "privateca_py_gapic_pytest.py", 186 "privateca_py_gapic_test.py", 187 ], 188 legacy_create_init = False, 189 deps = [":privateca_py_gapic"], 190) 191 192py_gapic_assembly_pkg( 193 name = "security-privateca-v1beta1-py", 194 deps = [ 195 ":privateca_py_gapic", 196 ], 197) 198 199############################################################################## 200# PHP 201############################################################################## 202load( 203 "@com_google_googleapis_imports//:imports.bzl", 204 "php_gapic_assembly_pkg", 205 "php_gapic_library", 206 "php_proto_library", 207) 208 209php_proto_library( 210 name = "privateca_php_proto", 211 deps = [":privateca_proto"], 212) 213 214php_gapic_library( 215 name = "privateca_php_gapic", 216 srcs = [":privateca_proto_with_info"], 217 grpc_service_config = "privateca_grpc_service_config.json", 218 rest_numeric_enums = True, 219 service_yaml = "privateca_v1beta1.yaml", 220 transport = "grpc+rest", 221 deps = [":privateca_php_proto"], 222) 223 224# Open Source Packages 225php_gapic_assembly_pkg( 226 name = "google-cloud-security-privateca-v1beta1-php", 227 deps = [ 228 ":privateca_php_gapic", 229 ":privateca_php_proto", 230 ], 231) 232 233############################################################################## 234# Node.js 235############################################################################## 236load( 237 "@com_google_googleapis_imports//:imports.bzl", 238 "nodejs_gapic_assembly_pkg", 239 "nodejs_gapic_library", 240) 241 242nodejs_gapic_library( 243 name = "privateca_nodejs_gapic", 244 package_name = "@google-cloud/security-private-ca", 245 src = ":privateca_proto_with_info", 246 extra_protoc_parameters = ["metadata"], 247 grpc_service_config = "privateca_grpc_service_config.json", 248 package = "google.cloud.security.privateca.v1beta1", 249 rest_numeric_enums = True, 250 service_yaml = "privateca_v1beta1.yaml", 251 transport = "grpc+rest", 252 deps = [], 253) 254 255nodejs_gapic_assembly_pkg( 256 name = "security-privateca-v1beta1-nodejs", 257 deps = [ 258 ":privateca_nodejs_gapic", 259 ":privateca_proto", 260 ], 261) 262 263############################################################################## 264# Ruby 265############################################################################## 266load( 267 "@com_google_googleapis_imports//:imports.bzl", 268 "ruby_cloud_gapic_library", 269 "ruby_gapic_assembly_pkg", 270 "ruby_grpc_library", 271 "ruby_proto_library", 272) 273 274ruby_proto_library( 275 name = "privateca_ruby_proto", 276 deps = [":privateca_proto"], 277) 278 279ruby_grpc_library( 280 name = "privateca_ruby_grpc", 281 srcs = [":privateca_proto"], 282 deps = [":privateca_ruby_proto"], 283) 284 285ruby_cloud_gapic_library( 286 name = "privateca_ruby_gapic", 287 srcs = [":privateca_proto_with_info"], 288 extra_protoc_parameters = [ 289 "ruby-cloud-gem-name=google-cloud-security-private_ca-v1beta1", 290 "ruby-cloud-gem-namespace=Google::Cloud::Security::PrivateCA::V1beta1", 291 "ruby-cloud-env-prefix=PRIVATE_CA", 292 "ruby-cloud-product-url=https://cloud.google.com/certificate-authority-service/", 293 "ruby-cloud-api-id=privateca.googleapis.com", 294 "ruby-cloud-api-shortname=privateca", 295 ], 296 grpc_service_config = "privateca_grpc_service_config.json", 297 rest_numeric_enums = True, 298 ruby_cloud_description = "Certificate Authority Service is a highly available, scalable Google Cloud service that enables you to simplify, automate, and customize the deployment, management, and security of private certificate authorities (CA).", 299 ruby_cloud_title = "Certificate Authority Service V1beta1", 300 service_yaml = "privateca_v1beta1.yaml", 301 transport = "grpc+rest", 302 deps = [ 303 ":privateca_ruby_grpc", 304 ":privateca_ruby_proto", 305 ], 306) 307 308# Open Source Packages 309ruby_gapic_assembly_pkg( 310 name = "google-cloud-security-privateca-v1beta1-ruby", 311 deps = [ 312 ":privateca_ruby_gapic", 313 ":privateca_ruby_grpc", 314 ":privateca_ruby_proto", 315 ], 316) 317 318############################################################################## 319# C# 320############################################################################## 321load( 322 "@com_google_googleapis_imports//:imports.bzl", 323 "csharp_gapic_assembly_pkg", 324 "csharp_gapic_library", 325 "csharp_grpc_library", 326 "csharp_proto_library", 327) 328 329csharp_proto_library( 330 name = "privateca_csharp_proto", 331 deps = [":privateca_proto"], 332) 333 334csharp_grpc_library( 335 name = "privateca_csharp_grpc", 336 srcs = [":privateca_proto"], 337 deps = [":privateca_csharp_proto"], 338) 339 340csharp_gapic_library( 341 name = "privateca_csharp_gapic", 342 srcs = [":privateca_proto_with_info"], 343 common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", 344 grpc_service_config = "privateca_grpc_service_config.json", 345 rest_numeric_enums = True, 346 service_yaml = "privateca_v1beta1.yaml", 347 transport = "grpc+rest", 348 deps = [ 349 ":privateca_csharp_grpc", 350 ":privateca_csharp_proto", 351 ], 352) 353 354# Open Source Packages 355csharp_gapic_assembly_pkg( 356 name = "google-cloud-security-privateca-v1beta1-csharp", 357 deps = [ 358 ":privateca_csharp_gapic", 359 ":privateca_csharp_grpc", 360 ":privateca_csharp_proto", 361 ], 362) 363 364############################################################################## 365# C++ 366############################################################################## 367# Put your C++ rules here 368