BUILD.bazel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  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 = "service_proto",
  19. srcs = [
  20. "environments.proto",
  21. "image_versions.proto",
  22. "operations.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/longrunning:operations_proto",
  30. "//google/type:date_proto",
  31. "@com_google_protobuf//:field_mask_proto",
  32. "@com_google_protobuf//:timestamp_proto",
  33. ],
  34. )
  35. proto_library_with_info(
  36. name = "service_proto_with_info",
  37. deps = [
  38. ":service_proto",
  39. "//google/cloud:common_resources_proto",
  40. ],
  41. )
  42. ##############################################################################
  43. # Java
  44. ##############################################################################
  45. load(
  46. "@com_google_googleapis_imports//:imports.bzl",
  47. "java_gapic_assembly_gradle_pkg",
  48. "java_gapic_library",
  49. "java_gapic_test",
  50. "java_grpc_library",
  51. "java_proto_library",
  52. )
  53. java_proto_library(
  54. name = "service_java_proto",
  55. deps = [":service_proto"],
  56. )
  57. java_grpc_library(
  58. name = "service_java_grpc",
  59. srcs = [":service_proto"],
  60. deps = [":service_java_proto"],
  61. )
  62. java_gapic_library(
  63. name = "service_java_gapic",
  64. srcs = [":service_proto_with_info"],
  65. grpc_service_config = "composer_grpc_service_config.json",
  66. rest_numeric_enums = False,
  67. test_deps = [
  68. ":service_java_grpc",
  69. ],
  70. transport = "grpc+rest",
  71. deps = [
  72. ":service_java_proto",
  73. ],
  74. )
  75. java_gapic_test(
  76. name = "service_java_gapic_test_suite",
  77. test_classes = [
  78. "com.google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClientHttpJsonTest",
  79. "com.google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClientTest",
  80. "com.google.cloud.orchestration.airflow.service.v1beta1.ImageVersionsClientHttpJsonTest",
  81. "com.google.cloud.orchestration.airflow.service.v1beta1.ImageVersionsClientTest",
  82. ],
  83. runtime_deps = [":service_java_gapic_test"],
  84. )
  85. # Open Source Packages
  86. java_gapic_assembly_gradle_pkg(
  87. name = "google-cloud-airflow-service-v1beta1-java",
  88. include_samples = True,
  89. transport = "grpc+rest",
  90. deps = [
  91. ":service_java_gapic",
  92. ":service_java_grpc",
  93. ":service_java_proto",
  94. ":service_proto",
  95. ],
  96. )
  97. ##############################################################################
  98. # Go
  99. ##############################################################################
  100. load(
  101. "@com_google_googleapis_imports//:imports.bzl",
  102. "go_gapic_assembly_pkg",
  103. "go_gapic_library",
  104. "go_proto_library",
  105. "go_test",
  106. )
  107. go_proto_library(
  108. name = "service_go_proto",
  109. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  110. importpath = "google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1beta1",
  111. protos = [":service_proto"],
  112. deps = [
  113. "//google/api:annotations_go_proto",
  114. "//google/longrunning:longrunning_go_proto",
  115. "//google/type:date_go_proto",
  116. ],
  117. )
  118. go_gapic_library(
  119. name = "service_go_gapic",
  120. srcs = [":service_proto_with_info"],
  121. grpc_service_config = "composer_grpc_service_config.json",
  122. importpath = "cloud.google.com/go/orchestration/airflow/service/apiv1beta1;service",
  123. metadata = True,
  124. rest_numeric_enums = False,
  125. service_yaml = "composer_v1beta1.yaml",
  126. transport = "grpc+rest",
  127. deps = [
  128. ":service_go_proto",
  129. "//google/longrunning:longrunning_go_proto",
  130. "@com_google_cloud_go//longrunning:go_default_library",
  131. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  132. ],
  133. )
  134. go_test(
  135. name = "service_go_gapic_test",
  136. srcs = [":service_go_gapic_srcjar_test"],
  137. embed = [":service_go_gapic"],
  138. importpath = "cloud.google.com/go/orchestration/airflow/service/apiv1beta1",
  139. )
  140. # Open Source Packages
  141. go_gapic_assembly_pkg(
  142. name = "gapi-cloud-airflow-service-v1beta1-go",
  143. deps = [
  144. ":service_go_gapic",
  145. ":service_go_gapic_srcjar-metadata.srcjar",
  146. ":service_go_gapic_srcjar-test.srcjar",
  147. ":service_go_proto",
  148. ],
  149. )
  150. ##############################################################################
  151. # Python
  152. ##############################################################################
  153. load(
  154. "@com_google_googleapis_imports//:imports.bzl",
  155. "py_gapic_assembly_pkg",
  156. "py_gapic_library",
  157. "py_test",
  158. )
  159. py_gapic_library(
  160. name = "service_py_gapic",
  161. srcs = [":service_proto"],
  162. grpc_service_config = "composer_grpc_service_config.json",
  163. rest_numeric_enums = False,
  164. transport = "grpc",
  165. )
  166. py_test(
  167. name = "service_py_gapic_test",
  168. srcs = [
  169. "service_py_gapic_pytest.py",
  170. "service_py_gapic_test.py",
  171. ],
  172. legacy_create_init = False,
  173. deps = [":service_py_gapic"],
  174. )
  175. # Open Source Packages
  176. py_gapic_assembly_pkg(
  177. name = "airflow-service-v1beta1-py",
  178. deps = [
  179. ":service_py_gapic",
  180. ],
  181. )
  182. ##############################################################################
  183. # PHP
  184. ##############################################################################
  185. load(
  186. "@com_google_googleapis_imports//:imports.bzl",
  187. "php_gapic_assembly_pkg",
  188. "php_gapic_library",
  189. "php_grpc_library",
  190. "php_proto_library",
  191. )
  192. php_proto_library(
  193. name = "service_php_proto",
  194. deps = [":service_proto"],
  195. )
  196. php_grpc_library(
  197. name = "service_php_grpc",
  198. srcs = [":service_proto"],
  199. deps = [":service_php_proto"],
  200. )
  201. php_gapic_library(
  202. name = "service_php_gapic",
  203. srcs = [":service_proto_with_info"],
  204. grpc_service_config = "composer_grpc_service_config.json",
  205. rest_numeric_enums = False,
  206. service_yaml = "composer_v1beta1.yaml",
  207. transport = "grpc+rest",
  208. deps = [
  209. ":service_php_grpc",
  210. ":service_php_proto",
  211. ],
  212. )
  213. # Open Source Packages
  214. php_gapic_assembly_pkg(
  215. name = "google-cloud-airflow-service-v1beta1-php",
  216. deps = [
  217. ":service_php_gapic",
  218. ":service_php_grpc",
  219. ":service_php_proto",
  220. ],
  221. )
  222. ##############################################################################
  223. # Node.js
  224. ##############################################################################
  225. load(
  226. "@com_google_googleapis_imports//:imports.bzl",
  227. "nodejs_gapic_assembly_pkg",
  228. "nodejs_gapic_library",
  229. )
  230. nodejs_gapic_library(
  231. name = "service_nodejs_gapic",
  232. package_name = "@google-cloud/orchestration-airflow",
  233. src = ":service_proto_with_info",
  234. extra_protoc_parameters = ["metadata"],
  235. grpc_service_config = "composer_grpc_service_config.json",
  236. package = "google.cloud.orchestration.airflow.service.v1beta1",
  237. rest_numeric_enums = False,
  238. service_yaml = "composer_v1beta1.yaml",
  239. transport = "grpc+rest",
  240. deps = [],
  241. )
  242. nodejs_gapic_assembly_pkg(
  243. name = "airflow-service-v1beta1-nodejs",
  244. deps = [
  245. ":service_nodejs_gapic",
  246. ":service_proto",
  247. ],
  248. )
  249. ##############################################################################
  250. # Ruby
  251. ##############################################################################
  252. load(
  253. "@com_google_googleapis_imports//:imports.bzl",
  254. "ruby_cloud_gapic_library",
  255. "ruby_gapic_assembly_pkg",
  256. "ruby_grpc_library",
  257. "ruby_proto_library",
  258. )
  259. ruby_proto_library(
  260. name = "service_ruby_proto",
  261. deps = [":service_proto"],
  262. )
  263. ruby_grpc_library(
  264. name = "service_ruby_grpc",
  265. srcs = [":service_proto"],
  266. deps = [":service_ruby_proto"],
  267. )
  268. ruby_cloud_gapic_library(
  269. name = "service_ruby_gapic",
  270. srcs = [":service_proto_with_info"],
  271. extra_protoc_parameters = [
  272. "ruby-cloud-gem-name=google-cloud-orchestration-airflow-service-v1beta1",
  273. "ruby-cloud-product-url=https://cloud.google.com/composer",
  274. "ruby-cloud-api-id=composer.googleapis.com",
  275. "ruby-cloud-api-shortname=composer",
  276. ],
  277. grpc_service_config = "composer_grpc_service_config.json",
  278. rest_numeric_enums = False,
  279. ruby_cloud_description = "The client library for the Cloud Composer API, built on the popular Apache Airflow open source project. Cloud Composer is a fully managed workflow orchestration service, enabling you to create, schedule, monitor, and manage workflows that span across clouds and on-premises data centers.",
  280. ruby_cloud_title = "Cloud Composer V1beta1",
  281. deps = [
  282. ":service_ruby_grpc",
  283. ":service_ruby_proto",
  284. ],
  285. )
  286. # Open Source Packages
  287. ruby_gapic_assembly_pkg(
  288. name = "google-cloud-airflow-service-v1beta1-ruby",
  289. deps = [
  290. ":service_ruby_gapic",
  291. ":service_ruby_grpc",
  292. ":service_ruby_proto",
  293. ],
  294. )
  295. ##############################################################################
  296. # C#
  297. ##############################################################################
  298. load(
  299. "@com_google_googleapis_imports//:imports.bzl",
  300. "csharp_gapic_assembly_pkg",
  301. "csharp_gapic_library",
  302. "csharp_grpc_library",
  303. "csharp_proto_library",
  304. )
  305. csharp_proto_library(
  306. name = "service_csharp_proto",
  307. deps = [":service_proto"],
  308. )
  309. csharp_grpc_library(
  310. name = "service_csharp_grpc",
  311. srcs = [":service_proto"],
  312. deps = [":service_csharp_proto"],
  313. )
  314. csharp_gapic_library(
  315. name = "service_csharp_gapic",
  316. srcs = [":service_proto_with_info"],
  317. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  318. grpc_service_config = "composer_grpc_service_config.json",
  319. rest_numeric_enums = False,
  320. service_yaml = "composer_v1beta1.yaml",
  321. deps = [
  322. ":service_csharp_grpc",
  323. ":service_csharp_proto",
  324. ],
  325. )
  326. # Open Source Packages
  327. csharp_gapic_assembly_pkg(
  328. name = "google-cloud-airflow-service-v1beta1-csharp",
  329. deps = [
  330. ":service_csharp_gapic",
  331. ":service_csharp_grpc",
  332. ":service_csharp_proto",
  333. ],
  334. )
  335. ##############################################################################
  336. # C++
  337. ##############################################################################
  338. # Put your C++ rules here