BUILD.bazel 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  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. test_deps = [
  67. ":securitycenter_java_grpc",
  68. "//google/iam/v1:iam_java_grpc",
  69. ],
  70. deps = [
  71. ":securitycenter_java_proto",
  72. "//google/iam/v1:iam_java_proto",
  73. ],
  74. )
  75. java_gapic_test(
  76. name = "securitycenter_java_gapic_test_suite",
  77. test_classes = [
  78. "com.google.cloud.securitycenter.v1beta1.SecurityCenterClientTest",
  79. ],
  80. runtime_deps = [":securitycenter_java_gapic_test"],
  81. )
  82. # Open Source Packages
  83. java_gapic_assembly_gradle_pkg(
  84. name = "google-cloud-securitycenter-v1beta1-java",
  85. deps = [
  86. ":securitycenter_java_gapic",
  87. ":securitycenter_java_grpc",
  88. ":securitycenter_java_proto",
  89. ":securitycenter_proto",
  90. ],
  91. )
  92. ##############################################################################
  93. # Go
  94. ##############################################################################
  95. load(
  96. "@com_google_googleapis_imports//:imports.bzl",
  97. "go_gapic_assembly_pkg",
  98. "go_gapic_library",
  99. "go_proto_library",
  100. "go_test",
  101. )
  102. go_proto_library(
  103. name = "securitycenter_go_proto",
  104. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  105. importpath = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1",
  106. protos = [":securitycenter_proto"],
  107. deps = [
  108. "//google/api:annotations_go_proto",
  109. "//google/iam/v1:iam_go_proto",
  110. "//google/longrunning:longrunning_go_proto",
  111. ],
  112. )
  113. go_gapic_library(
  114. name = "securitycenter_go_gapic",
  115. srcs = [":securitycenter_proto_with_info"],
  116. grpc_service_config = "securitycenter_grpc_service_config.json",
  117. importpath = "cloud.google.com/go/securitycenter/apiv1beta1;securitycenter",
  118. service_yaml = "securitycenter_v1beta1.yaml",
  119. deps = [
  120. ":securitycenter_go_proto",
  121. "//google/iam/v1:iam_go_proto",
  122. "//google/longrunning:longrunning_go_proto",
  123. "@com_google_cloud_go//longrunning:go_default_library",
  124. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  125. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  126. "@io_bazel_rules_go//proto/wkt:struct_go_proto",
  127. ],
  128. )
  129. go_test(
  130. name = "securitycenter_go_gapic_test",
  131. srcs = [":securitycenter_go_gapic_srcjar_test"],
  132. embed = [":securitycenter_go_gapic"],
  133. importpath = "cloud.google.com/go/securitycenter/apiv1beta1",
  134. )
  135. # Open Source Packages
  136. go_gapic_assembly_pkg(
  137. name = "gapi-cloud-securitycenter-v1beta1-go",
  138. deps = [
  139. ":securitycenter_go_gapic",
  140. ":securitycenter_go_gapic_srcjar-test.srcjar",
  141. ":securitycenter_go_proto",
  142. ],
  143. )
  144. ##############################################################################
  145. # Python
  146. ##############################################################################
  147. load(
  148. "@com_google_googleapis_imports//:imports.bzl",
  149. "py_gapic_assembly_pkg",
  150. "py_gapic_library",
  151. )
  152. py_gapic_library(
  153. name = "securitycenter_py_gapic",
  154. srcs = [":securitycenter_proto"],
  155. grpc_service_config = "securitycenter_grpc_service_config.json",
  156. )
  157. # Open Source Packages
  158. py_gapic_assembly_pkg(
  159. name = "securitycenter-v1beta1-py",
  160. deps = [
  161. ":securitycenter_py_gapic",
  162. ],
  163. )
  164. ##############################################################################
  165. # PHP
  166. ##############################################################################
  167. load(
  168. "@com_google_googleapis_imports//:imports.bzl",
  169. "php_gapic_assembly_pkg",
  170. "php_gapic_library",
  171. "php_grpc_library",
  172. "php_proto_library",
  173. )
  174. php_proto_library(
  175. name = "securitycenter_php_proto",
  176. deps = [":securitycenter_proto"],
  177. )
  178. php_grpc_library(
  179. name = "securitycenter_php_grpc",
  180. srcs = [":securitycenter_proto"],
  181. deps = [":securitycenter_php_proto"],
  182. )
  183. php_gapic_library(
  184. name = "securitycenter_php_gapic",
  185. srcs = [":securitycenter_proto_with_info"],
  186. grpc_service_config = "securitycenter_grpc_service_config.json",
  187. service_yaml = "securitycenter_v1beta1.yaml",
  188. deps = [
  189. ":securitycenter_php_grpc",
  190. ":securitycenter_php_proto",
  191. ],
  192. )
  193. # Open Source Packages
  194. php_gapic_assembly_pkg(
  195. name = "google-cloud-securitycenter-v1beta1-php",
  196. deps = [
  197. ":securitycenter_php_gapic",
  198. ":securitycenter_php_grpc",
  199. ":securitycenter_php_proto",
  200. ],
  201. )
  202. ##############################################################################
  203. # Node.js
  204. ##############################################################################
  205. load(
  206. "@com_google_googleapis_imports//:imports.bzl",
  207. "nodejs_gapic_assembly_pkg",
  208. "nodejs_gapic_library",
  209. )
  210. nodejs_gapic_library(
  211. name = "securitycenter_nodejs_gapic",
  212. package_name = "@google-cloud/security-center",
  213. src = ":securitycenter_proto_with_info",
  214. extra_protoc_parameters = ["metadata"],
  215. grpc_service_config = "securitycenter_grpc_service_config.json",
  216. package = "google.cloud.securitycenter.v1beta1",
  217. service_yaml = "securitycenter_v1beta1.yaml",
  218. deps = [],
  219. )
  220. nodejs_gapic_assembly_pkg(
  221. name = "securitycenter-v1beta1-nodejs",
  222. deps = [
  223. ":securitycenter_nodejs_gapic",
  224. ":securitycenter_proto",
  225. ],
  226. )
  227. ##############################################################################
  228. # Ruby
  229. ##############################################################################
  230. load(
  231. "@com_google_googleapis_imports//:imports.bzl",
  232. "ruby_gapic_assembly_pkg",
  233. "ruby_cloud_gapic_library",
  234. "ruby_grpc_library",
  235. "ruby_proto_library",
  236. )
  237. ruby_proto_library(
  238. name = "securitycenter_ruby_proto",
  239. deps = [":securitycenter_proto"],
  240. )
  241. ruby_grpc_library(
  242. name = "securitycenter_ruby_grpc",
  243. srcs = [":securitycenter_proto"],
  244. deps = [":securitycenter_ruby_proto"],
  245. )
  246. ruby_cloud_gapic_library(
  247. name = "securitycenter_ruby_gapic",
  248. srcs = [":securitycenter_proto_with_info",],
  249. extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-securitycenter-v1beta1"],
  250. deps = [
  251. ":securitycenter_ruby_grpc",
  252. ":securitycenter_ruby_proto",
  253. ],
  254. )
  255. # Open Source Packages
  256. ruby_gapic_assembly_pkg(
  257. name = "google-cloud-securitycenter-v1beta1-ruby",
  258. deps = [
  259. ":securitycenter_ruby_gapic",
  260. ":securitycenter_ruby_grpc",
  261. ":securitycenter_ruby_proto",
  262. ],
  263. )
  264. ##############################################################################
  265. # C#
  266. ##############################################################################
  267. load(
  268. "@com_google_googleapis_imports//:imports.bzl",
  269. "csharp_gapic_assembly_pkg",
  270. "csharp_gapic_library",
  271. "csharp_grpc_library",
  272. "csharp_proto_library",
  273. )
  274. csharp_proto_library(
  275. name = "securitycenter_csharp_proto",
  276. deps = [":securitycenter_proto"],
  277. )
  278. csharp_grpc_library(
  279. name = "securitycenter_csharp_grpc",
  280. srcs = [":securitycenter_proto"],
  281. deps = [":securitycenter_csharp_proto"],
  282. )
  283. csharp_gapic_library(
  284. name = "securitycenter_csharp_gapic",
  285. srcs = [":securitycenter_proto_with_info"],
  286. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  287. grpc_service_config = "securitycenter_grpc_service_config.json",
  288. deps = [
  289. ":securitycenter_csharp_grpc",
  290. ":securitycenter_csharp_proto",
  291. ],
  292. )
  293. # Open Source Packages
  294. csharp_gapic_assembly_pkg(
  295. name = "google-cloud-securitycenter-v1beta1-csharp",
  296. deps = [
  297. ":securitycenter_csharp_gapic",
  298. ":securitycenter_csharp_grpc",
  299. ":securitycenter_csharp_proto",
  300. ],
  301. )