Skip to content

Commit cf0434f

Browse files
Google APIscopybara-github
authored andcommitted
feat: add image_manifest field in DockerImage
feat: add artifact_type field in DockerImage feat: add Ruby format in VulnerabilityScanningConfig docs: A comment for field `name` in message `.google.devtools.artifactregistry.v1.DockerImage` is changed docs: A comment for enum value `ENABLEMENT_CONFIG_UNSPECIFIED` in enum `EnablementConfig` is changed docs: A comment for field `satisfies_pzs` in message `.google.devtools.artifactregistry.v1.Repository` is changed docs: A comment for field `satisfies_pzi` in message `.google.devtools.artifactregistry.v1.Repository` is changed PiperOrigin-RevId: 830951552
1 parent b793702 commit cf0434f

File tree

2 files changed

+52
-4
lines changed

2 files changed

+52
-4
lines changed

google/devtools/artifactregistry/v1/artifact.proto

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ message DockerImage {
4242

4343
// Required. registry_location, project_id, repository_name and image id forms
4444
// a unique image
45-
// name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`.
45+
// name:`projects/<project_id>/locations/<location>/repositories/<repository_name>/dockerImages/<docker_image>`.
4646
// For example,
4747
// "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/
4848
// nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf",
@@ -84,6 +84,50 @@ message DockerImage {
8484
// Output only. The time when the docker image was last updated.
8585
google.protobuf.Timestamp update_time = 8
8686
[(google.api.field_behavior) = OUTPUT_ONLY];
87+
88+
// ArtifactType of this image, e.g. "application/vnd.example+type".
89+
// If the `subject_digest` is set and no `artifact_type` is given, the
90+
// `media_type` will be considered as the `artifact_type`. This field is
91+
// returned as the `metadata.artifactType` field in the Version resource.
92+
string artifact_type = 9;
93+
94+
// Optional. For multi-arch images (manifest lists), this field contains the
95+
// list of image manifests.
96+
repeated ImageManifest image_manifests = 11
97+
[(google.api.field_behavior) = OPTIONAL];
98+
}
99+
100+
// Details of a single image manifest within a multi-arch image.
101+
message ImageManifest {
102+
// Optional. The CPU architecture of the image.
103+
// Values are provided by the Docker client and are not validated by Artifact
104+
// Registry. Example values include "amd64", "arm64", "ppc64le", "s390x",
105+
// "riscv64", "mips64le", etc.
106+
string architecture = 1 [(google.api.field_behavior) = OPTIONAL];
107+
108+
// Optional. The operating system of the image.
109+
// Values are provided by the Docker client and are not validated by Artifact
110+
// Registry. Example values include "linux", "windows", "darwin", "aix", etc.
111+
string os = 2 [(google.api.field_behavior) = OPTIONAL];
112+
113+
// Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".
114+
string digest = 3 [(google.api.field_behavior) = OPTIONAL];
115+
116+
// Optional. The media type of the manifest, e.g.,
117+
// "application/vnd.docker.distribution.manifest.v2+json"
118+
string media_type = 4 [(google.api.field_behavior) = OPTIONAL];
119+
120+
// Optional. The OS version of the image, for example on Windows
121+
// `10.0.14393.1066`.
122+
string os_version = 5 [(google.api.field_behavior) = OPTIONAL];
123+
124+
// Optional. The required OS features for the image, for example on Windows
125+
// `win32k`.
126+
repeated string os_features = 6 [(google.api.field_behavior) = OPTIONAL];
127+
128+
// Optional. The variant of the CPU in the image, for example `v7` to specify
129+
// ARMv7 when architecture is `arm`.
130+
string variant = 7 [(google.api.field_behavior) = OPTIONAL];
87131
}
88132

89133
// The request to list docker images.

google/devtools/artifactregistry/v1/repository.proto

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,8 @@ message Repository {
470470
message VulnerabilityScanningConfig {
471471
// Config for vulnerability scanning of resources in this repository.
472472
enum EnablementConfig {
473-
// Not set. This will be treated as INHERITED.
473+
// Not set. This will be treated as INHERITED for Docker repositories and
474+
// DISABLED for non-Docker repositories.
474475
ENABLEMENT_CONFIG_UNSPECIFIED = 0;
475476

476477
// Scanning is Enabled, but dependent on API enablement.
@@ -547,6 +548,9 @@ message Repository {
547548

548549
// Generic package format.
549550
GENERIC = 11;
551+
552+
// Ruby package format.
553+
RUBY = 12;
550554
}
551555

552556
// The mode configures the repository to serve artifacts from different
@@ -633,7 +637,7 @@ message Repository {
633637
// use this to calculate storage costs.
634638
int64 size_bytes = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
635639

636-
// Output only. If set, the repository satisfies physical zone separation.
640+
// Output only. Whether or not this repository satisfies PZS.
637641
bool satisfies_pzs = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
638642

639643
// Optional. If true, the cleanup pipeline is prevented from deleting versions
@@ -649,7 +653,7 @@ message Repository {
649653
// error rather than defaulting to standard.
650654
bool disallow_unspecified_mode = 21 [(google.api.field_behavior) = OPTIONAL];
651655

652-
// Output only. If set, the repository satisfies physical zone isolation.
656+
// Output only. Whether or not this repository satisfies PZI.
653657
bool satisfies_pzi = 22 [(google.api.field_behavior) = OUTPUT_ONLY];
654658

655659
// Output only. The repository endpoint, for example:

0 commit comments

Comments
 (0)