// 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/annotations.proto"; import "google/api/client.proto"; import "google/devtools/artifactregistry/v1/artifact.proto"; import "google/devtools/artifactregistry/v1/repository.proto"; import "google/iam/v1/policy.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 = "ServiceProto"; option java_package = "com.google.devtools.artifactregistry.v1"; option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1"; option ruby_package = "Google::Cloud::ArtifactRegistry::V1"; // The Artifact Registry API service. // // Artifact Registry is an artifact management system for storing artifacts // from different package management systems. // // The resources managed by this API are: // // * Repositories, which group packages and their data. // * Packages, which group versions and their tags. // * Versions, which are specific forms of a package. // * Tags, which represent alternative names for versions. // * Files, which contain content and are optionally associated with a Package // or Version. service ArtifactRegistry { option (google.api.default_host) = "artifactregistry.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform," "https://www.googleapis.com/auth/cloud-platform.read-only"; // Lists docker images. rpc ListDockerImages(ListDockerImagesRequest) returns (ListDockerImagesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/repositories/*}/dockerImages" }; option (google.api.method_signature) = "parent"; } // Lists repositories. rpc ListRepositories(ListRepositoriesRequest) returns (ListRepositoriesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/repositories" }; option (google.api.method_signature) = "parent"; } // Gets a repository. rpc GetRepository(GetRepositoryRequest) returns (Repository) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/repositories/*}" }; option (google.api.method_signature) = "name"; } }