logged_restore.proto 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. // Copyright 2021 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.logging.v1;
  16. option go_package = "google.golang.org/genproto/googleapis/cloud/gkebackup/logging/v1;logging";
  17. option java_multiple_files = true;
  18. option java_outer_classname = "LoggedRestoreProto";
  19. option java_package = "google.cloud.gkebackup.logging.v1";
  20. option csharp_namespace = "Google.Cloud.GkeBackup.Logging.V1";
  21. option php_namespace = "Google\\Cloud\\GkeBackup\\Logging\\V1";
  22. option ruby_package = "Google::Cloud::GkeBackup::Logging::V1";
  23. // Restore as stored in Platform log. It's used to log the update details of a
  24. // updateRestore request, so only mutable and non-output_only fields are
  25. // included here..
  26. message LoggedRestore {
  27. // Possible values for state of the Restore.
  28. enum State {
  29. // The Restore resource is in the process of being created.
  30. STATE_UNSPECIFIED = 0;
  31. // The Restore resource has been created and the associated RestoreJob
  32. // Kubernetes resource has been injected into target cluster.
  33. CREATING = 1;
  34. // The gkebackup agent in the cluster has begun executing the restore
  35. // operation.
  36. IN_PROGRESS = 2;
  37. // The restore operation has completed successfully. Restored workloads may
  38. // not yet be operational.
  39. SUCCEEDED = 3;
  40. // The restore operation has failed.
  41. FAILED = 4;
  42. // This Restore resource is in the process of being deleted.
  43. DELETING = 5;
  44. }
  45. // Full name of the Backup resource this Restore resource used to restore
  46. // from. Format: projects/*/locations/*/backupPlans/*/backups/*.
  47. string backup = 1;
  48. // GCP Labels.
  49. map<string, string> labels = 2;
  50. // User specified descriptive string for this Restore.
  51. string description = 3;
  52. // The current state of the Restore.
  53. State state = 4;
  54. // Human-readable description of why the Restore is in its current state.
  55. string state_reason = 5;
  56. }