BUILD.bazel 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  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 = "orgpolicy_proto",
  19. srcs = [
  20. "constraint.proto",
  21. "orgpolicy.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/type:expr_proto",
  29. "@com_google_protobuf//:empty_proto",
  30. "@com_google_protobuf//:timestamp_proto",
  31. ],
  32. )
  33. proto_library_with_info(
  34. name = "orgpolicy_proto_with_info",
  35. deps = [
  36. ":orgpolicy_proto",
  37. "//google/cloud:common_resources_proto",
  38. ],
  39. )
  40. ##############################################################################
  41. # Java
  42. ##############################################################################
  43. load(
  44. "@com_google_googleapis_imports//:imports.bzl",
  45. "java_gapic_assembly_gradle_pkg",
  46. "java_gapic_library",
  47. "java_gapic_test",
  48. "java_grpc_library",
  49. "java_proto_library",
  50. )
  51. java_proto_library(
  52. name = "orgpolicy_java_proto",
  53. deps = [":orgpolicy_proto"],
  54. )
  55. java_grpc_library(
  56. name = "orgpolicy_java_grpc",
  57. srcs = [":orgpolicy_proto"],
  58. deps = [":orgpolicy_java_proto"],
  59. )
  60. java_gapic_library(
  61. name = "orgpolicy_java_gapic",
  62. srcs = [":orgpolicy_proto_with_info"],
  63. grpc_service_config = "orgpolicy_grpc_service_config.json",
  64. test_deps = [
  65. ":orgpolicy_java_grpc",
  66. ],
  67. deps = [
  68. ":orgpolicy_java_proto",
  69. ],
  70. )
  71. java_gapic_test(
  72. name = "orgpolicy_java_gapic_test_suite",
  73. test_classes = [
  74. "com.google.cloud.orgpolicy.v2.OrgPolicyClientTest",
  75. ],
  76. runtime_deps = [":orgpolicy_java_gapic_test"],
  77. )
  78. # Open Source Packages
  79. java_gapic_assembly_gradle_pkg(
  80. name = "google-cloud-orgpolicy-v2-java",
  81. deps = [
  82. ":orgpolicy_java_gapic",
  83. ":orgpolicy_java_grpc",
  84. ":orgpolicy_java_proto",
  85. ":orgpolicy_proto",
  86. ],
  87. )
  88. ##############################################################################
  89. # Go
  90. ##############################################################################
  91. load(
  92. "@com_google_googleapis_imports//:imports.bzl",
  93. "go_gapic_assembly_pkg",
  94. "go_gapic_library",
  95. "go_proto_library",
  96. "go_test",
  97. )
  98. go_proto_library(
  99. name = "orgpolicy_go_proto",
  100. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  101. importpath = "google.golang.org/genproto/googleapis/cloud/orgpolicy/v2",
  102. protos = [":orgpolicy_proto"],
  103. deps = [
  104. "//google/api:annotations_go_proto",
  105. "//google/type:expr_go_proto",
  106. ],
  107. )
  108. go_gapic_library(
  109. name = "orgpolicy_go_gapic",
  110. srcs = [":orgpolicy_proto_with_info"],
  111. grpc_service_config = "orgpolicy_grpc_service_config.json",
  112. importpath = "cloud.google.com/go/orgpolicy/apiv2;orgpolicy",
  113. service_yaml = "orgpolicy_v2.yaml",
  114. deps = [
  115. ":orgpolicy_go_proto",
  116. ],
  117. )
  118. go_test(
  119. name = "orgpolicy_go_gapic_test",
  120. srcs = [":orgpolicy_go_gapic_srcjar_test"],
  121. embed = [":orgpolicy_go_gapic"],
  122. importpath = "cloud.google.com/go/orgpolicy/apiv2",
  123. )
  124. # Open Source Packages
  125. go_gapic_assembly_pkg(
  126. name = "gapi-cloud-orgpolicy-v2-go",
  127. deps = [
  128. ":orgpolicy_go_gapic",
  129. ":orgpolicy_go_gapic_srcjar-test.srcjar",
  130. ":orgpolicy_go_proto",
  131. ],
  132. )
  133. ##############################################################################
  134. # Python
  135. ##############################################################################
  136. load(
  137. "@com_google_googleapis_imports//:imports.bzl",
  138. "py_gapic_assembly_pkg",
  139. "py_gapic_library",
  140. )
  141. py_gapic_library(
  142. name = "orgpolicy_py_gapic",
  143. srcs = [":orgpolicy_proto"],
  144. grpc_service_config = "orgpolicy_grpc_service_config.json",
  145. )
  146. # Open Source Packages
  147. py_gapic_assembly_pkg(
  148. name = "orgpolicy-v2-py",
  149. deps = [
  150. ":orgpolicy_py_gapic",
  151. ],
  152. )
  153. ##############################################################################
  154. # PHP
  155. ##############################################################################
  156. load(
  157. "@com_google_googleapis_imports//:imports.bzl",
  158. "php_gapic_assembly_pkg",
  159. "php_gapic_library",
  160. "php_grpc_library",
  161. "php_proto_library",
  162. )
  163. php_proto_library(
  164. name = "orgpolicy_php_proto",
  165. deps = [":orgpolicy_proto"],
  166. )
  167. php_grpc_library(
  168. name = "orgpolicy_php_grpc",
  169. srcs = [":orgpolicy_proto"],
  170. deps = [":orgpolicy_php_proto"],
  171. )
  172. php_gapic_library(
  173. name = "orgpolicy_php_gapic",
  174. srcs = [":orgpolicy_proto_with_info"],
  175. grpc_service_config = "orgpolicy_grpc_service_config.json",
  176. deps = [
  177. ":orgpolicy_php_grpc",
  178. ":orgpolicy_php_proto",
  179. ],
  180. )
  181. # Open Source Packages
  182. php_gapic_assembly_pkg(
  183. name = "google-cloud-orgpolicy-v2-php",
  184. deps = [
  185. ":orgpolicy_php_gapic",
  186. ":orgpolicy_php_grpc",
  187. ":orgpolicy_php_proto",
  188. ],
  189. )
  190. ##############################################################################
  191. # Node.js
  192. ##############################################################################
  193. load(
  194. "@com_google_googleapis_imports//:imports.bzl",
  195. "nodejs_gapic_assembly_pkg",
  196. "nodejs_gapic_library",
  197. )
  198. nodejs_gapic_library(
  199. name = "orgpolicy_nodejs_gapic",
  200. package_name = "@google-cloud/org-policy",
  201. src = ":orgpolicy_proto_with_info",
  202. extra_protoc_parameters = ["metadata"],
  203. grpc_service_config = "orgpolicy_grpc_service_config.json",
  204. package = "google.cloud.orgpolicy.v2",
  205. service_yaml = "orgpolicy_v2.yaml",
  206. deps = [],
  207. )
  208. nodejs_gapic_assembly_pkg(
  209. name = "orgpolicy-v2-nodejs",
  210. deps = [
  211. ":orgpolicy_nodejs_gapic",
  212. ":orgpolicy_proto",
  213. ],
  214. )
  215. ##############################################################################
  216. # Ruby
  217. ##############################################################################
  218. load(
  219. "@com_google_googleapis_imports//:imports.bzl",
  220. "ruby_cloud_gapic_library",
  221. "ruby_gapic_assembly_pkg",
  222. "ruby_grpc_library",
  223. "ruby_proto_library",
  224. )
  225. ruby_proto_library(
  226. name = "orgpolicy_ruby_proto",
  227. deps = [":orgpolicy_proto"],
  228. )
  229. ruby_grpc_library(
  230. name = "orgpolicy_ruby_grpc",
  231. srcs = [":orgpolicy_proto"],
  232. deps = [":orgpolicy_ruby_proto"],
  233. )
  234. ruby_cloud_gapic_library(
  235. name = "orgpolicy_ruby_gapic",
  236. srcs = [":orgpolicy_proto_with_info"],
  237. extra_protoc_parameters = [
  238. "ruby-cloud-gem-name=google-cloud-org_policy-v2",
  239. "ruby-cloud-env-prefix=ORG_POLICY",
  240. "ruby-cloud-product-url=https://cloud.google.com/resource-manager/docs/organization-policy/overview",
  241. "ruby-cloud-api-id=orgpolicy.googleapis.com",
  242. "ruby-cloud-api-shortname=orgpolicy",
  243. ],
  244. grpc_service_config = "orgpolicy_grpc_service_config.json",
  245. ruby_cloud_description = "The Cloud Org Policy service provides a simple mechanism for organizations to restrict the allowed configurations across their entire Cloud Resource hierarchy.",
  246. ruby_cloud_title = "Organization Policy V2",
  247. deps = [
  248. ":orgpolicy_ruby_grpc",
  249. ":orgpolicy_ruby_proto",
  250. ],
  251. )
  252. # Open Source Packages
  253. ruby_gapic_assembly_pkg(
  254. name = "google-cloud-orgpolicy-v2-ruby",
  255. deps = [
  256. ":orgpolicy_ruby_gapic",
  257. ":orgpolicy_ruby_grpc",
  258. ":orgpolicy_ruby_proto",
  259. ],
  260. )
  261. ##############################################################################
  262. # C#
  263. ##############################################################################
  264. load(
  265. "@com_google_googleapis_imports//:imports.bzl",
  266. "csharp_gapic_assembly_pkg",
  267. "csharp_gapic_library",
  268. "csharp_grpc_library",
  269. "csharp_proto_library",
  270. )
  271. csharp_proto_library(
  272. name = "orgpolicy_csharp_proto",
  273. deps = [":orgpolicy_proto"],
  274. )
  275. csharp_grpc_library(
  276. name = "orgpolicy_csharp_grpc",
  277. srcs = [":orgpolicy_proto"],
  278. deps = [":orgpolicy_csharp_proto"],
  279. )
  280. csharp_gapic_library(
  281. name = "orgpolicy_csharp_gapic",
  282. srcs = [":orgpolicy_proto_with_info"],
  283. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  284. grpc_service_config = "orgpolicy_grpc_service_config.json",
  285. deps = [
  286. ":orgpolicy_csharp_grpc",
  287. ":orgpolicy_csharp_proto",
  288. ],
  289. )
  290. # Open Source Packages
  291. csharp_gapic_assembly_pkg(
  292. name = "google-cloud-orgpolicy-v2-csharp",
  293. deps = [
  294. ":orgpolicy_csharp_gapic",
  295. ":orgpolicy_csharp_grpc",
  296. ":orgpolicy_csharp_proto",
  297. ],
  298. )
  299. ##############################################################################
  300. # C++
  301. ##############################################################################
  302. # Put your C++ rules here