1// Copyright 2020 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 15syntax = "proto3"; 16 17package google.devtools.artifactregistry.v1beta2; 18 19import "google/protobuf/timestamp.proto"; 20 21option csharp_namespace = "Google.Cloud.ArtifactRegistry.V1Beta2"; 22option go_package = "cloud.google.com/go/artifactregistry/apiv1beta2/artifactregistrypb;artifactregistrypb"; 23option java_multiple_files = true; 24option java_outer_classname = "PackageProto"; 25option java_package = "com.google.devtools.artifactregistry.v1beta2"; 26option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1beta2"; 27option ruby_package = "Google::Cloud::ArtifactRegistry::V1beta2"; 28 29// Packages are named collections of versions. 30message Package { 31 // The name of the package, for example: 32 // "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1". 33 string name = 1; 34 35 // The display name of the package. 36 string display_name = 2; 37 38 // The time when the package was created. 39 google.protobuf.Timestamp create_time = 5; 40 41 // The time when the package was last updated. This includes publishing a new 42 // version of the package. 43 google.protobuf.Timestamp update_time = 6; 44} 45 46// The request to list packages. 47message ListPackagesRequest { 48 // The name of the parent resource whose packages will be listed. 49 string parent = 1; 50 51 // The maximum number of packages to return. 52 // Maximum page size is 10,000. 53 int32 page_size = 2; 54 55 // The next_page_token value returned from a previous list request, if any. 56 string page_token = 3; 57} 58 59// The response from listing packages. 60message ListPackagesResponse { 61 // The packages returned. 62 repeated Package packages = 1; 63 64 // The token to retrieve the next page of packages, or empty if there are no 65 // more packages to return. 66 string next_page_token = 2; 67} 68 69// The request to retrieve a package. 70message GetPackageRequest { 71 // The name of the package to retrieve. 72 string name = 1; 73} 74 75// The request to delete a package. 76message DeletePackageRequest { 77 // The name of the package to delete. 78 string name = 1; 79} 80