BUILD.bazel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  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 = "agentendpoint_proto",
  19. srcs = [
  20. "agentendpoint.proto",
  21. "config_common.proto",
  22. "inventory.proto",
  23. "os_policy.proto",
  24. "patch_jobs.proto",
  25. "tasks.proto",
  26. ],
  27. deps = [
  28. "//google/api:annotations_proto",
  29. "//google/api:client_proto",
  30. "//google/api:field_behavior_proto",
  31. "//google/api:resource_proto",
  32. "//google/type:date_proto",
  33. "@com_google_protobuf//:timestamp_proto",
  34. ],
  35. )
  36. proto_library_with_info(
  37. name = "agentendpoint_proto_with_info",
  38. deps = [
  39. ":agentendpoint_proto",
  40. "//google/cloud:common_resources_proto",
  41. ],
  42. )
  43. ##############################################################################
  44. # Java
  45. ##############################################################################
  46. load(
  47. "@com_google_googleapis_imports//:imports.bzl",
  48. "java_gapic_assembly_gradle_pkg",
  49. "java_gapic_library",
  50. "java_gapic_test",
  51. "java_grpc_library",
  52. "java_proto_library",
  53. )
  54. java_proto_library(
  55. name = "agentendpoint_java_proto",
  56. deps = [":agentendpoint_proto"],
  57. )
  58. java_grpc_library(
  59. name = "agentendpoint_java_grpc",
  60. srcs = [":agentendpoint_proto"],
  61. deps = [":agentendpoint_java_proto"],
  62. )
  63. java_gapic_library(
  64. name = "agentendpoint_java_gapic",
  65. srcs = [":agentendpoint_proto_with_info"],
  66. gapic_yaml = "osconfig_gapic.yaml",
  67. grpc_service_config = "agentendpoint_grpc_service_config.json",
  68. rest_numeric_enums = False,
  69. service_yaml = "osconfig_v1.yaml",
  70. test_deps = [
  71. ":agentendpoint_java_grpc",
  72. ],
  73. transport = "grpc+rest",
  74. deps = [
  75. ":agentendpoint_java_proto",
  76. "//google/api:api_java_proto",
  77. ],
  78. )
  79. java_gapic_test(
  80. name = "agentendpoint_java_gapic_test_suite",
  81. test_classes = [
  82. "com.google.cloud.osconfig.agentendpoint.v1.AgentEndpointServiceClientHttpJsonTest",
  83. "com.google.cloud.osconfig.agentendpoint.v1.AgentEndpointServiceClientTest",
  84. ],
  85. runtime_deps = [":agentendpoint_java_gapic_test"],
  86. )
  87. # Open Source Packages
  88. java_gapic_assembly_gradle_pkg(
  89. name = "google-cloud-osconfig-agentendpoint-v1-java",
  90. include_samples = True,
  91. transport = "grpc+rest",
  92. deps = [
  93. ":agentendpoint_java_gapic",
  94. ":agentendpoint_java_grpc",
  95. ":agentendpoint_java_proto",
  96. ":agentendpoint_proto",
  97. ],
  98. )
  99. ##############################################################################
  100. # Go
  101. ##############################################################################
  102. load(
  103. "@com_google_googleapis_imports//:imports.bzl",
  104. "go_gapic_assembly_pkg",
  105. "go_gapic_library",
  106. "go_proto_library",
  107. "go_test",
  108. )
  109. go_proto_library(
  110. name = "agentendpoint_go_proto",
  111. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  112. importpath = "google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1",
  113. protos = [":agentendpoint_proto"],
  114. deps = [
  115. "//google/api:annotations_go_proto",
  116. "//google/type:date_go_proto",
  117. ],
  118. )
  119. go_gapic_library(
  120. name = "agentendpoint_go_gapic",
  121. srcs = [":agentendpoint_proto_with_info"],
  122. grpc_service_config = "agentendpoint_grpc_service_config.json",
  123. importpath = "cloud.google.com/go/osconfig/agentendpoint/apiv1;agentendpoint",
  124. metadata = True,
  125. rest_numeric_enums = False,
  126. service_yaml = "osconfig_v1.yaml",
  127. transport = "grpc+rest",
  128. deps = [
  129. ":agentendpoint_go_proto",
  130. ],
  131. )
  132. go_test(
  133. name = "agentendpoint_go_gapic_test",
  134. srcs = [":agentendpoint_go_gapic_srcjar_test"],
  135. embed = [":agentendpoint_go_gapic"],
  136. importpath = "cloud.google.com/go/osconfig/agentendpoint/apiv1",
  137. )
  138. # Open Source Packages
  139. go_gapic_assembly_pkg(
  140. name = "gapi-cloud-osconfig-agentendpoint-v1-go",
  141. deps = [
  142. ":agentendpoint_go_gapic",
  143. ":agentendpoint_go_gapic_srcjar-metadata.srcjar",
  144. ":agentendpoint_go_gapic_srcjar-test.srcjar",
  145. ":agentendpoint_go_proto",
  146. ],
  147. )
  148. ##############################################################################
  149. # Python
  150. ##############################################################################
  151. load(
  152. "@com_google_googleapis_imports//:imports.bzl",
  153. "py_gapic_assembly_pkg",
  154. "py_gapic_library",
  155. "py_test",
  156. )
  157. py_gapic_library(
  158. name = "agentendpoint_py_gapic",
  159. srcs = [":agentendpoint_proto"],
  160. grpc_service_config = "agentendpoint_grpc_service_config.json",
  161. rest_numeric_enums = False,
  162. transport = "grpc",
  163. )
  164. py_test(
  165. name = "agentendpoint_py_gapic_test",
  166. srcs = [
  167. "agentendpoint_py_gapic_pytest.py",
  168. "agentendpoint_py_gapic_test.py",
  169. ],
  170. legacy_create_init = False,
  171. deps = [":agentendpoint_py_gapic"],
  172. )
  173. # Open Source Packages
  174. py_gapic_assembly_pkg(
  175. name = "osconfig-agentendpoint-v1-py",
  176. deps = [
  177. ":agentendpoint_py_gapic",
  178. ],
  179. )
  180. ##############################################################################
  181. # PHP
  182. ##############################################################################
  183. load(
  184. "@com_google_googleapis_imports//:imports.bzl",
  185. "php_gapic_assembly_pkg",
  186. "php_gapic_library",
  187. "php_grpc_library",
  188. "php_proto_library",
  189. )
  190. php_proto_library(
  191. name = "agentendpoint_php_proto",
  192. deps = [":agentendpoint_proto"],
  193. )
  194. php_grpc_library(
  195. name = "agentendpoint_php_grpc",
  196. srcs = [":agentendpoint_proto"],
  197. deps = [":agentendpoint_php_proto"],
  198. )
  199. php_gapic_library(
  200. name = "agentendpoint_php_gapic",
  201. srcs = [":agentendpoint_proto_with_info"],
  202. grpc_service_config = "agentendpoint_grpc_service_config.json",
  203. rest_numeric_enums = False,
  204. service_yaml = "osconfig_v1.yaml",
  205. transport = "grpc+rest",
  206. deps = [
  207. ":agentendpoint_php_grpc",
  208. ":agentendpoint_php_proto",
  209. ],
  210. )
  211. # Open Source Packages
  212. php_gapic_assembly_pkg(
  213. name = "google-cloud-osconfig-agentendpoint-v1-php",
  214. deps = [
  215. ":agentendpoint_php_gapic",
  216. ":agentendpoint_php_grpc",
  217. ":agentendpoint_php_proto",
  218. ],
  219. )
  220. ##############################################################################
  221. # Node.js
  222. ##############################################################################
  223. load(
  224. "@com_google_googleapis_imports//:imports.bzl",
  225. "nodejs_gapic_assembly_pkg",
  226. "nodejs_gapic_library",
  227. )
  228. nodejs_gapic_library(
  229. name = "agentendpoint_nodejs_gapic",
  230. package_name = "@google-cloud/agentendpoint",
  231. src = ":agentendpoint_proto_with_info",
  232. extra_protoc_parameters = ["metadata"],
  233. grpc_service_config = "agentendpoint_grpc_service_config.json",
  234. package = "google.cloud.osconfig.agentendpoint.v1",
  235. rest_numeric_enums = False,
  236. service_yaml = "osconfig_v1.yaml",
  237. transport = "grpc+rest",
  238. deps = [],
  239. )
  240. nodejs_gapic_assembly_pkg(
  241. name = "osconfig-agentendpoint-v1-nodejs",
  242. deps = [
  243. ":agentendpoint_nodejs_gapic",
  244. ":agentendpoint_proto",
  245. ],
  246. )
  247. ##############################################################################
  248. # Ruby
  249. ##############################################################################
  250. load(
  251. "@com_google_googleapis_imports//:imports.bzl",
  252. "ruby_cloud_gapic_library",
  253. "ruby_gapic_assembly_pkg",
  254. "ruby_grpc_library",
  255. "ruby_proto_library",
  256. )
  257. ruby_proto_library(
  258. name = "agentendpoint_ruby_proto",
  259. deps = [":agentendpoint_proto"],
  260. )
  261. ruby_grpc_library(
  262. name = "agentendpoint_ruby_grpc",
  263. srcs = [":agentendpoint_proto"],
  264. deps = [":agentendpoint_ruby_proto"],
  265. )
  266. ruby_cloud_gapic_library(
  267. name = "agentendpoint_ruby_gapic",
  268. srcs = [":agentendpoint_proto_with_info"],
  269. extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-agentendpoint-v1"],
  270. grpc_service_config = "agentendpoint_grpc_service_config.json",
  271. rest_numeric_enums = False,
  272. deps = [
  273. ":agentendpoint_ruby_grpc",
  274. ":agentendpoint_ruby_proto",
  275. ],
  276. )
  277. # Open Source Packages
  278. ruby_gapic_assembly_pkg(
  279. name = "google-cloud-osconfig-agentendpoint-v1-ruby",
  280. deps = [
  281. ":agentendpoint_ruby_gapic",
  282. ":agentendpoint_ruby_grpc",
  283. ":agentendpoint_ruby_proto",
  284. ],
  285. )
  286. ##############################################################################
  287. # C#
  288. ##############################################################################
  289. load(
  290. "@com_google_googleapis_imports//:imports.bzl",
  291. "csharp_gapic_assembly_pkg",
  292. "csharp_gapic_library",
  293. "csharp_grpc_library",
  294. "csharp_proto_library",
  295. )
  296. csharp_proto_library(
  297. name = "agentendpoint_csharp_proto",
  298. deps = [":agentendpoint_proto"],
  299. )
  300. csharp_grpc_library(
  301. name = "agentendpoint_csharp_grpc",
  302. srcs = [":agentendpoint_proto"],
  303. deps = [":agentendpoint_csharp_proto"],
  304. )
  305. csharp_gapic_library(
  306. name = "agentendpoint_csharp_gapic",
  307. srcs = [":agentendpoint_proto_with_info"],
  308. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  309. grpc_service_config = "agentendpoint_grpc_service_config.json",
  310. rest_numeric_enums = False,
  311. service_yaml = "osconfig_v1.yaml",
  312. deps = [
  313. ":agentendpoint_csharp_grpc",
  314. ":agentendpoint_csharp_proto",
  315. ],
  316. )
  317. # Open Source Packages
  318. csharp_gapic_assembly_pkg(
  319. name = "google-cloud-osconfig-agentendpoint-v1-csharp",
  320. deps = [
  321. ":agentendpoint_csharp_gapic",
  322. ":agentendpoint_csharp_grpc",
  323. ":agentendpoint_csharp_proto",
  324. ],
  325. )
  326. ##############################################################################
  327. # C++
  328. ##############################################################################
  329. load(
  330. "@com_google_googleapis_imports//:imports.bzl",
  331. "cc_grpc_library",
  332. "cc_proto_library",
  333. )
  334. cc_proto_library(
  335. name = "agentendpoint_cc_proto",
  336. deps = [":agentendpoint_proto"],
  337. )
  338. cc_grpc_library(
  339. name = "agentendpoint_cc_grpc",
  340. srcs = [":agentendpoint_proto"],
  341. grpc_only = True,
  342. deps = [":agentendpoint_cc_proto"],
  343. )