package.proto 2.6 KB

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