BUILD.bazel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. # This file was automatically generated by BuildFileGenerator
  2. # https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel
  3. # Most of the manual changes to this file will be overwritten.
  4. # It's **only** allowed to change the following rule attribute values:
  5. # - names of *_gapic_assembly_* rules
  6. # - certain parameters of *_gapic_library rules, including but not limited to:
  7. # * extra_protoc_parameters
  8. # * extra_protoc_file_parameters
  9. # The complete list of preserved parameters can be found in the source code.
  10. # This is an API workspace, having public visibility by default makes perfect sense.
  11. package(default_visibility = ["//visibility:public"])
  12. ##############################################################################
  13. # Common
  14. ##############################################################################
  15. load("@rules_proto//proto:defs.bzl", "proto_library")
  16. load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
  17. proto_library(
  18. name = "privateca_proto",
  19. srcs = [
  20. "resources.proto",
  21. "service.proto",
  22. ],
  23. deps = [
  24. "//google/api:annotations_proto",
  25. "//google/api:client_proto",
  26. "//google/api:field_behavior_proto",
  27. "//google/api:resource_proto",
  28. "//google/longrunning:operations_proto",
  29. "@com_google_protobuf//:duration_proto",
  30. "@com_google_protobuf//:field_mask_proto",
  31. "@com_google_protobuf//:timestamp_proto",
  32. "@com_google_protobuf//:wrappers_proto",
  33. ],
  34. )
  35. proto_library_with_info(
  36. name = "privateca_proto_with_info",
  37. deps = [
  38. ":privateca_proto",
  39. "//google/cloud:common_resources_proto",
  40. ],
  41. )
  42. ##############################################################################
  43. # Java
  44. ##############################################################################
  45. load(
  46. "@com_google_googleapis_imports//:imports.bzl",
  47. "java_gapic_assembly_gradle_pkg",
  48. "java_gapic_library",
  49. "java_gapic_test",
  50. "java_grpc_library",
  51. "java_proto_library",
  52. )
  53. java_proto_library(
  54. name = "privateca_java_proto",
  55. deps = [":privateca_proto"],
  56. )
  57. java_grpc_library(
  58. name = "privateca_java_grpc",
  59. srcs = [":privateca_proto"],
  60. deps = [":privateca_java_proto"],
  61. )
  62. java_gapic_library(
  63. name = "privateca_java_gapic",
  64. srcs = [":privateca_proto_with_info"],
  65. grpc_service_config = "privateca_grpc_service_config.json",
  66. rest_numeric_enums = False,
  67. test_deps = [
  68. ":privateca_java_grpc",
  69. ],
  70. transport = "grpc+rest",
  71. deps = [
  72. ":privateca_java_proto",
  73. ],
  74. )
  75. java_gapic_test(
  76. name = "privateca_java_gapic_test_suite",
  77. test_classes = [
  78. "com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClientHttpJsonTest",
  79. "com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClientTest",
  80. ],
  81. runtime_deps = [":privateca_java_gapic_test"],
  82. )
  83. # Open Source Packages
  84. java_gapic_assembly_gradle_pkg(
  85. name = "google-cloud-security-privateca-v1beta1-java",
  86. include_samples = True,
  87. transport = "grpc+rest",
  88. deps = [
  89. ":privateca_java_gapic",
  90. ":privateca_java_grpc",
  91. ":privateca_java_proto",
  92. ":privateca_proto",
  93. ],
  94. )
  95. ##############################################################################
  96. # Go
  97. ##############################################################################
  98. load(
  99. "@com_google_googleapis_imports//:imports.bzl",
  100. "go_gapic_assembly_pkg",
  101. "go_gapic_library",
  102. "go_proto_library",
  103. "go_test",
  104. )
  105. go_proto_library(
  106. name = "privateca_go_proto",
  107. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  108. importpath = "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1",
  109. protos = [":privateca_proto"],
  110. deps = [
  111. "//google/api:annotations_go_proto",
  112. "//google/longrunning:longrunning_go_proto",
  113. ],
  114. )
  115. go_gapic_library(
  116. name = "privateca_go_gapic",
  117. srcs = [":privateca_proto_with_info"],
  118. grpc_service_config = "privateca_grpc_service_config.json",
  119. importpath = "cloud.google.com/go/security/privateca/apiv1beta1;privateca",
  120. rest_numeric_enums = False,
  121. service_yaml = "privateca_v1beta1.yaml",
  122. transport = "grpc+rest",
  123. deps = [
  124. ":privateca_go_proto",
  125. "//google/longrunning:longrunning_go_proto",
  126. "@com_google_cloud_go//longrunning:go_default_library",
  127. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  128. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  129. ],
  130. )
  131. go_test(
  132. name = "privateca_go_gapic_test",
  133. srcs = [":privateca_go_gapic_srcjar_test"],
  134. embed = [":privateca_go_gapic"],
  135. importpath = "cloud.google.com/go/security/privateca/apiv1beta1",
  136. )
  137. # Open Source Packages
  138. go_gapic_assembly_pkg(
  139. name = "gapi-cloud-security-privateca-v1beta1-go",
  140. deps = [
  141. ":privateca_go_gapic",
  142. ":privateca_go_gapic_srcjar-test.srcjar",
  143. ":privateca_go_proto",
  144. ],
  145. )
  146. ##############################################################################
  147. # Python
  148. ##############################################################################
  149. load(
  150. "@com_google_googleapis_imports//:imports.bzl",
  151. "py_gapic_assembly_pkg",
  152. "py_gapic_library",
  153. "py_test",
  154. )
  155. py_gapic_library(
  156. name = "privateca_py_gapic",
  157. srcs = [":privateca_proto"],
  158. grpc_service_config = "privateca_grpc_service_config.json",
  159. opt_args = [
  160. "warehouse-package-name=google-cloud-private-ca",
  161. ],
  162. rest_numeric_enums = False,
  163. transport = "grpc",
  164. )
  165. py_test(
  166. name = "privateca_py_gapic_test",
  167. srcs = [
  168. "privateca_py_gapic_pytest.py",
  169. "privateca_py_gapic_test.py",
  170. ],
  171. legacy_create_init = False,
  172. deps = [":privateca_py_gapic"],
  173. )
  174. py_gapic_assembly_pkg(
  175. name = "security-privateca-v1beta1-py",
  176. deps = [
  177. ":privateca_py_gapic",
  178. ],
  179. )
  180. ##############################################################################
  181. # PHP
  182. ##############################################################################
  183. load(
  184. "@com_google_googleapis_imports//:imports.bzl",
  185. "php_gapic_assembly_pkg",
  186. "php_gapic_library",
  187. "php_grpc_library",
  188. "php_proto_library",
  189. )
  190. php_proto_library(
  191. name = "privateca_php_proto",
  192. deps = [":privateca_proto"],
  193. )
  194. php_grpc_library(
  195. name = "privateca_php_grpc",
  196. srcs = [":privateca_proto"],
  197. deps = [":privateca_php_proto"],
  198. )
  199. php_gapic_library(
  200. name = "privateca_php_gapic",
  201. srcs = [":privateca_proto_with_info"],
  202. grpc_service_config = "privateca_grpc_service_config.json",
  203. rest_numeric_enums = False,
  204. transport = "grpc+rest",
  205. deps = [
  206. ":privateca_php_grpc",
  207. ":privateca_php_proto",
  208. ],
  209. )
  210. # Open Source Packages
  211. php_gapic_assembly_pkg(
  212. name = "google-cloud-security-privateca-v1beta1-php",
  213. deps = [
  214. ":privateca_php_gapic",
  215. ":privateca_php_grpc",
  216. ":privateca_php_proto",
  217. ],
  218. )
  219. ##############################################################################
  220. # Node.js
  221. ##############################################################################
  222. load(
  223. "@com_google_googleapis_imports//:imports.bzl",
  224. "nodejs_gapic_assembly_pkg",
  225. "nodejs_gapic_library",
  226. )
  227. nodejs_gapic_library(
  228. name = "privateca_nodejs_gapic",
  229. package_name = "@google-cloud/security-private-ca",
  230. src = ":privateca_proto_with_info",
  231. extra_protoc_parameters = ["metadata"],
  232. grpc_service_config = "privateca_grpc_service_config.json",
  233. package = "google.cloud.security.privateca.v1beta1",
  234. rest_numeric_enums = False,
  235. service_yaml = "privateca_v1beta1.yaml",
  236. transport = "grpc+rest",
  237. deps = [],
  238. )
  239. nodejs_gapic_assembly_pkg(
  240. name = "security-privateca-v1beta1-nodejs",
  241. deps = [
  242. ":privateca_nodejs_gapic",
  243. ":privateca_proto",
  244. ],
  245. )
  246. ##############################################################################
  247. # Ruby
  248. ##############################################################################
  249. load(
  250. "@com_google_googleapis_imports//:imports.bzl",
  251. "ruby_cloud_gapic_library",
  252. "ruby_gapic_assembly_pkg",
  253. "ruby_grpc_library",
  254. "ruby_proto_library",
  255. )
  256. ruby_proto_library(
  257. name = "privateca_ruby_proto",
  258. deps = [":privateca_proto"],
  259. )
  260. ruby_grpc_library(
  261. name = "privateca_ruby_grpc",
  262. srcs = [":privateca_proto"],
  263. deps = [":privateca_ruby_proto"],
  264. )
  265. ruby_cloud_gapic_library(
  266. name = "privateca_ruby_gapic",
  267. srcs = [":privateca_proto_with_info"],
  268. extra_protoc_parameters = [
  269. "ruby-cloud-gem-name=google-cloud-security-private_ca-v1beta1",
  270. "ruby-cloud-gem-namespace=Google::Cloud::Security::PrivateCA::V1beta1",
  271. "ruby-cloud-env-prefix=PRIVATE_CA",
  272. "ruby-cloud-product-url=https://cloud.google.com/certificate-authority-service/",
  273. "ruby-cloud-api-id=privateca.googleapis.com",
  274. "ruby-cloud-api-shortname=privateca",
  275. ],
  276. grpc_service_config = "privateca_grpc_service_config.json",
  277. rest_numeric_enums = False,
  278. 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).",
  279. ruby_cloud_title = "Certificate Authority Service V1beta1",
  280. deps = [
  281. ":privateca_ruby_grpc",
  282. ":privateca_ruby_proto",
  283. ],
  284. )
  285. # Open Source Packages
  286. ruby_gapic_assembly_pkg(
  287. name = "google-cloud-security-privateca-v1beta1-ruby",
  288. deps = [
  289. ":privateca_ruby_gapic",
  290. ":privateca_ruby_grpc",
  291. ":privateca_ruby_proto",
  292. ],
  293. )
  294. ##############################################################################
  295. # C#
  296. ##############################################################################
  297. load(
  298. "@com_google_googleapis_imports//:imports.bzl",
  299. "csharp_gapic_assembly_pkg",
  300. "csharp_gapic_library",
  301. "csharp_grpc_library",
  302. "csharp_proto_library",
  303. )
  304. csharp_proto_library(
  305. name = "privateca_csharp_proto",
  306. deps = [":privateca_proto"],
  307. )
  308. csharp_grpc_library(
  309. name = "privateca_csharp_grpc",
  310. srcs = [":privateca_proto"],
  311. deps = [":privateca_csharp_proto"],
  312. )
  313. csharp_gapic_library(
  314. name = "privateca_csharp_gapic",
  315. srcs = [":privateca_proto_with_info"],
  316. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  317. grpc_service_config = "privateca_grpc_service_config.json",
  318. rest_numeric_enums = False,
  319. service_yaml = "privateca_v1beta1.yaml",
  320. deps = [
  321. ":privateca_csharp_grpc",
  322. ":privateca_csharp_proto",
  323. ],
  324. )
  325. # Open Source Packages
  326. csharp_gapic_assembly_pkg(
  327. name = "google-cloud-security-privateca-v1beta1-csharp",
  328. deps = [
  329. ":privateca_csharp_gapic",
  330. ":privateca_csharp_grpc",
  331. ":privateca_csharp_proto",
  332. ],
  333. )
  334. ##############################################################################
  335. # C++
  336. ##############################################################################
  337. # Put your C++ rules here