You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

pcm-ai.api 84 kB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837
  1. syntax = "v1"
  2. info(
  3. title: "AI core"
  4. desc: "AI core微服务"
  5. author: "wanqgi"
  6. email: "1364512070@qq.com"
  7. )
  8. /******************find datasetList start*************************/
  9. type DataSets {
  10. DatasetId string `json:"datasetId" copier:"DatasetId"`
  11. DataFormat string `json:"dataFormat" copier:"DataFormat"`
  12. DataSources []DataSources `json:"dataSources" copier:"DataSources"`
  13. DatasetFormat int32 `json:"datasetFormat" copier:"DatasetFormat"`
  14. DatasetName string `json:"datasetName" copier:"DatasetName"`
  15. DatasetType int32 `json:"datasetType" copier:"DatasetType"`
  16. ImportData bool `json:"importData" copier:"ImportData"`
  17. TotalSampleCount int32 `json:"totalSampleCount" copier:"TotalSampleCount"`
  18. CreateTime int64 `json:"createTime" copier:"CreateTime"`
  19. description string `json:"description" copier:"Description"`
  20. }
  21. type DataSources {
  22. DataPath string `json:"dataPath" copier:"DataPath"`
  23. DataType int32 `json:"dataType" copier:"DataType"`
  24. }
  25. type (
  26. DataSetReq {
  27. ProjectId string `path:"projectId"`
  28. Limit int32 `form:"limit,optional"`
  29. OffSet int32 `form:"offSet,optional"`
  30. /****************parmas from modelArtsType ********************/
  31. modelArtsType string `form:"modelArtsType,optional"`
  32. }
  33. DataSetResp {
  34. TotalNumber uint32 `json:"totalNumber" copier:"TotalNumber"`
  35. Datasets []DataSets `json:"dataSets" copier:"Datasets"`
  36. Code int32 `json:"code,omitempty"`
  37. Msg string `json:"msg,omitempty"`
  38. ErrorMsg string `json:"errorMsg,omitempty"`
  39. }
  40. )
  41. /******************find datasetList end*************************/
  42. /******************Create dataset start*************************/
  43. type CreateDataSetReq {
  44. DatasetName string `json:"datasetName" copier:"DatasetName"`
  45. DatasetType int32 `json:"datasetType" copier:"DatasetType"`
  46. Description string `json:"description" copier:"Description"`
  47. WorkPath string `json:"workPath" copier:"WorkPath"`
  48. WorkPathType int32 `json:"workPathType" copier:"WorkPathType"`
  49. ProjectId string `path:"projectId" copier:"ProjectId"`
  50. DataSources []DataSources `json:"dataSources" copier:"DataSources"`
  51. /****************parmas from modelArtsType ********************/
  52. modelArtsType string `json:"modelArtsType,optional"`
  53. }
  54. type CreateDataSetResp {
  55. DatasetId string `json:"datasetId" copier:"DatasetId"`
  56. Code int32 `json:"code,omitempty"`
  57. Msg string `json:"msg,omitempty"`
  58. ErrorMsg string `json:"ErrorMsg,omitempty"`
  59. }
  60. /******************Create dataset end*************************/
  61. /******************ImportTask start*************************/
  62. type (
  63. ImportTaskDataReq {
  64. ProjectId string `path:"projectId"`
  65. DatasetId string `path:"datasetId"`
  66. ImportPath string `json:"importPath"`
  67. /****************parmas from modelArtsType ********************/
  68. modelArtsType string `json:"modelArtsType,optional"`
  69. }
  70. ImportTaskDataResp{
  71. TaskId string `json:"taskId,omitempty"`
  72. Code int32 `json:"code,omitempty"`
  73. Msg string `json:"msg,omitempty"`
  74. ErrorMsg string `json:"ErrorMsg,omitempty"`
  75. }
  76. )
  77. /******************ImportTask end*************************/
  78. /******************ExportTask start*************************/
  79. type (
  80. CreateExportTaskReq {
  81. ProjectId string `path:"projectId" copier:"ProjectId"`
  82. DatasetId string `path:"datasetId" copier:"DatasetId"`
  83. Path string `json:"path,optional" copier:"Path"`
  84. AnnotationFormat string `json:"annotationFormat,optional" copier:"AnnotationFormat"`
  85. ExportFormat int64 `json:"exportFormat,optional" copier:"ExportFormat"`
  86. ExportParams ExportParams `json:"exportParams,optional" copier:"ExportParams"`
  87. ExportType int32 `json:"exportType,optional" copier:"ExportType"`
  88. SampleState string `json:"sampleState,optional" copier:"ExportState"`
  89. SourceTypeHeader string `json:"sourceTypeHeader,optional" copier:"SourceTypeHeader"`
  90. Status int32 `json:"status,optional" copier:"Status"`
  91. VersionFormat string `json:"versionFormat,optional" copier:"VersionFormat"`
  92. VersionId string `json:"versionId,optional" copier:"VersionId"`
  93. WithColumnHeader bool `json:"withColumnHeader,optional" copier:"WithColumnHeader"`
  94. /****************智算类型 ModelartsType parmas ********************/
  95. ModelArtsType string `json:"modelartsType,optional"`
  96. }
  97. )
  98. type ExportTaskDataResp {
  99. TaskId string `json:"taskId,omitempty" copier:"TaskId"`
  100. CreateTime uint32 `json:"createTime,omitempty" copier:"CreateTime"`
  101. ExportFormat int64 `json:"exportFormat,omitempty" copier:"ExportFormat"`
  102. ExportParams ExportParams `json:"exportParams,omitempty" copier:"ExportParams"`
  103. FinishedSampleCount int32 `json:"finishedSampleCount,omitempty" copier:"FinishedSampleCount"`
  104. Path string `json:"path,omitempty" copier:"Path"`
  105. Progress float64 `json:"progress,omitempty" copier:"Progress"`
  106. Status string `json:"status,omitempty" copier:"Status"`
  107. TotalSampleCount int64 `json:"totalSampleCount,omitempty" copier:"TotalSampleCount"`
  108. UpdateTime uint32 `json:"updateTime,omitempty" copier:"UpdateTime"`
  109. VersionFormat string `json:"versionFormat,omitempty" copier:"VersionFormat"`
  110. VersionId string `json:"versionId,omitempty" copier:"VersionId"`
  111. Code int32 `json:"code,omitempty"`
  112. Msg string `json:"msg,omitempty"`
  113. ErrorMsg string `json:"ErrorMsg,omitempty"`
  114. }
  115. type ExportParams {
  116. ClearHardProperty bool `json:"clearHardProperty" copier:"ClearHardProperty"`
  117. ExportDatasetVersionFormat string `json:"exportDatasetVersionFormat,optional" copier:"ExportDatasetVersionFormat"`
  118. ExportDatasetVersionName string `json:"exportDatasetVersionName,optional" copier:"ExportDatasetVersionName"`
  119. ExportDest string `json:"exportDest,optional" copier:"ExportDest"`
  120. ExportNewDatasetWorkName string `json:"exportNewDatasetWorkName,optional" copier:"ExportNewDatasetWorkName"`
  121. ExportNewDatasetWorkPath string `json:"exportNewDatasetWorkPath,optional" copier:"ExportNewDatasetWorkPath"`
  122. RatioSampleUsage bool `json:"ratioSampleUsage,optional" copier:"RatioSampleUsage"`
  123. SampleState string `json:"sampleState,optional" copier:"SampleState"`
  124. Sample []string `json:"sample,optional" copier:"Sample"`
  125. SearchConditions []SearchCondition `json:"searchConditions,optional" copier:"SearchConditions"`
  126. TrainSampleRatio string `json:"trainSampleRatio,optional" copier:"TrainSampleRatio"`
  127. }
  128. type SearchCondition {
  129. Coefficient string `json:"coefficient,optional" copier:"Coefficient"`
  130. FrameInVideo int64 `json:"frameInVideo,optional" copier:"FrameInVideo"`
  131. Hard string `json:"hard,optional" copier:"Hard"`
  132. Kvp string `json:"kvp,optional" copier:"Kvp"`
  133. ImportOrigin string `json:"importOrigin,optional" copier:"ImportOrigin"`
  134. LabelList SearchLabels `json:"labelList,optional" copier:"LabelList"`
  135. Labeler string `json:"labeler,optional" copier:"Labeler"`
  136. ParentSampleId string `json:"parentSampleId,optional" copier:"ParentSampleId"`
  137. Metadata SearchProp `json:"metadata,optional" copier:"Metadata"`
  138. SampleDir string `json:"sampleDir,optional" copier:"SampleDir"`
  139. SampleName string `json:"sampleName,optional" copier:"SampleName"`
  140. SampleTime string `json:"sampleTime,optional" copier:"SampleTime"`
  141. Score string `json:"score,optional" copier:"Score"`
  142. SliceThickness string `json:"sliceThickness,optional" copier:"SliceThickness"`
  143. StudyDate string `json:"StudyDate,optional" copier:"StudyDate"`
  144. TimeInVideo string `json:"timeInVideo,optional" copier:"TimeInVideo"`
  145. }
  146. type SearchLabels {
  147. Labels []SearchLabel `json:"labels,optional" copier:"Labels"`
  148. Op string `json:"op,optional" copier:"Op"`
  149. }
  150. type SearchLabel {
  151. Name string `json:"name,optional" copier:"Name"`
  152. Op string `json:"op,optional" copier:"Op"`
  153. // Property map<string,weigou> `json:"property,optional" copier:"Property"`
  154. Type int64 `json:"type,optional" copier:"Type"`
  155. }
  156. type SearchProp {
  157. Op string `json:"op,optional" copier:"Op"`
  158. }
  159. /******************ExportTask end*************************/
  160. /******************Get Export Tasks Of Dataset Start*************************/
  161. type (
  162. GetExportTasksOfDatasetReq {
  163. ProjectId string `path:"projectId" copier:"ProjectId"`
  164. DatasetId string `path:"datasetId" copier:"DatasetId"`
  165. ExportType int32 `json:"exportType,optional" copier:"ExportType"`
  166. Limit int32 `form:"limit,optional"`
  167. Offset int32 `form:"offset,optional"`
  168. /****************智算类型 ModelartsType parmas ********************/
  169. ModelArtsType string `json:"modelartsType,optional"`
  170. }
  171. )
  172. type GetExportTasksOfDatasetResp {
  173. TaskId string `json:"taskId,omitempty" copier:"TaskId"`
  174. CreateTime uint32 `json:"createTime,omitempty" copier:"CreateTime"`
  175. ExportFormat int64 `json:"exportFormat,omitempty" copier:"ExportFormat"`
  176. ExportParams ExportParams `json:"exportParams,omitempty" copier:"ExportParams"`
  177. ExportTasks []ExportTaskStatus `json:"exportTasks,omitempty" copier:"ExportTasks"`
  178. FinishedSampleCount int32 `json:"finishedSampleCount,omitempty" copier:"FinishedSampleCount"`
  179. Path string `json:"path,omitempty" copier:"Path"`
  180. Progress float64 `json:"progress,omitempty" copier:"Progress"`
  181. Status string `json:"status,omitempty" copier:"Status"`
  182. TotalCount int64 `json:"totalCount,omitempty" copier:"TotalCount"`
  183. UpdateTime uint32 `json:"updateTime,omitempty" copier:"UpdateTime"`
  184. VersionFormat string `json:"versionFormat,omitempty" copier:"VersionFormat"`
  185. VersionId string `json:"versionId,omitempty" copier:"VersionId"`
  186. ExportType int32 `json:"exportType,omitempty" copier:"ExportType"`
  187. TotalSample int64 `json:"totalSample,omitempty" copier:"TotalSample"`
  188. Code int32 `json:"code,omitempty"`
  189. Msg string `json:"msg,omitempty"`
  190. ErrorMsg string `json:"ErrorMsg,omitempty"`
  191. }
  192. type ExportTaskStatus {
  193. TaskId string `json:"taskId,omitempty" copier:"TaskId"`
  194. CreateTime uint32 `json:"createTime,omitempty" copier:"CreateTime"`
  195. ErrorCode string `json:"errorCode,omitempty" copier:"ErrorCode"`
  196. ErrorMsg string `json:"errorMsg,omitempty" copier:"ErrorMsg"`
  197. ExportFormat int64 `json:"exportFormat,omitempty" copier:"ExportFormat"`
  198. ExportParams ExportParams `json:"exportParams,omitempty" copier:"ExportParams"`
  199. FinishedSampleCount int32 `json:"finishedSampleCount,omitempty" copier:"FinishedSampleCount"`
  200. Path string `json:"path,omitempty" copier:"Path"`
  201. Progress float64 `json:"progress,omitempty" copier:"Progress"`
  202. Status string `json:"status,omitempty" copier:"Status"`
  203. TotalCount int64 `json:"totalCount,omitempty" copier:"TotalCount"`
  204. UpdateTime uint32 `json:"updateTime,omitempty" copier:"UpdateTime"`
  205. VersionFormat string `json:"versionFormat,omitempty" copier:"VersionFormat"`
  206. VersionId string `json:"versionId,omitempty" copier:"VersionId"`
  207. ExportType int32 `json:"exportType,omitempty" copier:"ExportType"`
  208. TotalSample int64 `json:"totalSample,omitempty" copier:"TotalSample"`
  209. }
  210. /******************Get Export Tasks Of Dataset End*************************/
  211. /******************Get Export Task Status Of Dataset Start*************************/
  212. type (
  213. GetExportTaskStatusOfDatasetReq {
  214. ProjectId string `path:"projectId"`
  215. ResourceId string `path:"resourceId"`
  216. TaskId string `path:"taskId"`
  217. /****************智算类型 ModelartsType parmas ********************/
  218. ModelArtsType string `json:"modelartsType,optional"`
  219. }
  220. )
  221. type GetExportTaskStatusOfDatasetResp {
  222. TaskId string `json:"taskId,optional" copier:"TaskId"`
  223. CreateTime uint32 `json:"createTime,optional" copier:"CreateTime"`
  224. ExportFormat int64 `json:"exportFormat,optional" copier:"ExportFormat"`
  225. ExportParams ExportParams `json:"exportParams,optional" copier:"ExportParams"`
  226. ExportTasks []ExportTaskStatus `json:"exportTasks,optional" copier:"ExportTasks"`
  227. FinishedSampleCount int32 `json:"finishedSampleCount,optional" copier:"FinishedSampleCount"`
  228. Path string `json:"path,optional" copier:"Path"`
  229. Progress float64 `json:"progress,optional" copier:"Progress"`
  230. Status string `json:"status,optional" copier:"Status"`
  231. TotalCount int64 `json:"totalCount,optional" copier:"TotalCount"`
  232. UpdateTime uint32 `json:"updateTime,optional" copier:"UpdateTime"`
  233. VersionFormat string `json:"versionFormat,optional" copier:"VersionFormat"`
  234. VersionId string `json:"versionId,optional" copier:"VersionId"`
  235. ExportType int32 `json:"exportType,optional" copier:"ExportType"`
  236. TotalSample int64 `json:"totalSample,optional" copier:"TotalSample"`
  237. Code int32 `json:"code,omitempty"`
  238. Msg string `json:"msg,omitempty"`
  239. ErrorMsg string `json:"ErrorMsg,omitempty"`
  240. }
  241. /******************Get Export Task Status Of Dataset End*************************/
  242. /******************Create Processor Task Start*************************/
  243. type (
  244. CreateProcessorTaskReq {
  245. ProjectId string `json:"datasetId" copier:"ProjectId"`
  246. CreateVersion bool `json:"createVersion,optional" copier:"CreateVersion"`
  247. Description string `json:"description,optional" copier:"Description"`
  248. DataSources ProcessorDataSource `json:"dataSource,optional" copier:"DataSources"`
  249. Inputs []ProcessorDataSource `json:"inputs,optional" copier:"Inputs"`
  250. Name string `json:"name,optional" copier:"Nmae"`
  251. Template TemplateParam `json:"template,optional" copier:"Template"`
  252. VersionId string `json:"versionId,optional" copier:"VersionId"`
  253. WorkPath WorkPath `json:"workPath,optional" copier:"WorkPath"`
  254. WorkspaceId string `json:"workspaceId,optional" copier:"WorkspaceId"`
  255. /****************智算类型 ModelartsType parmas ********************/
  256. ModelArtsType string `json:"modelartsType,optional"`
  257. }
  258. CreateProcessorTaskResp {
  259. TaskId string `json:"taskId,optional" copier:"Code"`
  260. Code int32 `json:"code,optional" copier:"Code"`
  261. Msg string `json:"msg,optional" copier:"Msg"`
  262. }
  263. )
  264. type ProcessorDataSource {
  265. Name string `json:"name,optional" copier:"Name"`
  266. Source string `json:"source,optional" copier:"Source"`
  267. Type string `json:"type,optional" copier:"type"`
  268. VersionId string `json:"versionId,optional" copier:"VersionId"`
  269. VersionName string `json:"versionName,optional" copier:"VersionName"`
  270. }
  271. type TemplateParam {
  272. Id string `json:"id,optional" copier:"Id"`
  273. Name string `json:"name,optional" copier:"Name"`
  274. OperatorParam []OperatorParam `json:"operatorParams,optional" copier:"OperatorParam"`
  275. }
  276. type WorkPath {
  277. Name string `json:"name,optional" copier:"name"`
  278. OutputPath string `json:"outputPath,optional" copier:"OutputPath"`
  279. Path string `json:"path,optional" copier:"Path"`
  280. Type string `json:"type,optional" copier:"type"`
  281. VersionId string `json:"versionId,optional" copier:"VersionId"`
  282. VersionName string `json:"versionName,optional" copier:"VersionName"`
  283. }
  284. type OperatorParam {
  285. Id string `json:"id,optional" copier:"Id"`
  286. Name string `json:"name,optional" copier:"Name"`
  287. Params string `json:"params,optional" copier:"Params"`
  288. AdvancedParamsSwitch bool `json:"advancedParamsSwitch,optional" copier:"AdvancedParamsSwitch"`
  289. }
  290. /******************Create Processor Task End*************************/
  291. /******************taskList start*************************/
  292. type (
  293. ListImportTasksReq {
  294. ProjectId string `path:"projectId"`
  295. DatasetId string `path:"datasetId"`
  296. Limit int32 `form:"limit,optional"`
  297. Offset int32 `form:"offSet,optional"`
  298. /****************parmas from modelArtsType ********************/
  299. modelArtsType string `form:"modelArtsType,optional"`
  300. }
  301. ListImportTasksResp {
  302. TotalCount uint32 `json:"totalCount,omitempty"`
  303. ImportTasks []*ImportTasks `json:"importTasks,omitempty"`
  304. Code int32 `json:"code,omitempty"`
  305. Msg string `json:"msg,omitempty"`
  306. ErrorMsg string `json:"ErrorMsg,omitempty"`
  307. }
  308. )
  309. type ImportTasks {
  310. Status string `json:"status,omitempty"`
  311. TaskId string `json:"taskId,omitempty"`
  312. DatasetId string `json:"datasetId,omitempty"`
  313. ImportPath string `json:"importPath,omitempty"`
  314. ImportType int32 `json:"importType,omitempty"`
  315. TotalSampleCount uint32 `json:"totalSampleCount,omitempty"`
  316. ImportedSampleCount uint32 `json:"importedSampleCount,omitempty"`
  317. AnnotatedSampleCount uint32 `json:"annotatedSampleCount,omitempty"`
  318. TotalSubSampleCount uint32 `json:"totalSubSampleCount,omitempty"`
  319. ImportedSubSampleCount uint32 `json:"importedSubSampleCount,omitempty"`
  320. TotalFileSize uint32 `json:"totalFileSize,omitempty"`
  321. FinishedFileCount uint32 `json:"finishedFileCount,omitempty"`
  322. FinishedFileSize uint32 `json:"finishedFileSize,omitempty"`
  323. TotalFileCount uint32 `json:"totalFileCount,omitempty"`
  324. CreateTime uint32 `json:"createTime,omitempty"`
  325. ElapsedTime uint32 `json:"elapsedTime,omitempty"`
  326. AnnotationFormatConfig []interface{} `json:"annotationFormatConfig,omitempty"`
  327. }
  328. /******************taskList end*************************/
  329. /******************ListTrainingJobs start*************************/
  330. type Annotations {
  331. JobTemplate string `json:"jobTemplate"`
  332. KeyTask string `json:"keyTask"`
  333. }
  334. type TrainingExperimentReference {
  335. }
  336. type Metadata {
  337. ID string `json:"id"`
  338. Name string `json:"name"`
  339. Description string `json:"description"`
  340. CreateTime uint64 `json:"createTime"`
  341. WorkspaceID string `json:"workspaceId"`
  342. AiProject string `json:"aiProject"`
  343. UserName string `json:"userName"`
  344. Annotations Annotations `json:"annotations"`
  345. TrainingExperimentReference TrainingExperimentReference `json:"trainingExperimentReference"`
  346. Tags []interface{} `json:"tags"`
  347. }
  348. type CPUUsage {
  349. Average int32 `json:"average"`
  350. Max int32 `json:"max"`
  351. Min int32 `json:"min"`
  352. }
  353. type MemUsage {
  354. Average int32 `json:"average"`
  355. Max int32 `json:"max"`
  356. Min int32 `json:"min"`
  357. }
  358. type Util {
  359. Average int32 `json:"average"`
  360. Max int32 `json:"max"`
  361. Min int32 `json:"min"`
  362. }
  363. type Gpu {
  364. MemUsage MemUsage `json:"memUsage"`
  365. Util Util `json:"util"`
  366. UnitNum int32 `json:"unitNum"`
  367. ProductName string `json:"productName"`
  368. Memory string `json:"memory"`
  369. }
  370. type Status {
  371. Phase string `json:"phase"`
  372. SecondaryPhase string `json:"secondaryPhase"`
  373. Duration int32 `json:"duration"`
  374. Tasks []string `json:"tasks"`
  375. StartTime uint64 `json:"startTime"`
  376. TaskStatuses []*TaskStatuses `json:"taskStatuses,omitempty"`
  377. // NodeCountMetrics []NodeCountMetrics[]interface{} `json:"node_count_metrics"`
  378. }
  379. type TaskStatuses {
  380. Task string `json:"task,omitempty"`
  381. ExitCode string `json:"exitCode,omitempty"`
  382. Message string `json:"message,omitempty"`
  383. }
  384. type Constraint {
  385. Type string `json:"type"`
  386. Editable bool `json:"editable"`
  387. Required bool `json:"required"`
  388. Sensitive bool `json:"sensitive"`
  389. ValidType string `json:"validType"`
  390. ValidRange interface{} `json:"validRange,optional"`
  391. }
  392. type Parameters {
  393. Name string `json:"name"`
  394. Description string `json:"description"`
  395. I18NDescription interface{} `json:"i18nDescription"`
  396. Value string `json:"value"`
  397. Constraint Constraint `json:"constraint"`
  398. }
  399. type Obs {
  400. ObsURL string `json:"obsUrl"`
  401. }
  402. type Remote {
  403. Obs Obs `json:"obs"`
  404. }
  405. type Attributes {
  406. DataFormat []string `json:"dataFormat"`
  407. DataSegmentation []string `json:"dataSegmentation"`
  408. DatasetType []string `json:"datasetType"`
  409. IsFree string `json:"isFree"`
  410. MaxFreeJobCount string `json:"maxFreeJobCount"`
  411. }
  412. type RemoteConstraints {
  413. DataType string `json:"dataType"`
  414. Attributes Attributes `json:"attributes,omitempty"`
  415. }
  416. type Inputs {
  417. Name string `json:"name"`
  418. Description string `json:"description"`
  419. LocalDir string `json:"localDir"`
  420. AccessMethod string `json:"accessMethod"`
  421. Remote Remote `json:"remote"`
  422. RemoteConstraints []RemoteConstraints `json:"remoteConstraints"`
  423. }
  424. type Outputs {
  425. Name string `json:"name"`
  426. LocalDir string `json:"localDir"`
  427. AccessMethod string `json:"accessMethod"`
  428. Remote Remote `json:"remote"`
  429. Mode string `json:"mode"`
  430. Period int32 `json:"period"`
  431. PrefetchToLocal bool `json:"prefetchToLocal"`
  432. }
  433. type Engine {
  434. EngineID string `json:"engineId"`
  435. EngineName string `json:"engineName"`
  436. EngineVersion string `json:"engineVersion"`
  437. V1Compatible bool `json:"v1Compatible"`
  438. RunUser string `json:"runUser"`
  439. ImageSource bool `json:"imageSource"`
  440. }
  441. type Policies {
  442. }
  443. type Algorithm {
  444. ID string `json:"id"`
  445. Name string `json:"name"`
  446. V1Algorithm bool `json:"v1Algorithm"`
  447. SubscriptionID string `json:"subscriptionId"`
  448. ItemVersionID string `json:"itemVersionId"`
  449. ContentID string `json:"contentId"`
  450. Parameters []Parameters `json:"parameters"`
  451. ParametersCustomization bool `json:"parametersCustomization"`
  452. Inputs []Inputs `json:"inputs"`
  453. Outputs []Outputs `json:"outputs"`
  454. Engine Engine `json:"engine"`
  455. Policies Policies `json:"policies"`
  456. }
  457. type Billing {
  458. Code string `json:"code"`
  459. UnitNum int32 `json:"unitNum"`
  460. }
  461. type CPU {
  462. Arch string `json:"arch"`
  463. CoreNum int32 `json:"coreNum"`
  464. }
  465. type Memory {
  466. Size int `json:"size"`
  467. Unit string `json:"unit"`
  468. }
  469. type Disk {
  470. Size int32 `json:"size"`
  471. Unit string `json:"unit"`
  472. }
  473. type FlavorInfo {
  474. CPU CPU `json:"cpu"`
  475. Gpu Gpu `json:"gpu"`
  476. Memory Memory `json:"memory"`
  477. Disk Disk `json:"disk"`
  478. }
  479. type FlavorDetail {
  480. FlavorType string `json:"flavorType"`
  481. Billing Billing `json:"billing"`
  482. Attributes Attributes `json:"attributes"`
  483. FlavorInfo FlavorInfo `json:"flavorInfo"`
  484. }
  485. type Resource {
  486. Policy string `json:"policy,optional"`
  487. FlavorId string `json:"flavorId,optional"`
  488. FlavorName string `json:"flavorName,optional"`
  489. NodeCount int32 `json:"nodeCount,optional"`
  490. FlavorDetail FlavorDetail `json:"flavorDetail,optional"`
  491. }
  492. type LogExportPathCreateTraining {
  493. }
  494. type Spec {
  495. Resource Resource `json:"resource"`
  496. LogExportPath LogExportPath `json:"logExportPath"`
  497. IsHostedLog bool `json:"isHostedLog"`
  498. }
  499. type Items {
  500. Kind string `json:"kind"`
  501. Metadata Metadata `json:"metadata"`
  502. Status Status `json:"status"`
  503. Algorithm JobAlgorithmResponse `json:"algorithm,omitempty"`
  504. Spec Spec `json:"spec"`
  505. projectId string `json:"projectId"`
  506. }
  507. type JobAlgorithmResponse{
  508. ID string `json:"id"`
  509. Name string `json:"name"`
  510. SubscriptionID string `json:"subscriptionId"`
  511. ItemVersionID string `json:"itemVersionId"`
  512. CodeDir string `json:"codeDir"`
  513. BootFile string `json:"bootFile"`
  514. AutosearchConfigPath string `json:"autosearchConfigPath"`
  515. AutosearchFrameworkPath string `json:"autosearchFrameworkPath"`
  516. Command string `json:"command"`
  517. Parameters []Parameters `json:"parameters"`
  518. Policies Policies `json:"policies"`
  519. Inputs []Inputs `json:"inputs"`
  520. Outputs []Outputs `json:"outputs"`
  521. Engine Engine `json:"engine"`
  522. LocalCodeDir string `json:"localCodeDir"`
  523. WorkingDir string `json:"workingDir"`
  524. Environments []map[string]string `json:"environments"`
  525. }
  526. type (
  527. ListTrainingJobsreq {
  528. ProjectId string `path:"projectId"`
  529. Limit int32 `form:"limit,optional"`
  530. Offset int32 `form:"offSet,optional"`
  531. /****************parmas from octpus
  532. platform string `json:"platform,optional"`
  533. pageIndex int32 `json:"pageIndex,optional"`
  534. pageSize int32 `json:"pageSize,optional"`********************/
  535. /****************智算类型 ModelartsType parmas ********************/
  536. ModelArtsType string `form:"modelArtsType,optional"`
  537. }
  538. ListTrainingJobsresp {
  539. Total int32 `json:"total"`
  540. Count int32 `json:"count,omitempty"`
  541. Limit int32 `json:"limit,omitempty"`
  542. Offset int32 `json:"offset,omitempty"`
  543. SortBy string `json:"sortBy,omitempty"`
  544. Order string `json:"order,omitempty"`
  545. GroupBy string `json:"groupBy,omitempty"`
  546. WorkspaceID string `json:"workspaceId,omitempty"`
  547. AiProject string `json:"aiProject,omitempty"`
  548. Items []*Items `json:"items,omitempty"`
  549. Code int32 `json:"code,omitempty,omitempty"`
  550. Msg string `json:"msg,omitempty,omitempty"`
  551. ErrorMsg string `json:"ErrorMsg,omitempty"`
  552. /****************parmas from octpus
  553. success bool `json:"success"`
  554. payload PayloadGetTrainJobList `json:"payload"`
  555. error Error `json:"error"`********************/
  556. }
  557. /****************parmas from octpus
  558. PayloadGetTrainJobList {
  559. totalSize int32 `json:"totalSize"`
  560. trainJobs []*TrainJob `json:"trainJobs,optional,omitempty"`
  561. }
  562. TrainJob {
  563. algorithmId string `json:"algorithmId,optional" copier:"algorithmId"`
  564. algorithmName string `json:"algorithmId,optional" copier:"algorithmId"`
  565. algorithmVersion string `json:"algorithmVersion,optional" copier:"algorithmVersion"`
  566. completedAt int64 `json:"completedAt,optional" copier:"completedAt"`
  567. config []*Config `json:"config,optional" copier:"config"`
  568. createdAt int64 `json:"createdAt,optional" copier:"createdAt"`
  569. dataSetId string `json:"dataSetId,optional" copier:"dataSetId"`
  570. dataSetName string `json:"dataSetName,optional" copier:"dataSetName"`
  571. dataSetVersion string `json:"dataSetVersion,optional" copier:"dataSetVersion"`
  572. desc string `json:"desc,optional" copier:"desc"`
  573. id string `json:"id,optional" copier:"id"`
  574. imageId string `json:"imageId,optional" copier:"imageId"`
  575. imageName string `json:"imageName,optional" copier:"imageName"`
  576. imageUrl string `json:"imageUrl,optional" copier:"imageUrl"`
  577. imageVersion string `json:"imageVersion,optional" copier:"imageVersion"`
  578. isDistributed string `json:"isDistributed,optional" copier:"isDistributed"`
  579. name string `json:"name,optional" copier:"name"`
  580. resourcePool int64 `json:"resourcePool,optional" copier:"resourcePool"`
  581. runSec int64 `json:"runSec,optional" copier:"runSec"`
  582. startedAt int64 `json:"startedAt,optional" copier:"startedAt"`
  583. status string `json:"status,optional" copier:"status"`
  584. updatedAt int64 `json:"updatedAt,optional" copier:"updatedAt"`
  585. userId string `json:"userId,optional" copier:"userId"`
  586. workspaceId string `json:"workspaceId,optional" copier:"workspaceId"`
  587. }********************/
  588. )
  589. /******************ListTrainingJobs end*************************/
  590. /******************DeleteTrainingJob start*************************/
  591. type (
  592. DeleteTrainingJobReq {
  593. Project_id string `path:"projectId"`
  594. Training_job_id string `path:"trainingJobId"`
  595. /****************parmas from modelArtsType ********************/
  596. modelArtsType string `form:"modelArtsType,optional"`
  597. /****************parmas from octpus
  598. platform string `path:"platform"`
  599. jobIds []*string `path:"jobIds"`
  600. ********************/
  601. }
  602. DeleteTrainingJobResp {
  603. Code int32 `json:"code,omitempty"`
  604. Msg string `json:"msg,omitempty"`
  605. ErrorMsg string `json:"ErrorMsg,omitempty"`
  606. /****************parmas from octpus
  607. success bool `json:"success,optional"`
  608. payload PayloadDeleteTrainJob `json:"payload,optional"`
  609. error Error `json:"error,optional"`
  610. ********************/
  611. }
  612. /****************parmas from octpus
  613. PayloadDeleteTrainJob {
  614. deletedAt int64 `json:"deletedAt,optional"`
  615. }********************/
  616. )
  617. /******************DeleteTrainingJob end*************************/
  618. /******************Create Service Start*************************/
  619. type (
  620. CreateServiceReq {
  621. WorkspaceId string `json:"workspaceId,optional" copier:"WorkspaceId"`
  622. Schedule Scheduler `json:"schedule,optional" copier:"Schedule"`
  623. ClusterId string `json:"clusterId,optional" copier:"ClusterId"`
  624. InferType string `json:"inferType,optional" copier:"InferType"`
  625. VpcId string `json:"vpcId,optional" copier:"VpcId"`
  626. ServiceName string `json:"serviceName,optional" copier:"ServiceName"`
  627. Description string `json:"description,optional" copier:"Description"`
  628. SecurityGroupId string `json:"securityGroupId,optional" copier:"SecurityGroupId"`
  629. SubnetNetworkId string `json:"subnetNetworkId,optional" copier:"SubnetNetworkId"`
  630. Config []ServiceConfig `json:"config,optional" copier:"Config"`
  631. ProjectId string `path:"projectId"`
  632. /****************智算类型 ModelartsType parmas ********************/
  633. ModelArtsType string `json:"modelartsType,optional"`
  634. }
  635. )
  636. type CreateServiceResp {
  637. ServiceId string `json:"serviceId,omitempty" copier:"ServiceId"`
  638. ResourceIds []string `json:"resourceIds,omitempty" copier:"ResourceIds"`
  639. Code int32 `json:"code,omitempty"`
  640. Msg string `json:"msg,omitempty"`
  641. ErrorMsg string `json:"ErrorMsg,omitempty"`
  642. }
  643. type Scheduler {
  644. Duration int32 `json:"duration,optional" copier:"Duration"`
  645. TimeUnit string `json:"timeUnit,optional" copier:"TimeUnit"`
  646. Type string `json:"type,optional" copier:"Type"`
  647. }
  648. type ServiceConfig {
  649. CustomSpec CustomSpec `json:"customSpec,optional" copier:"CustomSpec"`
  650. Envs map[string]string `json:"envs,optional" copier:"Envs"`
  651. Specification string `json:"specification,optional" copier:"Specification"`
  652. Weight int32 `json:"weight,optional" copier:"Weight"`
  653. ModelId string `json:"modelId,optional" copier:"ModelId"`
  654. SrcPath string `json:"srcPath,optional" copier:"SrcPath"`
  655. ReqUri string `json:"reqUri,optional" copier:"ReqUri"`
  656. MappingType string `json:"mappingType,optional" copier:"MappingType"`
  657. ClusterId string `json:"clusterId,optional" copier:"ClusterId"`
  658. Nodes []string `json:"nodes,optional" copier:"Nodes"`
  659. SrcType string `json:"srcType,optional" copier:"SrcType"`
  660. DestPath string `json:"destPath,optional" copier:"DestPath"`
  661. InstanceCount int32 `json:"instanceCount,optional" copier:"InstanceCount"`
  662. }
  663. type CustomSpec {
  664. GpuP4 float64 `json:"gpuP4,optional" copier:"GpuP4"`
  665. Memory int64 `json:"memory,optional" copier:"Memory"`
  666. Cpu float64 `json:"cpu,optional" copier:"Cpu"`
  667. AscendA310 int64 `json:"ascendA310,optional" copier:"AscendA310"`
  668. }
  669. /******************Create Service End*************************/
  670. /******************Delete Service Start*************************/
  671. type (
  672. DeleteServiceReq {
  673. ProjectId string `path:"projectId"`
  674. ServiceId string `path:"serviceId"`
  675. /****************智算类型 ModelartsType parmas ********************/
  676. ModelArtsType string `form:"modelArtsType,optional"`
  677. }
  678. )
  679. type DeleteServiceResp {
  680. Code int32 `json:"code,omitempty"`
  681. Msg string `json:"msg,omitempty"`
  682. ErrorMsg string `json:"ErrorMsg,omitempty"`
  683. }
  684. /******************Delete Service End*************************/
  685. /******************ClientList Services Start*************************/
  686. type (
  687. ListServicesReq {
  688. ProjectId string `path:"projectId"`
  689. Limit int32 `form:"limit,optional"`
  690. Offset int32 `form:"offSet,optional"`
  691. /****************智算类型 ModelartsType parmas ********************/
  692. ModelArtsType string `form:"modelArtsType,optional"`
  693. Platform string `form:"platform,optional"`
  694. }
  695. )
  696. type ListServicesResp {
  697. TotalCount int32 `json:"total,omitempty" copier:"TotalCount"`
  698. Count int32 `json:"count,omitempty" copier:"Count"`
  699. Services []ListServices `json:"services,omitempty" copier:"Services"`
  700. Code int32 `json:"code,omitempty"`
  701. Msg string `json:"msg,omitempty"`
  702. ErrorMsg string `json:"ErrorMsg,omitempty"`
  703. }
  704. type ListServices {
  705. FailedTimes uint32 `json:"failedTimes,omitempty" copier:"FailedTimes"`
  706. Owner string `json:"owner,omitempty" copier:"Owner"`
  707. DueTime int32 `json:"dueTime,omitempty" copier:"DueTime"`
  708. FinishedTime int32 `json:"finishedTime,omitempty" copier:"FinishedTime"`
  709. InferType string `json:"inferType,omitempty" copier:"InferType"`
  710. ServiceName string `json:"serviceName,omitempty" copier:"ServiceName"`
  711. Description string `json:"description,omitempty" copier:"Description"`
  712. Project string `json:"project,omitempty" copier:"Project"`
  713. InvocationTimes uint32 `json:"invocationTimes,omitempty" copier:"InvocationTimes"`
  714. PublishAt uint32 `json:"publishAt,omitempty" copier:"PublishAt"`
  715. WorkspaceId string `json:"workspaceId,omitempty" copier:"WorkspaceId"`
  716. Scheduler []*Scheduler `json:"scheduler,omitempty" copier:"Scheduler"`
  717. StartTime int32 `json:"startTime,omitempty" copier:"StartTime"`
  718. OperationTime string `json:"operationTime,omitempty" copier:"OperationTime"`
  719. IsShared bool `json:"isShared,omitempty" copier:"IsShared"`
  720. ServiceId string `json:"serviceId,omitempty" copier:"ServiceId"`
  721. Progress int32 `json:"progress,omitempty" copier:"Progress"`
  722. SharedCount int32 `json:"sharedCount,omitempty" copier:"SharedCount"`
  723. Tenant string `json:"tenant,omitempty" copier:"Tenant"`
  724. Status string `json:"status,omitempty" copier:"Status"`
  725. IsOpenedSampleCollection string `json:"isOpenedSampleCollection,omitempty" copier:"IsOpenedSampleCollection"`
  726. TransitionAt int32 `json:"transitionAt,omitempty" copier:"TransitionAt"`
  727. IsFree bool `json:"isFree,omitempty" copier:"IsFree"`
  728. AdditionalProperties map[string]string `json:"additionalProperties,omitempty" copier:"AdditionalProperties"`
  729. }
  730. /******************ClientList Service End*************************/
  731. /******************Show Service Start*************************/
  732. type (
  733. ShowServiceReq {
  734. ProjectId string `path:"projectId"`
  735. ServiceId string `path:"serviceId"`
  736. /****************智算类型 ModelartsType parmas ********************/
  737. ModelArtsType string `json:"modelartsType,optional"`
  738. }
  739. )
  740. type ShowServiceResp {
  741. FailedTimes uint32 `json:"failedTimes,omitempty" copier:"FailedTimes"`
  742. Owner string `json:"owner,omitempty" copier:"Owner"`
  743. DueTime int32 `json:"dueTime,omitempty" copier:"DueTime"`
  744. FinishedTime int32 `json:"finishedTime,omitempty" copier:"FinishedTime"`
  745. InferType string `json:"inferType,omitempty" copier:"InferType"`
  746. ServiceName string `json:"serviceName,omitempty" copier:"ServiceName"`
  747. Description string `json:"description,omitempty" copier:"Description"`
  748. Project string `json:"project,omitempty" copier:"Project"`
  749. InvocationTimes uint32 `json:"invocationTimes,omitempty" copier:"InvocationTimes"`
  750. PublishAt uint32 `json:"publishAt,omitempty" copier:"PublishAt"`
  751. WorkspaceId string `json:"workspaceId,omitempty" copier:"WorkspaceId"`
  752. Scheduler []Scheduler `json:"scheduler,omitempty" copier:"Scheduler"`
  753. StartTime int32 `json:"startTime,omitempty" copier:"StartTime"`
  754. OperationTime string `json:"operationTime,omitempty" copier:"OperationTime"`
  755. IsShared bool `json:"isShared,omitempty" copier:"IsShared"`
  756. ServiceId string `json:"serviceId,omitempty" copier:"ServiceId"`
  757. Progress int32 `json:"progress,omitempty" copier:"Progress"`
  758. SharedCount int32 `json:"sharedCount,omitempty" copier:"SharedCount"`
  759. Tenant string `json:"tenant,omitempty" copier:"Tenant"`
  760. Status string `json:"status,omitempty" copier:"Status"`
  761. IsOpenedSampleCollection string `json:"isOpenedSampleCollection,omitempty" copier:"IsOpenedSampleCollection"`
  762. TransitionAt int32 `json:"transitionAt,omitempty" copier:"TransitionAt"`
  763. IsFree bool `json:"isFree,omitempty" copier:"IsFree"`
  764. AdditionalProperties map[string]string `json:"additionalProperties,omitempty" copier:"AdditionalProperties"`
  765. ClusterId string `json:"clusterId,omitempty" copier:"ClusterId"`
  766. VpcId string `json:"vpcId,omitempty" copier:"VpcId"`
  767. SubnetNetworkId string `json:"subnetNetworkId,omitempty" copier:"SubnetNetworkId"`
  768. SecurityGroupId string `json:"securityGroupId,omitempty" copier:"SecurityGroupId"`
  769. Config []QueryServiceConfig `json:"config,omitempty" copier:"Config"`
  770. AccessAddress string `json:"accessAddress,omitempty" copier:"AccessAddress"`
  771. BindAccessAddress string `json:"bindAccessAddress,omitempty" copier:"BindAccessAddress"`
  772. UpdateTime string `json:"updateTime,omitempty" copier:"UpdateTime"`
  773. DebugUrl string `json:"debugUrl,omitempty" copier:"DebugUrl"`
  774. Code int32 `json:"code,omitempty"`
  775. Msg string `json:"msg,omitempty"`
  776. ErrorMsg string `json:"ErrorMsg,omitempty"`
  777. }
  778. type QueryServiceConfig {
  779. ModelVersion string `json:"modelVersion,omitempty" copier:"ModelVersion"`
  780. FinishedTime string `json:"finishedTime,omitempty" copier:"FinishedTime"`
  781. CustomSpec *CustomSpec `json:"CustomSpec,omitempty" copier:"CustomSpec"`
  782. Envs map[string]string `json:"envs,omitempty" copier:"Envs"`
  783. Specification string `json:"specification,omitempty" copier:"Specification"`
  784. Weight int32 `json:"weight,omitempty" copier:"Weight"`
  785. ModelId string `json:"modelId,omitempty" copier:"ModelId"`
  786. SrcPath string `json:"srcPath,omitempty" copier:"SrcPath"`
  787. ReqUri string `json:"reqUri,omitempty" copier:"ReqUri"`
  788. MappingType string `json:"mappingType,omitempty" copier:"MappingType"`
  789. StartTime string `json:"startTime,omitempty" copier:"StartTime"`
  790. ClusterId string `json:"clusterId,omitempty" copier:"ClusterId"`
  791. Nodes []string `json:"nodes,omitempty" copier:"Nodes"`
  792. MappingRule string `json:"mappingRule,omitempty" copier:"MappingRule"`
  793. ModelName string `json:"modelName,omitempty" copier:"ModelName"`
  794. SrcType string `json:"srcType,omitempty" copier:"SrcType"`
  795. DestPath string `json:"destPath,omitempty" copier:"DestPath"`
  796. InstanceCount int32 `json:"instanceCount,omitempty" copier:"InstanceCount"`
  797. Status string `json:"status,omitempty" copier:"Status"`
  798. Scaling bool `json:"scaling,omitempty" copier:"Scaling"`
  799. SupportDebug bool `json:"supportDebug,omitempty" copier:"SupportDebug"`
  800. AdditionalProperties map[string]string `json:"additionalProperties,omitempty" copier:"AdditionalProperties"`
  801. }
  802. /******************Show Service End*************************/
  803. /******************ClientList Clusters Start*************************/
  804. type (
  805. ListClustersReq {
  806. ProjectId string `json:"projectId" copier:"ProjectId"`
  807. ClusterName string `json:"clusterName,optional" copier:"ClusterName"`
  808. Offset int64 `form:"offset,optional"`
  809. Limit int64 `form:"limit,optional"`
  810. SortBy string `json:"sortBy,optional" copier:"SortBy"`
  811. Order string `json:"order,optional" copier:"Order"`
  812. /****************智算类型 ModelartsType parmas ********************/
  813. ModelArtsType string `json:"modelartsType,optional"`
  814. }
  815. ListClustersResp {
  816. Resp200 ListClustersResp200 `json:"resp200,omitempty" copier:"Resp200"`
  817. Resp400 ListClustersResp400 `json:"resp400,omitempty" copier:"Resp400"`
  818. }
  819. )
  820. type ListClustersResp200 {
  821. Count int32 `json:"count,omitempty" copier:"Count"`
  822. Clusters []Cluster `json:"clusters,omitempty" copier:"Clusters"`
  823. }
  824. type ListClustersResp400 {
  825. ErrorCode string `json:"errorCode,optional" copier:"ErrorCode"`
  826. ErrorMsg string `json:"errorMsg,optional" copier:"ErrorMsg"`
  827. }
  828. type ClusterNode {
  829. Specification string `json:"specification,omitempty" copier:"Specification"`
  830. Count int32 `json:"count,omitempty" copier:"Count"`
  831. AvailableCount int32 `json:"availableCount,omitempty" copier:"AvailableCount"`
  832. }
  833. type Cluster {
  834. ClusterId string `json:"clusterId,omitempty" copier:"ClusterId"`
  835. ClusterName string `json:"clusterName,omitempty" copier:"ClusterName"`
  836. Description string `json:"description,omitempty" copier:"Description"`
  837. Tenant string `json:"tenant,omitempty" copier:"Tenant"`
  838. Project string `json:"project,omitempty" copier:"Project"`
  839. Owner string `json:"owner,omitempty" copier:"Owner"`
  840. CreatedAt int32 `json:"createdAt,omitempty" copier:"CreatedAt"`
  841. Status string `json:"status,omitempty" copier:"Status"`
  842. Nodes ClusterNode `json:"nodes,omitempty" copier:"Nodes"`
  843. AllocatableCpuCores float64 `json:"allocatableCpuCores,omitempty" copier:"AllocatableCpuCores"`
  844. AllocatableMemory int64 `json:"allocatableMemory,omitempty" copier:"AllocatableMemory"`
  845. PeriodNum int32 `json:"periodNum,omitempty" copier:"PeriodNum"`
  846. PeriodType string `json:"periodType,omitempty" copier:"PeriodType"`
  847. OrderId string `json:"orderId,omitempty" copier:"OrderId"`
  848. }
  849. /******************ClientList Clusters End*************************/
  850. /******************ListAlgorithms start*************************/
  851. type AlgorithmResponse {
  852. MetadataAlRp MetadataAlRp `json:"metadata,optional"`
  853. JobConfigAlRp JobConfigAlRp `json:"jobConfig,optional"`
  854. ResourceRequirementsAlRp []ResourceRequirements `json:"resourceRequirements,optional"`
  855. AdvancedConfigAlRp AdvancedConfigAl `json:"advancedConfig,optional"`
  856. }
  857. type MetadataAlRp {
  858. Id string `json:"id,optional"`
  859. Name string `json:"name,optional"`
  860. Description string `json:"description,optional"`
  861. CreateTime uint64 `json:"createTime,optional"`
  862. WorkspaceId string `json:"workspaceId,optional"`
  863. AiProject string `json:"aiProject,optional"`
  864. UserName string `json:"userName,optional"`
  865. DomainId string `json:"domainId,optional"`
  866. Source string `json:"source,optional"`
  867. ApiVersion string `json:"apiVersion,optional"`
  868. IsValid bool `json:"isValid,optional"`
  869. State string `son:"state,optional"`
  870. Size int32 `json:"size,optional"`
  871. Tags []*TagsAlRp `json:"tags,optional"`
  872. AttrList []string `json:"attrList,optional"`
  873. VersionNum int32 `json:"versionNum,optional"`
  874. UpdateTime uint64 `json:"updateTime,optional"`
  875. }
  876. type TagsAlRp {
  877. Tags map[string]string `json:"tags,optional"`
  878. }
  879. type JobConfigAlRp {
  880. CodeDir string `json:"codeDir,optional"`
  881. BootFile string `json:"bootFile,optional"`
  882. Command string `json:"command,optional"`
  883. ParametersAlRq []ParametersAlRq `json:"parameters,optional"`
  884. ParametersCustomization bool `json:"parametersCustomization,optional"`
  885. InputsAlRq []InputsAlRq `json:"inputs,optional"`
  886. OutputsAl []OutputsAl `json:"outputs,optional"`
  887. EngineAlRq EngineAlRq `json:"engine,optional"`
  888. }
  889. type ParametersAlRq {
  890. Name string `json:"name,optional"`
  891. Description string `json:"description,optional"`
  892. I18NDescription I18NDescription `json:"i18nDescription,optional"`
  893. Value string `json:"value,optional"`
  894. Constraint ConstraintAlRq `json:"constraint,optional"`
  895. }
  896. type I18NDescription {
  897. Language string `json:"language,optional"`
  898. Description string `json:"description,optional"`
  899. }
  900. type ConstraintAlRq {
  901. Type string `son:"type,optional"`
  902. Editable bool `json:"editable,optional"`
  903. Required bool `json:"required,optional"`
  904. Sensitive bool `json:"sensitive,optional"`
  905. ValidType string `json:"validType,optional"`
  906. ValidRange []string `json:"validRange,optional"`
  907. }
  908. type EngineAlRq {
  909. EngineId string `json:"engineId,optional"`
  910. EngineName string `json:"engineName,optional"`
  911. EngineVersion string `json:"engineVersion,optional"`
  912. ImageUrl string `json:"imageUrl,optional"`
  913. }
  914. type InputsAlRq {
  915. Name string `json:"name,optional"`
  916. Description string `json:"description,optional"`
  917. RemoteConstraints []RemoteConstraints `json:"remoteConstraints,optional"`
  918. }
  919. type OutputsAl {
  920. Name string `json:"name,optional"`
  921. Description string `json:"description,optional"`
  922. }
  923. type ResourceRequirements {
  924. Key string `json:"key,optional"`
  925. Value []string `json:"value,optional"`
  926. Operator string `json:"operator,optional"`
  927. }
  928. type AdvancedConfigAl {
  929. AutoSearch AutoSearch `json:"autoSearch,optional"`
  930. }
  931. type AutoSearch {
  932. SkipSearchParams string `json:"skipSearchParams,optional"`
  933. RewardAttrs []RewardAttrs `json:"rewardAttrs,optional"`
  934. SearchParams []SearchParams `json:"searchParams,optional"`
  935. AlgoConfigs []AlgoConfigs `json:"algoConfigs,optional"`
  936. }
  937. type AlgoConfigs {
  938. Name string `json:"name,optional"`
  939. AutoSearchAlgoConfigParameterAlRp []AutoSearchAlgoConfigParameterAlRp `json:"params,optional"`
  940. }
  941. type AutoSearchAlgoConfigParameterAlRp {
  942. Key string `json:"key,optional"`
  943. Value string `json:"value,optional"`
  944. Type string `json:"type,optional"`
  945. }
  946. type RewardAttrs {
  947. Name string `json:"name,optional"`
  948. Mode string `json:"mode,optional"`
  949. Regex string `json:"regex,optional"`
  950. }
  951. type SearchParams {
  952. Name string `json:"name,optional"`
  953. ParamType string `json:"paramType,optional"`
  954. LowerBound string `json:"lowerBound,optional"`
  955. UpperBound string `json:"upperBound,optional"`
  956. DiscretePointsNum string `json:"discretePointsNum,optional"`
  957. DiscreteValues []string `json:"discreteValues,optional"`
  958. }
  959. type (
  960. ListAlgorithmsReq {
  961. //ProjectId string `path:"projectId"`
  962. ProjectId string `path:"projectId,optional"`
  963. Offset int32 `form:"offset,optional"`
  964. Limit int32 `form:"limit,optional"`
  965. /****************parmas from modelArtsType ********************/
  966. modelArtsType string `form:"modelArtsType,optional"`
  967. // SortBy string `json:"sort_by,optional"`
  968. // Order string `json:"order,optional"`
  969. // GroupBy string `json:"group_by,optional"`
  970. // Searches string `json:"searches,optional"`
  971. // WorkspaceId string `json:"workspace_id,optional"`
  972. /****************parmas from octpus
  973. platform string `path:"platform"`
  974. pageIndex int32 `form:"pageIndex,optional"`
  975. pageSize int32 `form:"pageSize,optional"`
  976. ********************/
  977. }
  978. ListAlgorithmsResp {
  979. Total int32 `json:"total,omitempty"`
  980. Count int32 `json:"count,omitempty"`
  981. Limit int32 `json:"limit,omitempty"`
  982. SortBy string `json:"sortBy,omitempty"`
  983. Order string `json:"order,omitempty"`
  984. Items []*AlgorithmResponse `json:"items,omitempty"`
  985. Code int32 `json:"code,omitempty"`
  986. Msg string `json:"msg,omitempty"`
  987. ErrorMsg string `json:"ErrorMsg,omitempty"`
  988. /****************parmas from octpus********************/
  989. }
  990. )
  991. /******************ListAlgorithms End*************************/
  992. /******************DeleteAlgorithm Start*************************/
  993. type (
  994. DeleteAlgorithmReq {
  995. ProjectId string `path:"projectId" copier:"ProjectId"`
  996. AlgorithmId string `path:"algorithmId" jcopier:"AlgorithmId"`
  997. /****************parmas from modelArtsType ********************/
  998. modelArtsType string `form:"modelArtsType,optional"`
  999. }
  1000. DeleteAlgorithmResp {
  1001. Code int32 `json:"code,omitempty"`
  1002. Msg string `json:"msg,omitempty"`
  1003. ErrorMsg string `json:"ErrorMsg,omitempty"`
  1004. }
  1005. )
  1006. /******************DeleteAlgorithm End*************************/
  1007. /******************Show Algorithm By Uuid start*************************/
  1008. type (
  1009. ShowAlgorithmByUuidReq {
  1010. ProjectId string `path:"projectId" copier:"ProjectId"`
  1011. AlgorithmId string `path:"algorithmId" copier:"AlgorithmId"`
  1012. /****************智算类型 ModelartsType parmas ********************/
  1013. ModelArtsType string `form:"modelartsType,optional"`
  1014. }
  1015. ShowAlgorithmByUuidResp {
  1016. Metadata *MetadataAlRq `json:"metadata,omitempty" copier:"Metadata"`
  1017. JobConfig *JobConfigAl `json:"jobConfig,omitempty" copier:"JobConfig"`
  1018. ResourceRequirements []*ResourceRequirements `json:"resourceRequirements,omitempty" copier:"ResourceRequirements"`
  1019. AdvancedConfig *AdvancedConfigAl `json:"advancedConfig,omitempty" copier:"AdvancedConfig"`
  1020. Code int32 `json:"code,omitempty"`
  1021. Msg string `json:"msg,omitempty"`
  1022. ErrorMsg string `json:"ErrorMsg,omitempty"`
  1023. }
  1024. )
  1025. /******************Show Algorithm By Uuid end*************************/
  1026. /******************CreateAlgorithm start*************************/
  1027. type MetadataAlRq {
  1028. Id string `json:"id,optional"`
  1029. Name string `json:"name,optional"`
  1030. Description string `json:"description,optional"`
  1031. WorkspaceId string `json:"workspaceId,optional"`
  1032. AiProject string `json:"aiProject,optional"`
  1033. }
  1034. type JobConfigAl {
  1035. CodeDir string `json:"codeDir,optional"`
  1036. BootFile string `json:"bootFile,optional"`
  1037. Command string `json:"command,optional"`
  1038. Parameters []ParametersAlRq `json:"parameters,optional"`
  1039. ParametersCustomization bool `json:"parametersCustomization,optional"`
  1040. Inputs []InputsAlRq `json:"inputs,optional"`
  1041. Outputs []OutputsAl `json:"outputs,optional"`
  1042. Engine EngineAlRq `json:"engine,optional"`
  1043. }
  1044. type ShareInfo {
  1045. }
  1046. type (
  1047. CreateAlgorithmReq {
  1048. MetadataCARq *MetadataAlRq `json:"metadata,optional"`
  1049. JobConfigCARq *JobConfigAl `json:"jobConfig,optional"`
  1050. ResourceRequirementsCARq []*ResourceRequirements `json:"resourceRequirements,optional"`
  1051. AdvancedConfigCARq *AdvancedConfigAl `json:"advancedConfig,optional"`
  1052. ProjectIdCARq string `path:"projectId"`
  1053. /****************parmas from modelArtsType ********************/
  1054. modelArtsType string `json:"modelArtsType,optional"`
  1055. }
  1056. CreateAlgorithmResp {
  1057. MetadataCARp *MetadataAlRp `json:"metadata,omitempty"`
  1058. Share_infoCARp *ShareInfo `json:"shareInfo,omitempty"`
  1059. JobConfigCARp *JobConfigAl `json:"jobConfig,omitempty"`
  1060. ResourceRequirementsCARp []*ResourceRequirements `json:"resourceRequirements,omitempty"`
  1061. AdvancedConfigCARp *AdvancedConfigAl `json:"advancedConfig,omitempty"`
  1062. Code int32 `json:"code,omitempty"`
  1063. Msg string `json:"msg,omitempty"`
  1064. ErrorMsg string `json:"ErrorMsg,omitempty"`
  1065. }
  1066. )
  1067. /******************CreateTrainingJob end*************************/
  1068. /******************Delete dataset start*************************/
  1069. type DeleteDataSetReq {
  1070. DatasetId string `path:"datasetId"`
  1071. ProjectId string `path:"projectId"`
  1072. /****************parmas from modelArtsType ********************/
  1073. modelArtsType string `form:"modelArtsType,optional"`
  1074. }
  1075. type DeleteDataSetResp {
  1076. Code int32 `json:"code,omitempty"`
  1077. Msg string `json:"msg,omitempty"`
  1078. ErrorMsg string `json:"ErrorMsg,omitempty"`
  1079. }
  1080. /******************Delete dataset end*************************/
  1081. /******************Notebook Type start*************************/
  1082. type (
  1083. ListNotebookReq {
  1084. ProjectId string `json:"projectId" copier:"ProjectId"`
  1085. Param ListNotebookParam `json:"param,optional" copier:"Param"`
  1086. /****************智算类型 ModelartsType parmas ********************/
  1087. Platform string `json:"platform,optional"`
  1088. }
  1089. ListNotebookResp {
  1090. Current int32 `json:"current,omitempty" copier:"Current"`
  1091. Data []NotebookResp `json:"data" copier:"Data"`
  1092. Pages int32 `json:"pages,omitempty" copier:"Pages"`
  1093. Size int32 `json:"size,omitempty" copier:"Size"`
  1094. Total int64 `json:"total" copier:"Total"`
  1095. Code int32 `json:"code,omitempty"`
  1096. Msg string `json:"msg,omitempty"`
  1097. ErrorMsg string `json:"errorMsg,omitempty"`
  1098. }
  1099. ListNotebookParam {
  1100. Feature string `json:"feature,optional" copier:"Feature"`
  1101. Limit int32 `json:"limit,optional" copier:"Limit"`
  1102. Name string `json:"name,optional" copier:"Name"`
  1103. PoolId string `json:"poolId,optional" copier:"PoolId"`
  1104. Offset int32 `json:"offset,optional" copier:"Offset"`
  1105. Owner string `json:"owner,optional" copier:"Owner"`
  1106. SortDir string `json:"sortDir,optional" copier:"SortDir"`
  1107. SortKey string `json:"sortKey,optional" copier:"SortKey"`
  1108. Status string `json:"status,optional" copier:"Status"`
  1109. WorkspaceId string `json:"workspaceId,optional" copier:"WorkspaceId"`
  1110. }
  1111. CreateNotebookReq {
  1112. ProjectId string `json:"projectId" copier:"ProjectId"`
  1113. Param CreateNotebookParam `json:"param" copier:"Param"`
  1114. /****************智算类型 ModelartsType parmas ********************/
  1115. ModelArtsType string `json:"modelArtsType,optional"`
  1116. }
  1117. CreateNotebookResp {
  1118. NotebookResp *NotebookResp `json:"notebookResp,omitempty" copier:"NotebookResp"`
  1119. Code int32 `json:"code,omitempty"`
  1120. Msg string `json:"msg,omitempty"`
  1121. ErrorMsg string `json:"errorMsg,omitempty"`
  1122. }
  1123. CreateNotebookParam {
  1124. Description string `json:"description,optional" copier:"Description"`
  1125. Duration int64 `json:"duration,optional" copier:"Duration"`
  1126. Endpoints []EndpointsReq `json:"endpoints,optional" copier:"Endpoints"`
  1127. Feature string `json:"feature,optional" copier:"Feature"`
  1128. Flavor string `json:"flavor" copier:"Flavor"`
  1129. ImageId string `json:"imageId" copier:"ImageId"`
  1130. Name string `json:"name" copier:"Name"`
  1131. PoolId string `json:"poolId,optional" copier:"PoolId"`
  1132. Volume VolumeReq `json:"volume" copier:"Volume"`
  1133. WorkspaceId string `json:"workspaceId,optional" copier:"WorkspaceId"`
  1134. Hooks CustomHooks `json:"hooks" copier:"Hooks"`
  1135. Lease LeaseReq `json:"lease,optional" copier:"Lease"`
  1136. }
  1137. StartNotebookReq {
  1138. Id string `json:"id" copier:"Id"`
  1139. ProjectId string `json:"projectId" copier:"ProjectId"`
  1140. Param StartNotebookParam `json:"param" copier:"Param"`
  1141. /****************智算类型 ModelartsType parmas ********************/
  1142. Platform string `json:"platform,optional"`
  1143. }
  1144. StartNotebookResp {
  1145. NotebookResp NotebookResp `json:"notebookResp" copier:"NotebookResp"`
  1146. Code int32 `json:"code,omitempty"`
  1147. Msg string `json:"msg,omitempty"`
  1148. ErrorMsg string `json:"errorMsg,omitempty"`
  1149. }
  1150. StartNotebookParam {
  1151. Duration int64 `json:"duration" copier:"Duration"`
  1152. TypeStartNotebook string `json:"type" copier:"TypeStartNotebook"`
  1153. }
  1154. StopNotebookReq {
  1155. Id string `json:"id" copier:"Id"`
  1156. ProjectId string `json:"projectId" copier:"ProjectId"`
  1157. /****************智算类型 ModelartsType parmas ********************/
  1158. ModelArtsType string `json:"modelArtsType,optional"`
  1159. }
  1160. StopNotebookResp {
  1161. NotebookResp NotebookResp `json:"notebookResp" copier:"NotebookResp"`
  1162. Code int32 `json:"code,omitempty"`
  1163. Msg string `json:"msg,omitempty"`
  1164. ErrorMsg string `json:"errorMsg,omitempty"`
  1165. }
  1166. GetNotebookStorageReq {
  1167. InstanceId string `json:"instanceId" copier:"InstanceId"`
  1168. ProjectId string `json:"projectId" copier:"ProjectId"`
  1169. /****************智算类型 ModelartsType parmas ********************/
  1170. ModelArtsType string `json:"modelArtsType,optional"`
  1171. }
  1172. GetNotebookStorageResp {
  1173. Current int32 `json:"current" copier:"Current"`
  1174. Data []DataVolumesRes `json:"data" copier:"Data"`
  1175. Pages int32 `json:"pages" copier:"Pages"`
  1176. Size int32 `json:"size" copier:"Size"`
  1177. Total int64 `json:"total" copier:"Total"`
  1178. }
  1179. MountNotebookStorageReq {
  1180. InstanceId string `json:"instanceId" copier:"InstanceId"`
  1181. ProjectId string `json:"projectId" copier:"ProjectId"`
  1182. Param MountNotebookStorageParam `json:"param" copier:"Param"`
  1183. /****************智算类型 ModelartsType parmas ********************/
  1184. ModelArtsType string `json:"modelArtsType,optional"`
  1185. }
  1186. MountNotebookStorageResp {
  1187. Category string `json:"category" copier:"Category"`
  1188. Id string `json:"id" copier:"Id"`
  1189. MountPath string `json:"mountPath" copier:"MountPath"`
  1190. Status string `json:"status" copier:"Status"`
  1191. Uri string `json:"uri" copier:"Uri"`
  1192. }
  1193. MountNotebookStorageParam {
  1194. Category string `json:"category" copier:"Category"`
  1195. MountPath string `json:"mountPath" copier:"MountPath"`
  1196. Uri string `json:"uri" copier:"Uri"`
  1197. }
  1198. DataVolumesRes {
  1199. Category string `json:"category" copier:"Category"`
  1200. Id string `json:"id" copier:"Id"`
  1201. MountPath string `json:"mountPath" copier:"MountPath"`
  1202. Status string `json:"status" copier:"Status"`
  1203. Uri string `json:"uri" copier:"Uri"`
  1204. }
  1205. NotebookResp {
  1206. ActionProgress []ActionProgress `json:"actionProgress,omitempty" copier:"ActionProgress"`
  1207. Description string `json:"description,omitempty" copier:"Description"`
  1208. Endpoints []EndpointsRes `json:"endpoints,omitempty" copier:"Endpoints"`
  1209. FailReason string `json:"failReason,omitempty" copier:"FailReason"`
  1210. Flavor string `json:"flavor,omitempty" copier:"Flavor"`
  1211. Id string `json:"id,omitempty" copier:"Id"`
  1212. Image Image `json:"image,omitempty" copier:"Image"`
  1213. Lease Lease `json:"lease,omitempty" copier:"Lease"`
  1214. Name string `json:"name,omitempty" copier:"Name"`
  1215. Pool Pool `json:"pool,omitempty" copier:"Pool"`
  1216. Status string `json:"status,omitempty" copier:"Status"`
  1217. Token string `json:"token,omitempty" copier:"Token"`
  1218. Url string `json:"url,omitempty" copier:"Url"`
  1219. Volume VolumeRes `json:"volume,omitempty" copier:"Volume"`
  1220. WorkspaceId string `json:"workspaceId,omitempty" copier:"WorkspaceId"`
  1221. Feature string `json:"feature,omitempty" copier:"Feature"`
  1222. CreateAt int64 `json:"createAt,omitempty" copier:"CreateAt"` // *
  1223. Hooks Hooks `json:"hooks,omitempty" copier:"Hooks"` // *
  1224. Tags []string `json:"tags,omitempty" copier:"Tags"` // *
  1225. UpdateAt int64 `json:"updateAt,omitempty" copier:"UpdateAt"` // *
  1226. UserNotebookResp UserNotebookResp `json:"user,omitempty" copier:"UserNotebookResp"` // *
  1227. UserId string `json:"userId,omitempty" copier:"UserId"` // *
  1228. BillingItems []string `json:"billingItems,omitempty" copier:"BillingItems"` // *
  1229. }
  1230. UserNotebookResp{
  1231. UserNotebookDomain UserNotebookDomain `json:"domain,omitempty" copier:"UserNotebookDomain"` // *
  1232. Id string `json:"id,omitempty" copier:"Id"` // *
  1233. Name string `json:"name,omitempty" copier:"Name"` // *
  1234. }
  1235. UserNotebookDomain{
  1236. Id string `json:"id,omitempty" copier:"Id"` // *
  1237. Name string `json:"name,omitempty" copier:"Name"` // *
  1238. }
  1239. Hooks{
  1240. ContainerHooksResp ContainerHooksResp `json:"containerHooks,omitempty" copier:"ContainerHooksResp"` // *
  1241. }
  1242. ContainerHooksResp{
  1243. PostStart PostStart `json:"postStart,omitempty" copier:"PostStart"` // *
  1244. PreStart PreStart `json:"preStart,omitempty" copier:"PreStart"` // *
  1245. }
  1246. PostStart{
  1247. Mode string `json:"mode,omitempty" copier:"Mode"` // *
  1248. Script string `json:"script,omitempty" copier:"Script"` // *
  1249. Type string `json:"type,omitempty" copier:"Type"` // *
  1250. }
  1251. PreStart{
  1252. Mode string `json:"mode,omitempty" copier:"Mode"` // *
  1253. Script string `json:"script,omitempty" copier:"Script"` // *
  1254. Type string `json:"type,omitempty" copier:"Type"` // *
  1255. }
  1256. ActionProgress{
  1257. Step int32 `json:"step,omitempty" copier:"Step"` // *
  1258. Status string `json:"status,omitempty" copier:"Status"` // *
  1259. Description string `json:"description,omitempty" copier:"Description"` // *
  1260. }
  1261. JobProgress {
  1262. NotebookId string `json:"notebookId" copier:"NotebookId"`
  1263. Status string `json:"status,omitempty" copier:"Status"`
  1264. Step int32 `json:"step,omitempty" copier:"Step"`
  1265. StepDescription string `json:"stepDescription,omitempty" copier:"StepDescription"`
  1266. }
  1267. EndpointsRes {
  1268. AllowedAccessIps []string `json:"allowedAccessIps,omitempty" copier:"AllowedAccessIps"`
  1269. DevService string `json:"devService,omitempty" copier:"DevService"`
  1270. SshKeys []string `json:"sshKeys,omitempty" copier:"SshKeys"`
  1271. }
  1272. Image {
  1273. Arch string `json:"arch,omitempty" copier:"Arch"`
  1274. CreateAt int64 `json:"createAt,omitempty" copier:"CreateAt"`
  1275. Description string `json:"description,omitempty" copier:"Description"`
  1276. DevServices []string `json:"devServices,omitempty" copier:"DevServices"`
  1277. Id string `json:"id,omitempty" copier:"Id"`
  1278. Name string `json:"name,omitempty" copier:"Name"`
  1279. Namespace string `json:"namespace,omitempty" copier:"Namespace"`
  1280. Origin string `json:"origin,omitempty" copier:"Origin"`
  1281. ResourceCategories []string `json:"resourceCategories,omitempty" copier:"ResourceCategories"`
  1282. ServiceType string `json:"serviceType,omitempty" copier:"ServiceType"`
  1283. Size int64 `json:"size,omitempty" copier:"Size"`
  1284. Status string `json:"status,omitempty" copier:"Status"`
  1285. StatusMessage string `json:"statusMessage,omitempty" copier:"StatusMessage"`
  1286. SupportResCategories []string `json:"supportResCategories,omitempty" copier:"SupportResCategories"`
  1287. SwrPath string `json:"swrPath,omitempty" copier:"SwrPath"`
  1288. Tag string `json:"tag,omitempty" copier:"Tag"`
  1289. TypeImage string `json:"type,omitempty" copier:"TypeImage"`
  1290. UpdateAt int64 `json:"updateAt,omitempty" copier:"UpdateAt"`
  1291. Visibility string `json:"visibility,omitempty" copier:"Visibility"`
  1292. WorkspaceId string `json:"workspaceId,omitempty" copier:"WorkspaceId"`
  1293. }
  1294. Lease {
  1295. CreateAt int64 `json:"createAt,omitempty" copier:"CreateAt"`
  1296. Duration int64 `json:"duration,omitempty" copier:"Duration"`
  1297. Enable bool `json:"enable,omitempty" copier:"Enable"`
  1298. TypeLease string `json:"type,omitempty" copier:"TypeLease"`
  1299. UpdateAt int64 `json:"updateAt,omitempty" copier:"UpdateAt"`
  1300. }
  1301. Pool {
  1302. Id string `json:"id,omitempty" copier:"Id"`
  1303. Name string `json:"name,omitempty" copier:"Name"`
  1304. }
  1305. VolumeRes {
  1306. Capacity int64 `json:"capacity,omitempty" copier:"Capacity"`
  1307. Category string `json:"category,omitempty" copier:"Category"`
  1308. MountPath string `json:"mountPath,omitempty" copier:"MountPath"`
  1309. Ownership string `json:"ownership,omitempty" copier:"Ownership"`
  1310. Status string `json:"status,omitempty" copier:"Status"`
  1311. }
  1312. EndpointsReq {
  1313. AllowedAccessIps []string `json:"allowedAccessIps" copier:"AllowedAccessIps"`
  1314. DevService string `json:"devService" copier:"DevService"`
  1315. SshKeys []string `json:"sshKeys" copier:"SshKeys"`
  1316. }
  1317. VolumeReq {
  1318. Capacity int64 `json:"capacity,optional" copier:"Capacity"`
  1319. Category string `json:"category" copier:"Category"`
  1320. Ownership string `json:"ownership" copier:"Ownership"`
  1321. Uri string `json:"uri,optional" copier:"Uri"`
  1322. }
  1323. CustomHooks {
  1324. ContainerHooks ContainerHooks `json:"containerHooks" copier:"ContainerHooks"`
  1325. }
  1326. ContainerHooks {
  1327. PostStart Config `json:"postStart" copier:"PostStart"`
  1328. PreStart Config `json:"preStart" copier:"PreStart"`
  1329. }
  1330. Config {
  1331. /****************parmas from modelarts********************/
  1332. Script string `json:"script" copier:"Script"`
  1333. TypeConfig string `json:"type" copier:"TypeConfig"`
  1334. /****************parmas from octopus
  1335. command string `json:"command" copier:"command"`
  1336. envs Envs `json:"envs" copier:"envs"`
  1337. isMainRole bool `json:"isMainRole" copier:"isMainRole"`
  1338. minFailedTaskCount int32 `json:"minFailedTaskCount" copier:"minFailedTaskCount"`
  1339. minSucceededTaskCount int32 `json:"minSucceededTaskCount" copier:"minSucceededTaskCount"`
  1340. name string `json:"name" copier:"name"`
  1341. parameters Parameters `json:"parameters" copier:"parameters"`
  1342. replicaStates ReplicaStates `json:"replicaStates" copier:"replicaStates"`
  1343. resourceSpecId string `json:"resourceSpecId" copier:"resourceSpecId"`
  1344. resourceSpecPrice int32 `json:"resourceSpecPrice" copier:"resourceSpecPrice"`
  1345. subTaskState string `json:"subTaskState" copier:"subTaskState"`
  1346. taskNumber int32 `json:"taskNumber" copier:"taskNumber"`
  1347. ********************/
  1348. }
  1349. LeaseReq {
  1350. Duration int64 `json:"duration,omitempty" copier:"Duration"`
  1351. TypeLeaseReq string `json:"type,omitempty" copier:"TypeLeaseReq"`
  1352. }
  1353. )
  1354. /******************Notebook Type end*************************/
  1355. /******************Visualization Job Start*************************/
  1356. type (
  1357. GetVisualizationJobReq {
  1358. Project_id string `json:"projectId"`
  1359. Param GetVisualizationJobParam `json:"param"`
  1360. /****************智算类型 ModelartsType parmas ********************/
  1361. ModelArtsType string `json:"modelArtsType,optional"`
  1362. }
  1363. GetVisualizationJobResp {
  1364. Is_success bool `json:"isSuccess"`
  1365. Error_code string `json:"errorCode"`
  1366. Error_message string `json:"errorMessage"`
  1367. Job_total_count int32 `json:"jobTotalCount"`
  1368. Job_count_limit int32 `json:"jobCountLimit"`
  1369. Jobs []Jobs `json:"jobs"`
  1370. Quotas int32 `json:"quotas"`
  1371. }
  1372. Jobs {
  1373. Job_name string `json:"jobName"`
  1374. Status int32 `json:"status"`
  1375. Create_time int64 `json:"createTime"`
  1376. Duration int64 `json:"duration"`
  1377. Job_desc string `json:"jobDesc"`
  1378. Service_url string `json:"serviceUrl"`
  1379. Train_url string `json:"trainUrl"`
  1380. Job_id string `json:"jobId"`
  1381. Resource_id string `json:"resourceId"`
  1382. }
  1383. GetVisualizationJobParam {
  1384. Status string `json:"status"`
  1385. Per_page int32 `json:"perPage"`
  1386. Page int32 `json:"page"`
  1387. SortBy string `json:"sortBy"`
  1388. Order string `json:"order"`
  1389. Search_content string `json:"searchContent"`
  1390. Workspace_id string `json:"workspaceId"`
  1391. }
  1392. CreateVisualizationJobReq {
  1393. Project_id string `json:"projectId"`
  1394. Param CreateVisualizationJobParam `json:"param"`
  1395. /****************智算类型 ModelartsType parmas ********************/
  1396. ModelArtsType string `json:"modelArtsType,optional"`
  1397. }
  1398. CreateVisualizationJobResp {
  1399. Error_message string `json:"errorMessage"`
  1400. Error_code string `json:"errorCode"`
  1401. Job_id int64 `json:"jobId"`
  1402. Job_name string `json:"jobName"`
  1403. Status int32 `json:"status"`
  1404. Create_time int64 `json:"createTime"`
  1405. Service_url string `json:"serviceUrl"`
  1406. }
  1407. CreateVisualizationJobParam {
  1408. Job_name string `json:"jobName"`
  1409. Job_desc string `json:"jobDesc"`
  1410. Train_url string `json:"trainUrl"`
  1411. Job_type string `json:"jobType"`
  1412. Flavor Flavor `json:"flavor"`
  1413. Schedule Schedule `json:"schedule"`
  1414. }
  1415. Flavor {
  1416. Code string `json:"code"`
  1417. }
  1418. Schedule {
  1419. Type_schedule string `json:"type"`
  1420. Time_unit string `json:"timeUnit"`
  1421. Duration int32 `json:"duration"`
  1422. }
  1423. )
  1424. /******************Visualization Job End*************************/
  1425. /******************create TrainIngJob start*************************/
  1426. type (
  1427. CreateTrainingJobReq { //创建训练任务入参
  1428. /****************parmas from modelarts********************/
  1429. Kind string `json:"kind,optional"`
  1430. Metadatas MetadataS `json:"metadata,optional"`
  1431. AlgorithmsCtRq AlgorithmsCtRq `json:"algorithm,optional"`
  1432. SpecsCtRq SpecsCtRq `json:"spec,optional"`
  1433. ProjectId string `path:"projectId"`
  1434. /****************智算类型 ModelartsType parmas ********************/
  1435. ModelArtsType string `json:"modelArtsType,optional"`
  1436. /****************parmas from octpus
  1437. platform string `json:"platform,optional"`
  1438. params CreateTrainJobParam `json:"params,optional"`
  1439. ********************/
  1440. }
  1441. CreateTrainingJobResp { //创建训练任务出参
  1442. Kind string `json:"kind,omitempty"`
  1443. Metadatas *MetadataS `json:"metadata,omitempty"`
  1444. Status *Status `json:"status,omitempty"`
  1445. SpecCtRp *SpecCtRp `json:"spec,omitempty"`
  1446. Algorithms *AlgorithmsCtRq `json:"algorithm,omitempty"`
  1447. Code int32 `json:"code,omitempty"`
  1448. Msg string `json:"msg,omitempty"`
  1449. ErrorMsg string `json:"ErrorMsg,omitempty"`
  1450. /****************parmas from octpus
  1451. success bool `json:"success,omitempty"`
  1452. error Error `json:"error,omitempty"`
  1453. payload PayloadCreateTrainJob `json:"error,omitempty"`
  1454. ********************/
  1455. }
  1456. MetadataS {
  1457. Id string `json:"id,optional"`
  1458. Name string `json:"name,optional"`
  1459. Description string `json:"description,optional"`
  1460. WorkspaceId string `json:"workspaceId,optional"`
  1461. }
  1462. EngineCreateTraining {
  1463. EngineId string `json:"engineId,optional"`
  1464. EngineName string `json:"engineName,optional"`
  1465. EngineVersion string `json:"engineVersion,optional"`
  1466. ImageUrl string `json:"imageUrl,optional"`
  1467. }
  1468. ConstraintCreateTraining {
  1469. Type string `json:"type,optional"`
  1470. Editable bool `json:"editable,optional"`
  1471. Required bool `json:"required,optional"`
  1472. Sensitive bool `json:"sensitive,optional"`
  1473. ValidType string `json:"validType,optional"`
  1474. }
  1475. ParametersTrainJob {
  1476. Name string `json:"name,optional"`
  1477. // Description string `json:"description,optional"`
  1478. Value string `json:"value,optional"`
  1479. // ConstraintCreateTraining ConstraintCreateTraining `json:"constraint,optional"`
  1480. }
  1481. PoliciesCreateTraining {
  1482. }
  1483. AlgorithmsCtRq {
  1484. Id string `json:"id,optional"`
  1485. Name string `json:"name,optional"`
  1486. CodeDir string `json:"codeDir,optional"`
  1487. BootFile string `json:"bootFile,optional"`
  1488. EngineCreateTraining EngineCreateTraining `json:"engine,optional"`
  1489. ParametersTrainJob []ParametersTrainJob `json:"parameters,optional"`
  1490. PoliciesCreateTraining PoliciesCreateTraining `json:"policies,optional"`
  1491. Command string `json:"command,optional"`
  1492. SubscriptionId string `json:"subscriptionId,optional"`
  1493. ItemVersionId string `json:"itemVersionId,optional"`
  1494. InputTra []InputTra `json:"inputs,optional"`
  1495. OutputTra []OutputTra `json:"outputs,optional"`
  1496. Environments Environments `json:"environments,optional"`
  1497. }
  1498. Environments{
  1499. }
  1500. InputTra{
  1501. Name string `json:"name,optional"`
  1502. AccessMethod string `json:"accessMethod,optional"`
  1503. RemoteIn RemoteTra `json:"remoteIn,optional"`
  1504. }
  1505. RemoteTra{
  1506. DatasetIn DatasetTra `json:"dataSet,optional"`
  1507. }
  1508. DatasetTra{
  1509. Id string `json:"id,optional"`
  1510. Name string `json:"name,optional"`
  1511. VersionName string `json:"versionName,optional"`
  1512. VersionId string `json:"versionId,optional"`
  1513. }
  1514. OutputTra{
  1515. Name string `json:"name,optional"`
  1516. AccessMethod string `json:"accessMethod,optional"`
  1517. PrefetchToLocal string `json:"prefetchToLocal,optional"`
  1518. RemoteOut RemoteOut `json:"remoteOut,optional"`
  1519. }
  1520. RemoteOut{
  1521. Obs ObsTra `json:"obs,optional"`
  1522. }
  1523. ObsTra{
  1524. ObsUrl string `json:"obsUrl,optional"`
  1525. }
  1526. ResourceCreateTraining {
  1527. FlavorId string `json:"flavorId,optional"`
  1528. NodeCount int32 `json:"nodeCount,optional"`
  1529. Policy string `json:"policy,optional"`
  1530. FlavorLabel string `json:"flavorLabel,optional"`
  1531. }
  1532. LogExportPathCreateTrainingJob {
  1533. ObsUrl string `json:"obsUrl,optional"`
  1534. }
  1535. SpecsCtRq {
  1536. Resource ResourceCreateTraining `json:"resource,optional"`
  1537. Volumes []Volumes `json:"volumes,optional"`
  1538. LogExportPath LogExportPath `json:"logExportPath,optional"`
  1539. }
  1540. SpecCtRp {
  1541. Resource ResourceCreateTraining `json:"resource,optional"`
  1542. Volumes []Volumes `json:"volumes,optional"`
  1543. LogExportPath LogExportPath `json:"logExportPath,optional"`
  1544. }
  1545. LogExportPath {
  1546. ObsUrl string `json:"obsUrl,optional"`
  1547. HostPath string `json:"hostPath,optional"`
  1548. }
  1549. Volumes {
  1550. Nfs *Nfs `json:"nfs,optional"`
  1551. }
  1552. Nfs {
  1553. NfsServerPath string `json:"nfsServerPath,optional"`
  1554. LocalPath string `json:"localPath,optional"`
  1555. ReadOnly bool `json:"readOnly,optional"`
  1556. /****************parmas from octpus
  1557. path string `json:"path,optional"`
  1558. server string `json:"server,optional"`
  1559. ********************/
  1560. }
  1561. /****************parmas from octpus
  1562. CreateTrainJobParam {
  1563. algorithmId string `json:"algorithmId,optional"`
  1564. algorithmVersion string `json:"algorithmVersion,optional"`
  1565. config Config `json:"config,optional"`
  1566. dataSetId string `json:"dataSetId,optional"`
  1567. dataSetVersion string `json:"dataSetVersion,optional"`
  1568. desc string `json:"desc,optional"`
  1569. imageId string `json:"imageId,optional"`
  1570. imageUrl string `json:"imageUrl,optional"`
  1571. isDistributed bool `json:"isDistributed,optional"`
  1572. mounts Mounts `json:"mounts,optional"`
  1573. name string `json:"name,optional"`
  1574. resourcePool string `json:"resourcePool,optional"`
  1575. }
  1576. Envs{
  1577. additionalProp1 string `json:"algorithmId,optional"`
  1578. additionalProp2 string `json:"algorithmId,optional"`
  1579. additionalProp3 string `json:"algorithmId,optional"`
  1580. }
  1581. ReplicaStates{
  1582. key string `json:"key,optional"`
  1583. state string `json:"state,optional"`
  1584. }
  1585. Mounts{
  1586. containerPath string `json:"containerPath,optional"`
  1587. nfs Nfs `json:"nfs,optional"`
  1588. octopus TrainJobOctopus `json:"octopus,optional"`
  1589. readOnly bool `json:"readOnly,optional"`
  1590. }
  1591. TrainJobOctopus{
  1592. bucket string `json:"bucket,optional"`
  1593. object string `json:"object,optional"`
  1594. }
  1595. Error{
  1596. code int32 `json:"code,optional"`
  1597. subcode int32 `json:"subcode,optional"`
  1598. message string `json:"message,optional"`
  1599. subMessage string `json:"subMessage,optional"`
  1600. }
  1601. PayloadCreateTrainJob{
  1602. jobId string `json:"jobId,optional"`
  1603. }
  1604. ********************/
  1605. /******************Ai Center overview*************************/
  1606. CenterOverviewResp {
  1607. CenterNum int32 `json:"totalCenters,optional"`
  1608. TaskNum int32 `json:"totalTasks,optional"`
  1609. CardNum int32 `json:"totalCards,optional"`
  1610. PowerInTops float64 `json:"totalPower,optional"`
  1611. }
  1612. CenterQueueingResp {
  1613. Current []*CenterQueue `json:"current,optional"`
  1614. History []*CenterQueue `json:"history,optional"`
  1615. }
  1616. CenterQueue {
  1617. Name string `json:"name,optional"`
  1618. QueueingNum int32 `json:"num,optional"`
  1619. }
  1620. CenterListResp {
  1621. List []*AiCenter `json:"centerList,optional"`
  1622. }
  1623. AiCenter {
  1624. Name string `json:"name,optional"`
  1625. StackName string `json:"stack,optional"`
  1626. Version string `json:"version,optional"`
  1627. }
  1628. CenterTaskListResp {
  1629. List []*AiTask `json:"taskList,optional"`
  1630. }
  1631. AiTask {
  1632. Name string `json:"name,optional"`
  1633. status string `json:"status,optional"`
  1634. Cluster string `json:"cluster,optional"`
  1635. Card string `json:"card,optional"`
  1636. TimeElapsed int32 `json:"elapsed,optional"`
  1637. }
  1638. TrainingTaskStatResp {
  1639. Running int32 `json:"running"`
  1640. Total int32 `json:"total"`
  1641. }
  1642. )
  1643. /******************create TrainIngJob end*************************/
  1644. /*
  1645. service AICore-api {
  1646. @handler listDataSetHandler
  1647. get /listDataSet (DataSetReq) returns (DataSetResp)
  1648. @handler CreateDataSetHandler
  1649. post /createDataSet (CreateDataSetReq) returns (CreateDataSetResp)
  1650. @handler DeleteDataSetHandler
  1651. delete /deleteDataSet (DeleteDataSetReq) returns (DeleteDataSetResp)
  1652. // creat task 创建导入任务
  1653. @handler CreateTaskHandler
  1654. post /CreateTask (ImportTaskDataReq) returns (ImportTaskDataResp)
  1655. // get taskList 查询数据集导入任务列表
  1656. @handler ListImportHandler
  1657. get /ListImport (ListImportTasksReq) returns (ListImportTasksResp)
  1658. // ListTrainingJobs 查询训练作业列表
  1659. @handler GetListTrainingJobsHandler
  1660. get /GetListTrainingJobs (ListTrainingJobsreq) returns (ListTrainingJobsresp)
  1661. // DeleteTrainingJob 删除训练作业
  1662. @handler DeleteTrainingJobHandler
  1663. delete /DeleteTrainingJob (DeleteTrainingJobReq) returns (DeleteTrainingJobResp)
  1664. // CreateAlgorithm 创建算法
  1665. @handler CreateAlgorithmHandler
  1666. post /CreateAlgorithm (CreateAlgorithmReq) returns (CreateAlgorithmResp)
  1667. // ListAlgorithms 查询创建算法列表
  1668. @handler ListAlgorithms
  1669. get /ListAlgorithms (ListAlgorithmsReq) returns (ListAlgorithmsResp)
  1670. // DeleteAlgorithm 删除算法
  1671. @handler DeleteAlgorithm
  1672. delete /DeleteAlgorithm (DeleteAlgorithmReq) returns (DeleteAlgorithmResp)
  1673. // CreateTrainingJob 创建训练作业
  1674. @handler CreateTrainingJobHandler
  1675. post /CreateTrainingJob (CreateTrainingJobReq) returns (CreateTrainingJobResp)
  1676. // ShowAlgorithmByUuid 展示算法详情
  1677. @handler ShowAlgorithmByUuid
  1678. get /ShowAlgorithmByUuid (ShowAlgorithmByUuidReq) returns (ShowAlgorithmByUuidResp)
  1679. // creat export task 创建导出任务
  1680. @handler CreateExportTaskHandler
  1681. post /CreateExportTask (CreateExportTaskReq) returns (CreateExportTaskResp)
  1682. @handler GetExportTasksOfDatasetHandler
  1683. get /GetExportTasksOfDataset (GetExportTasksOfDatasetReq) returns (GetExportTasksOfDatasetResp)
  1684. @handler GetExportTaskStatusOfDatasetHandler
  1685. get /GetExportTaskStatusOfDataset (GetExportTaskStatusOfDatasetReq) returns (GetExportTaskStatusOfDatasetResp)
  1686. // create processor task 创建处理任务
  1687. @handler CreateProcessorTaskHandler
  1688. post /CreateProcessorTask (CreateProcessorTaskReq) returns (CreateProcessorTaskResp)
  1689. // create service 创建服务
  1690. @handler CreateServiceHandler
  1691. post /CreateService (CreateServiceReq) returns (CreateServiceResp)
  1692. // list services 展示服务
  1693. @handler ListServicesHandler
  1694. get /ListServices (ListServicesReq) returns (ListServicesResp)
  1695. // Show service 展示服务详情
  1696. @handler ShowServiceHandler
  1697. get /ShowService (ShowServiceReq) returns (ShowServiceResp)
  1698. // Delete service 删除服务
  1699. @handler DeleteServiceHandler
  1700. delete /DeleteService (DeleteServiceReq) returns (DeleteServiceResp)
  1701. // ListClusters查询专属资源池列表
  1702. @handler ListClustersHandler
  1703. get /ListClusters (ListClustersReq) returns (ListClustersResp)
  1704. @handler listNotebookHandler
  1705. get /listNotebook (ListNotebookReq) returns (ListNotebookResp)
  1706. @handler createNotebookHandler
  1707. post /createNotebook (CreateNotebookReq) returns (CreateNotebookResp)
  1708. @handler startNotebookHandler
  1709. post /startNotebook (StartNotebookReq) returns (StartNotebookResp)
  1710. @handler stopNotebookHandler
  1711. post /stopNotebook (StopNotebookReq) returns (StopNotebookResp)
  1712. @handler getNotebookStorageHandler
  1713. get /getNotebookStorage (GetNotebookStorageReq) returns (GetNotebookStorageResp)
  1714. @handler mountNotebookStorageHandler
  1715. post /mountNotebookStorage (MountNotebookStorageReq) returns (MountNotebookStorageResp)
  1716. @handler getVisualizationJobHandler
  1717. get /getVisualizationJob (GetVisualizationJobReq) returns (GetVisualizationJobResp)
  1718. @handler createVisualizationJobHandler
  1719. post /CreateVisualizationJob (CreateVisualizationJobReq) returns (CreateVisualizationJobResp)
  1720. }*/
  1721. type (
  1722. ChatReq{
  1723. id uint `json:"id,string"`
  1724. Method string `json:"method,optional"`
  1725. ReqData map[string]interface{} `json:"reqData"`
  1726. }
  1727. ChatResult{
  1728. Resuluts string `json:"results,optional"`
  1729. }
  1730. )

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.