@@ -24,12 +24,6 @@ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
24
24
};
25
25
26
26
service BackupService {
27
- rpc BackupDryRun (BackupDryRunRequest ) returns (BackupDryRunResponse ) {
28
- option (google.api.http ) = {
29
- post : "/v1beta1/project/{project_name}/namespace/{namespace_name}/datastore/{datastore_name}/backupDryrun"
30
- body : "*"
31
- };
32
- }
33
27
rpc CreateBackup (CreateBackupRequest ) returns (CreateBackupResponse ) {
34
28
option (google.api.http ) = {
35
29
post : "/v1beta1/project/{project_name}/namespace/{namespace_name}/datastore/{datastore_name}/backup"
@@ -48,43 +42,29 @@ service BackupService {
48
42
}
49
43
}
50
44
51
- message BackupDryRunRequest {
52
- string project_name = 1 ;
53
- string datastore_name = 2 ;
54
- string resource_name = 3 ;
55
- string namespace_name = 4 ;
56
- string description = 5 ;
57
- bool ignore_downstream = 6 [deprecated = true ];
58
-
59
- // represents which downstream to be backed up.
60
- // possible values are the namespace names, *, or empty.
61
- // '*' means all namespaces are allowed, empty list means all downstream will be ignored.
62
- repeated string allowed_downstream_namespaces = 7 ;
63
- }
64
-
65
- message BackupDryRunResponse {
66
- repeated string resource_name = 1 ;
67
- repeated string ignored_resources = 2 ;
45
+ message IgnoredResource {
46
+ string name = 1 ;
47
+ string reason = 2 ;
68
48
}
69
49
70
50
message CreateBackupRequest {
51
+ reserved 3 , 6 , 8 ;
52
+
71
53
string project_name = 1 ;
72
54
string datastore_name = 2 ;
73
- string resource_name = 3 ;
74
55
string namespace_name = 4 ;
75
56
string description = 5 ;
76
- bool ignore_downstream = 6 [deprecated = true ];
77
57
map <string , string > config = 7 ;
78
58
79
- // represents which downstream to be backed up.
80
- // possible values are the namespace names, *, or empty.
81
- // '*' means all namespaces are allowed, empty list means all downstream will be ignored.
82
- repeated string allowed_downstream_namespaces = 8 ;
59
+ repeated string resource_names = 9 ;
83
60
}
84
61
85
62
message CreateBackupResponse {
86
- repeated string urn = 1 ;
87
- repeated string ignored_resources = 2 ;
63
+ reserved 2 ;
64
+
65
+ repeated string resource_names = 1 ;
66
+ repeated IgnoredResource ignored_resources = 3 ;
67
+ string backup_id = 4 ;
88
68
}
89
69
90
70
message ListBackupsRequest {
@@ -98,11 +78,13 @@ message ListBackupsResponse {
98
78
}
99
79
100
80
message BackupSpec {
81
+ reserved 2 ;
82
+
101
83
string id = 1 ;
102
- string resource_name = 2 ;
103
84
google.protobuf.Timestamp created_at = 3 ;
104
85
string description = 4 ;
105
86
map <string , string > config = 5 ;
87
+ repeated string resource_names = 6 ;
106
88
}
107
89
108
90
message GetBackupRequest {
@@ -113,6 +95,7 @@ message GetBackupRequest {
113
95
}
114
96
115
97
message GetBackupResponse {
98
+ reserved 2 ;
99
+
116
100
BackupSpec spec = 1 ;
117
- repeated string urn = 2 ;
118
101
}
0 commit comments