Skip to content

Commit ba2db0d

Browse files
Google APIscopybara-github
Google APIs
authored andcommitted
feat: Add location methods
PiperOrigin-RevId: 499263614
1 parent 1a54b1f commit ba2db0d

File tree

4 files changed

+209
-74
lines changed

4 files changed

+209
-74
lines changed

google/devtools/artifactregistry/v1/BUILD.bazel

Lines changed: 94 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -9,45 +9,14 @@
99
# * extra_protoc_file_parameters
1010
# The complete list of preserved parameters can be found in the source code.
1111

12+
# This is an API workspace, having public visibility by default makes perfect sense.
13+
package(default_visibility = ["//visibility:public"])
14+
1215
##############################################################################
1316
# Common
1417
##############################################################################
1518
load("@rules_proto//proto:defs.bzl", "proto_library")
16-
load(
17-
"@com_google_googleapis_imports//:imports.bzl",
18-
"cc_grpc_library",
19-
"cc_proto_library",
20-
"csharp_gapic_assembly_pkg",
21-
"csharp_gapic_library",
22-
"csharp_grpc_library",
23-
"csharp_proto_library",
24-
"go_gapic_assembly_pkg",
25-
"go_gapic_library",
26-
"go_proto_library",
27-
"go_test",
28-
"java_gapic_assembly_gradle_pkg",
29-
"java_gapic_library",
30-
"java_gapic_test",
31-
"java_grpc_library",
32-
"java_proto_library",
33-
"nodejs_gapic_assembly_pkg",
34-
"nodejs_gapic_library",
35-
"php_gapic_assembly_pkg",
36-
"php_gapic_library",
37-
"php_grpc_library",
38-
"php_proto_library",
39-
"proto_library_with_info",
40-
"py_gapic_assembly_pkg",
41-
"py_gapic_library",
42-
"py_test",
43-
"ruby_cloud_gapic_library",
44-
"ruby_gapic_assembly_pkg",
45-
"ruby_grpc_library",
46-
"ruby_proto_library",
47-
)
48-
49-
# This is an API workspace, having public visibility by default makes perfect sense.
50-
package(default_visibility = ["//visibility:public"])
19+
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
5120

5221
proto_library(
5322
name = "artifactregistry_proto",
@@ -84,9 +53,22 @@ proto_library_with_info(
8453
deps = [
8554
":artifactregistry_proto",
8655
"//google/cloud:common_resources_proto",
56+
"//google/cloud/location:location_proto",
8757
],
8858
)
8959

60+
##############################################################################
61+
# Java
62+
##############################################################################
63+
load(
64+
"@com_google_googleapis_imports//:imports.bzl",
65+
"java_gapic_assembly_gradle_pkg",
66+
"java_gapic_library",
67+
"java_gapic_test",
68+
"java_grpc_library",
69+
"java_proto_library",
70+
)
71+
9072
java_proto_library(
9173
name = "artifactregistry_java_proto",
9274
deps = [":artifactregistry_proto"],
@@ -107,12 +89,14 @@ java_gapic_library(
10789
service_yaml = "artifactregistry_v1.yaml",
10890
test_deps = [
10991
":artifactregistry_java_grpc",
92+
"//google/cloud/location:location_java_grpc",
11093
"//google/iam/v1:iam_java_grpc",
11194
],
11295
transport = "grpc+rest",
11396
deps = [
11497
":artifactregistry_java_proto",
11598
"//google/api:api_java_proto",
99+
"//google/cloud/location:location_java_proto",
116100
"//google/iam/v1:iam_java_proto",
117101
],
118102
)
@@ -139,6 +123,17 @@ java_gapic_assembly_gradle_pkg(
139123
],
140124
)
141125

126+
##############################################################################
127+
# Go
128+
##############################################################################
129+
load(
130+
"@com_google_googleapis_imports//:imports.bzl",
131+
"go_gapic_assembly_pkg",
132+
"go_gapic_library",
133+
"go_proto_library",
134+
"go_test",
135+
)
136+
142137
go_proto_library(
143138
name = "artifactregistry_go_proto",
144139
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
@@ -163,6 +158,7 @@ go_gapic_library(
163158
transport = "grpc+rest",
164159
deps = [
165160
":artifactregistry_go_proto",
161+
"//google/cloud/location:location_go_proto",
166162
"//google/iam/v1:iam_go_proto",
167163
"//google/longrunning:longrunning_go_proto",
168164
"@com_google_cloud_go_longrunning//:go_default_library",
@@ -189,6 +185,16 @@ go_gapic_assembly_pkg(
189185
],
190186
)
191187

188+
##############################################################################
189+
# Python
190+
##############################################################################
191+
load(
192+
"@com_google_googleapis_imports//:imports.bzl",
193+
"py_gapic_assembly_pkg",
194+
"py_gapic_library",
195+
"py_test",
196+
)
197+
192198
py_gapic_library(
193199
name = "artifactregistry_py_gapic",
194200
srcs = [":artifactregistry_proto"],
@@ -199,6 +205,7 @@ py_gapic_library(
199205
"warehouse-package-name=google-cloud-artifact-registry",
200206
],
201207
rest_numeric_enums = True,
208+
service_yaml = "artifactregistry_v1.yaml",
202209
transport = "grpc",
203210
deps = [
204211
"//google/iam/v1:iam_policy_py_proto",
@@ -223,6 +230,17 @@ py_gapic_assembly_pkg(
223230
],
224231
)
225232

233+
##############################################################################
234+
# PHP
235+
##############################################################################
236+
load(
237+
"@com_google_googleapis_imports//:imports.bzl",
238+
"php_gapic_assembly_pkg",
239+
"php_gapic_library",
240+
"php_grpc_library",
241+
"php_proto_library",
242+
)
243+
226244
php_proto_library(
227245
name = "artifactregistry_php_proto",
228246
deps = [":artifactregistry_proto"],
@@ -257,6 +275,15 @@ php_gapic_assembly_pkg(
257275
],
258276
)
259277

278+
##############################################################################
279+
# Node.js
280+
##############################################################################
281+
load(
282+
"@com_google_googleapis_imports//:imports.bzl",
283+
"nodejs_gapic_assembly_pkg",
284+
"nodejs_gapic_library",
285+
)
286+
260287
nodejs_gapic_library(
261288
name = "artifactregistry_nodejs_gapic",
262289
package_name = "@google-cloud/artifact-registry",
@@ -278,6 +305,17 @@ nodejs_gapic_assembly_pkg(
278305
],
279306
)
280307

308+
##############################################################################
309+
# Ruby
310+
##############################################################################
311+
load(
312+
"@com_google_googleapis_imports//:imports.bzl",
313+
"ruby_cloud_gapic_library",
314+
"ruby_gapic_assembly_pkg",
315+
"ruby_grpc_library",
316+
"ruby_proto_library",
317+
)
318+
281319
ruby_proto_library(
282320
name = "artifactregistry_ruby_proto",
283321
deps = [":artifactregistry_proto"],
@@ -303,6 +341,7 @@ ruby_cloud_gapic_library(
303341
rest_numeric_enums = True,
304342
ruby_cloud_description = "Artifact Registry stores and manages build artifacts in a scalable and integrated service built on Google infrastructure.",
305343
ruby_cloud_title = "Artifact Registry V1",
344+
service_yaml = "artifactregistry_v1.yaml",
306345
deps = [
307346
":artifactregistry_ruby_grpc",
308347
":artifactregistry_ruby_proto",
@@ -319,6 +358,17 @@ ruby_gapic_assembly_pkg(
319358
],
320359
)
321360

361+
##############################################################################
362+
# C#
363+
##############################################################################
364+
load(
365+
"@com_google_googleapis_imports//:imports.bzl",
366+
"csharp_gapic_assembly_pkg",
367+
"csharp_gapic_library",
368+
"csharp_grpc_library",
369+
"csharp_proto_library",
370+
)
371+
322372
csharp_proto_library(
323373
name = "artifactregistry_csharp_proto",
324374
deps = [":artifactregistry_proto"],
@@ -353,6 +403,15 @@ csharp_gapic_assembly_pkg(
353403
],
354404
)
355405

406+
##############################################################################
407+
# C++
408+
##############################################################################
409+
load(
410+
"@com_google_googleapis_imports//:imports.bzl",
411+
"cc_grpc_library",
412+
"cc_proto_library",
413+
)
414+
356415
cc_proto_library(
357416
name = "artifactregistry_cc_proto",
358417
deps = [":artifactregistry_proto"],

google/devtools/artifactregistry/v1/artifactregistry_v1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ title: Artifact Registry API
55

66
apis:
77
- name: google.devtools.artifactregistry.v1.ArtifactRegistry
8+
- name: google.cloud.location.Locations
89

910
types:
1011
- name: google.devtools.artifactregistry.v1.ImportAptArtifactsMetadata

0 commit comments

Comments
 (0)