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