This repository has been archived by the owner on Sep 16, 2023. It is now read-only.
/
artifact.proto
106 lines (89 loc) · 4.09 KB
/
artifact.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package google.devtools.artifactregistry.v1;
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/protobuf/timestamp.proto";
import "google/api/annotations.proto";
option csharp_namespace = "Google.Cloud.ArtifactRegistry.V1";
option go_package = "google.golang.org/genproto/googleapis/devtools/artifactregistry/v1;artifactregistry";
option java_multiple_files = true;
option java_outer_classname = "ArtifactProto";
option java_package = "com.google.devtools.artifactregistry.v1";
option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1";
option ruby_package = "Google::Cloud::ArtifactRegistry::V1";
// DockerImage represents a docker artifact.
// The following fields are returned as untyped metadata in the Version
// resource, using camelcase keys (i.e. metadata.imageSizeBytes):
// - imageSizeBytes
// - mediaType
// - buildTime
message DockerImage {
option (google.api.resource) = {
type: "artifactregistry.googleapis.com/DockerImage"
pattern: "projects/{project}/locations/{location}/repositories/{repository}/dockerImages/{docker_image}"
};
// Required. registry_location, project_id, repository_name and image id forms a unique
// image
// name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`.
// For example,
// "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/
// nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf",
// where "us-west4" is the registry_location, "test-project" is the
// project_id, "test-repo" is the repository_name and
// "nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf"
// is the image's digest.
string name = 1 [(google.api.field_behavior) = REQUIRED];
// Required. URL to access the image.
// Example:
// us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf
string uri = 2 [(google.api.field_behavior) = REQUIRED];
// Tags attached to this image.
repeated string tags = 3;
// Calculated size of the image.
// This field is returned as the 'metadata.imageSizeBytes' field in the
// Version resource.
int64 image_size_bytes = 4;
// Time the image was uploaded.
google.protobuf.Timestamp upload_time = 5;
// Media type of this image, e.g.
// "application/vnd.docker.distribution.manifest.v2+json".
// This field is returned as the 'metadata.mediaType' field in the
// Version resource.
string media_type = 6;
// The time this image was built.
// This field is returned as the 'metadata.buildTime' field in the
// Version resource.
// The build time is returned to the client as an RFC 3339 string, which can
// be easily used with the JavaScript Date constructor.
google.protobuf.Timestamp build_time = 7;
}
// The request to list docker images.
message ListDockerImagesRequest {
// Required. The name of the parent resource whose docker images will be listed.
string parent = 1 [(google.api.field_behavior) = REQUIRED];
// The maximum number of artifacts to return.
int32 page_size = 2;
// The next_page_token value returned from a previous list request, if any.
string page_token = 3;
}
// The response from listing docker images.
message ListDockerImagesResponse {
// The docker images returned.
repeated DockerImage docker_images = 1;
// The token to retrieve the next page of artifacts, or empty if there are no
// more artifacts to return.
string next_page_token = 2;
}