package.proto 2.5 KB

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