diff --git a/adaptor/PCM-AI/PCM-MODELARTS/rpc/internal/logic/listalgorithmslogic.go b/adaptor/PCM-AI/PCM-MODELARTS/rpc/internal/logic/listalgorithmslogic.go index 1e56878c..9efc894e 100644 --- a/adaptor/PCM-AI/PCM-MODELARTS/rpc/internal/logic/listalgorithmslogic.go +++ b/adaptor/PCM-AI/PCM-MODELARTS/rpc/internal/logic/listalgorithmslogic.go @@ -42,7 +42,6 @@ func (l *ListAlgorithmsLogic) ListAlgorithms(in *modelarts.ListAlgorithmsReq) (* limit = "10" } modelArtsType := in.ModelArtsType - //projectId := in.ProjectId //根据智算类型判断走华为智算还是南京智算 if modelArtsType == l.svcCtx.Config.HaweiModelArtsType { modelArtsUrl := l.svcCtx.Config.ModelArtsUrl @@ -67,7 +66,6 @@ func (l *ListAlgorithmsLogic) ListAlgorithms(in *modelarts.ListAlgorithmsReq) (* SK := l.svcCtx.Config.SK NanjingModelArtsUrl := l.svcCtx.Config.NanjingModelArtsUrl XProjectId := l.svcCtx.Config.XProjectId - //XDomainId := l.svcCtx.Config.XDomainId s := core.Signer{ Key: AK, 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("X-Project-Id", XProjectId) - //r.Header.Add("X-Domain-Id", XDomainId) r.Header.Add("x-stage", "RELEASE") s.Sign(r) client := http.DefaultClient diff --git a/adaptor/PCM-CORE/api/desc/ai/pcm-ai.api b/adaptor/PCM-CORE/api/desc/ai/pcm-ai.api index a75ea521..72648c58 100644 --- a/adaptor/PCM-CORE/api/desc/ai/pcm-ai.api +++ b/adaptor/PCM-CORE/api/desc/ai/pcm-ai.api @@ -31,6 +31,8 @@ type ( ProjectId string `path:"projectId"` Limit int32 `form:"limit,optional"` OffSet int32 `form:"offSet,optional"` + /****************parmas from modelArtsType ********************/ + modelArtsType string `form:"modelArtsType,optional"` } DataSetResp { TotalNumber uint32 `json:"total_number" copier:"TotalNumber"` @@ -53,6 +55,8 @@ type CreateDataSetReq { WorkPathType int32 `json:"workPathType" copier:"WorkPathType"` ProjectId string `path:"projectId" copier:"ProjectId"` DataSources []DataSources `json:"dataSources" copier:"DataSources"` +/****************parmas from modelArtsType ********************/ + modelArtsType string `form:"modelArtsType,optional"` } type CreateDataSetResp { @@ -69,6 +73,8 @@ type ( ProjectId string `path:"projectId"` DatasetId string `path:"datasetId"` ImportPath string `json:"importPath"` + /****************parmas from modelArtsType ********************/ + modelArtsType string `form:"modelArtsType,optional"` } ImportTaskDataResp{ TaskId string `json:"taskId,omitempty"` @@ -96,6 +102,8 @@ type ( VersionFormat string `json:"versionFormat,optional" copier:"VersionFormat"` VersionId string `json:"versionId,optional" copier:"VersionId"` WithColumnHeader bool `json:"withColumnHeader,optional" copier:"WithColumnHeader"` + /****************智算类型 ModelartsType parmas ********************/ + ModelartsType string `json:"modelartsType,optional"` } ) type ExportTaskDataResp { @@ -171,6 +179,8 @@ type ( ExportType int32 `json:"export_type,optional" copier:"ExportType"` Limit int32 `form:"limit,optional"` Offset int32 `form:"offset,optional"` + /****************智算类型 ModelartsType parmas ********************/ + ModelartsType string `json:"modelartsType,optional"` } ) type GetExportTasksOfDatasetResp { @@ -219,6 +229,8 @@ type ( ProjectId string `path:"projectId"` ResourceId string `path:"resourceId"` TaskId string `path:"taskId"` + /****************智算类型 ModelartsType parmas ********************/ + ModelartsType string `json:"modelartsType,optional"` } ) type GetExportTaskStatusOfDatasetResp { @@ -257,6 +269,8 @@ type ( VersionId string `json:"version_id,optional" copier:"VersionId"` WorkPath WorkPath `json:"work_path,optional" copier:"WorkPath"` WorkspaceId string `json:"workspace_id,optional" copier:"WorkspaceId"` + /****************智算类型 ModelartsType parmas ********************/ + ModelartsType string `json:"modelartsType,optional"` } CreateProcessorTaskResp { TaskId string `json:"taskId,optional" copier:"Code"` @@ -299,6 +313,8 @@ type ( DatasetId string `path:"datasetId""` Limit int32 `form:"limit,optional"` Offset int32 `form:"offSet,optional"` + /****************parmas from modelArtsType ********************/ + modelArtsType string `form:"modelArtsType,optional"` } ListImportTasksResp { TotalCount uint32 `json:"totalCount,omitempty"` @@ -536,7 +552,7 @@ type ( pageIndex int32 `json:"pageIndex,optional"` pageSize int32 `json:"pageSize,optional"`********************/ /****************智算类型 ModelartsType parmas ********************/ - //ModelartsType string `json:"modelartsType,optional"` + ModelartsType string `json:"modelartsType,optional"` } ListTrainingJobsresp { Total int32 `json:"total"` @@ -596,6 +612,8 @@ type ( DeleteTrainingJobReq { Project_id string `path:"projectId"` Training_job_id string `path:"trainingJobId"` + /****************parmas from modelArtsType ********************/ + modelArtsType string `form:"modelArtsType,optional"` /****************parmas from octpus platform string `path:"platform"` jobIds []*string `path:"jobIds"` @@ -633,6 +651,8 @@ type ( SubnetNetworkId string `json:"subnetNetworkId,optional" copier:"SubnetNetworkId"` Config []ServiceConfig `json:"config,optional" copier:"Config"` ProjectId string `path:"projectId"` + /****************智算类型 ModelartsType parmas ********************/ + ModelartsType string `json:"modelartsType,optional"` } ) type CreateServiceResp { @@ -679,6 +699,8 @@ type ( DeleteServiceReq { ProjectId string `path:"projectId"` ServiceId string `path:"serviceId"` + /****************智算类型 ModelartsType parmas ********************/ + ModelartsType string `json:"modelartsType,optional"` } ) @@ -696,6 +718,8 @@ type ( ProjectId string `path:"projectId"` Limit int32 `form:"limit,optional"` Offset int32 `form:"offSet,optional"` + /****************智算类型 ModelartsType parmas ********************/ + ModelartsType string `json:"modelartsType,optional"` } ) type ListServicesResp { @@ -740,6 +764,8 @@ type ( ShowServiceReq { ProjectId string `path:"projectId"` ServiceId string `path:"serviceId"` + /****************智算类型 ModelartsType parmas ********************/ + ModelartsType string `json:"modelartsType,optional"` } ) @@ -818,6 +844,8 @@ type ( Limit int64 `form:"limit,optional"` SortBy string `json:"sort_by,optional" copier:"SortBy"` Order string `json:"order,optional" copier:"Order"` + /****************智算类型 ModelartsType parmas ********************/ + ModelartsType string `json:"modelartsType,optional"` } ListClustersResp { Resp200 ListClustersResp200 `json:"resp200,omitempty" copier:"Resp200"` @@ -985,7 +1013,7 @@ type SearchParams { type ( ListAlgorithmsReq { //ProjectId string `path:"projectId"` - ProjectId string `form:"projectId,optional"` + ProjectId string `path:"projectId,optional"` Offset int32 `form:"offset,optional"` Limit int32 `form:"limit,optional"` /****************parmas from modelArtsType ********************/ @@ -1022,6 +1050,8 @@ type ( DeleteAlgorithmReq { ProjectId string `path:"projectId" copier:"ProjectId"` AlgorithmId string `path:"algorithmId" jcopier:"AlgorithmId"` + /****************parmas from modelArtsType ********************/ + modelArtsType string `form:"modelArtsType,optional"` } DeleteAlgorithmResp { Code int32 `json:"code,omitempty"` @@ -1037,6 +1067,8 @@ type ( ShowAlgorithmByUuidReq { ProjectId string `path:"projectId" copier:"ProjectId"` AlgorithmId string `path:"algorithmId" copier:"AlgorithmId"` + /****************智算类型 ModelartsType parmas ********************/ + ModelartsType string `json:"modelartsType,optional"` } ShowAlgorithmByUuidResp { Metadata *MetadataAlRq `json:"metadata,omitempty" copier:"Metadata"` @@ -1078,6 +1110,8 @@ type ( ResourceRequirementsCARq []*ResourceRequirements `json:"resourceRequirements,optional"` AdvancedConfigCARq *AdvancedConfigAl `json:"advancedConfig,optional"` ProjectIdCARq string `path:"projectId"` + /****************parmas from modelArtsType ********************/ + modelArtsType string `form:"modelArtsType,optional"` } CreateAlgorithmResp { MetadataCARp *MetadataAlRp `json:"metadata,omitempty"` @@ -1097,6 +1131,8 @@ type ( type DeleteDataSetReq { DatasetId string `json:"datasetId"` ProjectId string `json:"projectId"` +/****************parmas from modelArtsType ********************/ + modelArtsType string `form:"modelArtsType,optional"` } type DeleteDataSetResp { @@ -1109,6 +1145,8 @@ type ( ListNotebookReq { ProjectId string `json:"project_id" copier:"ProjectId"` Param ListNotebookParam `json:"param,optional" copier:"Param"` + /****************智算类型 ModelartsType parmas ********************/ + ModelartsType string `json:"modelartsType,optional"` } ListNotebookResp { Current int32 `json:"current,omitempty" copier:"Current"` @@ -1135,6 +1173,8 @@ type ( CreateNotebookReq { ProjectId string `json:"project_id" copier:"ProjectId"` Param CreateNotebookParam `json:"param" copier:"Param"` + /****************智算类型 ModelartsType parmas ********************/ + ModelartsType string `json:"modelartsType,optional"` } CreateNotebookResp { NotebookResp *NotebookResp `json:"notebookResp,omitempty" copier:"NotebookResp"` @@ -1161,6 +1201,8 @@ type ( Id string `json:"id" copier:"Id"` ProjectId string `json:"project_id" copier:"ProjectId"` Param StartNotebookParam `json:"param" copier:"Param"` + /****************智算类型 ModelartsType parmas ********************/ + ModelartsType string `json:"modelartsType,optional"` } StartNotebookResp { NotebookResp NotebookResp `json:"notebookResp" copier:"NotebookResp"` @@ -1176,6 +1218,8 @@ type ( StopNotebookReq { Id string `json:"id" copier:"Id"` ProjectId string `json:"project_id" copier:"ProjectId"` + /****************智算类型 ModelartsType parmas ********************/ + ModelartsType string `json:"modelartsType,optional"` } StopNotebookResp { NotebookResp NotebookResp `json:"notebookResp" copier:"NotebookResp"` @@ -1187,6 +1231,8 @@ type ( GetNotebookStorageReq { InstanceId string `json:"instance_id" copier:"InstanceId"` ProjectId string `json:"project_id" copier:"ProjectId"` + /****************智算类型 ModelartsType parmas ********************/ + ModelartsType string `json:"modelartsType,optional"` } GetNotebookStorageResp { Current int32 `json:"current" copier:"Current"` @@ -1199,6 +1245,8 @@ type ( InstanceId string `json:"instance_id" copier:"InstanceId"` ProjectId string `json:"project_id" copier:"ProjectId"` Param MountNotebookStorageParam `json:"param" copier:"Param"` + /****************智算类型 ModelartsType parmas ********************/ + ModelartsType string `json:"modelartsType,optional"` } MountNotebookStorageResp { Category string `json:"category" copier:"Category"` @@ -1384,6 +1432,8 @@ type ( GetVisualizationJobReq { Project_id string `json:"project_id"` Param GetVisualizationJobParam `json:"param"` + /****************智算类型 ModelartsType parmas ********************/ + ModelartsType string `json:"modelartsType,optional"` } GetVisualizationJobResp { Is_success bool `json:"is_success"` @@ -1417,6 +1467,8 @@ type ( CreateVisualizationJobReq { Project_id string `json:"project_id"` Param CreateVisualizationJobParam `json:"param"` + /****************智算类型 ModelartsType parmas ********************/ + ModelartsType string `json:"modelartsType,optional"` } CreateVisualizationJobResp { Error_message string `json:"error_message"` @@ -1456,6 +1508,8 @@ type ( AlgorithmsCtRq AlgorithmsCtRq `json:"algorithm,optional"` SpecsCtRq SpecsCtRq `json:"spec,optional"` ProjectId string `path:"projectId""` + /****************智算类型 ModelartsType parmas ********************/ + ModelartsType string `json:"modelartsType,optional"` /****************parmas from octpus platform string `json:"platform,optional"` params CreateTrainJobParam `json:"params,optional"` diff --git a/adaptor/PCM-CORE/api/desc/pcm.api b/adaptor/PCM-CORE/api/desc/pcm.api index 90517317..e17fb9f8 100644 --- a/adaptor/PCM-CORE/api/desc/pcm.api +++ b/adaptor/PCM-CORE/api/desc/pcm.api @@ -102,8 +102,8 @@ service pcm { post /ai/CreateAlgorithm/:projectId (CreateAlgorithmReq) returns (CreateAlgorithmResp) // ListAlgorithms 查询创建算法列表 @handler ListAlgorithms - get /ai/ListAlgorithms (ListAlgorithmsReq) returns (ListAlgorithmsResp) - //get /ai/ListAlgorithms/:projectId (ListAlgorithmsReq) returns (ListAlgorithmsResp) + //get /ai/ListAlgorithms (ListAlgorithmsReq) returns (ListAlgorithmsResp) + get /ai/ListAlgorithms/:projectId (ListAlgorithmsReq) returns (ListAlgorithmsResp) // DeleteAlgorithm 删除算法 @handler DeleteAlgorithm delete /ai/DeleteAlgorithm/:projectId/:algorithmId (DeleteAlgorithmReq) returns (DeleteAlgorithmResp) diff --git a/adaptor/PCM-CORE/api/internal/handler/routes.go b/adaptor/PCM-CORE/api/internal/handler/routes.go index 0fd35f4e..771c6be1 100644 --- a/adaptor/PCM-CORE/api/internal/handler/routes.go +++ b/adaptor/PCM-CORE/api/internal/handler/routes.go @@ -141,7 +141,7 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { }, { Method: http.MethodGet, - Path: "/ai/ListAlgorithms", + Path: "/ai/ListAlgorithms/:projectId", Handler: ai.ListAlgorithmsHandler(serverCtx), }, { diff --git a/adaptor/PCM-CORE/api/internal/types/types.go b/adaptor/PCM-CORE/api/internal/types/types.go index 92ae98df..46f84f33 100644 --- a/adaptor/PCM-CORE/api/internal/types/types.go +++ b/adaptor/PCM-CORE/api/internal/types/types.go @@ -375,9 +375,10 @@ type DataSources struct { } type DataSetReq struct { - ProjectId string `path:"projectId"` - Limit int32 `form:"limit,optional"` - OffSet int32 `form:"offSet,optional"` + ProjectId string `path:"projectId"` + Limit int32 `form:"limit,optional"` + OffSet int32 `form:"offSet,optional"` + ModelArtsType string `form:"modelArtsType,optional"` } type DataSetResp struct { @@ -389,13 +390,14 @@ type DataSetResp struct { } type CreateDataSetReq struct { - DatasetName string `json:"datasetName" copier:"DatasetName"` - DatasetType int32 `json:"datasetType" copier:"DatasetType"` - Description string `json:"description" copier:"Description"` - WorkPath string `json:"workPath" copier:"WorkPath"` - WorkPathType int32 `json:"workPathType" copier:"WorkPathType"` - ProjectId string `path:"projectId" copier:"ProjectId"` - DataSources []DataSources `json:"dataSources" copier:"DataSources"` + DatasetName string `json:"datasetName" copier:"DatasetName"` + DatasetType int32 `json:"datasetType" copier:"DatasetType"` + Description string `json:"description" copier:"Description"` + WorkPath string `json:"workPath" copier:"WorkPath"` + WorkPathType int32 `json:"workPathType" copier:"WorkPathType"` + ProjectId string `path:"projectId" copier:"ProjectId"` + DataSources []DataSources `json:"dataSources" copier:"DataSources"` + ModelArtsType string `form:"modelArtsType,optional"` } type CreateDataSetResp struct { @@ -406,9 +408,10 @@ type CreateDataSetResp struct { } type ImportTaskDataReq struct { - ProjectId string `path:"projectId"` - DatasetId string `path:"datasetId"` - ImportPath string `json:"importPath"` + ProjectId string `path:"projectId"` + DatasetId string `path:"datasetId"` + ImportPath string `json:"importPath"` + ModelArtsType string `form:"modelArtsType,optional"` } type ImportTaskDataResp struct { @@ -432,6 +435,7 @@ type CreateExportTaskReq struct { VersionFormat string `json:"versionFormat,optional" copier:"VersionFormat"` VersionId string `json:"versionId,optional" copier:"VersionId"` WithColumnHeader bool `json:"withColumnHeader,optional" copier:"WithColumnHeader"` + ModelartsType string `json:"modelartsType,optional"` } type ExportTaskDataResp struct { @@ -501,11 +505,12 @@ type SearchProp struct { } type GetExportTasksOfDatasetReq struct { - ProjectId string `path:"projectId" copier:"ProjectId"` - DatasetId string `path:"datasetId" copier:"DatasetId"` - ExportType int32 `json:"export_type,optional" copier:"ExportType"` - Limit int32 `form:"limit,optional"` - Offset int32 `form:"offset,optional"` + ProjectId string `path:"projectId" copier:"ProjectId"` + DatasetId string `path:"datasetId" copier:"DatasetId"` + ExportType int32 `json:"export_type,optional" copier:"ExportType"` + Limit int32 `form:"limit,optional"` + Offset int32 `form:"offset,optional"` + ModelartsType string `json:"modelartsType,optional"` } type GetExportTasksOfDatasetResp struct { @@ -549,9 +554,10 @@ type ExportTaskStatus struct { } type GetExportTaskStatusOfDatasetReq struct { - ProjectId string `path:"projectId"` - ResourceId string `path:"resourceId"` - TaskId string `path:"taskId"` + ProjectId string `path:"projectId"` + ResourceId string `path:"resourceId"` + TaskId string `path:"taskId"` + ModelartsType string `json:"modelartsType,optional"` } type GetExportTaskStatusOfDatasetResp struct { @@ -586,6 +592,7 @@ type CreateProcessorTaskReq struct { VersionId string `json:"version_id,optional" copier:"VersionId"` WorkPath WorkPath `json:"work_path,optional" copier:"WorkPath"` WorkspaceId string `json:"workspace_id,optional" copier:"WorkspaceId"` + ModelartsType string `json:"modelartsType,optional"` } type CreateProcessorTaskResp struct { @@ -625,10 +632,11 @@ type OperatorParam struct { } type ListImportTasksReq struct { - ProjectId string `path:"projectId"` - DatasetId string `path:"datasetId""` - Limit int32 `form:"limit,optional"` - Offset int32 `form:"offSet,optional"` + ProjectId string `path:"projectId"` + DatasetId string `path:"datasetId""` + Limit int32 `form:"limit,optional"` + Offset int32 `form:"offSet,optional"` + ModelArtsType string `form:"modelArtsType,optional"` } type ListImportTasksResp struct { @@ -886,9 +894,10 @@ type JobAlgorithmResponse struct { } type ListTrainingJobsreq struct { - ProjectId string `path:"projectId"` - Limit int32 `form:"limit,optional"` - Offset int32 `form:"offSet,optional"` + ProjectId string `path:"projectId"` + Limit int32 `form:"limit,optional"` + Offset int32 `form:"offSet,optional"` + ModelartsType string `json:"modelartsType,optional"` } type ListTrainingJobsresp struct { @@ -910,6 +919,7 @@ type ListTrainingJobsresp struct { type DeleteTrainingJobReq struct { Project_id string `path:"projectId"` Training_job_id string `path:"trainingJobId"` + ModelArtsType string `form:"modelArtsType,optional"` } type DeleteTrainingJobResp struct { @@ -930,6 +940,7 @@ type CreateServiceReq struct { SubnetNetworkId string `json:"subnetNetworkId,optional" copier:"SubnetNetworkId"` Config []ServiceConfig `json:"config,optional" copier:"Config"` ProjectId string `path:"projectId"` + ModelartsType string `json:"modelartsType,optional"` } type CreateServiceResp struct { @@ -970,8 +981,9 @@ type CustomSpec struct { } type DeleteServiceReq struct { - ProjectId string `path:"projectId"` - ServiceId string `path:"serviceId"` + ProjectId string `path:"projectId"` + ServiceId string `path:"serviceId"` + ModelartsType string `json:"modelartsType,optional"` } type DeleteServiceResp struct { @@ -981,9 +993,10 @@ type DeleteServiceResp struct { } type ListServicesReq struct { - ProjectId string `path:"projectId"` - Limit int32 `form:"limit,optional"` - Offset int32 `form:"offSet,optional"` + ProjectId string `path:"projectId"` + Limit int32 `form:"limit,optional"` + Offset int32 `form:"offSet,optional"` + ModelartsType string `json:"modelartsType,optional"` } type ListServicesResp struct { @@ -1023,8 +1036,9 @@ type ListServices struct { } type ShowServiceReq struct { - ProjectId string `path:"projectId"` - ServiceId string `path:"serviceId"` + ProjectId string `path:"projectId"` + ServiceId string `path:"serviceId"` + ModelartsType string `json:"modelartsType,optional"` } type ShowServiceResp struct { @@ -1092,12 +1106,13 @@ type QueryServiceConfig struct { } type ListClustersReq struct { - ProjectId string `json:"project_id" copier:"ProjectId"` - ClusterName string `json:"cluster_name,optional" copier:"ClusterName"` - Offset int64 `form:"offset,optional"` - Limit int64 `form:"limit,optional"` - SortBy string `json:"sort_by,optional" copier:"SortBy"` - Order string `json:"order,optional" copier:"Order"` + ProjectId string `json:"project_id" copier:"ProjectId"` + ClusterName string `json:"cluster_name,optional" copier:"ClusterName"` + Offset int64 `form:"offset,optional"` + Limit int64 `form:"limit,optional"` + SortBy string `json:"sort_by,optional" copier:"SortBy"` + Order string `json:"order,optional" copier:"Order"` + ModelartsType string `json:"modelartsType,optional"` } type ListClustersResp struct { @@ -1264,7 +1279,7 @@ type SearchParams struct { } type ListAlgorithmsReq struct { - ProjectId string `form:"projectId,optional"` + ProjectId string `path:"projectId,optional"` Offset int32 `form:"offset,optional"` Limit int32 `form:"limit,optional"` ModelArtsType string `form:"modelArtsType,optional"` @@ -1283,8 +1298,9 @@ type ListAlgorithmsResp struct { } type DeleteAlgorithmReq struct { - ProjectId string `path:"projectId" copier:"ProjectId"` - AlgorithmId string `path:"algorithmId" jcopier:"AlgorithmId"` + ProjectId string `path:"projectId" copier:"ProjectId"` + AlgorithmId string `path:"algorithmId" jcopier:"AlgorithmId"` + ModelArtsType string `form:"modelArtsType,optional"` } type DeleteAlgorithmResp struct { @@ -1294,8 +1310,9 @@ type DeleteAlgorithmResp struct { } type ShowAlgorithmByUuidReq struct { - ProjectId string `path:"projectId" copier:"ProjectId"` - AlgorithmId string `path:"algorithmId" copier:"AlgorithmId"` + ProjectId string `path:"projectId" copier:"ProjectId"` + AlgorithmId string `path:"algorithmId" copier:"AlgorithmId"` + ModelartsType string `json:"modelartsType,optional"` } type ShowAlgorithmByUuidResp struct { @@ -1336,6 +1353,7 @@ type CreateAlgorithmReq struct { ResourceRequirementsCARq []*ResourceRequirements `json:"resourceRequirements,optional"` AdvancedConfigCARq *AdvancedConfigAl `json:"advancedConfig,optional"` ProjectIdCARq string `path:"projectId"` + ModelArtsType string `form:"modelArtsType,optional"` } type CreateAlgorithmResp struct { @@ -1350,16 +1368,18 @@ type CreateAlgorithmResp struct { } type DeleteDataSetReq struct { - DatasetId string `json:"datasetId"` - ProjectId string `json:"projectId"` + DatasetId string `json:"datasetId"` + ProjectId string `json:"projectId"` + ModelArtsType string `form:"modelArtsType,optional"` } type DeleteDataSetResp struct { } type ListNotebookReq struct { - ProjectId string `json:"project_id" copier:"ProjectId"` - Param ListNotebookParam `json:"param,optional" copier:"Param"` + ProjectId string `json:"project_id" copier:"ProjectId"` + Param ListNotebookParam `json:"param,optional" copier:"Param"` + ModelartsType string `json:"modelartsType,optional"` } type ListNotebookResp struct { @@ -1387,8 +1407,9 @@ type ListNotebookParam struct { } type CreateNotebookReq struct { - ProjectId string `json:"project_id" copier:"ProjectId"` - Param CreateNotebookParam `json:"param" copier:"Param"` + ProjectId string `json:"project_id" copier:"ProjectId"` + Param CreateNotebookParam `json:"param" copier:"Param"` + ModelartsType string `json:"modelartsType,optional"` } type CreateNotebookResp struct { @@ -1414,9 +1435,10 @@ type CreateNotebookParam struct { } type StartNotebookReq struct { - Id string `json:"id" copier:"Id"` - ProjectId string `json:"project_id" copier:"ProjectId"` - Param StartNotebookParam `json:"param" copier:"Param"` + Id string `json:"id" copier:"Id"` + ProjectId string `json:"project_id" copier:"ProjectId"` + Param StartNotebookParam `json:"param" copier:"Param"` + ModelartsType string `json:"modelartsType,optional"` } type StartNotebookResp struct { @@ -1432,8 +1454,9 @@ type StartNotebookParam struct { } type StopNotebookReq struct { - Id string `json:"id" copier:"Id"` - ProjectId string `json:"project_id" copier:"ProjectId"` + Id string `json:"id" copier:"Id"` + ProjectId string `json:"project_id" copier:"ProjectId"` + ModelartsType string `json:"modelartsType,optional"` } type StopNotebookResp struct { @@ -1444,8 +1467,9 @@ type StopNotebookResp struct { } type GetNotebookStorageReq struct { - InstanceId string `json:"instance_id" copier:"InstanceId"` - ProjectId string `json:"project_id" copier:"ProjectId"` + InstanceId string `json:"instance_id" copier:"InstanceId"` + ProjectId string `json:"project_id" copier:"ProjectId"` + ModelartsType string `json:"modelartsType,optional"` } type GetNotebookStorageResp struct { @@ -1457,9 +1481,10 @@ type GetNotebookStorageResp struct { } type MountNotebookStorageReq struct { - InstanceId string `json:"instance_id" copier:"InstanceId"` - ProjectId string `json:"project_id" copier:"ProjectId"` - Param MountNotebookStorageParam `json:"param" copier:"Param"` + InstanceId string `json:"instance_id" copier:"InstanceId"` + ProjectId string `json:"project_id" copier:"ProjectId"` + Param MountNotebookStorageParam `json:"param" copier:"Param"` + ModelartsType string `json:"modelartsType,optional"` } type MountNotebookStorageResp struct { @@ -1638,8 +1663,9 @@ type LeaseReq struct { } type GetVisualizationJobReq struct { - Project_id string `json:"project_id"` - Param GetVisualizationJobParam `json:"param"` + Project_id string `json:"project_id"` + Param GetVisualizationJobParam `json:"param"` + ModelartsType string `json:"modelartsType,optional"` } type GetVisualizationJobResp struct { @@ -1675,8 +1701,9 @@ type GetVisualizationJobParam struct { } type CreateVisualizationJobReq struct { - Project_id string `json:"project_id"` - Param CreateVisualizationJobParam `json:"param"` + Project_id string `json:"project_id"` + Param CreateVisualizationJobParam `json:"param"` + ModelartsType string `json:"modelartsType,optional"` } type CreateVisualizationJobResp struct { @@ -1714,6 +1741,7 @@ type CreateTrainingJobReq struct { AlgorithmsCtRq AlgorithmsCtRq `json:"algorithm,optional"` SpecsCtRq SpecsCtRq `json:"spec,optional"` ProjectId string `path:"projectId""` + ModelartsType string `json:"modelartsType,optional"` } type CreateTrainingJobResp struct {