Skip to content

Commit 5dc10a4

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add Artifact Registry attachment API
feat: Add Artifact Registry custom remote support feat: Add Artifact Registry generic repository support feat: Add Artifact Registry server side resource filtering and sorting feat: Add Artifact Registry rule APIs feat: Add Artifact Registry UpdateFile and DeleteFile APIs docs: Include max page size for all Artifact Registry APIs PiperOrigin-RevId: 689929618
1 parent 537fd48 commit 5dc10a4

14 files changed

Lines changed: 986 additions & 20 deletions

google/devtools/artifactregistry/v1/BUILD.bazel

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

12+
# buildifier: disable=load-on-top
13+
1214
# This is an API workspace, having public visibility by default makes perfect sense.
1315
package(default_visibility = ["//visibility:public"])
1416

1517
##############################################################################
1618
# Common
1719
##############################################################################
18-
load("@rules_proto//proto:defs.bzl", "proto_library")
20+
# buildifier: disable=same-origin-load
1921
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
22+
load("@rules_proto//proto:defs.bzl", "proto_library")
2023

2124
proto_library(
2225
name = "artifactregistry_proto",
2326
srcs = [
2427
"apt_artifact.proto",
2528
"artifact.proto",
29+
"attachment.proto",
2630
"file.proto",
31+
"generic.proto",
2732
"package.proto",
2833
"repository.proto",
34+
"rule.proto",
2935
"service.proto",
3036
"settings.proto",
3137
"tag.proto",
@@ -42,6 +48,7 @@ proto_library(
4248
"//google/iam/v1:policy_proto",
4349
"//google/longrunning:operations_proto",
4450
"//google/rpc:status_proto",
51+
"//google/type:expr_proto",
4552
"@com_google_protobuf//:duration_proto",
4653
"@com_google_protobuf//:empty_proto",
4754
"@com_google_protobuf//:field_mask_proto",
@@ -62,6 +69,7 @@ proto_library_with_info(
6269
##############################################################################
6370
# Java
6471
##############################################################################
72+
# buildifier: disable=same-origin-load
6573
load(
6674
"@com_google_googleapis_imports//:imports.bzl",
6775
"java_gapic_assembly_gradle_pkg",
@@ -128,6 +136,7 @@ java_gapic_assembly_gradle_pkg(
128136
##############################################################################
129137
# Go
130138
##############################################################################
139+
# buildifier: disable=same-origin-load
131140
load(
132141
"@com_google_googleapis_imports//:imports.bzl",
133142
"go_gapic_assembly_pkg",
@@ -145,6 +154,7 @@ go_proto_library(
145154
"//google/iam/v1:iam_go_proto",
146155
"//google/longrunning:longrunning_go_proto",
147156
"//google/rpc:status_go_proto",
157+
"//google/type:expr_go_proto",
148158
],
149159
)
150160

@@ -165,6 +175,7 @@ go_gapic_library(
165175
"//google/longrunning:longrunning_go_proto",
166176
"@com_google_cloud_go_longrunning//:go_default_library",
167177
"@com_google_cloud_go_longrunning//autogen:go_default_library",
178+
"@io_bazel_rules_go//proto/wkt:duration_go_proto",
168179
"@io_bazel_rules_go//proto/wkt:struct_go_proto",
169180
],
170181
)
@@ -184,6 +195,7 @@ go_gapic_assembly_pkg(
184195
##############################################################################
185196
# Python
186197
##############################################################################
198+
# buildifier: disable=same-origin-load
187199
load(
188200
"@com_google_googleapis_imports//:imports.bzl",
189201
"py_gapic_assembly_pkg",
@@ -229,6 +241,7 @@ py_gapic_assembly_pkg(
229241
##############################################################################
230242
# PHP
231243
##############################################################################
244+
# buildifier: disable=same-origin-load
232245
load(
233246
"@com_google_googleapis_imports//:imports.bzl",
234247
"php_gapic_assembly_pkg",
@@ -249,7 +262,9 @@ php_gapic_library(
249262
rest_numeric_enums = True,
250263
service_yaml = "artifactregistry_v1.yaml",
251264
transport = "grpc+rest",
252-
deps = [":artifactregistry_php_proto"],
265+
deps = [
266+
":artifactregistry_php_proto",
267+
],
253268
)
254269

255270
# Open Source Packages
@@ -264,6 +279,7 @@ php_gapic_assembly_pkg(
264279
##############################################################################
265280
# Node.js
266281
##############################################################################
282+
# buildifier: disable=same-origin-load
267283
load(
268284
"@com_google_googleapis_imports//:imports.bzl",
269285
"nodejs_gapic_assembly_pkg",
@@ -294,6 +310,7 @@ nodejs_gapic_assembly_pkg(
294310
##############################################################################
295311
# Ruby
296312
##############################################################################
313+
# buildifier: disable=same-origin-load
297314
load(
298315
"@com_google_googleapis_imports//:imports.bzl",
299316
"ruby_cloud_gapic_library",
@@ -348,6 +365,7 @@ ruby_gapic_assembly_pkg(
348365
##############################################################################
349366
# C#
350367
##############################################################################
368+
# buildifier: disable=same-origin-load
351369
load(
352370
"@com_google_googleapis_imports//:imports.bzl",
353371
"csharp_gapic_assembly_pkg",
@@ -358,6 +376,7 @@ load(
358376

359377
csharp_proto_library(
360378
name = "artifactregistry_csharp_proto",
379+
extra_opts = [],
361380
deps = [":artifactregistry_proto"],
362381
)
363382

@@ -394,6 +413,7 @@ csharp_gapic_assembly_pkg(
394413
##############################################################################
395414
# C++
396415
##############################################################################
416+
# buildifier: disable=same-origin-load
397417
load(
398418
"@com_google_googleapis_imports//:imports.bzl",
399419
"cc_grpc_library",

google/devtools/artifactregistry/v1/artifact.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ message ListDockerImagesRequest {
9292
// listed.
9393
string parent = 1 [(google.api.field_behavior) = REQUIRED];
9494

95-
// The maximum number of artifacts to return.
95+
// The maximum number of artifacts to return. Maximum page size is 1,000.
9696
int32 page_size = 2;
9797

9898
// The next_page_token value returned from a previous list request, if any.
@@ -176,7 +176,7 @@ message ListMavenArtifactsRequest {
176176
}
177177
];
178178

179-
// The maximum number of artifacts to return.
179+
// The maximum number of artifacts to return. Maximum page size is 1,000.
180180
int32 page_size = 2;
181181

182182
// The next_page_token value returned from a previous list request, if any.
@@ -249,7 +249,7 @@ message ListNpmPackagesRequest {
249249
}
250250
];
251251

252-
// The maximum number of artifacts to return.
252+
// The maximum number of artifacts to return. Maximum page size is 1,000.
253253
int32 page_size = 2;
254254

255255
// The next_page_token value returned from a previous list request, if any.
@@ -326,7 +326,7 @@ message ListPythonPackagesRequest {
326326
}
327327
];
328328

329-
// The maximum number of artifacts to return.
329+
// The maximum number of artifacts to return. Maximum page size is 1,000.
330330
int32 page_size = 2;
331331

332332
// The next_page_token value returned from a previous list request, if any.

google/devtools/artifactregistry/v1/artifactregistry_v1.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ apis:
1010

1111
types:
1212
- name: google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata
13+
- name: google.devtools.artifactregistry.v1.GenericArtifact
1314
- name: google.devtools.artifactregistry.v1.ImportAptArtifactsMetadata
1415
- name: google.devtools.artifactregistry.v1.ImportAptArtifactsResponse
1516
- name: google.devtools.artifactregistry.v1.ImportYumArtifactsMetadata
@@ -69,14 +70,30 @@ authentication:
6970
oauth:
7071
canonical_scopes: |-
7172
https://www.googleapis.com/auth/cloud-platform
73+
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.CreateAttachment
74+
oauth:
75+
canonical_scopes: |-
76+
https://www.googleapis.com/auth/cloud-platform
7277
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.CreateRepository
7378
oauth:
7479
canonical_scopes: |-
7580
https://www.googleapis.com/auth/cloud-platform
81+
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.CreateRule
82+
oauth:
83+
canonical_scopes: |-
84+
https://www.googleapis.com/auth/cloud-platform
7685
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.CreateTag
7786
oauth:
7887
canonical_scopes: |-
7988
https://www.googleapis.com/auth/cloud-platform
89+
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteAttachment
90+
oauth:
91+
canonical_scopes: |-
92+
https://www.googleapis.com/auth/cloud-platform
93+
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteFile
94+
oauth:
95+
canonical_scopes: |-
96+
https://www.googleapis.com/auth/cloud-platform
8097
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.DeletePackage
8198
oauth:
8299
canonical_scopes: |-
@@ -85,6 +102,10 @@ authentication:
85102
oauth:
86103
canonical_scopes: |-
87104
https://www.googleapis.com/auth/cloud-platform
105+
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteRule
106+
oauth:
107+
canonical_scopes: |-
108+
https://www.googleapis.com/auth/cloud-platform
88109
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteTag
89110
oauth:
90111
canonical_scopes: |-
@@ -105,6 +126,14 @@ authentication:
105126
oauth:
106127
canonical_scopes: |-
107128
https://www.googleapis.com/auth/cloud-platform
129+
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateFile
130+
oauth:
131+
canonical_scopes: |-
132+
https://www.googleapis.com/auth/cloud-platform
133+
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.UpdatePackage
134+
oauth:
135+
canonical_scopes: |-
136+
https://www.googleapis.com/auth/cloud-platform
108137
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateProjectSettings
109138
oauth:
110139
canonical_scopes: |-
@@ -113,6 +142,10 @@ authentication:
113142
oauth:
114143
canonical_scopes: |-
115144
https://www.googleapis.com/auth/cloud-platform
145+
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateRule
146+
oauth:
147+
canonical_scopes: |-
148+
https://www.googleapis.com/auth/cloud-platform
116149
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateTag
117150
oauth:
118151
canonical_scopes: |-
@@ -121,6 +154,10 @@ authentication:
121154
oauth:
122155
canonical_scopes: |-
123156
https://www.googleapis.com/auth/cloud-platform
157+
- selector: google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateVersion
158+
oauth:
159+
canonical_scopes: |-
160+
https://www.googleapis.com/auth/cloud-platform
124161
- selector: google.longrunning.Operations.GetOperation
125162
oauth:
126163
canonical_scopes: |-
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"methodConfig": [
3+
{
4+
"name": [
5+
{
6+
"service": "google.devtools.artifactregistry.v1.ArtifactRegistry"
7+
}
8+
],
9+
"timeout": "60s"
10+
}
11+
]
12+
}

0 commit comments

Comments
 (0)