Skip to content

Commit

Permalink
feat(optimus): add backup api path, request response model (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
arinda-arif authored Oct 18, 2021
1 parent bec5d9f commit e45f446
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions odpf/optimus/runtime_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,17 @@ service RuntimeService {
body: "*"
};
}
rpc Backup(BackupRequest) returns (BackupResponse) {
option (google.api.http) = {
post: "/v1/project/{project_name}/namespace/{namespace}/datastore/{datastore_name}/backup"
body: "*"
};
}
rpc ListBackups(ListBackupsRequest) returns (ListBackupsResponse) {
option (google.api.http) = {
get: "/v1/project/{project_name}/namespace/{namespace}/datastore/{datastore_name}/backup"
};
}
// TODO(kush.sharma): disabled ATM
// rpc DeleteResource(DeleteResourceRequest) returns (DeleteResourceResponse) {}

Expand Down Expand Up @@ -750,3 +761,34 @@ message BackupDryRunRequest {
message BackupDryRunResponse {
repeated string resource_name = 1;
}

message BackupRequest {
string project_name = 1;
string datastore_name = 2;
string resource_name = 3;
string namespace = 4;
string description = 5;
bool ignore_downstream = 6;
map<string, string> config = 7;
}

message BackupResponse {
repeated string urn = 1;
}

message ListBackupsRequest {
string project_name = 1;
string datastore_name = 2;
string namespace = 3;
}

message ListBackupsResponse {
repeated BackupSpec backups = 1;
}

message BackupSpec {
string id = 1;
string resource_name = 2;
google.protobuf.Timestamp created_at = 3;
string description = 4;
}

0 comments on commit e45f446

Please sign in to comment.