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