@alicloud/pai-dsw20220101 1.4.11 → 1.4.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (577) hide show
  1. package/dist/client.d.ts +80 -7148
  2. package/dist/client.js +53 -4505
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/BandwidthLimit.d.ts +17 -0
  5. package/dist/models/BandwidthLimit.js +70 -0
  6. package/dist/models/BandwidthLimit.js.map +1 -0
  7. package/dist/models/CreateIdleInstanceCullerRequest.d.ts +37 -0
  8. package/dist/models/CreateIdleInstanceCullerRequest.js +62 -0
  9. package/dist/models/CreateIdleInstanceCullerRequest.js.map +1 -0
  10. package/dist/models/CreateIdleInstanceCullerResponse.d.ts +19 -0
  11. package/dist/models/CreateIdleInstanceCullerResponse.js +69 -0
  12. package/dist/models/CreateIdleInstanceCullerResponse.js.map +1 -0
  13. package/dist/models/CreateIdleInstanceCullerResponseBody.d.ts +59 -0
  14. package/dist/models/CreateIdleInstanceCullerResponseBody.js +66 -0
  15. package/dist/models/CreateIdleInstanceCullerResponseBody.js.map +1 -0
  16. package/dist/models/CreateInstanceRequest.d.ts +206 -0
  17. package/dist/models/CreateInstanceRequest.js +141 -0
  18. package/dist/models/CreateInstanceRequest.js.map +1 -0
  19. package/dist/models/CreateInstanceRequestAffinity.d.ts +19 -0
  20. package/dist/models/CreateInstanceRequestAffinity.js +62 -0
  21. package/dist/models/CreateInstanceRequestAffinity.js.map +1 -0
  22. package/dist/models/CreateInstanceRequestAffinityCpu.d.ts +24 -0
  23. package/dist/models/CreateInstanceRequestAffinityCpu.js +58 -0
  24. package/dist/models/CreateInstanceRequestAffinityCpu.js.map +1 -0
  25. package/dist/models/CreateInstanceRequestCloudDisks.d.ts +67 -0
  26. package/dist/models/CreateInstanceRequestCloudDisks.js +70 -0
  27. package/dist/models/CreateInstanceRequestCloudDisks.js.map +1 -0
  28. package/dist/models/CreateInstanceRequestCloudDisksStatus.d.ts +37 -0
  29. package/dist/models/CreateInstanceRequestCloudDisksStatus.js +62 -0
  30. package/dist/models/CreateInstanceRequestCloudDisksStatus.js.map +1 -0
  31. package/dist/models/CreateInstanceRequestDatasets.d.ts +98 -0
  32. package/dist/models/CreateInstanceRequestDatasets.js +72 -0
  33. package/dist/models/CreateInstanceRequestDatasets.js.map +1 -0
  34. package/dist/models/CreateInstanceRequestLabels.d.ts +29 -0
  35. package/dist/models/CreateInstanceRequestLabels.js +60 -0
  36. package/dist/models/CreateInstanceRequestLabels.js.map +1 -0
  37. package/dist/models/CreateInstanceRequestRequestedResource.d.ts +59 -0
  38. package/dist/models/CreateInstanceRequestRequestedResource.js +66 -0
  39. package/dist/models/CreateInstanceRequestRequestedResource.js.map +1 -0
  40. package/dist/models/CreateInstanceRequestTag.d.ts +29 -0
  41. package/dist/models/CreateInstanceRequestTag.js +60 -0
  42. package/dist/models/CreateInstanceRequestTag.js.map +1 -0
  43. package/dist/models/CreateInstanceRequestUserVpc.d.ts +67 -0
  44. package/dist/models/CreateInstanceRequestUserVpc.js +81 -0
  45. package/dist/models/CreateInstanceRequestUserVpc.js.map +1 -0
  46. package/dist/models/CreateInstanceResponse.d.ts +19 -0
  47. package/dist/models/CreateInstanceResponse.js +69 -0
  48. package/dist/models/CreateInstanceResponse.js.map +1 -0
  49. package/dist/models/CreateInstanceResponseBody.d.ts +71 -0
  50. package/dist/models/CreateInstanceResponseBody.js +68 -0
  51. package/dist/models/CreateInstanceResponseBody.js.map +1 -0
  52. package/dist/models/CreateInstanceShutdownTimerRequest.d.ts +29 -0
  53. package/dist/models/CreateInstanceShutdownTimerRequest.js +60 -0
  54. package/dist/models/CreateInstanceShutdownTimerRequest.js.map +1 -0
  55. package/dist/models/CreateInstanceShutdownTimerResponse.d.ts +19 -0
  56. package/dist/models/CreateInstanceShutdownTimerResponse.js +69 -0
  57. package/dist/models/CreateInstanceShutdownTimerResponse.js.map +1 -0
  58. package/dist/models/CreateInstanceShutdownTimerResponseBody.d.ts +70 -0
  59. package/dist/models/CreateInstanceShutdownTimerResponseBody.js +68 -0
  60. package/dist/models/CreateInstanceShutdownTimerResponseBody.js.map +1 -0
  61. package/dist/models/CreateInstanceSnapshotRequest.d.ts +42 -0
  62. package/dist/models/CreateInstanceSnapshotRequest.js +75 -0
  63. package/dist/models/CreateInstanceSnapshotRequest.js.map +1 -0
  64. package/dist/models/CreateInstanceSnapshotRequestLabels.d.ts +23 -0
  65. package/dist/models/CreateInstanceSnapshotRequestLabels.js +60 -0
  66. package/dist/models/CreateInstanceSnapshotRequestLabels.js.map +1 -0
  67. package/dist/models/CreateInstanceSnapshotResponse.d.ts +19 -0
  68. package/dist/models/CreateInstanceSnapshotResponse.js +69 -0
  69. package/dist/models/CreateInstanceSnapshotResponse.js.map +1 -0
  70. package/dist/models/CreateInstanceSnapshotResponseBody.d.ts +48 -0
  71. package/dist/models/CreateInstanceSnapshotResponseBody.js +70 -0
  72. package/dist/models/CreateInstanceSnapshotResponseBody.js.map +1 -0
  73. package/dist/models/CredentialConfig.d.ts +25 -0
  74. package/dist/models/CredentialConfig.js +66 -0
  75. package/dist/models/CredentialConfig.js.map +1 -0
  76. package/dist/models/CredentialConfigConfigs.d.ts +31 -0
  77. package/dist/models/CredentialConfigConfigs.js +66 -0
  78. package/dist/models/CredentialConfigConfigs.js.map +1 -0
  79. package/dist/models/CredentialConfigConfigsRoles.d.ts +41 -0
  80. package/dist/models/CredentialConfigConfigsRoles.js +70 -0
  81. package/dist/models/CredentialConfigConfigsRoles.js.map +1 -0
  82. package/dist/models/CredentialConfigConfigsRolesUserInfo.d.ts +35 -0
  83. package/dist/models/CredentialConfigConfigsRolesUserInfo.js +66 -0
  84. package/dist/models/CredentialConfigConfigsRolesUserInfo.js.map +1 -0
  85. package/dist/models/DeleteIdleInstanceCullerResponse.d.ts +19 -0
  86. package/dist/models/DeleteIdleInstanceCullerResponse.js +69 -0
  87. package/dist/models/DeleteIdleInstanceCullerResponse.js.map +1 -0
  88. package/dist/models/DeleteIdleInstanceCullerResponseBody.d.ts +62 -0
  89. package/dist/models/DeleteIdleInstanceCullerResponseBody.js +66 -0
  90. package/dist/models/DeleteIdleInstanceCullerResponseBody.js.map +1 -0
  91. package/dist/models/DeleteInstanceLabelsRequest.d.ts +23 -0
  92. package/dist/models/DeleteInstanceLabelsRequest.js +58 -0
  93. package/dist/models/DeleteInstanceLabelsRequest.js.map +1 -0
  94. package/dist/models/DeleteInstanceLabelsResponse.d.ts +19 -0
  95. package/dist/models/DeleteInstanceLabelsResponse.js +69 -0
  96. package/dist/models/DeleteInstanceLabelsResponse.js.map +1 -0
  97. package/dist/models/DeleteInstanceLabelsResponseBody.d.ts +21 -0
  98. package/dist/models/DeleteInstanceLabelsResponseBody.js +58 -0
  99. package/dist/models/DeleteInstanceLabelsResponseBody.js.map +1 -0
  100. package/dist/models/DeleteInstanceResponse.d.ts +19 -0
  101. package/dist/models/DeleteInstanceResponse.js +69 -0
  102. package/dist/models/DeleteInstanceResponse.js.map +1 -0
  103. package/dist/models/DeleteInstanceResponseBody.d.ts +71 -0
  104. package/dist/models/DeleteInstanceResponseBody.js +68 -0
  105. package/dist/models/DeleteInstanceResponseBody.js.map +1 -0
  106. package/dist/models/DeleteInstanceShutdownTimerResponse.d.ts +19 -0
  107. package/dist/models/DeleteInstanceShutdownTimerResponse.js +69 -0
  108. package/dist/models/DeleteInstanceShutdownTimerResponse.js.map +1 -0
  109. package/dist/models/DeleteInstanceShutdownTimerResponseBody.d.ts +70 -0
  110. package/dist/models/DeleteInstanceShutdownTimerResponseBody.js +68 -0
  111. package/dist/models/DeleteInstanceShutdownTimerResponseBody.js.map +1 -0
  112. package/dist/models/DeleteInstanceSnapshotResponse.d.ts +19 -0
  113. package/dist/models/DeleteInstanceSnapshotResponse.js +69 -0
  114. package/dist/models/DeleteInstanceSnapshotResponse.js.map +1 -0
  115. package/dist/models/DeleteInstanceSnapshotResponseBody.d.ts +48 -0
  116. package/dist/models/DeleteInstanceSnapshotResponseBody.js +70 -0
  117. package/dist/models/DeleteInstanceSnapshotResponseBody.js.map +1 -0
  118. package/dist/models/DemoCategory.d.ts +29 -0
  119. package/dist/models/DemoCategory.js +67 -0
  120. package/dist/models/DemoCategory.js.map +1 -0
  121. package/dist/models/DynamicMount.d.ts +16 -0
  122. package/dist/models/DynamicMount.js +64 -0
  123. package/dist/models/DynamicMount.js.map +1 -0
  124. package/dist/models/DynamicMountPoint.d.ts +19 -0
  125. package/dist/models/DynamicMountPoint.js +60 -0
  126. package/dist/models/DynamicMountPoint.js.map +1 -0
  127. package/dist/models/ForwardInfo.d.ts +50 -0
  128. package/dist/models/ForwardInfo.js +77 -0
  129. package/dist/models/ForwardInfo.js.map +1 -0
  130. package/dist/models/ForwardInfoResponse.d.ts +52 -0
  131. package/dist/models/ForwardInfoResponse.js +83 -0
  132. package/dist/models/ForwardInfoResponse.js.map +1 -0
  133. package/dist/models/ForwardInfoResponseConnectInfo.d.ts +27 -0
  134. package/dist/models/ForwardInfoResponseConnectInfo.js +72 -0
  135. package/dist/models/ForwardInfoResponseConnectInfo.js.map +1 -0
  136. package/dist/models/ForwardInfoResponseConnectInfoInternet.d.ts +23 -0
  137. package/dist/models/ForwardInfoResponseConnectInfoInternet.js +60 -0
  138. package/dist/models/ForwardInfoResponseConnectInfoInternet.js.map +1 -0
  139. package/dist/models/ForwardInfoResponseConnectInfoIntranet.d.ts +23 -0
  140. package/dist/models/ForwardInfoResponseConnectInfoIntranet.js +60 -0
  141. package/dist/models/ForwardInfoResponseConnectInfoIntranet.js.map +1 -0
  142. package/dist/models/GetIdleInstanceCullerResponse.d.ts +19 -0
  143. package/dist/models/GetIdleInstanceCullerResponse.js +69 -0
  144. package/dist/models/GetIdleInstanceCullerResponse.js.map +1 -0
  145. package/dist/models/GetIdleInstanceCullerResponseBody.d.ts +91 -0
  146. package/dist/models/GetIdleInstanceCullerResponseBody.js +74 -0
  147. package/dist/models/GetIdleInstanceCullerResponseBody.js.map +1 -0
  148. package/dist/models/GetInstanceEventsRequest.d.ts +42 -0
  149. package/dist/models/GetInstanceEventsRequest.js +64 -0
  150. package/dist/models/GetInstanceEventsRequest.js.map +1 -0
  151. package/dist/models/GetInstanceEventsResponse.d.ts +19 -0
  152. package/dist/models/GetInstanceEventsResponse.js +69 -0
  153. package/dist/models/GetInstanceEventsResponse.js.map +1 -0
  154. package/dist/models/GetInstanceEventsResponseBody.d.ts +76 -0
  155. package/dist/models/GetInstanceEventsResponseBody.js +73 -0
  156. package/dist/models/GetInstanceEventsResponseBody.js.map +1 -0
  157. package/dist/models/GetInstanceMetricsRequest.d.ts +56 -0
  158. package/dist/models/GetInstanceMetricsRequest.js +64 -0
  159. package/dist/models/GetInstanceMetricsRequest.js.map +1 -0
  160. package/dist/models/GetInstanceMetricsResponse.d.ts +19 -0
  161. package/dist/models/GetInstanceMetricsResponse.js +69 -0
  162. package/dist/models/GetInstanceMetricsResponse.js.map +1 -0
  163. package/dist/models/GetInstanceMetricsResponseBody.d.ts +76 -0
  164. package/dist/models/GetInstanceMetricsResponseBody.js +74 -0
  165. package/dist/models/GetInstanceMetricsResponseBody.js.map +1 -0
  166. package/dist/models/GetInstanceMetricsResponseBodyPodMetrics.d.ts +27 -0
  167. package/dist/models/GetInstanceMetricsResponseBodyPodMetrics.js +64 -0
  168. package/dist/models/GetInstanceMetricsResponseBodyPodMetrics.js.map +1 -0
  169. package/dist/models/GetInstanceMetricsResponseBodyPodMetricsMetrics.d.ts +29 -0
  170. package/dist/models/GetInstanceMetricsResponseBodyPodMetricsMetrics.js +60 -0
  171. package/dist/models/GetInstanceMetricsResponseBodyPodMetricsMetrics.js.map +1 -0
  172. package/dist/models/GetInstanceRequest.d.ts +21 -0
  173. package/dist/models/GetInstanceRequest.js +58 -0
  174. package/dist/models/GetInstanceRequest.js.map +1 -0
  175. package/dist/models/GetInstanceResponse.d.ts +19 -0
  176. package/dist/models/GetInstanceResponse.js +69 -0
  177. package/dist/models/GetInstanceResponse.js.map +1 -0
  178. package/dist/models/GetInstanceResponseBody.d.ts +446 -0
  179. package/dist/models/GetInstanceResponseBody.js +215 -0
  180. package/dist/models/GetInstanceResponseBody.js.map +1 -0
  181. package/dist/models/GetInstanceResponseBodyAffinity.d.ts +19 -0
  182. package/dist/models/GetInstanceResponseBodyAffinity.js +62 -0
  183. package/dist/models/GetInstanceResponseBodyAffinity.js.map +1 -0
  184. package/dist/models/GetInstanceResponseBodyAffinityCpu.d.ts +23 -0
  185. package/dist/models/GetInstanceResponseBodyAffinityCpu.js +58 -0
  186. package/dist/models/GetInstanceResponseBodyAffinityCpu.js.map +1 -0
  187. package/dist/models/GetInstanceResponseBodyCloudDisks.d.ts +45 -0
  188. package/dist/models/GetInstanceResponseBodyCloudDisks.js +64 -0
  189. package/dist/models/GetInstanceResponseBodyCloudDisks.js.map +1 -0
  190. package/dist/models/GetInstanceResponseBodyDatasets.d.ts +81 -0
  191. package/dist/models/GetInstanceResponseBodyDatasets.js +72 -0
  192. package/dist/models/GetInstanceResponseBodyDatasets.js.map +1 -0
  193. package/dist/models/GetInstanceResponseBodyIdleInstanceCuller.d.ts +53 -0
  194. package/dist/models/GetInstanceResponseBodyIdleInstanceCuller.js +66 -0
  195. package/dist/models/GetInstanceResponseBodyIdleInstanceCuller.js.map +1 -0
  196. package/dist/models/GetInstanceResponseBodyInstanceShutdownTimer.d.ts +53 -0
  197. package/dist/models/GetInstanceResponseBodyInstanceShutdownTimer.js +66 -0
  198. package/dist/models/GetInstanceResponseBodyInstanceShutdownTimer.js.map +1 -0
  199. package/dist/models/GetInstanceResponseBodyInstanceSnapshotList.d.ts +85 -0
  200. package/dist/models/GetInstanceResponseBodyInstanceSnapshotList.js +74 -0
  201. package/dist/models/GetInstanceResponseBodyInstanceSnapshotList.js.map +1 -0
  202. package/dist/models/GetInstanceResponseBodyLabels.d.ts +29 -0
  203. package/dist/models/GetInstanceResponseBodyLabels.js +60 -0
  204. package/dist/models/GetInstanceResponseBodyLabels.js.map +1 -0
  205. package/dist/models/GetInstanceResponseBodyLatestSnapshot.d.ts +92 -0
  206. package/dist/models/GetInstanceResponseBodyLatestSnapshot.js +74 -0
  207. package/dist/models/GetInstanceResponseBodyLatestSnapshot.js.map +1 -0
  208. package/dist/models/GetInstanceResponseBodyNodeErrorRecovery.d.ts +37 -0
  209. package/dist/models/GetInstanceResponseBodyNodeErrorRecovery.js +62 -0
  210. package/dist/models/GetInstanceResponseBodyNodeErrorRecovery.js.map +1 -0
  211. package/dist/models/GetInstanceResponseBodyRequestedResource.d.ts +59 -0
  212. package/dist/models/GetInstanceResponseBodyRequestedResource.js +66 -0
  213. package/dist/models/GetInstanceResponseBodyRequestedResource.js.map +1 -0
  214. package/dist/models/GetInstanceResponseBodyTags.d.ts +29 -0
  215. package/dist/models/GetInstanceResponseBodyTags.js +60 -0
  216. package/dist/models/GetInstanceResponseBodyTags.js.map +1 -0
  217. package/dist/models/GetInstanceResponseBodyUserVpc.d.ts +64 -0
  218. package/dist/models/GetInstanceResponseBodyUserVpc.js +81 -0
  219. package/dist/models/GetInstanceResponseBodyUserVpc.js.map +1 -0
  220. package/dist/models/GetInstanceShutdownTimerResponse.d.ts +19 -0
  221. package/dist/models/GetInstanceShutdownTimerResponse.js +69 -0
  222. package/dist/models/GetInstanceShutdownTimerResponse.js.map +1 -0
  223. package/dist/models/GetInstanceShutdownTimerResponseBody.d.ts +63 -0
  224. package/dist/models/GetInstanceShutdownTimerResponseBody.js +76 -0
  225. package/dist/models/GetInstanceShutdownTimerResponseBody.js.map +1 -0
  226. package/dist/models/GetInstanceSnapshotResponse.d.ts +19 -0
  227. package/dist/models/GetInstanceSnapshotResponse.js +69 -0
  228. package/dist/models/GetInstanceSnapshotResponse.js.map +1 -0
  229. package/dist/models/GetInstanceSnapshotResponseBody.d.ts +95 -0
  230. package/dist/models/GetInstanceSnapshotResponseBody.js +97 -0
  231. package/dist/models/GetInstanceSnapshotResponseBody.js.map +1 -0
  232. package/dist/models/GetInstanceSnapshotResponseBodyLabels.d.ts +23 -0
  233. package/dist/models/GetInstanceSnapshotResponseBodyLabels.js +60 -0
  234. package/dist/models/GetInstanceSnapshotResponseBodyLabels.js.map +1 -0
  235. package/dist/models/GetLifecycleRequest.d.ts +61 -0
  236. package/dist/models/GetLifecycleRequest.js +68 -0
  237. package/dist/models/GetLifecycleRequest.js.map +1 -0
  238. package/dist/models/GetLifecycleResponse.d.ts +19 -0
  239. package/dist/models/GetLifecycleResponse.js +69 -0
  240. package/dist/models/GetLifecycleResponse.js.map +1 -0
  241. package/dist/models/GetLifecycleResponseBody.d.ts +68 -0
  242. package/dist/models/GetLifecycleResponseBody.js +72 -0
  243. package/dist/models/GetLifecycleResponseBody.js.map +1 -0
  244. package/dist/models/GetLifecycleResponseBodyLifecycle.d.ts +62 -0
  245. package/dist/models/GetLifecycleResponseBodyLifecycle.js +64 -0
  246. package/dist/models/GetLifecycleResponseBodyLifecycle.js.map +1 -0
  247. package/dist/models/GetMetricsRequest.d.ts +53 -0
  248. package/dist/models/GetMetricsRequest.js +72 -0
  249. package/dist/models/GetMetricsRequest.js.map +1 -0
  250. package/dist/models/GetMetricsResponse.d.ts +19 -0
  251. package/dist/models/GetMetricsResponse.js +69 -0
  252. package/dist/models/GetMetricsResponse.js.map +1 -0
  253. package/dist/models/GetMetricsResponseBody.d.ts +44 -0
  254. package/dist/models/GetMetricsResponseBody.js +70 -0
  255. package/dist/models/GetMetricsResponseBody.js.map +1 -0
  256. package/dist/models/GetResourceGroupStatisticsRequest.d.ts +45 -0
  257. package/dist/models/GetResourceGroupStatisticsRequest.js +64 -0
  258. package/dist/models/GetResourceGroupStatisticsRequest.js.map +1 -0
  259. package/dist/models/GetResourceGroupStatisticsResponse.d.ts +19 -0
  260. package/dist/models/GetResourceGroupStatisticsResponse.js +69 -0
  261. package/dist/models/GetResourceGroupStatisticsResponse.js.map +1 -0
  262. package/dist/models/GetResourceGroupStatisticsResponseBody.d.ts +43 -0
  263. package/dist/models/GetResourceGroupStatisticsResponseBody.js +71 -0
  264. package/dist/models/GetResourceGroupStatisticsResponseBody.js.map +1 -0
  265. package/dist/models/GetTokenRequest.d.ts +31 -0
  266. package/dist/models/GetTokenRequest.js +60 -0
  267. package/dist/models/GetTokenRequest.js.map +1 -0
  268. package/dist/models/GetTokenResponse.d.ts +19 -0
  269. package/dist/models/GetTokenResponse.js +69 -0
  270. package/dist/models/GetTokenResponse.js.map +1 -0
  271. package/dist/models/GetTokenResponseBody.d.ts +59 -0
  272. package/dist/models/GetTokenResponseBody.js +66 -0
  273. package/dist/models/GetTokenResponseBody.js.map +1 -0
  274. package/dist/models/GetUserConfigResponse.d.ts +19 -0
  275. package/dist/models/GetUserConfigResponse.js +69 -0
  276. package/dist/models/GetUserConfigResponse.js.map +1 -0
  277. package/dist/models/GetUserConfigResponseBody.d.ts +55 -0
  278. package/dist/models/GetUserConfigResponseBody.js +78 -0
  279. package/dist/models/GetUserConfigResponseBody.js.map +1 -0
  280. package/dist/models/GetUserConfigResponseBodyFreeTier.d.ts +73 -0
  281. package/dist/models/GetUserConfigResponseBodyFreeTier.js +80 -0
  282. package/dist/models/GetUserConfigResponseBodyFreeTier.js.map +1 -0
  283. package/dist/models/ListEcsSpecsRequest.d.ts +62 -0
  284. package/dist/models/ListEcsSpecsRequest.js +68 -0
  285. package/dist/models/ListEcsSpecsRequest.js.map +1 -0
  286. package/dist/models/ListEcsSpecsResponse.d.ts +19 -0
  287. package/dist/models/ListEcsSpecsResponse.js +69 -0
  288. package/dist/models/ListEcsSpecsResponse.js.map +1 -0
  289. package/dist/models/ListEcsSpecsResponseBody.d.ts +76 -0
  290. package/dist/models/ListEcsSpecsResponseBody.js +74 -0
  291. package/dist/models/ListEcsSpecsResponseBody.js.map +1 -0
  292. package/dist/models/ListEcsSpecsResponseBodyEcsSpecs.d.ts +118 -0
  293. package/dist/models/ListEcsSpecsResponseBodyEcsSpecs.js +88 -0
  294. package/dist/models/ListEcsSpecsResponseBodyEcsSpecs.js.map +1 -0
  295. package/dist/models/ListEcsSpecsResponseBodyEcsSpecsLabels.d.ts +29 -0
  296. package/dist/models/ListEcsSpecsResponseBodyEcsSpecsLabels.js +60 -0
  297. package/dist/models/ListEcsSpecsResponseBodyEcsSpecsLabels.js.map +1 -0
  298. package/dist/models/ListInstanceSnapshotRequest.d.ts +33 -0
  299. package/dist/models/ListInstanceSnapshotRequest.js +64 -0
  300. package/dist/models/ListInstanceSnapshotRequest.js.map +1 -0
  301. package/dist/models/ListInstanceSnapshotResponse.d.ts +19 -0
  302. package/dist/models/ListInstanceSnapshotResponse.js +69 -0
  303. package/dist/models/ListInstanceSnapshotResponse.js.map +1 -0
  304. package/dist/models/ListInstanceSnapshotResponseBody.d.ts +45 -0
  305. package/dist/models/ListInstanceSnapshotResponseBody.js +74 -0
  306. package/dist/models/ListInstanceSnapshotResponseBody.js.map +1 -0
  307. package/dist/models/ListInstanceSnapshotResponseBodySnapshots.d.ts +74 -0
  308. package/dist/models/ListInstanceSnapshotResponseBodySnapshots.js +87 -0
  309. package/dist/models/ListInstanceSnapshotResponseBodySnapshots.js.map +1 -0
  310. package/dist/models/ListInstanceSnapshotResponseBodySnapshotsLabels.d.ts +23 -0
  311. package/dist/models/ListInstanceSnapshotResponseBodySnapshotsLabels.js +60 -0
  312. package/dist/models/ListInstanceSnapshotResponseBodySnapshotsLabels.js.map +1 -0
  313. package/dist/models/ListInstanceStatisticsRequest.d.ts +21 -0
  314. package/dist/models/ListInstanceStatisticsRequest.js +58 -0
  315. package/dist/models/ListInstanceStatisticsRequest.js.map +1 -0
  316. package/dist/models/ListInstanceStatisticsResponse.d.ts +19 -0
  317. package/dist/models/ListInstanceStatisticsResponse.js +69 -0
  318. package/dist/models/ListInstanceStatisticsResponse.js.map +1 -0
  319. package/dist/models/ListInstanceStatisticsResponseBody.d.ts +43 -0
  320. package/dist/models/ListInstanceStatisticsResponseBody.js +71 -0
  321. package/dist/models/ListInstanceStatisticsResponseBody.js.map +1 -0
  322. package/dist/models/ListInstancesRequest.d.ts +259 -0
  323. package/dist/models/ListInstancesRequest.js +117 -0
  324. package/dist/models/ListInstancesRequest.js.map +1 -0
  325. package/dist/models/ListInstancesRequestTag.d.ts +29 -0
  326. package/dist/models/ListInstancesRequestTag.js +60 -0
  327. package/dist/models/ListInstancesRequestTag.js.map +1 -0
  328. package/dist/models/ListInstancesResponse.d.ts +19 -0
  329. package/dist/models/ListInstancesResponse.js +69 -0
  330. package/dist/models/ListInstancesResponse.js.map +1 -0
  331. package/dist/models/ListInstancesResponseBody.d.ts +76 -0
  332. package/dist/models/ListInstancesResponseBody.js +74 -0
  333. package/dist/models/ListInstancesResponseBody.js.map +1 -0
  334. package/dist/models/ListInstancesResponseBodyInstances.d.ts +362 -0
  335. package/dist/models/ListInstancesResponseBodyInstances.js +201 -0
  336. package/dist/models/ListInstancesResponseBodyInstances.js.map +1 -0
  337. package/dist/models/ListInstancesResponseBodyInstancesAffinity.d.ts +19 -0
  338. package/dist/models/ListInstancesResponseBodyInstancesAffinity.js +62 -0
  339. package/dist/models/ListInstancesResponseBodyInstancesAffinity.js.map +1 -0
  340. package/dist/models/ListInstancesResponseBodyInstancesAffinityCpu.d.ts +23 -0
  341. package/dist/models/ListInstancesResponseBodyInstancesAffinityCpu.js +58 -0
  342. package/dist/models/ListInstancesResponseBodyInstancesAffinityCpu.js.map +1 -0
  343. package/dist/models/ListInstancesResponseBodyInstancesCloudDisks.d.ts +45 -0
  344. package/dist/models/ListInstancesResponseBodyInstancesCloudDisks.js +64 -0
  345. package/dist/models/ListInstancesResponseBodyInstancesCloudDisks.js.map +1 -0
  346. package/dist/models/ListInstancesResponseBodyInstancesDatasets.d.ts +81 -0
  347. package/dist/models/ListInstancesResponseBodyInstancesDatasets.js +72 -0
  348. package/dist/models/ListInstancesResponseBodyInstancesDatasets.js.map +1 -0
  349. package/dist/models/ListInstancesResponseBodyInstancesIdleInstanceCuller.d.ts +53 -0
  350. package/dist/models/ListInstancesResponseBodyInstancesIdleInstanceCuller.js +66 -0
  351. package/dist/models/ListInstancesResponseBodyInstancesIdleInstanceCuller.js.map +1 -0
  352. package/dist/models/ListInstancesResponseBodyInstancesInstanceShutdownTimer.d.ts +53 -0
  353. package/dist/models/ListInstancesResponseBodyInstancesInstanceShutdownTimer.js +66 -0
  354. package/dist/models/ListInstancesResponseBodyInstancesInstanceShutdownTimer.js.map +1 -0
  355. package/dist/models/ListInstancesResponseBodyInstancesInstanceSnapshotList.d.ts +85 -0
  356. package/dist/models/ListInstancesResponseBodyInstancesInstanceSnapshotList.js +74 -0
  357. package/dist/models/ListInstancesResponseBodyInstancesInstanceSnapshotList.js.map +1 -0
  358. package/dist/models/ListInstancesResponseBodyInstancesLabels.d.ts +29 -0
  359. package/dist/models/ListInstancesResponseBodyInstancesLabels.js +60 -0
  360. package/dist/models/ListInstancesResponseBodyInstancesLabels.js.map +1 -0
  361. package/dist/models/ListInstancesResponseBodyInstancesLatestSnapshot.d.ts +85 -0
  362. package/dist/models/ListInstancesResponseBodyInstancesLatestSnapshot.js +74 -0
  363. package/dist/models/ListInstancesResponseBodyInstancesLatestSnapshot.js.map +1 -0
  364. package/dist/models/ListInstancesResponseBodyInstancesRequestedResource.d.ts +53 -0
  365. package/dist/models/ListInstancesResponseBodyInstancesRequestedResource.js +66 -0
  366. package/dist/models/ListInstancesResponseBodyInstancesRequestedResource.js.map +1 -0
  367. package/dist/models/ListInstancesResponseBodyInstancesTags.d.ts +29 -0
  368. package/dist/models/ListInstancesResponseBodyInstancesTags.js +60 -0
  369. package/dist/models/ListInstancesResponseBodyInstancesTags.js.map +1 -0
  370. package/dist/models/ListInstancesResponseBodyInstancesUserVpc.d.ts +61 -0
  371. package/dist/models/ListInstancesResponseBodyInstancesUserVpc.js +81 -0
  372. package/dist/models/ListInstancesResponseBodyInstancesUserVpc.js.map +1 -0
  373. package/dist/models/ListInstancesShrinkRequest.d.ts +256 -0
  374. package/dist/models/ListInstancesShrinkRequest.js +110 -0
  375. package/dist/models/ListInstancesShrinkRequest.js.map +1 -0
  376. package/dist/models/StartInstanceResponse.d.ts +19 -0
  377. package/dist/models/StartInstanceResponse.js +69 -0
  378. package/dist/models/StartInstanceResponse.js.map +1 -0
  379. package/dist/models/StartInstanceResponseBody.d.ts +43 -0
  380. package/dist/models/StartInstanceResponseBody.js +68 -0
  381. package/dist/models/StartInstanceResponseBody.js.map +1 -0
  382. package/dist/models/StopInstanceRequest.d.ts +18 -0
  383. package/dist/models/StopInstanceRequest.js +58 -0
  384. package/dist/models/StopInstanceRequest.js.map +1 -0
  385. package/dist/models/StopInstanceResponse.d.ts +19 -0
  386. package/dist/models/StopInstanceResponse.js +69 -0
  387. package/dist/models/StopInstanceResponse.js.map +1 -0
  388. package/dist/models/StopInstanceResponseBody.d.ts +43 -0
  389. package/dist/models/StopInstanceResponseBody.js +68 -0
  390. package/dist/models/StopInstanceResponseBody.js.map +1 -0
  391. package/dist/models/UpdateInstanceLabelsRequest.d.ts +21 -0
  392. package/dist/models/UpdateInstanceLabelsRequest.js +62 -0
  393. package/dist/models/UpdateInstanceLabelsRequest.js.map +1 -0
  394. package/dist/models/UpdateInstanceLabelsRequestLabels.d.ts +33 -0
  395. package/dist/models/UpdateInstanceLabelsRequestLabels.js +60 -0
  396. package/dist/models/UpdateInstanceLabelsRequestLabels.js.map +1 -0
  397. package/dist/models/UpdateInstanceLabelsResponse.d.ts +19 -0
  398. package/dist/models/UpdateInstanceLabelsResponse.js +69 -0
  399. package/dist/models/UpdateInstanceLabelsResponse.js.map +1 -0
  400. package/dist/models/UpdateInstanceLabelsResponseBody.d.ts +21 -0
  401. package/dist/models/UpdateInstanceLabelsResponseBody.js +58 -0
  402. package/dist/models/UpdateInstanceLabelsResponseBody.js.map +1 -0
  403. package/dist/models/UpdateInstanceRequest.d.ts +208 -0
  404. package/dist/models/UpdateInstanceRequest.js +130 -0
  405. package/dist/models/UpdateInstanceRequest.js.map +1 -0
  406. package/dist/models/UpdateInstanceRequestAffinity.d.ts +19 -0
  407. package/dist/models/UpdateInstanceRequestAffinity.js +62 -0
  408. package/dist/models/UpdateInstanceRequestAffinity.js.map +1 -0
  409. package/dist/models/UpdateInstanceRequestAffinityCpu.d.ts +24 -0
  410. package/dist/models/UpdateInstanceRequestAffinityCpu.js +58 -0
  411. package/dist/models/UpdateInstanceRequestAffinityCpu.js.map +1 -0
  412. package/dist/models/UpdateInstanceRequestCloudDisks.d.ts +45 -0
  413. package/dist/models/UpdateInstanceRequestCloudDisks.js +60 -0
  414. package/dist/models/UpdateInstanceRequestCloudDisks.js.map +1 -0
  415. package/dist/models/UpdateInstanceRequestDatasets.d.ts +98 -0
  416. package/dist/models/UpdateInstanceRequestDatasets.js +72 -0
  417. package/dist/models/UpdateInstanceRequestDatasets.js.map +1 -0
  418. package/dist/models/UpdateInstanceRequestRequestedResource.d.ts +53 -0
  419. package/dist/models/UpdateInstanceRequestRequestedResource.js +66 -0
  420. package/dist/models/UpdateInstanceRequestRequestedResource.js.map +1 -0
  421. package/dist/models/UpdateInstanceRequestUserVpc.d.ts +67 -0
  422. package/dist/models/UpdateInstanceRequestUserVpc.js +81 -0
  423. package/dist/models/UpdateInstanceRequestUserVpc.js.map +1 -0
  424. package/dist/models/UpdateInstanceResponse.d.ts +19 -0
  425. package/dist/models/UpdateInstanceResponse.js +69 -0
  426. package/dist/models/UpdateInstanceResponse.js.map +1 -0
  427. package/dist/models/UpdateInstanceResponseBody.d.ts +70 -0
  428. package/dist/models/UpdateInstanceResponseBody.js +68 -0
  429. package/dist/models/UpdateInstanceResponseBody.js.map +1 -0
  430. package/dist/models/model.d.ts +142 -0
  431. package/dist/models/model.js +290 -0
  432. package/dist/models/model.js.map +1 -0
  433. package/package.json +1 -1
  434. package/src/client.ts +104 -10270
  435. package/src/models/BandwidthLimit.ts +42 -0
  436. package/src/models/CreateIdleInstanceCullerRequest.ts +54 -0
  437. package/src/models/CreateIdleInstanceCullerResponse.ts +40 -0
  438. package/src/models/CreateIdleInstanceCullerResponseBody.ts +80 -0
  439. package/src/models/CreateInstanceRequest.ts +291 -0
  440. package/src/models/CreateInstanceRequestAffinity.ts +35 -0
  441. package/src/models/CreateInstanceRequestAffinityCpu.ts +37 -0
  442. package/src/models/CreateInstanceRequestCloudDisks.ts +91 -0
  443. package/src/models/CreateInstanceRequestCloudDisksStatus.ts +54 -0
  444. package/src/models/CreateInstanceRequestDatasets.ts +125 -0
  445. package/src/models/CreateInstanceRequestLabels.ts +44 -0
  446. package/src/models/CreateInstanceRequestRequestedResource.ts +80 -0
  447. package/src/models/CreateInstanceRequestTag.ts +44 -0
  448. package/src/models/CreateInstanceRequestUserVpc.ts +101 -0
  449. package/src/models/CreateInstanceResponse.ts +40 -0
  450. package/src/models/CreateInstanceResponseBody.ts +94 -0
  451. package/src/models/CreateInstanceShutdownTimerRequest.ts +44 -0
  452. package/src/models/CreateInstanceShutdownTimerResponse.ts +40 -0
  453. package/src/models/CreateInstanceShutdownTimerResponseBody.ts +93 -0
  454. package/src/models/CreateInstanceSnapshotRequest.ts +71 -0
  455. package/src/models/CreateInstanceSnapshotRequestLabels.ts +38 -0
  456. package/src/models/CreateInstanceSnapshotResponse.ts +40 -0
  457. package/src/models/CreateInstanceSnapshotResponseBody.ts +73 -0
  458. package/src/models/CredentialConfig.ts +45 -0
  459. package/src/models/CredentialConfigConfigs.ts +51 -0
  460. package/src/models/CredentialConfigConfigsRoles.ts +65 -0
  461. package/src/models/CredentialConfigConfigsRolesUserInfo.ts +54 -0
  462. package/src/models/DeleteIdleInstanceCullerResponse.ts +40 -0
  463. package/src/models/DeleteIdleInstanceCullerResponseBody.ts +83 -0
  464. package/src/models/DeleteInstanceLabelsRequest.ts +36 -0
  465. package/src/models/DeleteInstanceLabelsResponse.ts +40 -0
  466. package/src/models/DeleteInstanceLabelsResponseBody.ts +34 -0
  467. package/src/models/DeleteInstanceResponse.ts +40 -0
  468. package/src/models/DeleteInstanceResponseBody.ts +94 -0
  469. package/src/models/DeleteInstanceShutdownTimerResponse.ts +40 -0
  470. package/src/models/DeleteInstanceShutdownTimerResponseBody.ts +93 -0
  471. package/src/models/DeleteInstanceSnapshotResponse.ts +40 -0
  472. package/src/models/DeleteInstanceSnapshotResponseBody.ts +73 -0
  473. package/src/models/DemoCategory.ts +51 -0
  474. package/src/models/DynamicMount.ts +34 -0
  475. package/src/models/DynamicMountPoint.ts +34 -0
  476. package/src/models/ForwardInfo.ts +82 -0
  477. package/src/models/ForwardInfoResponse.ts +89 -0
  478. package/src/models/ForwardInfoResponseConnectInfo.ts +52 -0
  479. package/src/models/ForwardInfoResponseConnectInfoInternet.ts +38 -0
  480. package/src/models/ForwardInfoResponseConnectInfoIntranet.ts +38 -0
  481. package/src/models/GetIdleInstanceCullerResponse.ts +40 -0
  482. package/src/models/GetIdleInstanceCullerResponseBody.ts +120 -0
  483. package/src/models/GetInstanceEventsRequest.ts +61 -0
  484. package/src/models/GetInstanceEventsResponse.ts +40 -0
  485. package/src/models/GetInstanceEventsResponseBody.ts +104 -0
  486. package/src/models/GetInstanceMetricsRequest.ts +75 -0
  487. package/src/models/GetInstanceMetricsResponse.ts +40 -0
  488. package/src/models/GetInstanceMetricsResponseBody.ts +104 -0
  489. package/src/models/GetInstanceMetricsResponseBodyPodMetrics.ts +45 -0
  490. package/src/models/GetInstanceMetricsResponseBodyPodMetricsMetrics.ts +44 -0
  491. package/src/models/GetInstanceRequest.ts +34 -0
  492. package/src/models/GetInstanceResponse.ts +40 -0
  493. package/src/models/GetInstanceResponseBody.ts +600 -0
  494. package/src/models/GetInstanceResponseBodyAffinity.ts +35 -0
  495. package/src/models/GetInstanceResponseBodyAffinityCpu.ts +36 -0
  496. package/src/models/GetInstanceResponseBodyCloudDisks.ts +64 -0
  497. package/src/models/GetInstanceResponseBodyDatasets.ts +108 -0
  498. package/src/models/GetInstanceResponseBodyIdleInstanceCuller.ts +74 -0
  499. package/src/models/GetInstanceResponseBodyInstanceShutdownTimer.ts +74 -0
  500. package/src/models/GetInstanceResponseBodyInstanceSnapshotList.ts +114 -0
  501. package/src/models/GetInstanceResponseBodyLabels.ts +44 -0
  502. package/src/models/GetInstanceResponseBodyLatestSnapshot.ts +121 -0
  503. package/src/models/GetInstanceResponseBodyNodeErrorRecovery.ts +54 -0
  504. package/src/models/GetInstanceResponseBodyRequestedResource.ts +80 -0
  505. package/src/models/GetInstanceResponseBodyTags.ts +44 -0
  506. package/src/models/GetInstanceResponseBodyUserVpc.ts +98 -0
  507. package/src/models/GetInstanceShutdownTimerResponse.ts +40 -0
  508. package/src/models/GetInstanceShutdownTimerResponseBody.ts +94 -0
  509. package/src/models/GetInstanceSnapshotResponse.ts +40 -0
  510. package/src/models/GetInstanceSnapshotResponseBody.ts +146 -0
  511. package/src/models/GetInstanceSnapshotResponseBodyLabels.ts +38 -0
  512. package/src/models/GetLifecycleRequest.ts +84 -0
  513. package/src/models/GetLifecycleResponse.ts +40 -0
  514. package/src/models/GetLifecycleResponseBody.ts +94 -0
  515. package/src/models/GetLifecycleResponseBodyLifecycle.ts +81 -0
  516. package/src/models/GetMetricsRequest.ts +80 -0
  517. package/src/models/GetMetricsResponse.ts +40 -0
  518. package/src/models/GetMetricsResponseBody.ts +69 -0
  519. package/src/models/GetResourceGroupStatisticsRequest.ts +64 -0
  520. package/src/models/GetResourceGroupStatisticsResponse.ts +40 -0
  521. package/src/models/GetResourceGroupStatisticsResponseBody.ts +65 -0
  522. package/src/models/GetTokenRequest.ts +46 -0
  523. package/src/models/GetTokenResponse.ts +40 -0
  524. package/src/models/GetTokenResponseBody.ts +80 -0
  525. package/src/models/GetUserConfigResponse.ts +40 -0
  526. package/src/models/GetUserConfigResponseBody.ts +87 -0
  527. package/src/models/GetUserConfigResponseBodyFreeTier.ts +108 -0
  528. package/src/models/ListEcsSpecsRequest.ts +85 -0
  529. package/src/models/ListEcsSpecsResponse.ts +40 -0
  530. package/src/models/ListEcsSpecsResponseBody.ts +104 -0
  531. package/src/models/ListEcsSpecsResponseBodyEcsSpecs.ts +160 -0
  532. package/src/models/ListEcsSpecsResponseBodyEcsSpecsLabels.ts +44 -0
  533. package/src/models/ListInstanceSnapshotRequest.ts +52 -0
  534. package/src/models/ListInstanceSnapshotResponse.ts +40 -0
  535. package/src/models/ListInstanceSnapshotResponseBody.ts +73 -0
  536. package/src/models/ListInstanceSnapshotResponseBodySnapshots.ts +115 -0
  537. package/src/models/ListInstanceSnapshotResponseBodySnapshotsLabels.ts +38 -0
  538. package/src/models/ListInstanceStatisticsRequest.ts +34 -0
  539. package/src/models/ListInstanceStatisticsResponse.ts +40 -0
  540. package/src/models/ListInstanceStatisticsResponseBody.ts +65 -0
  541. package/src/models/ListInstancesRequest.ts +328 -0
  542. package/src/models/ListInstancesRequestTag.ts +44 -0
  543. package/src/models/ListInstancesResponse.ts +40 -0
  544. package/src/models/ListInstancesResponseBody.ts +104 -0
  545. package/src/models/ListInstancesResponseBodyInstances.ts +503 -0
  546. package/src/models/ListInstancesResponseBodyInstancesAffinity.ts +35 -0
  547. package/src/models/ListInstancesResponseBodyInstancesAffinityCpu.ts +36 -0
  548. package/src/models/ListInstancesResponseBodyInstancesCloudDisks.ts +64 -0
  549. package/src/models/ListInstancesResponseBodyInstancesDatasets.ts +108 -0
  550. package/src/models/ListInstancesResponseBodyInstancesIdleInstanceCuller.ts +74 -0
  551. package/src/models/ListInstancesResponseBodyInstancesInstanceShutdownTimer.ts +74 -0
  552. package/src/models/ListInstancesResponseBodyInstancesInstanceSnapshotList.ts +114 -0
  553. package/src/models/ListInstancesResponseBodyInstancesLabels.ts +44 -0
  554. package/src/models/ListInstancesResponseBodyInstancesLatestSnapshot.ts +114 -0
  555. package/src/models/ListInstancesResponseBodyInstancesRequestedResource.ts +74 -0
  556. package/src/models/ListInstancesResponseBodyInstancesTags.ts +44 -0
  557. package/src/models/ListInstancesResponseBodyInstancesUserVpc.ts +95 -0
  558. package/src/models/ListInstancesShrinkRequest.ts +321 -0
  559. package/src/models/StartInstanceResponse.ts +40 -0
  560. package/src/models/StartInstanceResponseBody.ts +66 -0
  561. package/src/models/StopInstanceRequest.ts +31 -0
  562. package/src/models/StopInstanceResponse.ts +40 -0
  563. package/src/models/StopInstanceResponseBody.ts +66 -0
  564. package/src/models/UpdateInstanceLabelsRequest.ts +37 -0
  565. package/src/models/UpdateInstanceLabelsRequestLabels.ts +48 -0
  566. package/src/models/UpdateInstanceLabelsResponse.ts +40 -0
  567. package/src/models/UpdateInstanceLabelsResponseBody.ts +34 -0
  568. package/src/models/UpdateInstanceRequest.ts +286 -0
  569. package/src/models/UpdateInstanceRequestAffinity.ts +35 -0
  570. package/src/models/UpdateInstanceRequestAffinityCpu.ts +37 -0
  571. package/src/models/UpdateInstanceRequestCloudDisks.ts +60 -0
  572. package/src/models/UpdateInstanceRequestDatasets.ts +125 -0
  573. package/src/models/UpdateInstanceRequestRequestedResource.ts +74 -0
  574. package/src/models/UpdateInstanceRequestUserVpc.ts +101 -0
  575. package/src/models/UpdateInstanceResponse.ts +40 -0
  576. package/src/models/UpdateInstanceResponseBody.ts +93 -0
  577. package/src/models/model.ts +142 -0
package/dist/client.js CHANGED
@@ -32,4480 +32,19 @@ var __importStar = (this && this.__importStar) || (function () {
32
32
  return result;
33
33
  };
34
34
  })();
35
- var __importDefault = (this && this.__importDefault) || function (mod) {
36
- return (mod && mod.__esModule) ? mod : { "default": mod };
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.ListInstancesResponseBodyInstancesTags = exports.ListInstancesResponseBodyInstancesRequestedResource = exports.ListInstancesResponseBodyInstancesLatestSnapshot = exports.ListInstancesResponseBodyInstancesLabels = exports.ListInstancesResponseBodyInstancesInstanceSnapshotList = exports.ListInstancesResponseBodyInstancesInstanceShutdownTimer = exports.ListInstancesResponseBodyInstancesIdleInstanceCuller = exports.ListInstancesResponseBodyInstancesDatasets = exports.ListInstancesResponseBodyInstancesCloudDisks = exports.ListInstancesResponseBodyInstancesAffinity = exports.ListInstancesResponseBodyInstancesAffinityCPU = exports.ListInstancesRequestTag = exports.ListInstanceSnapshotResponseBodySnapshots = exports.ListInstanceSnapshotResponseBodySnapshotsLabels = exports.ListEcsSpecsResponseBodyEcsSpecs = exports.ListEcsSpecsResponseBodyEcsSpecsLabels = exports.GetUserConfigResponseBodyFreeTier = exports.GetLifecycleResponseBodyLifecycle = exports.GetInstanceSnapshotResponseBodyLabels = exports.GetInstanceMetricsResponseBodyPodMetrics = exports.GetInstanceMetricsResponseBodyPodMetricsMetrics = exports.GetInstanceResponseBodyUserVpc = exports.GetInstanceResponseBodyTags = exports.GetInstanceResponseBodyRequestedResource = exports.GetInstanceResponseBodyNodeErrorRecovery = exports.GetInstanceResponseBodyLatestSnapshot = exports.GetInstanceResponseBodyLabels = exports.GetInstanceResponseBodyInstanceSnapshotList = exports.GetInstanceResponseBodyInstanceShutdownTimer = exports.GetInstanceResponseBodyIdleInstanceCuller = exports.GetInstanceResponseBodyDatasets = exports.GetInstanceResponseBodyCloudDisks = exports.GetInstanceResponseBodyAffinity = exports.GetInstanceResponseBodyAffinityCPU = exports.CreateInstanceSnapshotRequestLabels = exports.CreateInstanceRequestUserVpc = exports.CreateInstanceRequestTag = exports.CreateInstanceRequestRequestedResource = exports.CreateInstanceRequestLabels = exports.CreateInstanceRequestDatasets = exports.CreateInstanceRequestCloudDisks = exports.CreateInstanceRequestCloudDisksStatus = exports.CreateInstanceRequestAffinity = exports.CreateInstanceRequestAffinityCPU = exports.ForwardInfoResponseConnectInfo = exports.ForwardInfoResponseConnectInfoIntranet = exports.ForwardInfoResponseConnectInfoInternet = exports.CredentialConfigConfigs = exports.CredentialConfigConfigsRoles = exports.CredentialConfigConfigsRolesUserInfo = void 0;
40
- exports.GetInstanceMetricsResponse = exports.GetInstanceMetricsResponseBody = exports.GetInstanceMetricsRequest = exports.GetInstanceEventsResponse = exports.GetInstanceEventsResponseBody = exports.GetInstanceEventsRequest = exports.GetInstanceResponse = exports.GetInstanceResponseBody = exports.GetInstanceRequest = exports.GetIdleInstanceCullerResponse = exports.GetIdleInstanceCullerResponseBody = exports.DeleteInstanceSnapshotResponse = exports.DeleteInstanceSnapshotResponseBody = exports.DeleteInstanceShutdownTimerResponse = exports.DeleteInstanceShutdownTimerResponseBody = exports.DeleteInstanceLabelsResponse = exports.DeleteInstanceLabelsResponseBody = exports.DeleteInstanceLabelsRequest = exports.DeleteInstanceResponse = exports.DeleteInstanceResponseBody = exports.DeleteIdleInstanceCullerResponse = exports.DeleteIdleInstanceCullerResponseBody = exports.CreateInstanceSnapshotResponse = exports.CreateInstanceSnapshotResponseBody = exports.CreateInstanceSnapshotRequest = exports.CreateInstanceShutdownTimerResponse = exports.CreateInstanceShutdownTimerResponseBody = exports.CreateInstanceShutdownTimerRequest = exports.CreateInstanceResponse = exports.CreateInstanceResponseBody = exports.CreateInstanceRequest = exports.CreateIdleInstanceCullerResponse = exports.CreateIdleInstanceCullerResponseBody = exports.CreateIdleInstanceCullerRequest = exports.ForwardInfoResponse = exports.ForwardInfo = exports.DynamicMountPoint = exports.DynamicMount = exports.DemoCategory = exports.CredentialConfig = exports.BandwidthLimit = exports.UpdateInstanceLabelsRequestLabels = exports.UpdateInstanceRequestUserVpc = exports.UpdateInstanceRequestRequestedResource = exports.UpdateInstanceRequestDatasets = exports.UpdateInstanceRequestCloudDisks = exports.UpdateInstanceRequestAffinity = exports.UpdateInstanceRequestAffinityCPU = exports.ListInstancesResponseBodyInstances = exports.ListInstancesResponseBodyInstancesUserVpc = void 0;
41
- exports.UpdateInstanceLabelsResponse = exports.UpdateInstanceLabelsResponseBody = exports.UpdateInstanceLabelsRequest = exports.UpdateInstanceResponse = exports.UpdateInstanceResponseBody = exports.UpdateInstanceRequest = exports.StopInstanceResponse = exports.StopInstanceResponseBody = exports.StopInstanceRequest = exports.StartInstanceResponse = exports.StartInstanceResponseBody = exports.ListInstancesResponse = exports.ListInstancesResponseBody = exports.ListInstancesShrinkRequest = exports.ListInstancesRequest = exports.ListInstanceStatisticsResponse = exports.ListInstanceStatisticsResponseBody = exports.ListInstanceStatisticsRequest = exports.ListInstanceSnapshotResponse = exports.ListInstanceSnapshotResponseBody = exports.ListInstanceSnapshotRequest = exports.ListEcsSpecsResponse = exports.ListEcsSpecsResponseBody = exports.ListEcsSpecsRequest = exports.GetUserConfigResponse = exports.GetUserConfigResponseBody = exports.GetTokenResponse = exports.GetTokenResponseBody = exports.GetTokenRequest = exports.GetResourceGroupStatisticsResponse = exports.GetResourceGroupStatisticsResponseBody = exports.GetResourceGroupStatisticsRequest = exports.GetMetricsResponse = exports.GetMetricsResponseBody = exports.GetMetricsRequest = exports.GetLifecycleResponse = exports.GetLifecycleResponseBody = exports.GetLifecycleRequest = exports.GetInstanceSnapshotResponse = exports.GetInstanceSnapshotResponseBody = exports.GetInstanceShutdownTimerResponse = exports.GetInstanceShutdownTimerResponseBody = void 0;
42
- // This file is auto-generated, don't edit it
43
- /**
44
- */
45
- const openapi_core_1 = __importDefault(require("@alicloud/openapi-core"));
46
- const openapi_core_2 = require("@alicloud/openapi-core");
47
- const $dara = __importStar(require("@darabonba/typescript"));
48
- class CredentialConfigConfigsRolesUserInfo extends $dara.Model {
49
- static names() {
50
- return {
51
- accessKeyId: 'AccessKeyId',
52
- id: 'Id',
53
- securityToken: 'SecurityToken',
54
- type: 'Type',
55
- };
56
- }
57
- static types() {
58
- return {
59
- accessKeyId: 'string',
60
- id: 'string',
61
- securityToken: 'string',
62
- type: 'string',
63
- };
64
- }
65
- validate() {
66
- super.validate();
67
- }
68
- constructor(map) {
69
- super(map);
70
- }
71
- }
72
- exports.CredentialConfigConfigsRolesUserInfo = CredentialConfigConfigsRolesUserInfo;
73
- class CredentialConfigConfigsRoles extends $dara.Model {
74
- static names() {
75
- return {
76
- assumeRoleFor: 'AssumeRoleFor',
77
- policy: 'Policy',
78
- roleArn: 'RoleArn',
79
- roleType: 'RoleType',
80
- userInfo: 'UserInfo',
81
- };
82
- }
83
- static types() {
84
- return {
85
- assumeRoleFor: 'string',
86
- policy: 'string',
87
- roleArn: 'string',
88
- roleType: 'string',
89
- userInfo: CredentialConfigConfigsRolesUserInfo,
90
- };
91
- }
92
- validate() {
93
- if (this.userInfo && typeof this.userInfo.validate === 'function') {
94
- this.userInfo.validate();
95
- }
96
- super.validate();
97
- }
98
- constructor(map) {
99
- super(map);
100
- }
101
- }
102
- exports.CredentialConfigConfigsRoles = CredentialConfigConfigsRoles;
103
- class CredentialConfigConfigs extends $dara.Model {
104
- static names() {
105
- return {
106
- key: 'Key',
107
- roles: 'Roles',
108
- type: 'Type',
109
- };
110
- }
111
- static types() {
112
- return {
113
- key: 'string',
114
- roles: { 'type': 'array', 'itemType': CredentialConfigConfigsRoles },
115
- type: 'string',
116
- };
117
- }
118
- validate() {
119
- if (Array.isArray(this.roles)) {
120
- $dara.Model.validateArray(this.roles);
121
- }
122
- super.validate();
123
- }
124
- constructor(map) {
125
- super(map);
126
- }
127
- }
128
- exports.CredentialConfigConfigs = CredentialConfigConfigs;
129
- class ForwardInfoResponseConnectInfoInternet extends $dara.Model {
130
- static names() {
131
- return {
132
- endpoint: 'Endpoint',
133
- port: 'Port',
134
- };
135
- }
136
- static types() {
137
- return {
138
- endpoint: 'string',
139
- port: 'string',
140
- };
141
- }
142
- validate() {
143
- super.validate();
144
- }
145
- constructor(map) {
146
- super(map);
147
- }
148
- }
149
- exports.ForwardInfoResponseConnectInfoInternet = ForwardInfoResponseConnectInfoInternet;
150
- class ForwardInfoResponseConnectInfoIntranet extends $dara.Model {
151
- static names() {
152
- return {
153
- endpoint: 'Endpoint',
154
- port: 'Port',
155
- };
156
- }
157
- static types() {
158
- return {
159
- endpoint: 'string',
160
- port: 'string',
161
- };
162
- }
163
- validate() {
164
- super.validate();
165
- }
166
- constructor(map) {
167
- super(map);
168
- }
169
- }
170
- exports.ForwardInfoResponseConnectInfoIntranet = ForwardInfoResponseConnectInfoIntranet;
171
- class ForwardInfoResponseConnectInfo extends $dara.Model {
172
- static names() {
173
- return {
174
- internet: 'Internet',
175
- intranet: 'Intranet',
176
- message: 'Message',
177
- phase: 'Phase',
178
- };
179
- }
180
- static types() {
181
- return {
182
- internet: ForwardInfoResponseConnectInfoInternet,
183
- intranet: ForwardInfoResponseConnectInfoIntranet,
184
- message: 'string',
185
- phase: 'string',
186
- };
187
- }
188
- validate() {
189
- if (this.internet && typeof this.internet.validate === 'function') {
190
- this.internet.validate();
191
- }
192
- if (this.intranet && typeof this.intranet.validate === 'function') {
193
- this.intranet.validate();
194
- }
195
- super.validate();
196
- }
197
- constructor(map) {
198
- super(map);
199
- }
200
- }
201
- exports.ForwardInfoResponseConnectInfo = ForwardInfoResponseConnectInfo;
202
- class CreateInstanceRequestAffinityCPU extends $dara.Model {
203
- static names() {
204
- return {
205
- enable: 'Enable',
206
- };
207
- }
208
- static types() {
209
- return {
210
- enable: 'boolean',
211
- };
212
- }
213
- validate() {
214
- super.validate();
215
- }
216
- constructor(map) {
217
- super(map);
218
- }
219
- }
220
- exports.CreateInstanceRequestAffinityCPU = CreateInstanceRequestAffinityCPU;
221
- class CreateInstanceRequestAffinity extends $dara.Model {
222
- static names() {
223
- return {
224
- CPU: 'CPU',
225
- };
226
- }
227
- static types() {
228
- return {
229
- CPU: CreateInstanceRequestAffinityCPU,
230
- };
231
- }
232
- validate() {
233
- if (this.CPU && typeof this.CPU.validate === 'function') {
234
- this.CPU.validate();
235
- }
236
- super.validate();
237
- }
238
- constructor(map) {
239
- super(map);
240
- }
241
- }
242
- exports.CreateInstanceRequestAffinity = CreateInstanceRequestAffinity;
243
- class CreateInstanceRequestCloudDisksStatus extends $dara.Model {
244
- static names() {
245
- return {
246
- available: 'Available',
247
- capacity: 'Capacity',
248
- usage: 'Usage',
249
- };
250
- }
251
- static types() {
252
- return {
253
- available: 'number',
254
- capacity: 'number',
255
- usage: 'number',
256
- };
257
- }
258
- validate() {
259
- super.validate();
260
- }
261
- constructor(map) {
262
- super(map);
263
- }
264
- }
265
- exports.CreateInstanceRequestCloudDisksStatus = CreateInstanceRequestCloudDisksStatus;
266
- class CreateInstanceRequestCloudDisks extends $dara.Model {
267
- static names() {
268
- return {
269
- capacity: 'Capacity',
270
- mountPath: 'MountPath',
271
- path: 'Path',
272
- status: 'Status',
273
- subType: 'SubType',
274
- };
275
- }
276
- static types() {
277
- return {
278
- capacity: 'string',
279
- mountPath: 'string',
280
- path: 'string',
281
- status: CreateInstanceRequestCloudDisksStatus,
282
- subType: 'string',
283
- };
284
- }
285
- validate() {
286
- if (this.status && typeof this.status.validate === 'function') {
287
- this.status.validate();
288
- }
289
- super.validate();
290
- }
291
- constructor(map) {
292
- super(map);
293
- }
294
- }
295
- exports.CreateInstanceRequestCloudDisks = CreateInstanceRequestCloudDisks;
296
- class CreateInstanceRequestDatasets extends $dara.Model {
297
- static names() {
298
- return {
299
- datasetId: 'DatasetId',
300
- datasetVersion: 'DatasetVersion',
301
- dynamic: 'Dynamic',
302
- mountAccess: 'MountAccess',
303
- mountPath: 'MountPath',
304
- optionType: 'OptionType',
305
- options: 'Options',
306
- uri: 'Uri',
307
- };
308
- }
309
- static types() {
310
- return {
311
- datasetId: 'string',
312
- datasetVersion: 'string',
313
- dynamic: 'boolean',
314
- mountAccess: 'string',
315
- mountPath: 'string',
316
- optionType: 'string',
317
- options: 'string',
318
- uri: 'string',
319
- };
320
- }
321
- validate() {
322
- super.validate();
323
- }
324
- constructor(map) {
325
- super(map);
326
- }
327
- }
328
- exports.CreateInstanceRequestDatasets = CreateInstanceRequestDatasets;
329
- class CreateInstanceRequestLabels extends $dara.Model {
330
- static names() {
331
- return {
332
- key: 'Key',
333
- value: 'Value',
334
- };
335
- }
336
- static types() {
337
- return {
338
- key: 'string',
339
- value: 'string',
340
- };
341
- }
342
- validate() {
343
- super.validate();
344
- }
345
- constructor(map) {
346
- super(map);
347
- }
348
- }
349
- exports.CreateInstanceRequestLabels = CreateInstanceRequestLabels;
350
- class CreateInstanceRequestRequestedResource extends $dara.Model {
351
- static names() {
352
- return {
353
- CPU: 'CPU',
354
- GPU: 'GPU',
355
- GPUType: 'GPUType',
356
- memory: 'Memory',
357
- sharedMemory: 'SharedMemory',
358
- };
359
- }
360
- static types() {
361
- return {
362
- CPU: 'string',
363
- GPU: 'string',
364
- GPUType: 'string',
365
- memory: 'string',
366
- sharedMemory: 'string',
367
- };
368
- }
369
- validate() {
370
- super.validate();
371
- }
372
- constructor(map) {
373
- super(map);
374
- }
375
- }
376
- exports.CreateInstanceRequestRequestedResource = CreateInstanceRequestRequestedResource;
377
- class CreateInstanceRequestTag extends $dara.Model {
378
- static names() {
379
- return {
380
- key: 'Key',
381
- value: 'Value',
382
- };
383
- }
384
- static types() {
385
- return {
386
- key: 'string',
387
- value: 'string',
388
- };
389
- }
390
- validate() {
391
- super.validate();
392
- }
393
- constructor(map) {
394
- super(map);
395
- }
396
- }
397
- exports.CreateInstanceRequestTag = CreateInstanceRequestTag;
398
- class CreateInstanceRequestUserVpc extends $dara.Model {
399
- static names() {
400
- return {
401
- bandwidthLimit: 'BandwidthLimit',
402
- defaultRoute: 'DefaultRoute',
403
- extendedCIDRs: 'ExtendedCIDRs',
404
- forwardInfos: 'ForwardInfos',
405
- securityGroupId: 'SecurityGroupId',
406
- vSwitchId: 'VSwitchId',
407
- vpcId: 'VpcId',
408
- };
409
- }
410
- static types() {
411
- return {
412
- bandwidthLimit: BandwidthLimit,
413
- defaultRoute: 'string',
414
- extendedCIDRs: { 'type': 'array', 'itemType': 'string' },
415
- forwardInfos: { 'type': 'array', 'itemType': ForwardInfo },
416
- securityGroupId: 'string',
417
- vSwitchId: 'string',
418
- vpcId: 'string',
419
- };
420
- }
421
- validate() {
422
- if (this.bandwidthLimit && typeof this.bandwidthLimit.validate === 'function') {
423
- this.bandwidthLimit.validate();
424
- }
425
- if (Array.isArray(this.extendedCIDRs)) {
426
- $dara.Model.validateArray(this.extendedCIDRs);
427
- }
428
- if (Array.isArray(this.forwardInfos)) {
429
- $dara.Model.validateArray(this.forwardInfos);
430
- }
431
- super.validate();
432
- }
433
- constructor(map) {
434
- super(map);
435
- }
436
- }
437
- exports.CreateInstanceRequestUserVpc = CreateInstanceRequestUserVpc;
438
- class CreateInstanceSnapshotRequestLabels extends $dara.Model {
439
- static names() {
440
- return {
441
- key: 'Key',
442
- value: 'Value',
443
- };
444
- }
445
- static types() {
446
- return {
447
- key: 'string',
448
- value: 'string',
449
- };
450
- }
451
- validate() {
452
- super.validate();
453
- }
454
- constructor(map) {
455
- super(map);
456
- }
457
- }
458
- exports.CreateInstanceSnapshotRequestLabels = CreateInstanceSnapshotRequestLabels;
459
- class GetInstanceResponseBodyAffinityCPU extends $dara.Model {
460
- static names() {
461
- return {
462
- enable: 'Enable',
463
- };
464
- }
465
- static types() {
466
- return {
467
- enable: 'boolean',
468
- };
469
- }
470
- validate() {
471
- super.validate();
472
- }
473
- constructor(map) {
474
- super(map);
475
- }
476
- }
477
- exports.GetInstanceResponseBodyAffinityCPU = GetInstanceResponseBodyAffinityCPU;
478
- class GetInstanceResponseBodyAffinity extends $dara.Model {
479
- static names() {
480
- return {
481
- CPU: 'CPU',
482
- };
483
- }
484
- static types() {
485
- return {
486
- CPU: GetInstanceResponseBodyAffinityCPU,
487
- };
488
- }
489
- validate() {
490
- if (this.CPU && typeof this.CPU.validate === 'function') {
491
- this.CPU.validate();
492
- }
493
- super.validate();
494
- }
495
- constructor(map) {
496
- super(map);
497
- }
498
- }
499
- exports.GetInstanceResponseBodyAffinity = GetInstanceResponseBodyAffinity;
500
- class GetInstanceResponseBodyCloudDisks extends $dara.Model {
501
- static names() {
502
- return {
503
- capacity: 'Capacity',
504
- mountPath: 'MountPath',
505
- path: 'Path',
506
- subType: 'SubType',
507
- };
508
- }
509
- static types() {
510
- return {
511
- capacity: 'string',
512
- mountPath: 'string',
513
- path: 'string',
514
- subType: 'string',
515
- };
516
- }
517
- validate() {
518
- super.validate();
519
- }
520
- constructor(map) {
521
- super(map);
522
- }
523
- }
524
- exports.GetInstanceResponseBodyCloudDisks = GetInstanceResponseBodyCloudDisks;
525
- class GetInstanceResponseBodyDatasets extends $dara.Model {
526
- static names() {
527
- return {
528
- datasetId: 'DatasetId',
529
- datasetVersion: 'DatasetVersion',
530
- dynamic: 'Dynamic',
531
- mountAccess: 'MountAccess',
532
- mountPath: 'MountPath',
533
- optionType: 'OptionType',
534
- options: 'Options',
535
- uri: 'Uri',
536
- };
537
- }
538
- static types() {
539
- return {
540
- datasetId: 'string',
541
- datasetVersion: 'string',
542
- dynamic: 'boolean',
543
- mountAccess: 'string',
544
- mountPath: 'string',
545
- optionType: 'string',
546
- options: 'string',
547
- uri: 'string',
548
- };
549
- }
550
- validate() {
551
- super.validate();
552
- }
553
- constructor(map) {
554
- super(map);
555
- }
556
- }
557
- exports.GetInstanceResponseBodyDatasets = GetInstanceResponseBodyDatasets;
558
- class GetInstanceResponseBodyIdleInstanceCuller extends $dara.Model {
559
- static names() {
560
- return {
561
- cpuPercentThreshold: 'CpuPercentThreshold',
562
- gpuPercentThreshold: 'GpuPercentThreshold',
563
- idleTimeInMinutes: 'IdleTimeInMinutes',
564
- instanceId: 'InstanceId',
565
- maxIdleTimeInMinutes: 'MaxIdleTimeInMinutes',
566
- };
567
- }
568
- static types() {
569
- return {
570
- cpuPercentThreshold: 'number',
571
- gpuPercentThreshold: 'number',
572
- idleTimeInMinutes: 'number',
573
- instanceId: 'string',
574
- maxIdleTimeInMinutes: 'number',
575
- };
576
- }
577
- validate() {
578
- super.validate();
579
- }
580
- constructor(map) {
581
- super(map);
582
- }
583
- }
584
- exports.GetInstanceResponseBodyIdleInstanceCuller = GetInstanceResponseBodyIdleInstanceCuller;
585
- class GetInstanceResponseBodyInstanceShutdownTimer extends $dara.Model {
586
- static names() {
587
- return {
588
- dueTime: 'DueTime',
589
- gmtCreateTime: 'GmtCreateTime',
590
- gmtModifiedTime: 'GmtModifiedTime',
591
- instanceId: 'InstanceId',
592
- remainingTimeInMs: 'RemainingTimeInMs',
593
- };
594
- }
595
- static types() {
596
- return {
597
- dueTime: 'string',
598
- gmtCreateTime: 'string',
599
- gmtModifiedTime: 'string',
600
- instanceId: 'string',
601
- remainingTimeInMs: 'number',
602
- };
603
- }
604
- validate() {
605
- super.validate();
606
- }
607
- constructor(map) {
608
- super(map);
609
- }
610
- }
611
- exports.GetInstanceResponseBodyInstanceShutdownTimer = GetInstanceResponseBodyInstanceShutdownTimer;
612
- class GetInstanceResponseBodyInstanceSnapshotList extends $dara.Model {
613
- static names() {
614
- return {
615
- gmtCreateTime: 'GmtCreateTime',
616
- gmtModifiedTime: 'GmtModifiedTime',
617
- imageId: 'ImageId',
618
- imageName: 'ImageName',
619
- imageUrl: 'ImageUrl',
620
- reasonCode: 'ReasonCode',
621
- reasonMessage: 'ReasonMessage',
622
- repositoryUrl: 'RepositoryUrl',
623
- status: 'Status',
624
- };
625
- }
626
- static types() {
627
- return {
628
- gmtCreateTime: 'string',
629
- gmtModifiedTime: 'string',
630
- imageId: 'string',
631
- imageName: 'string',
632
- imageUrl: 'string',
633
- reasonCode: 'string',
634
- reasonMessage: 'string',
635
- repositoryUrl: 'string',
636
- status: 'string',
637
- };
638
- }
639
- validate() {
640
- super.validate();
641
- }
642
- constructor(map) {
643
- super(map);
644
- }
645
- }
646
- exports.GetInstanceResponseBodyInstanceSnapshotList = GetInstanceResponseBodyInstanceSnapshotList;
647
- class GetInstanceResponseBodyLabels extends $dara.Model {
648
- static names() {
649
- return {
650
- key: 'Key',
651
- value: 'Value',
652
- };
653
- }
654
- static types() {
655
- return {
656
- key: 'string',
657
- value: 'string',
658
- };
659
- }
660
- validate() {
661
- super.validate();
662
- }
663
- constructor(map) {
664
- super(map);
665
- }
666
- }
667
- exports.GetInstanceResponseBodyLabels = GetInstanceResponseBodyLabels;
668
- class GetInstanceResponseBodyLatestSnapshot extends $dara.Model {
669
- static names() {
670
- return {
671
- gmtCreateTime: 'GmtCreateTime',
672
- gmtModifiedTime: 'GmtModifiedTime',
673
- imageId: 'ImageId',
674
- imageName: 'ImageName',
675
- imageUrl: 'ImageUrl',
676
- reasonCode: 'ReasonCode',
677
- reasonMessage: 'ReasonMessage',
678
- repositoryUrl: 'RepositoryUrl',
679
- status: 'Status',
680
- };
681
- }
682
- static types() {
683
- return {
684
- gmtCreateTime: 'string',
685
- gmtModifiedTime: 'string',
686
- imageId: 'string',
687
- imageName: 'string',
688
- imageUrl: 'string',
689
- reasonCode: 'string',
690
- reasonMessage: 'string',
691
- repositoryUrl: 'string',
692
- status: 'string',
693
- };
694
- }
695
- validate() {
696
- super.validate();
697
- }
698
- constructor(map) {
699
- super(map);
700
- }
701
- }
702
- exports.GetInstanceResponseBodyLatestSnapshot = GetInstanceResponseBodyLatestSnapshot;
703
- class GetInstanceResponseBodyNodeErrorRecovery extends $dara.Model {
704
- static names() {
705
- return {
706
- autoSwitchCountdownSeconds: 'autoSwitchCountdownSeconds',
707
- enableAutoSwitchOnNodeError: 'enableAutoSwitchOnNodeError',
708
- hasNodeError: 'hasNodeError',
709
- };
710
- }
711
- static types() {
712
- return {
713
- autoSwitchCountdownSeconds: 'number',
714
- enableAutoSwitchOnNodeError: 'boolean',
715
- hasNodeError: 'boolean',
716
- };
717
- }
718
- validate() {
719
- super.validate();
720
- }
721
- constructor(map) {
722
- super(map);
723
- }
724
- }
725
- exports.GetInstanceResponseBodyNodeErrorRecovery = GetInstanceResponseBodyNodeErrorRecovery;
726
- class GetInstanceResponseBodyRequestedResource extends $dara.Model {
727
- static names() {
728
- return {
729
- CPU: 'CPU',
730
- GPU: 'GPU',
731
- GPUType: 'GPUType',
732
- memory: 'Memory',
733
- sharedMemory: 'SharedMemory',
734
- };
735
- }
736
- static types() {
737
- return {
738
- CPU: 'string',
739
- GPU: 'string',
740
- GPUType: 'string',
741
- memory: 'string',
742
- sharedMemory: 'string',
743
- };
744
- }
745
- validate() {
746
- super.validate();
747
- }
748
- constructor(map) {
749
- super(map);
750
- }
751
- }
752
- exports.GetInstanceResponseBodyRequestedResource = GetInstanceResponseBodyRequestedResource;
753
- class GetInstanceResponseBodyTags extends $dara.Model {
754
- static names() {
755
- return {
756
- tagKey: 'TagKey',
757
- tagValue: 'TagValue',
758
- };
759
- }
760
- static types() {
761
- return {
762
- tagKey: 'string',
763
- tagValue: 'string',
764
- };
765
- }
766
- validate() {
767
- super.validate();
768
- }
769
- constructor(map) {
770
- super(map);
771
- }
772
- }
773
- exports.GetInstanceResponseBodyTags = GetInstanceResponseBodyTags;
774
- class GetInstanceResponseBodyUserVpc extends $dara.Model {
775
- static names() {
776
- return {
777
- bandwidthLimit: 'BandwidthLimit',
778
- defaultRoute: 'DefaultRoute',
779
- extendedCIDRs: 'ExtendedCIDRs',
780
- forwardInfos: 'ForwardInfos',
781
- securityGroupId: 'SecurityGroupId',
782
- vSwitchId: 'VSwitchId',
783
- vpcId: 'VpcId',
784
- };
785
- }
786
- static types() {
787
- return {
788
- bandwidthLimit: BandwidthLimit,
789
- defaultRoute: 'string',
790
- extendedCIDRs: { 'type': 'array', 'itemType': 'string' },
791
- forwardInfos: { 'type': 'array', 'itemType': ForwardInfoResponse },
792
- securityGroupId: 'string',
793
- vSwitchId: 'string',
794
- vpcId: 'string',
795
- };
796
- }
797
- validate() {
798
- if (this.bandwidthLimit && typeof this.bandwidthLimit.validate === 'function') {
799
- this.bandwidthLimit.validate();
800
- }
801
- if (Array.isArray(this.extendedCIDRs)) {
802
- $dara.Model.validateArray(this.extendedCIDRs);
803
- }
804
- if (Array.isArray(this.forwardInfos)) {
805
- $dara.Model.validateArray(this.forwardInfos);
806
- }
807
- super.validate();
808
- }
809
- constructor(map) {
810
- super(map);
811
- }
812
- }
813
- exports.GetInstanceResponseBodyUserVpc = GetInstanceResponseBodyUserVpc;
814
- class GetInstanceMetricsResponseBodyPodMetricsMetrics extends $dara.Model {
815
- static names() {
816
- return {
817
- time: 'Time',
818
- value: 'Value',
819
- };
820
- }
821
- static types() {
822
- return {
823
- time: 'number',
824
- value: 'number',
825
- };
826
- }
827
- validate() {
828
- super.validate();
829
- }
830
- constructor(map) {
831
- super(map);
832
- }
833
- }
834
- exports.GetInstanceMetricsResponseBodyPodMetricsMetrics = GetInstanceMetricsResponseBodyPodMetricsMetrics;
835
- class GetInstanceMetricsResponseBodyPodMetrics extends $dara.Model {
836
- static names() {
837
- return {
838
- metrics: 'Metrics',
839
- podId: 'PodId',
840
- };
841
- }
842
- static types() {
843
- return {
844
- metrics: { 'type': 'array', 'itemType': GetInstanceMetricsResponseBodyPodMetricsMetrics },
845
- podId: 'string',
846
- };
847
- }
848
- validate() {
849
- if (Array.isArray(this.metrics)) {
850
- $dara.Model.validateArray(this.metrics);
851
- }
852
- super.validate();
853
- }
854
- constructor(map) {
855
- super(map);
856
- }
857
- }
858
- exports.GetInstanceMetricsResponseBodyPodMetrics = GetInstanceMetricsResponseBodyPodMetrics;
859
- class GetInstanceSnapshotResponseBodyLabels extends $dara.Model {
860
- static names() {
861
- return {
862
- key: 'Key',
863
- value: 'Value',
864
- };
865
- }
866
- static types() {
867
- return {
868
- key: 'string',
869
- value: 'string',
870
- };
871
- }
872
- validate() {
873
- super.validate();
874
- }
875
- constructor(map) {
876
- super(map);
877
- }
878
- }
879
- exports.GetInstanceSnapshotResponseBodyLabels = GetInstanceSnapshotResponseBodyLabels;
880
- class GetLifecycleResponseBodyLifecycle extends $dara.Model {
881
- static names() {
882
- return {
883
- status: 'Status',
884
- reasonCode: 'ReasonCode',
885
- reasonMessage: 'ReasonMessage',
886
- gmtCreateTime: 'GmtCreateTime',
887
- };
888
- }
889
- static types() {
890
- return {
891
- status: 'string',
892
- reasonCode: 'string',
893
- reasonMessage: 'string',
894
- gmtCreateTime: 'string',
895
- };
896
- }
897
- validate() {
898
- super.validate();
899
- }
900
- constructor(map) {
901
- super(map);
902
- }
903
- }
904
- exports.GetLifecycleResponseBodyLifecycle = GetLifecycleResponseBodyLifecycle;
905
- class GetUserConfigResponseBodyFreeTier extends $dara.Model {
906
- static names() {
907
- return {
908
- endTime: 'EndTime',
909
- initBaseUnit: 'InitBaseUnit',
910
- initBaseValue: 'InitBaseValue',
911
- initShowUnit: 'InitShowUnit',
912
- initShowValue: 'InitShowValue',
913
- isFreeTierUser: 'IsFreeTierUser',
914
- periodBaseUnit: 'PeriodBaseUnit',
915
- periodBaseValue: 'PeriodBaseValue',
916
- periodShowUnit: 'PeriodShowUnit',
917
- periodShowValue: 'PeriodShowValue',
918
- startTime: 'StartTime',
919
- status: 'Status',
920
- };
921
- }
922
- static types() {
923
- return {
924
- endTime: 'string',
925
- initBaseUnit: 'string',
926
- initBaseValue: 'number',
927
- initShowUnit: 'string',
928
- initShowValue: 'string',
929
- isFreeTierUser: 'boolean',
930
- periodBaseUnit: 'string',
931
- periodBaseValue: 'number',
932
- periodShowUnit: 'string',
933
- periodShowValue: 'string',
934
- startTime: 'string',
935
- status: 'string',
936
- };
937
- }
938
- validate() {
939
- super.validate();
940
- }
941
- constructor(map) {
942
- super(map);
943
- }
944
- }
945
- exports.GetUserConfigResponseBodyFreeTier = GetUserConfigResponseBodyFreeTier;
946
- class ListEcsSpecsResponseBodyEcsSpecsLabels extends $dara.Model {
947
- static names() {
948
- return {
949
- key: 'Key',
950
- value: 'Value',
951
- };
952
- }
953
- static types() {
954
- return {
955
- key: 'string',
956
- value: 'string',
957
- };
958
- }
959
- validate() {
960
- super.validate();
961
- }
962
- constructor(map) {
963
- super(map);
964
- }
965
- }
966
- exports.ListEcsSpecsResponseBodyEcsSpecsLabels = ListEcsSpecsResponseBodyEcsSpecsLabels;
967
- class ListEcsSpecsResponseBodyEcsSpecs extends $dara.Model {
968
- static names() {
969
- return {
970
- acceleratorType: 'AcceleratorType',
971
- CPU: 'CPU',
972
- currency: 'Currency',
973
- GPU: 'GPU',
974
- GPUMemorySize: 'GPUMemorySize',
975
- GPUType: 'GPUType',
976
- instanceBandwidthRx: 'InstanceBandwidthRx',
977
- instanceType: 'InstanceType',
978
- isAvailable: 'IsAvailable',
979
- labels: 'Labels',
980
- memory: 'Memory',
981
- price: 'Price',
982
- spotStockStatus: 'SpotStockStatus',
983
- systemDiskCapacity: 'SystemDiskCapacity',
984
- };
985
- }
986
- static types() {
987
- return {
988
- acceleratorType: 'string',
989
- CPU: 'number',
990
- currency: 'string',
991
- GPU: 'number',
992
- GPUMemorySize: 'number',
993
- GPUType: 'string',
994
- instanceBandwidthRx: 'number',
995
- instanceType: 'string',
996
- isAvailable: 'boolean',
997
- labels: { 'type': 'array', 'itemType': ListEcsSpecsResponseBodyEcsSpecsLabels },
998
- memory: 'number',
999
- price: 'number',
1000
- spotStockStatus: 'string',
1001
- systemDiskCapacity: 'number',
1002
- };
1003
- }
1004
- validate() {
1005
- if (Array.isArray(this.labels)) {
1006
- $dara.Model.validateArray(this.labels);
1007
- }
1008
- super.validate();
1009
- }
1010
- constructor(map) {
1011
- super(map);
1012
- }
1013
- }
1014
- exports.ListEcsSpecsResponseBodyEcsSpecs = ListEcsSpecsResponseBodyEcsSpecs;
1015
- class ListInstanceSnapshotResponseBodySnapshotsLabels extends $dara.Model {
1016
- static names() {
1017
- return {
1018
- key: 'Key',
1019
- value: 'Value',
1020
- };
1021
- }
1022
- static types() {
1023
- return {
1024
- key: 'string',
1025
- value: 'string',
1026
- };
1027
- }
1028
- validate() {
1029
- super.validate();
1030
- }
1031
- constructor(map) {
1032
- super(map);
1033
- }
1034
- }
1035
- exports.ListInstanceSnapshotResponseBodySnapshotsLabels = ListInstanceSnapshotResponseBodySnapshotsLabels;
1036
- class ListInstanceSnapshotResponseBodySnapshots extends $dara.Model {
1037
- static names() {
1038
- return {
1039
- excludePaths: 'ExcludePaths',
1040
- gmtCreateTime: 'GmtCreateTime',
1041
- gmtModifiedTime: 'GmtModifiedTime',
1042
- imageId: 'ImageId',
1043
- imageUrl: 'ImageUrl',
1044
- instanceId: 'InstanceId',
1045
- labels: 'Labels',
1046
- reasonCode: 'ReasonCode',
1047
- reasonMessage: 'ReasonMessage',
1048
- snapshotId: 'SnapshotId',
1049
- snapshotName: 'SnapshotName',
1050
- status: 'Status',
1051
- };
1052
- }
1053
- static types() {
1054
- return {
1055
- excludePaths: { 'type': 'array', 'itemType': 'string' },
1056
- gmtCreateTime: 'string',
1057
- gmtModifiedTime: 'string',
1058
- imageId: 'string',
1059
- imageUrl: 'string',
1060
- instanceId: 'string',
1061
- labels: { 'type': 'array', 'itemType': ListInstanceSnapshotResponseBodySnapshotsLabels },
1062
- reasonCode: 'string',
1063
- reasonMessage: 'string',
1064
- snapshotId: 'string',
1065
- snapshotName: 'string',
1066
- status: 'string',
1067
- };
1068
- }
1069
- validate() {
1070
- if (Array.isArray(this.excludePaths)) {
1071
- $dara.Model.validateArray(this.excludePaths);
1072
- }
1073
- if (Array.isArray(this.labels)) {
1074
- $dara.Model.validateArray(this.labels);
1075
- }
1076
- super.validate();
1077
- }
1078
- constructor(map) {
1079
- super(map);
1080
- }
1081
- }
1082
- exports.ListInstanceSnapshotResponseBodySnapshots = ListInstanceSnapshotResponseBodySnapshots;
1083
- class ListInstancesRequestTag extends $dara.Model {
1084
- static names() {
1085
- return {
1086
- key: 'Key',
1087
- value: 'Value',
1088
- };
1089
- }
1090
- static types() {
1091
- return {
1092
- key: 'string',
1093
- value: 'string',
1094
- };
1095
- }
1096
- validate() {
1097
- super.validate();
1098
- }
1099
- constructor(map) {
1100
- super(map);
1101
- }
1102
- }
1103
- exports.ListInstancesRequestTag = ListInstancesRequestTag;
1104
- class ListInstancesResponseBodyInstancesAffinityCPU extends $dara.Model {
1105
- static names() {
1106
- return {
1107
- enable: 'Enable',
1108
- };
1109
- }
1110
- static types() {
1111
- return {
1112
- enable: 'boolean',
1113
- };
1114
- }
1115
- validate() {
1116
- super.validate();
1117
- }
1118
- constructor(map) {
1119
- super(map);
1120
- }
1121
- }
1122
- exports.ListInstancesResponseBodyInstancesAffinityCPU = ListInstancesResponseBodyInstancesAffinityCPU;
1123
- class ListInstancesResponseBodyInstancesAffinity extends $dara.Model {
1124
- static names() {
1125
- return {
1126
- CPU: 'CPU',
1127
- };
1128
- }
1129
- static types() {
1130
- return {
1131
- CPU: ListInstancesResponseBodyInstancesAffinityCPU,
1132
- };
1133
- }
1134
- validate() {
1135
- if (this.CPU && typeof this.CPU.validate === 'function') {
1136
- this.CPU.validate();
1137
- }
1138
- super.validate();
1139
- }
1140
- constructor(map) {
1141
- super(map);
1142
- }
1143
- }
1144
- exports.ListInstancesResponseBodyInstancesAffinity = ListInstancesResponseBodyInstancesAffinity;
1145
- class ListInstancesResponseBodyInstancesCloudDisks extends $dara.Model {
1146
- static names() {
1147
- return {
1148
- capacity: 'Capacity',
1149
- mountPath: 'MountPath',
1150
- path: 'Path',
1151
- subType: 'SubType',
1152
- };
1153
- }
1154
- static types() {
1155
- return {
1156
- capacity: 'string',
1157
- mountPath: 'string',
1158
- path: 'string',
1159
- subType: 'string',
1160
- };
1161
- }
1162
- validate() {
1163
- super.validate();
1164
- }
1165
- constructor(map) {
1166
- super(map);
1167
- }
1168
- }
1169
- exports.ListInstancesResponseBodyInstancesCloudDisks = ListInstancesResponseBodyInstancesCloudDisks;
1170
- class ListInstancesResponseBodyInstancesDatasets extends $dara.Model {
1171
- static names() {
1172
- return {
1173
- datasetId: 'DatasetId',
1174
- datasetVersion: 'DatasetVersion',
1175
- dynamic: 'Dynamic',
1176
- mountAccess: 'MountAccess',
1177
- mountPath: 'MountPath',
1178
- optionType: 'OptionType',
1179
- options: 'Options',
1180
- uri: 'Uri',
1181
- };
1182
- }
1183
- static types() {
1184
- return {
1185
- datasetId: 'string',
1186
- datasetVersion: 'string',
1187
- dynamic: 'boolean',
1188
- mountAccess: 'string',
1189
- mountPath: 'string',
1190
- optionType: 'string',
1191
- options: 'string',
1192
- uri: 'string',
1193
- };
1194
- }
1195
- validate() {
1196
- super.validate();
1197
- }
1198
- constructor(map) {
1199
- super(map);
1200
- }
1201
- }
1202
- exports.ListInstancesResponseBodyInstancesDatasets = ListInstancesResponseBodyInstancesDatasets;
1203
- class ListInstancesResponseBodyInstancesIdleInstanceCuller extends $dara.Model {
1204
- static names() {
1205
- return {
1206
- cpuPercentThreshold: 'CpuPercentThreshold',
1207
- gpuPercentThreshold: 'GpuPercentThreshold',
1208
- idleTimeInMinutes: 'IdleTimeInMinutes',
1209
- instanceId: 'InstanceId',
1210
- maxIdleTimeInMinutes: 'MaxIdleTimeInMinutes',
1211
- };
1212
- }
1213
- static types() {
1214
- return {
1215
- cpuPercentThreshold: 'number',
1216
- gpuPercentThreshold: 'number',
1217
- idleTimeInMinutes: 'number',
1218
- instanceId: 'string',
1219
- maxIdleTimeInMinutes: 'number',
1220
- };
1221
- }
1222
- validate() {
1223
- super.validate();
1224
- }
1225
- constructor(map) {
1226
- super(map);
1227
- }
1228
- }
1229
- exports.ListInstancesResponseBodyInstancesIdleInstanceCuller = ListInstancesResponseBodyInstancesIdleInstanceCuller;
1230
- class ListInstancesResponseBodyInstancesInstanceShutdownTimer extends $dara.Model {
1231
- static names() {
1232
- return {
1233
- dueTime: 'DueTime',
1234
- gmtCreateTime: 'GmtCreateTime',
1235
- gmtModifiedTime: 'GmtModifiedTime',
1236
- instanceId: 'InstanceId',
1237
- remainingTimeInMs: 'RemainingTimeInMs',
1238
- };
1239
- }
1240
- static types() {
1241
- return {
1242
- dueTime: 'string',
1243
- gmtCreateTime: 'string',
1244
- gmtModifiedTime: 'string',
1245
- instanceId: 'string',
1246
- remainingTimeInMs: 'number',
1247
- };
1248
- }
1249
- validate() {
1250
- super.validate();
1251
- }
1252
- constructor(map) {
1253
- super(map);
1254
- }
1255
- }
1256
- exports.ListInstancesResponseBodyInstancesInstanceShutdownTimer = ListInstancesResponseBodyInstancesInstanceShutdownTimer;
1257
- class ListInstancesResponseBodyInstancesInstanceSnapshotList extends $dara.Model {
1258
- static names() {
1259
- return {
1260
- gmtCreateTime: 'GmtCreateTime',
1261
- gmtModifiedTime: 'GmtModifiedTime',
1262
- imageId: 'ImageId',
1263
- imageName: 'ImageName',
1264
- imageUrl: 'ImageUrl',
1265
- reasonCode: 'ReasonCode',
1266
- reasonMessage: 'ReasonMessage',
1267
- repositoryUrl: 'RepositoryUrl',
1268
- status: 'Status',
1269
- };
1270
- }
1271
- static types() {
1272
- return {
1273
- gmtCreateTime: 'string',
1274
- gmtModifiedTime: 'string',
1275
- imageId: 'string',
1276
- imageName: 'string',
1277
- imageUrl: 'string',
1278
- reasonCode: 'string',
1279
- reasonMessage: 'string',
1280
- repositoryUrl: 'string',
1281
- status: 'string',
1282
- };
1283
- }
1284
- validate() {
1285
- super.validate();
1286
- }
1287
- constructor(map) {
1288
- super(map);
1289
- }
1290
- }
1291
- exports.ListInstancesResponseBodyInstancesInstanceSnapshotList = ListInstancesResponseBodyInstancesInstanceSnapshotList;
1292
- class ListInstancesResponseBodyInstancesLabels extends $dara.Model {
1293
- static names() {
1294
- return {
1295
- key: 'Key',
1296
- value: 'Value',
1297
- };
1298
- }
1299
- static types() {
1300
- return {
1301
- key: 'string',
1302
- value: 'string',
1303
- };
1304
- }
1305
- validate() {
1306
- super.validate();
1307
- }
1308
- constructor(map) {
1309
- super(map);
1310
- }
1311
- }
1312
- exports.ListInstancesResponseBodyInstancesLabels = ListInstancesResponseBodyInstancesLabels;
1313
- class ListInstancesResponseBodyInstancesLatestSnapshot extends $dara.Model {
1314
- static names() {
1315
- return {
1316
- gmtCreateTime: 'GmtCreateTime',
1317
- gmtModifiedTime: 'GmtModifiedTime',
1318
- imageId: 'ImageId',
1319
- imageName: 'ImageName',
1320
- imageUrl: 'ImageUrl',
1321
- reasonCode: 'ReasonCode',
1322
- reasonMessage: 'ReasonMessage',
1323
- repositoryUrl: 'RepositoryUrl',
1324
- status: 'Status',
1325
- };
1326
- }
1327
- static types() {
1328
- return {
1329
- gmtCreateTime: 'string',
1330
- gmtModifiedTime: 'string',
1331
- imageId: 'string',
1332
- imageName: 'string',
1333
- imageUrl: 'string',
1334
- reasonCode: 'string',
1335
- reasonMessage: 'string',
1336
- repositoryUrl: 'string',
1337
- status: 'string',
1338
- };
1339
- }
1340
- validate() {
1341
- super.validate();
1342
- }
1343
- constructor(map) {
1344
- super(map);
1345
- }
1346
- }
1347
- exports.ListInstancesResponseBodyInstancesLatestSnapshot = ListInstancesResponseBodyInstancesLatestSnapshot;
1348
- class ListInstancesResponseBodyInstancesRequestedResource extends $dara.Model {
1349
- static names() {
1350
- return {
1351
- CPU: 'CPU',
1352
- GPU: 'GPU',
1353
- GPUType: 'GPUType',
1354
- memory: 'Memory',
1355
- sharedMemory: 'SharedMemory',
1356
- };
1357
- }
1358
- static types() {
1359
- return {
1360
- CPU: 'string',
1361
- GPU: 'string',
1362
- GPUType: 'string',
1363
- memory: 'string',
1364
- sharedMemory: 'string',
1365
- };
1366
- }
1367
- validate() {
1368
- super.validate();
1369
- }
1370
- constructor(map) {
1371
- super(map);
1372
- }
1373
- }
1374
- exports.ListInstancesResponseBodyInstancesRequestedResource = ListInstancesResponseBodyInstancesRequestedResource;
1375
- class ListInstancesResponseBodyInstancesTags extends $dara.Model {
1376
- static names() {
1377
- return {
1378
- tagKey: 'TagKey',
1379
- tagValue: 'TagValue',
1380
- };
1381
- }
1382
- static types() {
1383
- return {
1384
- tagKey: 'string',
1385
- tagValue: 'string',
1386
- };
1387
- }
1388
- validate() {
1389
- super.validate();
1390
- }
1391
- constructor(map) {
1392
- super(map);
1393
- }
1394
- }
1395
- exports.ListInstancesResponseBodyInstancesTags = ListInstancesResponseBodyInstancesTags;
1396
- class ListInstancesResponseBodyInstancesUserVpc extends $dara.Model {
1397
- static names() {
1398
- return {
1399
- bandwidthLimit: 'BandwidthLimit',
1400
- defaultRoute: 'DefaultRoute',
1401
- extendedCIDRs: 'ExtendedCIDRs',
1402
- forwardInfos: 'ForwardInfos',
1403
- securityGroupId: 'SecurityGroupId',
1404
- vSwitchId: 'VSwitchId',
1405
- vpcId: 'VpcId',
1406
- };
1407
- }
1408
- static types() {
1409
- return {
1410
- bandwidthLimit: BandwidthLimit,
1411
- defaultRoute: 'string',
1412
- extendedCIDRs: { 'type': 'array', 'itemType': 'string' },
1413
- forwardInfos: { 'type': 'array', 'itemType': ForwardInfoResponse },
1414
- securityGroupId: 'string',
1415
- vSwitchId: 'string',
1416
- vpcId: 'string',
1417
- };
1418
- }
1419
- validate() {
1420
- if (this.bandwidthLimit && typeof this.bandwidthLimit.validate === 'function') {
1421
- this.bandwidthLimit.validate();
1422
- }
1423
- if (Array.isArray(this.extendedCIDRs)) {
1424
- $dara.Model.validateArray(this.extendedCIDRs);
1425
- }
1426
- if (Array.isArray(this.forwardInfos)) {
1427
- $dara.Model.validateArray(this.forwardInfos);
1428
- }
1429
- super.validate();
1430
- }
1431
- constructor(map) {
1432
- super(map);
1433
- }
1434
- }
1435
- exports.ListInstancesResponseBodyInstancesUserVpc = ListInstancesResponseBodyInstancesUserVpc;
1436
- class ListInstancesResponseBodyInstances extends $dara.Model {
1437
- static names() {
1438
- return {
1439
- acceleratorType: 'AcceleratorType',
1440
- accessibility: 'Accessibility',
1441
- accumulatedRunningTimeInMs: 'AccumulatedRunningTimeInMs',
1442
- affinity: 'Affinity',
1443
- cloudDisks: 'CloudDisks',
1444
- credentialConfig: 'CredentialConfig',
1445
- datasets: 'Datasets',
1446
- driver: 'Driver',
1447
- dynamicMount: 'DynamicMount',
1448
- ecsSpec: 'EcsSpec',
1449
- environmentVariables: 'EnvironmentVariables',
1450
- gmtCreateTime: 'GmtCreateTime',
1451
- gmtModifiedTime: 'GmtModifiedTime',
1452
- idleInstanceCuller: 'IdleInstanceCuller',
1453
- imageAuth: 'ImageAuth',
1454
- imageId: 'ImageId',
1455
- imageName: 'ImageName',
1456
- imageUrl: 'ImageUrl',
1457
- instanceId: 'InstanceId',
1458
- instanceName: 'InstanceName',
1459
- instanceShutdownTimer: 'InstanceShutdownTimer',
1460
- instanceSnapshotList: 'InstanceSnapshotList',
1461
- instanceUrl: 'InstanceUrl',
1462
- jupyterlabUrl: 'JupyterlabUrl',
1463
- labels: 'Labels',
1464
- latestSnapshot: 'LatestSnapshot',
1465
- oversoldInfo: 'OversoldInfo',
1466
- oversoldType: 'OversoldType',
1467
- paymentType: 'PaymentType',
1468
- priority: 'Priority',
1469
- reasonCode: 'ReasonCode',
1470
- reasonMessage: 'ReasonMessage',
1471
- requestedResource: 'RequestedResource',
1472
- resourceId: 'ResourceId',
1473
- resourceName: 'ResourceName',
1474
- status: 'Status',
1475
- tags: 'Tags',
1476
- terminalUrl: 'TerminalUrl',
1477
- userId: 'UserId',
1478
- userName: 'UserName',
1479
- userVpc: 'UserVpc',
1480
- webIDEUrl: 'WebIDEUrl',
1481
- workspaceId: 'WorkspaceId',
1482
- workspaceName: 'WorkspaceName',
1483
- workspaceSource: 'WorkspaceSource',
1484
- };
1485
- }
1486
- static types() {
1487
- return {
1488
- acceleratorType: 'string',
1489
- accessibility: 'string',
1490
- accumulatedRunningTimeInMs: 'number',
1491
- affinity: ListInstancesResponseBodyInstancesAffinity,
1492
- cloudDisks: { 'type': 'array', 'itemType': ListInstancesResponseBodyInstancesCloudDisks },
1493
- credentialConfig: CredentialConfig,
1494
- datasets: { 'type': 'array', 'itemType': ListInstancesResponseBodyInstancesDatasets },
1495
- driver: 'string',
1496
- dynamicMount: DynamicMount,
1497
- ecsSpec: 'string',
1498
- environmentVariables: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1499
- gmtCreateTime: 'string',
1500
- gmtModifiedTime: 'string',
1501
- idleInstanceCuller: ListInstancesResponseBodyInstancesIdleInstanceCuller,
1502
- imageAuth: 'string',
1503
- imageId: 'string',
1504
- imageName: 'string',
1505
- imageUrl: 'string',
1506
- instanceId: 'string',
1507
- instanceName: 'string',
1508
- instanceShutdownTimer: ListInstancesResponseBodyInstancesInstanceShutdownTimer,
1509
- instanceSnapshotList: { 'type': 'array', 'itemType': ListInstancesResponseBodyInstancesInstanceSnapshotList },
1510
- instanceUrl: 'string',
1511
- jupyterlabUrl: 'string',
1512
- labels: { 'type': 'array', 'itemType': ListInstancesResponseBodyInstancesLabels },
1513
- latestSnapshot: ListInstancesResponseBodyInstancesLatestSnapshot,
1514
- oversoldInfo: 'string',
1515
- oversoldType: 'string',
1516
- paymentType: 'string',
1517
- priority: 'number',
1518
- reasonCode: 'string',
1519
- reasonMessage: 'string',
1520
- requestedResource: ListInstancesResponseBodyInstancesRequestedResource,
1521
- resourceId: 'string',
1522
- resourceName: 'string',
1523
- status: 'string',
1524
- tags: { 'type': 'array', 'itemType': ListInstancesResponseBodyInstancesTags },
1525
- terminalUrl: 'string',
1526
- userId: 'string',
1527
- userName: 'string',
1528
- userVpc: ListInstancesResponseBodyInstancesUserVpc,
1529
- webIDEUrl: 'string',
1530
- workspaceId: 'string',
1531
- workspaceName: 'string',
1532
- workspaceSource: 'string',
1533
- };
1534
- }
1535
- validate() {
1536
- if (this.affinity && typeof this.affinity.validate === 'function') {
1537
- this.affinity.validate();
1538
- }
1539
- if (Array.isArray(this.cloudDisks)) {
1540
- $dara.Model.validateArray(this.cloudDisks);
1541
- }
1542
- if (this.credentialConfig && typeof this.credentialConfig.validate === 'function') {
1543
- this.credentialConfig.validate();
1544
- }
1545
- if (Array.isArray(this.datasets)) {
1546
- $dara.Model.validateArray(this.datasets);
1547
- }
1548
- if (this.dynamicMount && typeof this.dynamicMount.validate === 'function') {
1549
- this.dynamicMount.validate();
1550
- }
1551
- if (this.environmentVariables) {
1552
- $dara.Model.validateMap(this.environmentVariables);
1553
- }
1554
- if (this.idleInstanceCuller && typeof this.idleInstanceCuller.validate === 'function') {
1555
- this.idleInstanceCuller.validate();
1556
- }
1557
- if (this.instanceShutdownTimer && typeof this.instanceShutdownTimer.validate === 'function') {
1558
- this.instanceShutdownTimer.validate();
1559
- }
1560
- if (Array.isArray(this.instanceSnapshotList)) {
1561
- $dara.Model.validateArray(this.instanceSnapshotList);
1562
- }
1563
- if (Array.isArray(this.labels)) {
1564
- $dara.Model.validateArray(this.labels);
1565
- }
1566
- if (this.latestSnapshot && typeof this.latestSnapshot.validate === 'function') {
1567
- this.latestSnapshot.validate();
1568
- }
1569
- if (this.requestedResource && typeof this.requestedResource.validate === 'function') {
1570
- this.requestedResource.validate();
1571
- }
1572
- if (Array.isArray(this.tags)) {
1573
- $dara.Model.validateArray(this.tags);
1574
- }
1575
- if (this.userVpc && typeof this.userVpc.validate === 'function') {
1576
- this.userVpc.validate();
1577
- }
1578
- super.validate();
1579
- }
1580
- constructor(map) {
1581
- super(map);
1582
- }
1583
- }
1584
- exports.ListInstancesResponseBodyInstances = ListInstancesResponseBodyInstances;
1585
- class UpdateInstanceRequestAffinityCPU extends $dara.Model {
1586
- static names() {
1587
- return {
1588
- enable: 'Enable',
1589
- };
1590
- }
1591
- static types() {
1592
- return {
1593
- enable: 'boolean',
1594
- };
1595
- }
1596
- validate() {
1597
- super.validate();
1598
- }
1599
- constructor(map) {
1600
- super(map);
1601
- }
1602
- }
1603
- exports.UpdateInstanceRequestAffinityCPU = UpdateInstanceRequestAffinityCPU;
1604
- class UpdateInstanceRequestAffinity extends $dara.Model {
1605
- static names() {
1606
- return {
1607
- CPU: 'CPU',
1608
- };
1609
- }
1610
- static types() {
1611
- return {
1612
- CPU: UpdateInstanceRequestAffinityCPU,
1613
- };
1614
- }
1615
- validate() {
1616
- if (this.CPU && typeof this.CPU.validate === 'function') {
1617
- this.CPU.validate();
1618
- }
1619
- super.validate();
1620
- }
1621
- constructor(map) {
1622
- super(map);
1623
- }
1624
- }
1625
- exports.UpdateInstanceRequestAffinity = UpdateInstanceRequestAffinity;
1626
- class UpdateInstanceRequestCloudDisks extends $dara.Model {
1627
- static names() {
1628
- return {
1629
- capacity: 'Capacity',
1630
- subType: 'SubType',
1631
- };
1632
- }
1633
- static types() {
1634
- return {
1635
- capacity: 'string',
1636
- subType: 'string',
1637
- };
1638
- }
1639
- validate() {
1640
- super.validate();
1641
- }
1642
- constructor(map) {
1643
- super(map);
1644
- }
1645
- }
1646
- exports.UpdateInstanceRequestCloudDisks = UpdateInstanceRequestCloudDisks;
1647
- class UpdateInstanceRequestDatasets extends $dara.Model {
1648
- static names() {
1649
- return {
1650
- datasetId: 'DatasetId',
1651
- datasetVersion: 'DatasetVersion',
1652
- dynamic: 'Dynamic',
1653
- mountAccess: 'MountAccess',
1654
- mountPath: 'MountPath',
1655
- optionType: 'OptionType',
1656
- options: 'Options',
1657
- uri: 'Uri',
1658
- };
1659
- }
1660
- static types() {
1661
- return {
1662
- datasetId: 'string',
1663
- datasetVersion: 'string',
1664
- dynamic: 'boolean',
1665
- mountAccess: 'string',
1666
- mountPath: 'string',
1667
- optionType: 'string',
1668
- options: 'string',
1669
- uri: 'string',
1670
- };
1671
- }
1672
- validate() {
1673
- super.validate();
1674
- }
1675
- constructor(map) {
1676
- super(map);
1677
- }
1678
- }
1679
- exports.UpdateInstanceRequestDatasets = UpdateInstanceRequestDatasets;
1680
- class UpdateInstanceRequestRequestedResource extends $dara.Model {
1681
- static names() {
1682
- return {
1683
- CPU: 'CPU',
1684
- GPU: 'GPU',
1685
- GPUType: 'GPUType',
1686
- memory: 'Memory',
1687
- sharedMemory: 'SharedMemory',
1688
- };
1689
- }
1690
- static types() {
1691
- return {
1692
- CPU: 'string',
1693
- GPU: 'string',
1694
- GPUType: 'string',
1695
- memory: 'string',
1696
- sharedMemory: 'string',
1697
- };
1698
- }
1699
- validate() {
1700
- super.validate();
1701
- }
1702
- constructor(map) {
1703
- super(map);
1704
- }
1705
- }
1706
- exports.UpdateInstanceRequestRequestedResource = UpdateInstanceRequestRequestedResource;
1707
- class UpdateInstanceRequestUserVpc extends $dara.Model {
1708
- static names() {
1709
- return {
1710
- bandwidthLimit: 'BandwidthLimit',
1711
- defaultRoute: 'DefaultRoute',
1712
- extendedCIDRs: 'ExtendedCIDRs',
1713
- forwardInfos: 'ForwardInfos',
1714
- securityGroupId: 'SecurityGroupId',
1715
- vSwitchId: 'VSwitchId',
1716
- vpcId: 'VpcId',
1717
- };
1718
- }
1719
- static types() {
1720
- return {
1721
- bandwidthLimit: BandwidthLimit,
1722
- defaultRoute: 'string',
1723
- extendedCIDRs: { 'type': 'array', 'itemType': 'string' },
1724
- forwardInfos: { 'type': 'array', 'itemType': ForwardInfo },
1725
- securityGroupId: 'string',
1726
- vSwitchId: 'string',
1727
- vpcId: 'string',
1728
- };
1729
- }
1730
- validate() {
1731
- if (this.bandwidthLimit && typeof this.bandwidthLimit.validate === 'function') {
1732
- this.bandwidthLimit.validate();
1733
- }
1734
- if (Array.isArray(this.extendedCIDRs)) {
1735
- $dara.Model.validateArray(this.extendedCIDRs);
1736
- }
1737
- if (Array.isArray(this.forwardInfos)) {
1738
- $dara.Model.validateArray(this.forwardInfos);
1739
- }
1740
- super.validate();
1741
- }
1742
- constructor(map) {
1743
- super(map);
1744
- }
1745
- }
1746
- exports.UpdateInstanceRequestUserVpc = UpdateInstanceRequestUserVpc;
1747
- class UpdateInstanceLabelsRequestLabels extends $dara.Model {
1748
- static names() {
1749
- return {
1750
- key: 'Key',
1751
- value: 'Value',
1752
- };
1753
- }
1754
- static types() {
1755
- return {
1756
- key: 'string',
1757
- value: 'string',
1758
- };
1759
- }
1760
- validate() {
1761
- super.validate();
1762
- }
1763
- constructor(map) {
1764
- super(map);
1765
- }
1766
- }
1767
- exports.UpdateInstanceLabelsRequestLabels = UpdateInstanceLabelsRequestLabels;
1768
- class BandwidthLimit extends $dara.Model {
1769
- static names() {
1770
- return {
1771
- egressRate: 'EgressRate',
1772
- egressWhitelists: 'EgressWhitelists',
1773
- ingressRate: 'IngressRate',
1774
- ingressWhitelists: 'IngressWhitelists',
1775
- };
1776
- }
1777
- static types() {
1778
- return {
1779
- egressRate: 'string',
1780
- egressWhitelists: { 'type': 'array', 'itemType': 'string' },
1781
- ingressRate: 'string',
1782
- ingressWhitelists: { 'type': 'array', 'itemType': 'string' },
1783
- };
1784
- }
1785
- validate() {
1786
- if (Array.isArray(this.egressWhitelists)) {
1787
- $dara.Model.validateArray(this.egressWhitelists);
1788
- }
1789
- if (Array.isArray(this.ingressWhitelists)) {
1790
- $dara.Model.validateArray(this.ingressWhitelists);
1791
- }
1792
- super.validate();
1793
- }
1794
- constructor(map) {
1795
- super(map);
1796
- }
1797
- }
1798
- exports.BandwidthLimit = BandwidthLimit;
1799
- class CredentialConfig extends $dara.Model {
1800
- static names() {
1801
- return {
1802
- aliyunEnvRoleKey: 'AliyunEnvRoleKey',
1803
- configs: 'Configs',
1804
- enable: 'Enable',
1805
- };
1806
- }
1807
- static types() {
1808
- return {
1809
- aliyunEnvRoleKey: 'string',
1810
- configs: { 'type': 'array', 'itemType': CredentialConfigConfigs },
1811
- enable: 'boolean',
1812
- };
1813
- }
1814
- validate() {
1815
- if (Array.isArray(this.configs)) {
1816
- $dara.Model.validateArray(this.configs);
1817
- }
1818
- super.validate();
1819
- }
1820
- constructor(map) {
1821
- super(map);
1822
- }
1823
- }
1824
- exports.CredentialConfig = CredentialConfig;
1825
- class DemoCategory extends $dara.Model {
1826
- static names() {
1827
- return {
1828
- categoryCode: 'CategoryCode',
1829
- categoryName: 'CategoryName',
1830
- order: 'Order',
1831
- subCategories: 'SubCategories',
1832
- };
1833
- }
1834
- static types() {
1835
- return {
1836
- categoryCode: 'string',
1837
- categoryName: 'string',
1838
- order: 'number',
1839
- subCategories: { 'type': 'array', 'itemType': DemoCategory },
1840
- };
1841
- }
1842
- validate() {
1843
- if (Array.isArray(this.subCategories)) {
1844
- $dara.Model.validateArray(this.subCategories);
1845
- }
1846
- super.validate();
1847
- }
1848
- constructor(map) {
1849
- super(map);
1850
- }
1851
- }
1852
- exports.DemoCategory = DemoCategory;
1853
- class DynamicMount extends $dara.Model {
1854
- static names() {
1855
- return {
1856
- enable: 'Enable',
1857
- mountPoints: 'MountPoints',
1858
- };
1859
- }
1860
- static types() {
1861
- return {
1862
- enable: 'boolean',
1863
- mountPoints: { 'type': 'array', 'itemType': DynamicMountPoint },
1864
- };
1865
- }
1866
- validate() {
1867
- if (Array.isArray(this.mountPoints)) {
1868
- $dara.Model.validateArray(this.mountPoints);
1869
- }
1870
- super.validate();
1871
- }
1872
- constructor(map) {
1873
- super(map);
1874
- }
1875
- }
1876
- exports.DynamicMount = DynamicMount;
1877
- class DynamicMountPoint extends $dara.Model {
1878
- static names() {
1879
- return {
1880
- options: 'Options',
1881
- rootPath: 'RootPath',
1882
- };
1883
- }
1884
- static types() {
1885
- return {
1886
- options: 'string',
1887
- rootPath: 'string',
1888
- };
1889
- }
1890
- validate() {
1891
- super.validate();
1892
- }
1893
- constructor(map) {
1894
- super(map);
1895
- }
1896
- }
1897
- exports.DynamicMountPoint = DynamicMountPoint;
1898
- class ForwardInfo extends $dara.Model {
1899
- static names() {
1900
- return {
1901
- accessType: 'AccessType',
1902
- containerName: 'ContainerName',
1903
- eipAllocationId: 'EipAllocationId',
1904
- enable: 'Enable',
1905
- externalPort: 'ExternalPort',
1906
- forwardPort: 'ForwardPort',
1907
- name: 'Name',
1908
- natGatewayId: 'NatGatewayId',
1909
- SSHPublicKey: 'SSHPublicKey',
1910
- };
1911
- }
1912
- static types() {
1913
- return {
1914
- accessType: { 'type': 'array', 'itemType': 'string' },
1915
- containerName: 'string',
1916
- eipAllocationId: 'string',
1917
- enable: 'boolean',
1918
- externalPort: 'string',
1919
- forwardPort: 'string',
1920
- name: 'string',
1921
- natGatewayId: 'string',
1922
- SSHPublicKey: 'string',
1923
- };
1924
- }
1925
- validate() {
1926
- if (Array.isArray(this.accessType)) {
1927
- $dara.Model.validateArray(this.accessType);
1928
- }
1929
- super.validate();
1930
- }
1931
- constructor(map) {
1932
- super(map);
1933
- }
1934
- }
1935
- exports.ForwardInfo = ForwardInfo;
1936
- class ForwardInfoResponse extends $dara.Model {
1937
- static names() {
1938
- return {
1939
- accessType: 'AccessType',
1940
- connectInfo: 'ConnectInfo',
1941
- containerName: 'ContainerName',
1942
- eipAllocationId: 'EipAllocationId',
1943
- enable: 'Enable',
1944
- externalPort: 'ExternalPort',
1945
- forwardPort: 'ForwardPort',
1946
- name: 'Name',
1947
- natGatewayId: 'NatGatewayId',
1948
- SSHPublicKey: 'SSHPublicKey',
1949
- };
1950
- }
1951
- static types() {
1952
- return {
1953
- accessType: { 'type': 'array', 'itemType': 'string' },
1954
- connectInfo: ForwardInfoResponseConnectInfo,
1955
- containerName: 'string',
1956
- eipAllocationId: 'string',
1957
- enable: 'boolean',
1958
- externalPort: 'string',
1959
- forwardPort: 'string',
1960
- name: 'string',
1961
- natGatewayId: 'string',
1962
- SSHPublicKey: 'string',
1963
- };
1964
- }
1965
- validate() {
1966
- if (Array.isArray(this.accessType)) {
1967
- $dara.Model.validateArray(this.accessType);
1968
- }
1969
- if (this.connectInfo && typeof this.connectInfo.validate === 'function') {
1970
- this.connectInfo.validate();
1971
- }
1972
- super.validate();
1973
- }
1974
- constructor(map) {
1975
- super(map);
1976
- }
1977
- }
1978
- exports.ForwardInfoResponse = ForwardInfoResponse;
1979
- class CreateIdleInstanceCullerRequest extends $dara.Model {
1980
- static names() {
1981
- return {
1982
- cpuPercentThreshold: 'CpuPercentThreshold',
1983
- gpuPercentThreshold: 'GpuPercentThreshold',
1984
- maxIdleTimeInMinutes: 'MaxIdleTimeInMinutes',
1985
- };
1986
- }
1987
- static types() {
1988
- return {
1989
- cpuPercentThreshold: 'number',
1990
- gpuPercentThreshold: 'number',
1991
- maxIdleTimeInMinutes: 'number',
1992
- };
1993
- }
1994
- validate() {
1995
- super.validate();
1996
- }
1997
- constructor(map) {
1998
- super(map);
1999
- }
2000
- }
2001
- exports.CreateIdleInstanceCullerRequest = CreateIdleInstanceCullerRequest;
2002
- class CreateIdleInstanceCullerResponseBody extends $dara.Model {
2003
- static names() {
2004
- return {
2005
- code: 'Code',
2006
- instanceId: 'InstanceId',
2007
- message: 'Message',
2008
- requestId: 'RequestId',
2009
- success: 'Success',
2010
- };
2011
- }
2012
- static types() {
2013
- return {
2014
- code: 'string',
2015
- instanceId: 'string',
2016
- message: 'string',
2017
- requestId: 'string',
2018
- success: 'boolean',
2019
- };
2020
- }
2021
- validate() {
2022
- super.validate();
2023
- }
2024
- constructor(map) {
2025
- super(map);
2026
- }
2027
- }
2028
- exports.CreateIdleInstanceCullerResponseBody = CreateIdleInstanceCullerResponseBody;
2029
- class CreateIdleInstanceCullerResponse extends $dara.Model {
2030
- static names() {
2031
- return {
2032
- headers: 'headers',
2033
- statusCode: 'statusCode',
2034
- body: 'body',
2035
- };
2036
- }
2037
- static types() {
2038
- return {
2039
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2040
- statusCode: 'number',
2041
- body: CreateIdleInstanceCullerResponseBody,
2042
- };
2043
- }
2044
- validate() {
2045
- if (this.headers) {
2046
- $dara.Model.validateMap(this.headers);
2047
- }
2048
- if (this.body && typeof this.body.validate === 'function') {
2049
- this.body.validate();
2050
- }
2051
- super.validate();
2052
- }
2053
- constructor(map) {
2054
- super(map);
2055
- }
2056
- }
2057
- exports.CreateIdleInstanceCullerResponse = CreateIdleInstanceCullerResponse;
2058
- class CreateInstanceRequest extends $dara.Model {
2059
- static names() {
2060
- return {
2061
- accessibility: 'Accessibility',
2062
- affinity: 'Affinity',
2063
- cloudDisks: 'CloudDisks',
2064
- credentialConfig: 'CredentialConfig',
2065
- datasets: 'Datasets',
2066
- driver: 'Driver',
2067
- dynamicMount: 'DynamicMount',
2068
- ecsSpec: 'EcsSpec',
2069
- environmentVariables: 'EnvironmentVariables',
2070
- imageAuth: 'ImageAuth',
2071
- imageId: 'ImageId',
2072
- imageUrl: 'ImageUrl',
2073
- instanceName: 'InstanceName',
2074
- labels: 'Labels',
2075
- priority: 'Priority',
2076
- requestedResource: 'RequestedResource',
2077
- resourceId: 'ResourceId',
2078
- tag: 'Tag',
2079
- userId: 'UserId',
2080
- userVpc: 'UserVpc',
2081
- workspaceId: 'WorkspaceId',
2082
- workspaceSource: 'WorkspaceSource',
2083
- };
2084
- }
2085
- static types() {
2086
- return {
2087
- accessibility: 'string',
2088
- affinity: CreateInstanceRequestAffinity,
2089
- cloudDisks: { 'type': 'array', 'itemType': CreateInstanceRequestCloudDisks },
2090
- credentialConfig: CredentialConfig,
2091
- datasets: { 'type': 'array', 'itemType': CreateInstanceRequestDatasets },
2092
- driver: 'string',
2093
- dynamicMount: DynamicMount,
2094
- ecsSpec: 'string',
2095
- environmentVariables: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2096
- imageAuth: 'string',
2097
- imageId: 'string',
2098
- imageUrl: 'string',
2099
- instanceName: 'string',
2100
- labels: { 'type': 'array', 'itemType': CreateInstanceRequestLabels },
2101
- priority: 'number',
2102
- requestedResource: CreateInstanceRequestRequestedResource,
2103
- resourceId: 'string',
2104
- tag: { 'type': 'array', 'itemType': CreateInstanceRequestTag },
2105
- userId: 'string',
2106
- userVpc: CreateInstanceRequestUserVpc,
2107
- workspaceId: 'string',
2108
- workspaceSource: 'string',
2109
- };
2110
- }
2111
- validate() {
2112
- if (this.affinity && typeof this.affinity.validate === 'function') {
2113
- this.affinity.validate();
2114
- }
2115
- if (Array.isArray(this.cloudDisks)) {
2116
- $dara.Model.validateArray(this.cloudDisks);
2117
- }
2118
- if (this.credentialConfig && typeof this.credentialConfig.validate === 'function') {
2119
- this.credentialConfig.validate();
2120
- }
2121
- if (Array.isArray(this.datasets)) {
2122
- $dara.Model.validateArray(this.datasets);
2123
- }
2124
- if (this.dynamicMount && typeof this.dynamicMount.validate === 'function') {
2125
- this.dynamicMount.validate();
2126
- }
2127
- if (this.environmentVariables) {
2128
- $dara.Model.validateMap(this.environmentVariables);
2129
- }
2130
- if (Array.isArray(this.labels)) {
2131
- $dara.Model.validateArray(this.labels);
2132
- }
2133
- if (this.requestedResource && typeof this.requestedResource.validate === 'function') {
2134
- this.requestedResource.validate();
2135
- }
2136
- if (Array.isArray(this.tag)) {
2137
- $dara.Model.validateArray(this.tag);
2138
- }
2139
- if (this.userVpc && typeof this.userVpc.validate === 'function') {
2140
- this.userVpc.validate();
2141
- }
2142
- super.validate();
2143
- }
2144
- constructor(map) {
2145
- super(map);
2146
- }
2147
- }
2148
- exports.CreateInstanceRequest = CreateInstanceRequest;
2149
- class CreateInstanceResponseBody extends $dara.Model {
2150
- static names() {
2151
- return {
2152
- code: 'Code',
2153
- httpStatusCode: 'HttpStatusCode',
2154
- instanceId: 'InstanceId',
2155
- message: 'Message',
2156
- requestId: 'RequestId',
2157
- success: 'Success',
2158
- };
2159
- }
2160
- static types() {
2161
- return {
2162
- code: 'string',
2163
- httpStatusCode: 'number',
2164
- instanceId: 'string',
2165
- message: 'string',
2166
- requestId: 'string',
2167
- success: 'boolean',
2168
- };
2169
- }
2170
- validate() {
2171
- super.validate();
2172
- }
2173
- constructor(map) {
2174
- super(map);
2175
- }
2176
- }
2177
- exports.CreateInstanceResponseBody = CreateInstanceResponseBody;
2178
- class CreateInstanceResponse extends $dara.Model {
2179
- static names() {
2180
- return {
2181
- headers: 'headers',
2182
- statusCode: 'statusCode',
2183
- body: 'body',
2184
- };
2185
- }
2186
- static types() {
2187
- return {
2188
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2189
- statusCode: 'number',
2190
- body: CreateInstanceResponseBody,
2191
- };
2192
- }
2193
- validate() {
2194
- if (this.headers) {
2195
- $dara.Model.validateMap(this.headers);
2196
- }
2197
- if (this.body && typeof this.body.validate === 'function') {
2198
- this.body.validate();
2199
- }
2200
- super.validate();
2201
- }
2202
- constructor(map) {
2203
- super(map);
2204
- }
2205
- }
2206
- exports.CreateInstanceResponse = CreateInstanceResponse;
2207
- class CreateInstanceShutdownTimerRequest extends $dara.Model {
2208
- static names() {
2209
- return {
2210
- dueTime: 'DueTime',
2211
- remainingTimeInMs: 'RemainingTimeInMs',
2212
- };
2213
- }
2214
- static types() {
2215
- return {
2216
- dueTime: 'string',
2217
- remainingTimeInMs: 'number',
2218
- };
2219
- }
2220
- validate() {
2221
- super.validate();
2222
- }
2223
- constructor(map) {
2224
- super(map);
2225
- }
2226
- }
2227
- exports.CreateInstanceShutdownTimerRequest = CreateInstanceShutdownTimerRequest;
2228
- class CreateInstanceShutdownTimerResponseBody extends $dara.Model {
2229
- static names() {
2230
- return {
2231
- code: 'Code',
2232
- httpStatusCode: 'HttpStatusCode',
2233
- instanceId: 'InstanceId',
2234
- message: 'Message',
2235
- requestId: 'RequestId',
2236
- success: 'Success',
2237
- };
2238
- }
2239
- static types() {
2240
- return {
2241
- code: 'string',
2242
- httpStatusCode: 'number',
2243
- instanceId: 'string',
2244
- message: 'string',
2245
- requestId: 'string',
2246
- success: 'boolean',
2247
- };
2248
- }
2249
- validate() {
2250
- super.validate();
2251
- }
2252
- constructor(map) {
2253
- super(map);
2254
- }
2255
- }
2256
- exports.CreateInstanceShutdownTimerResponseBody = CreateInstanceShutdownTimerResponseBody;
2257
- class CreateInstanceShutdownTimerResponse extends $dara.Model {
2258
- static names() {
2259
- return {
2260
- headers: 'headers',
2261
- statusCode: 'statusCode',
2262
- body: 'body',
2263
- };
2264
- }
2265
- static types() {
2266
- return {
2267
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2268
- statusCode: 'number',
2269
- body: CreateInstanceShutdownTimerResponseBody,
2270
- };
2271
- }
2272
- validate() {
2273
- if (this.headers) {
2274
- $dara.Model.validateMap(this.headers);
2275
- }
2276
- if (this.body && typeof this.body.validate === 'function') {
2277
- this.body.validate();
2278
- }
2279
- super.validate();
2280
- }
2281
- constructor(map) {
2282
- super(map);
2283
- }
2284
- }
2285
- exports.CreateInstanceShutdownTimerResponse = CreateInstanceShutdownTimerResponse;
2286
- class CreateInstanceSnapshotRequest extends $dara.Model {
2287
- static names() {
2288
- return {
2289
- excludePaths: 'ExcludePaths',
2290
- imageUrl: 'ImageUrl',
2291
- labels: 'Labels',
2292
- overwrite: 'Overwrite',
2293
- snapshotDescription: 'SnapshotDescription',
2294
- snapshotName: 'SnapshotName',
2295
- };
2296
- }
2297
- static types() {
2298
- return {
2299
- excludePaths: { 'type': 'array', 'itemType': 'string' },
2300
- imageUrl: 'string',
2301
- labels: { 'type': 'array', 'itemType': CreateInstanceSnapshotRequestLabels },
2302
- overwrite: 'boolean',
2303
- snapshotDescription: 'string',
2304
- snapshotName: 'string',
2305
- };
2306
- }
2307
- validate() {
2308
- if (Array.isArray(this.excludePaths)) {
2309
- $dara.Model.validateArray(this.excludePaths);
2310
- }
2311
- if (Array.isArray(this.labels)) {
2312
- $dara.Model.validateArray(this.labels);
2313
- }
2314
- super.validate();
2315
- }
2316
- constructor(map) {
2317
- super(map);
2318
- }
2319
- }
2320
- exports.CreateInstanceSnapshotRequest = CreateInstanceSnapshotRequest;
2321
- class CreateInstanceSnapshotResponseBody extends $dara.Model {
2322
- static names() {
2323
- return {
2324
- code: 'Code',
2325
- httpStatusCode: 'HttpStatusCode',
2326
- instanceId: 'InstanceId',
2327
- message: 'Message',
2328
- requestId: 'RequestId',
2329
- snapshotId: 'SnapshotId',
2330
- success: 'Success',
2331
- };
2332
- }
2333
- static types() {
2334
- return {
2335
- code: 'string',
2336
- httpStatusCode: 'number',
2337
- instanceId: 'string',
2338
- message: 'string',
2339
- requestId: 'string',
2340
- snapshotId: 'string',
2341
- success: 'boolean',
2342
- };
2343
- }
2344
- validate() {
2345
- super.validate();
2346
- }
2347
- constructor(map) {
2348
- super(map);
2349
- }
2350
- }
2351
- exports.CreateInstanceSnapshotResponseBody = CreateInstanceSnapshotResponseBody;
2352
- class CreateInstanceSnapshotResponse extends $dara.Model {
2353
- static names() {
2354
- return {
2355
- headers: 'headers',
2356
- statusCode: 'statusCode',
2357
- body: 'body',
2358
- };
2359
- }
2360
- static types() {
2361
- return {
2362
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2363
- statusCode: 'number',
2364
- body: CreateInstanceSnapshotResponseBody,
2365
- };
2366
- }
2367
- validate() {
2368
- if (this.headers) {
2369
- $dara.Model.validateMap(this.headers);
2370
- }
2371
- if (this.body && typeof this.body.validate === 'function') {
2372
- this.body.validate();
2373
- }
2374
- super.validate();
2375
- }
2376
- constructor(map) {
2377
- super(map);
2378
- }
2379
- }
2380
- exports.CreateInstanceSnapshotResponse = CreateInstanceSnapshotResponse;
2381
- class DeleteIdleInstanceCullerResponseBody extends $dara.Model {
2382
- static names() {
2383
- return {
2384
- code: 'Code',
2385
- instanceId: 'InstanceId',
2386
- message: 'Message',
2387
- requestId: 'RequestId',
2388
- success: 'Success',
2389
- };
2390
- }
2391
- static types() {
2392
- return {
2393
- code: 'string',
2394
- instanceId: 'string',
2395
- message: 'string',
2396
- requestId: 'string',
2397
- success: 'boolean',
2398
- };
2399
- }
2400
- validate() {
2401
- super.validate();
2402
- }
2403
- constructor(map) {
2404
- super(map);
2405
- }
2406
- }
2407
- exports.DeleteIdleInstanceCullerResponseBody = DeleteIdleInstanceCullerResponseBody;
2408
- class DeleteIdleInstanceCullerResponse extends $dara.Model {
2409
- static names() {
2410
- return {
2411
- headers: 'headers',
2412
- statusCode: 'statusCode',
2413
- body: 'body',
2414
- };
2415
- }
2416
- static types() {
2417
- return {
2418
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2419
- statusCode: 'number',
2420
- body: DeleteIdleInstanceCullerResponseBody,
2421
- };
2422
- }
2423
- validate() {
2424
- if (this.headers) {
2425
- $dara.Model.validateMap(this.headers);
2426
- }
2427
- if (this.body && typeof this.body.validate === 'function') {
2428
- this.body.validate();
2429
- }
2430
- super.validate();
2431
- }
2432
- constructor(map) {
2433
- super(map);
2434
- }
2435
- }
2436
- exports.DeleteIdleInstanceCullerResponse = DeleteIdleInstanceCullerResponse;
2437
- class DeleteInstanceResponseBody extends $dara.Model {
2438
- static names() {
2439
- return {
2440
- code: 'Code',
2441
- httpStatusCode: 'HttpStatusCode',
2442
- instanceId: 'InstanceId',
2443
- message: 'Message',
2444
- requestId: 'RequestId',
2445
- success: 'Success',
2446
- };
2447
- }
2448
- static types() {
2449
- return {
2450
- code: 'string',
2451
- httpStatusCode: 'number',
2452
- instanceId: 'string',
2453
- message: 'string',
2454
- requestId: 'string',
2455
- success: 'boolean',
2456
- };
2457
- }
2458
- validate() {
2459
- super.validate();
2460
- }
2461
- constructor(map) {
2462
- super(map);
2463
- }
2464
- }
2465
- exports.DeleteInstanceResponseBody = DeleteInstanceResponseBody;
2466
- class DeleteInstanceResponse extends $dara.Model {
2467
- static names() {
2468
- return {
2469
- headers: 'headers',
2470
- statusCode: 'statusCode',
2471
- body: 'body',
2472
- };
2473
- }
2474
- static types() {
2475
- return {
2476
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2477
- statusCode: 'number',
2478
- body: DeleteInstanceResponseBody,
2479
- };
2480
- }
2481
- validate() {
2482
- if (this.headers) {
2483
- $dara.Model.validateMap(this.headers);
2484
- }
2485
- if (this.body && typeof this.body.validate === 'function') {
2486
- this.body.validate();
2487
- }
2488
- super.validate();
2489
- }
2490
- constructor(map) {
2491
- super(map);
2492
- }
2493
- }
2494
- exports.DeleteInstanceResponse = DeleteInstanceResponse;
2495
- class DeleteInstanceLabelsRequest extends $dara.Model {
2496
- static names() {
2497
- return {
2498
- labelKeys: 'LabelKeys',
2499
- };
2500
- }
2501
- static types() {
2502
- return {
2503
- labelKeys: 'string',
2504
- };
2505
- }
2506
- validate() {
2507
- super.validate();
2508
- }
2509
- constructor(map) {
2510
- super(map);
2511
- }
2512
- }
2513
- exports.DeleteInstanceLabelsRequest = DeleteInstanceLabelsRequest;
2514
- class DeleteInstanceLabelsResponseBody extends $dara.Model {
2515
- static names() {
2516
- return {
2517
- requestId: 'RequestId',
2518
- };
2519
- }
2520
- static types() {
2521
- return {
2522
- requestId: 'string',
2523
- };
2524
- }
2525
- validate() {
2526
- super.validate();
2527
- }
2528
- constructor(map) {
2529
- super(map);
2530
- }
2531
- }
2532
- exports.DeleteInstanceLabelsResponseBody = DeleteInstanceLabelsResponseBody;
2533
- class DeleteInstanceLabelsResponse extends $dara.Model {
2534
- static names() {
2535
- return {
2536
- headers: 'headers',
2537
- statusCode: 'statusCode',
2538
- body: 'body',
2539
- };
2540
- }
2541
- static types() {
2542
- return {
2543
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2544
- statusCode: 'number',
2545
- body: DeleteInstanceLabelsResponseBody,
2546
- };
2547
- }
2548
- validate() {
2549
- if (this.headers) {
2550
- $dara.Model.validateMap(this.headers);
2551
- }
2552
- if (this.body && typeof this.body.validate === 'function') {
2553
- this.body.validate();
2554
- }
2555
- super.validate();
2556
- }
2557
- constructor(map) {
2558
- super(map);
2559
- }
2560
- }
2561
- exports.DeleteInstanceLabelsResponse = DeleteInstanceLabelsResponse;
2562
- class DeleteInstanceShutdownTimerResponseBody extends $dara.Model {
2563
- static names() {
2564
- return {
2565
- code: 'Code',
2566
- httpStatusCode: 'HttpStatusCode',
2567
- instanceId: 'InstanceId',
2568
- message: 'Message',
2569
- requestId: 'RequestId',
2570
- success: 'Success',
2571
- };
2572
- }
2573
- static types() {
2574
- return {
2575
- code: 'string',
2576
- httpStatusCode: 'number',
2577
- instanceId: 'string',
2578
- message: 'string',
2579
- requestId: 'string',
2580
- success: 'boolean',
2581
- };
2582
- }
2583
- validate() {
2584
- super.validate();
2585
- }
2586
- constructor(map) {
2587
- super(map);
2588
- }
2589
- }
2590
- exports.DeleteInstanceShutdownTimerResponseBody = DeleteInstanceShutdownTimerResponseBody;
2591
- class DeleteInstanceShutdownTimerResponse extends $dara.Model {
2592
- static names() {
2593
- return {
2594
- headers: 'headers',
2595
- statusCode: 'statusCode',
2596
- body: 'body',
2597
- };
2598
- }
2599
- static types() {
2600
- return {
2601
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2602
- statusCode: 'number',
2603
- body: DeleteInstanceShutdownTimerResponseBody,
2604
- };
2605
- }
2606
- validate() {
2607
- if (this.headers) {
2608
- $dara.Model.validateMap(this.headers);
2609
- }
2610
- if (this.body && typeof this.body.validate === 'function') {
2611
- this.body.validate();
2612
- }
2613
- super.validate();
2614
- }
2615
- constructor(map) {
2616
- super(map);
2617
- }
2618
- }
2619
- exports.DeleteInstanceShutdownTimerResponse = DeleteInstanceShutdownTimerResponse;
2620
- class DeleteInstanceSnapshotResponseBody extends $dara.Model {
2621
- static names() {
2622
- return {
2623
- code: 'Code',
2624
- httpStatusCode: 'HttpStatusCode',
2625
- instanceId: 'InstanceId',
2626
- message: 'Message',
2627
- requestId: 'RequestId',
2628
- snapshotId: 'SnapshotId',
2629
- success: 'Success',
2630
- };
2631
- }
2632
- static types() {
2633
- return {
2634
- code: 'string',
2635
- httpStatusCode: 'number',
2636
- instanceId: 'string',
2637
- message: 'string',
2638
- requestId: 'string',
2639
- snapshotId: 'string',
2640
- success: 'boolean',
2641
- };
2642
- }
2643
- validate() {
2644
- super.validate();
2645
- }
2646
- constructor(map) {
2647
- super(map);
2648
- }
2649
- }
2650
- exports.DeleteInstanceSnapshotResponseBody = DeleteInstanceSnapshotResponseBody;
2651
- class DeleteInstanceSnapshotResponse extends $dara.Model {
2652
- static names() {
2653
- return {
2654
- headers: 'headers',
2655
- statusCode: 'statusCode',
2656
- body: 'body',
2657
- };
2658
- }
2659
- static types() {
2660
- return {
2661
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2662
- statusCode: 'number',
2663
- body: DeleteInstanceSnapshotResponseBody,
2664
- };
2665
- }
2666
- validate() {
2667
- if (this.headers) {
2668
- $dara.Model.validateMap(this.headers);
2669
- }
2670
- if (this.body && typeof this.body.validate === 'function') {
2671
- this.body.validate();
2672
- }
2673
- super.validate();
2674
- }
2675
- constructor(map) {
2676
- super(map);
2677
- }
2678
- }
2679
- exports.DeleteInstanceSnapshotResponse = DeleteInstanceSnapshotResponse;
2680
- class GetIdleInstanceCullerResponseBody extends $dara.Model {
2681
- static names() {
2682
- return {
2683
- code: 'Code',
2684
- cpuPercentThreshold: 'CpuPercentThreshold',
2685
- gpuPercentThreshold: 'GpuPercentThreshold',
2686
- idleTimeInMinutes: 'IdleTimeInMinutes',
2687
- instanceId: 'InstanceId',
2688
- maxIdleTimeInMinutes: 'MaxIdleTimeInMinutes',
2689
- message: 'Message',
2690
- requestId: 'RequestId',
2691
- success: 'Success',
2692
- };
2693
- }
2694
- static types() {
2695
- return {
2696
- code: 'string',
2697
- cpuPercentThreshold: 'number',
2698
- gpuPercentThreshold: 'number',
2699
- idleTimeInMinutes: 'number',
2700
- instanceId: 'string',
2701
- maxIdleTimeInMinutes: 'number',
2702
- message: 'string',
2703
- requestId: 'string',
2704
- success: 'boolean',
2705
- };
2706
- }
2707
- validate() {
2708
- super.validate();
2709
- }
2710
- constructor(map) {
2711
- super(map);
2712
- }
2713
- }
2714
- exports.GetIdleInstanceCullerResponseBody = GetIdleInstanceCullerResponseBody;
2715
- class GetIdleInstanceCullerResponse extends $dara.Model {
2716
- static names() {
2717
- return {
2718
- headers: 'headers',
2719
- statusCode: 'statusCode',
2720
- body: 'body',
2721
- };
2722
- }
2723
- static types() {
2724
- return {
2725
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2726
- statusCode: 'number',
2727
- body: GetIdleInstanceCullerResponseBody,
2728
- };
2729
- }
2730
- validate() {
2731
- if (this.headers) {
2732
- $dara.Model.validateMap(this.headers);
2733
- }
2734
- if (this.body && typeof this.body.validate === 'function') {
2735
- this.body.validate();
2736
- }
2737
- super.validate();
2738
- }
2739
- constructor(map) {
2740
- super(map);
2741
- }
2742
- }
2743
- exports.GetIdleInstanceCullerResponse = GetIdleInstanceCullerResponse;
2744
- class GetInstanceRequest extends $dara.Model {
2745
- static names() {
2746
- return {
2747
- token: 'Token',
2748
- };
2749
- }
2750
- static types() {
2751
- return {
2752
- token: 'string',
2753
- };
2754
- }
2755
- validate() {
2756
- super.validate();
2757
- }
2758
- constructor(map) {
2759
- super(map);
2760
- }
2761
- }
2762
- exports.GetInstanceRequest = GetInstanceRequest;
2763
- class GetInstanceResponseBody extends $dara.Model {
2764
- static names() {
2765
- return {
2766
- acceleratorType: 'AcceleratorType',
2767
- accessibility: 'Accessibility',
2768
- accumulatedRunningTimeInMs: 'AccumulatedRunningTimeInMs',
2769
- affinity: 'Affinity',
2770
- cloudDisks: 'CloudDisks',
2771
- code: 'Code',
2772
- credentialConfig: 'CredentialConfig',
2773
- datasets: 'Datasets',
2774
- driver: 'Driver',
2775
- dynamicMount: 'DynamicMount',
2776
- ecsSpec: 'EcsSpec',
2777
- environmentVariables: 'EnvironmentVariables',
2778
- gmtCreateTime: 'GmtCreateTime',
2779
- gmtModifiedTime: 'GmtModifiedTime',
2780
- httpStatusCode: 'HttpStatusCode',
2781
- idleInstanceCuller: 'IdleInstanceCuller',
2782
- imageAuth: 'ImageAuth',
2783
- imageId: 'ImageId',
2784
- imageName: 'ImageName',
2785
- imageUrl: 'ImageUrl',
2786
- instanceId: 'InstanceId',
2787
- instanceName: 'InstanceName',
2788
- instanceShutdownTimer: 'InstanceShutdownTimer',
2789
- instanceSnapshotList: 'InstanceSnapshotList',
2790
- instanceUrl: 'InstanceUrl',
2791
- jupyterlabUrl: 'JupyterlabUrl',
2792
- labels: 'Labels',
2793
- latestSnapshot: 'LatestSnapshot',
2794
- message: 'Message',
2795
- nodeErrorRecovery: 'NodeErrorRecovery',
2796
- paymentType: 'PaymentType',
2797
- priority: 'Priority',
2798
- proxyPath: 'ProxyPath',
2799
- reasonCode: 'ReasonCode',
2800
- reasonMessage: 'ReasonMessage',
2801
- requestId: 'RequestId',
2802
- requestedResource: 'RequestedResource',
2803
- resourceId: 'ResourceId',
2804
- resourceName: 'ResourceName',
2805
- status: 'Status',
2806
- success: 'Success',
2807
- tags: 'Tags',
2808
- terminalUrl: 'TerminalUrl',
2809
- userId: 'UserId',
2810
- userName: 'UserName',
2811
- userVpc: 'UserVpc',
2812
- webIDEUrl: 'WebIDEUrl',
2813
- workspaceId: 'WorkspaceId',
2814
- workspaceName: 'WorkspaceName',
2815
- workspaceSource: 'WorkspaceSource',
2816
- };
2817
- }
2818
- static types() {
2819
- return {
2820
- acceleratorType: 'string',
2821
- accessibility: 'string',
2822
- accumulatedRunningTimeInMs: 'number',
2823
- affinity: GetInstanceResponseBodyAffinity,
2824
- cloudDisks: { 'type': 'array', 'itemType': GetInstanceResponseBodyCloudDisks },
2825
- code: 'string',
2826
- credentialConfig: CredentialConfig,
2827
- datasets: { 'type': 'array', 'itemType': GetInstanceResponseBodyDatasets },
2828
- driver: 'string',
2829
- dynamicMount: DynamicMount,
2830
- ecsSpec: 'string',
2831
- environmentVariables: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2832
- gmtCreateTime: 'string',
2833
- gmtModifiedTime: 'string',
2834
- httpStatusCode: 'number',
2835
- idleInstanceCuller: GetInstanceResponseBodyIdleInstanceCuller,
2836
- imageAuth: 'string',
2837
- imageId: 'string',
2838
- imageName: 'string',
2839
- imageUrl: 'string',
2840
- instanceId: 'string',
2841
- instanceName: 'string',
2842
- instanceShutdownTimer: GetInstanceResponseBodyInstanceShutdownTimer,
2843
- instanceSnapshotList: { 'type': 'array', 'itemType': GetInstanceResponseBodyInstanceSnapshotList },
2844
- instanceUrl: 'string',
2845
- jupyterlabUrl: 'string',
2846
- labels: { 'type': 'array', 'itemType': GetInstanceResponseBodyLabels },
2847
- latestSnapshot: GetInstanceResponseBodyLatestSnapshot,
2848
- message: 'string',
2849
- nodeErrorRecovery: GetInstanceResponseBodyNodeErrorRecovery,
2850
- paymentType: 'string',
2851
- priority: 'number',
2852
- proxyPath: 'string',
2853
- reasonCode: 'string',
2854
- reasonMessage: 'string',
2855
- requestId: 'string',
2856
- requestedResource: GetInstanceResponseBodyRequestedResource,
2857
- resourceId: 'string',
2858
- resourceName: 'string',
2859
- status: 'string',
2860
- success: 'boolean',
2861
- tags: { 'type': 'array', 'itemType': GetInstanceResponseBodyTags },
2862
- terminalUrl: 'string',
2863
- userId: 'string',
2864
- userName: 'string',
2865
- userVpc: GetInstanceResponseBodyUserVpc,
2866
- webIDEUrl: 'string',
2867
- workspaceId: 'string',
2868
- workspaceName: 'string',
2869
- workspaceSource: 'string',
2870
- };
2871
- }
2872
- validate() {
2873
- if (this.affinity && typeof this.affinity.validate === 'function') {
2874
- this.affinity.validate();
2875
- }
2876
- if (Array.isArray(this.cloudDisks)) {
2877
- $dara.Model.validateArray(this.cloudDisks);
2878
- }
2879
- if (this.credentialConfig && typeof this.credentialConfig.validate === 'function') {
2880
- this.credentialConfig.validate();
2881
- }
2882
- if (Array.isArray(this.datasets)) {
2883
- $dara.Model.validateArray(this.datasets);
2884
- }
2885
- if (this.dynamicMount && typeof this.dynamicMount.validate === 'function') {
2886
- this.dynamicMount.validate();
2887
- }
2888
- if (this.environmentVariables) {
2889
- $dara.Model.validateMap(this.environmentVariables);
2890
- }
2891
- if (this.idleInstanceCuller && typeof this.idleInstanceCuller.validate === 'function') {
2892
- this.idleInstanceCuller.validate();
2893
- }
2894
- if (this.instanceShutdownTimer && typeof this.instanceShutdownTimer.validate === 'function') {
2895
- this.instanceShutdownTimer.validate();
2896
- }
2897
- if (Array.isArray(this.instanceSnapshotList)) {
2898
- $dara.Model.validateArray(this.instanceSnapshotList);
2899
- }
2900
- if (Array.isArray(this.labels)) {
2901
- $dara.Model.validateArray(this.labels);
2902
- }
2903
- if (this.latestSnapshot && typeof this.latestSnapshot.validate === 'function') {
2904
- this.latestSnapshot.validate();
2905
- }
2906
- if (this.nodeErrorRecovery && typeof this.nodeErrorRecovery.validate === 'function') {
2907
- this.nodeErrorRecovery.validate();
2908
- }
2909
- if (this.requestedResource && typeof this.requestedResource.validate === 'function') {
2910
- this.requestedResource.validate();
2911
- }
2912
- if (Array.isArray(this.tags)) {
2913
- $dara.Model.validateArray(this.tags);
2914
- }
2915
- if (this.userVpc && typeof this.userVpc.validate === 'function') {
2916
- this.userVpc.validate();
2917
- }
2918
- super.validate();
2919
- }
2920
- constructor(map) {
2921
- super(map);
2922
- }
2923
- }
2924
- exports.GetInstanceResponseBody = GetInstanceResponseBody;
2925
- class GetInstanceResponse extends $dara.Model {
2926
- static names() {
2927
- return {
2928
- headers: 'headers',
2929
- statusCode: 'statusCode',
2930
- body: 'body',
2931
- };
2932
- }
2933
- static types() {
2934
- return {
2935
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2936
- statusCode: 'number',
2937
- body: GetInstanceResponseBody,
2938
- };
2939
- }
2940
- validate() {
2941
- if (this.headers) {
2942
- $dara.Model.validateMap(this.headers);
2943
- }
2944
- if (this.body && typeof this.body.validate === 'function') {
2945
- this.body.validate();
2946
- }
2947
- super.validate();
2948
- }
2949
- constructor(map) {
2950
- super(map);
2951
- }
2952
- }
2953
- exports.GetInstanceResponse = GetInstanceResponse;
2954
- class GetInstanceEventsRequest extends $dara.Model {
2955
- static names() {
2956
- return {
2957
- endTime: 'EndTime',
2958
- maxEventsNum: 'MaxEventsNum',
2959
- startTime: 'StartTime',
2960
- token: 'Token',
2961
- };
2962
- }
2963
- static types() {
2964
- return {
2965
- endTime: 'string',
2966
- maxEventsNum: 'number',
2967
- startTime: 'string',
2968
- token: 'string',
2969
- };
2970
- }
2971
- validate() {
2972
- super.validate();
2973
- }
2974
- constructor(map) {
2975
- super(map);
2976
- }
2977
- }
2978
- exports.GetInstanceEventsRequest = GetInstanceEventsRequest;
2979
- class GetInstanceEventsResponseBody extends $dara.Model {
2980
- static names() {
2981
- return {
2982
- code: 'Code',
2983
- events: 'Events',
2984
- httpStatusCode: 'HttpStatusCode',
2985
- instanceId: 'InstanceId',
2986
- message: 'Message',
2987
- requestId: 'RequestId',
2988
- success: 'Success',
2989
- };
2990
- }
2991
- static types() {
2992
- return {
2993
- code: 'string',
2994
- events: { 'type': 'array', 'itemType': 'string' },
2995
- httpStatusCode: 'number',
2996
- instanceId: 'string',
2997
- message: 'string',
2998
- requestId: 'string',
2999
- success: 'boolean',
3000
- };
3001
- }
3002
- validate() {
3003
- if (Array.isArray(this.events)) {
3004
- $dara.Model.validateArray(this.events);
3005
- }
3006
- super.validate();
3007
- }
3008
- constructor(map) {
3009
- super(map);
3010
- }
3011
- }
3012
- exports.GetInstanceEventsResponseBody = GetInstanceEventsResponseBody;
3013
- class GetInstanceEventsResponse extends $dara.Model {
3014
- static names() {
3015
- return {
3016
- headers: 'headers',
3017
- statusCode: 'statusCode',
3018
- body: 'body',
3019
- };
3020
- }
3021
- static types() {
3022
- return {
3023
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3024
- statusCode: 'number',
3025
- body: GetInstanceEventsResponseBody,
3026
- };
3027
- }
3028
- validate() {
3029
- if (this.headers) {
3030
- $dara.Model.validateMap(this.headers);
3031
- }
3032
- if (this.body && typeof this.body.validate === 'function') {
3033
- this.body.validate();
3034
- }
3035
- super.validate();
3036
- }
3037
- constructor(map) {
3038
- super(map);
3039
- }
3040
- }
3041
- exports.GetInstanceEventsResponse = GetInstanceEventsResponse;
3042
- class GetInstanceMetricsRequest extends $dara.Model {
3043
- static names() {
3044
- return {
3045
- endTime: 'EndTime',
3046
- metricType: 'MetricType',
3047
- startTime: 'StartTime',
3048
- timeStep: 'TimeStep',
3049
- };
3050
- }
3051
- static types() {
3052
- return {
3053
- endTime: 'string',
3054
- metricType: 'string',
3055
- startTime: 'string',
3056
- timeStep: 'string',
3057
- };
3058
- }
3059
- validate() {
3060
- super.validate();
3061
- }
3062
- constructor(map) {
3063
- super(map);
3064
- }
3065
- }
3066
- exports.GetInstanceMetricsRequest = GetInstanceMetricsRequest;
3067
- class GetInstanceMetricsResponseBody extends $dara.Model {
3068
- static names() {
3069
- return {
3070
- code: 'Code',
3071
- httpStatusCode: 'HttpStatusCode',
3072
- instanceId: 'InstanceId',
3073
- message: 'Message',
3074
- podMetrics: 'PodMetrics',
3075
- requestId: 'RequestId',
3076
- success: 'Success',
3077
- };
3078
- }
3079
- static types() {
3080
- return {
3081
- code: 'string',
3082
- httpStatusCode: 'number',
3083
- instanceId: 'string',
3084
- message: 'string',
3085
- podMetrics: { 'type': 'array', 'itemType': GetInstanceMetricsResponseBodyPodMetrics },
3086
- requestId: 'string',
3087
- success: 'boolean',
3088
- };
3089
- }
3090
- validate() {
3091
- if (Array.isArray(this.podMetrics)) {
3092
- $dara.Model.validateArray(this.podMetrics);
3093
- }
3094
- super.validate();
3095
- }
3096
- constructor(map) {
3097
- super(map);
3098
- }
3099
- }
3100
- exports.GetInstanceMetricsResponseBody = GetInstanceMetricsResponseBody;
3101
- class GetInstanceMetricsResponse extends $dara.Model {
3102
- static names() {
3103
- return {
3104
- headers: 'headers',
3105
- statusCode: 'statusCode',
3106
- body: 'body',
3107
- };
3108
- }
3109
- static types() {
3110
- return {
3111
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3112
- statusCode: 'number',
3113
- body: GetInstanceMetricsResponseBody,
3114
- };
3115
- }
3116
- validate() {
3117
- if (this.headers) {
3118
- $dara.Model.validateMap(this.headers);
3119
- }
3120
- if (this.body && typeof this.body.validate === 'function') {
3121
- this.body.validate();
3122
- }
3123
- super.validate();
3124
- }
3125
- constructor(map) {
3126
- super(map);
3127
- }
3128
- }
3129
- exports.GetInstanceMetricsResponse = GetInstanceMetricsResponse;
3130
- class GetInstanceShutdownTimerResponseBody extends $dara.Model {
3131
- static names() {
3132
- return {
3133
- code: 'Code',
3134
- dueTime: 'DueTime',
3135
- gmtCreateTime: 'GmtCreateTime',
3136
- gmtModifiedTime: 'GmtModifiedTime',
3137
- httpStatusCode: 'HttpStatusCode',
3138
- instanceId: 'InstanceId',
3139
- message: 'Message',
3140
- remainingTimeInMs: 'RemainingTimeInMs',
3141
- requestId: 'RequestId',
3142
- success: 'Success',
3143
- };
3144
- }
3145
- static types() {
3146
- return {
3147
- code: 'string',
3148
- dueTime: 'string',
3149
- gmtCreateTime: 'string',
3150
- gmtModifiedTime: 'string',
3151
- httpStatusCode: 'number',
3152
- instanceId: 'string',
3153
- message: 'string',
3154
- remainingTimeInMs: 'number',
3155
- requestId: 'string',
3156
- success: 'boolean',
3157
- };
3158
- }
3159
- validate() {
3160
- super.validate();
3161
- }
3162
- constructor(map) {
3163
- super(map);
3164
- }
3165
- }
3166
- exports.GetInstanceShutdownTimerResponseBody = GetInstanceShutdownTimerResponseBody;
3167
- class GetInstanceShutdownTimerResponse extends $dara.Model {
3168
- static names() {
3169
- return {
3170
- headers: 'headers',
3171
- statusCode: 'statusCode',
3172
- body: 'body',
3173
- };
3174
- }
3175
- static types() {
3176
- return {
3177
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3178
- statusCode: 'number',
3179
- body: GetInstanceShutdownTimerResponseBody,
3180
- };
3181
- }
3182
- validate() {
3183
- if (this.headers) {
3184
- $dara.Model.validateMap(this.headers);
3185
- }
3186
- if (this.body && typeof this.body.validate === 'function') {
3187
- this.body.validate();
3188
- }
3189
- super.validate();
3190
- }
3191
- constructor(map) {
3192
- super(map);
3193
- }
3194
- }
3195
- exports.GetInstanceShutdownTimerResponse = GetInstanceShutdownTimerResponse;
3196
- class GetInstanceSnapshotResponseBody extends $dara.Model {
3197
- static names() {
3198
- return {
3199
- code: 'Code',
3200
- excludePaths: 'ExcludePaths',
3201
- gmtCreateTime: 'GmtCreateTime',
3202
- gmtModifiedTime: 'GmtModifiedTime',
3203
- httpStatusCode: 'HttpStatusCode',
3204
- imageId: 'ImageId',
3205
- imageUrl: 'ImageUrl',
3206
- instanceId: 'InstanceId',
3207
- labels: 'Labels',
3208
- message: 'Message',
3209
- reasonCode: 'ReasonCode',
3210
- reasonMessage: 'ReasonMessage',
3211
- requestId: 'RequestId',
3212
- snapshotId: 'SnapshotId',
3213
- snapshotName: 'SnapshotName',
3214
- status: 'Status',
3215
- success: 'Success',
3216
- };
3217
- }
3218
- static types() {
3219
- return {
3220
- code: 'string',
3221
- excludePaths: { 'type': 'array', 'itemType': 'string' },
3222
- gmtCreateTime: 'string',
3223
- gmtModifiedTime: 'string',
3224
- httpStatusCode: 'number',
3225
- imageId: 'string',
3226
- imageUrl: 'string',
3227
- instanceId: 'string',
3228
- labels: { 'type': 'array', 'itemType': GetInstanceSnapshotResponseBodyLabels },
3229
- message: 'string',
3230
- reasonCode: 'string',
3231
- reasonMessage: 'string',
3232
- requestId: 'string',
3233
- snapshotId: 'string',
3234
- snapshotName: 'string',
3235
- status: 'string',
3236
- success: 'boolean',
3237
- };
3238
- }
3239
- validate() {
3240
- if (Array.isArray(this.excludePaths)) {
3241
- $dara.Model.validateArray(this.excludePaths);
3242
- }
3243
- if (Array.isArray(this.labels)) {
3244
- $dara.Model.validateArray(this.labels);
3245
- }
3246
- super.validate();
3247
- }
3248
- constructor(map) {
3249
- super(map);
3250
- }
3251
- }
3252
- exports.GetInstanceSnapshotResponseBody = GetInstanceSnapshotResponseBody;
3253
- class GetInstanceSnapshotResponse extends $dara.Model {
3254
- static names() {
3255
- return {
3256
- headers: 'headers',
3257
- statusCode: 'statusCode',
3258
- body: 'body',
3259
- };
3260
- }
3261
- static types() {
3262
- return {
3263
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3264
- statusCode: 'number',
3265
- body: GetInstanceSnapshotResponseBody,
3266
- };
3267
- }
3268
- validate() {
3269
- if (this.headers) {
3270
- $dara.Model.validateMap(this.headers);
3271
- }
3272
- if (this.body && typeof this.body.validate === 'function') {
3273
- this.body.validate();
3274
- }
3275
- super.validate();
3276
- }
3277
- constructor(map) {
3278
- super(map);
3279
- }
3280
- }
3281
- exports.GetInstanceSnapshotResponse = GetInstanceSnapshotResponse;
3282
- class GetLifecycleRequest extends $dara.Model {
3283
- static names() {
3284
- return {
3285
- endTime: 'EndTime',
3286
- limit: 'Limit',
3287
- order: 'Order',
3288
- sessionNumber: 'SessionNumber',
3289
- startTime: 'StartTime',
3290
- token: 'Token',
3291
- };
3292
- }
3293
- static types() {
3294
- return {
3295
- endTime: 'string',
3296
- limit: 'number',
3297
- order: 'string',
3298
- sessionNumber: 'number',
3299
- startTime: 'string',
3300
- token: 'string',
3301
- };
3302
- }
3303
- validate() {
3304
- super.validate();
3305
- }
3306
- constructor(map) {
3307
- super(map);
3308
- }
3309
- }
3310
- exports.GetLifecycleRequest = GetLifecycleRequest;
3311
- class GetLifecycleResponseBody extends $dara.Model {
3312
- static names() {
3313
- return {
3314
- code: 'Code',
3315
- lifecycle: 'Lifecycle',
3316
- message: 'Message',
3317
- requestId: 'RequestId',
3318
- success: 'Success',
3319
- totalCount: 'TotalCount',
3320
- };
3321
- }
3322
- static types() {
3323
- return {
3324
- code: 'string',
3325
- lifecycle: { 'type': 'array', 'itemType': { 'type': 'array', 'itemType': GetLifecycleResponseBodyLifecycle } },
3326
- message: 'string',
3327
- requestId: 'string',
3328
- success: 'boolean',
3329
- totalCount: 'number',
3330
- };
3331
- }
3332
- validate() {
3333
- if (Array.isArray(this.lifecycle)) {
3334
- $dara.Model.validateArray(this.lifecycle);
3335
- }
3336
- super.validate();
3337
- }
3338
- constructor(map) {
3339
- super(map);
3340
- }
3341
- }
3342
- exports.GetLifecycleResponseBody = GetLifecycleResponseBody;
3343
- class GetLifecycleResponse extends $dara.Model {
3344
- static names() {
3345
- return {
3346
- headers: 'headers',
3347
- statusCode: 'statusCode',
3348
- body: 'body',
3349
- };
3350
- }
3351
- static types() {
3352
- return {
3353
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3354
- statusCode: 'number',
3355
- body: GetLifecycleResponseBody,
3356
- };
3357
- }
3358
- validate() {
3359
- if (this.headers) {
3360
- $dara.Model.validateMap(this.headers);
3361
- }
3362
- if (this.body && typeof this.body.validate === 'function') {
3363
- this.body.validate();
3364
- }
3365
- super.validate();
3366
- }
3367
- constructor(map) {
3368
- super(map);
3369
- }
3370
- }
3371
- exports.GetLifecycleResponse = GetLifecycleResponse;
3372
- class GetMetricsRequest extends $dara.Model {
3373
- static names() {
3374
- return {
3375
- dimensions: 'Dimensions',
3376
- endTime: 'EndTime',
3377
- length: 'Length',
3378
- metricName: 'MetricName',
3379
- namespace: 'Namespace',
3380
- nextToken: 'NextToken',
3381
- period: 'Period',
3382
- startTime: 'StartTime',
3383
- };
3384
- }
3385
- static types() {
3386
- return {
3387
- dimensions: 'string',
3388
- endTime: 'string',
3389
- length: 'string',
3390
- metricName: 'string',
3391
- namespace: 'string',
3392
- nextToken: 'string',
3393
- period: 'string',
3394
- startTime: 'string',
3395
- };
3396
- }
3397
- validate() {
3398
- super.validate();
3399
- }
3400
- constructor(map) {
3401
- super(map);
3402
- }
3403
- }
3404
- exports.GetMetricsRequest = GetMetricsRequest;
3405
- class GetMetricsResponseBody extends $dara.Model {
3406
- static names() {
3407
- return {
3408
- code: 'Code',
3409
- datapoints: 'Datapoints',
3410
- message: 'Message',
3411
- nextToken: 'NextToken',
3412
- period: 'Period',
3413
- requestId: 'RequestId',
3414
- success: 'Success',
3415
- };
3416
- }
3417
- static types() {
3418
- return {
3419
- code: 'string',
3420
- datapoints: 'string',
3421
- message: 'string',
3422
- nextToken: 'string',
3423
- period: 'string',
3424
- requestId: 'string',
3425
- success: 'boolean',
3426
- };
3427
- }
3428
- validate() {
3429
- super.validate();
3430
- }
3431
- constructor(map) {
3432
- super(map);
3433
- }
3434
- }
3435
- exports.GetMetricsResponseBody = GetMetricsResponseBody;
3436
- class GetMetricsResponse extends $dara.Model {
3437
- static names() {
3438
- return {
3439
- headers: 'headers',
3440
- statusCode: 'statusCode',
3441
- body: 'body',
3442
- };
3443
- }
3444
- static types() {
3445
- return {
3446
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3447
- statusCode: 'number',
3448
- body: GetMetricsResponseBody,
3449
- };
3450
- }
3451
- validate() {
3452
- if (this.headers) {
3453
- $dara.Model.validateMap(this.headers);
3454
- }
3455
- if (this.body && typeof this.body.validate === 'function') {
3456
- this.body.validate();
3457
- }
3458
- super.validate();
3459
- }
3460
- constructor(map) {
3461
- super(map);
3462
- }
3463
- }
3464
- exports.GetMetricsResponse = GetMetricsResponse;
3465
- class GetResourceGroupStatisticsRequest extends $dara.Model {
3466
- static names() {
3467
- return {
3468
- endTime: 'EndTime',
3469
- resourceId: 'ResourceId',
3470
- startTime: 'StartTime',
3471
- workspaceIds: 'WorkspaceIds',
3472
- };
3473
- }
3474
- static types() {
3475
- return {
3476
- endTime: 'string',
3477
- resourceId: 'string',
3478
- startTime: 'string',
3479
- workspaceIds: 'string',
3480
- };
3481
- }
3482
- validate() {
3483
- super.validate();
3484
- }
3485
- constructor(map) {
3486
- super(map);
3487
- }
3488
- }
3489
- exports.GetResourceGroupStatisticsRequest = GetResourceGroupStatisticsRequest;
3490
- class GetResourceGroupStatisticsResponseBody extends $dara.Model {
3491
- static names() {
3492
- return {
3493
- code: 'Code',
3494
- httpStatusCode: 'HttpStatusCode',
3495
- message: 'Message',
3496
- requestId: 'RequestId',
3497
- statistics: 'Statistics',
3498
- success: 'Success',
3499
- };
3500
- }
3501
- static types() {
3502
- return {
3503
- code: 'string',
3504
- httpStatusCode: 'number',
3505
- message: 'string',
3506
- requestId: 'string',
3507
- statistics: { 'type': 'map', 'keyType': 'string', 'valueType': '{[key: string]: any}' },
3508
- success: 'boolean',
3509
- };
3510
- }
3511
- validate() {
3512
- if (this.statistics) {
3513
- $dara.Model.validateMap(this.statistics);
3514
- }
3515
- super.validate();
3516
- }
3517
- constructor(map) {
3518
- super(map);
3519
- }
3520
- }
3521
- exports.GetResourceGroupStatisticsResponseBody = GetResourceGroupStatisticsResponseBody;
3522
- class GetResourceGroupStatisticsResponse extends $dara.Model {
3523
- static names() {
3524
- return {
3525
- headers: 'headers',
3526
- statusCode: 'statusCode',
3527
- body: 'body',
3528
- };
3529
- }
3530
- static types() {
3531
- return {
3532
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3533
- statusCode: 'number',
3534
- body: GetResourceGroupStatisticsResponseBody,
3535
- };
3536
- }
3537
- validate() {
3538
- if (this.headers) {
3539
- $dara.Model.validateMap(this.headers);
3540
- }
3541
- if (this.body && typeof this.body.validate === 'function') {
3542
- this.body.validate();
3543
- }
3544
- super.validate();
3545
- }
3546
- constructor(map) {
3547
- super(map);
3548
- }
3549
- }
3550
- exports.GetResourceGroupStatisticsResponse = GetResourceGroupStatisticsResponse;
3551
- class GetTokenRequest extends $dara.Model {
3552
- static names() {
3553
- return {
3554
- expireTime: 'ExpireTime',
3555
- instanceId: 'InstanceId',
3556
- };
3557
- }
3558
- static types() {
3559
- return {
3560
- expireTime: 'number',
3561
- instanceId: 'string',
3562
- };
3563
- }
3564
- validate() {
3565
- super.validate();
3566
- }
3567
- constructor(map) {
3568
- super(map);
3569
- }
3570
- }
3571
- exports.GetTokenRequest = GetTokenRequest;
3572
- class GetTokenResponseBody extends $dara.Model {
3573
- static names() {
3574
- return {
3575
- code: 'Code',
3576
- message: 'Message',
3577
- requestId: 'RequestId',
3578
- success: 'Success',
3579
- token: 'Token',
3580
- };
3581
- }
3582
- static types() {
3583
- return {
3584
- code: 'string',
3585
- message: 'string',
3586
- requestId: 'string',
3587
- success: 'boolean',
3588
- token: 'string',
3589
- };
3590
- }
3591
- validate() {
3592
- super.validate();
3593
- }
3594
- constructor(map) {
3595
- super(map);
3596
- }
3597
- }
3598
- exports.GetTokenResponseBody = GetTokenResponseBody;
3599
- class GetTokenResponse extends $dara.Model {
3600
- static names() {
3601
- return {
3602
- headers: 'headers',
3603
- statusCode: 'statusCode',
3604
- body: 'body',
3605
- };
3606
- }
3607
- static types() {
3608
- return {
3609
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3610
- statusCode: 'number',
3611
- body: GetTokenResponseBody,
3612
- };
3613
- }
3614
- validate() {
3615
- if (this.headers) {
3616
- $dara.Model.validateMap(this.headers);
3617
- }
3618
- if (this.body && typeof this.body.validate === 'function') {
3619
- this.body.validate();
3620
- }
3621
- super.validate();
3622
- }
3623
- constructor(map) {
3624
- super(map);
3625
- }
3626
- }
3627
- exports.GetTokenResponse = GetTokenResponse;
3628
- class GetUserConfigResponseBody extends $dara.Model {
3629
- static names() {
3630
- return {
3631
- accountSufficient: 'AccountSufficient',
3632
- code: 'Code',
3633
- enableEciDisk: 'EnableEciDisk',
3634
- freeTier: 'FreeTier',
3635
- freeTierSpecAvailable: 'FreeTierSpecAvailable',
3636
- httpStatusCode: 'HttpStatusCode',
3637
- message: 'Message',
3638
- requestId: 'RequestId',
3639
- success: 'Success',
3640
- };
3641
- }
3642
- static types() {
3643
- return {
3644
- accountSufficient: 'boolean',
3645
- code: 'string',
3646
- enableEciDisk: 'boolean',
3647
- freeTier: GetUserConfigResponseBodyFreeTier,
3648
- freeTierSpecAvailable: 'boolean',
3649
- httpStatusCode: 'number',
3650
- message: 'string',
3651
- requestId: 'string',
3652
- success: 'boolean',
3653
- };
3654
- }
3655
- validate() {
3656
- if (this.freeTier && typeof this.freeTier.validate === 'function') {
3657
- this.freeTier.validate();
3658
- }
3659
- super.validate();
3660
- }
3661
- constructor(map) {
3662
- super(map);
3663
- }
3664
- }
3665
- exports.GetUserConfigResponseBody = GetUserConfigResponseBody;
3666
- class GetUserConfigResponse extends $dara.Model {
3667
- static names() {
3668
- return {
3669
- headers: 'headers',
3670
- statusCode: 'statusCode',
3671
- body: 'body',
3672
- };
3673
- }
3674
- static types() {
3675
- return {
3676
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3677
- statusCode: 'number',
3678
- body: GetUserConfigResponseBody,
3679
- };
3680
- }
3681
- validate() {
3682
- if (this.headers) {
3683
- $dara.Model.validateMap(this.headers);
3684
- }
3685
- if (this.body && typeof this.body.validate === 'function') {
3686
- this.body.validate();
3687
- }
3688
- super.validate();
3689
- }
3690
- constructor(map) {
3691
- super(map);
3692
- }
3693
- }
3694
- exports.GetUserConfigResponse = GetUserConfigResponse;
3695
- class ListEcsSpecsRequest extends $dara.Model {
3696
- static names() {
3697
- return {
3698
- acceleratorType: 'AcceleratorType',
3699
- order: 'Order',
3700
- pageNumber: 'PageNumber',
3701
- pageSize: 'PageSize',
3702
- sortBy: 'SortBy',
3703
- };
3704
- }
3705
- static types() {
3706
- return {
3707
- acceleratorType: 'string',
3708
- order: 'string',
3709
- pageNumber: 'number',
3710
- pageSize: 'number',
3711
- sortBy: 'string',
3712
- };
3713
- }
3714
- validate() {
3715
- super.validate();
3716
- }
3717
- constructor(map) {
3718
- super(map);
3719
- }
3720
- }
3721
- exports.ListEcsSpecsRequest = ListEcsSpecsRequest;
3722
- class ListEcsSpecsResponseBody extends $dara.Model {
3723
- static names() {
3724
- return {
3725
- code: 'Code',
3726
- ecsSpecs: 'EcsSpecs',
3727
- httpStatusCode: 'HttpStatusCode',
3728
- message: 'Message',
3729
- requestId: 'RequestId',
3730
- success: 'Success',
3731
- totalCount: 'TotalCount',
3732
- };
3733
- }
3734
- static types() {
3735
- return {
3736
- code: 'string',
3737
- ecsSpecs: { 'type': 'array', 'itemType': ListEcsSpecsResponseBodyEcsSpecs },
3738
- httpStatusCode: 'number',
3739
- message: 'string',
3740
- requestId: 'string',
3741
- success: 'boolean',
3742
- totalCount: 'number',
3743
- };
3744
- }
3745
- validate() {
3746
- if (Array.isArray(this.ecsSpecs)) {
3747
- $dara.Model.validateArray(this.ecsSpecs);
3748
- }
3749
- super.validate();
3750
- }
3751
- constructor(map) {
3752
- super(map);
3753
- }
3754
- }
3755
- exports.ListEcsSpecsResponseBody = ListEcsSpecsResponseBody;
3756
- class ListEcsSpecsResponse extends $dara.Model {
3757
- static names() {
3758
- return {
3759
- headers: 'headers',
3760
- statusCode: 'statusCode',
3761
- body: 'body',
3762
- };
3763
- }
3764
- static types() {
3765
- return {
3766
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3767
- statusCode: 'number',
3768
- body: ListEcsSpecsResponseBody,
3769
- };
3770
- }
3771
- validate() {
3772
- if (this.headers) {
3773
- $dara.Model.validateMap(this.headers);
3774
- }
3775
- if (this.body && typeof this.body.validate === 'function') {
3776
- this.body.validate();
3777
- }
3778
- super.validate();
3779
- }
3780
- constructor(map) {
3781
- super(map);
3782
- }
3783
- }
3784
- exports.ListEcsSpecsResponse = ListEcsSpecsResponse;
3785
- class ListInstanceSnapshotRequest extends $dara.Model {
3786
- static names() {
3787
- return {
3788
- order: 'Order',
3789
- pageNumber: 'PageNumber',
3790
- pageSize: 'PageSize',
3791
- sortBy: 'SortBy',
3792
- };
3793
- }
3794
- static types() {
3795
- return {
3796
- order: 'string',
3797
- pageNumber: 'number',
3798
- pageSize: 'number',
3799
- sortBy: 'string',
3800
- };
3801
- }
3802
- validate() {
3803
- super.validate();
3804
- }
3805
- constructor(map) {
3806
- super(map);
3807
- }
3808
- }
3809
- exports.ListInstanceSnapshotRequest = ListInstanceSnapshotRequest;
3810
- class ListInstanceSnapshotResponseBody extends $dara.Model {
3811
- static names() {
3812
- return {
3813
- code: 'Code',
3814
- httpStatusCode: 'HttpStatusCode',
3815
- message: 'Message',
3816
- requestId: 'RequestId',
3817
- snapshots: 'Snapshots',
3818
- success: 'Success',
3819
- totalCount: 'TotalCount',
3820
- };
3821
- }
3822
- static types() {
3823
- return {
3824
- code: 'string',
3825
- httpStatusCode: 'number',
3826
- message: 'string',
3827
- requestId: 'string',
3828
- snapshots: { 'type': 'array', 'itemType': ListInstanceSnapshotResponseBodySnapshots },
3829
- success: 'boolean',
3830
- totalCount: 'number',
3831
- };
3832
- }
3833
- validate() {
3834
- if (Array.isArray(this.snapshots)) {
3835
- $dara.Model.validateArray(this.snapshots);
3836
- }
3837
- super.validate();
3838
- }
3839
- constructor(map) {
3840
- super(map);
3841
- }
3842
- }
3843
- exports.ListInstanceSnapshotResponseBody = ListInstanceSnapshotResponseBody;
3844
- class ListInstanceSnapshotResponse extends $dara.Model {
3845
- static names() {
3846
- return {
3847
- headers: 'headers',
3848
- statusCode: 'statusCode',
3849
- body: 'body',
3850
- };
3851
- }
3852
- static types() {
3853
- return {
3854
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3855
- statusCode: 'number',
3856
- body: ListInstanceSnapshotResponseBody,
3857
- };
3858
- }
3859
- validate() {
3860
- if (this.headers) {
3861
- $dara.Model.validateMap(this.headers);
3862
- }
3863
- if (this.body && typeof this.body.validate === 'function') {
3864
- this.body.validate();
3865
- }
3866
- super.validate();
3867
- }
3868
- constructor(map) {
3869
- super(map);
3870
- }
3871
- }
3872
- exports.ListInstanceSnapshotResponse = ListInstanceSnapshotResponse;
3873
- class ListInstanceStatisticsRequest extends $dara.Model {
3874
- static names() {
3875
- return {
3876
- workspaceIds: 'WorkspaceIds',
3877
- };
3878
- }
3879
- static types() {
3880
- return {
3881
- workspaceIds: 'string',
3882
- };
3883
- }
3884
- validate() {
3885
- super.validate();
3886
- }
3887
- constructor(map) {
3888
- super(map);
3889
- }
3890
- }
3891
- exports.ListInstanceStatisticsRequest = ListInstanceStatisticsRequest;
3892
- class ListInstanceStatisticsResponseBody extends $dara.Model {
3893
- static names() {
3894
- return {
3895
- code: 'Code',
3896
- httpStatusCode: 'HttpStatusCode',
3897
- message: 'Message',
3898
- requestId: 'RequestId',
3899
- statistics: 'Statistics',
3900
- success: 'Success',
3901
- };
3902
- }
3903
- static types() {
3904
- return {
3905
- code: 'string',
3906
- httpStatusCode: 'number',
3907
- message: 'string',
3908
- requestId: 'string',
3909
- statistics: { 'type': 'map', 'keyType': 'string', 'valueType': '{[key: string]: any}' },
3910
- success: 'boolean',
3911
- };
3912
- }
3913
- validate() {
3914
- if (this.statistics) {
3915
- $dara.Model.validateMap(this.statistics);
3916
- }
3917
- super.validate();
3918
- }
3919
- constructor(map) {
3920
- super(map);
3921
- }
3922
- }
3923
- exports.ListInstanceStatisticsResponseBody = ListInstanceStatisticsResponseBody;
3924
- class ListInstanceStatisticsResponse extends $dara.Model {
3925
- static names() {
3926
- return {
3927
- headers: 'headers',
3928
- statusCode: 'statusCode',
3929
- body: 'body',
3930
- };
3931
- }
3932
- static types() {
3933
- return {
3934
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3935
- statusCode: 'number',
3936
- body: ListInstanceStatisticsResponseBody,
3937
- };
3938
- }
3939
- validate() {
3940
- if (this.headers) {
3941
- $dara.Model.validateMap(this.headers);
3942
- }
3943
- if (this.body && typeof this.body.validate === 'function') {
3944
- this.body.validate();
3945
- }
3946
- super.validate();
3947
- }
3948
- constructor(map) {
3949
- super(map);
3950
- }
3951
- }
3952
- exports.ListInstanceStatisticsResponse = ListInstanceStatisticsResponse;
3953
- class ListInstancesRequest extends $dara.Model {
3954
- static names() {
3955
- return {
3956
- acceleratorType: 'AcceleratorType',
3957
- accessibility: 'Accessibility',
3958
- createUserId: 'CreateUserId',
3959
- gpuType: 'GpuType',
3960
- imageName: 'ImageName',
3961
- instanceId: 'InstanceId',
3962
- instanceName: 'InstanceName',
3963
- labels: 'Labels',
3964
- maxCpu: 'MaxCpu',
3965
- maxGpu: 'MaxGpu',
3966
- maxGpuMemory: 'MaxGpuMemory',
3967
- maxMemory: 'MaxMemory',
3968
- minCpu: 'MinCpu',
3969
- minGpu: 'MinGpu',
3970
- minGpuMemory: 'MinGpuMemory',
3971
- minMemory: 'MinMemory',
3972
- order: 'Order',
3973
- oversoldInfo: 'OversoldInfo',
3974
- oversoldType: 'OversoldType',
3975
- pageNumber: 'PageNumber',
3976
- pageSize: 'PageSize',
3977
- paymentType: 'PaymentType',
3978
- resourceId: 'ResourceId',
3979
- sortBy: 'SortBy',
3980
- status: 'Status',
3981
- tag: 'Tag',
3982
- workspaceId: 'WorkspaceId',
3983
- };
3984
- }
3985
- static types() {
3986
- return {
3987
- acceleratorType: 'string',
3988
- accessibility: 'string',
3989
- createUserId: 'string',
3990
- gpuType: 'string',
3991
- imageName: 'string',
3992
- instanceId: 'string',
3993
- instanceName: 'string',
3994
- labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
3995
- maxCpu: 'string',
3996
- maxGpu: 'string',
3997
- maxGpuMemory: 'string',
3998
- maxMemory: 'string',
3999
- minCpu: 'string',
4000
- minGpu: 'string',
4001
- minGpuMemory: 'string',
4002
- minMemory: 'string',
4003
- order: 'string',
4004
- oversoldInfo: 'string',
4005
- oversoldType: 'string',
4006
- pageNumber: 'number',
4007
- pageSize: 'number',
4008
- paymentType: 'string',
4009
- resourceId: 'string',
4010
- sortBy: 'string',
4011
- status: 'string',
4012
- tag: { 'type': 'array', 'itemType': ListInstancesRequestTag },
4013
- workspaceId: 'string',
4014
- };
4015
- }
4016
- validate() {
4017
- if (this.labels) {
4018
- $dara.Model.validateMap(this.labels);
4019
- }
4020
- if (Array.isArray(this.tag)) {
4021
- $dara.Model.validateArray(this.tag);
4022
- }
4023
- super.validate();
4024
- }
4025
- constructor(map) {
4026
- super(map);
4027
- }
4028
- }
4029
- exports.ListInstancesRequest = ListInstancesRequest;
4030
- class ListInstancesShrinkRequest extends $dara.Model {
4031
- static names() {
4032
- return {
4033
- acceleratorType: 'AcceleratorType',
4034
- accessibility: 'Accessibility',
4035
- createUserId: 'CreateUserId',
4036
- gpuType: 'GpuType',
4037
- imageName: 'ImageName',
4038
- instanceId: 'InstanceId',
4039
- instanceName: 'InstanceName',
4040
- labelsShrink: 'Labels',
4041
- maxCpu: 'MaxCpu',
4042
- maxGpu: 'MaxGpu',
4043
- maxGpuMemory: 'MaxGpuMemory',
4044
- maxMemory: 'MaxMemory',
4045
- minCpu: 'MinCpu',
4046
- minGpu: 'MinGpu',
4047
- minGpuMemory: 'MinGpuMemory',
4048
- minMemory: 'MinMemory',
4049
- order: 'Order',
4050
- oversoldInfo: 'OversoldInfo',
4051
- oversoldType: 'OversoldType',
4052
- pageNumber: 'PageNumber',
4053
- pageSize: 'PageSize',
4054
- paymentType: 'PaymentType',
4055
- resourceId: 'ResourceId',
4056
- sortBy: 'SortBy',
4057
- status: 'Status',
4058
- tagShrink: 'Tag',
4059
- workspaceId: 'WorkspaceId',
4060
- };
4061
- }
4062
- static types() {
4063
- return {
4064
- acceleratorType: 'string',
4065
- accessibility: 'string',
4066
- createUserId: 'string',
4067
- gpuType: 'string',
4068
- imageName: 'string',
4069
- instanceId: 'string',
4070
- instanceName: 'string',
4071
- labelsShrink: 'string',
4072
- maxCpu: 'string',
4073
- maxGpu: 'string',
4074
- maxGpuMemory: 'string',
4075
- maxMemory: 'string',
4076
- minCpu: 'string',
4077
- minGpu: 'string',
4078
- minGpuMemory: 'string',
4079
- minMemory: 'string',
4080
- order: 'string',
4081
- oversoldInfo: 'string',
4082
- oversoldType: 'string',
4083
- pageNumber: 'number',
4084
- pageSize: 'number',
4085
- paymentType: 'string',
4086
- resourceId: 'string',
4087
- sortBy: 'string',
4088
- status: 'string',
4089
- tagShrink: 'string',
4090
- workspaceId: 'string',
4091
- };
4092
- }
4093
- validate() {
4094
- super.validate();
4095
- }
4096
- constructor(map) {
4097
- super(map);
4098
- }
4099
- }
4100
- exports.ListInstancesShrinkRequest = ListInstancesShrinkRequest;
4101
- class ListInstancesResponseBody extends $dara.Model {
4102
- static names() {
4103
- return {
4104
- code: 'Code',
4105
- httpStatusCode: 'HttpStatusCode',
4106
- instances: 'Instances',
4107
- message: 'Message',
4108
- requestId: 'RequestId',
4109
- success: 'Success',
4110
- totalCount: 'TotalCount',
4111
- };
4112
- }
4113
- static types() {
4114
- return {
4115
- code: 'string',
4116
- httpStatusCode: 'number',
4117
- instances: { 'type': 'array', 'itemType': ListInstancesResponseBodyInstances },
4118
- message: 'string',
4119
- requestId: 'string',
4120
- success: 'boolean',
4121
- totalCount: 'number',
4122
- };
4123
- }
4124
- validate() {
4125
- if (Array.isArray(this.instances)) {
4126
- $dara.Model.validateArray(this.instances);
4127
- }
4128
- super.validate();
4129
- }
4130
- constructor(map) {
4131
- super(map);
4132
- }
4133
- }
4134
- exports.ListInstancesResponseBody = ListInstancesResponseBody;
4135
- class ListInstancesResponse extends $dara.Model {
4136
- static names() {
4137
- return {
4138
- headers: 'headers',
4139
- statusCode: 'statusCode',
4140
- body: 'body',
4141
- };
4142
- }
4143
- static types() {
4144
- return {
4145
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4146
- statusCode: 'number',
4147
- body: ListInstancesResponseBody,
4148
- };
4149
- }
4150
- validate() {
4151
- if (this.headers) {
4152
- $dara.Model.validateMap(this.headers);
4153
- }
4154
- if (this.body && typeof this.body.validate === 'function') {
4155
- this.body.validate();
4156
- }
4157
- super.validate();
4158
- }
4159
- constructor(map) {
4160
- super(map);
4161
- }
4162
- }
4163
- exports.ListInstancesResponse = ListInstancesResponse;
4164
- class StartInstanceResponseBody extends $dara.Model {
4165
- static names() {
4166
- return {
4167
- code: 'Code',
4168
- httpStatusCode: 'HttpStatusCode',
4169
- instanceId: 'InstanceId',
4170
- message: 'Message',
4171
- requestId: 'RequestId',
4172
- success: 'Success',
4173
- };
4174
- }
4175
- static types() {
4176
- return {
4177
- code: 'string',
4178
- httpStatusCode: 'number',
4179
- instanceId: 'string',
4180
- message: 'string',
4181
- requestId: 'string',
4182
- success: 'boolean',
4183
- };
4184
- }
4185
- validate() {
4186
- super.validate();
4187
- }
4188
- constructor(map) {
4189
- super(map);
4190
- }
4191
- }
4192
- exports.StartInstanceResponseBody = StartInstanceResponseBody;
4193
- class StartInstanceResponse extends $dara.Model {
4194
- static names() {
4195
- return {
4196
- headers: 'headers',
4197
- statusCode: 'statusCode',
4198
- body: 'body',
4199
- };
4200
- }
4201
- static types() {
4202
- return {
4203
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4204
- statusCode: 'number',
4205
- body: StartInstanceResponseBody,
4206
- };
4207
- }
4208
- validate() {
4209
- if (this.headers) {
4210
- $dara.Model.validateMap(this.headers);
4211
- }
4212
- if (this.body && typeof this.body.validate === 'function') {
4213
- this.body.validate();
4214
- }
4215
- super.validate();
4216
- }
4217
- constructor(map) {
4218
- super(map);
4219
- }
4220
- }
4221
- exports.StartInstanceResponse = StartInstanceResponse;
4222
- class StopInstanceRequest extends $dara.Model {
4223
- static names() {
4224
- return {
4225
- saveImage: 'SaveImage',
4226
- };
4227
- }
4228
- static types() {
4229
- return {
4230
- saveImage: 'boolean',
4231
- };
4232
- }
4233
- validate() {
4234
- super.validate();
4235
- }
4236
- constructor(map) {
4237
- super(map);
4238
- }
4239
- }
4240
- exports.StopInstanceRequest = StopInstanceRequest;
4241
- class StopInstanceResponseBody extends $dara.Model {
4242
- static names() {
4243
- return {
4244
- code: 'Code',
4245
- httpStatusCode: 'HttpStatusCode',
4246
- instanceId: 'InstanceId',
4247
- message: 'Message',
4248
- requestId: 'RequestId',
4249
- success: 'Success',
4250
- };
4251
- }
4252
- static types() {
4253
- return {
4254
- code: 'string',
4255
- httpStatusCode: 'number',
4256
- instanceId: 'string',
4257
- message: 'string',
4258
- requestId: 'string',
4259
- success: 'boolean',
4260
- };
4261
- }
4262
- validate() {
4263
- super.validate();
4264
- }
4265
- constructor(map) {
4266
- super(map);
4267
- }
4268
- }
4269
- exports.StopInstanceResponseBody = StopInstanceResponseBody;
4270
- class StopInstanceResponse extends $dara.Model {
4271
- static names() {
4272
- return {
4273
- headers: 'headers',
4274
- statusCode: 'statusCode',
4275
- body: 'body',
4276
- };
4277
- }
4278
- static types() {
4279
- return {
4280
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4281
- statusCode: 'number',
4282
- body: StopInstanceResponseBody,
4283
- };
4284
- }
4285
- validate() {
4286
- if (this.headers) {
4287
- $dara.Model.validateMap(this.headers);
4288
- }
4289
- if (this.body && typeof this.body.validate === 'function') {
4290
- this.body.validate();
4291
- }
4292
- super.validate();
4293
- }
4294
- constructor(map) {
4295
- super(map);
4296
- }
4297
- }
4298
- exports.StopInstanceResponse = StopInstanceResponse;
4299
- class UpdateInstanceRequest extends $dara.Model {
4300
- static names() {
4301
- return {
4302
- accessibility: 'Accessibility',
4303
- affinity: 'Affinity',
4304
- cloudDisks: 'CloudDisks',
4305
- credentialConfig: 'CredentialConfig',
4306
- datasets: 'Datasets',
4307
- disassociateCredential: 'DisassociateCredential',
4308
- disassociateDatasets: 'DisassociateDatasets',
4309
- disassociateDriver: 'DisassociateDriver',
4310
- disassociateForwardInfos: 'DisassociateForwardInfos',
4311
- disassociateVpc: 'DisassociateVpc',
4312
- driver: 'Driver',
4313
- dynamicMount: 'DynamicMount',
4314
- ecsSpec: 'EcsSpec',
4315
- imageAuth: 'ImageAuth',
4316
- imageId: 'ImageId',
4317
- imageUrl: 'ImageUrl',
4318
- instanceName: 'InstanceName',
4319
- priority: 'Priority',
4320
- requestedResource: 'RequestedResource',
4321
- userId: 'UserId',
4322
- userVpc: 'UserVpc',
4323
- workspaceSource: 'WorkspaceSource',
4324
- };
4325
- }
4326
- static types() {
4327
- return {
4328
- accessibility: 'string',
4329
- affinity: UpdateInstanceRequestAffinity,
4330
- cloudDisks: { 'type': 'array', 'itemType': UpdateInstanceRequestCloudDisks },
4331
- credentialConfig: CredentialConfig,
4332
- datasets: { 'type': 'array', 'itemType': UpdateInstanceRequestDatasets },
4333
- disassociateCredential: 'boolean',
4334
- disassociateDatasets: 'boolean',
4335
- disassociateDriver: 'boolean',
4336
- disassociateForwardInfos: 'boolean',
4337
- disassociateVpc: 'boolean',
4338
- driver: 'string',
4339
- dynamicMount: DynamicMount,
4340
- ecsSpec: 'string',
4341
- imageAuth: 'string',
4342
- imageId: 'string',
4343
- imageUrl: 'string',
4344
- instanceName: 'string',
4345
- priority: 'number',
4346
- requestedResource: UpdateInstanceRequestRequestedResource,
4347
- userId: 'string',
4348
- userVpc: UpdateInstanceRequestUserVpc,
4349
- workspaceSource: 'string',
4350
- };
4351
- }
4352
- validate() {
4353
- if (this.affinity && typeof this.affinity.validate === 'function') {
4354
- this.affinity.validate();
4355
- }
4356
- if (Array.isArray(this.cloudDisks)) {
4357
- $dara.Model.validateArray(this.cloudDisks);
4358
- }
4359
- if (this.credentialConfig && typeof this.credentialConfig.validate === 'function') {
4360
- this.credentialConfig.validate();
4361
- }
4362
- if (Array.isArray(this.datasets)) {
4363
- $dara.Model.validateArray(this.datasets);
4364
- }
4365
- if (this.dynamicMount && typeof this.dynamicMount.validate === 'function') {
4366
- this.dynamicMount.validate();
4367
- }
4368
- if (this.requestedResource && typeof this.requestedResource.validate === 'function') {
4369
- this.requestedResource.validate();
4370
- }
4371
- if (this.userVpc && typeof this.userVpc.validate === 'function') {
4372
- this.userVpc.validate();
4373
- }
4374
- super.validate();
4375
- }
4376
- constructor(map) {
4377
- super(map);
4378
- }
4379
- }
4380
- exports.UpdateInstanceRequest = UpdateInstanceRequest;
4381
- class UpdateInstanceResponseBody extends $dara.Model {
4382
- static names() {
4383
- return {
4384
- code: 'Code',
4385
- httpStatusCode: 'HttpStatusCode',
4386
- instanceId: 'InstanceId',
4387
- message: 'Message',
4388
- requestId: 'RequestId',
4389
- success: 'Success',
4390
- };
4391
- }
4392
- static types() {
4393
- return {
4394
- code: 'string',
4395
- httpStatusCode: 'number',
4396
- instanceId: 'string',
4397
- message: 'string',
4398
- requestId: 'string',
4399
- success: 'boolean',
4400
- };
4401
- }
4402
- validate() {
4403
- super.validate();
4404
- }
4405
- constructor(map) {
4406
- super(map);
4407
- }
4408
- }
4409
- exports.UpdateInstanceResponseBody = UpdateInstanceResponseBody;
4410
- class UpdateInstanceResponse extends $dara.Model {
4411
- static names() {
4412
- return {
4413
- headers: 'headers',
4414
- statusCode: 'statusCode',
4415
- body: 'body',
4416
- };
4417
- }
4418
- static types() {
4419
- return {
4420
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4421
- statusCode: 'number',
4422
- body: UpdateInstanceResponseBody,
4423
- };
4424
- }
4425
- validate() {
4426
- if (this.headers) {
4427
- $dara.Model.validateMap(this.headers);
4428
- }
4429
- if (this.body && typeof this.body.validate === 'function') {
4430
- this.body.validate();
4431
- }
4432
- super.validate();
4433
- }
4434
- constructor(map) {
4435
- super(map);
4436
- }
4437
- }
4438
- exports.UpdateInstanceResponse = UpdateInstanceResponse;
4439
- class UpdateInstanceLabelsRequest extends $dara.Model {
4440
- static names() {
4441
- return {
4442
- labels: 'Labels',
4443
- };
4444
- }
4445
- static types() {
4446
- return {
4447
- labels: { 'type': 'array', 'itemType': UpdateInstanceLabelsRequestLabels },
4448
- };
4449
- }
4450
- validate() {
4451
- if (Array.isArray(this.labels)) {
4452
- $dara.Model.validateArray(this.labels);
4453
- }
4454
- super.validate();
4455
- }
4456
- constructor(map) {
4457
- super(map);
4458
- }
4459
- }
4460
- exports.UpdateInstanceLabelsRequest = UpdateInstanceLabelsRequest;
4461
- class UpdateInstanceLabelsResponseBody extends $dara.Model {
4462
- static names() {
4463
- return {
4464
- requestId: 'RequestId',
4465
- };
4466
- }
4467
- static types() {
4468
- return {
4469
- requestId: 'string',
4470
- };
4471
- }
4472
- validate() {
4473
- super.validate();
4474
- }
4475
- constructor(map) {
4476
- super(map);
4477
- }
4478
- }
4479
- exports.UpdateInstanceLabelsResponseBody = UpdateInstanceLabelsResponseBody;
4480
- class UpdateInstanceLabelsResponse extends $dara.Model {
4481
- static names() {
4482
- return {
4483
- headers: 'headers',
4484
- statusCode: 'statusCode',
4485
- body: 'body',
4486
- };
4487
- }
4488
- static types() {
4489
- return {
4490
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4491
- statusCode: 'number',
4492
- body: UpdateInstanceLabelsResponseBody,
4493
- };
4494
- }
4495
- validate() {
4496
- if (this.headers) {
4497
- $dara.Model.validateMap(this.headers);
4498
- }
4499
- if (this.body && typeof this.body.validate === 'function') {
4500
- this.body.validate();
4501
- }
4502
- super.validate();
4503
- }
4504
- constructor(map) {
4505
- super(map);
4506
- }
4507
- }
4508
- exports.UpdateInstanceLabelsResponse = UpdateInstanceLabelsResponse;
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ var __importDefault = (this && this.__importDefault) || function (mod) {
39
+ return (mod && mod.__esModule) ? mod : { "default": mod };
40
+ };
41
+ Object.defineProperty(exports, "__esModule", { value: true });
42
+ // This file is auto-generated, don't edit it
43
+ const $dara = __importStar(require("@darabonba/typescript"));
44
+ const openapi_core_1 = __importDefault(require("@alicloud/openapi-core"));
45
+ const openapi_core_2 = require("@alicloud/openapi-core");
46
+ const $_model = __importStar(require("./models/model"));
47
+ __exportStar(require("./models/model"), exports);
4509
48
  class Client extends openapi_core_1.default {
4510
49
  constructor(config) {
4511
50
  super(config);
@@ -4557,7 +96,7 @@ class Client extends openapi_core_1.default {
4557
96
  reqBodyType: "json",
4558
97
  bodyType: "json",
4559
98
  });
4560
- return $dara.cast(await this.callApi(params, req, runtime), new CreateIdleInstanceCullerResponse({}));
99
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateIdleInstanceCullerResponse({}));
4561
100
  }
4562
101
  /**
4563
102
  * Creates an automatic stop policy for a specific Data Science Workshop (DSW) instance. When the conditions are met, the instance is automatically stopped. You can create only one automatic stop policy for an idle DSW instance. If the specific instance has an automatic stop policy, call DeleteIdleInstanceCuller to delete it first.
@@ -4623,6 +162,9 @@ class Client extends openapi_core_1.default {
4623
162
  if (!$dara.isNull(request.labels)) {
4624
163
  body["Labels"] = request.labels;
4625
164
  }
165
+ if (!$dara.isNull(request.oversoldType)) {
166
+ body["OversoldType"] = request.oversoldType;
167
+ }
4626
168
  if (!$dara.isNull(request.priority)) {
4627
169
  body["Priority"] = request.priority;
4628
170
  }
@@ -4662,7 +204,7 @@ class Client extends openapi_core_1.default {
4662
204
  reqBodyType: "json",
4663
205
  bodyType: "json",
4664
206
  });
4665
- return $dara.cast(await this.callApi(params, req, runtime), new CreateInstanceResponse({}));
207
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateInstanceResponse({}));
4666
208
  }
4667
209
  /**
4668
210
  * Creates a Data Science Workshop (DSW) instance.
@@ -4707,7 +249,7 @@ class Client extends openapi_core_1.default {
4707
249
  reqBodyType: "json",
4708
250
  bodyType: "json",
4709
251
  });
4710
- return $dara.cast(await this.callApi(params, req, runtime), new CreateInstanceShutdownTimerResponse({}));
252
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateInstanceShutdownTimerResponse({}));
4711
253
  }
4712
254
  /**
4713
255
  * Creates a scheduled stop task for an instance.
@@ -4764,7 +306,7 @@ class Client extends openapi_core_1.default {
4764
306
  reqBodyType: "json",
4765
307
  bodyType: "json",
4766
308
  });
4767
- return $dara.cast(await this.callApi(params, req, runtime), new CreateInstanceSnapshotResponse({}));
309
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateInstanceSnapshotResponse({}));
4768
310
  }
4769
311
  /**
4770
312
  * 创建实例快照
@@ -4799,7 +341,7 @@ class Client extends openapi_core_1.default {
4799
341
  reqBodyType: "json",
4800
342
  bodyType: "json",
4801
343
  });
4802
- return $dara.cast(await this.callApi(params, req, runtime), new DeleteIdleInstanceCullerResponse({}));
344
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteIdleInstanceCullerResponse({}));
4803
345
  }
4804
346
  /**
4805
347
  * Deletes the automatic stop policy of an instance.
@@ -4832,7 +374,7 @@ class Client extends openapi_core_1.default {
4832
374
  reqBodyType: "json",
4833
375
  bodyType: "json",
4834
376
  });
4835
- return $dara.cast(await this.callApi(params, req, runtime), new DeleteInstanceResponse({}));
377
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteInstanceResponse({}));
4836
378
  }
4837
379
  /**
4838
380
  * Deletes a specific instance.
@@ -4872,7 +414,7 @@ class Client extends openapi_core_1.default {
4872
414
  reqBodyType: "json",
4873
415
  bodyType: "json",
4874
416
  });
4875
- return $dara.cast(await this.callApi(params, req, runtime), new DeleteInstanceLabelsResponse({}));
417
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteInstanceLabelsResponse({}));
4876
418
  }
4877
419
  /**
4878
420
  * Delete tags from a Data Science Workshop (DSW) instance.
@@ -4907,7 +449,7 @@ class Client extends openapi_core_1.default {
4907
449
  reqBodyType: "json",
4908
450
  bodyType: "json",
4909
451
  });
4910
- return $dara.cast(await this.callApi(params, req, runtime), new DeleteInstanceShutdownTimerResponse({}));
452
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteInstanceShutdownTimerResponse({}));
4911
453
  }
4912
454
  /**
4913
455
  * Deletes a scheduled stop task of an instance.
@@ -4940,7 +482,7 @@ class Client extends openapi_core_1.default {
4940
482
  reqBodyType: "json",
4941
483
  bodyType: "json",
4942
484
  });
4943
- return $dara.cast(await this.callApi(params, req, runtime), new DeleteInstanceSnapshotResponse({}));
485
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteInstanceSnapshotResponse({}));
4944
486
  }
4945
487
  /**
4946
488
  * 获取实例快照详情
@@ -4973,7 +515,7 @@ class Client extends openapi_core_1.default {
4973
515
  reqBodyType: "json",
4974
516
  bodyType: "json",
4975
517
  });
4976
- return $dara.cast(await this.callApi(params, req, runtime), new GetIdleInstanceCullerResponse({}));
518
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetIdleInstanceCullerResponse({}));
4977
519
  }
4978
520
  /**
4979
521
  * Queries the information about an auto stop policy for a specific idle instance.
@@ -5013,7 +555,7 @@ class Client extends openapi_core_1.default {
5013
555
  reqBodyType: "json",
5014
556
  bodyType: "json",
5015
557
  });
5016
- return $dara.cast(await this.callApi(params, req, runtime), new GetInstanceResponse({}));
558
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetInstanceResponse({}));
5017
559
  }
5018
560
  /**
5019
561
  * Queries the details of a DSW instance.
@@ -5064,7 +606,7 @@ class Client extends openapi_core_1.default {
5064
606
  reqBodyType: "json",
5065
607
  bodyType: "json",
5066
608
  });
5067
- return $dara.cast(await this.callApi(params, req, runtime), new GetInstanceEventsResponse({}));
609
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetInstanceEventsResponse({}));
5068
610
  }
5069
611
  /**
5070
612
  * Queries a list of system events for a Data Science Workshop (DSW) instance.
@@ -5115,7 +657,7 @@ class Client extends openapi_core_1.default {
5115
657
  reqBodyType: "json",
5116
658
  bodyType: "json",
5117
659
  });
5118
- return $dara.cast(await this.callApi(params, req, runtime), new GetInstanceMetricsResponse({}));
660
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetInstanceMetricsResponse({}));
5119
661
  }
5120
662
  /**
5121
663
  * Queries the resource metrics of an instance.
@@ -5150,7 +692,7 @@ class Client extends openapi_core_1.default {
5150
692
  reqBodyType: "json",
5151
693
  bodyType: "json",
5152
694
  });
5153
- return $dara.cast(await this.callApi(params, req, runtime), new GetInstanceShutdownTimerResponse({}));
695
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetInstanceShutdownTimerResponse({}));
5154
696
  }
5155
697
  /**
5156
698
  * 获取定时关机任务
@@ -5183,7 +725,7 @@ class Client extends openapi_core_1.default {
5183
725
  reqBodyType: "json",
5184
726
  bodyType: "json",
5185
727
  });
5186
- return $dara.cast(await this.callApi(params, req, runtime), new GetInstanceSnapshotResponse({}));
728
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetInstanceSnapshotResponse({}));
5187
729
  }
5188
730
  /**
5189
731
  * 获取实例快照详情
@@ -5241,7 +783,7 @@ class Client extends openapi_core_1.default {
5241
783
  reqBodyType: "json",
5242
784
  bodyType: "json",
5243
785
  });
5244
- return $dara.cast(await this.callApi(params, req, runtime), new GetLifecycleResponse({}));
786
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetLifecycleResponse({}));
5245
787
  }
5246
788
  /**
5247
789
  * Obtains the lifecycle of an instance
@@ -5307,7 +849,7 @@ class Client extends openapi_core_1.default {
5307
849
  reqBodyType: "json",
5308
850
  bodyType: "json",
5309
851
  });
5310
- return $dara.cast(await this.callApi(params, req, runtime), new GetMetricsResponse({}));
852
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetMetricsResponse({}));
5311
853
  }
5312
854
  /**
5313
855
  * 获取metrics数据
@@ -5356,7 +898,7 @@ class Client extends openapi_core_1.default {
5356
898
  reqBodyType: "json",
5357
899
  bodyType: "json",
5358
900
  });
5359
- return $dara.cast(await this.callApi(params, req, runtime), new GetResourceGroupStatisticsResponse({}));
901
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetResourceGroupStatisticsResponse({}));
5360
902
  }
5361
903
  /**
5362
904
  * @param request - GetResourceGroupStatisticsRequest
@@ -5399,7 +941,7 @@ class Client extends openapi_core_1.default {
5399
941
  reqBodyType: "json",
5400
942
  bodyType: "json",
5401
943
  });
5402
- return $dara.cast(await this.callApi(params, req, runtime), new GetTokenResponse({}));
944
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetTokenResponse({}));
5403
945
  }
5404
946
  /**
5405
947
  * Obtains the temporary authentication information of a DSW instance.
@@ -5434,7 +976,7 @@ class Client extends openapi_core_1.default {
5434
976
  reqBodyType: "json",
5435
977
  bodyType: "json",
5436
978
  });
5437
- return $dara.cast(await this.callApi(params, req, runtime), new GetUserConfigResponse({}));
979
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetUserConfigResponse({}));
5438
980
  }
5439
981
  /**
5440
982
  * 获取用户配置
@@ -5446,7 +988,7 @@ class Client extends openapi_core_1.default {
5446
988
  return await this.getUserConfigWithOptions(headers, runtime);
5447
989
  }
5448
990
  /**
5449
- * 获取ECS规格列表
991
+ * Queries a list of specifications of ECS instances.
5450
992
  *
5451
993
  * @param request - ListEcsSpecsRequest
5452
994
  * @param headers - map
@@ -5468,6 +1010,9 @@ class Client extends openapi_core_1.default {
5468
1010
  if (!$dara.isNull(request.pageSize)) {
5469
1011
  query["PageSize"] = request.pageSize;
5470
1012
  }
1013
+ if (!$dara.isNull(request.resourceType)) {
1014
+ query["ResourceType"] = request.resourceType;
1015
+ }
5471
1016
  if (!$dara.isNull(request.sortBy)) {
5472
1017
  query["SortBy"] = request.sortBy;
5473
1018
  }
@@ -5486,10 +1031,10 @@ class Client extends openapi_core_1.default {
5486
1031
  reqBodyType: "json",
5487
1032
  bodyType: "json",
5488
1033
  });
5489
- return $dara.cast(await this.callApi(params, req, runtime), new ListEcsSpecsResponse({}));
1034
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListEcsSpecsResponse({}));
5490
1035
  }
5491
1036
  /**
5492
- * 获取ECS规格列表
1037
+ * Queries a list of specifications of ECS instances.
5493
1038
  *
5494
1039
  * @param request - ListEcsSpecsRequest
5495
1040
  * @returns ListEcsSpecsResponse
@@ -5537,7 +1082,7 @@ class Client extends openapi_core_1.default {
5537
1082
  reqBodyType: "json",
5538
1083
  bodyType: "json",
5539
1084
  });
5540
- return $dara.cast(await this.callApi(params, req, runtime), new ListInstanceSnapshotResponse({}));
1085
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListInstanceSnapshotResponse({}));
5541
1086
  }
5542
1087
  /**
5543
1088
  * 查询实例快照列表
@@ -5579,7 +1124,7 @@ class Client extends openapi_core_1.default {
5579
1124
  reqBodyType: "json",
5580
1125
  bodyType: "json",
5581
1126
  });
5582
- return $dara.cast(await this.callApi(params, req, runtime), new ListInstanceStatisticsResponse({}));
1127
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListInstanceStatisticsResponse({}));
5583
1128
  }
5584
1129
  /**
5585
1130
  * 获取实例统计信息
@@ -5602,7 +1147,7 @@ class Client extends openapi_core_1.default {
5602
1147
  */
5603
1148
  async listInstancesWithOptions(tmpReq, headers, runtime) {
5604
1149
  tmpReq.validate();
5605
- let request = new ListInstancesShrinkRequest({});
1150
+ let request = new $_model.ListInstancesShrinkRequest({});
5606
1151
  openapi_core_2.OpenApiUtil.convert(tmpReq, request);
5607
1152
  if (!$dara.isNull(tmpReq.labels)) {
5608
1153
  request.labelsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.labels, "Labels", "json");
@@ -5707,7 +1252,7 @@ class Client extends openapi_core_1.default {
5707
1252
  reqBodyType: "json",
5708
1253
  bodyType: "json",
5709
1254
  });
5710
- return $dara.cast(await this.callApi(params, req, runtime), new ListInstancesResponse({}));
1255
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListInstancesResponse({}));
5711
1256
  }
5712
1257
  /**
5713
1258
  * Queries a list of Data Science Workshop (DSW) instances.
@@ -5742,7 +1287,7 @@ class Client extends openapi_core_1.default {
5742
1287
  reqBodyType: "json",
5743
1288
  bodyType: "json",
5744
1289
  });
5745
- return $dara.cast(await this.callApi(params, req, runtime), new StartInstanceResponse({}));
1290
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.StartInstanceResponse({}));
5746
1291
  }
5747
1292
  /**
5748
1293
  * 启动实例
@@ -5782,7 +1327,7 @@ class Client extends openapi_core_1.default {
5782
1327
  reqBodyType: "json",
5783
1328
  bodyType: "json",
5784
1329
  });
5785
- return $dara.cast(await this.callApi(params, req, runtime), new StopInstanceResponse({}));
1330
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.StopInstanceResponse({}));
5786
1331
  }
5787
1332
  /**
5788
1333
  * 停止实例
@@ -5857,6 +1402,9 @@ class Client extends openapi_core_1.default {
5857
1402
  if (!$dara.isNull(request.instanceName)) {
5858
1403
  body["InstanceName"] = request.instanceName;
5859
1404
  }
1405
+ if (!$dara.isNull(request.oversoldType)) {
1406
+ body["OversoldType"] = request.oversoldType;
1407
+ }
5860
1408
  if (!$dara.isNull(request.priority)) {
5861
1409
  body["Priority"] = request.priority;
5862
1410
  }
@@ -5887,7 +1435,7 @@ class Client extends openapi_core_1.default {
5887
1435
  reqBodyType: "json",
5888
1436
  bodyType: "json",
5889
1437
  });
5890
- return $dara.cast(await this.callApi(params, req, runtime), new UpdateInstanceResponse({}));
1438
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateInstanceResponse({}));
5891
1439
  }
5892
1440
  /**
5893
1441
  * Updates the properties of a DSW instance.
@@ -5929,7 +1477,7 @@ class Client extends openapi_core_1.default {
5929
1477
  reqBodyType: "json",
5930
1478
  bodyType: "json",
5931
1479
  });
5932
- return $dara.cast(await this.callApi(params, req, runtime), new UpdateInstanceLabelsResponse({}));
1480
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateInstanceLabelsResponse({}));
5933
1481
  }
5934
1482
  /**
5935
1483
  * Updates the tags of a Data Science Workshop (DSW) instance. If the tags do not exist, the system adds tags.