xref: /aosp_15_r20/external/googleapis/google/devtools/artifactregistry/v1/BUILD.bazel (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1# This file was automatically generated by BuildFileGenerator
2# https://github.com/googleapis/rules_gapic/tree/master/bazel
3
4# Most of the manual changes to this file will be overwritten.
5# It's **only** allowed to change the following rule attribute values:
6# - names of *_gapic_assembly_* rules
7# - certain parameters of *_gapic_library rules, including but not limited to:
8#    * extra_protoc_parameters
9#    * extra_protoc_file_parameters
10# The complete list of preserved parameters can be found in the source code.
11
12# This is an API workspace, having public visibility by default makes perfect sense.
13package(default_visibility = ["//visibility:public"])
14
15##############################################################################
16# Common
17##############################################################################
18load("@rules_proto//proto:defs.bzl", "proto_library")
19load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
20
21proto_library(
22    name = "artifactregistry_proto",
23    srcs = [
24        "apt_artifact.proto",
25        "artifact.proto",
26        "file.proto",
27        "package.proto",
28        "repository.proto",
29        "service.proto",
30        "settings.proto",
31        "tag.proto",
32        "version.proto",
33        "vpcsc_config.proto",
34        "yum_artifact.proto",
35    ],
36    deps = [
37        "//google/api:annotations_proto",
38        "//google/api:client_proto",
39        "//google/api:field_behavior_proto",
40        "//google/api:resource_proto",
41        "//google/iam/v1:iam_policy_proto",
42        "//google/iam/v1:policy_proto",
43        "//google/longrunning:operations_proto",
44        "//google/rpc:status_proto",
45        "@com_google_protobuf//:duration_proto",
46        "@com_google_protobuf//:empty_proto",
47        "@com_google_protobuf//:field_mask_proto",
48        "@com_google_protobuf//:struct_proto",
49        "@com_google_protobuf//:timestamp_proto",
50    ],
51)
52
53proto_library_with_info(
54    name = "artifactregistry_proto_with_info",
55    deps = [
56        ":artifactregistry_proto",
57        "//google/cloud:common_resources_proto",
58        "//google/cloud/location:location_proto",
59    ],
60)
61
62##############################################################################
63# Java
64##############################################################################
65load(
66    "@com_google_googleapis_imports//:imports.bzl",
67    "java_gapic_assembly_gradle_pkg",
68    "java_gapic_library",
69    "java_gapic_test",
70    "java_grpc_library",
71    "java_proto_library",
72)
73
74java_proto_library(
75    name = "artifactregistry_java_proto",
76    deps = [":artifactregistry_proto"],
77)
78
79java_grpc_library(
80    name = "artifactregistry_java_grpc",
81    srcs = [":artifactregistry_proto"],
82    deps = [":artifactregistry_java_proto"],
83)
84
85java_gapic_library(
86    name = "artifactregistry_java_gapic",
87    srcs = [":artifactregistry_proto_with_info"],
88    gapic_yaml = None,
89    grpc_service_config = "artifactregistry_grpc_service_config.json",
90    rest_numeric_enums = True,
91    service_yaml = "artifactregistry_v1.yaml",
92    test_deps = [
93        ":artifactregistry_java_grpc",
94        "//google/cloud/location:location_java_grpc",
95        "//google/iam/v1:iam_java_grpc",
96    ],
97    transport = "grpc+rest",
98    deps = [
99        ":artifactregistry_java_proto",
100        "//google/api:api_java_proto",
101        "//google/cloud/location:location_java_proto",
102        "//google/iam/v1:iam_java_proto",
103    ],
104)
105
106java_gapic_test(
107    name = "artifactregistry_java_gapic_test_suite",
108    test_classes = [
109        "com.google.devtools.artifactregistry.v1.ArtifactRegistryClientHttpJsonTest",
110        "com.google.devtools.artifactregistry.v1.ArtifactRegistryClientTest",
111    ],
112    runtime_deps = [":artifactregistry_java_gapic_test"],
113)
114
115# Open Source Packages
116java_gapic_assembly_gradle_pkg(
117    name = "google-cloud-devtools-artifactregistry-v1-java",
118    include_samples = True,
119    transport = "grpc+rest",
120    deps = [
121        ":artifactregistry_java_gapic",
122        ":artifactregistry_java_grpc",
123        ":artifactregistry_java_proto",
124        ":artifactregistry_proto",
125    ],
126)
127
128##############################################################################
129# Go
130##############################################################################
131load(
132    "@com_google_googleapis_imports//:imports.bzl",
133    "go_gapic_assembly_pkg",
134    "go_gapic_library",
135    "go_proto_library",
136)
137
138go_proto_library(
139    name = "artifactregistry_go_proto",
140    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
141    importpath = "cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb",
142    protos = [":artifactregistry_proto"],
143    deps = [
144        "//google/api:annotations_go_proto",
145        "//google/iam/v1:iam_go_proto",
146        "//google/longrunning:longrunning_go_proto",
147        "//google/rpc:status_go_proto",
148    ],
149)
150
151go_gapic_library(
152    name = "artifactregistry_go_gapic",
153    srcs = [":artifactregistry_proto_with_info"],
154    grpc_service_config = "artifactregistry_grpc_service_config.json",
155    importpath = "cloud.google.com/go/artifactregistry/apiv1;artifactregistry",
156    metadata = True,
157    release_level = "ga",
158    rest_numeric_enums = True,
159    service_yaml = "artifactregistry_v1.yaml",
160    transport = "grpc+rest",
161    deps = [
162        ":artifactregistry_go_proto",
163        "//google/cloud/location:location_go_proto",
164        "//google/iam/v1:iam_go_proto",
165        "//google/longrunning:longrunning_go_proto",
166        "@com_google_cloud_go_longrunning//:go_default_library",
167        "@com_google_cloud_go_longrunning//autogen:go_default_library",
168        "@io_bazel_rules_go//proto/wkt:struct_go_proto",
169    ],
170)
171
172# Open Source Packages
173go_gapic_assembly_pkg(
174    name = "gapi-cloud-devtools-artifactregistry-v1-go",
175    deps = [
176        ":artifactregistry_go_gapic",
177        ":artifactregistry_go_gapic_srcjar-metadata.srcjar",
178        ":artifactregistry_go_gapic_srcjar-snippets.srcjar",
179        ":artifactregistry_go_gapic_srcjar-test.srcjar",
180        ":artifactregistry_go_proto",
181    ],
182)
183
184##############################################################################
185# Python
186##############################################################################
187load(
188    "@com_google_googleapis_imports//:imports.bzl",
189    "py_gapic_assembly_pkg",
190    "py_gapic_library",
191    "py_test",
192)
193
194py_gapic_library(
195    name = "artifactregistry_py_gapic",
196    srcs = [":artifactregistry_proto"],
197    grpc_service_config = "artifactregistry_grpc_service_config.json",
198    opt_args = [
199        "python-gapic-name=artifactregistry",
200        "python-gapic-namespace=google.cloud",
201        "warehouse-package-name=google-cloud-artifact-registry",
202    ],
203    rest_numeric_enums = True,
204    service_yaml = "artifactregistry_v1.yaml",
205    transport = "grpc+rest",
206    deps = [
207        "//google/iam/v1:iam_policy_py_proto",
208    ],
209)
210
211py_test(
212    name = "artifactregistry_py_gapic_test",
213    srcs = [
214        "artifactregistry_py_gapic_pytest.py",
215        "artifactregistry_py_gapic_test.py",
216    ],
217    legacy_create_init = False,
218    deps = [":artifactregistry_py_gapic"],
219)
220
221# Open Source Packages
222py_gapic_assembly_pkg(
223    name = "devtools-artifactregistry-v1-py",
224    deps = [
225        ":artifactregistry_py_gapic",
226    ],
227)
228
229##############################################################################
230# PHP
231##############################################################################
232load(
233    "@com_google_googleapis_imports//:imports.bzl",
234    "php_gapic_assembly_pkg",
235    "php_gapic_library",
236    "php_proto_library",
237)
238
239php_proto_library(
240    name = "artifactregistry_php_proto",
241    deps = [":artifactregistry_proto"],
242)
243
244php_gapic_library(
245    name = "artifactregistry_php_gapic",
246    srcs = [":artifactregistry_proto_with_info"],
247    grpc_service_config = "artifactregistry_grpc_service_config.json",
248    migration_mode = "NEW_SURFACE_ONLY",
249    rest_numeric_enums = True,
250    service_yaml = "artifactregistry_v1.yaml",
251    transport = "grpc+rest",
252    deps = [":artifactregistry_php_proto"],
253)
254
255# Open Source Packages
256php_gapic_assembly_pkg(
257    name = "google-cloud-devtools-artifactregistry-v1-php",
258    deps = [
259        ":artifactregistry_php_gapic",
260        ":artifactregistry_php_proto",
261    ],
262)
263
264##############################################################################
265# Node.js
266##############################################################################
267load(
268    "@com_google_googleapis_imports//:imports.bzl",
269    "nodejs_gapic_assembly_pkg",
270    "nodejs_gapic_library",
271)
272
273nodejs_gapic_library(
274    name = "artifactregistry_nodejs_gapic",
275    package_name = "@google-cloud/artifact-registry",
276    src = ":artifactregistry_proto_with_info",
277    extra_protoc_parameters = ["metadata"],
278    grpc_service_config = "artifactregistry_grpc_service_config.json",
279    package = "google.devtools.artifactregistry.v1",
280    rest_numeric_enums = True,
281    service_yaml = "artifactregistry_v1.yaml",
282    transport = "grpc+rest",
283    deps = [],
284)
285
286nodejs_gapic_assembly_pkg(
287    name = "devtools-artifactregistry-v1-nodejs",
288    deps = [
289        ":artifactregistry_nodejs_gapic",
290        ":artifactregistry_proto",
291    ],
292)
293
294##############################################################################
295# Ruby
296##############################################################################
297load(
298    "@com_google_googleapis_imports//:imports.bzl",
299    "ruby_cloud_gapic_library",
300    "ruby_gapic_assembly_pkg",
301    "ruby_grpc_library",
302    "ruby_proto_library",
303)
304
305ruby_proto_library(
306    name = "artifactregistry_ruby_proto",
307    deps = [":artifactregistry_proto"],
308)
309
310ruby_grpc_library(
311    name = "artifactregistry_ruby_grpc",
312    srcs = [":artifactregistry_proto"],
313    deps = [":artifactregistry_ruby_proto"],
314)
315
316ruby_cloud_gapic_library(
317    name = "artifactregistry_ruby_gapic",
318    srcs = [":artifactregistry_proto_with_info"],
319    extra_protoc_parameters = [
320        "ruby-cloud-api-id=artifactregistry.googleapis.com",
321        "ruby-cloud-api-shortname=artifactregistry",
322        "ruby-cloud-env-prefix=ARTIFACT_REGISTRY",
323        "ruby-cloud-gem-name=google-cloud-artifact_registry-v1",
324        "ruby-cloud-product-url=https://cloud.google.com/artifact-registry/",
325    ],
326    grpc_service_config = "artifactregistry_grpc_service_config.json",
327    rest_numeric_enums = True,
328    ruby_cloud_description = "Artifact Registry stores and manages build artifacts in a scalable and integrated service built on Google infrastructure.",
329    ruby_cloud_title = "Artifact Registry V1",
330    service_yaml = "artifactregistry_v1.yaml",
331    transport = "grpc+rest",
332    deps = [
333        ":artifactregistry_ruby_grpc",
334        ":artifactregistry_ruby_proto",
335    ],
336)
337
338# Open Source Packages
339ruby_gapic_assembly_pkg(
340    name = "google-cloud-devtools-artifactregistry-v1-ruby",
341    deps = [
342        ":artifactregistry_ruby_gapic",
343        ":artifactregistry_ruby_grpc",
344        ":artifactregistry_ruby_proto",
345    ],
346)
347
348##############################################################################
349# C#
350##############################################################################
351load(
352    "@com_google_googleapis_imports//:imports.bzl",
353    "csharp_gapic_assembly_pkg",
354    "csharp_gapic_library",
355    "csharp_grpc_library",
356    "csharp_proto_library",
357)
358
359csharp_proto_library(
360    name = "artifactregistry_csharp_proto",
361    deps = [":artifactregistry_proto"],
362)
363
364csharp_grpc_library(
365    name = "artifactregistry_csharp_grpc",
366    srcs = [":artifactregistry_proto"],
367    deps = [":artifactregistry_csharp_proto"],
368)
369
370csharp_gapic_library(
371    name = "artifactregistry_csharp_gapic",
372    srcs = [":artifactregistry_proto_with_info"],
373    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
374    grpc_service_config = "artifactregistry_grpc_service_config.json",
375    rest_numeric_enums = True,
376    service_yaml = "artifactregistry_v1.yaml",
377    transport = "grpc+rest",
378    deps = [
379        ":artifactregistry_csharp_grpc",
380        ":artifactregistry_csharp_proto",
381    ],
382)
383
384# Open Source Packages
385csharp_gapic_assembly_pkg(
386    name = "google-cloud-devtools-artifactregistry-v1-csharp",
387    deps = [
388        ":artifactregistry_csharp_gapic",
389        ":artifactregistry_csharp_grpc",
390        ":artifactregistry_csharp_proto",
391    ],
392)
393
394##############################################################################
395# C++
396##############################################################################
397load(
398    "@com_google_googleapis_imports//:imports.bzl",
399    "cc_grpc_library",
400    "cc_proto_library",
401)
402
403cc_proto_library(
404    name = "artifactregistry_cc_proto",
405    deps = [":artifactregistry_proto"],
406)
407
408cc_grpc_library(
409    name = "artifactregistry_cc_grpc",
410    srcs = [":artifactregistry_proto"],
411    grpc_only = True,
412    deps = [":artifactregistry_cc_proto"],
413)
414