BUILD.bazel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  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 = "apigeeconnect_proto",
  19. srcs = [
  20. "connection.proto",
  21. "tether.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/rpc:status_proto",
  29. "@com_google_protobuf//:duration_proto",
  30. ],
  31. )
  32. proto_library_with_info(
  33. name = "apigeeconnect_proto_with_info",
  34. deps = [
  35. ":apigeeconnect_proto",
  36. "//google/cloud:common_resources_proto",
  37. ],
  38. )
  39. ##############################################################################
  40. # Java
  41. ##############################################################################
  42. load(
  43. "@com_google_googleapis_imports//:imports.bzl",
  44. "java_gapic_assembly_gradle_pkg",
  45. "java_gapic_library",
  46. "java_gapic_test",
  47. "java_grpc_library",
  48. "java_proto_library",
  49. )
  50. java_proto_library(
  51. name = "apigeeconnect_java_proto",
  52. deps = [":apigeeconnect_proto"],
  53. )
  54. java_grpc_library(
  55. name = "apigeeconnect_java_grpc",
  56. srcs = [":apigeeconnect_proto"],
  57. deps = [":apigeeconnect_java_proto"],
  58. )
  59. java_gapic_library(
  60. name = "apigeeconnect_java_gapic",
  61. srcs = [":apigeeconnect_proto_with_info"],
  62. grpc_service_config = "connection_grpc_service_config.json",
  63. rest_numeric_enums = False,
  64. test_deps = [
  65. ":apigeeconnect_java_grpc",
  66. ],
  67. transport = "grpc+rest",
  68. deps = [
  69. ":apigeeconnect_java_proto",
  70. ],
  71. )
  72. java_gapic_test(
  73. name = "apigeeconnect_java_gapic_test_suite",
  74. test_classes = [
  75. "com.google.cloud.apigeeconnect.v1.ConnectionServiceClientHttpJsonTest",
  76. "com.google.cloud.apigeeconnect.v1.ConnectionServiceClientTest",
  77. "com.google.cloud.apigeeconnect.v1.TetherClientHttpJsonTest",
  78. "com.google.cloud.apigeeconnect.v1.TetherClientTest",
  79. ],
  80. runtime_deps = [":apigeeconnect_java_gapic_test"],
  81. )
  82. # Open Source Packages
  83. java_gapic_assembly_gradle_pkg(
  84. name = "google-cloud-apigeeconnect-v1-java",
  85. include_samples = True,
  86. transport = "grpc+rest",
  87. deps = [
  88. ":apigeeconnect_java_gapic",
  89. ":apigeeconnect_java_grpc",
  90. ":apigeeconnect_java_proto",
  91. ":apigeeconnect_proto",
  92. ],
  93. )
  94. ##############################################################################
  95. # Go
  96. ##############################################################################
  97. load(
  98. "@com_google_googleapis_imports//:imports.bzl",
  99. "go_gapic_assembly_pkg",
  100. "go_gapic_library",
  101. "go_proto_library",
  102. "go_test",
  103. )
  104. go_proto_library(
  105. name = "apigeeconnect_go_proto",
  106. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  107. importpath = "google.golang.org/genproto/googleapis/cloud/apigeeconnect/v1",
  108. protos = [":apigeeconnect_proto"],
  109. deps = [
  110. "//google/api:annotations_go_proto",
  111. "//google/rpc:status_go_proto",
  112. ],
  113. )
  114. go_gapic_library(
  115. name = "apigeeconnect_go_gapic",
  116. srcs = [":apigeeconnect_proto_with_info"],
  117. grpc_service_config = "connection_grpc_service_config.json",
  118. importpath = "cloud.google.com/go/apigeeconnect/apiv1;apigeeconnect",
  119. metadata = True,
  120. rest_numeric_enums = False,
  121. service_yaml = "apigeeconnect_v1.yaml",
  122. deps = [
  123. ":apigeeconnect_go_proto",
  124. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  125. ],
  126. )
  127. go_test(
  128. name = "apigeeconnect_go_gapic_test",
  129. srcs = [":apigeeconnect_go_gapic_srcjar_test"],
  130. embed = [":apigeeconnect_go_gapic"],
  131. importpath = "cloud.google.com/go/apigeeconnect/apiv1",
  132. )
  133. # Open Source Packages
  134. go_gapic_assembly_pkg(
  135. name = "gapi-cloud-apigeeconnect-v1-go",
  136. deps = [
  137. ":apigeeconnect_go_gapic",
  138. ":apigeeconnect_go_gapic_srcjar-metadata.srcjar",
  139. ":apigeeconnect_go_gapic_srcjar-test.srcjar",
  140. ":apigeeconnect_go_proto",
  141. ],
  142. )
  143. ##############################################################################
  144. # Python
  145. ##############################################################################
  146. load(
  147. "@com_google_googleapis_imports//:imports.bzl",
  148. "py_gapic_assembly_pkg",
  149. "py_gapic_library",
  150. "py_test",
  151. )
  152. py_gapic_library(
  153. name = "apigeeconnect_py_gapic",
  154. srcs = [":apigeeconnect_proto"],
  155. grpc_service_config = "connection_grpc_service_config.json",
  156. opt_args = ["warehouse-package-name=google-cloud-apigee-connect"],
  157. rest_numeric_enums = False,
  158. transport = "grpc",
  159. )
  160. py_test(
  161. name = "apigeeconnect_py_gapic_test",
  162. srcs = [
  163. "apigeeconnect_py_gapic_pytest.py",
  164. "apigeeconnect_py_gapic_test.py",
  165. ],
  166. legacy_create_init = False,
  167. deps = [":apigeeconnect_py_gapic"],
  168. )
  169. # Open Source Packages
  170. py_gapic_assembly_pkg(
  171. name = "apigeeconnect-v1-py",
  172. deps = [
  173. ":apigeeconnect_py_gapic",
  174. ],
  175. )
  176. ##############################################################################
  177. # PHP
  178. ##############################################################################
  179. load(
  180. "@com_google_googleapis_imports//:imports.bzl",
  181. "php_gapic_assembly_pkg",
  182. "php_gapic_library",
  183. "php_grpc_library",
  184. "php_proto_library",
  185. )
  186. php_proto_library(
  187. name = "apigeeconnect_php_proto",
  188. deps = [":apigeeconnect_proto"],
  189. )
  190. php_grpc_library(
  191. name = "apigeeconnect_php_grpc",
  192. srcs = [":apigeeconnect_proto"],
  193. deps = [":apigeeconnect_php_proto"],
  194. )
  195. php_gapic_library(
  196. name = "apigeeconnect_php_gapic",
  197. srcs = [":apigeeconnect_proto_with_info"],
  198. grpc_service_config = "connection_grpc_service_config.json",
  199. rest_numeric_enums = False,
  200. service_yaml = "apigeeconnect_v1.yaml",
  201. transport = "grpc+rest",
  202. deps = [
  203. ":apigeeconnect_php_grpc",
  204. ":apigeeconnect_php_proto",
  205. ],
  206. )
  207. # Open Source Packages
  208. php_gapic_assembly_pkg(
  209. name = "google-cloud-apigeeconnect-v1-php",
  210. deps = [
  211. ":apigeeconnect_php_gapic",
  212. ":apigeeconnect_php_grpc",
  213. ":apigeeconnect_php_proto",
  214. ],
  215. )
  216. ##############################################################################
  217. # Node.js
  218. ##############################################################################
  219. load(
  220. "@com_google_googleapis_imports//:imports.bzl",
  221. "nodejs_gapic_assembly_pkg",
  222. "nodejs_gapic_library",
  223. )
  224. nodejs_gapic_library(
  225. name = "apigeeconnect_nodejs_gapic",
  226. package_name = "@google-cloud/apigee-connect",
  227. src = ":apigeeconnect_proto_with_info",
  228. extra_protoc_parameters = ["metadata"],
  229. grpc_service_config = "connection_grpc_service_config.json",
  230. package = "google.cloud.apigeeconnect.v1",
  231. rest_numeric_enums = False,
  232. service_yaml = "apigeeconnect_v1.yaml",
  233. transport = "grpc+rest",
  234. deps = [],
  235. )
  236. nodejs_gapic_assembly_pkg(
  237. name = "apigeeconnect-v1-nodejs",
  238. deps = [
  239. ":apigeeconnect_nodejs_gapic",
  240. ":apigeeconnect_proto",
  241. ],
  242. )
  243. ##############################################################################
  244. # Ruby
  245. ##############################################################################
  246. load(
  247. "@com_google_googleapis_imports//:imports.bzl",
  248. "ruby_cloud_gapic_library",
  249. "ruby_gapic_assembly_pkg",
  250. "ruby_grpc_library",
  251. "ruby_proto_library",
  252. )
  253. ruby_proto_library(
  254. name = "apigeeconnect_ruby_proto",
  255. deps = [":apigeeconnect_proto"],
  256. )
  257. ruby_grpc_library(
  258. name = "apigeeconnect_ruby_grpc",
  259. srcs = [":apigeeconnect_proto"],
  260. deps = [":apigeeconnect_ruby_proto"],
  261. )
  262. ruby_cloud_gapic_library(
  263. name = "apigeeconnect_ruby_gapic",
  264. srcs = [":apigeeconnect_proto_with_info"],
  265. extra_protoc_parameters = [
  266. "ruby-cloud-gem-name=google-cloud-apigee_connect-v1",
  267. "ruby-cloud-env-prefix=APIGEE_CONNECT",
  268. "ruby-cloud-product-url=https://cloud.google.com/apigee/docs/hybrid/v1.4/apigee-connect",
  269. "ruby-cloud-api-id=apigeeconnect.googleapis.com",
  270. "ruby-cloud-api-shortname=apigeeconnect",
  271. ],
  272. grpc_service_config = "connection_grpc_service_config.json",
  273. rest_numeric_enums = False,
  274. ruby_cloud_description = "Apigee Connect allows the Apigee hybrid management plane to connect securely to the MART service in the runtime plane without requiring you to expose the MART endpoint on the internet. If you use Apigee Connect, you do not need to configure the MART ingress gateway with a host alias and an authorized DNS certificate.",
  275. ruby_cloud_title = "Apigee Connect V1",
  276. deps = [
  277. ":apigeeconnect_ruby_grpc",
  278. ":apigeeconnect_ruby_proto",
  279. ],
  280. )
  281. # Open Source Packages
  282. ruby_gapic_assembly_pkg(
  283. name = "google-cloud-apigeeconnect-v1-ruby",
  284. deps = [
  285. ":apigeeconnect_ruby_gapic",
  286. ":apigeeconnect_ruby_grpc",
  287. ":apigeeconnect_ruby_proto",
  288. ],
  289. )
  290. ##############################################################################
  291. # C#
  292. ##############################################################################
  293. load(
  294. "@com_google_googleapis_imports//:imports.bzl",
  295. "csharp_gapic_assembly_pkg",
  296. "csharp_gapic_library",
  297. "csharp_grpc_library",
  298. "csharp_proto_library",
  299. )
  300. csharp_proto_library(
  301. name = "apigeeconnect_csharp_proto",
  302. deps = [":apigeeconnect_proto"],
  303. )
  304. csharp_grpc_library(
  305. name = "apigeeconnect_csharp_grpc",
  306. srcs = [":apigeeconnect_proto"],
  307. deps = [":apigeeconnect_csharp_proto"],
  308. )
  309. csharp_gapic_library(
  310. name = "apigeeconnect_csharp_gapic",
  311. srcs = [":apigeeconnect_proto_with_info"],
  312. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  313. grpc_service_config = "connection_grpc_service_config.json",
  314. rest_numeric_enums = False,
  315. service_yaml = "apigeeconnect_v1.yaml",
  316. deps = [
  317. ":apigeeconnect_csharp_grpc",
  318. ":apigeeconnect_csharp_proto",
  319. ],
  320. )
  321. # Open Source Packages
  322. csharp_gapic_assembly_pkg(
  323. name = "google-cloud-apigeeconnect-v1-csharp",
  324. deps = [
  325. ":apigeeconnect_csharp_gapic",
  326. ":apigeeconnect_csharp_grpc",
  327. ":apigeeconnect_csharp_proto",
  328. ],
  329. )
  330. ##############################################################################
  331. # C++
  332. ##############################################################################
  333. load(
  334. "@com_google_googleapis_imports//:imports.bzl",
  335. "cc_grpc_library",
  336. "cc_proto_library",
  337. )
  338. cc_proto_library(
  339. name = "apigeeconnect_cc_proto",
  340. deps = [":apigeeconnect_proto"],
  341. )
  342. cc_grpc_library(
  343. name = "apigeeconnect_cc_grpc",
  344. srcs = [":apigeeconnect_proto"],
  345. grpc_only = True,
  346. deps = [":apigeeconnect_cc_proto"],
  347. )