BUILD.bazel 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  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 = "run_proto",
  19. srcs = [
  20. "condition.proto",
  21. "execution.proto",
  22. "execution_template.proto",
  23. "job.proto",
  24. "k8s.min.proto",
  25. "revision.proto",
  26. "revision_template.proto",
  27. "service.proto",
  28. "task.proto",
  29. "task_template.proto",
  30. "traffic_target.proto",
  31. "vendor_settings.proto",
  32. ],
  33. deps = [
  34. "//google/api:annotations_proto",
  35. "//google/api:client_proto",
  36. "//google/api:field_behavior_proto",
  37. "//google/api:launch_stage_proto",
  38. "//google/api:resource_proto",
  39. "//google/api:routing_proto",
  40. "//google/iam/v1:iam_policy_proto",
  41. "//google/iam/v1:policy_proto",
  42. "//google/longrunning:operations_proto",
  43. "//google/rpc:status_proto",
  44. "@com_google_protobuf//:duration_proto",
  45. "@com_google_protobuf//:timestamp_proto",
  46. ],
  47. )
  48. proto_library_with_info(
  49. name = "run_proto_with_info",
  50. deps = [
  51. ":run_proto",
  52. "//google/cloud:common_resources_proto",
  53. "//google/cloud/location:location_proto",
  54. ],
  55. )
  56. ##############################################################################
  57. # Java
  58. ##############################################################################
  59. load(
  60. "@com_google_googleapis_imports//:imports.bzl",
  61. "java_gapic_assembly_gradle_pkg",
  62. "java_gapic_library",
  63. "java_gapic_test",
  64. "java_grpc_library",
  65. "java_proto_library",
  66. )
  67. java_proto_library(
  68. name = "run_java_proto",
  69. deps = [":run_proto"],
  70. )
  71. java_grpc_library(
  72. name = "run_java_grpc",
  73. srcs = [":run_proto"],
  74. deps = [":run_java_proto"],
  75. )
  76. java_gapic_library(
  77. name = "run_java_gapic",
  78. srcs = [":run_proto_with_info"],
  79. gapic_yaml = None,
  80. grpc_service_config = "run_grpc_service_config.json",
  81. rest_numeric_enums = False,
  82. service_yaml = "run_v2.yaml",
  83. test_deps = [
  84. ":run_java_grpc",
  85. "//google/cloud/location:location_java_grpc",
  86. "//google/iam/v1:iam_java_grpc",
  87. ],
  88. transport = "grpc+rest",
  89. deps = [
  90. ":run_java_proto",
  91. "//google/api:api_java_proto",
  92. "//google/cloud/location:location_java_proto",
  93. "//google/iam/v1:iam_java_proto",
  94. ],
  95. )
  96. java_gapic_test(
  97. name = "run_java_gapic_test_suite",
  98. test_classes = [
  99. "com.google.cloud.run.v2.ExecutionsClientHttpJsonTest",
  100. "com.google.cloud.run.v2.ExecutionsClientTest",
  101. "com.google.cloud.run.v2.JobsClientHttpJsonTest",
  102. "com.google.cloud.run.v2.JobsClientTest",
  103. "com.google.cloud.run.v2.RevisionsClientHttpJsonTest",
  104. "com.google.cloud.run.v2.RevisionsClientTest",
  105. "com.google.cloud.run.v2.ServicesClientHttpJsonTest",
  106. "com.google.cloud.run.v2.ServicesClientTest",
  107. "com.google.cloud.run.v2.TasksClientHttpJsonTest",
  108. "com.google.cloud.run.v2.TasksClientTest",
  109. ],
  110. runtime_deps = [":run_java_gapic_test"],
  111. )
  112. # Open Source Packages
  113. java_gapic_assembly_gradle_pkg(
  114. name = "google-cloud-run-v2-java",
  115. include_samples = True,
  116. transport = "grpc+rest",
  117. deps = [
  118. ":run_java_gapic",
  119. ":run_java_grpc",
  120. ":run_java_proto",
  121. ":run_proto",
  122. ],
  123. )
  124. ##############################################################################
  125. # Go
  126. ##############################################################################
  127. load(
  128. "@com_google_googleapis_imports//:imports.bzl",
  129. "go_gapic_assembly_pkg",
  130. "go_gapic_library",
  131. "go_proto_library",
  132. "go_test",
  133. )
  134. go_proto_library(
  135. name = "run_go_proto",
  136. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  137. importpath = "google.golang.org/genproto/googleapis/cloud/run/v2",
  138. protos = [":run_proto"],
  139. deps = [
  140. "//google/api:annotations_go_proto",
  141. "//google/api:api_go_proto",
  142. "//google/api:routing_go_proto",
  143. "//google/iam/v1:iam_go_proto",
  144. "//google/longrunning:longrunning_go_proto",
  145. "//google/rpc:status_go_proto",
  146. ],
  147. )
  148. go_gapic_library(
  149. name = "run_go_gapic",
  150. srcs = [":run_proto_with_info"],
  151. grpc_service_config = "run_grpc_service_config.json",
  152. importpath = "cloud.google.com/go/run/apiv2;run",
  153. metadata = True,
  154. rest_numeric_enums = False,
  155. service_yaml = "run_v2.yaml",
  156. transport = "grpc+rest",
  157. deps = [
  158. ":run_go_proto",
  159. "//google/cloud/location:location_go_proto",
  160. "//google/iam/v1:iam_go_proto",
  161. "//google/longrunning:longrunning_go_proto",
  162. "@com_google_cloud_go//longrunning:go_default_library",
  163. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  164. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  165. ],
  166. )
  167. go_test(
  168. name = "run_go_gapic_test",
  169. srcs = [":run_go_gapic_srcjar_test"],
  170. embed = [":run_go_gapic"],
  171. importpath = "cloud.google.com/go/run/apiv2",
  172. )
  173. # Open Source Packages
  174. go_gapic_assembly_pkg(
  175. name = "gapi-cloud-run-v2-go",
  176. deps = [
  177. ":run_go_gapic",
  178. ":run_go_gapic_srcjar-metadata.srcjar",
  179. ":run_go_gapic_srcjar-test.srcjar",
  180. ":run_go_proto",
  181. ],
  182. )
  183. ##############################################################################
  184. # Python
  185. ##############################################################################
  186. load(
  187. "@com_google_googleapis_imports//:imports.bzl",
  188. "py_gapic_assembly_pkg",
  189. "py_gapic_library",
  190. "py_test",
  191. )
  192. py_gapic_library(
  193. name = "run_py_gapic",
  194. srcs = [":run_proto"],
  195. grpc_service_config = "run_grpc_service_config.json",
  196. rest_numeric_enums = False,
  197. service_yaml = "run_v2.yaml",
  198. transport = "grpc+rest",
  199. deps = [
  200. "//google/iam/v1:iam_policy_py_proto",
  201. ],
  202. )
  203. py_test(
  204. name = "run_py_gapic_test",
  205. srcs = [
  206. "run_py_gapic_pytest.py",
  207. "run_py_gapic_test.py",
  208. ],
  209. legacy_create_init = False,
  210. deps = [":run_py_gapic"],
  211. )
  212. # Open Source Packages
  213. py_gapic_assembly_pkg(
  214. name = "run-v2-py",
  215. deps = [
  216. ":run_py_gapic",
  217. ],
  218. )
  219. ##############################################################################
  220. # PHP
  221. ##############################################################################
  222. load(
  223. "@com_google_googleapis_imports//:imports.bzl",
  224. "php_gapic_assembly_pkg",
  225. "php_gapic_library",
  226. "php_grpc_library",
  227. "php_proto_library",
  228. )
  229. php_proto_library(
  230. name = "run_php_proto",
  231. deps = [":run_proto"],
  232. )
  233. php_grpc_library(
  234. name = "run_php_grpc",
  235. srcs = [":run_proto"],
  236. deps = [":run_php_proto"],
  237. )
  238. php_gapic_library(
  239. name = "run_php_gapic",
  240. srcs = [":run_proto_with_info"],
  241. grpc_service_config = "run_grpc_service_config.json",
  242. rest_numeric_enums = False,
  243. service_yaml = "run_v2.yaml",
  244. transport = "grpc+rest",
  245. deps = [
  246. ":run_php_grpc",
  247. ":run_php_proto",
  248. ],
  249. )
  250. # Open Source Packages
  251. php_gapic_assembly_pkg(
  252. name = "google-cloud-run-v2-php",
  253. deps = [
  254. ":run_php_gapic",
  255. ":run_php_grpc",
  256. ":run_php_proto",
  257. ],
  258. )
  259. ##############################################################################
  260. # Node.js
  261. ##############################################################################
  262. load(
  263. "@com_google_googleapis_imports//:imports.bzl",
  264. "nodejs_gapic_assembly_pkg",
  265. "nodejs_gapic_library",
  266. )
  267. nodejs_gapic_library(
  268. name = "run_nodejs_gapic",
  269. package_name = "@google-cloud/run",
  270. src = ":run_proto_with_info",
  271. extra_protoc_parameters = ["metadata"],
  272. grpc_service_config = "run_grpc_service_config.json",
  273. package = "google.cloud.run.v2",
  274. rest_numeric_enums = False,
  275. service_yaml = "run_v2.yaml",
  276. transport = "grpc+rest",
  277. deps = [],
  278. )
  279. nodejs_gapic_assembly_pkg(
  280. name = "run-v2-nodejs",
  281. deps = [
  282. ":run_nodejs_gapic",
  283. ":run_proto",
  284. ],
  285. )
  286. ##############################################################################
  287. # Ruby
  288. ##############################################################################
  289. load(
  290. "@com_google_googleapis_imports//:imports.bzl",
  291. "ruby_cloud_gapic_library",
  292. "ruby_gapic_assembly_pkg",
  293. "ruby_grpc_library",
  294. "ruby_proto_library",
  295. )
  296. ruby_proto_library(
  297. name = "run_ruby_proto",
  298. deps = [":run_proto"],
  299. )
  300. ruby_grpc_library(
  301. name = "run_ruby_grpc",
  302. srcs = [":run_proto"],
  303. deps = [":run_ruby_proto"],
  304. )
  305. ruby_cloud_gapic_library(
  306. name = "run_ruby_gapic",
  307. srcs = [":run_proto_with_info"],
  308. extra_protoc_parameters = [
  309. "ruby-cloud-api-id=run.googleapis.com",
  310. "ruby-cloud-api-shortname=run",
  311. "ruby-cloud-gem-name=google-cloud-run-v2",
  312. "ruby-cloud-product-url=https://cloud.google.com/run/",
  313. "ruby-cloud-wrapper-gem-override=google-cloud-run-client",
  314. ],
  315. grpc_service_config = "run_grpc_service_config.json",
  316. rest_numeric_enums = False,
  317. ruby_cloud_description = "Cloud Run deploys and manages user provided container images that scale automatically based on incoming requests.",
  318. ruby_cloud_title = "Cloud Run V2",
  319. service_yaml = "run_v2.yaml",
  320. deps = [
  321. ":run_ruby_grpc",
  322. ":run_ruby_proto",
  323. ],
  324. )
  325. # Open Source Packages
  326. ruby_gapic_assembly_pkg(
  327. name = "google-cloud-run-v2-ruby",
  328. deps = [
  329. ":run_ruby_gapic",
  330. ":run_ruby_grpc",
  331. ":run_ruby_proto",
  332. ],
  333. )
  334. ##############################################################################
  335. # C#
  336. ##############################################################################
  337. load(
  338. "@com_google_googleapis_imports//:imports.bzl",
  339. "csharp_gapic_assembly_pkg",
  340. "csharp_gapic_library",
  341. "csharp_grpc_library",
  342. "csharp_proto_library",
  343. )
  344. csharp_proto_library(
  345. name = "run_csharp_proto",
  346. deps = [":run_proto"],
  347. )
  348. csharp_grpc_library(
  349. name = "run_csharp_grpc",
  350. srcs = [":run_proto"],
  351. deps = [":run_csharp_proto"],
  352. )
  353. csharp_gapic_library(
  354. name = "run_csharp_gapic",
  355. srcs = [":run_proto_with_info"],
  356. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  357. grpc_service_config = "run_grpc_service_config.json",
  358. rest_numeric_enums = False,
  359. service_yaml = "run_v2.yaml",
  360. deps = [
  361. ":run_csharp_grpc",
  362. ":run_csharp_proto",
  363. ],
  364. )
  365. # Open Source Packages
  366. csharp_gapic_assembly_pkg(
  367. name = "google-cloud-run-v2-csharp",
  368. deps = [
  369. ":run_csharp_gapic",
  370. ":run_csharp_grpc",
  371. ":run_csharp_proto",
  372. ],
  373. )
  374. ##############################################################################
  375. # C++
  376. ##############################################################################
  377. load(
  378. "@com_google_googleapis_imports//:imports.bzl",
  379. "cc_grpc_library",
  380. "cc_proto_library",
  381. )
  382. cc_proto_library(
  383. name = "run_cc_proto",
  384. deps = [":run_proto"],
  385. )
  386. cc_grpc_library(
  387. name = "run_cc_grpc",
  388. srcs = [":run_proto"],
  389. grpc_only = True,
  390. deps = [":run_cc_proto"],
  391. )