BUILD.bazel 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  1. # This file was automatically generated by BuildFileGenerator
  2. # https://github.com/googleapis/rules_gapic/tree/master/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 = "networksecurity_proto",
  19. srcs = [
  20. "authorization_policy.proto",
  21. "client_tls_policy.proto",
  22. "common.proto",
  23. "network_security.proto",
  24. "server_tls_policy.proto",
  25. "tls.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//:field_mask_proto",
  34. "@com_google_protobuf//:timestamp_proto",
  35. ],
  36. )
  37. proto_library_with_info(
  38. name = "networksecurity_proto_with_info",
  39. deps = [
  40. ":networksecurity_proto",
  41. "//google/cloud:common_resources_proto",
  42. "//google/cloud/location:location_proto",
  43. "//google/iam/v1:iam_policy_proto",
  44. ],
  45. )
  46. ##############################################################################
  47. # Java
  48. ##############################################################################
  49. load(
  50. "@com_google_googleapis_imports//:imports.bzl",
  51. "java_gapic_assembly_gradle_pkg",
  52. "java_gapic_library",
  53. "java_gapic_test",
  54. "java_grpc_library",
  55. "java_proto_library",
  56. )
  57. java_proto_library(
  58. name = "networksecurity_java_proto",
  59. deps = [":networksecurity_proto"],
  60. )
  61. java_grpc_library(
  62. name = "networksecurity_java_grpc",
  63. srcs = [":networksecurity_proto"],
  64. deps = [":networksecurity_java_proto"],
  65. )
  66. java_gapic_library(
  67. name = "networksecurity_java_gapic",
  68. srcs = [":networksecurity_proto_with_info"],
  69. gapic_yaml = None,
  70. grpc_service_config = "networksecurity_v1beta1_grpc_service_config.json",
  71. rest_numeric_enums = False,
  72. service_yaml = "networksecurity_v1beta1.yaml",
  73. test_deps = [
  74. ":networksecurity_java_grpc",
  75. "//google/cloud/location:location_java_grpc",
  76. "//google/iam/v1:iam_java_grpc",
  77. ],
  78. transport = "grpc+rest",
  79. deps = [
  80. ":networksecurity_java_proto",
  81. "//google/api:api_java_proto",
  82. "//google/cloud/location:location_java_proto",
  83. "//google/iam/v1:iam_java_proto",
  84. ],
  85. )
  86. java_gapic_test(
  87. name = "networksecurity_java_gapic_test_suite",
  88. test_classes = [
  89. "com.google.cloud.networksecurity.v1beta1.NetworkSecurityClientHttpJsonTest",
  90. "com.google.cloud.networksecurity.v1beta1.NetworkSecurityClientTest",
  91. ],
  92. runtime_deps = [":networksecurity_java_gapic_test"],
  93. )
  94. # Open Source Packages
  95. java_gapic_assembly_gradle_pkg(
  96. name = "google-cloud-networksecurity-v1beta1-java",
  97. include_samples = True,
  98. transport = "grpc+rest",
  99. deps = [
  100. ":networksecurity_java_gapic",
  101. ":networksecurity_java_grpc",
  102. ":networksecurity_java_proto",
  103. ":networksecurity_proto",
  104. ],
  105. )
  106. ##############################################################################
  107. # Go
  108. ##############################################################################
  109. load(
  110. "@com_google_googleapis_imports//:imports.bzl",
  111. "go_gapic_assembly_pkg",
  112. "go_gapic_library",
  113. "go_proto_library",
  114. "go_test",
  115. )
  116. go_proto_library(
  117. name = "networksecurity_go_proto",
  118. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  119. importpath = "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1",
  120. protos = [":networksecurity_proto"],
  121. deps = [
  122. "//google/api:annotations_go_proto",
  123. "//google/longrunning:longrunning_go_proto",
  124. ],
  125. )
  126. go_gapic_library(
  127. name = "networksecurity_go_gapic",
  128. srcs = [":networksecurity_proto_with_info"],
  129. grpc_service_config = "networksecurity_v1beta1_grpc_service_config.json",
  130. importpath = "cloud.google.com/go/networksecurity/apiv1beta1;networksecurity",
  131. metadata = True,
  132. rest_numeric_enums = False,
  133. service_yaml = "networksecurity_v1beta1.yaml",
  134. transport = "grpc+rest",
  135. deps = [
  136. ":networksecurity_go_proto",
  137. "//google/cloud/location:location_go_proto",
  138. "//google/iam/v1:iam_go_proto",
  139. "//google/longrunning:longrunning_go_proto",
  140. "@com_google_cloud_go//longrunning:go_default_library",
  141. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  142. ],
  143. )
  144. go_test(
  145. name = "networksecurity_go_gapic_test",
  146. srcs = [":networksecurity_go_gapic_srcjar_test"],
  147. embed = [":networksecurity_go_gapic"],
  148. importpath = "cloud.google.com/go/networksecurity/apiv1beta1",
  149. )
  150. # Open Source Packages
  151. go_gapic_assembly_pkg(
  152. name = "gapi-cloud-networksecurity-v1beta1-go",
  153. deps = [
  154. ":networksecurity_go_gapic",
  155. ":networksecurity_go_gapic_srcjar-metadata.srcjar",
  156. ":networksecurity_go_gapic_srcjar-test.srcjar",
  157. ":networksecurity_go_proto",
  158. ],
  159. )
  160. ##############################################################################
  161. # Python
  162. ##############################################################################
  163. load(
  164. "@com_google_googleapis_imports//:imports.bzl",
  165. "py_gapic_assembly_pkg",
  166. "py_gapic_library",
  167. "py_test",
  168. )
  169. py_gapic_library(
  170. name = "networksecurity_py_gapic",
  171. srcs = [":networksecurity_proto"],
  172. grpc_service_config = "networksecurity_v1beta1_grpc_service_config.json",
  173. opt_args = [
  174. "warehouse-package-name=google-cloud-network-security",
  175. "python-gapic-namespace=google.cloud",
  176. "python-gapic-name=network_security",
  177. ],
  178. rest_numeric_enums = False,
  179. service_yaml = "networksecurity_v1beta1.yaml",
  180. transport = "grpc+rest",
  181. deps = [
  182. "//google/iam/v1:iam_policy_py_proto",
  183. ],
  184. )
  185. py_test(
  186. name = "networksecurity_py_gapic_test",
  187. srcs = [
  188. "networksecurity_py_gapic_pytest.py",
  189. "networksecurity_py_gapic_test.py",
  190. ],
  191. legacy_create_init = False,
  192. deps = [":networksecurity_py_gapic"],
  193. )
  194. # Open Source Packages
  195. py_gapic_assembly_pkg(
  196. name = "networksecurity-v1beta1-py",
  197. deps = [
  198. ":networksecurity_py_gapic",
  199. ],
  200. )
  201. ##############################################################################
  202. # PHP
  203. ##############################################################################
  204. load(
  205. "@com_google_googleapis_imports//:imports.bzl",
  206. "php_gapic_assembly_pkg",
  207. "php_gapic_library",
  208. "php_grpc_library",
  209. "php_proto_library",
  210. )
  211. php_proto_library(
  212. name = "networksecurity_php_proto",
  213. deps = [":networksecurity_proto"],
  214. )
  215. php_grpc_library(
  216. name = "networksecurity_php_grpc",
  217. srcs = [":networksecurity_proto"],
  218. deps = [":networksecurity_php_proto"],
  219. )
  220. php_gapic_library(
  221. name = "networksecurity_php_gapic",
  222. srcs = [":networksecurity_proto_with_info"],
  223. grpc_service_config = "networksecurity_v1beta1_grpc_service_config.json",
  224. rest_numeric_enums = False,
  225. service_yaml = "networksecurity_v1beta1.yaml",
  226. transport = "grpc+rest",
  227. deps = [
  228. ":networksecurity_php_grpc",
  229. ":networksecurity_php_proto",
  230. ],
  231. )
  232. # Open Source Packages
  233. php_gapic_assembly_pkg(
  234. name = "google-cloud-networksecurity-v1beta1-php",
  235. deps = [
  236. ":networksecurity_php_gapic",
  237. ":networksecurity_php_grpc",
  238. ":networksecurity_php_proto",
  239. ],
  240. )
  241. ##############################################################################
  242. # Node.js
  243. ##############################################################################
  244. load(
  245. "@com_google_googleapis_imports//:imports.bzl",
  246. "nodejs_gapic_assembly_pkg",
  247. "nodejs_gapic_library",
  248. )
  249. nodejs_gapic_library(
  250. name = "networksecurity_nodejs_gapic",
  251. package_name = "@google-cloud/network-security",
  252. src = ":networksecurity_proto_with_info",
  253. extra_protoc_parameters = ["metadata"],
  254. grpc_service_config = "networksecurity_v1beta1_grpc_service_config.json",
  255. package = "google.cloud.networksecurity.v1beta1",
  256. rest_numeric_enums = False,
  257. service_yaml = "networksecurity_v1beta1.yaml",
  258. transport = "grpc+rest",
  259. deps = [],
  260. )
  261. nodejs_gapic_assembly_pkg(
  262. name = "networksecurity-v1beta1-nodejs",
  263. deps = [
  264. ":networksecurity_nodejs_gapic",
  265. ":networksecurity_proto",
  266. ],
  267. )
  268. ##############################################################################
  269. # Ruby
  270. ##############################################################################
  271. load(
  272. "@com_google_googleapis_imports//:imports.bzl",
  273. "ruby_cloud_gapic_library",
  274. "ruby_gapic_assembly_pkg",
  275. "ruby_grpc_library",
  276. "ruby_proto_library",
  277. )
  278. ruby_proto_library(
  279. name = "networksecurity_ruby_proto",
  280. deps = [":networksecurity_proto"],
  281. )
  282. ruby_grpc_library(
  283. name = "networksecurity_ruby_grpc",
  284. srcs = [":networksecurity_proto"],
  285. deps = [":networksecurity_ruby_proto"],
  286. )
  287. ruby_cloud_gapic_library(
  288. name = "networksecurity_ruby_gapic",
  289. srcs = [":networksecurity_proto_with_info"],
  290. extra_protoc_parameters = [
  291. "ruby-cloud-api-id=networksecurity.googleapis.com",
  292. "ruby-cloud-api-shortname=networksecurity",
  293. "ruby-cloud-gem-name=google-cloud-network_security-v1beta1",
  294. "ruby-cloud-product-url=https://cloud.google.com/traffic-director/docs/reference/network-security/rest/",
  295. ],
  296. grpc_service_config = "networksecurity_v1beta1_grpc_service_config.json",
  297. rest_numeric_enums = False,
  298. ruby_cloud_description = "The client library for the Google Network Security V1beta1 API.",
  299. ruby_cloud_title = "Network Security V1beta1",
  300. service_yaml = "networksecurity_v1beta1.yaml",
  301. deps = [
  302. ":networksecurity_ruby_grpc",
  303. ":networksecurity_ruby_proto",
  304. ],
  305. )
  306. # Open Source Packages
  307. ruby_gapic_assembly_pkg(
  308. name = "google-cloud-networksecurity-v1beta1-ruby",
  309. deps = [
  310. ":networksecurity_ruby_gapic",
  311. ":networksecurity_ruby_grpc",
  312. ":networksecurity_ruby_proto",
  313. ],
  314. )
  315. ##############################################################################
  316. # C#
  317. ##############################################################################
  318. load(
  319. "@com_google_googleapis_imports//:imports.bzl",
  320. "csharp_gapic_assembly_pkg",
  321. "csharp_gapic_library",
  322. "csharp_grpc_library",
  323. "csharp_proto_library",
  324. )
  325. csharp_proto_library(
  326. name = "networksecurity_csharp_proto",
  327. deps = [":networksecurity_proto"],
  328. )
  329. csharp_grpc_library(
  330. name = "networksecurity_csharp_grpc",
  331. srcs = [":networksecurity_proto"],
  332. deps = [":networksecurity_csharp_proto"],
  333. )
  334. csharp_gapic_library(
  335. name = "networksecurity_csharp_gapic",
  336. srcs = [":networksecurity_proto_with_info"],
  337. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  338. grpc_service_config = "networksecurity_v1beta1_grpc_service_config.json",
  339. rest_numeric_enums = False,
  340. service_yaml = "networksecurity_v1beta1.yaml",
  341. deps = [
  342. ":networksecurity_csharp_grpc",
  343. ":networksecurity_csharp_proto",
  344. ],
  345. )
  346. # Open Source Packages
  347. csharp_gapic_assembly_pkg(
  348. name = "google-cloud-networksecurity-v1beta1-csharp",
  349. deps = [
  350. ":networksecurity_csharp_gapic",
  351. ":networksecurity_csharp_grpc",
  352. ":networksecurity_csharp_proto",
  353. ],
  354. )
  355. ##############################################################################
  356. # C++
  357. ##############################################################################
  358. load(
  359. "@com_google_googleapis_imports//:imports.bzl",
  360. "cc_grpc_library",
  361. "cc_proto_library",
  362. )
  363. cc_proto_library(
  364. name = "networksecurity_cc_proto",
  365. deps = [":networksecurity_proto"],
  366. )
  367. cc_grpc_library(
  368. name = "networksecurity_cc_grpc",
  369. srcs = [":networksecurity_proto"],
  370. grpc_only = True,
  371. deps = [":networksecurity_cc_proto"],
  372. )