Skip to content

Commit 7b8b452

Browse files
feat: [artifactregistry] add the GoModule and KfpArtifact resources (#6231)
* 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 Source-Link: googleapis/googleapis@fec747a Source-Link: googleapis/googleapis-gen@82b6718 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWRldnRvb2xzLWFydGlmYWN0cmVnaXN0cnkvLk93bEJvdC55YW1sIiwiaCI6IjgyYjY3MTgyMDFjZTdkZjZiZDMwODkzMWMzODNlZWYwYjU0YmVlZTcifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: d-goog <188102366+d-goog@users.noreply.github.com>
1 parent 5e22e28 commit 7b8b452

12 files changed

Lines changed: 1222 additions & 4 deletions

File tree

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+
}

packages/google-devtools-artifactregistry/protos/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.

packages/google-devtools-artifactregistry/protos/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) = {

packages/google-devtools-artifactregistry/protos/protos.d.ts

Lines changed: 224 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)