BUILD.bazel 11 KB

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