@huaweicloud/huaweicloud-sdk-cdm 3.1.60

Sign up to get free protection for your applications and to get access to all the features.
Files changed (365) hide show
  1. package/huaweicloud-sdk-cdm.d.ts +3 -0
  2. package/huaweicloud-sdk-cdm.d.ts.map +1 -0
  3. package/huaweicloud-sdk-cdm.js +32 -0
  4. package/huaweicloud-sdk-cdm.js.map +1 -0
  5. package/package.json +23 -0
  6. package/v1/CdmClient.d.ts +576 -0
  7. package/v1/CdmClient.d.ts.map +1 -0
  8. package/v1/CdmClient.js +1196 -0
  9. package/v1/CdmClient.js.map +1 -0
  10. package/v1/CdmRegion.d.ts +23 -0
  11. package/v1/CdmRegion.d.ts.map +1 -0
  12. package/v1/CdmRegion.js +54 -0
  13. package/v1/CdmRegion.js.map +1 -0
  14. package/v1/model/ActionProgress.d.ts +24 -0
  15. package/v1/model/ActionProgress.d.ts.map +1 -0
  16. package/v1/model/ActionProgress.js +59 -0
  17. package/v1/model/ActionProgress.js.map +1 -0
  18. package/v1/model/CdmCreateAndUpdateLinkReq.d.ts +7 -0
  19. package/v1/model/CdmCreateAndUpdateLinkReq.d.ts.map +1 -0
  20. package/v1/model/CdmCreateAndUpdateLinkReq.js +14 -0
  21. package/v1/model/CdmCreateAndUpdateLinkReq.js.map +1 -0
  22. package/v1/model/CdmCreateClusterReq.d.ts +17 -0
  23. package/v1/model/CdmCreateClusterReq.d.ts.map +1 -0
  24. package/v1/model/CdmCreateClusterReq.js +38 -0
  25. package/v1/model/CdmCreateClusterReq.js.map +1 -0
  26. package/v1/model/CdmCreateClusterReqCluster.d.ts +32 -0
  27. package/v1/model/CdmCreateClusterReqCluster.d.ts.map +1 -0
  28. package/v1/model/CdmCreateClusterReqCluster.js +61 -0
  29. package/v1/model/CdmCreateClusterReqCluster.js.map +1 -0
  30. package/v1/model/CdmCreateJobJsonReq.d.ts +7 -0
  31. package/v1/model/CdmCreateJobJsonReq.d.ts.map +1 -0
  32. package/v1/model/CdmCreateJobJsonReq.js +14 -0
  33. package/v1/model/CdmCreateJobJsonReq.js.map +1 -0
  34. package/v1/model/CdmDeleteClusterReq.d.ts +8 -0
  35. package/v1/model/CdmDeleteClusterReq.d.ts.map +1 -0
  36. package/v1/model/CdmDeleteClusterReq.js +20 -0
  37. package/v1/model/CdmDeleteClusterReq.js.map +1 -0
  38. package/v1/model/CdmQueryClusterDetailsRepsonseMaintainWindow.d.ts +10 -0
  39. package/v1/model/CdmQueryClusterDetailsRepsonseMaintainWindow.d.ts.map +1 -0
  40. package/v1/model/CdmQueryClusterDetailsRepsonseMaintainWindow.js +21 -0
  41. package/v1/model/CdmQueryClusterDetailsRepsonseMaintainWindow.js.map +1 -0
  42. package/v1/model/CdmQueryClusterDetailsRepsonsePublicEndpointStatus.d.ts +8 -0
  43. package/v1/model/CdmQueryClusterDetailsRepsonsePublicEndpointStatus.d.ts.map +1 -0
  44. package/v1/model/CdmQueryClusterDetailsRepsonsePublicEndpointStatus.js +17 -0
  45. package/v1/model/CdmQueryClusterDetailsRepsonsePublicEndpointStatus.js.map +1 -0
  46. package/v1/model/CdmRandomCreateAndStartJobJsonReq.d.ts +9 -0
  47. package/v1/model/CdmRandomCreateAndStartJobJsonReq.d.ts.map +1 -0
  48. package/v1/model/CdmRandomCreateAndStartJobJsonReq.js +19 -0
  49. package/v1/model/CdmRandomCreateAndStartJobJsonReq.js.map +1 -0
  50. package/v1/model/CdmRestartClusterReq.d.ts +7 -0
  51. package/v1/model/CdmRestartClusterReq.d.ts.map +1 -0
  52. package/v1/model/CdmRestartClusterReq.js +14 -0
  53. package/v1/model/CdmRestartClusterReq.js.map +1 -0
  54. package/v1/model/CdmRestartClusterReqRestart.d.ts +16 -0
  55. package/v1/model/CdmRestartClusterReqRestart.d.ts.map +1 -0
  56. package/v1/model/CdmRestartClusterReqRestart.js +34 -0
  57. package/v1/model/CdmRestartClusterReqRestart.js.map +1 -0
  58. package/v1/model/CdmStartClusterReq.d.ts +6 -0
  59. package/v1/model/CdmStartClusterReq.d.ts.map +1 -0
  60. package/v1/model/CdmStartClusterReq.js +14 -0
  61. package/v1/model/CdmStartClusterReq.js.map +1 -0
  62. package/v1/model/CdmStopClusterReq.d.ts +7 -0
  63. package/v1/model/CdmStopClusterReq.d.ts.map +1 -0
  64. package/v1/model/CdmStopClusterReq.js +14 -0
  65. package/v1/model/CdmStopClusterReq.js.map +1 -0
  66. package/v1/model/CdmStopClusterReqStop.d.ts +16 -0
  67. package/v1/model/CdmStopClusterReqStop.d.ts.map +1 -0
  68. package/v1/model/CdmStopClusterReqStop.js +27 -0
  69. package/v1/model/CdmStopClusterReqStop.js.map +1 -0
  70. package/v1/model/CdmUpdateJobJsonReq.d.ts +7 -0
  71. package/v1/model/CdmUpdateJobJsonReq.d.ts.map +1 -0
  72. package/v1/model/CdmUpdateJobJsonReq.js +14 -0
  73. package/v1/model/CdmUpdateJobJsonReq.js.map +1 -0
  74. package/v1/model/ClusterDetailInstance.d.ts +62 -0
  75. package/v1/model/ClusterDetailInstance.d.ts.map +1 -0
  76. package/v1/model/ClusterDetailInstance.js +134 -0
  77. package/v1/model/ClusterDetailInstance.js.map +1 -0
  78. package/v1/model/ClusterDetailInstanceFlavor.d.ts +9 -0
  79. package/v1/model/ClusterDetailInstanceFlavor.d.ts.map +1 -0
  80. package/v1/model/ClusterDetailInstanceFlavor.js +17 -0
  81. package/v1/model/ClusterDetailInstanceFlavor.js.map +1 -0
  82. package/v1/model/ClusterDetailInstanceVolume.d.ts +8 -0
  83. package/v1/model/ClusterDetailInstanceVolume.d.ts.map +1 -0
  84. package/v1/model/ClusterDetailInstanceVolume.js +17 -0
  85. package/v1/model/ClusterDetailInstanceVolume.js.map +1 -0
  86. package/v1/model/ClusterInstance.d.ts +14 -0
  87. package/v1/model/ClusterInstance.d.ts.map +1 -0
  88. package/v1/model/ClusterInstance.js +31 -0
  89. package/v1/model/ClusterInstance.js.map +1 -0
  90. package/v1/model/ClusterLinks.d.ts +8 -0
  91. package/v1/model/ClusterLinks.d.ts.map +1 -0
  92. package/v1/model/ClusterLinks.js +17 -0
  93. package/v1/model/ClusterLinks.js.map +1 -0
  94. package/v1/model/ClusterTask.d.ts +10 -0
  95. package/v1/model/ClusterTask.d.ts.map +1 -0
  96. package/v1/model/ClusterTask.js +21 -0
  97. package/v1/model/ClusterTask.js.map +1 -0
  98. package/v1/model/Clusters.d.ts +58 -0
  99. package/v1/model/Clusters.d.ts.map +1 -0
  100. package/v1/model/Clusters.js +111 -0
  101. package/v1/model/Clusters.js.map +1 -0
  102. package/v1/model/ConfigValues.d.ts +12 -0
  103. package/v1/model/ConfigValues.d.ts.map +1 -0
  104. package/v1/model/ConfigValues.js +24 -0
  105. package/v1/model/ConfigValues.js.map +1 -0
  106. package/v1/model/Configs.d.ts +13 -0
  107. package/v1/model/Configs.d.ts.map +1 -0
  108. package/v1/model/Configs.js +27 -0
  109. package/v1/model/Configs.js.map +1 -0
  110. package/v1/model/Counter.d.ts +44 -0
  111. package/v1/model/Counter.d.ts.map +1 -0
  112. package/v1/model/Counter.js +109 -0
  113. package/v1/model/Counter.js.map +1 -0
  114. package/v1/model/Counters.d.ts +9 -0
  115. package/v1/model/Counters.d.ts.map +1 -0
  116. package/v1/model/Counters.js +20 -0
  117. package/v1/model/Counters.js.map +1 -0
  118. package/v1/model/CreateAndStartRandomClusterJobRequest.d.ts +11 -0
  119. package/v1/model/CreateAndStartRandomClusterJobRequest.d.ts.map +1 -0
  120. package/v1/model/CreateAndStartRandomClusterJobRequest.js +24 -0
  121. package/v1/model/CreateAndStartRandomClusterJobRequest.js.map +1 -0
  122. package/v1/model/CreateAndStartRandomClusterJobResponse.d.ts +8 -0
  123. package/v1/model/CreateAndStartRandomClusterJobResponse.d.ts.map +1 -0
  124. package/v1/model/CreateAndStartRandomClusterJobResponse.js +15 -0
  125. package/v1/model/CreateAndStartRandomClusterJobResponse.js.map +1 -0
  126. package/v1/model/CreateClusterRequest.d.ts +11 -0
  127. package/v1/model/CreateClusterRequest.d.ts.map +1 -0
  128. package/v1/model/CreateClusterRequest.js +24 -0
  129. package/v1/model/CreateClusterRequest.js.map +1 -0
  130. package/v1/model/CreateClusterResponse.d.ts +18 -0
  131. package/v1/model/CreateClusterResponse.d.ts.map +1 -0
  132. package/v1/model/CreateClusterResponse.js +31 -0
  133. package/v1/model/CreateClusterResponse.js.map +1 -0
  134. package/v1/model/CreateJobRequest.d.ts +11 -0
  135. package/v1/model/CreateJobRequest.d.ts.map +1 -0
  136. package/v1/model/CreateJobRequest.js +24 -0
  137. package/v1/model/CreateJobRequest.js.map +1 -0
  138. package/v1/model/CreateJobResponse.d.ts +12 -0
  139. package/v1/model/CreateJobResponse.d.ts.map +1 -0
  140. package/v1/model/CreateJobResponse.js +25 -0
  141. package/v1/model/CreateJobResponse.js.map +1 -0
  142. package/v1/model/CreateLinkRequest.d.ts +13 -0
  143. package/v1/model/CreateLinkRequest.d.ts.map +1 -0
  144. package/v1/model/CreateLinkRequest.js +28 -0
  145. package/v1/model/CreateLinkRequest.js.map +1 -0
  146. package/v1/model/CreateLinkResponse.d.ts +12 -0
  147. package/v1/model/CreateLinkResponse.d.ts.map +1 -0
  148. package/v1/model/CreateLinkResponse.js +25 -0
  149. package/v1/model/CreateLinkResponse.js.map +1 -0
  150. package/v1/model/CustomerConfig.d.ts +24 -0
  151. package/v1/model/CustomerConfig.d.ts.map +1 -0
  152. package/v1/model/CustomerConfig.js +49 -0
  153. package/v1/model/CustomerConfig.js.map +1 -0
  154. package/v1/model/Datastore.d.ts +8 -0
  155. package/v1/model/Datastore.d.ts.map +1 -0
  156. package/v1/model/Datastore.js +17 -0
  157. package/v1/model/Datastore.js.map +1 -0
  158. package/v1/model/DeleteClusterRequest.d.ts +11 -0
  159. package/v1/model/DeleteClusterRequest.d.ts.map +1 -0
  160. package/v1/model/DeleteClusterRequest.js +24 -0
  161. package/v1/model/DeleteClusterRequest.js.map +1 -0
  162. package/v1/model/DeleteClusterResponse.d.ts +7 -0
  163. package/v1/model/DeleteClusterResponse.d.ts.map +1 -0
  164. package/v1/model/DeleteClusterResponse.js +15 -0
  165. package/v1/model/DeleteClusterResponse.js.map +1 -0
  166. package/v1/model/DeleteJobRequest.d.ts +12 -0
  167. package/v1/model/DeleteJobRequest.d.ts.map +1 -0
  168. package/v1/model/DeleteJobRequest.js +31 -0
  169. package/v1/model/DeleteJobRequest.js.map +1 -0
  170. package/v1/model/DeleteJobResponse.d.ts +5 -0
  171. package/v1/model/DeleteJobResponse.d.ts.map +1 -0
  172. package/v1/model/DeleteJobResponse.js +11 -0
  173. package/v1/model/DeleteJobResponse.js.map +1 -0
  174. package/v1/model/DeleteLinkRequest.d.ts +12 -0
  175. package/v1/model/DeleteLinkRequest.d.ts.map +1 -0
  176. package/v1/model/DeleteLinkRequest.js +31 -0
  177. package/v1/model/DeleteLinkRequest.js.map +1 -0
  178. package/v1/model/DeleteLinkResponse.d.ts +5 -0
  179. package/v1/model/DeleteLinkResponse.d.ts.map +1 -0
  180. package/v1/model/DeleteLinkResponse.js +11 -0
  181. package/v1/model/DeleteLinkResponse.js.map +1 -0
  182. package/v1/model/ExtendedConfigs.d.ts +8 -0
  183. package/v1/model/ExtendedConfigs.d.ts.map +1 -0
  184. package/v1/model/ExtendedConfigs.js +17 -0
  185. package/v1/model/ExtendedConfigs.js.map +1 -0
  186. package/v1/model/ExtendedProperties.d.ts +10 -0
  187. package/v1/model/ExtendedProperties.d.ts.map +1 -0
  188. package/v1/model/ExtendedProperties.js +21 -0
  189. package/v1/model/ExtendedProperties.js.map +1 -0
  190. package/v1/model/FailedReasons.d.ts +9 -0
  191. package/v1/model/FailedReasons.d.ts.map +1 -0
  192. package/v1/model/FailedReasons.js +19 -0
  193. package/v1/model/FailedReasons.js.map +1 -0
  194. package/v1/model/FailedReasonsCREATEFAILED.d.ts +8 -0
  195. package/v1/model/FailedReasonsCREATEFAILED.d.ts.map +1 -0
  196. package/v1/model/FailedReasonsCREATEFAILED.js +17 -0
  197. package/v1/model/FailedReasonsCREATEFAILED.js.map +1 -0
  198. package/v1/model/Input.d.ts +10 -0
  199. package/v1/model/Input.d.ts.map +1 -0
  200. package/v1/model/Input.js +23 -0
  201. package/v1/model/Input.js.map +1 -0
  202. package/v1/model/Instance.d.ts +15 -0
  203. package/v1/model/Instance.d.ts.map +1 -0
  204. package/v1/model/Instance.js +35 -0
  205. package/v1/model/Instance.js.map +1 -0
  206. package/v1/model/Job.d.ts +142 -0
  207. package/v1/model/Job.d.ts.map +1 -0
  208. package/v1/model/Job.js +338 -0
  209. package/v1/model/Job.js.map +1 -0
  210. package/v1/model/JobValidationResult.d.ts +16 -0
  211. package/v1/model/JobValidationResult.d.ts.map +1 -0
  212. package/v1/model/JobValidationResult.js +26 -0
  213. package/v1/model/JobValidationResult.js.map +1 -0
  214. package/v1/model/Links.d.ts +35 -0
  215. package/v1/model/Links.d.ts.map +1 -0
  216. package/v1/model/Links.js +84 -0
  217. package/v1/model/Links.js.map +1 -0
  218. package/v1/model/LinksLinkconfigvalues.d.ts +14 -0
  219. package/v1/model/LinksLinkconfigvalues.d.ts.map +1 -0
  220. package/v1/model/LinksLinkconfigvalues.js +28 -0
  221. package/v1/model/LinksLinkconfigvalues.js.map +1 -0
  222. package/v1/model/LinksLinkconfigvaluesExtendedconfigs.d.ts +8 -0
  223. package/v1/model/LinksLinkconfigvaluesExtendedconfigs.d.ts.map +1 -0
  224. package/v1/model/LinksLinkconfigvaluesExtendedconfigs.js +17 -0
  225. package/v1/model/LinksLinkconfigvaluesExtendedconfigs.js.map +1 -0
  226. package/v1/model/ListClustersRequest.d.ts +4 -0
  227. package/v1/model/ListClustersRequest.d.ts.map +1 -0
  228. package/v1/model/ListClustersRequest.js +9 -0
  229. package/v1/model/ListClustersRequest.js.map +1 -0
  230. package/v1/model/ListClustersResponse.d.ts +8 -0
  231. package/v1/model/ListClustersResponse.d.ts.map +1 -0
  232. package/v1/model/ListClustersResponse.js +15 -0
  233. package/v1/model/ListClustersResponse.js.map +1 -0
  234. package/v1/model/Nics.d.ts +10 -0
  235. package/v1/model/Nics.d.ts.map +1 -0
  236. package/v1/model/Nics.js +25 -0
  237. package/v1/model/Nics.js.map +1 -0
  238. package/v1/model/Resource.d.ts +12 -0
  239. package/v1/model/Resource.d.ts.map +1 -0
  240. package/v1/model/Resource.js +29 -0
  241. package/v1/model/Resource.js.map +1 -0
  242. package/v1/model/RestartClusterRequest.d.ts +11 -0
  243. package/v1/model/RestartClusterRequest.d.ts.map +1 -0
  244. package/v1/model/RestartClusterRequest.js +24 -0
  245. package/v1/model/RestartClusterRequest.js.map +1 -0
  246. package/v1/model/RestartClusterResponse.d.ts +7 -0
  247. package/v1/model/RestartClusterResponse.d.ts.map +1 -0
  248. package/v1/model/RestartClusterResponse.js +15 -0
  249. package/v1/model/RestartClusterResponse.js.map +1 -0
  250. package/v1/model/ShowClusterDetailRequest.d.ts +8 -0
  251. package/v1/model/ShowClusterDetailRequest.d.ts.map +1 -0
  252. package/v1/model/ShowClusterDetailRequest.js +20 -0
  253. package/v1/model/ShowClusterDetailRequest.js.map +1 -0
  254. package/v1/model/ShowClusterDetailResponse.d.ts +92 -0
  255. package/v1/model/ShowClusterDetailResponse.d.ts.map +1 -0
  256. package/v1/model/ShowClusterDetailResponse.js +175 -0
  257. package/v1/model/ShowClusterDetailResponse.js.map +1 -0
  258. package/v1/model/ShowJobStatusRequest.d.ts +12 -0
  259. package/v1/model/ShowJobStatusRequest.d.ts.map +1 -0
  260. package/v1/model/ShowJobStatusRequest.js +31 -0
  261. package/v1/model/ShowJobStatusRequest.js.map +1 -0
  262. package/v1/model/ShowJobStatusResponse.d.ts +8 -0
  263. package/v1/model/ShowJobStatusResponse.d.ts.map +1 -0
  264. package/v1/model/ShowJobStatusResponse.js +15 -0
  265. package/v1/model/ShowJobStatusResponse.js.map +1 -0
  266. package/v1/model/ShowJobsRequest.d.ts +33 -0
  267. package/v1/model/ShowJobsRequest.d.ts.map +1 -0
  268. package/v1/model/ShowJobsRequest.js +69 -0
  269. package/v1/model/ShowJobsRequest.js.map +1 -0
  270. package/v1/model/ShowJobsResponse.d.ts +18 -0
  271. package/v1/model/ShowJobsResponse.d.ts.map +1 -0
  272. package/v1/model/ShowJobsResponse.js +39 -0
  273. package/v1/model/ShowJobsResponse.js.map +1 -0
  274. package/v1/model/ShowLinkRequest.d.ts +12 -0
  275. package/v1/model/ShowLinkRequest.d.ts.map +1 -0
  276. package/v1/model/ShowLinkRequest.js +31 -0
  277. package/v1/model/ShowLinkRequest.js.map +1 -0
  278. package/v1/model/ShowLinkResponse.d.ts +16 -0
  279. package/v1/model/ShowLinkResponse.d.ts.map +1 -0
  280. package/v1/model/ShowLinkResponse.js +35 -0
  281. package/v1/model/ShowLinkResponse.js.map +1 -0
  282. package/v1/model/ShowSubmissionsRequest.d.ts +10 -0
  283. package/v1/model/ShowSubmissionsRequest.d.ts.map +1 -0
  284. package/v1/model/ShowSubmissionsRequest.js +25 -0
  285. package/v1/model/ShowSubmissionsRequest.js.map +1 -0
  286. package/v1/model/ShowSubmissionsResponse.d.ts +18 -0
  287. package/v1/model/ShowSubmissionsResponse.d.ts.map +1 -0
  288. package/v1/model/ShowSubmissionsResponse.js +39 -0
  289. package/v1/model/ShowSubmissionsResponse.js.map +1 -0
  290. package/v1/model/StartClusterRequest.d.ts +11 -0
  291. package/v1/model/StartClusterRequest.d.ts.map +1 -0
  292. package/v1/model/StartClusterRequest.js +24 -0
  293. package/v1/model/StartClusterRequest.js.map +1 -0
  294. package/v1/model/StartClusterResponse.d.ts +7 -0
  295. package/v1/model/StartClusterResponse.d.ts.map +1 -0
  296. package/v1/model/StartClusterResponse.js +15 -0
  297. package/v1/model/StartClusterResponse.js.map +1 -0
  298. package/v1/model/StartJobRequest.d.ts +12 -0
  299. package/v1/model/StartJobRequest.d.ts.map +1 -0
  300. package/v1/model/StartJobRequest.js +31 -0
  301. package/v1/model/StartJobRequest.js.map +1 -0
  302. package/v1/model/StartJobResponse.d.ts +8 -0
  303. package/v1/model/StartJobResponse.d.ts.map +1 -0
  304. package/v1/model/StartJobResponse.js +15 -0
  305. package/v1/model/StartJobResponse.js.map +1 -0
  306. package/v1/model/StartJobSubmission.d.ts +58 -0
  307. package/v1/model/StartJobSubmission.d.ts.map +1 -0
  308. package/v1/model/StartJobSubmission.js +144 -0
  309. package/v1/model/StartJobSubmission.js.map +1 -0
  310. package/v1/model/StopClusterRequest.d.ts +11 -0
  311. package/v1/model/StopClusterRequest.d.ts.map +1 -0
  312. package/v1/model/StopClusterRequest.js +24 -0
  313. package/v1/model/StopClusterRequest.js.map +1 -0
  314. package/v1/model/StopClusterResponse.d.ts +7 -0
  315. package/v1/model/StopClusterResponse.d.ts.map +1 -0
  316. package/v1/model/StopClusterResponse.js +15 -0
  317. package/v1/model/StopClusterResponse.js.map +1 -0
  318. package/v1/model/StopJobRequest.d.ts +12 -0
  319. package/v1/model/StopJobRequest.d.ts.map +1 -0
  320. package/v1/model/StopJobRequest.js +31 -0
  321. package/v1/model/StopJobRequest.js.map +1 -0
  322. package/v1/model/StopJobResponse.d.ts +10 -0
  323. package/v1/model/StopJobResponse.d.ts.map +1 -0
  324. package/v1/model/StopJobResponse.js +21 -0
  325. package/v1/model/StopJobResponse.js.map +1 -0
  326. package/v1/model/Submission.d.ts +73 -0
  327. package/v1/model/Submission.d.ts.map +1 -0
  328. package/v1/model/Submission.js +185 -0
  329. package/v1/model/Submission.js.map +1 -0
  330. package/v1/model/SysTags.d.ts +8 -0
  331. package/v1/model/SysTags.d.ts.map +1 -0
  332. package/v1/model/SysTags.js +19 -0
  333. package/v1/model/SysTags.js.map +1 -0
  334. package/v1/model/Task.d.ts +8 -0
  335. package/v1/model/Task.d.ts.map +1 -0
  336. package/v1/model/Task.js +17 -0
  337. package/v1/model/Task.js.map +1 -0
  338. package/v1/model/UpdateJobRequest.d.ts +15 -0
  339. package/v1/model/UpdateJobRequest.d.ts.map +1 -0
  340. package/v1/model/UpdateJobRequest.js +35 -0
  341. package/v1/model/UpdateJobRequest.js.map +1 -0
  342. package/v1/model/UpdateJobResponse.d.ts +10 -0
  343. package/v1/model/UpdateJobResponse.d.ts.map +1 -0
  344. package/v1/model/UpdateJobResponse.js +21 -0
  345. package/v1/model/UpdateJobResponse.js.map +1 -0
  346. package/v1/model/UpdateLinkRequest.d.ts +15 -0
  347. package/v1/model/UpdateLinkRequest.d.ts.map +1 -0
  348. package/v1/model/UpdateLinkRequest.js +35 -0
  349. package/v1/model/UpdateLinkRequest.js.map +1 -0
  350. package/v1/model/UpdateLinkResponse.d.ts +10 -0
  351. package/v1/model/UpdateLinkResponse.d.ts.map +1 -0
  352. package/v1/model/UpdateLinkResponse.js +21 -0
  353. package/v1/model/UpdateLinkResponse.js.map +1 -0
  354. package/v1/model/ValidationLinkConfig.d.ts +16 -0
  355. package/v1/model/ValidationLinkConfig.d.ts.map +1 -0
  356. package/v1/model/ValidationLinkConfig.js +26 -0
  357. package/v1/model/ValidationLinkConfig.js.map +1 -0
  358. package/v1/model/ValidationResult.d.ts +7 -0
  359. package/v1/model/ValidationResult.d.ts.map +1 -0
  360. package/v1/model/ValidationResult.js +13 -0
  361. package/v1/model/ValidationResult.js.map +1 -0
  362. package/v1/public-api.d.ts +90 -0
  363. package/v1/public-api.d.ts.map +1 -0
  364. package/v1/public-api.js +106 -0
  365. package/v1/public-api.js.map +1 -0
@@ -0,0 +1,1196 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RequiredError = exports.ParamCreater = exports.CdmClient = void 0;
4
+ const ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
5
+ const CreateAndStartRandomClusterJobRequest_1 = require("./model/CreateAndStartRandomClusterJobRequest");
6
+ const CreateClusterRequest_1 = require("./model/CreateClusterRequest");
7
+ const CreateJobRequest_1 = require("./model/CreateJobRequest");
8
+ const CreateLinkRequest_1 = require("./model/CreateLinkRequest");
9
+ const DeleteClusterRequest_1 = require("./model/DeleteClusterRequest");
10
+ const DeleteJobRequest_1 = require("./model/DeleteJobRequest");
11
+ const DeleteLinkRequest_1 = require("./model/DeleteLinkRequest");
12
+ const RestartClusterRequest_1 = require("./model/RestartClusterRequest");
13
+ const ShowClusterDetailRequest_1 = require("./model/ShowClusterDetailRequest");
14
+ const ShowJobStatusRequest_1 = require("./model/ShowJobStatusRequest");
15
+ const ShowJobsRequest_1 = require("./model/ShowJobsRequest");
16
+ const ShowLinkRequest_1 = require("./model/ShowLinkRequest");
17
+ const ShowSubmissionsRequest_1 = require("./model/ShowSubmissionsRequest");
18
+ const StartClusterRequest_1 = require("./model/StartClusterRequest");
19
+ const StartJobRequest_1 = require("./model/StartJobRequest");
20
+ const StopClusterRequest_1 = require("./model/StopClusterRequest");
21
+ const StopJobRequest_1 = require("./model/StopJobRequest");
22
+ const UpdateJobRequest_1 = require("./model/UpdateJobRequest");
23
+ const UpdateLinkRequest_1 = require("./model/UpdateLinkRequest");
24
+ class CdmClient {
25
+ static newBuilder() {
26
+ return new ClientBuilder_1.ClientBuilder(newClient);
27
+ }
28
+ constructor(client) {
29
+ this.hcClient = client;
30
+ }
31
+ getPath() {
32
+ return __dirname;
33
+ }
34
+ /**
35
+ * 随机集群创建作业并执行接口。
36
+ *
37
+ * Please refer to HUAWEI cloud API Explorer for details.
38
+ *
39
+ * @summary 随机集群创建作业并执行
40
+ * @param {string} xLanguage 请求语言。
41
+ * @param {CdmRandomCreateAndStartJobJsonReq} cdmRandomCreateAndStartJobJsonReq this is start job json
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ createAndStartRandomClusterJob(createAndStartRandomClusterJobRequest) {
46
+ const options = (0, exports.ParamCreater)().createAndStartRandomClusterJob(createAndStartRandomClusterJobRequest);
47
+ // @ts-ignore
48
+ options['responseHeaders'] = [''];
49
+ return this.hcClient.sendRequest(options);
50
+ }
51
+ /**
52
+ * 创建集群接口。
53
+ *
54
+ * Please refer to HUAWEI cloud API Explorer for details.
55
+ *
56
+ * @summary 创建集群
57
+ * @param {string} xLanguage 请求语言。
58
+ * @param {CdmCreateClusterReq} cdmCreateClusterReq 创建集群请求JSON体
59
+ * @param {*} [options] Override http request option.
60
+ * @throws {RequiredError}
61
+ */
62
+ createCluster(createClusterRequest) {
63
+ const options = (0, exports.ParamCreater)().createCluster(createClusterRequest);
64
+ // @ts-ignore
65
+ options['responseHeaders'] = [''];
66
+ return this.hcClient.sendRequest(options);
67
+ }
68
+ /**
69
+ * 指定集群创建作业接口。
70
+ *
71
+ * Please refer to HUAWEI cloud API Explorer for details.
72
+ *
73
+ * @summary 指定集群创建作业
74
+ * @param {string} clusterId 集群ID
75
+ * @param {CdmCreateJobJsonReq} cdmStartJobJsonReq this is start job json
76
+ * @param {*} [options] Override http request option.
77
+ * @throws {RequiredError}
78
+ */
79
+ createJob(createJobRequest) {
80
+ const options = (0, exports.ParamCreater)().createJob(createJobRequest);
81
+ // @ts-ignore
82
+ options['responseHeaders'] = [''];
83
+ return this.hcClient.sendRequest(options);
84
+ }
85
+ /**
86
+ * 创建连接接口。
87
+ *
88
+ * Please refer to HUAWEI cloud API Explorer for details.
89
+ *
90
+ * @summary 创建连接
91
+ * @param {string} clusterId 集群ID
92
+ * @param {CdmCreateAndUpdateLinkReq} cdmCreateLinkReq 创建连接请求JSON
93
+ * @param {string} [validate] 为“true”时,此API仅校验参数是否正确,不创建连接
94
+ * @param {*} [options] Override http request option.
95
+ * @throws {RequiredError}
96
+ */
97
+ createLink(createLinkRequest) {
98
+ const options = (0, exports.ParamCreater)().createLink(createLinkRequest);
99
+ // @ts-ignore
100
+ options['responseHeaders'] = [''];
101
+ return this.hcClient.sendRequest(options);
102
+ }
103
+ /**
104
+ * 删除集群接口。
105
+ *
106
+ * Please refer to HUAWEI cloud API Explorer for details.
107
+ *
108
+ * @summary 删除集群
109
+ * @param {string} clusterId 集群ID
110
+ * @param {CdmDeleteClusterReq} cdmDeleteClusterReq 删除集群请求JSON体
111
+ * @param {*} [options] Override http request option.
112
+ * @throws {RequiredError}
113
+ */
114
+ deleteCluster(deleteClusterRequest) {
115
+ const options = (0, exports.ParamCreater)().deleteCluster(deleteClusterRequest);
116
+ // @ts-ignore
117
+ options['responseHeaders'] = [''];
118
+ return this.hcClient.sendRequest(options);
119
+ }
120
+ /**
121
+ * 删除作业接口。
122
+ *
123
+ * Please refer to HUAWEI cloud API Explorer for details.
124
+ *
125
+ * @summary 删除作业
126
+ * @param {string} clusterId 集群ID
127
+ * @param {string} jobName 作业名称
128
+ * @param {*} [options] Override http request option.
129
+ * @throws {RequiredError}
130
+ */
131
+ deleteJob(deleteJobRequest) {
132
+ const options = (0, exports.ParamCreater)().deleteJob(deleteJobRequest);
133
+ // @ts-ignore
134
+ options['responseHeaders'] = [''];
135
+ return this.hcClient.sendRequest(options);
136
+ }
137
+ /**
138
+ * 删除连接接口。
139
+ *
140
+ * Please refer to HUAWEI cloud API Explorer for details.
141
+ *
142
+ * @summary 删除连接
143
+ * @param {string} clusterId 集群ID
144
+ * @param {string} linkName 需要删除的连接名
145
+ * @param {*} [options] Override http request option.
146
+ * @throws {RequiredError}
147
+ */
148
+ deleteLink(deleteLinkRequest) {
149
+ const options = (0, exports.ParamCreater)().deleteLink(deleteLinkRequest);
150
+ // @ts-ignore
151
+ options['responseHeaders'] = [''];
152
+ return this.hcClient.sendRequest(options);
153
+ }
154
+ /**
155
+ * 查询集群列表接口。
156
+ *
157
+ * Please refer to HUAWEI cloud API Explorer for details.
158
+ *
159
+ * @summary 查询集群列表
160
+ * @param {*} [options] Override http request option.
161
+ * @throws {RequiredError}
162
+ */
163
+ listClusters(listClustersRequest) {
164
+ const options = (0, exports.ParamCreater)().listClusters();
165
+ // @ts-ignore
166
+ options['responseHeaders'] = [''];
167
+ return this.hcClient.sendRequest(options);
168
+ }
169
+ /**
170
+ * 重启集群接口。
171
+ *
172
+ * Please refer to HUAWEI cloud API Explorer for details.
173
+ *
174
+ * @summary 重启集群
175
+ * @param {string} clusterId 集群ID
176
+ * @param {CdmRestartClusterReq} cdmRestartClusterReq 重启集群请求JSON
177
+ * @param {*} [options] Override http request option.
178
+ * @throws {RequiredError}
179
+ */
180
+ restartCluster(restartClusterRequest) {
181
+ const options = (0, exports.ParamCreater)().restartCluster(restartClusterRequest);
182
+ // @ts-ignore
183
+ options['responseHeaders'] = [''];
184
+ return this.hcClient.sendRequest(options);
185
+ }
186
+ /**
187
+ * 查询集群详情接口。
188
+ *
189
+ * Please refer to HUAWEI cloud API Explorer for details.
190
+ *
191
+ * @summary 查询集群详情
192
+ * @param {string} clusterId 集群ID
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ showClusterDetail(showClusterDetailRequest) {
197
+ const options = (0, exports.ParamCreater)().showClusterDetail(showClusterDetailRequest);
198
+ // @ts-ignore
199
+ options['responseHeaders'] = [''];
200
+ return this.hcClient.sendRequest(options);
201
+ }
202
+ /**
203
+ * 查询作业状态接口。
204
+ *
205
+ * Please refer to HUAWEI cloud API Explorer for details.
206
+ *
207
+ * @summary 查询作业状态
208
+ * @param {string} clusterId 集群ID
209
+ * @param {string} jobName 作业名称
210
+ * @param {*} [options] Override http request option.
211
+ * @throws {RequiredError}
212
+ */
213
+ showJobStatus(showJobStatusRequest) {
214
+ const options = (0, exports.ParamCreater)().showJobStatus(showJobStatusRequest);
215
+ // @ts-ignore
216
+ options['responseHeaders'] = [''];
217
+ return this.hcClient.sendRequest(options);
218
+ }
219
+ /**
220
+ * 查询作业接口。
221
+ *
222
+ * Please refer to HUAWEI cloud API Explorer for details.
223
+ *
224
+ * @summary 查询作业
225
+ * @param {string} clusterId 集群ID
226
+ * @param {string} jobName 查询多个作业用all,查询单个作业输入作业名
227
+ * @param {string} [filter] 当“job_name”为“all”时,此参数用于模糊过滤作业
228
+ * @param {number} [pageNo] 指定作业页号
229
+ * @param {number} [pageSize] 每页作业数,值在10-100之间
230
+ * @param {'NORMAL_JOB' | 'BATCH_JOB' | 'SCENARIO_JOB'} [jobType] 作业类型: - jobType=NORMAL_JOB:表示查询表/文件迁移的作业。 - jobType=BATCH_JOB:表示查询整库迁移的作业。 - jobType=SCENARIO_JOB:表示查询场景迁移的作业。 - 不指定该参数时,默认只查询表/文件迁移的作业。
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ */
234
+ showJobs(showJobsRequest) {
235
+ const options = (0, exports.ParamCreater)().showJobs(showJobsRequest);
236
+ // @ts-ignore
237
+ options['responseHeaders'] = [''];
238
+ return this.hcClient.sendRequest(options);
239
+ }
240
+ /**
241
+ * 查询连接接口。
242
+ *
243
+ * Please refer to HUAWEI cloud API Explorer for details.
244
+ *
245
+ * @summary 查询连接
246
+ * @param {string} clusterId 集群ID
247
+ * @param {string} linkName 连接名称
248
+ * @param {*} [options] Override http request option.
249
+ * @throws {RequiredError}
250
+ */
251
+ showLink(showLinkRequest) {
252
+ const options = (0, exports.ParamCreater)().showLink(showLinkRequest);
253
+ // @ts-ignore
254
+ options['responseHeaders'] = [''];
255
+ return this.hcClient.sendRequest(options);
256
+ }
257
+ /**
258
+ * 查询作业执行历史接口。
259
+ *
260
+ * Please refer to HUAWEI cloud API Explorer for details.
261
+ *
262
+ * @summary 查询作业执行历史
263
+ * @param {string} clusterId 集群ID
264
+ * @param {string} jname 作业名称
265
+ * @param {*} [options] Override http request option.
266
+ * @throws {RequiredError}
267
+ */
268
+ showSubmissions(showSubmissionsRequest) {
269
+ const options = (0, exports.ParamCreater)().showSubmissions(showSubmissionsRequest);
270
+ // @ts-ignore
271
+ options['responseHeaders'] = [''];
272
+ return this.hcClient.sendRequest(options);
273
+ }
274
+ /**
275
+ * 启动集群接口。
276
+ *
277
+ * Please refer to HUAWEI cloud API Explorer for details.
278
+ *
279
+ * @summary 启动集群
280
+ * @param {string} clusterId 集群ID
281
+ * @param {CdmStartClusterReq} cdmStartClusterReq 启动集群请求JSON
282
+ * @param {*} [options] Override http request option.
283
+ * @throws {RequiredError}
284
+ */
285
+ startCluster(startClusterRequest) {
286
+ const options = (0, exports.ParamCreater)().startCluster(startClusterRequest);
287
+ // @ts-ignore
288
+ options['responseHeaders'] = [''];
289
+ return this.hcClient.sendRequest(options);
290
+ }
291
+ /**
292
+ * 启动作业接口。
293
+ *
294
+ * Please refer to HUAWEI cloud API Explorer for details.
295
+ *
296
+ * @summary 启动作业
297
+ * @param {string} clusterId 集群ID
298
+ * @param {string} jobName 作业名称
299
+ * @param {*} [options] Override http request option.
300
+ * @throws {RequiredError}
301
+ */
302
+ startJob(startJobRequest) {
303
+ const options = (0, exports.ParamCreater)().startJob(startJobRequest);
304
+ // @ts-ignore
305
+ options['responseHeaders'] = [''];
306
+ return this.hcClient.sendRequest(options);
307
+ }
308
+ /**
309
+ * 停止集群接口。
310
+ *
311
+ * Please refer to HUAWEI cloud API Explorer for details.
312
+ *
313
+ * @summary 停止集群
314
+ * @param {string} clusterId 集群ID
315
+ * @param {CdmStopClusterReq} cdmStopClusterReq 停止集群请求JSON
316
+ * @param {*} [options] Override http request option.
317
+ * @throws {RequiredError}
318
+ */
319
+ stopCluster(stopClusterRequest) {
320
+ const options = (0, exports.ParamCreater)().stopCluster(stopClusterRequest);
321
+ // @ts-ignore
322
+ options['responseHeaders'] = [''];
323
+ return this.hcClient.sendRequest(options);
324
+ }
325
+ /**
326
+ * 停止作业接口。
327
+ *
328
+ * Please refer to HUAWEI cloud API Explorer for details.
329
+ *
330
+ * @summary 停止作业
331
+ * @param {string} clusterId 集群ID
332
+ * @param {string} jobName 作业名称
333
+ * @param {*} [options] Override http request option.
334
+ * @throws {RequiredError}
335
+ */
336
+ stopJob(stopJobRequest) {
337
+ const options = (0, exports.ParamCreater)().stopJob(stopJobRequest);
338
+ // @ts-ignore
339
+ options['responseHeaders'] = [''];
340
+ return this.hcClient.sendRequest(options);
341
+ }
342
+ /**
343
+ * 修改作业接口。
344
+ *
345
+ * Please refer to HUAWEI cloud API Explorer for details.
346
+ *
347
+ * @summary 修改作业
348
+ * @param {string} clusterId 集群ID
349
+ * @param {string} jobName 作业名称。
350
+ * @param {CdmUpdateJobJsonReq} cdmUpdateJobJsonReq this is update job json
351
+ * @param {*} [options] Override http request option.
352
+ * @throws {RequiredError}
353
+ */
354
+ updateJob(updateJobRequest) {
355
+ const options = (0, exports.ParamCreater)().updateJob(updateJobRequest);
356
+ // @ts-ignore
357
+ options['responseHeaders'] = [''];
358
+ return this.hcClient.sendRequest(options);
359
+ }
360
+ /**
361
+ * 修改连接接口。
362
+ *
363
+ * Please refer to HUAWEI cloud API Explorer for details.
364
+ *
365
+ * @summary 修改连接
366
+ * @param {string} clusterId 集群ID
367
+ * @param {string} linkName 连接名称
368
+ * @param {CdmCreateAndUpdateLinkReq} cdmUpdateLinkReq 创建连接请求JSON
369
+ * @param {*} [options] Override http request option.
370
+ * @throws {RequiredError}
371
+ */
372
+ updateLink(updateLinkRequest) {
373
+ const options = (0, exports.ParamCreater)().updateLink(updateLinkRequest);
374
+ // @ts-ignore
375
+ options['responseHeaders'] = [''];
376
+ return this.hcClient.sendRequest(options);
377
+ }
378
+ }
379
+ exports.CdmClient = CdmClient;
380
+ const ParamCreater = function () {
381
+ return {
382
+ /**
383
+ * 随机集群创建作业并执行接口。
384
+ *
385
+ * Please refer to HUAWEI cloud API Explorer for details.
386
+ */
387
+ createAndStartRandomClusterJob(createAndStartRandomClusterJobRequest) {
388
+ const options = {
389
+ method: "POST",
390
+ url: "/v1.1/{project_id}/clusters/job",
391
+ contentType: "application/json;charset=UTF-8",
392
+ queryParams: {},
393
+ pathParams: {},
394
+ headers: {},
395
+ data: {}
396
+ };
397
+ const localVarHeaderParameter = {};
398
+ let body;
399
+ let xLanguage;
400
+ if (createAndStartRandomClusterJobRequest !== null && createAndStartRandomClusterJobRequest !== undefined) {
401
+ if (createAndStartRandomClusterJobRequest instanceof CreateAndStartRandomClusterJobRequest_1.CreateAndStartRandomClusterJobRequest) {
402
+ xLanguage = createAndStartRandomClusterJobRequest.xLanguage;
403
+ body = createAndStartRandomClusterJobRequest.body;
404
+ }
405
+ else {
406
+ xLanguage = createAndStartRandomClusterJobRequest['X-Language'];
407
+ body = createAndStartRandomClusterJobRequest['body'];
408
+ }
409
+ }
410
+ if (body === null || body === undefined) {
411
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
412
+ }
413
+ if (xLanguage !== undefined && xLanguage !== null) {
414
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
415
+ }
416
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
417
+ options.data = body !== undefined ? body : {};
418
+ options.headers = localVarHeaderParameter;
419
+ return options;
420
+ },
421
+ /**
422
+ * 创建集群接口。
423
+ *
424
+ * Please refer to HUAWEI cloud API Explorer for details.
425
+ */
426
+ createCluster(createClusterRequest) {
427
+ const options = {
428
+ method: "POST",
429
+ url: "/v1.1/{project_id}/clusters",
430
+ contentType: "application/json;charset=UTF-8",
431
+ queryParams: {},
432
+ pathParams: {},
433
+ headers: {},
434
+ data: {}
435
+ };
436
+ const localVarHeaderParameter = {};
437
+ let body;
438
+ let xLanguage;
439
+ if (createClusterRequest !== null && createClusterRequest !== undefined) {
440
+ if (createClusterRequest instanceof CreateClusterRequest_1.CreateClusterRequest) {
441
+ xLanguage = createClusterRequest.xLanguage;
442
+ body = createClusterRequest.body;
443
+ }
444
+ else {
445
+ xLanguage = createClusterRequest['X-Language'];
446
+ body = createClusterRequest['body'];
447
+ }
448
+ }
449
+ if (body === null || body === undefined) {
450
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
451
+ }
452
+ if (xLanguage !== undefined && xLanguage !== null) {
453
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
454
+ }
455
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
456
+ options.data = body !== undefined ? body : {};
457
+ options.headers = localVarHeaderParameter;
458
+ return options;
459
+ },
460
+ /**
461
+ * 指定集群创建作业接口。
462
+ *
463
+ * Please refer to HUAWEI cloud API Explorer for details.
464
+ */
465
+ createJob(createJobRequest) {
466
+ const options = {
467
+ method: "POST",
468
+ url: "/v1.1/{project_id}/clusters/{cluster_id}/cdm/job",
469
+ contentType: "application/json;charset=UTF-8",
470
+ queryParams: {},
471
+ pathParams: {},
472
+ headers: {},
473
+ data: {}
474
+ };
475
+ const localVarHeaderParameter = {};
476
+ let body;
477
+ let clusterId;
478
+ if (createJobRequest !== null && createJobRequest !== undefined) {
479
+ if (createJobRequest instanceof CreateJobRequest_1.CreateJobRequest) {
480
+ clusterId = createJobRequest.clusterId;
481
+ body = createJobRequest.body;
482
+ }
483
+ else {
484
+ clusterId = createJobRequest['cluster_id'];
485
+ body = createJobRequest['body'];
486
+ }
487
+ }
488
+ if (clusterId === null || clusterId === undefined) {
489
+ throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling createJob.');
490
+ }
491
+ if (body === null || body === undefined) {
492
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
493
+ }
494
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
495
+ options.data = body !== undefined ? body : {};
496
+ options.pathParams = { 'cluster_id': clusterId, };
497
+ options.headers = localVarHeaderParameter;
498
+ return options;
499
+ },
500
+ /**
501
+ * 创建连接接口。
502
+ *
503
+ * Please refer to HUAWEI cloud API Explorer for details.
504
+ */
505
+ createLink(createLinkRequest) {
506
+ const options = {
507
+ method: "POST",
508
+ url: "/v1.1/{project_id}/clusters/{cluster_id}/cdm/link",
509
+ contentType: "application/json;charset=UTF-8",
510
+ queryParams: {},
511
+ pathParams: {},
512
+ headers: {},
513
+ data: {}
514
+ };
515
+ const localVarHeaderParameter = {};
516
+ const localVarQueryParameter = {};
517
+ let body;
518
+ let clusterId;
519
+ let validate;
520
+ if (createLinkRequest !== null && createLinkRequest !== undefined) {
521
+ if (createLinkRequest instanceof CreateLinkRequest_1.CreateLinkRequest) {
522
+ clusterId = createLinkRequest.clusterId;
523
+ body = createLinkRequest.body;
524
+ validate = createLinkRequest.validate;
525
+ }
526
+ else {
527
+ clusterId = createLinkRequest['cluster_id'];
528
+ body = createLinkRequest['body'];
529
+ validate = createLinkRequest['validate'];
530
+ }
531
+ }
532
+ if (clusterId === null || clusterId === undefined) {
533
+ throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling createLink.');
534
+ }
535
+ if (body === null || body === undefined) {
536
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
537
+ }
538
+ if (validate !== null && validate !== undefined) {
539
+ localVarQueryParameter['validate'] = validate;
540
+ }
541
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
542
+ options.data = body !== undefined ? body : {};
543
+ options.queryParams = localVarQueryParameter;
544
+ options.pathParams = { 'cluster_id': clusterId, };
545
+ options.headers = localVarHeaderParameter;
546
+ return options;
547
+ },
548
+ /**
549
+ * 删除集群接口。
550
+ *
551
+ * Please refer to HUAWEI cloud API Explorer for details.
552
+ */
553
+ deleteCluster(deleteClusterRequest) {
554
+ const options = {
555
+ method: "DELETE",
556
+ url: "/v1.1/{project_id}/clusters/{cluster_id}",
557
+ contentType: "application/json;charset=UTF-8",
558
+ queryParams: {},
559
+ pathParams: {},
560
+ headers: {},
561
+ data: {}
562
+ };
563
+ const localVarHeaderParameter = {};
564
+ let body;
565
+ let clusterId;
566
+ if (deleteClusterRequest !== null && deleteClusterRequest !== undefined) {
567
+ if (deleteClusterRequest instanceof DeleteClusterRequest_1.DeleteClusterRequest) {
568
+ clusterId = deleteClusterRequest.clusterId;
569
+ body = deleteClusterRequest.body;
570
+ }
571
+ else {
572
+ clusterId = deleteClusterRequest['cluster_id'];
573
+ body = deleteClusterRequest['body'];
574
+ }
575
+ }
576
+ if (clusterId === null || clusterId === undefined) {
577
+ throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling deleteCluster.');
578
+ }
579
+ if (body === null || body === undefined) {
580
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
581
+ }
582
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
583
+ options.data = body !== undefined ? body : {};
584
+ options.pathParams = { 'cluster_id': clusterId, };
585
+ options.headers = localVarHeaderParameter;
586
+ return options;
587
+ },
588
+ /**
589
+ * 删除作业接口。
590
+ *
591
+ * Please refer to HUAWEI cloud API Explorer for details.
592
+ */
593
+ deleteJob(deleteJobRequest) {
594
+ const options = {
595
+ method: "DELETE",
596
+ url: "/v1.1/{project_id}/clusters/{cluster_id}/cdm/job/{job_name}",
597
+ contentType: "application/json",
598
+ queryParams: {},
599
+ pathParams: {},
600
+ headers: {}
601
+ };
602
+ const localVarHeaderParameter = {};
603
+ let clusterId;
604
+ let jobName;
605
+ if (deleteJobRequest !== null && deleteJobRequest !== undefined) {
606
+ if (deleteJobRequest instanceof DeleteJobRequest_1.DeleteJobRequest) {
607
+ clusterId = deleteJobRequest.clusterId;
608
+ jobName = deleteJobRequest.jobName;
609
+ }
610
+ else {
611
+ clusterId = deleteJobRequest['cluster_id'];
612
+ jobName = deleteJobRequest['job_name'];
613
+ }
614
+ }
615
+ if (clusterId === null || clusterId === undefined) {
616
+ throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling deleteJob.');
617
+ }
618
+ if (jobName === null || jobName === undefined) {
619
+ throw new RequiredError('jobName', 'Required parameter jobName was null or undefined when calling deleteJob.');
620
+ }
621
+ options.pathParams = { 'cluster_id': clusterId, 'job_name': jobName, };
622
+ options.headers = localVarHeaderParameter;
623
+ return options;
624
+ },
625
+ /**
626
+ * 删除连接接口。
627
+ *
628
+ * Please refer to HUAWEI cloud API Explorer for details.
629
+ */
630
+ deleteLink(deleteLinkRequest) {
631
+ const options = {
632
+ method: "DELETE",
633
+ url: "/v1.1/{project_id}/clusters/{cluster_id}/cdm/link/{link_name}",
634
+ contentType: "application/json",
635
+ queryParams: {},
636
+ pathParams: {},
637
+ headers: {}
638
+ };
639
+ const localVarHeaderParameter = {};
640
+ let clusterId;
641
+ let linkName;
642
+ if (deleteLinkRequest !== null && deleteLinkRequest !== undefined) {
643
+ if (deleteLinkRequest instanceof DeleteLinkRequest_1.DeleteLinkRequest) {
644
+ clusterId = deleteLinkRequest.clusterId;
645
+ linkName = deleteLinkRequest.linkName;
646
+ }
647
+ else {
648
+ clusterId = deleteLinkRequest['cluster_id'];
649
+ linkName = deleteLinkRequest['link_name'];
650
+ }
651
+ }
652
+ if (clusterId === null || clusterId === undefined) {
653
+ throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling deleteLink.');
654
+ }
655
+ if (linkName === null || linkName === undefined) {
656
+ throw new RequiredError('linkName', 'Required parameter linkName was null or undefined when calling deleteLink.');
657
+ }
658
+ options.pathParams = { 'cluster_id': clusterId, 'link_name': linkName, };
659
+ options.headers = localVarHeaderParameter;
660
+ return options;
661
+ },
662
+ /**
663
+ * 查询集群列表接口。
664
+ *
665
+ * Please refer to HUAWEI cloud API Explorer for details.
666
+ */
667
+ listClusters() {
668
+ const options = {
669
+ method: "GET",
670
+ url: "/v1.1/{project_id}/clusters",
671
+ contentType: "application/json",
672
+ queryParams: {},
673
+ pathParams: {},
674
+ headers: {}
675
+ };
676
+ const localVarHeaderParameter = {};
677
+ options.headers = localVarHeaderParameter;
678
+ return options;
679
+ },
680
+ /**
681
+ * 重启集群接口。
682
+ *
683
+ * Please refer to HUAWEI cloud API Explorer for details.
684
+ */
685
+ restartCluster(restartClusterRequest) {
686
+ const options = {
687
+ method: "POST",
688
+ url: "/v1.1/{project_id}/clusters/{cluster_id}/action",
689
+ contentType: "application/json;charset=UTF-8",
690
+ queryParams: {},
691
+ pathParams: {},
692
+ headers: {},
693
+ data: {}
694
+ };
695
+ const localVarHeaderParameter = {};
696
+ let body;
697
+ let clusterId;
698
+ if (restartClusterRequest !== null && restartClusterRequest !== undefined) {
699
+ if (restartClusterRequest instanceof RestartClusterRequest_1.RestartClusterRequest) {
700
+ clusterId = restartClusterRequest.clusterId;
701
+ body = restartClusterRequest.body;
702
+ }
703
+ else {
704
+ clusterId = restartClusterRequest['cluster_id'];
705
+ body = restartClusterRequest['body'];
706
+ }
707
+ }
708
+ if (clusterId === null || clusterId === undefined) {
709
+ throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling restartCluster.');
710
+ }
711
+ if (body === null || body === undefined) {
712
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
713
+ }
714
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
715
+ options.data = body !== undefined ? body : {};
716
+ options.pathParams = { 'cluster_id': clusterId, };
717
+ options.headers = localVarHeaderParameter;
718
+ return options;
719
+ },
720
+ /**
721
+ * 查询集群详情接口。
722
+ *
723
+ * Please refer to HUAWEI cloud API Explorer for details.
724
+ */
725
+ showClusterDetail(showClusterDetailRequest) {
726
+ const options = {
727
+ method: "GET",
728
+ url: "/v1.1/{project_id}/clusters/{cluster_id}",
729
+ contentType: "application/json",
730
+ queryParams: {},
731
+ pathParams: {},
732
+ headers: {}
733
+ };
734
+ const localVarHeaderParameter = {};
735
+ let clusterId;
736
+ if (showClusterDetailRequest !== null && showClusterDetailRequest !== undefined) {
737
+ if (showClusterDetailRequest instanceof ShowClusterDetailRequest_1.ShowClusterDetailRequest) {
738
+ clusterId = showClusterDetailRequest.clusterId;
739
+ }
740
+ else {
741
+ clusterId = showClusterDetailRequest['cluster_id'];
742
+ }
743
+ }
744
+ if (clusterId === null || clusterId === undefined) {
745
+ throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling showClusterDetail.');
746
+ }
747
+ options.pathParams = { 'cluster_id': clusterId, };
748
+ options.headers = localVarHeaderParameter;
749
+ return options;
750
+ },
751
+ /**
752
+ * 查询作业状态接口。
753
+ *
754
+ * Please refer to HUAWEI cloud API Explorer for details.
755
+ */
756
+ showJobStatus(showJobStatusRequest) {
757
+ const options = {
758
+ method: "GET",
759
+ url: "/v1.1/{project_id}/clusters/{cluster_id}/cdm/job/{job_name}/status",
760
+ contentType: "application/json",
761
+ queryParams: {},
762
+ pathParams: {},
763
+ headers: {}
764
+ };
765
+ const localVarHeaderParameter = {};
766
+ let clusterId;
767
+ let jobName;
768
+ if (showJobStatusRequest !== null && showJobStatusRequest !== undefined) {
769
+ if (showJobStatusRequest instanceof ShowJobStatusRequest_1.ShowJobStatusRequest) {
770
+ clusterId = showJobStatusRequest.clusterId;
771
+ jobName = showJobStatusRequest.jobName;
772
+ }
773
+ else {
774
+ clusterId = showJobStatusRequest['cluster_id'];
775
+ jobName = showJobStatusRequest['job_name'];
776
+ }
777
+ }
778
+ if (clusterId === null || clusterId === undefined) {
779
+ throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling showJobStatus.');
780
+ }
781
+ if (jobName === null || jobName === undefined) {
782
+ throw new RequiredError('jobName', 'Required parameter jobName was null or undefined when calling showJobStatus.');
783
+ }
784
+ options.pathParams = { 'cluster_id': clusterId, 'job_name': jobName, };
785
+ options.headers = localVarHeaderParameter;
786
+ return options;
787
+ },
788
+ /**
789
+ * 查询作业接口。
790
+ *
791
+ * Please refer to HUAWEI cloud API Explorer for details.
792
+ */
793
+ showJobs(showJobsRequest) {
794
+ const options = {
795
+ method: "GET",
796
+ url: "/v1.1/{project_id}/clusters/{cluster_id}/cdm/job/{job_name}",
797
+ contentType: "application/json",
798
+ queryParams: {},
799
+ pathParams: {},
800
+ headers: {}
801
+ };
802
+ const localVarHeaderParameter = {};
803
+ const localVarQueryParameter = {};
804
+ let clusterId;
805
+ let jobName;
806
+ let filter;
807
+ let pageNo;
808
+ let pageSize;
809
+ let jobType;
810
+ if (showJobsRequest !== null && showJobsRequest !== undefined) {
811
+ if (showJobsRequest instanceof ShowJobsRequest_1.ShowJobsRequest) {
812
+ clusterId = showJobsRequest.clusterId;
813
+ jobName = showJobsRequest.jobName;
814
+ filter = showJobsRequest.filter;
815
+ pageNo = showJobsRequest.pageNo;
816
+ pageSize = showJobsRequest.pageSize;
817
+ jobType = showJobsRequest.jobType;
818
+ }
819
+ else {
820
+ clusterId = showJobsRequest['cluster_id'];
821
+ jobName = showJobsRequest['job_name'];
822
+ filter = showJobsRequest['filter'];
823
+ pageNo = showJobsRequest['page_no'];
824
+ pageSize = showJobsRequest['page_size'];
825
+ jobType = showJobsRequest['jobType'];
826
+ }
827
+ }
828
+ if (clusterId === null || clusterId === undefined) {
829
+ throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling showJobs.');
830
+ }
831
+ if (jobName === null || jobName === undefined) {
832
+ throw new RequiredError('jobName', 'Required parameter jobName was null or undefined when calling showJobs.');
833
+ }
834
+ if (filter !== null && filter !== undefined) {
835
+ localVarQueryParameter['filter'] = filter;
836
+ }
837
+ if (pageNo !== null && pageNo !== undefined) {
838
+ localVarQueryParameter['page_no'] = pageNo;
839
+ }
840
+ if (pageSize !== null && pageSize !== undefined) {
841
+ localVarQueryParameter['page_size'] = pageSize;
842
+ }
843
+ if (jobType !== null && jobType !== undefined) {
844
+ localVarQueryParameter['jobType'] = jobType;
845
+ }
846
+ options.queryParams = localVarQueryParameter;
847
+ options.pathParams = { 'cluster_id': clusterId, 'job_name': jobName, };
848
+ options.headers = localVarHeaderParameter;
849
+ return options;
850
+ },
851
+ /**
852
+ * 查询连接接口。
853
+ *
854
+ * Please refer to HUAWEI cloud API Explorer for details.
855
+ */
856
+ showLink(showLinkRequest) {
857
+ const options = {
858
+ method: "GET",
859
+ url: "/v1.1/{project_id}/clusters/{cluster_id}/cdm/link/{link_name}",
860
+ contentType: "application/json",
861
+ queryParams: {},
862
+ pathParams: {},
863
+ headers: {}
864
+ };
865
+ const localVarHeaderParameter = {};
866
+ let clusterId;
867
+ let linkName;
868
+ if (showLinkRequest !== null && showLinkRequest !== undefined) {
869
+ if (showLinkRequest instanceof ShowLinkRequest_1.ShowLinkRequest) {
870
+ clusterId = showLinkRequest.clusterId;
871
+ linkName = showLinkRequest.linkName;
872
+ }
873
+ else {
874
+ clusterId = showLinkRequest['cluster_id'];
875
+ linkName = showLinkRequest['link_name'];
876
+ }
877
+ }
878
+ if (clusterId === null || clusterId === undefined) {
879
+ throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling showLink.');
880
+ }
881
+ if (linkName === null || linkName === undefined) {
882
+ throw new RequiredError('linkName', 'Required parameter linkName was null or undefined when calling showLink.');
883
+ }
884
+ options.pathParams = { 'cluster_id': clusterId, 'link_name': linkName, };
885
+ options.headers = localVarHeaderParameter;
886
+ return options;
887
+ },
888
+ /**
889
+ * 查询作业执行历史接口。
890
+ *
891
+ * Please refer to HUAWEI cloud API Explorer for details.
892
+ */
893
+ showSubmissions(showSubmissionsRequest) {
894
+ const options = {
895
+ method: "GET",
896
+ url: "/v1.1/{project_id}/clusters/{cluster_id}/cdm/submissions",
897
+ contentType: "application/json",
898
+ queryParams: {},
899
+ pathParams: {},
900
+ headers: {}
901
+ };
902
+ const localVarHeaderParameter = {};
903
+ const localVarQueryParameter = {};
904
+ let clusterId;
905
+ let jname;
906
+ if (showSubmissionsRequest !== null && showSubmissionsRequest !== undefined) {
907
+ if (showSubmissionsRequest instanceof ShowSubmissionsRequest_1.ShowSubmissionsRequest) {
908
+ clusterId = showSubmissionsRequest.clusterId;
909
+ jname = showSubmissionsRequest.jname;
910
+ }
911
+ else {
912
+ clusterId = showSubmissionsRequest['cluster_id'];
913
+ jname = showSubmissionsRequest['jname'];
914
+ }
915
+ }
916
+ if (clusterId === null || clusterId === undefined) {
917
+ throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling showSubmissions.');
918
+ }
919
+ if (jname === null || jname === undefined) {
920
+ throw new RequiredError('jname', 'Required parameter jname was null or undefined when calling showSubmissions.');
921
+ }
922
+ if (jname !== null && jname !== undefined) {
923
+ localVarQueryParameter['jname'] = jname;
924
+ }
925
+ options.queryParams = localVarQueryParameter;
926
+ options.pathParams = { 'cluster_id': clusterId, };
927
+ options.headers = localVarHeaderParameter;
928
+ return options;
929
+ },
930
+ /**
931
+ * 启动集群接口。
932
+ *
933
+ * Please refer to HUAWEI cloud API Explorer for details.
934
+ */
935
+ startCluster(startClusterRequest) {
936
+ const options = {
937
+ method: "POST",
938
+ url: "/v1.1/{project_id}/clusters/{cluster_id}/action",
939
+ contentType: "application/json;charset=UTF-8",
940
+ queryParams: {},
941
+ pathParams: {},
942
+ headers: {},
943
+ data: {}
944
+ };
945
+ const localVarHeaderParameter = {};
946
+ let body;
947
+ let clusterId;
948
+ if (startClusterRequest !== null && startClusterRequest !== undefined) {
949
+ if (startClusterRequest instanceof StartClusterRequest_1.StartClusterRequest) {
950
+ clusterId = startClusterRequest.clusterId;
951
+ body = startClusterRequest.body;
952
+ }
953
+ else {
954
+ clusterId = startClusterRequest['cluster_id'];
955
+ body = startClusterRequest['body'];
956
+ }
957
+ }
958
+ if (clusterId === null || clusterId === undefined) {
959
+ throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling startCluster.');
960
+ }
961
+ if (body === null || body === undefined) {
962
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
963
+ }
964
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
965
+ options.data = body !== undefined ? body : {};
966
+ options.pathParams = { 'cluster_id': clusterId, };
967
+ options.headers = localVarHeaderParameter;
968
+ return options;
969
+ },
970
+ /**
971
+ * 启动作业接口。
972
+ *
973
+ * Please refer to HUAWEI cloud API Explorer for details.
974
+ */
975
+ startJob(startJobRequest) {
976
+ const options = {
977
+ method: "PUT",
978
+ url: "/v1.1/{project_id}/clusters/{cluster_id}/cdm/job/{job_name}/start",
979
+ contentType: "application/json",
980
+ queryParams: {},
981
+ pathParams: {},
982
+ headers: {}
983
+ };
984
+ const localVarHeaderParameter = {};
985
+ let clusterId;
986
+ let jobName;
987
+ if (startJobRequest !== null && startJobRequest !== undefined) {
988
+ if (startJobRequest instanceof StartJobRequest_1.StartJobRequest) {
989
+ clusterId = startJobRequest.clusterId;
990
+ jobName = startJobRequest.jobName;
991
+ }
992
+ else {
993
+ clusterId = startJobRequest['cluster_id'];
994
+ jobName = startJobRequest['job_name'];
995
+ }
996
+ }
997
+ if (clusterId === null || clusterId === undefined) {
998
+ throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling startJob.');
999
+ }
1000
+ if (jobName === null || jobName === undefined) {
1001
+ throw new RequiredError('jobName', 'Required parameter jobName was null or undefined when calling startJob.');
1002
+ }
1003
+ options.pathParams = { 'cluster_id': clusterId, 'job_name': jobName, };
1004
+ options.headers = localVarHeaderParameter;
1005
+ return options;
1006
+ },
1007
+ /**
1008
+ * 停止集群接口。
1009
+ *
1010
+ * Please refer to HUAWEI cloud API Explorer for details.
1011
+ */
1012
+ stopCluster(stopClusterRequest) {
1013
+ const options = {
1014
+ method: "POST",
1015
+ url: "/v1.1/{project_id}/clusters/{cluster_id}/action",
1016
+ contentType: "application/json;charset=UTF-8",
1017
+ queryParams: {},
1018
+ pathParams: {},
1019
+ headers: {},
1020
+ data: {}
1021
+ };
1022
+ const localVarHeaderParameter = {};
1023
+ let body;
1024
+ let clusterId;
1025
+ if (stopClusterRequest !== null && stopClusterRequest !== undefined) {
1026
+ if (stopClusterRequest instanceof StopClusterRequest_1.StopClusterRequest) {
1027
+ clusterId = stopClusterRequest.clusterId;
1028
+ body = stopClusterRequest.body;
1029
+ }
1030
+ else {
1031
+ clusterId = stopClusterRequest['cluster_id'];
1032
+ body = stopClusterRequest['body'];
1033
+ }
1034
+ }
1035
+ if (clusterId === null || clusterId === undefined) {
1036
+ throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling stopCluster.');
1037
+ }
1038
+ if (body === null || body === undefined) {
1039
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
1040
+ }
1041
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
1042
+ options.data = body !== undefined ? body : {};
1043
+ options.pathParams = { 'cluster_id': clusterId, };
1044
+ options.headers = localVarHeaderParameter;
1045
+ return options;
1046
+ },
1047
+ /**
1048
+ * 停止作业接口。
1049
+ *
1050
+ * Please refer to HUAWEI cloud API Explorer for details.
1051
+ */
1052
+ stopJob(stopJobRequest) {
1053
+ const options = {
1054
+ method: "PUT",
1055
+ url: "/v1.1/{project_id}/clusters/{cluster_id}/cdm/job/{job_name}/stop",
1056
+ contentType: "application/json",
1057
+ queryParams: {},
1058
+ pathParams: {},
1059
+ headers: {}
1060
+ };
1061
+ const localVarHeaderParameter = {};
1062
+ let clusterId;
1063
+ let jobName;
1064
+ if (stopJobRequest !== null && stopJobRequest !== undefined) {
1065
+ if (stopJobRequest instanceof StopJobRequest_1.StopJobRequest) {
1066
+ clusterId = stopJobRequest.clusterId;
1067
+ jobName = stopJobRequest.jobName;
1068
+ }
1069
+ else {
1070
+ clusterId = stopJobRequest['cluster_id'];
1071
+ jobName = stopJobRequest['job_name'];
1072
+ }
1073
+ }
1074
+ if (clusterId === null || clusterId === undefined) {
1075
+ throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling stopJob.');
1076
+ }
1077
+ if (jobName === null || jobName === undefined) {
1078
+ throw new RequiredError('jobName', 'Required parameter jobName was null or undefined when calling stopJob.');
1079
+ }
1080
+ options.pathParams = { 'cluster_id': clusterId, 'job_name': jobName, };
1081
+ options.headers = localVarHeaderParameter;
1082
+ return options;
1083
+ },
1084
+ /**
1085
+ * 修改作业接口。
1086
+ *
1087
+ * Please refer to HUAWEI cloud API Explorer for details.
1088
+ */
1089
+ updateJob(updateJobRequest) {
1090
+ const options = {
1091
+ method: "PUT",
1092
+ url: "/v1.1/{project_id}/clusters/{cluster_id}/cdm/job/{job_name}",
1093
+ contentType: "application/json;charset=UTF-8",
1094
+ queryParams: {},
1095
+ pathParams: {},
1096
+ headers: {},
1097
+ data: {}
1098
+ };
1099
+ const localVarHeaderParameter = {};
1100
+ let body;
1101
+ let clusterId;
1102
+ let jobName;
1103
+ if (updateJobRequest !== null && updateJobRequest !== undefined) {
1104
+ if (updateJobRequest instanceof UpdateJobRequest_1.UpdateJobRequest) {
1105
+ clusterId = updateJobRequest.clusterId;
1106
+ jobName = updateJobRequest.jobName;
1107
+ body = updateJobRequest.body;
1108
+ }
1109
+ else {
1110
+ clusterId = updateJobRequest['cluster_id'];
1111
+ jobName = updateJobRequest['job_name'];
1112
+ body = updateJobRequest['body'];
1113
+ }
1114
+ }
1115
+ if (clusterId === null || clusterId === undefined) {
1116
+ throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling updateJob.');
1117
+ }
1118
+ if (jobName === null || jobName === undefined) {
1119
+ throw new RequiredError('jobName', 'Required parameter jobName was null or undefined when calling updateJob.');
1120
+ }
1121
+ if (body === null || body === undefined) {
1122
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
1123
+ }
1124
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
1125
+ options.data = body !== undefined ? body : {};
1126
+ options.pathParams = { 'cluster_id': clusterId, 'job_name': jobName, };
1127
+ options.headers = localVarHeaderParameter;
1128
+ return options;
1129
+ },
1130
+ /**
1131
+ * 修改连接接口。
1132
+ *
1133
+ * Please refer to HUAWEI cloud API Explorer for details.
1134
+ */
1135
+ updateLink(updateLinkRequest) {
1136
+ const options = {
1137
+ method: "PUT",
1138
+ url: "/v1.1/{project_id}/clusters/{cluster_id}/cdm/link/{link_name}",
1139
+ contentType: "application/json;charset=UTF-8",
1140
+ queryParams: {},
1141
+ pathParams: {},
1142
+ headers: {},
1143
+ data: {}
1144
+ };
1145
+ const localVarHeaderParameter = {};
1146
+ let body;
1147
+ let clusterId;
1148
+ let linkName;
1149
+ if (updateLinkRequest !== null && updateLinkRequest !== undefined) {
1150
+ if (updateLinkRequest instanceof UpdateLinkRequest_1.UpdateLinkRequest) {
1151
+ clusterId = updateLinkRequest.clusterId;
1152
+ linkName = updateLinkRequest.linkName;
1153
+ body = updateLinkRequest.body;
1154
+ }
1155
+ else {
1156
+ clusterId = updateLinkRequest['cluster_id'];
1157
+ linkName = updateLinkRequest['link_name'];
1158
+ body = updateLinkRequest['body'];
1159
+ }
1160
+ }
1161
+ if (clusterId === null || clusterId === undefined) {
1162
+ throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling updateLink.');
1163
+ }
1164
+ if (linkName === null || linkName === undefined) {
1165
+ throw new RequiredError('linkName', 'Required parameter linkName was null or undefined when calling updateLink.');
1166
+ }
1167
+ if (body === null || body === undefined) {
1168
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
1169
+ }
1170
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
1171
+ options.data = body !== undefined ? body : {};
1172
+ options.pathParams = { 'cluster_id': clusterId, 'link_name': linkName, };
1173
+ options.headers = localVarHeaderParameter;
1174
+ return options;
1175
+ },
1176
+ };
1177
+ };
1178
+ exports.ParamCreater = ParamCreater;
1179
+ function newClient(client) {
1180
+ return new CdmClient(client);
1181
+ }
1182
+ /**
1183
+ *
1184
+ * @export
1185
+ * @class RequiredError
1186
+ * @extends {Error}
1187
+ */
1188
+ class RequiredError extends Error {
1189
+ constructor(field, msg) {
1190
+ super(msg);
1191
+ this.field = field;
1192
+ this.name = "RequiredError";
1193
+ }
1194
+ }
1195
+ exports.RequiredError = RequiredError;
1196
+ //# sourceMappingURL=CdmClient.js.map