BUILD.bazel 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  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 = "resourcemanager_proto",
  19. srcs = [
  20. "folders.proto",
  21. "organizations.proto",
  22. "projects.proto",
  23. "tag_bindings.proto",
  24. "tag_keys.proto",
  25. "tag_values.proto",
  26. ],
  27. deps = [
  28. "//google/api:annotations_proto",
  29. "//google/api:client_proto",
  30. "//google/api:field_behavior_proto",
  31. "//google/api:resource_proto",
  32. "//google/iam/v1:iam_policy_proto",
  33. "//google/iam/v1:policy_proto",
  34. "//google/longrunning:operations_proto",
  35. "@com_google_protobuf//:field_mask_proto",
  36. "@com_google_protobuf//:timestamp_proto",
  37. ],
  38. )
  39. proto_library_with_info(
  40. name = "resourcemanager_proto_with_info",
  41. deps = [
  42. ":resourcemanager_proto",
  43. # This line was manually modified since Projects, Folders, Organizations
  44. # are special cased since they are also common resources.
  45. #"//google/cloud:common_resources_proto",
  46. ],
  47. )
  48. ##############################################################################
  49. # Java
  50. ##############################################################################
  51. load(
  52. "@com_google_googleapis_imports//:imports.bzl",
  53. "java_gapic_assembly_gradle_pkg",
  54. "java_gapic_library",
  55. "java_gapic_test",
  56. "java_grpc_library",
  57. "java_proto_library",
  58. )
  59. java_proto_library(
  60. name = "resourcemanager_java_proto",
  61. deps = [":resourcemanager_proto"],
  62. )
  63. java_grpc_library(
  64. name = "resourcemanager_java_grpc",
  65. srcs = [":resourcemanager_proto"],
  66. deps = [":resourcemanager_java_proto"],
  67. )
  68. java_gapic_library(
  69. name = "resourcemanager_java_gapic",
  70. srcs = [":resourcemanager_proto_with_info"],
  71. grpc_service_config = "cloudresourcemanager_v3_grpc_service_config.json",
  72. rest_numeric_enums = False,
  73. test_deps = [
  74. ":resourcemanager_java_grpc",
  75. "//google/iam/v1:iam_java_grpc",
  76. ],
  77. transport = "grpc+rest",
  78. deps = [
  79. ":resourcemanager_java_proto",
  80. "//google/iam/v1:iam_java_proto",
  81. ],
  82. )
  83. java_gapic_test(
  84. name = "resourcemanager_java_gapic_test_suite",
  85. test_classes = [
  86. "com.google.cloud.resourcemanager.v3.FoldersClientHttpJsonTest",
  87. "com.google.cloud.resourcemanager.v3.FoldersClientTest",
  88. "com.google.cloud.resourcemanager.v3.OrganizationsClientHttpJsonTest",
  89. "com.google.cloud.resourcemanager.v3.OrganizationsClientTest",
  90. "com.google.cloud.resourcemanager.v3.ProjectsClientHttpJsonTest",
  91. "com.google.cloud.resourcemanager.v3.ProjectsClientTest",
  92. "com.google.cloud.resourcemanager.v3.TagBindingsClientHttpJsonTest",
  93. "com.google.cloud.resourcemanager.v3.TagBindingsClientTest",
  94. "com.google.cloud.resourcemanager.v3.TagKeysClientHttpJsonTest",
  95. "com.google.cloud.resourcemanager.v3.TagKeysClientTest",
  96. "com.google.cloud.resourcemanager.v3.TagValuesClientHttpJsonTest",
  97. "com.google.cloud.resourcemanager.v3.TagValuesClientTest",
  98. ],
  99. runtime_deps = [":resourcemanager_java_gapic_test"],
  100. )
  101. # Open Source Packages
  102. java_gapic_assembly_gradle_pkg(
  103. name = "google-cloud-resourcemanager-v3-java",
  104. include_samples = True,
  105. transport = "grpc+rest",
  106. deps = [
  107. ":resourcemanager_java_gapic",
  108. ":resourcemanager_java_grpc",
  109. ":resourcemanager_java_proto",
  110. ":resourcemanager_proto",
  111. ],
  112. )
  113. ##############################################################################
  114. # Go
  115. ##############################################################################
  116. load(
  117. "@com_google_googleapis_imports//:imports.bzl",
  118. "go_gapic_assembly_pkg",
  119. "go_gapic_library",
  120. "go_proto_library",
  121. "go_test",
  122. )
  123. go_proto_library(
  124. name = "resourcemanager_go_proto",
  125. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  126. importpath = "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3",
  127. protos = [":resourcemanager_proto"],
  128. deps = [
  129. "//google/api:annotations_go_proto",
  130. "//google/iam/v1:iam_go_proto",
  131. "//google/longrunning:longrunning_go_proto",
  132. ],
  133. )
  134. go_gapic_library(
  135. name = "resourcemanager_go_gapic",
  136. srcs = [":resourcemanager_proto_with_info"],
  137. grpc_service_config = "cloudresourcemanager_v3_grpc_service_config.json",
  138. importpath = "cloud.google.com/go/resourcemanager/apiv3;resourcemanager",
  139. metadata = True,
  140. rest_numeric_enums = False,
  141. service_yaml = "cloudresourcemanager_v3.yaml",
  142. transport = "grpc+rest",
  143. deps = [
  144. ":resourcemanager_go_proto",
  145. "//google/iam/v1:iam_go_proto",
  146. "//google/longrunning:longrunning_go_proto",
  147. "@com_google_cloud_go//longrunning:go_default_library",
  148. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  149. ],
  150. )
  151. go_test(
  152. name = "resourcemanager_go_gapic_test",
  153. srcs = [":resourcemanager_go_gapic_srcjar_test"],
  154. embed = [":resourcemanager_go_gapic"],
  155. importpath = "cloud.google.com/go/resourcemanager/apiv3",
  156. )
  157. # Open Source Packages
  158. go_gapic_assembly_pkg(
  159. name = "gapi-cloud-resourcemanager-v3-go",
  160. deps = [
  161. ":resourcemanager_go_gapic",
  162. ":resourcemanager_go_gapic_srcjar-metadata.srcjar",
  163. ":resourcemanager_go_gapic_srcjar-test.srcjar",
  164. ":resourcemanager_go_proto",
  165. ],
  166. )
  167. ##############################################################################
  168. # Python
  169. ##############################################################################
  170. load(
  171. "@com_google_googleapis_imports//:imports.bzl",
  172. "py_gapic_assembly_pkg",
  173. "py_gapic_library",
  174. "py_test",
  175. )
  176. py_gapic_library(
  177. name = "resourcemanager_py_gapic",
  178. srcs = [":resourcemanager_proto"],
  179. grpc_service_config = "cloudresourcemanager_v3_grpc_service_config.json",
  180. rest_numeric_enums = False,
  181. transport = "grpc",
  182. deps = [
  183. "//google/iam/v1:iam_policy_py_proto",
  184. ],
  185. )
  186. py_test(
  187. name = "resourcemanager_py_gapic_test",
  188. srcs = [
  189. "resourcemanager_py_gapic_pytest.py",
  190. "resourcemanager_py_gapic_test.py",
  191. ],
  192. legacy_create_init = False,
  193. deps = [":resourcemanager_py_gapic"],
  194. )
  195. # Open Source Packages
  196. py_gapic_assembly_pkg(
  197. name = "resourcemanager-v3-py",
  198. deps = [
  199. ":resourcemanager_py_gapic",
  200. ],
  201. )
  202. ##############################################################################
  203. # PHP
  204. ##############################################################################
  205. load(
  206. "@com_google_googleapis_imports//:imports.bzl",
  207. "php_gapic_assembly_pkg",
  208. "php_gapic_library",
  209. "php_grpc_library",
  210. "php_proto_library",
  211. )
  212. php_proto_library(
  213. name = "resourcemanager_php_proto",
  214. deps = [":resourcemanager_proto"],
  215. )
  216. php_grpc_library(
  217. name = "resourcemanager_php_grpc",
  218. srcs = [":resourcemanager_proto"],
  219. deps = [":resourcemanager_php_proto"],
  220. )
  221. php_gapic_library(
  222. name = "resourcemanager_php_gapic",
  223. srcs = [":resourcemanager_proto_with_info"],
  224. grpc_service_config = "cloudresourcemanager_v3_grpc_service_config.json",
  225. rest_numeric_enums = False,
  226. service_yaml = "cloudresourcemanager_v3.yaml",
  227. transport = "grpc+rest",
  228. deps = [
  229. ":resourcemanager_php_grpc",
  230. ":resourcemanager_php_proto",
  231. ],
  232. )
  233. # Open Source Packages
  234. php_gapic_assembly_pkg(
  235. name = "google-cloud-resourcemanager-v3-php",
  236. deps = [
  237. ":resourcemanager_php_gapic",
  238. ":resourcemanager_php_grpc",
  239. ":resourcemanager_php_proto",
  240. ],
  241. )
  242. ##############################################################################
  243. # Node.js
  244. ##############################################################################
  245. load(
  246. "@com_google_googleapis_imports//:imports.bzl",
  247. "nodejs_gapic_assembly_pkg",
  248. "nodejs_gapic_library",
  249. )
  250. nodejs_gapic_library(
  251. name = "resourcemanager_nodejs_gapic",
  252. package_name = "@google-cloud/resource-manager",
  253. src = ":resourcemanager_proto_with_info",
  254. extra_protoc_parameters = ["metadata"],
  255. grpc_service_config = "cloudresourcemanager_v3_grpc_service_config.json",
  256. package = "google.cloud.resourcemanager.v3",
  257. rest_numeric_enums = False,
  258. service_yaml = "cloudresourcemanager_v3.yaml",
  259. transport = "grpc+rest",
  260. deps = [],
  261. )
  262. nodejs_gapic_assembly_pkg(
  263. name = "resourcemanager-v3-nodejs",
  264. deps = [
  265. ":resourcemanager_nodejs_gapic",
  266. ":resourcemanager_proto",
  267. ],
  268. )
  269. ##############################################################################
  270. # Ruby
  271. ##############################################################################
  272. load(
  273. "@com_google_googleapis_imports//:imports.bzl",
  274. "ruby_cloud_gapic_library",
  275. "ruby_gapic_assembly_pkg",
  276. "ruby_grpc_library",
  277. "ruby_proto_library",
  278. )
  279. ruby_proto_library(
  280. name = "resourcemanager_ruby_proto",
  281. deps = [":resourcemanager_proto"],
  282. )
  283. ruby_grpc_library(
  284. name = "resourcemanager_ruby_grpc",
  285. srcs = [":resourcemanager_proto"],
  286. deps = [":resourcemanager_ruby_proto"],
  287. )
  288. ruby_cloud_gapic_library(
  289. name = "resourcemanager_ruby_gapic",
  290. srcs = [":resourcemanager_proto_with_info"],
  291. extra_protoc_parameters = [
  292. "ruby-cloud-gem-name=google-cloud-resource_manager-v3",
  293. "ruby-cloud-env-prefix=RESOURCE_MANAGER",
  294. "ruby-cloud-product-url=https://cloud.google.com/resource-manager/",
  295. "ruby-cloud-api-id=cloudresourcemanager.googleapis.com",
  296. "ruby-cloud-api-shortname=cloudresourcemanager",
  297. ],
  298. grpc_service_config = "cloudresourcemanager_v3_grpc_service_config.json",
  299. rest_numeric_enums = False,
  300. ruby_cloud_description = "Google Cloud provides container resources such as organizations and projects that allow you to group and hierarchically organize other Google Cloud resources. This hierarchical organization helps you manage common aspects of your resources, such as access control and configuration settings. The Resource Manager API enables you to programmatically manage these container resources.",
  301. ruby_cloud_title = "Resource Manager V3",
  302. deps = [
  303. ":resourcemanager_ruby_grpc",
  304. ":resourcemanager_ruby_proto",
  305. ],
  306. )
  307. # Open Source Packages
  308. ruby_gapic_assembly_pkg(
  309. name = "google-cloud-resourcemanager-v3-ruby",
  310. deps = [
  311. ":resourcemanager_ruby_gapic",
  312. ":resourcemanager_ruby_grpc",
  313. ":resourcemanager_ruby_proto",
  314. ],
  315. )
  316. ##############################################################################
  317. # C#
  318. ##############################################################################
  319. load(
  320. "@com_google_googleapis_imports//:imports.bzl",
  321. "csharp_gapic_assembly_pkg",
  322. "csharp_gapic_library",
  323. "csharp_grpc_library",
  324. "csharp_proto_library",
  325. )
  326. csharp_proto_library(
  327. name = "resourcemanager_csharp_proto",
  328. deps = [":resourcemanager_proto"],
  329. )
  330. csharp_grpc_library(
  331. name = "resourcemanager_csharp_grpc",
  332. srcs = [":resourcemanager_proto"],
  333. deps = [":resourcemanager_csharp_proto"],
  334. )
  335. csharp_gapic_library(
  336. name = "resourcemanager_csharp_gapic",
  337. srcs = [":resourcemanager_proto_with_info"],
  338. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  339. grpc_service_config = "cloudresourcemanager_v3_grpc_service_config.json",
  340. rest_numeric_enums = False,
  341. service_yaml = "cloudresourcemanager_v3.yaml",
  342. deps = [
  343. ":resourcemanager_csharp_grpc",
  344. ":resourcemanager_csharp_proto",
  345. ],
  346. )
  347. # Open Source Packages
  348. csharp_gapic_assembly_pkg(
  349. name = "google-cloud-resourcemanager-v3-csharp",
  350. deps = [
  351. ":resourcemanager_csharp_gapic",
  352. ":resourcemanager_csharp_grpc",
  353. ":resourcemanager_csharp_proto",
  354. ],
  355. )
  356. ##############################################################################
  357. # C++
  358. ##############################################################################
  359. load(
  360. "@com_google_googleapis_imports//:imports.bzl",
  361. "cc_grpc_library",
  362. "cc_proto_library",
  363. )
  364. cc_proto_library(
  365. name = "resourcemanager_cc_proto",
  366. deps = [":resourcemanager_proto"],
  367. )
  368. cc_grpc_library(
  369. name = "resourcemanager_cc_grpc",
  370. srcs = [":resourcemanager_proto"],
  371. grpc_only = True,
  372. deps = [":resourcemanager_cc_proto"],
  373. )