添加notebook 动态挂载obs
This commit is contained in:
parent
069fb33989
commit
86840e51e1
|
@ -1608,6 +1608,44 @@ message StopNotebookResp{
|
|||
NotebookResp notebookResp = 1;
|
||||
}
|
||||
|
||||
message GetNotebookStorageReq{
|
||||
string instance_id = 1;
|
||||
string project_id = 2;
|
||||
}
|
||||
message GetNotebookStorageResp{
|
||||
int32 current = 1;
|
||||
repeated DataVolumesRes data = 2;
|
||||
int32 pages = 3;
|
||||
int32 size = 4;
|
||||
int64 total = 5;
|
||||
}
|
||||
message MountNotebookStorageReq{
|
||||
string instance_id = 1;
|
||||
string project_id = 2;
|
||||
MountNotebookStorageParam param = 3;
|
||||
}
|
||||
message MountNotebookStorageResp{
|
||||
string category = 1;
|
||||
string id = 2;
|
||||
string mount_path = 3;
|
||||
string status = 4;
|
||||
string uri = 5;
|
||||
}
|
||||
|
||||
message MountNotebookStorageParam{
|
||||
string category = 1;
|
||||
string mount_path = 2;
|
||||
string uri = 3;
|
||||
}
|
||||
|
||||
message DataVolumesRes{
|
||||
string category = 1;
|
||||
string id = 2;
|
||||
string mount_path = 3;
|
||||
string status = 4;
|
||||
string uri = 5;
|
||||
}
|
||||
|
||||
message NotebookResp{
|
||||
repeated JobProgress action_progress = 1;
|
||||
string description = 2;
|
||||
|
@ -1706,6 +1744,7 @@ message LeaseReq{
|
|||
|
||||
/******************Notebook End*************************/
|
||||
|
||||
|
||||
// Slurm Services for Shuguang Branch
|
||||
service ModelArts {
|
||||
|
||||
|
@ -1761,4 +1800,7 @@ service ModelArts {
|
|||
rpc CreateNotebook(CreateNotebookReq) returns (CreateNotebookResp);
|
||||
rpc StartNotebook(StartNotebookReq) returns (StartNotebookResp);
|
||||
rpc StopNotebook(StopNotebookReq) returns (StopNotebookResp);
|
||||
rpc GetNotebookStorage(GetNotebookStorageReq) returns (GetNotebookStorageResp);
|
||||
rpc MountNotebookStorage(MountNotebookStorageReq) returns (MountNotebookStorageResp);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue