logged_backup.proto 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 = "LoggedBackupProto";
  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. // Backup as stored in Platform log. It's used to log the details of
  24. // a createBackup/updateBackup request, so only fields that can be taken
  25. // from API calls are included here.
  26. message LoggedBackup {
  27. // State
  28. enum State {
  29. // The Backup resource is in the process of being created.
  30. STATE_UNSPECIFIED = 0;
  31. // The Backup resource has been created and the associated BackupJob
  32. // Kubernetes resource has been injected into the source cluster.
  33. CREATING = 1;
  34. // The gkebackup agent in the cluster has begun executing the backup
  35. // operation.
  36. IN_PROGRESS = 2;
  37. // The backup operation has completed successfully.
  38. SUCCEEDED = 3;
  39. // The backup operation has failed.
  40. FAILED = 4;
  41. // This Backup resource (and its associated artifacts) is in the process
  42. // of being deleted.
  43. DELETING = 5;
  44. }
  45. // A set of custom labels supplied by user.
  46. map<string, string> labels = 1;
  47. // delete_lock_days specifies the number of days from the create_time of this
  48. // Backup before which deletion will be blocked.
  49. int32 delete_lock_days = 2;
  50. // retain_days specifies the desired number of days from the create_time of
  51. // this Backup after which it will be automatically deleted.
  52. int32 retain_days = 3;
  53. // User specified descriptive string for this Backup.
  54. string description = 4;
  55. // Current state of the Backup
  56. State state = 5;
  57. // Human-readable description of why the backup is in the current `state`.
  58. string state_reason = 6;
  59. }