BUILD.bazel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  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. ##############################################################################
  11. # Common
  12. ##############################################################################
  13. load("@rules_proto//proto:defs.bzl", "proto_library")
  14. load(
  15. "@com_google_googleapis_imports//:imports.bzl",
  16. "cc_grpc_library",
  17. "cc_proto_library",
  18. "csharp_gapic_assembly_pkg",
  19. "csharp_gapic_library",
  20. "csharp_grpc_library",
  21. "csharp_proto_library",
  22. "go_gapic_assembly_pkg",
  23. "go_gapic_library",
  24. "go_proto_library",
  25. "go_test",
  26. "java_gapic_assembly_gradle_pkg",
  27. "java_gapic_library",
  28. "java_gapic_test",
  29. "java_grpc_library",
  30. "java_proto_library",
  31. "nodejs_gapic_assembly_pkg",
  32. "nodejs_gapic_library",
  33. "php_gapic_assembly_pkg",
  34. "php_gapic_library",
  35. "php_grpc_library",
  36. "php_proto_library",
  37. "proto_library_with_info",
  38. "py_gapic_assembly_pkg",
  39. "py_gapic_library",
  40. "py_test",
  41. "ruby_cloud_gapic_library",
  42. "ruby_gapic_assembly_pkg",
  43. "ruby_grpc_library",
  44. "ruby_proto_library",
  45. )
  46. # This is an API workspace, having public visibility by default makes perfect sense.
  47. package(default_visibility = ["//visibility:public"])
  48. proto_library(
  49. name = "appconnectors_proto",
  50. srcs = [
  51. "app_connector_instance_config.proto",
  52. "app_connectors_service.proto",
  53. "resource_info.proto",
  54. ],
  55. deps = [
  56. "//google/api:annotations_proto",
  57. "//google/api:client_proto",
  58. "//google/api:field_behavior_proto",
  59. "//google/api:resource_proto",
  60. "//google/longrunning:operations_proto",
  61. "@com_google_protobuf//:any_proto",
  62. "@com_google_protobuf//:field_mask_proto",
  63. "@com_google_protobuf//:timestamp_proto",
  64. ],
  65. )
  66. proto_library_with_info(
  67. name = "appconnectors_proto_with_info",
  68. deps = [
  69. ":appconnectors_proto",
  70. "//google/cloud:common_resources_proto",
  71. "//google/cloud/location:location_proto",
  72. "//google/iam/v1:iam_policy_proto",
  73. ],
  74. )
  75. java_proto_library(
  76. name = "appconnectors_java_proto",
  77. deps = [":appconnectors_proto"],
  78. )
  79. java_grpc_library(
  80. name = "appconnectors_java_grpc",
  81. srcs = [":appconnectors_proto"],
  82. deps = [":appconnectors_java_proto"],
  83. )
  84. java_gapic_library(
  85. name = "appconnectors_java_gapic",
  86. srcs = [":appconnectors_proto_with_info"],
  87. gapic_yaml = None,
  88. grpc_service_config = "beyondcorp-appconnectors_grpc_service_config.json",
  89. rest_numeric_enums = False,
  90. service_yaml = "beyondcorp_v1.yaml",
  91. test_deps = [
  92. ":appconnectors_java_grpc",
  93. "//google/cloud/location:location_java_grpc",
  94. "//google/iam/v1:iam_java_grpc",
  95. ],
  96. transport = "grpc",
  97. deps = [
  98. ":appconnectors_java_proto",
  99. "//google/api:api_java_proto",
  100. "//google/cloud/location:location_java_proto",
  101. "//google/iam/v1:iam_java_proto",
  102. ],
  103. )
  104. java_gapic_test(
  105. name = "appconnectors_java_gapic_test_suite",
  106. test_classes = [
  107. "com.google.cloud.beyondcorp.appconnectors.v1.AppConnectorsServiceClientTest",
  108. ],
  109. runtime_deps = [":appconnectors_java_gapic_test"],
  110. )
  111. # Open Source Packages
  112. java_gapic_assembly_gradle_pkg(
  113. name = "google-cloud-beyondcorp-appconnectors-v1-java",
  114. include_samples = True,
  115. transport = "grpc",
  116. deps = [
  117. ":appconnectors_java_gapic",
  118. ":appconnectors_java_grpc",
  119. ":appconnectors_java_proto",
  120. ":appconnectors_proto",
  121. ],
  122. )
  123. go_proto_library(
  124. name = "appconnectors_go_proto",
  125. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  126. importpath = "google.golang.org/genproto/googleapis/cloud/beyondcorp/appconnectors/v1",
  127. protos = [":appconnectors_proto"],
  128. deps = [
  129. "//google/api:annotations_go_proto",
  130. "//google/longrunning:longrunning_go_proto",
  131. ],
  132. )
  133. go_gapic_library(
  134. name = "appconnectors_go_gapic",
  135. srcs = [":appconnectors_proto_with_info"],
  136. grpc_service_config = "beyondcorp-appconnectors_grpc_service_config.json",
  137. importpath = "cloud.google.com/go/beyondcorp/appconnectors/apiv1;appconnectors",
  138. metadata = True,
  139. rest_numeric_enums = False,
  140. service_yaml = "beyondcorp_v1.yaml",
  141. deps = [
  142. ":appconnectors_go_proto",
  143. "//google/cloud/location:location_go_proto",
  144. "//google/iam/v1:iam_go_proto",
  145. "//google/longrunning:longrunning_go_proto",
  146. "@com_google_cloud_go//longrunning:go_default_library",
  147. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  148. "@io_bazel_rules_go//proto/wkt:any_go_proto",
  149. ],
  150. )
  151. go_test(
  152. name = "appconnectors_go_gapic_test",
  153. srcs = [":appconnectors_go_gapic_srcjar_test"],
  154. embed = [":appconnectors_go_gapic"],
  155. importpath = "cloud.google.com/go/beyondcorp/appconnectors/apiv1",
  156. )
  157. # Open Source Packages
  158. go_gapic_assembly_pkg(
  159. name = "gapi-cloud-beyondcorp-appconnectors-v1-go",
  160. deps = [
  161. ":appconnectors_go_gapic",
  162. ":appconnectors_go_gapic_srcjar-metadata.srcjar",
  163. ":appconnectors_go_gapic_srcjar-test.srcjar",
  164. ":appconnectors_go_proto",
  165. ],
  166. )
  167. py_gapic_library(
  168. name = "appconnectors_py_gapic",
  169. srcs = [":appconnectors_proto"],
  170. grpc_service_config = "beyondcorp-appconnectors_grpc_service_config.json",
  171. opt_args = [
  172. "warehouse-package-name=google-cloud-beyondcorp-appconnectors",
  173. "python-gapic-namespace=google.cloud",
  174. "python-gapic-name=beyondcorp_appconnectors",
  175. ],
  176. rest_numeric_enums = False,
  177. service_yaml = "beyondcorp_v1.yaml",
  178. transport = "grpc+rest",
  179. deps = [
  180. "//google/iam/v1:iam_policy_py_proto",
  181. ],
  182. )
  183. py_test(
  184. name = "appconnectors_py_gapic_test",
  185. srcs = [
  186. "appconnectors_py_gapic_pytest.py",
  187. "appconnectors_py_gapic_test.py",
  188. ],
  189. legacy_create_init = False,
  190. deps = [":appconnectors_py_gapic"],
  191. )
  192. # Open Source Packages
  193. py_gapic_assembly_pkg(
  194. name = "beyondcorp-appconnectors-v1-py",
  195. deps = [
  196. ":appconnectors_py_gapic",
  197. ],
  198. )
  199. php_proto_library(
  200. name = "appconnectors_php_proto",
  201. deps = [":appconnectors_proto"],
  202. )
  203. php_grpc_library(
  204. name = "appconnectors_php_grpc",
  205. srcs = [":appconnectors_proto"],
  206. deps = [":appconnectors_php_proto"],
  207. )
  208. php_gapic_library(
  209. name = "appconnectors_php_gapic",
  210. srcs = [":appconnectors_proto_with_info"],
  211. grpc_service_config = "beyondcorp-appconnectors_grpc_service_config.json",
  212. rest_numeric_enums = False,
  213. service_yaml = "beyondcorp_v1.yaml",
  214. transport = "grpc+rest",
  215. deps = [
  216. ":appconnectors_php_grpc",
  217. ":appconnectors_php_proto",
  218. ],
  219. )
  220. # Open Source Packages
  221. php_gapic_assembly_pkg(
  222. name = "google-cloud-beyondcorp-appconnectors-v1-php",
  223. deps = [
  224. ":appconnectors_php_gapic",
  225. ":appconnectors_php_grpc",
  226. ":appconnectors_php_proto",
  227. ],
  228. )
  229. nodejs_gapic_library(
  230. name = "appconnectors_nodejs_gapic",
  231. package_name = "@google-cloud/appconnectors",
  232. src = ":appconnectors_proto_with_info",
  233. extra_protoc_parameters = ["metadata"],
  234. grpc_service_config = "beyondcorp-appconnectors_grpc_service_config.json",
  235. package = "google.cloud.beyondcorp.appconnectors.v1",
  236. rest_numeric_enums = False,
  237. service_yaml = "beyondcorp_v1.yaml",
  238. transport = "grpc+rest",
  239. deps = [],
  240. )
  241. nodejs_gapic_assembly_pkg(
  242. name = "beyondcorp-appconnectors-v1-nodejs",
  243. deps = [
  244. ":appconnectors_nodejs_gapic",
  245. ":appconnectors_proto",
  246. ],
  247. )
  248. ruby_proto_library(
  249. name = "appconnectors_ruby_proto",
  250. deps = [":appconnectors_proto"],
  251. )
  252. ruby_grpc_library(
  253. name = "appconnectors_ruby_grpc",
  254. srcs = [":appconnectors_proto"],
  255. deps = [":appconnectors_ruby_proto"],
  256. )
  257. ruby_cloud_gapic_library(
  258. name = "appconnectors_ruby_gapic",
  259. srcs = [":appconnectors_proto_with_info"],
  260. extra_protoc_parameters = [
  261. "ruby-cloud-gem-name=google-cloud-beyond_corp-app_connectors-v1",
  262. "ruby-cloud-product-url=https://cloud.google.com/beyondcorp/",
  263. "ruby-cloud-api-id=beyondcorp.googleapis.com",
  264. "ruby-cloud-api-shortname=beyondcorp",
  265. "ruby-cloud-wrapper-gem-override=google-cloud-beyond_corp",
  266. ],
  267. grpc_service_config = "beyondcorp-appconnectors_grpc_service_config.json",
  268. rest_numeric_enums = False,
  269. ruby_cloud_description = "Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity using the App Connector hybrid connectivity solution.",
  270. ruby_cloud_title = "BeyondCorp AppConnectors V1",
  271. service_yaml = "beyondcorp_v1.yaml",
  272. deps = [
  273. ":appconnectors_ruby_grpc",
  274. ":appconnectors_ruby_proto",
  275. ],
  276. )
  277. # Open Source Packages
  278. ruby_gapic_assembly_pkg(
  279. name = "google-cloud-beyondcorp-appconnectors-v1-ruby",
  280. deps = [
  281. ":appconnectors_ruby_gapic",
  282. ":appconnectors_ruby_grpc",
  283. ":appconnectors_ruby_proto",
  284. ],
  285. )
  286. csharp_proto_library(
  287. name = "appconnectors_csharp_proto",
  288. deps = [":appconnectors_proto"],
  289. )
  290. csharp_grpc_library(
  291. name = "appconnectors_csharp_grpc",
  292. srcs = [":appconnectors_proto"],
  293. deps = [":appconnectors_csharp_proto"],
  294. )
  295. csharp_gapic_library(
  296. name = "appconnectors_csharp_gapic",
  297. srcs = [":appconnectors_proto_with_info"],
  298. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  299. grpc_service_config = "beyondcorp-appconnectors_grpc_service_config.json",
  300. rest_numeric_enums = False,
  301. service_yaml = "beyondcorp_v1.yaml",
  302. deps = [
  303. ":appconnectors_csharp_grpc",
  304. ":appconnectors_csharp_proto",
  305. ],
  306. )
  307. # Open Source Packages
  308. csharp_gapic_assembly_pkg(
  309. name = "google-cloud-beyondcorp-appconnectors-v1-csharp",
  310. deps = [
  311. ":appconnectors_csharp_gapic",
  312. ":appconnectors_csharp_grpc",
  313. ":appconnectors_csharp_proto",
  314. ],
  315. )
  316. cc_proto_library(
  317. name = "appconnectors_cc_proto",
  318. deps = [":appconnectors_proto"],
  319. )
  320. cc_grpc_library(
  321. name = "appconnectors_cc_grpc",
  322. srcs = [":appconnectors_proto"],
  323. grpc_only = True,
  324. deps = [":appconnectors_cc_proto"],
  325. )