BUILD.bazel 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  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 = "notebooks_proto",
  19. srcs = [
  20. "diagnostic_config.proto",
  21. "environment.proto",
  22. "event.proto",
  23. "execution.proto",
  24. "instance.proto",
  25. "instance_config.proto",
  26. "managed_service.proto",
  27. "runtime.proto",
  28. "schedule.proto",
  29. "service.proto",
  30. ],
  31. deps = [
  32. "//google/api:annotations_proto",
  33. "//google/api:client_proto",
  34. "//google/api:field_behavior_proto",
  35. "//google/api:resource_proto",
  36. "//google/longrunning:operations_proto",
  37. "@com_google_protobuf//:field_mask_proto",
  38. "@com_google_protobuf//:timestamp_proto",
  39. ],
  40. )
  41. proto_library_with_info(
  42. name = "notebooks_proto_with_info",
  43. deps = [
  44. ":notebooks_proto",
  45. "//google/cloud:common_resources_proto",
  46. "//google/cloud/location:location_proto",
  47. "//google/iam/v1:iam_policy_proto",
  48. ],
  49. )
  50. ##############################################################################
  51. # Java
  52. ##############################################################################
  53. load(
  54. "@com_google_googleapis_imports//:imports.bzl",
  55. "java_gapic_assembly_gradle_pkg",
  56. "java_gapic_library",
  57. "java_gapic_test",
  58. "java_grpc_library",
  59. "java_proto_library",
  60. )
  61. java_proto_library(
  62. name = "notebooks_java_proto",
  63. deps = [":notebooks_proto"],
  64. )
  65. java_grpc_library(
  66. name = "notebooks_java_grpc",
  67. srcs = [":notebooks_proto"],
  68. deps = [":notebooks_java_proto"],
  69. )
  70. java_gapic_library(
  71. name = "notebooks_java_gapic",
  72. srcs = [":notebooks_proto_with_info"],
  73. gapic_yaml = None,
  74. grpc_service_config = "notebooks_grpc_service_config.json",
  75. rest_numeric_enums = False,
  76. service_yaml = "notebooks_v1.yaml",
  77. test_deps = [
  78. ":notebooks_java_grpc",
  79. "//google/cloud/location:location_java_grpc",
  80. "//google/iam/v1:iam_java_grpc",
  81. ],
  82. transport = "grpc",
  83. deps = [
  84. ":notebooks_java_proto",
  85. "//google/api:api_java_proto",
  86. "//google/cloud/location:location_java_proto",
  87. "//google/iam/v1:iam_java_proto",
  88. ],
  89. )
  90. java_gapic_test(
  91. name = "notebooks_java_gapic_test_suite",
  92. test_classes = [
  93. "com.google.cloud.notebooks.v1.ManagedNotebookServiceClientTest",
  94. "com.google.cloud.notebooks.v1.NotebookServiceClientTest",
  95. ],
  96. runtime_deps = [":notebooks_java_gapic_test"],
  97. )
  98. # Open Source Packages
  99. java_gapic_assembly_gradle_pkg(
  100. name = "google-cloud-notebooks-v1-java",
  101. include_samples = True,
  102. transport = "grpc+rest",
  103. deps = [
  104. ":notebooks_java_gapic",
  105. ":notebooks_java_grpc",
  106. ":notebooks_java_proto",
  107. ":notebooks_proto",
  108. ],
  109. )
  110. ##############################################################################
  111. # Go
  112. ##############################################################################
  113. load(
  114. "@com_google_googleapis_imports//:imports.bzl",
  115. "go_gapic_assembly_pkg",
  116. "go_gapic_library",
  117. "go_proto_library",
  118. "go_test",
  119. )
  120. go_proto_library(
  121. name = "notebooks_go_proto",
  122. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  123. importpath = "google.golang.org/genproto/googleapis/cloud/notebooks/v1",
  124. protos = [":notebooks_proto"],
  125. deps = [
  126. "//google/api:annotations_go_proto",
  127. "//google/longrunning:longrunning_go_proto",
  128. ],
  129. )
  130. go_gapic_library(
  131. name = "notebooks_go_gapic",
  132. srcs = [":notebooks_proto_with_info"],
  133. grpc_service_config = "notebooks_grpc_service_config.json",
  134. importpath = "cloud.google.com/go/notebooks/apiv1;notebooks",
  135. metadata = True,
  136. rest_numeric_enums = False,
  137. service_yaml = "notebooks_v1.yaml",
  138. transport = "grpc+rest",
  139. deps = [
  140. ":notebooks_go_proto",
  141. "//google/cloud/location:location_go_proto",
  142. "//google/iam/v1:iam_go_proto",
  143. "//google/longrunning:longrunning_go_proto",
  144. "@com_google_cloud_go//longrunning:go_default_library",
  145. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  146. ],
  147. )
  148. go_test(
  149. name = "notebooks_go_gapic_test",
  150. srcs = [":notebooks_go_gapic_srcjar_test"],
  151. embed = [":notebooks_go_gapic"],
  152. importpath = "cloud.google.com/go/notebooks/apiv1",
  153. )
  154. # Open Source Packages
  155. go_gapic_assembly_pkg(
  156. name = "gapi-cloud-notebooks-v1-go",
  157. deps = [
  158. ":notebooks_go_gapic",
  159. ":notebooks_go_gapic_srcjar-metadata.srcjar",
  160. ":notebooks_go_gapic_srcjar-test.srcjar",
  161. ":notebooks_go_proto",
  162. ],
  163. )
  164. ##############################################################################
  165. # Python
  166. ##############################################################################
  167. load(
  168. "@com_google_googleapis_imports//:imports.bzl",
  169. "py_gapic_assembly_pkg",
  170. "py_gapic_library",
  171. "py_test",
  172. )
  173. py_gapic_library(
  174. name = "notebooks_py_gapic",
  175. srcs = [":notebooks_proto"],
  176. grpc_service_config = "notebooks_grpc_service_config.json",
  177. rest_numeric_enums = False,
  178. service_yaml = "notebooks_v1.yaml",
  179. transport = "grpc",
  180. deps = [
  181. "//google/iam/v1:iam_policy_py_proto",
  182. ],
  183. )
  184. py_test(
  185. name = "notebooks_py_gapic_test",
  186. srcs = [
  187. "notebooks_py_gapic_pytest.py",
  188. "notebooks_py_gapic_test.py",
  189. ],
  190. legacy_create_init = False,
  191. deps = [":notebooks_py_gapic"],
  192. )
  193. # Open Source Packages
  194. py_gapic_assembly_pkg(
  195. name = "notebooks-v1-py",
  196. deps = [
  197. ":notebooks_py_gapic",
  198. ],
  199. )
  200. ##############################################################################
  201. # PHP
  202. ##############################################################################
  203. load(
  204. "@com_google_googleapis_imports//:imports.bzl",
  205. "php_gapic_assembly_pkg",
  206. "php_gapic_library",
  207. "php_grpc_library",
  208. "php_proto_library",
  209. )
  210. php_proto_library(
  211. name = "notebooks_php_proto",
  212. deps = [":notebooks_proto"],
  213. )
  214. php_grpc_library(
  215. name = "notebooks_php_grpc",
  216. srcs = [":notebooks_proto"],
  217. deps = [":notebooks_php_proto"],
  218. )
  219. php_gapic_library(
  220. name = "notebooks_php_gapic",
  221. srcs = [":notebooks_proto_with_info"],
  222. grpc_service_config = "notebooks_grpc_service_config.json",
  223. rest_numeric_enums = False,
  224. service_yaml = "notebooks_v1.yaml",
  225. transport = "grpc+rest",
  226. deps = [
  227. ":notebooks_php_grpc",
  228. ":notebooks_php_proto",
  229. ],
  230. )
  231. # Open Source Packages
  232. php_gapic_assembly_pkg(
  233. name = "google-cloud-notebooks-v1-php",
  234. deps = [
  235. ":notebooks_php_gapic",
  236. ":notebooks_php_grpc",
  237. ":notebooks_php_proto",
  238. ],
  239. )
  240. ##############################################################################
  241. # Node.js
  242. ##############################################################################
  243. load(
  244. "@com_google_googleapis_imports//:imports.bzl",
  245. "nodejs_gapic_assembly_pkg",
  246. "nodejs_gapic_library",
  247. )
  248. nodejs_gapic_library(
  249. name = "notebooks_nodejs_gapic",
  250. package_name = "@google-cloud/notebooks",
  251. src = ":notebooks_proto_with_info",
  252. extra_protoc_parameters = ["metadata"],
  253. grpc_service_config = "notebooks_grpc_service_config.json",
  254. package = "google.cloud.notebooks.v1",
  255. rest_numeric_enums = False,
  256. service_yaml = "notebooks_v1.yaml",
  257. transport = "grpc+rest",
  258. deps = [],
  259. )
  260. nodejs_gapic_assembly_pkg(
  261. name = "notebooks-v1-nodejs",
  262. deps = [
  263. ":notebooks_nodejs_gapic",
  264. ":notebooks_proto",
  265. ],
  266. )
  267. ##############################################################################
  268. # Ruby
  269. ##############################################################################
  270. load(
  271. "@com_google_googleapis_imports//:imports.bzl",
  272. "ruby_cloud_gapic_library",
  273. "ruby_gapic_assembly_pkg",
  274. "ruby_grpc_library",
  275. "ruby_proto_library",
  276. )
  277. ruby_proto_library(
  278. name = "notebooks_ruby_proto",
  279. deps = [":notebooks_proto"],
  280. )
  281. ruby_grpc_library(
  282. name = "notebooks_ruby_grpc",
  283. srcs = [":notebooks_proto"],
  284. deps = [":notebooks_ruby_proto"],
  285. )
  286. ruby_cloud_gapic_library(
  287. name = "notebooks_ruby_gapic",
  288. srcs = [":notebooks_proto_with_info"],
  289. extra_protoc_parameters = [
  290. "ruby-cloud-api-id=notebooks.googleapis.com",
  291. "ruby-cloud-api-shortname=notebooks",
  292. "ruby-cloud-env-prefix=NOTEBOOKS",
  293. "ruby-cloud-gem-name=google-cloud-notebooks-v1",
  294. "ruby-cloud-product-url=https://cloud.google.com/ai-platform-notebooks",
  295. ],
  296. grpc_service_config = "notebooks_grpc_service_config.json",
  297. rest_numeric_enums = False,
  298. ruby_cloud_description = "AI Platform Notebooks makes it easy to manage JupyterLab instances through a protected, publicly available notebook instance URL. A JupyterLab instance is a Deep Learning virtual machine instance with the latest machine learning and data science libraries pre-installed.",
  299. ruby_cloud_title = "AI Platform Notebooks V1",
  300. service_yaml = "notebooks_v1.yaml",
  301. deps = [
  302. ":notebooks_ruby_grpc",
  303. ":notebooks_ruby_proto",
  304. ],
  305. )
  306. # Open Source Packages
  307. ruby_gapic_assembly_pkg(
  308. name = "google-cloud-notebooks-v1-ruby",
  309. deps = [
  310. ":notebooks_ruby_gapic",
  311. ":notebooks_ruby_grpc",
  312. ":notebooks_ruby_proto",
  313. ],
  314. )
  315. ##############################################################################
  316. # C#
  317. ##############################################################################
  318. load(
  319. "@com_google_googleapis_imports//:imports.bzl",
  320. "csharp_gapic_assembly_pkg",
  321. "csharp_gapic_library",
  322. "csharp_grpc_library",
  323. "csharp_proto_library",
  324. )
  325. csharp_proto_library(
  326. name = "notebooks_csharp_proto",
  327. deps = [":notebooks_proto"],
  328. )
  329. csharp_grpc_library(
  330. name = "notebooks_csharp_grpc",
  331. srcs = [":notebooks_proto"],
  332. deps = [":notebooks_csharp_proto"],
  333. )
  334. csharp_gapic_library(
  335. name = "notebooks_csharp_gapic",
  336. srcs = [":notebooks_proto_with_info"],
  337. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  338. grpc_service_config = "notebooks_grpc_service_config.json",
  339. rest_numeric_enums = False,
  340. service_yaml = "notebooks_v1.yaml",
  341. deps = [
  342. ":notebooks_csharp_grpc",
  343. ":notebooks_csharp_proto",
  344. ],
  345. )
  346. # Open Source Packages
  347. csharp_gapic_assembly_pkg(
  348. name = "google-cloud-notebooks-v1-csharp",
  349. deps = [
  350. ":notebooks_csharp_gapic",
  351. ":notebooks_csharp_grpc",
  352. ":notebooks_csharp_proto",
  353. ],
  354. )
  355. ##############################################################################
  356. # C++
  357. ##############################################################################
  358. load(
  359. "@com_google_googleapis_imports//:imports.bzl",
  360. "cc_grpc_library",
  361. "cc_proto_library",
  362. )
  363. cc_proto_library(
  364. name = "notebooks_cc_proto",
  365. deps = [":notebooks_proto"],
  366. )
  367. cc_grpc_library(
  368. name = "notebooks_cc_grpc",
  369. srcs = [":notebooks_proto"],
  370. grpc_only = True,
  371. deps = [":notebooks_cc_proto"],
  372. )