restore_plan.proto 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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.cloud.gkebackup.v1;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/cloud/gkebackup/v1/restore.proto";
  19. import "google/protobuf/timestamp.proto";
  20. option csharp_namespace = "Google.Cloud.GkeBackup.V1";
  21. option go_package = "google.golang.org/genproto/googleapis/cloud/gkebackup/v1;gkebackup";
  22. option java_multiple_files = true;
  23. option java_outer_classname = "RestorePlanProto";
  24. option java_package = "com.google.cloud.gkebackup.v1";
  25. option php_namespace = "Google\\Cloud\\GkeBackup\\V1";
  26. option ruby_package = "Google::Cloud::GkeBackup::V1";
  27. // The configuration of a potential series of Restore operations to be performed
  28. // against Backups belong to a particular BackupPlan.
  29. // Next id: 11
  30. message RestorePlan {
  31. option (google.api.resource) = {
  32. type: "gkebackup.googleapis.com/RestorePlan"
  33. pattern: "projects/{project}/locations/{location}/restorePlans/{restore_plan}"
  34. };
  35. // Output only. The full name of the RestorePlan resource.
  36. // Format: projects/*/locations/*/restorePlans/*.
  37. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  38. // Output only. Server generated global unique identifier of
  39. // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
  40. string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  41. // Output only. The timestamp when this RestorePlan resource was
  42. // created.
  43. google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  44. // Output only. The timestamp when this RestorePlan resource was last
  45. // updated.
  46. google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  47. // User specified descriptive string for this RestorePlan.
  48. string description = 5;
  49. // Required. Immutable. A reference to the [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may be used as the
  50. // source for Restores created via this RestorePlan.
  51. // Format: projects/*/locations/*/backupPlans/*.
  52. string backup_plan = 6 [
  53. (google.api.field_behavior) = IMMUTABLE,
  54. (google.api.field_behavior) = REQUIRED,
  55. (google.api.resource_reference) = {
  56. type: "gkebackup.googleapis.com/BackupPlan"
  57. }
  58. ];
  59. // Required. Immutable. The target cluster into which Restores created via this RestorePlan
  60. // will restore data. NOTE: the cluster's region must be the same as the
  61. // RestorePlan.
  62. // Valid formats:
  63. //
  64. // - projects/*/locations/*/clusters/*
  65. // - projects/*/zones/*/clusters/*
  66. string cluster = 7 [
  67. (google.api.field_behavior) = IMMUTABLE,
  68. (google.api.field_behavior) = REQUIRED,
  69. (google.api.resource_reference) = {
  70. type: "container.googleapis.com/Cluster"
  71. }
  72. ];
  73. // Required. Configuration of Restores created via this RestorePlan.
  74. RestoreConfig restore_config = 8 [(google.api.field_behavior) = REQUIRED];
  75. // A set of custom labels supplied by user.
  76. map<string, string> labels = 9;
  77. // Output only. `etag` is used for optimistic concurrency control as a way to help
  78. // prevent simultaneous updates of a restore from overwriting each other.
  79. // It is strongly suggested that systems make use of the `etag` in the
  80. // read-modify-write cycle to perform restore updates in order to avoid
  81. // race conditions: An `etag` is returned in the response to `GetRestorePlan`,
  82. // and systems are expected to put that etag in the request to
  83. // `UpdateRestorePlan` or `DeleteRestorePlan` to ensure that their change
  84. // will be applied to the same version of the resource.
  85. string etag = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
  86. }