BUILD.bazel 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416
  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 = "gkehub_proto",
  19. srcs = [
  20. "feature.proto",
  21. "membership.proto",
  22. "service.proto",
  23. ],
  24. deps = [
  25. "//google/api:annotations_proto",
  26. "//google/api:client_proto",
  27. "//google/api:field_behavior_proto",
  28. "//google/api:resource_proto",
  29. "//google/cloud/gkehub/v1/configmanagement:configmanagement_proto",
  30. "//google/cloud/gkehub/v1/multiclusteringress:multiclusteringress_proto",
  31. "//google/longrunning:operations_proto",
  32. "@com_google_protobuf//:empty_proto",
  33. "@com_google_protobuf//:field_mask_proto",
  34. "@com_google_protobuf//:timestamp_proto",
  35. ],
  36. )
  37. proto_library_with_info(
  38. name = "gkehub_proto_with_info",
  39. deps = [
  40. ":gkehub_proto",
  41. "//google/cloud:common_resources_proto",
  42. ],
  43. )
  44. ##############################################################################
  45. # Java
  46. ##############################################################################
  47. load(
  48. "@com_google_googleapis_imports//:imports.bzl",
  49. "java_gapic_assembly_gradle_pkg",
  50. "java_gapic_library",
  51. "java_gapic_test",
  52. "java_grpc_library",
  53. "java_proto_library",
  54. )
  55. _JAVA_PROTO_SUBPACKAGE_DEPS = [
  56. "//google/cloud/gkehub/v1/multiclusteringress:multiclusteringress_java_proto",
  57. "//google/cloud/gkehub/v1/configmanagement:configmanagement_java_proto",
  58. ]
  59. _JAVA_GRPC_SUBPACKAGE_DEPS = [
  60. "//google/cloud/gkehub/v1/multiclusteringress:multiclusteringress_java_grpc",
  61. "//google/cloud/gkehub/v1/configmanagement:configmanagement_java_grpc",
  62. ]
  63. java_proto_library(
  64. name = "gkehub_java_proto",
  65. deps = [":gkehub_proto"],
  66. )
  67. java_grpc_library(
  68. name = "gkehub_java_grpc",
  69. srcs = [":gkehub_proto"],
  70. deps = [":gkehub_java_proto"] + _JAVA_PROTO_SUBPACKAGE_DEPS,
  71. )
  72. java_gapic_library(
  73. name = "gkehub_java_gapic",
  74. srcs = [":gkehub_proto_with_info"],
  75. gapic_yaml = None,
  76. grpc_service_config = "v1_grpc_service_config.json",
  77. rest_numeric_enums = False,
  78. service_yaml = "gkehub_v1.yaml",
  79. test_deps = [
  80. ":gkehub_java_grpc",
  81. ] + _JAVA_GRPC_SUBPACKAGE_DEPS,
  82. transport = "grpc+rest",
  83. deps = [
  84. ":gkehub_java_proto",
  85. "//google/api:api_java_proto",
  86. ] + _JAVA_PROTO_SUBPACKAGE_DEPS,
  87. )
  88. java_gapic_test(
  89. name = "gkehub_java_gapic_test_suite",
  90. test_classes = [
  91. "com.google.cloud.gkehub.v1.GkeHubClientHttpJsonTest",
  92. "com.google.cloud.gkehub.v1.GkeHubClientTest",
  93. ],
  94. runtime_deps = [":gkehub_java_gapic_test"],
  95. )
  96. # Open Source Packages
  97. java_gapic_assembly_gradle_pkg(
  98. name = "google-cloud-gkehub-v1-java",
  99. transport = "grpc+rest",
  100. deps = [
  101. ":gkehub_java_gapic",
  102. ":gkehub_java_grpc",
  103. ":gkehub_java_proto",
  104. ":gkehub_proto",
  105. ] + _JAVA_PROTO_SUBPACKAGE_DEPS + _JAVA_GRPC_SUBPACKAGE_DEPS,
  106. )
  107. ##############################################################################
  108. # Go
  109. ##############################################################################
  110. load(
  111. "@com_google_googleapis_imports//:imports.bzl",
  112. "go_gapic_assembly_pkg",
  113. "go_gapic_library",
  114. "go_proto_library",
  115. "go_test",
  116. )
  117. go_proto_library(
  118. name = "gkehub_go_proto",
  119. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  120. importpath = "google.golang.org/genproto/googleapis/cloud/gkehub/v1",
  121. protos = [":gkehub_proto"],
  122. deps = [
  123. "//google/api:annotations_go_proto",
  124. "//google/cloud/gkehub/v1/configmanagement:configmanagement_go_proto",
  125. "//google/cloud/gkehub/v1/multiclusteringress:multiclusteringress_go_proto",
  126. "//google/longrunning:longrunning_go_proto",
  127. ],
  128. )
  129. go_gapic_library(
  130. name = "gkehub_go_gapic",
  131. srcs = [":gkehub_proto_with_info"],
  132. grpc_service_config = "v1_grpc_service_config.json",
  133. importpath = "cloud.google.com/go/gkehub/apiv1;gkehub",
  134. metadata = True,
  135. rest_numeric_enums = False,
  136. service_yaml = "gkehub_v1.yaml",
  137. transport = "grpc+rest",
  138. deps = [
  139. ":gkehub_go_proto",
  140. "//google/longrunning:longrunning_go_proto",
  141. "@com_google_cloud_go//longrunning:go_default_library",
  142. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  143. ],
  144. )
  145. go_test(
  146. name = "gkehub_go_gapic_test",
  147. srcs = [":gkehub_go_gapic_srcjar_test"],
  148. embed = [":gkehub_go_gapic"],
  149. importpath = "cloud.google.com/go/gkehub/apiv1",
  150. )
  151. # Open Source Packages
  152. go_gapic_assembly_pkg(
  153. name = "gapi-cloud-gkehub-v1-go",
  154. deps = [
  155. ":gkehub_go_gapic",
  156. ":gkehub_go_gapic_srcjar-metadata.srcjar",
  157. ":gkehub_go_gapic_srcjar-test.srcjar",
  158. ":gkehub_go_proto",
  159. ],
  160. )
  161. ##############################################################################
  162. # Python
  163. ##############################################################################
  164. load(
  165. "@com_google_googleapis_imports//:imports.bzl",
  166. "py_gapic_assembly_pkg",
  167. "py_gapic_library",
  168. )
  169. py_gapic_library(
  170. name = "gkehub_py_gapic",
  171. srcs = [":gkehub_proto"],
  172. grpc_service_config = "v1_grpc_service_config.json",
  173. opt_args = ["warehouse-package-name=google-cloud-gke-hub"],
  174. rest_numeric_enums = False,
  175. transport = "grpc",
  176. )
  177. # Uncomment once https://github.com/googleapis/gapic-generator-python/issues/1376 is fixed
  178. #py_test(
  179. # name = "gkehub_py_gapic_test",
  180. # srcs = [
  181. # "gkehub_py_gapic_pytest.py",
  182. # "gkehub_py_gapic_test.py",
  183. # ],
  184. # legacy_create_init = False,
  185. # deps = [":gkehub_py_gapic"],
  186. #)
  187. # Open Source Packages
  188. py_gapic_assembly_pkg(
  189. name = "gkehub-v1-py",
  190. deps = [
  191. ":gkehub_py_gapic",
  192. "//google/cloud/gkehub/v1/configmanagement:configmanagement_py_gapic",
  193. "//google/cloud/gkehub/v1/multiclusteringress:multiclusteringress_py_gapic",
  194. ],
  195. )
  196. ##############################################################################
  197. # PHP
  198. ##############################################################################
  199. load(
  200. "@com_google_googleapis_imports//:imports.bzl",
  201. "php_gapic_assembly_pkg",
  202. "php_gapic_library",
  203. "php_grpc_library",
  204. "php_proto_library",
  205. )
  206. php_proto_library(
  207. name = "gkehub_php_proto",
  208. deps = [":gkehub_proto"],
  209. )
  210. php_grpc_library(
  211. name = "gkehub_php_grpc",
  212. srcs = [":gkehub_proto"],
  213. deps = [":gkehub_php_proto"],
  214. )
  215. php_gapic_library(
  216. name = "gkehub_php_gapic",
  217. srcs = [":gkehub_proto_with_info"],
  218. grpc_service_config = "v1_grpc_service_config.json",
  219. rest_numeric_enums = False,
  220. service_yaml = "gkehub_v1.yaml",
  221. transport = "grpc+rest",
  222. deps = [
  223. ":gkehub_php_grpc",
  224. ":gkehub_php_proto",
  225. ],
  226. )
  227. # Open Source Packages
  228. php_gapic_assembly_pkg(
  229. name = "google-cloud-gkehub-v1-php",
  230. deps = [
  231. ":gkehub_php_gapic",
  232. ":gkehub_php_grpc",
  233. ":gkehub_php_proto",
  234. ],
  235. )
  236. ##############################################################################
  237. # Node.js
  238. ##############################################################################
  239. load(
  240. "@com_google_googleapis_imports//:imports.bzl",
  241. "nodejs_gapic_assembly_pkg",
  242. "nodejs_gapic_library",
  243. )
  244. nodejs_gapic_library(
  245. name = "gkehub_nodejs_gapic",
  246. package_name = "@google-cloud/gke-hub",
  247. src = ":gkehub_proto_with_info",
  248. extra_protoc_parameters = ["metadata"],
  249. grpc_service_config = "v1_grpc_service_config.json",
  250. package = "google.cloud.gkehub.v1",
  251. rest_numeric_enums = False,
  252. service_yaml = "gkehub_v1.yaml",
  253. transport = "grpc+rest",
  254. deps = [],
  255. )
  256. nodejs_gapic_assembly_pkg(
  257. name = "gkehub-v1-nodejs",
  258. deps = [
  259. ":gkehub_nodejs_gapic",
  260. ":gkehub_proto",
  261. "//google/cloud/gkehub/v1/configmanagement:configmanagement_proto",
  262. "//google/cloud/gkehub/v1/multiclusteringress:multiclusteringress_proto",
  263. ],
  264. )
  265. ##############################################################################
  266. # Ruby
  267. ##############################################################################
  268. load(
  269. "@com_google_googleapis_imports//:imports.bzl",
  270. "ruby_cloud_gapic_library",
  271. "ruby_gapic_assembly_pkg",
  272. "ruby_grpc_library",
  273. "ruby_proto_library",
  274. )
  275. ruby_proto_library(
  276. name = "gkehub_ruby_proto",
  277. deps = [
  278. ":gkehub_proto",
  279. "//google/cloud/gkehub/v1/configmanagement:configmanagement_proto",
  280. "//google/cloud/gkehub/v1/multiclusteringress:multiclusteringress_proto",
  281. ],
  282. )
  283. ruby_grpc_library(
  284. name = "gkehub_ruby_grpc",
  285. srcs = [":gkehub_proto"],
  286. deps = [":gkehub_ruby_proto"],
  287. )
  288. ruby_cloud_gapic_library(
  289. name = "gkehub_ruby_gapic",
  290. srcs = [":gkehub_proto_with_info"],
  291. extra_protoc_parameters = [
  292. "ruby-cloud-api-id=gkehub.googleapis.com",
  293. "ruby-cloud-api-shortname=gkehub",
  294. "ruby-cloud-env-prefix=GKE_HUB",
  295. "ruby-cloud-gem-name=google-cloud-gke_hub-v1",
  296. "ruby-cloud-product-url=https://cloud.google.com/anthos/clusters/docs",
  297. ],
  298. grpc_service_config = "v1_grpc_service_config.json",
  299. rest_numeric_enums = False,
  300. ruby_cloud_description = "The GKE Hub API centrally manages features and services on all your Kubernetes clusters running in a variety of environments, including Google cloud, on premises in customer datacenters, or other third party clouds.",
  301. ruby_cloud_title = "GKE Hub V1",
  302. deps = [
  303. ":gkehub_ruby_grpc",
  304. ":gkehub_ruby_proto",
  305. ],
  306. )
  307. # Open Source Packages
  308. ruby_gapic_assembly_pkg(
  309. name = "google-cloud-gkehub-v1-ruby",
  310. deps = [
  311. ":gkehub_ruby_gapic",
  312. ":gkehub_ruby_grpc",
  313. ":gkehub_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 = "gkehub_csharp_proto",
  328. deps = [":gkehub_proto"],
  329. )
  330. csharp_grpc_library(
  331. name = "gkehub_csharp_grpc",
  332. srcs = [":gkehub_proto"],
  333. deps = [":gkehub_csharp_proto"],
  334. )
  335. csharp_gapic_library(
  336. name = "gkehub_csharp_gapic",
  337. srcs = [":gkehub_proto_with_info"],
  338. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  339. grpc_service_config = "v1_grpc_service_config.json",
  340. rest_numeric_enums = False,
  341. service_yaml = "gkehub_v1.yaml",
  342. deps = [
  343. ":gkehub_csharp_grpc",
  344. ":gkehub_csharp_proto",
  345. ],
  346. )
  347. # Open Source Packages
  348. csharp_gapic_assembly_pkg(
  349. name = "google-cloud-gkehub-v1-csharp",
  350. deps = [
  351. ":gkehub_csharp_gapic",
  352. ":gkehub_csharp_grpc",
  353. ":gkehub_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 = "gkehub_cc_proto",
  366. deps = [":gkehub_proto"],
  367. )
  368. cc_grpc_library(
  369. name = "gkehub_cc_grpc",
  370. srcs = [":gkehub_proto"],
  371. grpc_only = True,
  372. deps = [":gkehub_cc_proto"],
  373. )