BUILD.bazel 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  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 = "baremetalsolution_proto",
  19. srcs = [
  20. "baremetalsolution.proto",
  21. "instance.proto",
  22. "lun.proto",
  23. "network.proto",
  24. "nfs_share.proto",
  25. "volume.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/longrunning:operations_proto",
  33. "@com_google_protobuf//:empty_proto",
  34. "@com_google_protobuf//:field_mask_proto",
  35. "@com_google_protobuf//:timestamp_proto",
  36. ],
  37. )
  38. proto_library_with_info(
  39. name = "baremetalsolution_proto_with_info",
  40. deps = [
  41. ":baremetalsolution_proto",
  42. "//google/cloud:common_resources_proto",
  43. ],
  44. )
  45. ##############################################################################
  46. # Java
  47. ##############################################################################
  48. load(
  49. "@com_google_googleapis_imports//:imports.bzl",
  50. "java_gapic_assembly_gradle_pkg",
  51. "java_gapic_library",
  52. "java_gapic_test",
  53. "java_grpc_library",
  54. "java_proto_library",
  55. )
  56. java_proto_library(
  57. name = "baremetalsolution_java_proto",
  58. deps = [":baremetalsolution_proto"],
  59. )
  60. java_grpc_library(
  61. name = "baremetalsolution_java_grpc",
  62. srcs = [":baremetalsolution_proto"],
  63. deps = [":baremetalsolution_java_proto"],
  64. )
  65. java_gapic_library(
  66. name = "baremetalsolution_java_gapic",
  67. srcs = [":baremetalsolution_proto_with_info"],
  68. gapic_yaml = None,
  69. grpc_service_config = "baremetalsolution_grpc_service_config.json",
  70. rest_numeric_enums = False,
  71. service_yaml = "baremetalsolution_v2.yaml",
  72. test_deps = [
  73. ":baremetalsolution_java_grpc",
  74. ],
  75. transport = "grpc+rest",
  76. deps = [
  77. ":baremetalsolution_java_proto",
  78. "//google/api:api_java_proto",
  79. ],
  80. )
  81. java_gapic_test(
  82. name = "baremetalsolution_java_gapic_test_suite",
  83. test_classes = [
  84. "com.google.cloud.baremetalsolution.v2.BareMetalSolutionClientHttpJsonTest",
  85. "com.google.cloud.baremetalsolution.v2.BareMetalSolutionClientTest",
  86. ],
  87. runtime_deps = [":baremetalsolution_java_gapic_test"],
  88. )
  89. # Open Source Packages
  90. java_gapic_assembly_gradle_pkg(
  91. name = "google-cloud-baremetalsolution-v2-java",
  92. include_samples = True,
  93. transport = "grpc+rest",
  94. deps = [
  95. ":baremetalsolution_java_gapic",
  96. ":baremetalsolution_java_grpc",
  97. ":baremetalsolution_java_proto",
  98. ":baremetalsolution_proto",
  99. ],
  100. )
  101. ##############################################################################
  102. # Go
  103. ##############################################################################
  104. load(
  105. "@com_google_googleapis_imports//:imports.bzl",
  106. "go_gapic_assembly_pkg",
  107. "go_gapic_library",
  108. "go_proto_library",
  109. "go_test",
  110. )
  111. go_proto_library(
  112. name = "baremetalsolution_go_proto",
  113. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  114. importpath = "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2",
  115. protos = [":baremetalsolution_proto"],
  116. deps = [
  117. "//google/api:annotations_go_proto",
  118. "//google/longrunning:longrunning_go_proto",
  119. ],
  120. )
  121. go_gapic_library(
  122. name = "baremetalsolution_go_gapic",
  123. srcs = [":baremetalsolution_proto_with_info"],
  124. grpc_service_config = "baremetalsolution_grpc_service_config.json",
  125. importpath = "cloud.google.com/go/baremetalsolution/apiv2;baremetalsolution",
  126. metadata = True,
  127. rest_numeric_enums = False,
  128. service_yaml = "baremetalsolution_v2.yaml",
  129. transport = "grpc+rest",
  130. deps = [
  131. ":baremetalsolution_go_proto",
  132. "//google/cloud/location:location_go_proto",
  133. "//google/longrunning:longrunning_go_proto",
  134. "@com_google_cloud_go//longrunning:go_default_library",
  135. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  136. ],
  137. )
  138. go_test(
  139. name = "baremetalsolution_go_gapic_test",
  140. srcs = [":baremetalsolution_go_gapic_srcjar_test"],
  141. embed = [":baremetalsolution_go_gapic"],
  142. importpath = "cloud.google.com/go/baremetalsolution/apiv2",
  143. )
  144. # Open Source Packages
  145. go_gapic_assembly_pkg(
  146. name = "gapi-cloud-baremetalsolution-v2-go",
  147. deps = [
  148. ":baremetalsolution_go_gapic",
  149. ":baremetalsolution_go_gapic_srcjar-metadata.srcjar",
  150. ":baremetalsolution_go_gapic_srcjar-test.srcjar",
  151. ":baremetalsolution_go_proto",
  152. ],
  153. )
  154. ##############################################################################
  155. # Python
  156. ##############################################################################
  157. load(
  158. "@com_google_googleapis_imports//:imports.bzl",
  159. "py_gapic_assembly_pkg",
  160. "py_gapic_library",
  161. "py_test",
  162. )
  163. py_gapic_library(
  164. name = "baremetalsolution_py_gapic",
  165. srcs = [":baremetalsolution_proto"],
  166. grpc_service_config = "baremetalsolution_grpc_service_config.json",
  167. opt_args = [
  168. "warehouse-package-name=google-cloud-bare-metal-solution",
  169. "python-gapic-namespace=google.cloud",
  170. "python-gapic-name=bare_metal_solution",
  171. ],
  172. rest_numeric_enums = False,
  173. transport = "grpc",
  174. )
  175. py_test(
  176. name = "baremetalsolution_py_gapic_test",
  177. srcs = [
  178. "baremetalsolution_py_gapic_pytest.py",
  179. "baremetalsolution_py_gapic_test.py",
  180. ],
  181. legacy_create_init = False,
  182. deps = [":baremetalsolution_py_gapic"],
  183. )
  184. # Open Source Packages
  185. py_gapic_assembly_pkg(
  186. name = "baremetalsolution-v2-py",
  187. deps = [
  188. ":baremetalsolution_py_gapic",
  189. ],
  190. )
  191. ##############################################################################
  192. # PHP
  193. ##############################################################################
  194. load(
  195. "@com_google_googleapis_imports//:imports.bzl",
  196. "php_gapic_assembly_pkg",
  197. "php_gapic_library",
  198. "php_grpc_library",
  199. "php_proto_library",
  200. )
  201. php_proto_library(
  202. name = "baremetalsolution_php_proto",
  203. deps = [":baremetalsolution_proto"],
  204. )
  205. php_grpc_library(
  206. name = "baremetalsolution_php_grpc",
  207. srcs = [":baremetalsolution_proto"],
  208. deps = [":baremetalsolution_php_proto"],
  209. )
  210. php_gapic_library(
  211. name = "baremetalsolution_php_gapic",
  212. srcs = [":baremetalsolution_proto_with_info"],
  213. grpc_service_config = "baremetalsolution_grpc_service_config.json",
  214. rest_numeric_enums = False,
  215. service_yaml = "baremetalsolution_v2.yaml",
  216. transport = "grpc+rest",
  217. deps = [
  218. ":baremetalsolution_php_grpc",
  219. ":baremetalsolution_php_proto",
  220. ],
  221. )
  222. # Open Source Packages
  223. php_gapic_assembly_pkg(
  224. name = "google-cloud-baremetalsolution-v2-php",
  225. deps = [
  226. ":baremetalsolution_php_gapic",
  227. ":baremetalsolution_php_grpc",
  228. ":baremetalsolution_php_proto",
  229. ],
  230. )
  231. ##############################################################################
  232. # Node.js
  233. ##############################################################################
  234. load(
  235. "@com_google_googleapis_imports//:imports.bzl",
  236. "nodejs_gapic_assembly_pkg",
  237. "nodejs_gapic_library",
  238. )
  239. nodejs_gapic_library(
  240. name = "baremetalsolution_nodejs_gapic",
  241. package_name = "@google-cloud/bare-metal-solution",
  242. src = ":baremetalsolution_proto_with_info",
  243. extra_protoc_parameters = ["metadata"],
  244. grpc_service_config = "baremetalsolution_grpc_service_config.json",
  245. package = "google.cloud.baremetalsolution.v2",
  246. rest_numeric_enums = False,
  247. service_yaml = "baremetalsolution_v2.yaml",
  248. transport = "grpc+rest",
  249. deps = [],
  250. )
  251. nodejs_gapic_assembly_pkg(
  252. name = "baremetalsolution-v2-nodejs",
  253. deps = [
  254. ":baremetalsolution_nodejs_gapic",
  255. ":baremetalsolution_proto",
  256. ],
  257. )
  258. ##############################################################################
  259. # Ruby
  260. ##############################################################################
  261. load(
  262. "@com_google_googleapis_imports//:imports.bzl",
  263. "ruby_cloud_gapic_library",
  264. "ruby_gapic_assembly_pkg",
  265. "ruby_grpc_library",
  266. "ruby_proto_library",
  267. )
  268. ruby_proto_library(
  269. name = "baremetalsolution_ruby_proto",
  270. deps = [":baremetalsolution_proto"],
  271. )
  272. ruby_grpc_library(
  273. name = "baremetalsolution_ruby_grpc",
  274. srcs = [":baremetalsolution_proto"],
  275. deps = [":baremetalsolution_ruby_proto"],
  276. )
  277. ruby_cloud_gapic_library(
  278. name = "baremetalsolution_ruby_gapic",
  279. srcs = [":baremetalsolution_proto_with_info"],
  280. extra_protoc_parameters = [
  281. "ruby-cloud-api-id=baremetalsolution.googleapis.com",
  282. "ruby-cloud-api-shortname=baremetalsolution",
  283. "ruby-cloud-gem-name=google-cloud-bare_metal_solution-v2",
  284. "ruby-cloud-product-url=https://cloud.google.com/bare-metal/",
  285. ],
  286. grpc_service_config = "baremetalsolution_grpc_service_config.json",
  287. rest_numeric_enums = False,
  288. ruby_cloud_description = "Bare Metal Solution is a managed solution that provides purpose-built HPE or Atos bare-metal servers in regional extensions that are connected to Google Cloud by a managed, high-performance connection with a low-latency network fabric.",
  289. ruby_cloud_title = "Bare Metal Solution V2",
  290. service_yaml = "baremetalsolution_v2.yaml",
  291. deps = [
  292. ":baremetalsolution_ruby_grpc",
  293. ":baremetalsolution_ruby_proto",
  294. ],
  295. )
  296. # Open Source Packages
  297. ruby_gapic_assembly_pkg(
  298. name = "google-cloud-baremetalsolution-v2-ruby",
  299. deps = [
  300. ":baremetalsolution_ruby_gapic",
  301. ":baremetalsolution_ruby_grpc",
  302. ":baremetalsolution_ruby_proto",
  303. ],
  304. )
  305. ##############################################################################
  306. # C#
  307. ##############################################################################
  308. load(
  309. "@com_google_googleapis_imports//:imports.bzl",
  310. "csharp_gapic_assembly_pkg",
  311. "csharp_gapic_library",
  312. "csharp_grpc_library",
  313. "csharp_proto_library",
  314. )
  315. csharp_proto_library(
  316. name = "baremetalsolution_csharp_proto",
  317. deps = [":baremetalsolution_proto"],
  318. )
  319. csharp_grpc_library(
  320. name = "baremetalsolution_csharp_grpc",
  321. srcs = [":baremetalsolution_proto"],
  322. deps = [":baremetalsolution_csharp_proto"],
  323. )
  324. csharp_gapic_library(
  325. name = "baremetalsolution_csharp_gapic",
  326. srcs = [":baremetalsolution_proto_with_info"],
  327. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  328. grpc_service_config = "baremetalsolution_grpc_service_config.json",
  329. rest_numeric_enums = False,
  330. service_yaml = "baremetalsolution_v2.yaml",
  331. deps = [
  332. ":baremetalsolution_csharp_grpc",
  333. ":baremetalsolution_csharp_proto",
  334. ],
  335. )
  336. # Open Source Packages
  337. csharp_gapic_assembly_pkg(
  338. name = "google-cloud-baremetalsolution-v2-csharp",
  339. deps = [
  340. ":baremetalsolution_csharp_gapic",
  341. ":baremetalsolution_csharp_grpc",
  342. ":baremetalsolution_csharp_proto",
  343. ],
  344. )
  345. ##############################################################################
  346. # C++
  347. ##############################################################################
  348. load(
  349. "@com_google_googleapis_imports//:imports.bzl",
  350. "cc_grpc_library",
  351. "cc_proto_library",
  352. )
  353. cc_proto_library(
  354. name = "baremetalsolution_cc_proto",
  355. deps = [":baremetalsolution_proto"],
  356. )
  357. cc_grpc_library(
  358. name = "baremetalsolution_cc_grpc",
  359. srcs = [":baremetalsolution_proto"],
  360. grpc_only = True,
  361. deps = [":baremetalsolution_cc_proto"],
  362. )