Skip to content

Commit fec747a

Browse files
Google APIscopybara-github
authored andcommitted
feat: add the GoModule and KfpArtifact resources
docs: remove the restriction of the maximum numbers of versions that can be deleted in one BatchDeleteVersions call PiperOrigin-RevId: 742735969
1 parent 6dbf675 commit fec747a

6 files changed

Lines changed: 108 additions & 1 deletion

File tree

google/devtools/artifactregistry/v1/BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ proto_library(
2929
"attachment.proto",
3030
"file.proto",
3131
"generic.proto",
32+
"go.proto",
33+
"kfp_artifact.proto",
3234
"package.proto",
3335
"repository.proto",
3436
"rule.proto",

google/devtools/artifactregistry/v1/artifactregistry_v1.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ apis:
1111
types:
1212
- name: google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata
1313
- name: google.devtools.artifactregistry.v1.GenericArtifact
14+
- name: google.devtools.artifactregistry.v1.GoModule
1415
- name: google.devtools.artifactregistry.v1.ImportAptArtifactsMetadata
1516
- name: google.devtools.artifactregistry.v1.ImportAptArtifactsResponse
1617
- name: google.devtools.artifactregistry.v1.ImportYumArtifactsMetadata
1718
- name: google.devtools.artifactregistry.v1.ImportYumArtifactsResponse
19+
- name: google.devtools.artifactregistry.v1.KfpArtifact
1820
- name: google.devtools.artifactregistry.v1.OperationMetadata
1921

2022
documentation:
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// Copyright 2025 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
syntax = "proto3";
16+
17+
package google.devtools.artifactregistry.v1;
18+
19+
import "google/api/field_behavior.proto";
20+
import "google/api/resource.proto";
21+
import "google/protobuf/timestamp.proto";
22+
23+
option csharp_namespace = "Google.Cloud.ArtifactRegistry.V1";
24+
option go_package = "cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypb";
25+
option java_multiple_files = true;
26+
option java_outer_classname = "GoProto";
27+
option java_package = "com.google.devtools.artifactregistry.v1";
28+
option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1";
29+
option ruby_package = "Google::Cloud::ArtifactRegistry::V1";
30+
31+
// GoModule represents a Go module.
32+
message GoModule {
33+
option (google.api.resource) = {
34+
type: "artifactregistry.googleapis.com/GoModule"
35+
pattern: "projects/{project}/locations/{location}/repositories/{repository}/goModules/{go_module}"
36+
};
37+
38+
// The resource name of a Go module.
39+
string name = 1;
40+
41+
// The version of the Go module. Must be a valid canonical version as defined
42+
// in https://go.dev/ref/mod#glos-canonical-version.
43+
string version = 2;
44+
45+
// Output only. The time when the Go module is created.
46+
google.protobuf.Timestamp create_time = 3
47+
[(google.api.field_behavior) = OUTPUT_ONLY];
48+
49+
// Output only. The time when the Go module is updated.
50+
google.protobuf.Timestamp update_time = 4
51+
[(google.api.field_behavior) = OUTPUT_ONLY];
52+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
// Copyright 2025 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
syntax = "proto3";
16+
17+
package google.devtools.artifactregistry.v1;
18+
19+
import "google/api/field_behavior.proto";
20+
import "google/api/resource.proto";
21+
22+
option csharp_namespace = "Google.Cloud.ArtifactRegistry.V1";
23+
option go_package = "cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypb";
24+
option java_multiple_files = true;
25+
option java_outer_classname = "KfpArtifactProto";
26+
option java_package = "com.google.devtools.artifactregistry.v1";
27+
option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1";
28+
option ruby_package = "Google::Cloud::ArtifactRegistry::V1";
29+
30+
// A detailed representation of a KFP artifact.
31+
message KfpArtifact {
32+
option (google.api.resource) = {
33+
type: "artifactregistry.googleapis.com/KfpArtifact"
34+
pattern: "projects/{project}/locations/{location}/repositories/{repository}/kfpArtifacts/{kfp_artifact}"
35+
};
36+
37+
// Output only. Resource name of the KFP artifact. Since users don't directly
38+
// interact with this resource, the name will be derived from the associated
39+
// version. For example, when version = ".../versions/sha256:abcdef...", the
40+
// name will be ".../kfpArtifacts/sha256:abcdef...".
41+
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
42+
43+
// The version associated with the KFP artifact. Must follow the Semantic
44+
// Versioning standard.
45+
string version = 2;
46+
}

google/devtools/artifactregistry/v1/repository.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,10 @@ message Repository {
651651

652652
// Output only. If set, the repository satisfies physical zone isolation.
653653
bool satisfies_pzi = 22 [(google.api.field_behavior) = OUTPUT_ONLY];
654+
655+
// Output only. The repository endpoint, for example:
656+
// `us-docker.pkg.dev/my-proj/my-repo`.
657+
string registry_uri = 26 [(google.api.field_behavior) = OUTPUT_ONLY];
654658
}
655659

656660
// The request to list repositories.

google/devtools/artifactregistry/v1/version.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ message BatchDeleteVersionsRequest {
187187
}];
188188

189189
// Required. The names of the versions to delete.
190-
// A maximum of 10000 versions can be deleted in a batch.
190+
// The maximum number of versions deleted per batch is determined by the
191+
// service and is dependent on the available resources in the region.
191192
repeated string names = 2 [
192193
(google.api.field_behavior) = REQUIRED,
193194
(google.api.resource_reference) = {

0 commit comments

Comments
 (0)