fix:PCM-CORE代码修改
Former-commit-id: 46fbd92abc58faa98d528f87af23a772a800c7e3
This commit is contained in:
parent
960f5159ea
commit
69e400259a
|
@ -42,7 +42,6 @@ func (l *ListAlgorithmsLogic) ListAlgorithms(in *modelarts.ListAlgorithmsReq) (*
|
||||||
limit = "10"
|
limit = "10"
|
||||||
}
|
}
|
||||||
modelArtsType := in.ModelArtsType
|
modelArtsType := in.ModelArtsType
|
||||||
//projectId := in.ProjectId
|
|
||||||
//根据智算类型判断走华为智算还是南京智算
|
//根据智算类型判断走华为智算还是南京智算
|
||||||
if modelArtsType == l.svcCtx.Config.HaweiModelArtsType {
|
if modelArtsType == l.svcCtx.Config.HaweiModelArtsType {
|
||||||
modelArtsUrl := l.svcCtx.Config.ModelArtsUrl
|
modelArtsUrl := l.svcCtx.Config.ModelArtsUrl
|
||||||
|
@ -67,7 +66,6 @@ func (l *ListAlgorithmsLogic) ListAlgorithms(in *modelarts.ListAlgorithmsReq) (*
|
||||||
SK := l.svcCtx.Config.SK
|
SK := l.svcCtx.Config.SK
|
||||||
NanjingModelArtsUrl := l.svcCtx.Config.NanjingModelArtsUrl
|
NanjingModelArtsUrl := l.svcCtx.Config.NanjingModelArtsUrl
|
||||||
XProjectId := l.svcCtx.Config.XProjectId
|
XProjectId := l.svcCtx.Config.XProjectId
|
||||||
//XDomainId := l.svcCtx.Config.XDomainId
|
|
||||||
s := core.Signer{
|
s := core.Signer{
|
||||||
Key: AK,
|
Key: AK,
|
||||||
Secret: SK,
|
Secret: SK,
|
||||||
|
@ -80,7 +78,6 @@ func (l *ListAlgorithmsLogic) ListAlgorithms(in *modelarts.ListAlgorithmsReq) (*
|
||||||
}
|
}
|
||||||
r.Header.Add("content-type", "application/json;charset=UTF-8")
|
r.Header.Add("content-type", "application/json;charset=UTF-8")
|
||||||
r.Header.Add("X-Project-Id", XProjectId)
|
r.Header.Add("X-Project-Id", XProjectId)
|
||||||
//r.Header.Add("X-Domain-Id", XDomainId)
|
|
||||||
r.Header.Add("x-stage", "RELEASE")
|
r.Header.Add("x-stage", "RELEASE")
|
||||||
s.Sign(r)
|
s.Sign(r)
|
||||||
client := http.DefaultClient
|
client := http.DefaultClient
|
||||||
|
|
|
@ -31,6 +31,8 @@ type (
|
||||||
ProjectId string `path:"projectId"`
|
ProjectId string `path:"projectId"`
|
||||||
Limit int32 `form:"limit,optional"`
|
Limit int32 `form:"limit,optional"`
|
||||||
OffSet int32 `form:"offSet,optional"`
|
OffSet int32 `form:"offSet,optional"`
|
||||||
|
/****************parmas from modelArtsType ********************/
|
||||||
|
modelArtsType string `form:"modelArtsType,optional"`
|
||||||
}
|
}
|
||||||
DataSetResp {
|
DataSetResp {
|
||||||
TotalNumber uint32 `json:"total_number" copier:"TotalNumber"`
|
TotalNumber uint32 `json:"total_number" copier:"TotalNumber"`
|
||||||
|
@ -53,6 +55,8 @@ type CreateDataSetReq {
|
||||||
WorkPathType int32 `json:"workPathType" copier:"WorkPathType"`
|
WorkPathType int32 `json:"workPathType" copier:"WorkPathType"`
|
||||||
ProjectId string `path:"projectId" copier:"ProjectId"`
|
ProjectId string `path:"projectId" copier:"ProjectId"`
|
||||||
DataSources []DataSources `json:"dataSources" copier:"DataSources"`
|
DataSources []DataSources `json:"dataSources" copier:"DataSources"`
|
||||||
|
/****************parmas from modelArtsType ********************/
|
||||||
|
modelArtsType string `form:"modelArtsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CreateDataSetResp {
|
type CreateDataSetResp {
|
||||||
|
@ -69,6 +73,8 @@ type (
|
||||||
ProjectId string `path:"projectId"`
|
ProjectId string `path:"projectId"`
|
||||||
DatasetId string `path:"datasetId"`
|
DatasetId string `path:"datasetId"`
|
||||||
ImportPath string `json:"importPath"`
|
ImportPath string `json:"importPath"`
|
||||||
|
/****************parmas from modelArtsType ********************/
|
||||||
|
modelArtsType string `form:"modelArtsType,optional"`
|
||||||
}
|
}
|
||||||
ImportTaskDataResp{
|
ImportTaskDataResp{
|
||||||
TaskId string `json:"taskId,omitempty"`
|
TaskId string `json:"taskId,omitempty"`
|
||||||
|
@ -96,6 +102,8 @@ type (
|
||||||
VersionFormat string `json:"versionFormat,optional" copier:"VersionFormat"`
|
VersionFormat string `json:"versionFormat,optional" copier:"VersionFormat"`
|
||||||
VersionId string `json:"versionId,optional" copier:"VersionId"`
|
VersionId string `json:"versionId,optional" copier:"VersionId"`
|
||||||
WithColumnHeader bool `json:"withColumnHeader,optional" copier:"WithColumnHeader"`
|
WithColumnHeader bool `json:"withColumnHeader,optional" copier:"WithColumnHeader"`
|
||||||
|
/****************智算类型 ModelartsType parmas ********************/
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
type ExportTaskDataResp {
|
type ExportTaskDataResp {
|
||||||
|
@ -171,6 +179,8 @@ type (
|
||||||
ExportType int32 `json:"export_type,optional" copier:"ExportType"`
|
ExportType int32 `json:"export_type,optional" copier:"ExportType"`
|
||||||
Limit int32 `form:"limit,optional"`
|
Limit int32 `form:"limit,optional"`
|
||||||
Offset int32 `form:"offset,optional"`
|
Offset int32 `form:"offset,optional"`
|
||||||
|
/****************智算类型 ModelartsType parmas ********************/
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
type GetExportTasksOfDatasetResp {
|
type GetExportTasksOfDatasetResp {
|
||||||
|
@ -219,6 +229,8 @@ type (
|
||||||
ProjectId string `path:"projectId"`
|
ProjectId string `path:"projectId"`
|
||||||
ResourceId string `path:"resourceId"`
|
ResourceId string `path:"resourceId"`
|
||||||
TaskId string `path:"taskId"`
|
TaskId string `path:"taskId"`
|
||||||
|
/****************智算类型 ModelartsType parmas ********************/
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
type GetExportTaskStatusOfDatasetResp {
|
type GetExportTaskStatusOfDatasetResp {
|
||||||
|
@ -257,6 +269,8 @@ type (
|
||||||
VersionId string `json:"version_id,optional" copier:"VersionId"`
|
VersionId string `json:"version_id,optional" copier:"VersionId"`
|
||||||
WorkPath WorkPath `json:"work_path,optional" copier:"WorkPath"`
|
WorkPath WorkPath `json:"work_path,optional" copier:"WorkPath"`
|
||||||
WorkspaceId string `json:"workspace_id,optional" copier:"WorkspaceId"`
|
WorkspaceId string `json:"workspace_id,optional" copier:"WorkspaceId"`
|
||||||
|
/****************智算类型 ModelartsType parmas ********************/
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
CreateProcessorTaskResp {
|
CreateProcessorTaskResp {
|
||||||
TaskId string `json:"taskId,optional" copier:"Code"`
|
TaskId string `json:"taskId,optional" copier:"Code"`
|
||||||
|
@ -299,6 +313,8 @@ type (
|
||||||
DatasetId string `path:"datasetId""`
|
DatasetId string `path:"datasetId""`
|
||||||
Limit int32 `form:"limit,optional"`
|
Limit int32 `form:"limit,optional"`
|
||||||
Offset int32 `form:"offSet,optional"`
|
Offset int32 `form:"offSet,optional"`
|
||||||
|
/****************parmas from modelArtsType ********************/
|
||||||
|
modelArtsType string `form:"modelArtsType,optional"`
|
||||||
}
|
}
|
||||||
ListImportTasksResp {
|
ListImportTasksResp {
|
||||||
TotalCount uint32 `json:"totalCount,omitempty"`
|
TotalCount uint32 `json:"totalCount,omitempty"`
|
||||||
|
@ -536,7 +552,7 @@ type (
|
||||||
pageIndex int32 `json:"pageIndex,optional"`
|
pageIndex int32 `json:"pageIndex,optional"`
|
||||||
pageSize int32 `json:"pageSize,optional"`********************/
|
pageSize int32 `json:"pageSize,optional"`********************/
|
||||||
/****************智算类型 ModelartsType parmas ********************/
|
/****************智算类型 ModelartsType parmas ********************/
|
||||||
//ModelartsType string `json:"modelartsType,optional"`
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
ListTrainingJobsresp {
|
ListTrainingJobsresp {
|
||||||
Total int32 `json:"total"`
|
Total int32 `json:"total"`
|
||||||
|
@ -596,6 +612,8 @@ type (
|
||||||
DeleteTrainingJobReq {
|
DeleteTrainingJobReq {
|
||||||
Project_id string `path:"projectId"`
|
Project_id string `path:"projectId"`
|
||||||
Training_job_id string `path:"trainingJobId"`
|
Training_job_id string `path:"trainingJobId"`
|
||||||
|
/****************parmas from modelArtsType ********************/
|
||||||
|
modelArtsType string `form:"modelArtsType,optional"`
|
||||||
/****************parmas from octpus
|
/****************parmas from octpus
|
||||||
platform string `path:"platform"`
|
platform string `path:"platform"`
|
||||||
jobIds []*string `path:"jobIds"`
|
jobIds []*string `path:"jobIds"`
|
||||||
|
@ -633,6 +651,8 @@ type (
|
||||||
SubnetNetworkId string `json:"subnetNetworkId,optional" copier:"SubnetNetworkId"`
|
SubnetNetworkId string `json:"subnetNetworkId,optional" copier:"SubnetNetworkId"`
|
||||||
Config []ServiceConfig `json:"config,optional" copier:"Config"`
|
Config []ServiceConfig `json:"config,optional" copier:"Config"`
|
||||||
ProjectId string `path:"projectId"`
|
ProjectId string `path:"projectId"`
|
||||||
|
/****************智算类型 ModelartsType parmas ********************/
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
type CreateServiceResp {
|
type CreateServiceResp {
|
||||||
|
@ -679,6 +699,8 @@ type (
|
||||||
DeleteServiceReq {
|
DeleteServiceReq {
|
||||||
ProjectId string `path:"projectId"`
|
ProjectId string `path:"projectId"`
|
||||||
ServiceId string `path:"serviceId"`
|
ServiceId string `path:"serviceId"`
|
||||||
|
/****************智算类型 ModelartsType parmas ********************/
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -696,6 +718,8 @@ type (
|
||||||
ProjectId string `path:"projectId"`
|
ProjectId string `path:"projectId"`
|
||||||
Limit int32 `form:"limit,optional"`
|
Limit int32 `form:"limit,optional"`
|
||||||
Offset int32 `form:"offSet,optional"`
|
Offset int32 `form:"offSet,optional"`
|
||||||
|
/****************智算类型 ModelartsType parmas ********************/
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
type ListServicesResp {
|
type ListServicesResp {
|
||||||
|
@ -740,6 +764,8 @@ type (
|
||||||
ShowServiceReq {
|
ShowServiceReq {
|
||||||
ProjectId string `path:"projectId"`
|
ProjectId string `path:"projectId"`
|
||||||
ServiceId string `path:"serviceId"`
|
ServiceId string `path:"serviceId"`
|
||||||
|
/****************智算类型 ModelartsType parmas ********************/
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -818,6 +844,8 @@ type (
|
||||||
Limit int64 `form:"limit,optional"`
|
Limit int64 `form:"limit,optional"`
|
||||||
SortBy string `json:"sort_by,optional" copier:"SortBy"`
|
SortBy string `json:"sort_by,optional" copier:"SortBy"`
|
||||||
Order string `json:"order,optional" copier:"Order"`
|
Order string `json:"order,optional" copier:"Order"`
|
||||||
|
/****************智算类型 ModelartsType parmas ********************/
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
ListClustersResp {
|
ListClustersResp {
|
||||||
Resp200 ListClustersResp200 `json:"resp200,omitempty" copier:"Resp200"`
|
Resp200 ListClustersResp200 `json:"resp200,omitempty" copier:"Resp200"`
|
||||||
|
@ -985,7 +1013,7 @@ type SearchParams {
|
||||||
type (
|
type (
|
||||||
ListAlgorithmsReq {
|
ListAlgorithmsReq {
|
||||||
//ProjectId string `path:"projectId"`
|
//ProjectId string `path:"projectId"`
|
||||||
ProjectId string `form:"projectId,optional"`
|
ProjectId string `path:"projectId,optional"`
|
||||||
Offset int32 `form:"offset,optional"`
|
Offset int32 `form:"offset,optional"`
|
||||||
Limit int32 `form:"limit,optional"`
|
Limit int32 `form:"limit,optional"`
|
||||||
/****************parmas from modelArtsType ********************/
|
/****************parmas from modelArtsType ********************/
|
||||||
|
@ -1022,6 +1050,8 @@ type (
|
||||||
DeleteAlgorithmReq {
|
DeleteAlgorithmReq {
|
||||||
ProjectId string `path:"projectId" copier:"ProjectId"`
|
ProjectId string `path:"projectId" copier:"ProjectId"`
|
||||||
AlgorithmId string `path:"algorithmId" jcopier:"AlgorithmId"`
|
AlgorithmId string `path:"algorithmId" jcopier:"AlgorithmId"`
|
||||||
|
/****************parmas from modelArtsType ********************/
|
||||||
|
modelArtsType string `form:"modelArtsType,optional"`
|
||||||
}
|
}
|
||||||
DeleteAlgorithmResp {
|
DeleteAlgorithmResp {
|
||||||
Code int32 `json:"code,omitempty"`
|
Code int32 `json:"code,omitempty"`
|
||||||
|
@ -1037,6 +1067,8 @@ type (
|
||||||
ShowAlgorithmByUuidReq {
|
ShowAlgorithmByUuidReq {
|
||||||
ProjectId string `path:"projectId" copier:"ProjectId"`
|
ProjectId string `path:"projectId" copier:"ProjectId"`
|
||||||
AlgorithmId string `path:"algorithmId" copier:"AlgorithmId"`
|
AlgorithmId string `path:"algorithmId" copier:"AlgorithmId"`
|
||||||
|
/****************智算类型 ModelartsType parmas ********************/
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
ShowAlgorithmByUuidResp {
|
ShowAlgorithmByUuidResp {
|
||||||
Metadata *MetadataAlRq `json:"metadata,omitempty" copier:"Metadata"`
|
Metadata *MetadataAlRq `json:"metadata,omitempty" copier:"Metadata"`
|
||||||
|
@ -1078,6 +1110,8 @@ type (
|
||||||
ResourceRequirementsCARq []*ResourceRequirements `json:"resourceRequirements,optional"`
|
ResourceRequirementsCARq []*ResourceRequirements `json:"resourceRequirements,optional"`
|
||||||
AdvancedConfigCARq *AdvancedConfigAl `json:"advancedConfig,optional"`
|
AdvancedConfigCARq *AdvancedConfigAl `json:"advancedConfig,optional"`
|
||||||
ProjectIdCARq string `path:"projectId"`
|
ProjectIdCARq string `path:"projectId"`
|
||||||
|
/****************parmas from modelArtsType ********************/
|
||||||
|
modelArtsType string `form:"modelArtsType,optional"`
|
||||||
}
|
}
|
||||||
CreateAlgorithmResp {
|
CreateAlgorithmResp {
|
||||||
MetadataCARp *MetadataAlRp `json:"metadata,omitempty"`
|
MetadataCARp *MetadataAlRp `json:"metadata,omitempty"`
|
||||||
|
@ -1097,6 +1131,8 @@ type (
|
||||||
type DeleteDataSetReq {
|
type DeleteDataSetReq {
|
||||||
DatasetId string `json:"datasetId"`
|
DatasetId string `json:"datasetId"`
|
||||||
ProjectId string `json:"projectId"`
|
ProjectId string `json:"projectId"`
|
||||||
|
/****************parmas from modelArtsType ********************/
|
||||||
|
modelArtsType string `form:"modelArtsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeleteDataSetResp {
|
type DeleteDataSetResp {
|
||||||
|
@ -1109,6 +1145,8 @@ type (
|
||||||
ListNotebookReq {
|
ListNotebookReq {
|
||||||
ProjectId string `json:"project_id" copier:"ProjectId"`
|
ProjectId string `json:"project_id" copier:"ProjectId"`
|
||||||
Param ListNotebookParam `json:"param,optional" copier:"Param"`
|
Param ListNotebookParam `json:"param,optional" copier:"Param"`
|
||||||
|
/****************智算类型 ModelartsType parmas ********************/
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
ListNotebookResp {
|
ListNotebookResp {
|
||||||
Current int32 `json:"current,omitempty" copier:"Current"`
|
Current int32 `json:"current,omitempty" copier:"Current"`
|
||||||
|
@ -1135,6 +1173,8 @@ type (
|
||||||
CreateNotebookReq {
|
CreateNotebookReq {
|
||||||
ProjectId string `json:"project_id" copier:"ProjectId"`
|
ProjectId string `json:"project_id" copier:"ProjectId"`
|
||||||
Param CreateNotebookParam `json:"param" copier:"Param"`
|
Param CreateNotebookParam `json:"param" copier:"Param"`
|
||||||
|
/****************智算类型 ModelartsType parmas ********************/
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
CreateNotebookResp {
|
CreateNotebookResp {
|
||||||
NotebookResp *NotebookResp `json:"notebookResp,omitempty" copier:"NotebookResp"`
|
NotebookResp *NotebookResp `json:"notebookResp,omitempty" copier:"NotebookResp"`
|
||||||
|
@ -1161,6 +1201,8 @@ type (
|
||||||
Id string `json:"id" copier:"Id"`
|
Id string `json:"id" copier:"Id"`
|
||||||
ProjectId string `json:"project_id" copier:"ProjectId"`
|
ProjectId string `json:"project_id" copier:"ProjectId"`
|
||||||
Param StartNotebookParam `json:"param" copier:"Param"`
|
Param StartNotebookParam `json:"param" copier:"Param"`
|
||||||
|
/****************智算类型 ModelartsType parmas ********************/
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
StartNotebookResp {
|
StartNotebookResp {
|
||||||
NotebookResp NotebookResp `json:"notebookResp" copier:"NotebookResp"`
|
NotebookResp NotebookResp `json:"notebookResp" copier:"NotebookResp"`
|
||||||
|
@ -1176,6 +1218,8 @@ type (
|
||||||
StopNotebookReq {
|
StopNotebookReq {
|
||||||
Id string `json:"id" copier:"Id"`
|
Id string `json:"id" copier:"Id"`
|
||||||
ProjectId string `json:"project_id" copier:"ProjectId"`
|
ProjectId string `json:"project_id" copier:"ProjectId"`
|
||||||
|
/****************智算类型 ModelartsType parmas ********************/
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
StopNotebookResp {
|
StopNotebookResp {
|
||||||
NotebookResp NotebookResp `json:"notebookResp" copier:"NotebookResp"`
|
NotebookResp NotebookResp `json:"notebookResp" copier:"NotebookResp"`
|
||||||
|
@ -1187,6 +1231,8 @@ type (
|
||||||
GetNotebookStorageReq {
|
GetNotebookStorageReq {
|
||||||
InstanceId string `json:"instance_id" copier:"InstanceId"`
|
InstanceId string `json:"instance_id" copier:"InstanceId"`
|
||||||
ProjectId string `json:"project_id" copier:"ProjectId"`
|
ProjectId string `json:"project_id" copier:"ProjectId"`
|
||||||
|
/****************智算类型 ModelartsType parmas ********************/
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
GetNotebookStorageResp {
|
GetNotebookStorageResp {
|
||||||
Current int32 `json:"current" copier:"Current"`
|
Current int32 `json:"current" copier:"Current"`
|
||||||
|
@ -1199,6 +1245,8 @@ type (
|
||||||
InstanceId string `json:"instance_id" copier:"InstanceId"`
|
InstanceId string `json:"instance_id" copier:"InstanceId"`
|
||||||
ProjectId string `json:"project_id" copier:"ProjectId"`
|
ProjectId string `json:"project_id" copier:"ProjectId"`
|
||||||
Param MountNotebookStorageParam `json:"param" copier:"Param"`
|
Param MountNotebookStorageParam `json:"param" copier:"Param"`
|
||||||
|
/****************智算类型 ModelartsType parmas ********************/
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
MountNotebookStorageResp {
|
MountNotebookStorageResp {
|
||||||
Category string `json:"category" copier:"Category"`
|
Category string `json:"category" copier:"Category"`
|
||||||
|
@ -1384,6 +1432,8 @@ type (
|
||||||
GetVisualizationJobReq {
|
GetVisualizationJobReq {
|
||||||
Project_id string `json:"project_id"`
|
Project_id string `json:"project_id"`
|
||||||
Param GetVisualizationJobParam `json:"param"`
|
Param GetVisualizationJobParam `json:"param"`
|
||||||
|
/****************智算类型 ModelartsType parmas ********************/
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
GetVisualizationJobResp {
|
GetVisualizationJobResp {
|
||||||
Is_success bool `json:"is_success"`
|
Is_success bool `json:"is_success"`
|
||||||
|
@ -1417,6 +1467,8 @@ type (
|
||||||
CreateVisualizationJobReq {
|
CreateVisualizationJobReq {
|
||||||
Project_id string `json:"project_id"`
|
Project_id string `json:"project_id"`
|
||||||
Param CreateVisualizationJobParam `json:"param"`
|
Param CreateVisualizationJobParam `json:"param"`
|
||||||
|
/****************智算类型 ModelartsType parmas ********************/
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
CreateVisualizationJobResp {
|
CreateVisualizationJobResp {
|
||||||
Error_message string `json:"error_message"`
|
Error_message string `json:"error_message"`
|
||||||
|
@ -1456,6 +1508,8 @@ type (
|
||||||
AlgorithmsCtRq AlgorithmsCtRq `json:"algorithm,optional"`
|
AlgorithmsCtRq AlgorithmsCtRq `json:"algorithm,optional"`
|
||||||
SpecsCtRq SpecsCtRq `json:"spec,optional"`
|
SpecsCtRq SpecsCtRq `json:"spec,optional"`
|
||||||
ProjectId string `path:"projectId""`
|
ProjectId string `path:"projectId""`
|
||||||
|
/****************智算类型 ModelartsType parmas ********************/
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
/****************parmas from octpus
|
/****************parmas from octpus
|
||||||
platform string `json:"platform,optional"`
|
platform string `json:"platform,optional"`
|
||||||
params CreateTrainJobParam `json:"params,optional"`
|
params CreateTrainJobParam `json:"params,optional"`
|
||||||
|
|
|
@ -102,8 +102,8 @@ service pcm {
|
||||||
post /ai/CreateAlgorithm/:projectId (CreateAlgorithmReq) returns (CreateAlgorithmResp)
|
post /ai/CreateAlgorithm/:projectId (CreateAlgorithmReq) returns (CreateAlgorithmResp)
|
||||||
// ListAlgorithms 查询创建算法列表
|
// ListAlgorithms 查询创建算法列表
|
||||||
@handler ListAlgorithms
|
@handler ListAlgorithms
|
||||||
get /ai/ListAlgorithms (ListAlgorithmsReq) returns (ListAlgorithmsResp)
|
//get /ai/ListAlgorithms (ListAlgorithmsReq) returns (ListAlgorithmsResp)
|
||||||
//get /ai/ListAlgorithms/:projectId (ListAlgorithmsReq) returns (ListAlgorithmsResp)
|
get /ai/ListAlgorithms/:projectId (ListAlgorithmsReq) returns (ListAlgorithmsResp)
|
||||||
// DeleteAlgorithm 删除算法
|
// DeleteAlgorithm 删除算法
|
||||||
@handler DeleteAlgorithm
|
@handler DeleteAlgorithm
|
||||||
delete /ai/DeleteAlgorithm/:projectId/:algorithmId (DeleteAlgorithmReq) returns (DeleteAlgorithmResp)
|
delete /ai/DeleteAlgorithm/:projectId/:algorithmId (DeleteAlgorithmReq) returns (DeleteAlgorithmResp)
|
||||||
|
|
|
@ -141,7 +141,7 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Method: http.MethodGet,
|
Method: http.MethodGet,
|
||||||
Path: "/ai/ListAlgorithms",
|
Path: "/ai/ListAlgorithms/:projectId",
|
||||||
Handler: ai.ListAlgorithmsHandler(serverCtx),
|
Handler: ai.ListAlgorithmsHandler(serverCtx),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -378,6 +378,7 @@ type DataSetReq struct {
|
||||||
ProjectId string `path:"projectId"`
|
ProjectId string `path:"projectId"`
|
||||||
Limit int32 `form:"limit,optional"`
|
Limit int32 `form:"limit,optional"`
|
||||||
OffSet int32 `form:"offSet,optional"`
|
OffSet int32 `form:"offSet,optional"`
|
||||||
|
ModelArtsType string `form:"modelArtsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type DataSetResp struct {
|
type DataSetResp struct {
|
||||||
|
@ -396,6 +397,7 @@ type CreateDataSetReq struct {
|
||||||
WorkPathType int32 `json:"workPathType" copier:"WorkPathType"`
|
WorkPathType int32 `json:"workPathType" copier:"WorkPathType"`
|
||||||
ProjectId string `path:"projectId" copier:"ProjectId"`
|
ProjectId string `path:"projectId" copier:"ProjectId"`
|
||||||
DataSources []DataSources `json:"dataSources" copier:"DataSources"`
|
DataSources []DataSources `json:"dataSources" copier:"DataSources"`
|
||||||
|
ModelArtsType string `form:"modelArtsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CreateDataSetResp struct {
|
type CreateDataSetResp struct {
|
||||||
|
@ -409,6 +411,7 @@ type ImportTaskDataReq struct {
|
||||||
ProjectId string `path:"projectId"`
|
ProjectId string `path:"projectId"`
|
||||||
DatasetId string `path:"datasetId"`
|
DatasetId string `path:"datasetId"`
|
||||||
ImportPath string `json:"importPath"`
|
ImportPath string `json:"importPath"`
|
||||||
|
ModelArtsType string `form:"modelArtsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ImportTaskDataResp struct {
|
type ImportTaskDataResp struct {
|
||||||
|
@ -432,6 +435,7 @@ type CreateExportTaskReq struct {
|
||||||
VersionFormat string `json:"versionFormat,optional" copier:"VersionFormat"`
|
VersionFormat string `json:"versionFormat,optional" copier:"VersionFormat"`
|
||||||
VersionId string `json:"versionId,optional" copier:"VersionId"`
|
VersionId string `json:"versionId,optional" copier:"VersionId"`
|
||||||
WithColumnHeader bool `json:"withColumnHeader,optional" copier:"WithColumnHeader"`
|
WithColumnHeader bool `json:"withColumnHeader,optional" copier:"WithColumnHeader"`
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ExportTaskDataResp struct {
|
type ExportTaskDataResp struct {
|
||||||
|
@ -506,6 +510,7 @@ type GetExportTasksOfDatasetReq struct {
|
||||||
ExportType int32 `json:"export_type,optional" copier:"ExportType"`
|
ExportType int32 `json:"export_type,optional" copier:"ExportType"`
|
||||||
Limit int32 `form:"limit,optional"`
|
Limit int32 `form:"limit,optional"`
|
||||||
Offset int32 `form:"offset,optional"`
|
Offset int32 `form:"offset,optional"`
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetExportTasksOfDatasetResp struct {
|
type GetExportTasksOfDatasetResp struct {
|
||||||
|
@ -552,6 +557,7 @@ type GetExportTaskStatusOfDatasetReq struct {
|
||||||
ProjectId string `path:"projectId"`
|
ProjectId string `path:"projectId"`
|
||||||
ResourceId string `path:"resourceId"`
|
ResourceId string `path:"resourceId"`
|
||||||
TaskId string `path:"taskId"`
|
TaskId string `path:"taskId"`
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetExportTaskStatusOfDatasetResp struct {
|
type GetExportTaskStatusOfDatasetResp struct {
|
||||||
|
@ -586,6 +592,7 @@ type CreateProcessorTaskReq struct {
|
||||||
VersionId string `json:"version_id,optional" copier:"VersionId"`
|
VersionId string `json:"version_id,optional" copier:"VersionId"`
|
||||||
WorkPath WorkPath `json:"work_path,optional" copier:"WorkPath"`
|
WorkPath WorkPath `json:"work_path,optional" copier:"WorkPath"`
|
||||||
WorkspaceId string `json:"workspace_id,optional" copier:"WorkspaceId"`
|
WorkspaceId string `json:"workspace_id,optional" copier:"WorkspaceId"`
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CreateProcessorTaskResp struct {
|
type CreateProcessorTaskResp struct {
|
||||||
|
@ -629,6 +636,7 @@ type ListImportTasksReq struct {
|
||||||
DatasetId string `path:"datasetId""`
|
DatasetId string `path:"datasetId""`
|
||||||
Limit int32 `form:"limit,optional"`
|
Limit int32 `form:"limit,optional"`
|
||||||
Offset int32 `form:"offSet,optional"`
|
Offset int32 `form:"offSet,optional"`
|
||||||
|
ModelArtsType string `form:"modelArtsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListImportTasksResp struct {
|
type ListImportTasksResp struct {
|
||||||
|
@ -889,6 +897,7 @@ type ListTrainingJobsreq struct {
|
||||||
ProjectId string `path:"projectId"`
|
ProjectId string `path:"projectId"`
|
||||||
Limit int32 `form:"limit,optional"`
|
Limit int32 `form:"limit,optional"`
|
||||||
Offset int32 `form:"offSet,optional"`
|
Offset int32 `form:"offSet,optional"`
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListTrainingJobsresp struct {
|
type ListTrainingJobsresp struct {
|
||||||
|
@ -910,6 +919,7 @@ type ListTrainingJobsresp struct {
|
||||||
type DeleteTrainingJobReq struct {
|
type DeleteTrainingJobReq struct {
|
||||||
Project_id string `path:"projectId"`
|
Project_id string `path:"projectId"`
|
||||||
Training_job_id string `path:"trainingJobId"`
|
Training_job_id string `path:"trainingJobId"`
|
||||||
|
ModelArtsType string `form:"modelArtsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeleteTrainingJobResp struct {
|
type DeleteTrainingJobResp struct {
|
||||||
|
@ -930,6 +940,7 @@ type CreateServiceReq struct {
|
||||||
SubnetNetworkId string `json:"subnetNetworkId,optional" copier:"SubnetNetworkId"`
|
SubnetNetworkId string `json:"subnetNetworkId,optional" copier:"SubnetNetworkId"`
|
||||||
Config []ServiceConfig `json:"config,optional" copier:"Config"`
|
Config []ServiceConfig `json:"config,optional" copier:"Config"`
|
||||||
ProjectId string `path:"projectId"`
|
ProjectId string `path:"projectId"`
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CreateServiceResp struct {
|
type CreateServiceResp struct {
|
||||||
|
@ -972,6 +983,7 @@ type CustomSpec struct {
|
||||||
type DeleteServiceReq struct {
|
type DeleteServiceReq struct {
|
||||||
ProjectId string `path:"projectId"`
|
ProjectId string `path:"projectId"`
|
||||||
ServiceId string `path:"serviceId"`
|
ServiceId string `path:"serviceId"`
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeleteServiceResp struct {
|
type DeleteServiceResp struct {
|
||||||
|
@ -984,6 +996,7 @@ type ListServicesReq struct {
|
||||||
ProjectId string `path:"projectId"`
|
ProjectId string `path:"projectId"`
|
||||||
Limit int32 `form:"limit,optional"`
|
Limit int32 `form:"limit,optional"`
|
||||||
Offset int32 `form:"offSet,optional"`
|
Offset int32 `form:"offSet,optional"`
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListServicesResp struct {
|
type ListServicesResp struct {
|
||||||
|
@ -1025,6 +1038,7 @@ type ListServices struct {
|
||||||
type ShowServiceReq struct {
|
type ShowServiceReq struct {
|
||||||
ProjectId string `path:"projectId"`
|
ProjectId string `path:"projectId"`
|
||||||
ServiceId string `path:"serviceId"`
|
ServiceId string `path:"serviceId"`
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ShowServiceResp struct {
|
type ShowServiceResp struct {
|
||||||
|
@ -1098,6 +1112,7 @@ type ListClustersReq struct {
|
||||||
Limit int64 `form:"limit,optional"`
|
Limit int64 `form:"limit,optional"`
|
||||||
SortBy string `json:"sort_by,optional" copier:"SortBy"`
|
SortBy string `json:"sort_by,optional" copier:"SortBy"`
|
||||||
Order string `json:"order,optional" copier:"Order"`
|
Order string `json:"order,optional" copier:"Order"`
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListClustersResp struct {
|
type ListClustersResp struct {
|
||||||
|
@ -1264,7 +1279,7 @@ type SearchParams struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListAlgorithmsReq struct {
|
type ListAlgorithmsReq struct {
|
||||||
ProjectId string `form:"projectId,optional"`
|
ProjectId string `path:"projectId,optional"`
|
||||||
Offset int32 `form:"offset,optional"`
|
Offset int32 `form:"offset,optional"`
|
||||||
Limit int32 `form:"limit,optional"`
|
Limit int32 `form:"limit,optional"`
|
||||||
ModelArtsType string `form:"modelArtsType,optional"`
|
ModelArtsType string `form:"modelArtsType,optional"`
|
||||||
|
@ -1285,6 +1300,7 @@ type ListAlgorithmsResp struct {
|
||||||
type DeleteAlgorithmReq struct {
|
type DeleteAlgorithmReq struct {
|
||||||
ProjectId string `path:"projectId" copier:"ProjectId"`
|
ProjectId string `path:"projectId" copier:"ProjectId"`
|
||||||
AlgorithmId string `path:"algorithmId" jcopier:"AlgorithmId"`
|
AlgorithmId string `path:"algorithmId" jcopier:"AlgorithmId"`
|
||||||
|
ModelArtsType string `form:"modelArtsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeleteAlgorithmResp struct {
|
type DeleteAlgorithmResp struct {
|
||||||
|
@ -1296,6 +1312,7 @@ type DeleteAlgorithmResp struct {
|
||||||
type ShowAlgorithmByUuidReq struct {
|
type ShowAlgorithmByUuidReq struct {
|
||||||
ProjectId string `path:"projectId" copier:"ProjectId"`
|
ProjectId string `path:"projectId" copier:"ProjectId"`
|
||||||
AlgorithmId string `path:"algorithmId" copier:"AlgorithmId"`
|
AlgorithmId string `path:"algorithmId" copier:"AlgorithmId"`
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ShowAlgorithmByUuidResp struct {
|
type ShowAlgorithmByUuidResp struct {
|
||||||
|
@ -1336,6 +1353,7 @@ type CreateAlgorithmReq struct {
|
||||||
ResourceRequirementsCARq []*ResourceRequirements `json:"resourceRequirements,optional"`
|
ResourceRequirementsCARq []*ResourceRequirements `json:"resourceRequirements,optional"`
|
||||||
AdvancedConfigCARq *AdvancedConfigAl `json:"advancedConfig,optional"`
|
AdvancedConfigCARq *AdvancedConfigAl `json:"advancedConfig,optional"`
|
||||||
ProjectIdCARq string `path:"projectId"`
|
ProjectIdCARq string `path:"projectId"`
|
||||||
|
ModelArtsType string `form:"modelArtsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CreateAlgorithmResp struct {
|
type CreateAlgorithmResp struct {
|
||||||
|
@ -1352,6 +1370,7 @@ type CreateAlgorithmResp struct {
|
||||||
type DeleteDataSetReq struct {
|
type DeleteDataSetReq struct {
|
||||||
DatasetId string `json:"datasetId"`
|
DatasetId string `json:"datasetId"`
|
||||||
ProjectId string `json:"projectId"`
|
ProjectId string `json:"projectId"`
|
||||||
|
ModelArtsType string `form:"modelArtsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeleteDataSetResp struct {
|
type DeleteDataSetResp struct {
|
||||||
|
@ -1360,6 +1379,7 @@ type DeleteDataSetResp struct {
|
||||||
type ListNotebookReq struct {
|
type ListNotebookReq struct {
|
||||||
ProjectId string `json:"project_id" copier:"ProjectId"`
|
ProjectId string `json:"project_id" copier:"ProjectId"`
|
||||||
Param ListNotebookParam `json:"param,optional" copier:"Param"`
|
Param ListNotebookParam `json:"param,optional" copier:"Param"`
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListNotebookResp struct {
|
type ListNotebookResp struct {
|
||||||
|
@ -1389,6 +1409,7 @@ type ListNotebookParam struct {
|
||||||
type CreateNotebookReq struct {
|
type CreateNotebookReq struct {
|
||||||
ProjectId string `json:"project_id" copier:"ProjectId"`
|
ProjectId string `json:"project_id" copier:"ProjectId"`
|
||||||
Param CreateNotebookParam `json:"param" copier:"Param"`
|
Param CreateNotebookParam `json:"param" copier:"Param"`
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CreateNotebookResp struct {
|
type CreateNotebookResp struct {
|
||||||
|
@ -1417,6 +1438,7 @@ type StartNotebookReq struct {
|
||||||
Id string `json:"id" copier:"Id"`
|
Id string `json:"id" copier:"Id"`
|
||||||
ProjectId string `json:"project_id" copier:"ProjectId"`
|
ProjectId string `json:"project_id" copier:"ProjectId"`
|
||||||
Param StartNotebookParam `json:"param" copier:"Param"`
|
Param StartNotebookParam `json:"param" copier:"Param"`
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type StartNotebookResp struct {
|
type StartNotebookResp struct {
|
||||||
|
@ -1434,6 +1456,7 @@ type StartNotebookParam struct {
|
||||||
type StopNotebookReq struct {
|
type StopNotebookReq struct {
|
||||||
Id string `json:"id" copier:"Id"`
|
Id string `json:"id" copier:"Id"`
|
||||||
ProjectId string `json:"project_id" copier:"ProjectId"`
|
ProjectId string `json:"project_id" copier:"ProjectId"`
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type StopNotebookResp struct {
|
type StopNotebookResp struct {
|
||||||
|
@ -1446,6 +1469,7 @@ type StopNotebookResp struct {
|
||||||
type GetNotebookStorageReq struct {
|
type GetNotebookStorageReq struct {
|
||||||
InstanceId string `json:"instance_id" copier:"InstanceId"`
|
InstanceId string `json:"instance_id" copier:"InstanceId"`
|
||||||
ProjectId string `json:"project_id" copier:"ProjectId"`
|
ProjectId string `json:"project_id" copier:"ProjectId"`
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetNotebookStorageResp struct {
|
type GetNotebookStorageResp struct {
|
||||||
|
@ -1460,6 +1484,7 @@ type MountNotebookStorageReq struct {
|
||||||
InstanceId string `json:"instance_id" copier:"InstanceId"`
|
InstanceId string `json:"instance_id" copier:"InstanceId"`
|
||||||
ProjectId string `json:"project_id" copier:"ProjectId"`
|
ProjectId string `json:"project_id" copier:"ProjectId"`
|
||||||
Param MountNotebookStorageParam `json:"param" copier:"Param"`
|
Param MountNotebookStorageParam `json:"param" copier:"Param"`
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type MountNotebookStorageResp struct {
|
type MountNotebookStorageResp struct {
|
||||||
|
@ -1640,6 +1665,7 @@ type LeaseReq struct {
|
||||||
type GetVisualizationJobReq struct {
|
type GetVisualizationJobReq struct {
|
||||||
Project_id string `json:"project_id"`
|
Project_id string `json:"project_id"`
|
||||||
Param GetVisualizationJobParam `json:"param"`
|
Param GetVisualizationJobParam `json:"param"`
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetVisualizationJobResp struct {
|
type GetVisualizationJobResp struct {
|
||||||
|
@ -1677,6 +1703,7 @@ type GetVisualizationJobParam struct {
|
||||||
type CreateVisualizationJobReq struct {
|
type CreateVisualizationJobReq struct {
|
||||||
Project_id string `json:"project_id"`
|
Project_id string `json:"project_id"`
|
||||||
Param CreateVisualizationJobParam `json:"param"`
|
Param CreateVisualizationJobParam `json:"param"`
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CreateVisualizationJobResp struct {
|
type CreateVisualizationJobResp struct {
|
||||||
|
@ -1714,6 +1741,7 @@ type CreateTrainingJobReq struct {
|
||||||
AlgorithmsCtRq AlgorithmsCtRq `json:"algorithm,optional"`
|
AlgorithmsCtRq AlgorithmsCtRq `json:"algorithm,optional"`
|
||||||
SpecsCtRq SpecsCtRq `json:"spec,optional"`
|
SpecsCtRq SpecsCtRq `json:"spec,optional"`
|
||||||
ProjectId string `path:"projectId""`
|
ProjectId string `path:"projectId""`
|
||||||
|
ModelartsType string `json:"modelartsType,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CreateTrainingJobResp struct {
|
type CreateTrainingJobResp struct {
|
||||||
|
|
Loading…
Reference in New Issue