BUILD.bazel 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  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. test_deps = [
  64. ":apigeeconnect_java_grpc",
  65. ],
  66. deps = [
  67. ":apigeeconnect_java_proto",
  68. ],
  69. )
  70. java_gapic_test(
  71. name = "apigeeconnect_java_gapic_test_suite",
  72. test_classes = [
  73. "com.google.cloud.apigeeconnect.v1.ConnectionServiceClientTest",
  74. "com.google.cloud.apigeeconnect.v1.TetherClientTest",
  75. ],
  76. runtime_deps = [":apigeeconnect_java_gapic_test"],
  77. )
  78. # Open Source Packages
  79. java_gapic_assembly_gradle_pkg(
  80. name = "google-cloud-apigeeconnect-v1-java",
  81. deps = [
  82. ":apigeeconnect_java_gapic",
  83. ":apigeeconnect_java_grpc",
  84. ":apigeeconnect_java_proto",
  85. ":apigeeconnect_proto",
  86. ],
  87. )
  88. ##############################################################################
  89. # Go
  90. ##############################################################################
  91. load(
  92. "@com_google_googleapis_imports//:imports.bzl",
  93. "go_gapic_assembly_pkg",
  94. "go_gapic_library",
  95. "go_proto_library",
  96. "go_test",
  97. )
  98. go_proto_library(
  99. name = "apigeeconnect_go_proto",
  100. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  101. importpath = "google.golang.org/genproto/googleapis/cloud/apigeeconnect/v1",
  102. protos = [":apigeeconnect_proto"],
  103. deps = [
  104. "//google/api:annotations_go_proto",
  105. "//google/rpc:status_go_proto",
  106. ],
  107. )
  108. go_gapic_library(
  109. name = "apigeeconnect_go_gapic",
  110. srcs = [":apigeeconnect_proto_with_info"],
  111. grpc_service_config = "connection_grpc_service_config.json",
  112. importpath = "cloud.google.com/go/apigeeconnect/apiv1;apigeeconnect",
  113. metadata = True,
  114. service_yaml = "apigeeconnect_v1.yaml",
  115. deps = [
  116. ":apigeeconnect_go_proto",
  117. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  118. ],
  119. )
  120. go_test(
  121. name = "apigeeconnect_go_gapic_test",
  122. srcs = [":apigeeconnect_go_gapic_srcjar_test"],
  123. embed = [":apigeeconnect_go_gapic"],
  124. importpath = "cloud.google.com/go/apigeeconnect/apiv1",
  125. )
  126. # Open Source Packages
  127. go_gapic_assembly_pkg(
  128. name = "gapi-cloud-apigeeconnect-v1-go",
  129. deps = [
  130. ":apigeeconnect_go_gapic",
  131. ":apigeeconnect_go_gapic_srcjar-metadata.srcjar",
  132. ":apigeeconnect_go_gapic_srcjar-test.srcjar",
  133. ":apigeeconnect_go_proto",
  134. ],
  135. )
  136. ##############################################################################
  137. # Python
  138. ##############################################################################
  139. load(
  140. "@com_google_googleapis_imports//:imports.bzl",
  141. "py_gapic_assembly_pkg",
  142. "py_gapic_library",
  143. )
  144. py_gapic_library(
  145. name = "apigeeconnect_py_gapic",
  146. srcs = [":apigeeconnect_proto"],
  147. grpc_service_config = "connection_grpc_service_config.json",
  148. opt_args = ["warehouse-package-name=google-cloud-apigee-connect"]
  149. )
  150. # Open Source Packages
  151. py_gapic_assembly_pkg(
  152. name = "apigeeconnect-v1-py",
  153. deps = [
  154. ":apigeeconnect_py_gapic",
  155. ],
  156. )
  157. ##############################################################################
  158. # PHP
  159. ##############################################################################
  160. load(
  161. "@com_google_googleapis_imports//:imports.bzl",
  162. "php_gapic_assembly_pkg",
  163. "php_gapic_library",
  164. "php_grpc_library",
  165. "php_proto_library",
  166. )
  167. php_proto_library(
  168. name = "apigeeconnect_php_proto",
  169. deps = [":apigeeconnect_proto"],
  170. )
  171. php_grpc_library(
  172. name = "apigeeconnect_php_grpc",
  173. srcs = [":apigeeconnect_proto"],
  174. deps = [":apigeeconnect_php_proto"],
  175. )
  176. php_gapic_library(
  177. name = "apigeeconnect_php_gapic",
  178. srcs = [":apigeeconnect_proto_with_info"],
  179. grpc_service_config = "connection_grpc_service_config.json",
  180. service_yaml = "apigeeconnect_v1.yaml",
  181. deps = [
  182. ":apigeeconnect_php_grpc",
  183. ":apigeeconnect_php_proto",
  184. ],
  185. )
  186. # Open Source Packages
  187. php_gapic_assembly_pkg(
  188. name = "google-cloud-apigeeconnect-v1-php",
  189. deps = [
  190. ":apigeeconnect_php_gapic",
  191. ":apigeeconnect_php_grpc",
  192. ":apigeeconnect_php_proto",
  193. ],
  194. )
  195. ##############################################################################
  196. # Node.js
  197. ##############################################################################
  198. load(
  199. "@com_google_googleapis_imports//:imports.bzl",
  200. "nodejs_gapic_assembly_pkg",
  201. "nodejs_gapic_library",
  202. )
  203. nodejs_gapic_library(
  204. name = "apigeeconnect_nodejs_gapic",
  205. package_name = "@google-cloud/apigee-connect",
  206. src = ":apigeeconnect_proto_with_info",
  207. extra_protoc_parameters = ["metadata"],
  208. grpc_service_config = "connection_grpc_service_config.json",
  209. package = "google.cloud.apigeeconnect.v1",
  210. service_yaml = "apigeeconnect_v1.yaml",
  211. deps = [],
  212. )
  213. nodejs_gapic_assembly_pkg(
  214. name = "apigeeconnect-v1-nodejs",
  215. deps = [
  216. ":apigeeconnect_nodejs_gapic",
  217. ":apigeeconnect_proto",
  218. ],
  219. )
  220. ##############################################################################
  221. # Ruby
  222. ##############################################################################
  223. load(
  224. "@com_google_googleapis_imports//:imports.bzl",
  225. "ruby_cloud_gapic_library",
  226. "ruby_gapic_assembly_pkg",
  227. "ruby_grpc_library",
  228. "ruby_proto_library",
  229. )
  230. ruby_proto_library(
  231. name = "apigeeconnect_ruby_proto",
  232. deps = [":apigeeconnect_proto"],
  233. )
  234. ruby_grpc_library(
  235. name = "apigeeconnect_ruby_grpc",
  236. srcs = [":apigeeconnect_proto"],
  237. deps = [":apigeeconnect_ruby_proto"],
  238. )
  239. ruby_cloud_gapic_library(
  240. name = "apigeeconnect_ruby_gapic",
  241. srcs = [":apigeeconnect_proto_with_info"],
  242. extra_protoc_parameters = [
  243. "ruby-cloud-gem-name=google-cloud-apigee_connect-v1",
  244. "ruby-cloud-env-prefix=APIGEE_CONNECT",
  245. "ruby-cloud-product-url=https://cloud.google.com/apigee/docs/hybrid/v1.4/apigee-connect",
  246. "ruby-cloud-api-id=apigeeconnect.googleapis.com",
  247. "ruby-cloud-api-shortname=apigeeconnect",
  248. ],
  249. grpc_service_config = "connection_grpc_service_config.json",
  250. 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.",
  251. ruby_cloud_title = "Apigee Connect V1",
  252. deps = [
  253. ":apigeeconnect_ruby_grpc",
  254. ":apigeeconnect_ruby_proto",
  255. ],
  256. )
  257. # Open Source Packages
  258. ruby_gapic_assembly_pkg(
  259. name = "google-cloud-apigeeconnect-v1-ruby",
  260. deps = [
  261. ":apigeeconnect_ruby_gapic",
  262. ":apigeeconnect_ruby_grpc",
  263. ":apigeeconnect_ruby_proto",
  264. ],
  265. )
  266. ##############################################################################
  267. # C#
  268. ##############################################################################
  269. load(
  270. "@com_google_googleapis_imports//:imports.bzl",
  271. "csharp_gapic_assembly_pkg",
  272. "csharp_gapic_library",
  273. "csharp_grpc_library",
  274. "csharp_proto_library",
  275. )
  276. csharp_proto_library(
  277. name = "apigeeconnect_csharp_proto",
  278. deps = [":apigeeconnect_proto"],
  279. )
  280. csharp_grpc_library(
  281. name = "apigeeconnect_csharp_grpc",
  282. srcs = [":apigeeconnect_proto"],
  283. deps = [":apigeeconnect_csharp_proto"],
  284. )
  285. csharp_gapic_library(
  286. name = "apigeeconnect_csharp_gapic",
  287. srcs = [":apigeeconnect_proto_with_info"],
  288. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  289. grpc_service_config = "connection_grpc_service_config.json",
  290. deps = [
  291. ":apigeeconnect_csharp_grpc",
  292. ":apigeeconnect_csharp_proto",
  293. ],
  294. )
  295. # Open Source Packages
  296. csharp_gapic_assembly_pkg(
  297. name = "google-cloud-apigeeconnect-v1-csharp",
  298. deps = [
  299. ":apigeeconnect_csharp_gapic",
  300. ":apigeeconnect_csharp_grpc",
  301. ":apigeeconnect_csharp_proto",
  302. ],
  303. )
  304. ##############################################################################
  305. # C++
  306. ##############################################################################
  307. # Put your C++ rules here