package.proto 2.8 KB

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