settings.proto 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/protobuf/field_mask.proto";
  19. option csharp_namespace = "Google.Cloud.ArtifactRegistry.V1Beta2";
  20. option go_package = "google.golang.org/genproto/googleapis/devtools/artifactregistry/v1beta2;artifactregistry";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "SettingsProto";
  23. option java_package = "com.google.devtools.artifactregistry.v1beta2";
  24. option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1beta2";
  25. option ruby_package = "Google::Cloud::ArtifactRegistry::V1beta2";
  26. // The Artifact Registry settings that apply to a Project.
  27. message ProjectSettings {
  28. option (google.api.resource) = {
  29. type: "artifactregistry.googleapis.com/ProjectSettings"
  30. pattern: "projects/{project}/projectSettings"
  31. };
  32. // The possible redirection states for legacy repositories.
  33. enum RedirectionState {
  34. // No redirection status has been set.
  35. REDIRECTION_STATE_UNSPECIFIED = 0;
  36. // Redirection is disabled.
  37. REDIRECTION_FROM_GCR_IO_DISABLED = 1;
  38. // Redirection is enabled.
  39. REDIRECTION_FROM_GCR_IO_ENABLED = 2;
  40. // Redirection is enabled, and has been finalized so cannot be reverted.
  41. REDIRECTION_FROM_GCR_IO_FINALIZED = 3;
  42. }
  43. // The name of the project's settings.
  44. //
  45. // Always of the form:
  46. // projects/{project-id}/projectSettings
  47. //
  48. // In update request: never set
  49. // In response: always set
  50. string name = 1;
  51. // The redirection state of the legacy repositories in this project.
  52. RedirectionState legacy_redirection_state = 2;
  53. }
  54. // Gets the redirection status for a project.
  55. message GetProjectSettingsRequest {
  56. // Required. The name of the projectSettings resource.
  57. string name = 1 [
  58. (google.api.field_behavior) = REQUIRED,
  59. (google.api.resource_reference) = {
  60. type: "artifactregistry.googleapis.com/ProjectSettings"
  61. }
  62. ];
  63. }
  64. // Sets the settings of the project.
  65. message UpdateProjectSettingsRequest {
  66. // The project settings.
  67. ProjectSettings project_settings = 2;
  68. // Field mask to support partial updates.
  69. google.protobuf.FieldMask update_mask = 3;
  70. }