BUILD.bazel 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. # This file was automatically generated by BuildFileGenerator
  2. # This is an API workspace, having public visibility by default makes perfect sense.
  3. package(default_visibility = ["//visibility:public"])
  4. ##############################################################################
  5. # Common
  6. ##############################################################################
  7. load("@rules_proto//proto:defs.bzl", "proto_library")
  8. load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
  9. proto_library(
  10. name = "securitycenter_proto",
  11. srcs = [
  12. "asset.proto",
  13. "finding.proto",
  14. "organization_settings.proto",
  15. "run_asset_discovery_response.proto",
  16. "security_marks.proto",
  17. "securitycenter_service.proto",
  18. "source.proto",
  19. ],
  20. deps = [
  21. "//google/api:annotations_proto",
  22. "//google/api:client_proto",
  23. "//google/api:field_behavior_proto",
  24. "//google/api:resource_proto",
  25. "//google/iam/v1:iam_policy_proto",
  26. "//google/iam/v1:policy_proto",
  27. "//google/longrunning:operations_proto",
  28. "@com_google_protobuf//:duration_proto",
  29. "@com_google_protobuf//:empty_proto",
  30. "@com_google_protobuf//:field_mask_proto",
  31. "@com_google_protobuf//:struct_proto",
  32. "@com_google_protobuf//:timestamp_proto",
  33. ],
  34. )
  35. proto_library_with_info(
  36. name = "securitycenter_proto_with_info",
  37. deps = [
  38. ":securitycenter_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 = "securitycenter_java_proto",
  55. deps = [":securitycenter_proto"],
  56. )
  57. java_grpc_library(
  58. name = "securitycenter_java_grpc",
  59. srcs = [":securitycenter_proto"],
  60. deps = [":securitycenter_java_proto"],
  61. )
  62. java_gapic_library(
  63. name = "securitycenter_java_gapic",
  64. srcs = [":securitycenter_proto_with_info"],
  65. grpc_service_config = "securitycenter_grpc_service_config.json",
  66. rest_numeric_enums = False,
  67. test_deps = [
  68. ":securitycenter_java_grpc",
  69. "//google/iam/v1:iam_java_grpc",
  70. ],
  71. transport = "grpc+rest",
  72. deps = [
  73. ":securitycenter_java_proto",
  74. "//google/iam/v1:iam_java_proto",
  75. ],
  76. )
  77. java_gapic_test(
  78. name = "securitycenter_java_gapic_test_suite",
  79. test_classes = [
  80. "com.google.cloud.securitycenter.v1beta1.SecurityCenterClientHttpJsonTest",
  81. "com.google.cloud.securitycenter.v1beta1.SecurityCenterClientTest",
  82. ],
  83. runtime_deps = [":securitycenter_java_gapic_test"],
  84. )
  85. # Open Source Packages
  86. java_gapic_assembly_gradle_pkg(
  87. name = "google-cloud-securitycenter-v1beta1-java",
  88. include_samples = True,
  89. transport = "grpc+rest",
  90. deps = [
  91. ":securitycenter_java_gapic",
  92. ":securitycenter_java_grpc",
  93. ":securitycenter_java_proto",
  94. ":securitycenter_proto",
  95. ],
  96. )
  97. ##############################################################################
  98. # Go
  99. ##############################################################################
  100. load(
  101. "@com_google_googleapis_imports//:imports.bzl",
  102. "go_gapic_assembly_pkg",
  103. "go_gapic_library",
  104. "go_proto_library",
  105. "go_test",
  106. )
  107. go_proto_library(
  108. name = "securitycenter_go_proto",
  109. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  110. importpath = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1",
  111. protos = [":securitycenter_proto"],
  112. deps = [
  113. "//google/api:annotations_go_proto",
  114. "//google/iam/v1:iam_go_proto",
  115. "//google/longrunning:longrunning_go_proto",
  116. ],
  117. )
  118. go_gapic_library(
  119. name = "securitycenter_go_gapic",
  120. srcs = [":securitycenter_proto_with_info"],
  121. grpc_service_config = "securitycenter_grpc_service_config.json",
  122. importpath = "cloud.google.com/go/securitycenter/apiv1beta1;securitycenter",
  123. rest_numeric_enums = False,
  124. service_yaml = "securitycenter_v1beta1.yaml",
  125. transport = "grpc+rest",
  126. deps = [
  127. ":securitycenter_go_proto",
  128. "//google/iam/v1:iam_go_proto",
  129. "//google/longrunning:longrunning_go_proto",
  130. "@com_google_cloud_go//longrunning:go_default_library",
  131. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  132. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  133. "@io_bazel_rules_go//proto/wkt:struct_go_proto",
  134. ],
  135. )
  136. go_test(
  137. name = "securitycenter_go_gapic_test",
  138. srcs = [":securitycenter_go_gapic_srcjar_test"],
  139. embed = [":securitycenter_go_gapic"],
  140. importpath = "cloud.google.com/go/securitycenter/apiv1beta1",
  141. )
  142. # Open Source Packages
  143. go_gapic_assembly_pkg(
  144. name = "gapi-cloud-securitycenter-v1beta1-go",
  145. deps = [
  146. ":securitycenter_go_gapic",
  147. ":securitycenter_go_gapic_srcjar-test.srcjar",
  148. ":securitycenter_go_proto",
  149. ],
  150. )
  151. ##############################################################################
  152. # Python
  153. ##############################################################################
  154. load(
  155. "@com_google_googleapis_imports//:imports.bzl",
  156. "py_gapic_assembly_pkg",
  157. "py_gapic_library",
  158. "py_test",
  159. )
  160. py_gapic_library(
  161. name = "securitycenter_py_gapic",
  162. srcs = [":securitycenter_proto"],
  163. grpc_service_config = "securitycenter_grpc_service_config.json",
  164. rest_numeric_enums = False,
  165. transport = "grpc",
  166. deps = [
  167. "//google/iam/v1:iam_policy_py_proto",
  168. ],
  169. )
  170. py_test(
  171. name = "securitycenter_py_gapic_test",
  172. srcs = [
  173. "securitycenter_py_gapic_pytest.py",
  174. "securitycenter_py_gapic_test.py",
  175. ],
  176. legacy_create_init = False,
  177. deps = [":securitycenter_py_gapic"],
  178. )
  179. # Open Source Packages
  180. py_gapic_assembly_pkg(
  181. name = "securitycenter-v1beta1-py",
  182. deps = [
  183. ":securitycenter_py_gapic",
  184. ],
  185. )
  186. ##############################################################################
  187. # PHP
  188. ##############################################################################
  189. load(
  190. "@com_google_googleapis_imports//:imports.bzl",
  191. "php_gapic_assembly_pkg",
  192. "php_gapic_library",
  193. "php_grpc_library",
  194. "php_proto_library",
  195. )
  196. php_proto_library(
  197. name = "securitycenter_php_proto",
  198. deps = [":securitycenter_proto"],
  199. )
  200. php_grpc_library(
  201. name = "securitycenter_php_grpc",
  202. srcs = [":securitycenter_proto"],
  203. deps = [":securitycenter_php_proto"],
  204. )
  205. php_gapic_library(
  206. name = "securitycenter_php_gapic",
  207. srcs = [":securitycenter_proto_with_info"],
  208. grpc_service_config = "securitycenter_grpc_service_config.json",
  209. rest_numeric_enums = False,
  210. service_yaml = "securitycenter_v1beta1.yaml",
  211. transport = "grpc+rest",
  212. deps = [
  213. ":securitycenter_php_grpc",
  214. ":securitycenter_php_proto",
  215. ],
  216. )
  217. # Open Source Packages
  218. php_gapic_assembly_pkg(
  219. name = "google-cloud-securitycenter-v1beta1-php",
  220. deps = [
  221. ":securitycenter_php_gapic",
  222. ":securitycenter_php_grpc",
  223. ":securitycenter_php_proto",
  224. ],
  225. )
  226. ##############################################################################
  227. # Node.js
  228. ##############################################################################
  229. load(
  230. "@com_google_googleapis_imports//:imports.bzl",
  231. "nodejs_gapic_assembly_pkg",
  232. "nodejs_gapic_library",
  233. )
  234. nodejs_gapic_library(
  235. name = "securitycenter_nodejs_gapic",
  236. package_name = "@google-cloud/security-center",
  237. src = ":securitycenter_proto_with_info",
  238. extra_protoc_parameters = ["metadata"],
  239. grpc_service_config = "securitycenter_grpc_service_config.json",
  240. package = "google.cloud.securitycenter.v1beta1",
  241. rest_numeric_enums = False,
  242. service_yaml = "securitycenter_v1beta1.yaml",
  243. transport = "grpc+rest",
  244. deps = [],
  245. )
  246. nodejs_gapic_assembly_pkg(
  247. name = "securitycenter-v1beta1-nodejs",
  248. deps = [
  249. ":securitycenter_nodejs_gapic",
  250. ":securitycenter_proto",
  251. ],
  252. )
  253. ##############################################################################
  254. # Ruby
  255. ##############################################################################
  256. load(
  257. "@com_google_googleapis_imports//:imports.bzl",
  258. "ruby_cloud_gapic_library",
  259. "ruby_gapic_assembly_pkg",
  260. "ruby_grpc_library",
  261. "ruby_proto_library",
  262. )
  263. ruby_proto_library(
  264. name = "securitycenter_ruby_proto",
  265. deps = [":securitycenter_proto"],
  266. )
  267. ruby_grpc_library(
  268. name = "securitycenter_ruby_grpc",
  269. srcs = [":securitycenter_proto"],
  270. deps = [":securitycenter_ruby_proto"],
  271. )
  272. ruby_cloud_gapic_library(
  273. name = "securitycenter_ruby_gapic",
  274. srcs = [":securitycenter_proto_with_info"],
  275. extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-securitycenter-v1beta1"],
  276. rest_numeric_enums = False,
  277. deps = [
  278. ":securitycenter_ruby_grpc",
  279. ":securitycenter_ruby_proto",
  280. ],
  281. )
  282. # Open Source Packages
  283. ruby_gapic_assembly_pkg(
  284. name = "google-cloud-securitycenter-v1beta1-ruby",
  285. deps = [
  286. ":securitycenter_ruby_gapic",
  287. ":securitycenter_ruby_grpc",
  288. ":securitycenter_ruby_proto",
  289. ],
  290. )
  291. ##############################################################################
  292. # C#
  293. ##############################################################################
  294. load(
  295. "@com_google_googleapis_imports//:imports.bzl",
  296. "csharp_gapic_assembly_pkg",
  297. "csharp_gapic_library",
  298. "csharp_grpc_library",
  299. "csharp_proto_library",
  300. )
  301. csharp_proto_library(
  302. name = "securitycenter_csharp_proto",
  303. deps = [":securitycenter_proto"],
  304. )
  305. csharp_grpc_library(
  306. name = "securitycenter_csharp_grpc",
  307. srcs = [":securitycenter_proto"],
  308. deps = [":securitycenter_csharp_proto"],
  309. )
  310. csharp_gapic_library(
  311. name = "securitycenter_csharp_gapic",
  312. srcs = [":securitycenter_proto_with_info"],
  313. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  314. grpc_service_config = "securitycenter_grpc_service_config.json",
  315. rest_numeric_enums = False,
  316. service_yaml = "securitycenter_v1beta1.yaml",
  317. deps = [
  318. ":securitycenter_csharp_grpc",
  319. ":securitycenter_csharp_proto",
  320. ],
  321. )
  322. # Open Source Packages
  323. csharp_gapic_assembly_pkg(
  324. name = "google-cloud-securitycenter-v1beta1-csharp",
  325. deps = [
  326. ":securitycenter_csharp_gapic",
  327. ":securitycenter_csharp_grpc",
  328. ":securitycenter_csharp_proto",
  329. ],
  330. )