BUILD.bazel 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  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 = "policytroubleshooter_proto",
  19. srcs = [
  20. "checker.proto",
  21. "explanations.proto",
  22. ],
  23. deps = [
  24. "//google/api:annotations_proto",
  25. "//google/api:client_proto",
  26. "//google/api:field_behavior_proto",
  27. "//google/iam/v1:policy_proto",
  28. "//google/type:expr_proto",
  29. ],
  30. )
  31. proto_library_with_info(
  32. name = "policytroubleshooter_proto_with_info",
  33. deps = [
  34. ":policytroubleshooter_proto",
  35. "//google/cloud:common_resources_proto",
  36. ],
  37. )
  38. ##############################################################################
  39. # Java
  40. ##############################################################################
  41. load(
  42. "@com_google_googleapis_imports//:imports.bzl",
  43. "java_gapic_assembly_gradle_pkg",
  44. "java_gapic_library",
  45. "java_gapic_test",
  46. "java_grpc_library",
  47. "java_proto_library",
  48. )
  49. java_proto_library(
  50. name = "policytroubleshooter_java_proto",
  51. deps = [":policytroubleshooter_proto"],
  52. )
  53. java_grpc_library(
  54. name = "policytroubleshooter_java_grpc",
  55. srcs = [":policytroubleshooter_proto"],
  56. deps = [":policytroubleshooter_java_proto"],
  57. )
  58. java_gapic_library(
  59. name = "policytroubleshooter_java_gapic",
  60. srcs = [":policytroubleshooter_proto_with_info"],
  61. grpc_service_config = "checker_grpc_service_config.json",
  62. rest_numeric_enums = False,
  63. test_deps = [
  64. ":policytroubleshooter_java_grpc",
  65. "//google/iam/v1:iam_java_grpc",
  66. ],
  67. transport = "grpc+rest",
  68. deps = [
  69. ":policytroubleshooter_java_proto",
  70. "//google/iam/v1:iam_java_proto",
  71. ],
  72. )
  73. java_gapic_test(
  74. name = "policytroubleshooter_java_gapic_test_suite",
  75. test_classes = [
  76. "com.google.cloud.policytroubleshooter.v1.IamCheckerClientHttpJsonTest",
  77. "com.google.cloud.policytroubleshooter.v1.IamCheckerClientTest",
  78. ],
  79. runtime_deps = [":policytroubleshooter_java_gapic_test"],
  80. )
  81. # Open Source Packages
  82. java_gapic_assembly_gradle_pkg(
  83. name = "google-cloud-policytroubleshooter-v1-java",
  84. include_samples = True,
  85. transport = "grpc+rest",
  86. deps = [
  87. ":policytroubleshooter_java_gapic",
  88. ":policytroubleshooter_java_grpc",
  89. ":policytroubleshooter_java_proto",
  90. ":policytroubleshooter_proto",
  91. ],
  92. )
  93. ##############################################################################
  94. # Go
  95. ##############################################################################
  96. load(
  97. "@com_google_googleapis_imports//:imports.bzl",
  98. "go_gapic_assembly_pkg",
  99. "go_gapic_library",
  100. "go_proto_library",
  101. "go_test",
  102. )
  103. go_proto_library(
  104. name = "policytroubleshooter_go_proto",
  105. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  106. importpath = "google.golang.org/genproto/googleapis/cloud/policytroubleshooter/v1",
  107. protos = [":policytroubleshooter_proto"],
  108. deps = [
  109. "//google/api:annotations_go_proto",
  110. "//google/iam/v1:iam_go_proto",
  111. "//google/type:expr_go_proto",
  112. ],
  113. )
  114. go_gapic_library(
  115. name = "policytroubleshooter_go_gapic",
  116. srcs = [":policytroubleshooter_proto_with_info"],
  117. grpc_service_config = "checker_grpc_service_config.json",
  118. importpath = "cloud.google.com/go/policytroubleshooter/apiv1;policytroubleshooter",
  119. rest_numeric_enums = False,
  120. service_yaml = "policytroubleshooter_v1.yaml",
  121. transport = "grpc+rest",
  122. deps = [
  123. ":policytroubleshooter_go_proto",
  124. "//google/iam/v1:iam_go_proto",
  125. ],
  126. )
  127. go_test(
  128. name = "policytroubleshooter_go_gapic_test",
  129. srcs = [":policytroubleshooter_go_gapic_srcjar_test"],
  130. embed = [":policytroubleshooter_go_gapic"],
  131. importpath = "cloud.google.com/go/policytroubleshooter/apiv1",
  132. )
  133. # Open Source Packages
  134. go_gapic_assembly_pkg(
  135. name = "gapi-cloud-policytroubleshooter-v1-go",
  136. deps = [
  137. ":policytroubleshooter_go_gapic",
  138. ":policytroubleshooter_go_gapic_srcjar-test.srcjar",
  139. ":policytroubleshooter_go_proto",
  140. ],
  141. )
  142. ##############################################################################
  143. # Python
  144. ##############################################################################
  145. load(
  146. "@com_google_googleapis_imports//:imports.bzl",
  147. "py_gapic_assembly_pkg",
  148. "py_gapic_library",
  149. "py_test",
  150. )
  151. py_gapic_library(
  152. name = "policytroubleshooter_py_gapic",
  153. srcs = [":policytroubleshooter_proto"],
  154. grpc_service_config = "checker_grpc_service_config.json",
  155. opt_args = ["warehouse-package-name=google-cloud-policy-troubleshooter"],
  156. rest_numeric_enums = False,
  157. transport = "grpc",
  158. deps = [
  159. "//google/iam/v1:iam_policy_py_proto",
  160. ],
  161. )
  162. py_test(
  163. name = "policytroubleshooter_py_gapic_test",
  164. srcs = [
  165. "policytroubleshooter_py_gapic_pytest.py",
  166. "policytroubleshooter_py_gapic_test.py",
  167. ],
  168. legacy_create_init = False,
  169. deps = [":policytroubleshooter_py_gapic"],
  170. )
  171. # Open Source Packages
  172. py_gapic_assembly_pkg(
  173. name = "google-cloud-policytroubleshooter-v1-py",
  174. deps = [
  175. ":policytroubleshooter_py_gapic",
  176. ],
  177. )
  178. ##############################################################################
  179. # PHP
  180. ##############################################################################
  181. load(
  182. "@com_google_googleapis_imports//:imports.bzl",
  183. "php_gapic_assembly_pkg",
  184. "php_gapic_library",
  185. "php_grpc_library",
  186. "php_proto_library",
  187. )
  188. php_proto_library(
  189. name = "policytroubleshooter_php_proto",
  190. deps = [":policytroubleshooter_proto"],
  191. )
  192. php_grpc_library(
  193. name = "policytroubleshooter_php_grpc",
  194. srcs = [":policytroubleshooter_proto"],
  195. deps = [":policytroubleshooter_php_proto"],
  196. )
  197. php_gapic_library(
  198. name = "policytroubleshooter_php_gapic",
  199. srcs = [":policytroubleshooter_proto_with_info"],
  200. grpc_service_config = "checker_grpc_service_config.json",
  201. rest_numeric_enums = False,
  202. transport = "grpc+rest",
  203. deps = [
  204. ":policytroubleshooter_php_grpc",
  205. ":policytroubleshooter_php_proto",
  206. ],
  207. )
  208. # Open Source Packages
  209. php_gapic_assembly_pkg(
  210. name = "google-cloud-policytroubleshooter-v1-php",
  211. deps = [
  212. ":policytroubleshooter_php_gapic",
  213. ":policytroubleshooter_php_grpc",
  214. ":policytroubleshooter_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 = "policytroubleshooter_nodejs_gapic",
  227. package_name = "@google-cloud/policy-troubleshooter",
  228. src = ":policytroubleshooter_proto_with_info",
  229. extra_protoc_parameters = ["metadata"],
  230. grpc_service_config = "checker_grpc_service_config.json",
  231. package = "google.cloud.policytroubleshooter.v1",
  232. rest_numeric_enums = False,
  233. service_yaml = "policytroubleshooter_v1.yaml",
  234. transport = "grpc+rest",
  235. deps = [],
  236. )
  237. nodejs_gapic_assembly_pkg(
  238. name = "policytroubleshooter-v1-nodejs",
  239. deps = [
  240. ":policytroubleshooter_nodejs_gapic",
  241. ":policytroubleshooter_proto",
  242. ],
  243. )
  244. ##############################################################################
  245. # Ruby
  246. ##############################################################################
  247. load(
  248. "@com_google_googleapis_imports//:imports.bzl",
  249. "ruby_cloud_gapic_library",
  250. "ruby_gapic_assembly_pkg",
  251. "ruby_grpc_library",
  252. "ruby_proto_library",
  253. )
  254. ruby_proto_library(
  255. name = "policytroubleshooter_ruby_proto",
  256. deps = [":policytroubleshooter_proto"],
  257. )
  258. ruby_grpc_library(
  259. name = "policytroubleshooter_ruby_grpc",
  260. srcs = [":policytroubleshooter_proto"],
  261. deps = [":policytroubleshooter_ruby_proto"],
  262. )
  263. ruby_cloud_gapic_library(
  264. name = "policytroubleshooter_ruby_gapic",
  265. srcs = [":policytroubleshooter_proto_with_info"],
  266. extra_protoc_parameters = [
  267. "ruby-cloud-api-id=policytroubleshooter.googleapis.com",
  268. "ruby-cloud-api-shortname=policytroubleshooter",
  269. "ruby-cloud-env-prefix=POLICY_TROUBLESHOOTER",
  270. "ruby-cloud-gem-name=google-cloud-policy_troubleshooter-v1",
  271. "ruby-cloud-product-url=https://cloud.google.com/iam/docs/troubleshooting-access",
  272. ],
  273. grpc_service_config = "checker_grpc_service_config.json",
  274. rest_numeric_enums = False,
  275. ruby_cloud_description = "Policy Troubleshooter makes it easier to understand why a user has access to a resource or doesn't have permission to call an API. Given an email, resource, and permission, Policy Troubleshooter will examine all IAM policies that apply to the resource. It then reveals whether the member's roles include the permission on that resource and, if so, which policies bind the member to those roles.",
  276. ruby_cloud_title = "IAM Policy Troubleshooter V1",
  277. deps = [
  278. ":policytroubleshooter_ruby_grpc",
  279. ":policytroubleshooter_ruby_proto",
  280. ],
  281. )
  282. # Open Source Packages
  283. ruby_gapic_assembly_pkg(
  284. name = "google-cloud-policytroubleshooter-v1-ruby",
  285. deps = [
  286. ":policytroubleshooter_ruby_gapic",
  287. ":policytroubleshooter_ruby_grpc",
  288. ":policytroubleshooter_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 = "policytroubleshooter_csharp_proto",
  303. deps = [":policytroubleshooter_proto"],
  304. )
  305. csharp_grpc_library(
  306. name = "policytroubleshooter_csharp_grpc",
  307. srcs = [":policytroubleshooter_proto"],
  308. deps = [":policytroubleshooter_csharp_proto"],
  309. )
  310. csharp_gapic_library(
  311. name = "policytroubleshooter_csharp_gapic",
  312. srcs = [":policytroubleshooter_proto_with_info"],
  313. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  314. grpc_service_config = "checker_grpc_service_config.json",
  315. rest_numeric_enums = False,
  316. service_yaml = "policytroubleshooter_v1.yaml",
  317. deps = [
  318. ":policytroubleshooter_csharp_grpc",
  319. ":policytroubleshooter_csharp_proto",
  320. ],
  321. )
  322. # Open Source Packages
  323. csharp_gapic_assembly_pkg(
  324. name = "google-cloud-policytroubleshooter-v1-csharp",
  325. deps = [
  326. ":policytroubleshooter_csharp_gapic",
  327. ":policytroubleshooter_csharp_grpc",
  328. ":policytroubleshooter_csharp_proto",
  329. ],
  330. )
  331. ##############################################################################
  332. # C++
  333. ##############################################################################
  334. load(
  335. "@com_google_googleapis_imports//:imports.bzl",
  336. "cc_grpc_library",
  337. "cc_proto_library",
  338. )
  339. cc_proto_library(
  340. name = "policytroubleshooter_cc_proto",
  341. deps = [":policytroubleshooter_proto"],
  342. )
  343. cc_grpc_library(
  344. name = "policytroubleshooter_cc_grpc",
  345. srcs = [":policytroubleshooter_proto"],
  346. grpc_only = True,
  347. deps = [":policytroubleshooter_cc_proto"],
  348. )