// 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 = "RepositoryProto"; option java_package = "com.google.devtools.artifactregistry.v1"; option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1"; option ruby_package = "Google::Cloud::ArtifactRegistry::V1"; // A Repository for storing artifacts with a specific format. message Repository { option (google.api.resource) = { type: "artifactregistry.googleapis.com/Repository" pattern: "projects/{project}/locations/{location}/repositories/{repository}" }; // A package format. enum Format { // Unspecified package format. FORMAT_UNSPECIFIED = 0; // Docker package format. DOCKER = 1; // Maven package format. MAVEN = 2; // NPM package format. NPM = 3; // APT package format. APT = 5; // YUM package format. YUM = 6; // Python package format. PYTHON = 8; } // The name of the repository, for example: // "projects/p1/locations/us-central1/repositories/repo1". string name = 1; // The format of packages that are stored in the repository. Format format = 2; // The user-provided description of the repository. string description = 3; // Labels with user-defined metadata. // This field may contain up to 64 entries. Label keys and values may be no // longer than 63 characters. Label keys must begin with a lowercase letter // and may only contain lowercase letters, numeric characters, underscores, // and dashes. map labels = 4; // The time when the repository was created. google.protobuf.Timestamp create_time = 5; // The time when the repository was last updated. google.protobuf.Timestamp update_time = 6; // The Cloud KMS resource name of the customer managed encryption key that’s // used to encrypt the contents of the Repository. Has the form: // `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. // This value may not be changed after the Repository has been created. string kms_key_name = 8; } // The request to list repositories. message ListRepositoriesRequest { // Required. The name of the parent resource whose repositories will be listed. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { child_type: "artifactregistry.googleapis.com/Repository" } ]; // The maximum number of repositories 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 repositories. message ListRepositoriesResponse { // The repositories returned. repeated Repository repositories = 1; // The token to retrieve the next page of repositories, or empty if there are // no more repositories to return. string next_page_token = 2; } // The request to retrieve a repository. message GetRepositoryRequest { // Required. The name of the repository to retrieve. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { child_type: "artifactregistry.googleapis.com/Repository" } ]; }