@huaweicloud/huaweicloud-sdk-metastudio 3.1.175 → 3.1.176

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 (370) hide show
  1. package/package.json +2 -2
  2. package/v1/MetaStudioClient.d.ts +652 -193
  3. package/v1/MetaStudioClient.d.ts.map +1 -1
  4. package/v1/MetaStudioClient.js +1821 -639
  5. package/v1/MetaStudioClient.js.map +1 -1
  6. package/v1/model/AllocateSpResourceInfo.d.ts +32 -0
  7. package/v1/model/AllocateSpResourceInfo.d.ts.map +1 -0
  8. package/v1/model/AllocateSpResourceInfo.js +79 -0
  9. package/v1/model/AllocateSpResourceInfo.js.map +1 -0
  10. package/v1/model/AllocateSpResourceSummaryInfo.d.ts +20 -0
  11. package/v1/model/AllocateSpResourceSummaryInfo.d.ts.map +1 -0
  12. package/v1/model/AllocateSpResourceSummaryInfo.js +49 -0
  13. package/v1/model/AllocateSpResourceSummaryInfo.js.map +1 -0
  14. package/v1/model/BillResourceType.d.ts +4 -0
  15. package/v1/model/BillResourceType.d.ts.map +1 -0
  16. package/v1/model/BillResourceType.js +9 -0
  17. package/v1/model/BillResourceType.js.map +1 -0
  18. package/v1/model/BillResources.d.ts +13 -0
  19. package/v1/model/BillResources.d.ts.map +1 -0
  20. package/v1/model/BillResources.js +29 -0
  21. package/v1/model/BillResources.js.map +1 -0
  22. package/v1/model/BindAssetResourceReq.d.ts +12 -0
  23. package/v1/model/BindAssetResourceReq.d.ts.map +1 -0
  24. package/v1/model/BindAssetResourceReq.js +29 -0
  25. package/v1/model/BindAssetResourceReq.js.map +1 -0
  26. package/v1/model/BindUserAssetResourceRequest.d.ts +19 -0
  27. package/v1/model/BindUserAssetResourceRequest.d.ts.map +1 -0
  28. package/v1/model/BindUserAssetResourceRequest.js +43 -0
  29. package/v1/model/BindUserAssetResourceRequest.js.map +1 -0
  30. package/v1/model/BindUserAssetResourceResponse.d.ts +9 -0
  31. package/v1/model/BindUserAssetResourceResponse.d.ts.map +1 -0
  32. package/v1/model/BindUserAssetResourceResponse.js +21 -0
  33. package/v1/model/BindUserAssetResourceResponse.js.map +1 -0
  34. package/v1/model/CollectionInfo.d.ts +19 -0
  35. package/v1/model/CollectionInfo.d.ts.map +1 -0
  36. package/v1/model/CollectionInfo.js +37 -0
  37. package/v1/model/CollectionInfo.js.map +1 -0
  38. package/v1/model/Create2dModelTrainingJobReq.d.ts +14 -1
  39. package/v1/model/Create2dModelTrainingJobReq.d.ts.map +1 -1
  40. package/v1/model/Create2dModelTrainingJobReq.js +31 -0
  41. package/v1/model/Create2dModelTrainingJobReq.js.map +1 -1
  42. package/v1/model/CreateTtsOnceCodeRequest.d.ts +24 -0
  43. package/v1/model/CreateTtsOnceCodeRequest.d.ts.map +1 -0
  44. package/v1/model/{CreateTtsaRequest.js → CreateTtsOnceCodeRequest.js} +14 -8
  45. package/v1/model/CreateTtsOnceCodeRequest.js.map +1 -0
  46. package/v1/model/CreateTtsOnceCodeResponse.d.ts +9 -0
  47. package/v1/model/CreateTtsOnceCodeResponse.d.ts.map +1 -0
  48. package/v1/model/CreateTtsOnceCodeResponse.js +21 -0
  49. package/v1/model/CreateTtsOnceCodeResponse.js.map +1 -0
  50. package/v1/model/CreateUserQuotaInfo.d.ts +11 -0
  51. package/v1/model/CreateUserQuotaInfo.d.ts.map +1 -0
  52. package/v1/model/CreateUserQuotaInfo.js +25 -0
  53. package/v1/model/CreateUserQuotaInfo.js.map +1 -0
  54. package/v1/model/CreateUserQuotasRequest.d.ts +19 -0
  55. package/v1/model/CreateUserQuotasRequest.d.ts.map +1 -0
  56. package/v1/model/CreateUserQuotasRequest.js +43 -0
  57. package/v1/model/CreateUserQuotasRequest.js.map +1 -0
  58. package/v1/model/CreateUserQuotasResponse.d.ts +9 -0
  59. package/v1/model/CreateUserQuotasResponse.d.ts.map +1 -0
  60. package/v1/model/CreateUserQuotasResponse.js +21 -0
  61. package/v1/model/CreateUserQuotasResponse.js.map +1 -0
  62. package/v1/model/DeleteTenantUserConfigurationReq.d.ts +9 -0
  63. package/v1/model/DeleteTenantUserConfigurationReq.d.ts.map +1 -0
  64. package/v1/model/DeleteTenantUserConfigurationReq.js +19 -0
  65. package/v1/model/DeleteTenantUserConfigurationReq.js.map +1 -0
  66. package/v1/model/DeleteTenantUserConfigurationRequest.d.ts +19 -0
  67. package/v1/model/DeleteTenantUserConfigurationRequest.d.ts.map +1 -0
  68. package/v1/model/DeleteTenantUserConfigurationRequest.js +43 -0
  69. package/v1/model/DeleteTenantUserConfigurationRequest.js.map +1 -0
  70. package/v1/model/DeleteTenantUserConfigurationResponse.d.ts +9 -0
  71. package/v1/model/DeleteTenantUserConfigurationResponse.d.ts.map +1 -0
  72. package/v1/model/DeleteTenantUserConfigurationResponse.js +21 -0
  73. package/v1/model/DeleteTenantUserConfigurationResponse.js.map +1 -0
  74. package/v1/model/DeleteUserQuotasRequest.d.ts +20 -0
  75. package/v1/model/DeleteUserQuotasRequest.d.ts.map +1 -0
  76. package/v1/model/DeleteUserQuotasRequest.js +50 -0
  77. package/v1/model/DeleteUserQuotasRequest.js.map +1 -0
  78. package/v1/model/DeleteUserQuotasResponse.d.ts +9 -0
  79. package/v1/model/DeleteUserQuotasResponse.d.ts.map +1 -0
  80. package/v1/model/DeleteUserQuotasResponse.js +21 -0
  81. package/v1/model/DeleteUserQuotasResponse.js.map +1 -0
  82. package/v1/model/Download2dModelTraningEncryptFileRequest.d.ts +16 -0
  83. package/v1/model/Download2dModelTraningEncryptFileRequest.d.ts.map +1 -0
  84. package/v1/model/Download2dModelTraningEncryptFileRequest.js +42 -0
  85. package/v1/model/Download2dModelTraningEncryptFileRequest.js.map +1 -0
  86. package/v1/model/Download2dModelTraningEncryptFileResponse.d.ts +5 -0
  87. package/v1/model/Download2dModelTraningEncryptFileResponse.d.ts.map +1 -0
  88. package/v1/model/Download2dModelTraningEncryptFileResponse.js +11 -0
  89. package/v1/model/Download2dModelTraningEncryptFileResponse.js.map +1 -0
  90. package/v1/model/Execute2dModelTrainingCommandByUserReq.d.ts +7 -1
  91. package/v1/model/Execute2dModelTrainingCommandByUserReq.d.ts.map +1 -1
  92. package/v1/model/Execute2dModelTrainingCommandByUserReq.js +12 -0
  93. package/v1/model/Execute2dModelTrainingCommandByUserReq.js.map +1 -1
  94. package/v1/model/Execute2dModelTrainingCommandByUserResponse.d.ts +5 -0
  95. package/v1/model/Execute2dModelTrainingCommandByUserResponse.d.ts.map +1 -1
  96. package/v1/model/Execute2dModelTrainingCommandByUserResponse.js +10 -0
  97. package/v1/model/Execute2dModelTrainingCommandByUserResponse.js.map +1 -1
  98. package/v1/model/ExecuteTransferAssetActionRequest.d.ts +25 -0
  99. package/v1/model/ExecuteTransferAssetActionRequest.d.ts.map +1 -0
  100. package/v1/model/ExecuteTransferAssetActionRequest.js +59 -0
  101. package/v1/model/ExecuteTransferAssetActionRequest.js.map +1 -0
  102. package/v1/model/ExecuteTransferAssetActionResponse.d.ts +14 -0
  103. package/v1/model/ExecuteTransferAssetActionResponse.d.ts.map +1 -0
  104. package/v1/model/ExecuteTransferAssetActionResponse.js +31 -0
  105. package/v1/model/ExecuteTransferAssetActionResponse.js.map +1 -0
  106. package/v1/model/List2dModelTrainingJobRequest.d.ts +22 -2
  107. package/v1/model/List2dModelTrainingJobRequest.d.ts.map +1 -1
  108. package/v1/model/List2dModelTrainingJobRequest.js +54 -4
  109. package/v1/model/List2dModelTrainingJobRequest.js.map +1 -1
  110. package/v1/model/ListTransferAssetJobsRequest.d.ts +37 -0
  111. package/v1/model/ListTransferAssetJobsRequest.d.ts.map +1 -0
  112. package/v1/model/ListTransferAssetJobsRequest.js +75 -0
  113. package/v1/model/ListTransferAssetJobsRequest.js.map +1 -0
  114. package/v1/model/ListTransferAssetJobsResponse.d.ts +14 -0
  115. package/v1/model/ListTransferAssetJobsResponse.d.ts.map +1 -0
  116. package/v1/model/{CreateFacialAnimationsResponse.js → ListTransferAssetJobsResponse.js} +9 -11
  117. package/v1/model/ListTransferAssetJobsResponse.js.map +1 -0
  118. package/v1/model/ListUserQuotaDetail.d.ts +36 -0
  119. package/v1/model/ListUserQuotaDetail.d.ts.map +1 -0
  120. package/v1/model/ListUserQuotaDetail.js +89 -0
  121. package/v1/model/ListUserQuotaDetail.js.map +1 -0
  122. package/v1/model/ListUserQuotasRequest.d.ts +24 -0
  123. package/v1/model/ListUserQuotasRequest.d.ts.map +1 -0
  124. package/v1/model/{ListTtsaJobsRequest.js → ListUserQuotasRequest.js} +14 -14
  125. package/v1/model/ListUserQuotasRequest.js.map +1 -0
  126. package/v1/model/ListUserQuotasResponse.d.ts +14 -0
  127. package/v1/model/ListUserQuotasResponse.d.ts.map +1 -0
  128. package/v1/model/{ListTtsaJobsResponse.js → ListUserQuotasResponse.js} +8 -14
  129. package/v1/model/ListUserQuotasResponse.js.map +1 -0
  130. package/v1/model/LiveNotifyConfig.d.ts +9 -0
  131. package/v1/model/LiveNotifyConfig.d.ts.map +1 -0
  132. package/v1/model/LiveNotifyConfig.js +19 -0
  133. package/v1/model/LiveNotifyConfig.js.map +1 -0
  134. package/v1/model/OperationLogInfo.d.ts +47 -1
  135. package/v1/model/OperationLogInfo.d.ts.map +1 -1
  136. package/v1/model/OperationLogInfo.js +52 -0
  137. package/v1/model/OperationLogInfo.js.map +1 -1
  138. package/v1/model/ServiceSharedConfig.d.ts +14 -0
  139. package/v1/model/ServiceSharedConfig.d.ts.map +1 -0
  140. package/v1/model/ServiceSharedConfig.js +33 -0
  141. package/v1/model/ServiceSharedConfig.js.map +1 -0
  142. package/v1/model/SetTenantNoticeConfigurationReq.d.ts +12 -0
  143. package/v1/model/SetTenantNoticeConfigurationReq.d.ts.map +1 -0
  144. package/v1/model/SetTenantNoticeConfigurationReq.js +28 -0
  145. package/v1/model/SetTenantNoticeConfigurationReq.js.map +1 -0
  146. package/v1/model/SetTenantNoticeConfigurationRequest.d.ts +19 -0
  147. package/v1/model/SetTenantNoticeConfigurationRequest.d.ts.map +1 -0
  148. package/v1/model/SetTenantNoticeConfigurationRequest.js +43 -0
  149. package/v1/model/SetTenantNoticeConfigurationRequest.js.map +1 -0
  150. package/v1/model/SetTenantNoticeConfigurationResponse.d.ts +9 -0
  151. package/v1/model/SetTenantNoticeConfigurationResponse.d.ts.map +1 -0
  152. package/v1/model/SetTenantNoticeConfigurationResponse.js +21 -0
  153. package/v1/model/SetTenantNoticeConfigurationResponse.js.map +1 -0
  154. package/v1/model/SetTenantUserConfigurationReq.d.ts +9 -0
  155. package/v1/model/SetTenantUserConfigurationReq.d.ts.map +1 -0
  156. package/v1/model/SetTenantUserConfigurationReq.js +19 -0
  157. package/v1/model/SetTenantUserConfigurationReq.js.map +1 -0
  158. package/v1/model/SetTenantUserConfigurationRequest.d.ts +19 -0
  159. package/v1/model/SetTenantUserConfigurationRequest.d.ts.map +1 -0
  160. package/v1/model/SetTenantUserConfigurationRequest.js +43 -0
  161. package/v1/model/SetTenantUserConfigurationRequest.js.map +1 -0
  162. package/v1/model/SetTenantUserConfigurationResponse.d.ts +9 -0
  163. package/v1/model/SetTenantUserConfigurationResponse.d.ts.map +1 -0
  164. package/v1/model/SetTenantUserConfigurationResponse.js +21 -0
  165. package/v1/model/SetTenantUserConfigurationResponse.js.map +1 -0
  166. package/v1/model/Show2dModelTrainingJobResponse.d.ts +90 -6
  167. package/v1/model/Show2dModelTrainingJobResponse.d.ts.map +1 -1
  168. package/v1/model/Show2dModelTrainingJobResponse.js +167 -11
  169. package/v1/model/Show2dModelTrainingJobResponse.js.map +1 -1
  170. package/v1/model/ShowLivePlatformAccessTypeRequest.d.ts +4 -0
  171. package/v1/model/ShowLivePlatformAccessTypeRequest.d.ts.map +1 -1
  172. package/v1/model/ShowLivePlatformAccessTypeRequest.js +8 -0
  173. package/v1/model/ShowLivePlatformAccessTypeRequest.js.map +1 -1
  174. package/v1/model/ShowSmartLiveUserConfigRequest.d.ts +16 -0
  175. package/v1/model/ShowSmartLiveUserConfigRequest.d.ts.map +1 -0
  176. package/v1/model/ShowSmartLiveUserConfigRequest.js +39 -0
  177. package/v1/model/ShowSmartLiveUserConfigRequest.js.map +1 -0
  178. package/v1/model/ShowSmartLiveUserConfigResponse.d.ts +24 -0
  179. package/v1/model/ShowSmartLiveUserConfigResponse.d.ts.map +1 -0
  180. package/v1/model/ShowSmartLiveUserConfigResponse.js +51 -0
  181. package/v1/model/ShowSmartLiveUserConfigResponse.js.map +1 -0
  182. package/v1/model/ShowTenantAssginRecordRequest.d.ts +8 -0
  183. package/v1/model/ShowTenantAssginRecordRequest.d.ts.map +1 -0
  184. package/v1/model/ShowTenantAssginRecordRequest.js +17 -0
  185. package/v1/model/ShowTenantAssginRecordRequest.js.map +1 -0
  186. package/v1/model/ShowTenantAssginRecordResponse.d.ts +33 -0
  187. package/v1/model/ShowTenantAssginRecordResponse.d.ts.map +1 -0
  188. package/v1/model/ShowTenantAssginRecordResponse.js +75 -0
  189. package/v1/model/ShowTenantAssginRecordResponse.js.map +1 -0
  190. package/v1/model/ShowTenantNoticeConfigurationRequest.d.ts +22 -0
  191. package/v1/model/ShowTenantNoticeConfigurationRequest.d.ts.map +1 -0
  192. package/v1/model/ShowTenantNoticeConfigurationRequest.js +52 -0
  193. package/v1/model/ShowTenantNoticeConfigurationRequest.js.map +1 -0
  194. package/v1/model/ShowTenantNoticeConfigurationResponse.d.ts +17 -0
  195. package/v1/model/ShowTenantNoticeConfigurationResponse.d.ts.map +1 -0
  196. package/v1/model/ShowTenantNoticeConfigurationResponse.js +39 -0
  197. package/v1/model/ShowTenantNoticeConfigurationResponse.js.map +1 -0
  198. package/v1/model/ShowTenantServiceConfigsRequest.d.ts +16 -0
  199. package/v1/model/ShowTenantServiceConfigsRequest.d.ts.map +1 -0
  200. package/v1/model/ShowTenantServiceConfigsRequest.js +39 -0
  201. package/v1/model/ShowTenantServiceConfigsRequest.js.map +1 -0
  202. package/v1/model/ShowTenantServiceConfigsResponse.d.ts +28 -0
  203. package/v1/model/ShowTenantServiceConfigsResponse.d.ts.map +1 -0
  204. package/v1/model/ShowTenantServiceConfigsResponse.js +61 -0
  205. package/v1/model/ShowTenantServiceConfigsResponse.js.map +1 -0
  206. package/v1/model/ShowTenantUserConfigurationRequest.d.ts +20 -0
  207. package/v1/model/ShowTenantUserConfigurationRequest.d.ts.map +1 -0
  208. package/v1/model/{ListTtsaDataRequest.js → ShowTenantUserConfigurationRequest.js} +9 -16
  209. package/v1/model/ShowTenantUserConfigurationRequest.js.map +1 -0
  210. package/v1/model/ShowTenantUserConfigurationResponse.d.ts +14 -0
  211. package/v1/model/ShowTenantUserConfigurationResponse.d.ts.map +1 -0
  212. package/v1/model/ShowTenantUserConfigurationResponse.js +31 -0
  213. package/v1/model/ShowTenantUserConfigurationResponse.js.map +1 -0
  214. package/v1/model/ShowTransferAssetJobRequest.d.ts +20 -0
  215. package/v1/model/ShowTransferAssetJobRequest.d.ts.map +1 -0
  216. package/v1/model/ShowTransferAssetJobRequest.js +50 -0
  217. package/v1/model/ShowTransferAssetJobRequest.js.map +1 -0
  218. package/v1/model/ShowTransferAssetJobResponse.d.ts +69 -0
  219. package/v1/model/ShowTransferAssetJobResponse.d.ts.map +1 -0
  220. package/v1/model/ShowTransferAssetJobResponse.js +145 -0
  221. package/v1/model/ShowTransferAssetJobResponse.js.map +1 -0
  222. package/v1/model/SpTenantInfo.d.ts +28 -0
  223. package/v1/model/SpTenantInfo.d.ts.map +1 -0
  224. package/v1/model/SpTenantInfo.js +63 -0
  225. package/v1/model/SpTenantInfo.js.map +1 -0
  226. package/v1/model/SubAccountControlConfig.d.ts +12 -0
  227. package/v1/model/SubAccountControlConfig.d.ts.map +1 -0
  228. package/v1/model/SubAccountControlConfig.js +29 -0
  229. package/v1/model/SubAccountControlConfig.js.map +1 -0
  230. package/v1/model/SubTrainingJobInfoDto.d.ts +26 -0
  231. package/v1/model/SubTrainingJobInfoDto.d.ts.map +1 -0
  232. package/v1/model/SubTrainingJobInfoDto.js +63 -0
  233. package/v1/model/SubTrainingJobInfoDto.js.map +1 -0
  234. package/v1/model/TenantLogConfig.d.ts +12 -0
  235. package/v1/model/TenantLogConfig.d.ts.map +1 -0
  236. package/v1/model/TenantLogConfig.js +29 -0
  237. package/v1/model/TenantLogConfig.js.map +1 -0
  238. package/v1/model/TenantServiceConfigsInfo.d.ts +23 -0
  239. package/v1/model/TenantServiceConfigsInfo.d.ts.map +1 -0
  240. package/v1/model/TenantServiceConfigsInfo.js +49 -0
  241. package/v1/model/TenantServiceConfigsInfo.js.map +1 -0
  242. package/v1/model/TrainingAllocatedResource.d.ts +2 -1
  243. package/v1/model/TrainingAllocatedResource.d.ts.map +1 -1
  244. package/v1/model/TrainingAllocatedResource.js +1 -0
  245. package/v1/model/TrainingAllocatedResource.js.map +1 -1
  246. package/v1/model/TrainingJobBasicInfo.d.ts +36 -2
  247. package/v1/model/TrainingJobBasicInfo.d.ts.map +1 -1
  248. package/v1/model/TrainingJobBasicInfo.js +64 -0
  249. package/v1/model/TrainingJobBasicInfo.js.map +1 -1
  250. package/v1/model/TransAcceptResponse.d.ts +13 -0
  251. package/v1/model/TransAcceptResponse.d.ts.map +1 -0
  252. package/v1/model/TransAcceptResponse.js +29 -0
  253. package/v1/model/TransAcceptResponse.js.map +1 -0
  254. package/v1/model/TransJobRejectBody.d.ts +6 -0
  255. package/v1/model/TransJobRejectBody.d.ts.map +1 -0
  256. package/v1/model/TransJobRejectBody.js +13 -0
  257. package/v1/model/TransJobRejectBody.js.map +1 -0
  258. package/v1/model/TransferAssetJobInfo.d.ts +64 -0
  259. package/v1/model/TransferAssetJobInfo.d.ts.map +1 -0
  260. package/v1/model/TransferAssetJobInfo.js +133 -0
  261. package/v1/model/TransferAssetJobInfo.js.map +1 -0
  262. package/v1/model/TransferAssetReq.d.ts +35 -0
  263. package/v1/model/TransferAssetReq.d.ts.map +1 -0
  264. package/v1/model/TransferAssetReq.js +85 -0
  265. package/v1/model/TransferAssetReq.js.map +1 -0
  266. package/v1/model/TransferAssetRequest.d.ts +19 -0
  267. package/v1/model/TransferAssetRequest.d.ts.map +1 -0
  268. package/v1/model/TransferAssetRequest.js +43 -0
  269. package/v1/model/TransferAssetRequest.js.map +1 -0
  270. package/v1/model/{CreateTtsaResponse.d.ts → TransferAssetResponse.d.ts} +4 -4
  271. package/v1/model/TransferAssetResponse.d.ts.map +1 -0
  272. package/v1/model/{CreateTtsaResponse.js → TransferAssetResponse.js} +4 -4
  273. package/v1/model/TransferAssetResponse.js.map +1 -0
  274. package/v1/model/TransferTypeEnum.d.ts +4 -0
  275. package/v1/model/TransferTypeEnum.d.ts.map +1 -0
  276. package/v1/model/TransferTypeEnum.js +9 -0
  277. package/v1/model/TransferTypeEnum.js.map +1 -0
  278. package/v1/model/Update2dModelTrainingJobReq.d.ts +9 -0
  279. package/v1/model/Update2dModelTrainingJobReq.d.ts.map +1 -1
  280. package/v1/model/Update2dModelTrainingJobReq.js +20 -0
  281. package/v1/model/Update2dModelTrainingJobReq.js.map +1 -1
  282. package/v1/model/UpdateTenantServiceConfigsReq.d.ts +13 -0
  283. package/v1/model/UpdateTenantServiceConfigsReq.d.ts.map +1 -0
  284. package/v1/model/UpdateTenantServiceConfigsReq.js +29 -0
  285. package/v1/model/UpdateTenantServiceConfigsReq.js.map +1 -0
  286. package/v1/model/UpdateTenantServiceConfigsRequest.d.ts +19 -0
  287. package/v1/model/UpdateTenantServiceConfigsRequest.d.ts.map +1 -0
  288. package/v1/model/UpdateTenantServiceConfigsRequest.js +43 -0
  289. package/v1/model/UpdateTenantServiceConfigsRequest.js.map +1 -0
  290. package/v1/model/UpdateTenantServiceConfigsResponse.d.ts +32 -0
  291. package/v1/model/UpdateTenantServiceConfigsResponse.d.ts.map +1 -0
  292. package/v1/model/UpdateTenantServiceConfigsResponse.js +71 -0
  293. package/v1/model/UpdateTenantServiceConfigsResponse.js.map +1 -0
  294. package/v1/model/UpdateUserQuotaInfo.d.ts +7 -0
  295. package/v1/model/UpdateUserQuotaInfo.d.ts.map +1 -0
  296. package/v1/model/UpdateUserQuotaInfo.js +14 -0
  297. package/v1/model/UpdateUserQuotaInfo.js.map +1 -0
  298. package/v1/model/UpdateUserQuotasRequest.d.ts +23 -0
  299. package/v1/model/UpdateUserQuotasRequest.d.ts.map +1 -0
  300. package/v1/model/UpdateUserQuotasRequest.js +54 -0
  301. package/v1/model/UpdateUserQuotasRequest.js.map +1 -0
  302. package/v1/model/UpdateUserQuotasResponse.d.ts +9 -0
  303. package/v1/model/UpdateUserQuotasResponse.d.ts.map +1 -0
  304. package/v1/model/UpdateUserQuotasResponse.js +21 -0
  305. package/v1/model/UpdateUserQuotasResponse.js.map +1 -0
  306. package/v1/model/UserQuotaDetail.d.ts +36 -0
  307. package/v1/model/UserQuotaDetail.d.ts.map +1 -0
  308. package/v1/model/UserQuotaDetail.js +89 -0
  309. package/v1/model/UserQuotaDetail.js.map +1 -0
  310. package/v1/model/UserQuotaInfo.d.ts +13 -0
  311. package/v1/model/UserQuotaInfo.d.ts.map +1 -0
  312. package/v1/model/UserQuotaInfo.js +29 -0
  313. package/v1/model/UserQuotaInfo.js.map +1 -0
  314. package/v1/public-api.d.ts +67 -15
  315. package/v1/public-api.d.ts.map +1 -1
  316. package/v1/public-api.js +67 -15
  317. package/v1/public-api.js.map +1 -1
  318. package/v1/model/AnimationItem.d.ts +0 -10
  319. package/v1/model/AnimationItem.d.ts.map +0 -1
  320. package/v1/model/AnimationItem.js +0 -23
  321. package/v1/model/AnimationItem.js.map +0 -1
  322. package/v1/model/CreateFASReq.d.ts +0 -14
  323. package/v1/model/CreateFASReq.d.ts.map +0 -1
  324. package/v1/model/CreateFASReq.js +0 -35
  325. package/v1/model/CreateFASReq.js.map +0 -1
  326. package/v1/model/CreateFacialAnimationsRequest.d.ts +0 -7
  327. package/v1/model/CreateFacialAnimationsRequest.d.ts.map +0 -1
  328. package/v1/model/CreateFacialAnimationsRequest.js +0 -13
  329. package/v1/model/CreateFacialAnimationsRequest.js.map +0 -1
  330. package/v1/model/CreateFacialAnimationsResponse.d.ts +0 -13
  331. package/v1/model/CreateFacialAnimationsResponse.d.ts.map +0 -1
  332. package/v1/model/CreateFacialAnimationsResponse.js.map +0 -1
  333. package/v1/model/CreateTTSAReq.d.ts +0 -54
  334. package/v1/model/CreateTTSAReq.d.ts.map +0 -1
  335. package/v1/model/CreateTTSAReq.js +0 -109
  336. package/v1/model/CreateTTSAReq.js.map +0 -1
  337. package/v1/model/CreateTtsaRequest.d.ts +0 -23
  338. package/v1/model/CreateTtsaRequest.d.ts.map +0 -1
  339. package/v1/model/CreateTtsaRequest.js.map +0 -1
  340. package/v1/model/CreateTtsaResponse.d.ts.map +0 -1
  341. package/v1/model/CreateTtsaResponse.js.map +0 -1
  342. package/v1/model/ListFacialAnimationsDataRequest.d.ts +0 -8
  343. package/v1/model/ListFacialAnimationsDataRequest.d.ts.map +0 -1
  344. package/v1/model/ListFacialAnimationsDataRequest.js +0 -20
  345. package/v1/model/ListFacialAnimationsDataRequest.js.map +0 -1
  346. package/v1/model/ListFacialAnimationsDataResponse.d.ts +0 -24
  347. package/v1/model/ListFacialAnimationsDataResponse.d.ts.map +0 -1
  348. package/v1/model/ListFacialAnimationsDataResponse.js +0 -45
  349. package/v1/model/ListFacialAnimationsDataResponse.js.map +0 -1
  350. package/v1/model/ListTtsaDataRequest.d.ts +0 -22
  351. package/v1/model/ListTtsaDataRequest.d.ts.map +0 -1
  352. package/v1/model/ListTtsaDataRequest.js.map +0 -1
  353. package/v1/model/ListTtsaDataResponse.d.ts +0 -33
  354. package/v1/model/ListTtsaDataResponse.d.ts.map +0 -1
  355. package/v1/model/ListTtsaDataResponse.js +0 -71
  356. package/v1/model/ListTtsaDataResponse.js.map +0 -1
  357. package/v1/model/ListTtsaJobsRequest.d.ts +0 -24
  358. package/v1/model/ListTtsaJobsRequest.d.ts.map +0 -1
  359. package/v1/model/ListTtsaJobsRequest.js.map +0 -1
  360. package/v1/model/ListTtsaJobsResponse.d.ts +0 -16
  361. package/v1/model/ListTtsaJobsResponse.d.ts.map +0 -1
  362. package/v1/model/ListTtsaJobsResponse.js.map +0 -1
  363. package/v1/model/MotionItem.d.ts +0 -12
  364. package/v1/model/MotionItem.d.ts.map +0 -1
  365. package/v1/model/MotionItem.js +0 -25
  366. package/v1/model/MotionItem.js.map +0 -1
  367. package/v1/model/TTSAJob.d.ts +0 -44
  368. package/v1/model/TTSAJob.d.ts.map +0 -1
  369. package/v1/model/TTSAJob.js +0 -83
  370. package/v1/model/TTSAJob.js.map +0 -1
@@ -9,6 +9,7 @@ const form_data_1 = __importDefault(require("form-data"));
9
9
  const BatchConfirmLiveCommandsRequest_1 = require("./model/BatchConfirmLiveCommandsRequest");
10
10
  const BatchDeletePacifyWordsRequest_1 = require("./model/BatchDeletePacifyWordsRequest");
11
11
  const BatchExecuteAssetActionRequest_1 = require("./model/BatchExecuteAssetActionRequest");
12
+ const BindUserAssetResourceRequest_1 = require("./model/BindUserAssetResourceRequest");
12
13
  const Cancel2DDigitalHumanVideoRequest_1 = require("./model/Cancel2DDigitalHumanVideoRequest");
13
14
  const CancelPhotoDigitalHumanVideoRequest_1 = require("./model/CancelPhotoDigitalHumanVideoRequest");
14
15
  const CheckRecallKnowledgeLibraryRequest_1 = require("./model/CheckRecallKnowledgeLibraryRequest");
@@ -33,7 +34,6 @@ const CreateDialogUrlRequest_1 = require("./model/CreateDialogUrlRequest");
33
34
  const CreateDigitalAssetRequest_1 = require("./model/CreateDigitalAssetRequest");
34
35
  const CreateDigitalHumanBusinessCardRequest_1 = require("./model/CreateDigitalHumanBusinessCardRequest");
35
36
  const CreateDocumentRequest_1 = require("./model/CreateDocumentRequest");
36
- const CreateFacialAnimationsRequest_1 = require("./model/CreateFacialAnimationsRequest");
37
37
  const CreateFileRequest_1 = require("./model/CreateFileRequest");
38
38
  const CreateHotQuestionRequest_1 = require("./model/CreateHotQuestionRequest");
39
39
  const CreateHotWordsRequest_1 = require("./model/CreateHotWordsRequest");
@@ -72,9 +72,10 @@ const CreateTrainingBasicJobRequest_1 = require("./model/CreateTrainingBasicJobR
72
72
  const CreateTrainingMiddleJobRequest_1 = require("./model/CreateTrainingMiddleJobRequest");
73
73
  const CreateTrainingThirdPartyJobRequest_1 = require("./model/CreateTrainingThirdPartyJobRequest");
74
74
  const CreateTtsAuditionRequest_1 = require("./model/CreateTtsAuditionRequest");
75
- const CreateTtsaRequest_1 = require("./model/CreateTtsaRequest");
75
+ const CreateTtsOnceCodeRequest_1 = require("./model/CreateTtsOnceCodeRequest");
76
76
  const CreateTtscVocabularyConfigsRequest_1 = require("./model/CreateTtscVocabularyConfigsRequest");
77
77
  const CreateTtscVocabularyGroupsRequest_1 = require("./model/CreateTtscVocabularyGroupsRequest");
78
+ const CreateUserQuotasRequest_1 = require("./model/CreateUserQuotasRequest");
78
79
  const CreateVideoMotionCaptureJobRequest_1 = require("./model/CreateVideoMotionCaptureJobRequest");
79
80
  const CreateVideoScriptsRequest_1 = require("./model/CreateVideoScriptsRequest");
80
81
  const CreateWelcomeSpeechRequest_1 = require("./model/CreateWelcomeSpeechRequest");
@@ -109,16 +110,20 @@ const DeleteRoleRequest_1 = require("./model/DeleteRoleRequest");
109
110
  const DeleteSmartChatRoomRequest_1 = require("./model/DeleteSmartChatRoomRequest");
110
111
  const DeleteSmartLiveRoomRequest_1 = require("./model/DeleteSmartLiveRoomRequest");
111
112
  const DeleteTaskRequest_1 = require("./model/DeleteTaskRequest");
113
+ const DeleteTenantUserConfigurationRequest_1 = require("./model/DeleteTenantUserConfigurationRequest");
112
114
  const DeleteTtscVocabularyConfigsRequest_1 = require("./model/DeleteTtscVocabularyConfigsRequest");
113
115
  const DeleteTtscVocabularyGroupsRequest_1 = require("./model/DeleteTtscVocabularyGroupsRequest");
116
+ const DeleteUserQuotasRequest_1 = require("./model/DeleteUserQuotasRequest");
114
117
  const DeleteVideoScriptRequest_1 = require("./model/DeleteVideoScriptRequest");
115
118
  const DeleteVoiceTrainingJobRequest_1 = require("./model/DeleteVoiceTrainingJobRequest");
116
119
  const DeleteWelcomeSpeechRequest_1 = require("./model/DeleteWelcomeSpeechRequest");
120
+ const Download2dModelTraningEncryptFileRequest_1 = require("./model/Download2dModelTraningEncryptFileRequest");
117
121
  const DownloadDocumentRequest_1 = require("./model/DownloadDocumentRequest");
118
122
  const DownloadResultFileRequest_1 = require("./model/DownloadResultFileRequest");
119
123
  const DownloadTemplateRequest_1 = require("./model/DownloadTemplateRequest");
120
124
  const Execute2dModelTrainingCommandByUserRequest_1 = require("./model/Execute2dModelTrainingCommandByUserRequest");
121
125
  const ExecuteSmartLiveCommandRequest_1 = require("./model/ExecuteSmartLiveCommandRequest");
126
+ const ExecuteTransferAssetActionRequest_1 = require("./model/ExecuteTransferAssetActionRequest");
122
127
  const ExecuteVideoMotionCaptureCommandRequest_1 = require("./model/ExecuteVideoMotionCaptureCommandRequest");
123
128
  const ExportKnowledgeSkillRequest_1 = require("./model/ExportKnowledgeSkillRequest");
124
129
  const ExportResourceRequest_1 = require("./model/ExportResourceRequest");
@@ -131,7 +136,6 @@ const ListDigitalHumanBusinessCardRequest_1 = require("./model/ListDigitalHumanB
131
136
  const ListDigitalHumanVideoRequest_1 = require("./model/ListDigitalHumanVideoRequest");
132
137
  const ListDocumentInfoRequest_1 = require("./model/ListDocumentInfoRequest");
133
138
  const ListDocumentSegmentRequest_1 = require("./model/ListDocumentSegmentRequest");
134
- const ListFacialAnimationsDataRequest_1 = require("./model/ListFacialAnimationsDataRequest");
135
139
  const ListHotQuestionRequest_1 = require("./model/ListHotQuestionRequest");
136
140
  const ListHotWordsRequest_1 = require("./model/ListHotWordsRequest");
137
141
  const ListInsertCommandsRequest_1 = require("./model/ListInsertCommandsRequest");
@@ -164,10 +168,10 @@ const ListSmartLiveRuleCommandsRequest_1 = require("./model/ListSmartLiveRuleCom
164
168
  const ListSmartLiveScriptCommandsRequest_1 = require("./model/ListSmartLiveScriptCommandsRequest");
165
169
  const ListStylesRequest_1 = require("./model/ListStylesRequest");
166
170
  const ListTenantResourcesRequest_1 = require("./model/ListTenantResourcesRequest");
167
- const ListTtsaDataRequest_1 = require("./model/ListTtsaDataRequest");
168
- const ListTtsaJobsRequest_1 = require("./model/ListTtsaJobsRequest");
171
+ const ListTransferAssetJobsRequest_1 = require("./model/ListTransferAssetJobsRequest");
169
172
  const ListTtscVocabularyConfigsRequest_1 = require("./model/ListTtscVocabularyConfigsRequest");
170
173
  const ListTtscVocabularyGroupsRequest_1 = require("./model/ListTtscVocabularyGroupsRequest");
174
+ const ListUserQuotasRequest_1 = require("./model/ListUserQuotasRequest");
171
175
  const ListVideoMotionCaptureJobsRequest_1 = require("./model/ListVideoMotionCaptureJobsRequest");
172
176
  const ListVideoScriptsRequest_1 = require("./model/ListVideoScriptsRequest");
173
177
  const ListVoiceTrainingJobRequest_1 = require("./model/ListVoiceTrainingJobRequest");
@@ -181,6 +185,8 @@ const SaveTtscVocabularyConfigsRequest_1 = require("./model/SaveTtscVocabularyCo
181
185
  const SearchTaskRequest_1 = require("./model/SearchTaskRequest");
182
186
  const SetJobBatchNameRequest_1 = require("./model/SetJobBatchNameRequest");
183
187
  const SetProductAssetRequest_1 = require("./model/SetProductAssetRequest");
188
+ const SetTenantNoticeConfigurationRequest_1 = require("./model/SetTenantNoticeConfigurationRequest");
189
+ const SetTenantUserConfigurationRequest_1 = require("./model/SetTenantUserConfigurationRequest");
184
190
  const SetTtscGroupAssetsRequest_1 = require("./model/SetTtscGroupAssetsRequest");
185
191
  const Show2DDigitalHumanVideoRequest_1 = require("./model/Show2DDigitalHumanVideoRequest");
186
192
  const Show2dModelTrainingJobRequest_1 = require("./model/Show2dModelTrainingJobRequest");
@@ -230,10 +236,16 @@ const ShowSmartChatJobRequest_1 = require("./model/ShowSmartChatJobRequest");
230
236
  const ShowSmartChatRoomRequest_1 = require("./model/ShowSmartChatRoomRequest");
231
237
  const ShowSmartLiveRequest_1 = require("./model/ShowSmartLiveRequest");
232
238
  const ShowSmartLiveRoomRequest_1 = require("./model/ShowSmartLiveRoomRequest");
239
+ const ShowSmartLiveUserConfigRequest_1 = require("./model/ShowSmartLiveUserConfigRequest");
233
240
  const ShowSubtitleFileRequest_1 = require("./model/ShowSubtitleFileRequest");
234
241
  const ShowSummaryUsageDataRequest_1 = require("./model/ShowSummaryUsageDataRequest");
235
242
  const ShowTaskRequest_1 = require("./model/ShowTaskRequest");
243
+ const ShowTenantAssginRecordRequest_1 = require("./model/ShowTenantAssginRecordRequest");
244
+ const ShowTenantNoticeConfigurationRequest_1 = require("./model/ShowTenantNoticeConfigurationRequest");
245
+ const ShowTenantServiceConfigsRequest_1 = require("./model/ShowTenantServiceConfigsRequest");
246
+ const ShowTenantUserConfigurationRequest_1 = require("./model/ShowTenantUserConfigurationRequest");
236
247
  const ShowTrainingSegmentInfoRequest_1 = require("./model/ShowTrainingSegmentInfoRequest");
248
+ const ShowTransferAssetJobRequest_1 = require("./model/ShowTransferAssetJobRequest");
237
249
  const ShowTtsAuditionFileRequest_1 = require("./model/ShowTtsAuditionFileRequest");
238
250
  const ShowTtsJobRequest_1 = require("./model/ShowTtsJobRequest");
239
251
  const ShowTtsPhoneticSymbolRequest_1 = require("./model/ShowTtsPhoneticSymbolRequest");
@@ -254,6 +266,7 @@ const StartSmartLiveRequest_1 = require("./model/StartSmartLiveRequest");
254
266
  const StopSmartChatJobRequest_1 = require("./model/StopSmartChatJobRequest");
255
267
  const StopSmartLiveRequest_1 = require("./model/StopSmartLiveRequest");
256
268
  const StopVideoMotionCaptureJobRequest_1 = require("./model/StopVideoMotionCaptureJobRequest");
269
+ const TransferAssetRequest_1 = require("./model/TransferAssetRequest");
257
270
  const Update2dModelTrainingJobRequest_1 = require("./model/Update2dModelTrainingJobRequest");
258
271
  const UpdateActiveCodeRequest_1 = require("./model/UpdateActiveCodeRequest");
259
272
  const UpdateAudioRecordConfigRequest_1 = require("./model/UpdateAudioRecordConfigRequest");
@@ -289,7 +302,9 @@ const UpdateRoleRequest_1 = require("./model/UpdateRoleRequest");
289
302
  const UpdateSmartChatRoomRequest_1 = require("./model/UpdateSmartChatRoomRequest");
290
303
  const UpdateSmartLiveRoomRequest_1 = require("./model/UpdateSmartLiveRoomRequest");
291
304
  const UpdateSmartLiveUserConfigRequest_1 = require("./model/UpdateSmartLiveUserConfigRequest");
305
+ const UpdateTenantServiceConfigsRequest_1 = require("./model/UpdateTenantServiceConfigsRequest");
292
306
  const UpdateTtscVocabularyGroupsRequest_1 = require("./model/UpdateTtscVocabularyGroupsRequest");
307
+ const UpdateUserQuotasRequest_1 = require("./model/UpdateUserQuotasRequest");
293
308
  const UpdateVideoScriptRequest_1 = require("./model/UpdateVideoScriptRequest");
294
309
  const UpdateWelcomeSpeechRequest_1 = require("./model/UpdateWelcomeSpeechRequest");
295
310
  const UpdateWelcomeSpeechSwitchRequest_1 = require("./model/UpdateWelcomeSpeechSwitchRequest");
@@ -1011,6 +1026,27 @@ class MetaStudioClient {
1011
1026
  options['responseHeaders'] = ['X-Request-Id'];
1012
1027
  return this.hcClient.sendRequest(options);
1013
1028
  }
1029
+ /**
1030
+ * 转移资产任务控制
1031
+ *
1032
+ * Please refer to HUAWEI cloud API Explorer for details.
1033
+ *
1034
+ * @summary 转移资产任务控制
1035
+ * @param {string} jobId 任务ID。
1036
+ * @param {string} action 控制。 cancel:取消资产转移,仅转移发起方可调用。 accept:接受资产转移,仅转移接受方可调用。 accept_confirm:确认接受资产转移,仅转移接受方可调用,仅需要计费的转移需再次确认。 reject: 拒绝资产转移,仅转移接受方可调用。
1037
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
1038
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1039
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1040
+ * @param {TransJobRejectBody} [executeTransferAssetActionRequestBody] 拒绝理由
1041
+ * @param {*} [options] Override http request option.
1042
+ * @throws {RequiredError}
1043
+ */
1044
+ executeTransferAssetAction(executeTransferAssetActionRequest) {
1045
+ const options = (0, exports.ParamCreater)().executeTransferAssetAction(executeTransferAssetActionRequest);
1046
+ // @ts-ignore
1047
+ options['responseHeaders'] = ['X-Request-Id'];
1048
+ return this.hcClient.sendRequest(options);
1049
+ }
1014
1050
  /**
1015
1051
  * 该接口用于查询媒体资产库中指定的多个资产的概要信息。
1016
1052
  *
@@ -1077,6 +1113,29 @@ class MetaStudioClient {
1077
1113
  options['responseHeaders'] = ['X-Request-Id'];
1078
1114
  return this.hcClient.sendRequest(options);
1079
1115
  }
1116
+ /**
1117
+ * 资产转移任务列表
1118
+ *
1119
+ * Please refer to HUAWEI cloud API Explorer for details.
1120
+ *
1121
+ * @summary 资产转移任务列表
1122
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1123
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1124
+ * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
1125
+ * @param {number} [limit] 每页显示的条目数量。
1126
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
1127
+ * @param {'ALL' | 'SENDER' | 'RECEIVER'} [role] 角色。 SENDER:发起方,RECEIVER:接收方。ALL全部
1128
+ * @param {string} [state] 任务状态。多个状态使用英文逗号分隔。 - PROCESSING: 处理过程中 - ACCEPT: 接受 - REJECT: 拒绝 - CANCEL:取消 - FAIL: 失败
1129
+ * @param {string} [transferType] 任务类型。默认查询TRANSFER_OUT类型任务。 - TRANSFER_OUT: 资产转出 - TRANSFER_BACK: 资产转回
1130
+ * @param {*} [options] Override http request option.
1131
+ * @throws {RequiredError}
1132
+ */
1133
+ listTransferAssetJobs(listTransferAssetJobsRequest) {
1134
+ const options = (0, exports.ParamCreater)().listTransferAssetJobs(listTransferAssetJobsRequest);
1135
+ // @ts-ignore
1136
+ options['responseHeaders'] = ['X-Request-Id'];
1137
+ return this.hcClient.sendRequest(options);
1138
+ }
1080
1139
  /**
1081
1140
  * 该接口用于恢复被删除至回收站的媒体资产。
1082
1141
  *
@@ -1134,6 +1193,44 @@ class MetaStudioClient {
1134
1193
  options['responseHeaders'] = ['X-Request-Id'];
1135
1194
  return this.hcClient.sendRequest(options);
1136
1195
  }
1196
+ /**
1197
+ * 查询转移资产任务详情
1198
+ *
1199
+ * Please refer to HUAWEI cloud API Explorer for details.
1200
+ *
1201
+ * @summary 查询转移资产任务详情
1202
+ * @param {string} jobId 任务ID。
1203
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1204
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1205
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
1206
+ * @param {*} [options] Override http request option.
1207
+ * @throws {RequiredError}
1208
+ */
1209
+ showTransferAssetJob(showTransferAssetJobRequest) {
1210
+ const options = (0, exports.ParamCreater)().showTransferAssetJob(showTransferAssetJobRequest);
1211
+ // @ts-ignore
1212
+ options['responseHeaders'] = ['X-Request-Id'];
1213
+ return this.hcClient.sendRequest(options);
1214
+ }
1215
+ /**
1216
+ * 转移资产给其他用户
1217
+ *
1218
+ * Please refer to HUAWEI cloud API Explorer for details.
1219
+ *
1220
+ * @summary 转移资产给其他用户
1221
+ * @param {TransferAssetReq} transferAssetRequestBody 资产转移请求
1222
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1223
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1224
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
1225
+ * @param {*} [options] Override http request option.
1226
+ * @throws {RequiredError}
1227
+ */
1228
+ transferAsset(transferAssetRequest) {
1229
+ const options = (0, exports.ParamCreater)().transferAsset(transferAssetRequest);
1230
+ // @ts-ignore
1231
+ options['responseHeaders'] = ['X-Request-Id'];
1232
+ return this.hcClient.sendRequest(options);
1233
+ }
1137
1234
  /**
1138
1235
  * 该接口用于更新资产库中的媒体资产信息。
1139
1236
  *
@@ -2435,24 +2532,6 @@ class MetaStudioClient {
2435
2532
  options['responseHeaders'] = ['X-Request-Id'];
2436
2533
  return this.hcClient.sendRequest(options);
2437
2534
  }
2438
- /**
2439
- * 下载加密文件
2440
- *
2441
- * Please refer to HUAWEI cloud API Explorer for details.
2442
- *
2443
- * @summary 下载加密文件
2444
- * @param {string} tenantId 租户id
2445
- * @param {string} jobId 任务id
2446
- * @param {string} onceToken 一次性token
2447
- * @param {*} [options] Override http request option.
2448
- * @throws {RequiredError}
2449
- */
2450
- showEncryptFile(showEncryptFileRequest) {
2451
- const options = (0, exports.ParamCreater)().showEncryptFile(showEncryptFileRequest);
2452
- // @ts-ignore
2453
- options['responseHeaders'] = [''];
2454
- return this.hcClient.sendRequest(options);
2455
- }
2456
2535
  /**
2457
2536
  * 该接口用于创建知识库意图和问法。一个意图包含一个主题,一个答案,若干个问法等。接口使用限制详见[API使用限制](metastudio_02_0000.xml)。
2458
2537
  *
@@ -3080,6 +3159,8 @@ class MetaStudioClient {
3080
3159
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
3081
3160
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
3082
3161
  * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
3162
+ * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
3163
+ * @param {number} [limit] 每页显示的条目数量。
3083
3164
  * @param {boolean} [used] 是否已使用
3084
3165
  * @param {*} [options] Override http request option.
3085
3166
  * @throws {RequiredError}
@@ -3854,7 +3935,7 @@ class MetaStudioClient {
3854
3935
  * @param {string} [createSince] 过滤创建时间>=输入时间的记录。
3855
3936
  * @param {string} [name] 按名称模糊查询。
3856
3937
  * @param {string} [tag] 按标签模糊查询。
3857
- * @param {string} [state] 按状态查询,多状态使用英文逗号分隔。
3938
+ * @param {string} [state] 根据状态查询。多个状态用英文逗号分隔。 文件状态枚举: * ACTIVED:已激活 * UNACTIVED:未激活 * BLOCK:已冻结 * DELETED:已删除
3858
3939
  * @param {*} [options] Override http request option.
3859
3940
  * @throws {RequiredError}
3860
3941
  */
@@ -4382,6 +4463,24 @@ class MetaStudioClient {
4382
4463
  options['responseHeaders'] = ['X-Request-Id'];
4383
4464
  return this.hcClient.sendRequest(options);
4384
4465
  }
4466
+ /**
4467
+ * 该接口用于租户设置直播租户级配置。
4468
+ *
4469
+ * Please refer to HUAWEI cloud API Explorer for details.
4470
+ *
4471
+ * @summary 租户查询直播租户级配置
4472
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
4473
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
4474
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
4475
+ * @param {*} [options] Override http request option.
4476
+ * @throws {RequiredError}
4477
+ */
4478
+ showSmartLiveUserConfig(showSmartLiveUserConfigRequest) {
4479
+ const options = (0, exports.ParamCreater)().showSmartLiveUserConfig(showSmartLiveUserConfigRequest);
4480
+ // @ts-ignore
4481
+ options['responseHeaders'] = ['X-Request-Id'];
4482
+ return this.hcClient.sendRequest(options);
4483
+ }
4385
4484
  /**
4386
4485
  * 该接口用于租户设置直播租户级配置。
4387
4486
  *
@@ -4874,6 +4973,25 @@ class MetaStudioClient {
4874
4973
  options['responseHeaders'] = ['X-Request-Id'];
4875
4974
  return this.hcClient.sendRequest(options);
4876
4975
  }
4976
+ /**
4977
+ * 资源绑定接口。
4978
+ *
4979
+ * Please refer to HUAWEI cloud API Explorer for details.
4980
+ *
4981
+ * @summary 资源绑定接口
4982
+ * @param {BindAssetResourceReq} bindUserAssetResourceRequestBody 绑定资源请求。
4983
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
4984
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
4985
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
4986
+ * @param {*} [options] Override http request option.
4987
+ * @throws {RequiredError}
4988
+ */
4989
+ bindUserAssetResource(bindUserAssetResourceRequest) {
4990
+ const options = (0, exports.ParamCreater)().bindUserAssetResource(bindUserAssetResourceRequest);
4991
+ // @ts-ignore
4992
+ options['responseHeaders'] = ['X-Request-Id'];
4993
+ return this.hcClient.sendRequest(options);
4994
+ }
4877
4995
  /**
4878
4996
  * 统计指定时间段内即将过期的包周期与一次性资源数量。
4879
4997
  *
@@ -4896,252 +5014,483 @@ class MetaStudioClient {
4896
5014
  return this.hcClient.sendRequest(options);
4897
5015
  }
4898
5016
  /**
4899
- * 查看租户资源列表。
4900
- * > 按需套餐包用量本接口无法查询,需要调用CBC接口查询,详见[按需套餐包用量查询](https://cbc.huaweicloud.com/bm/support/api-apidt/CBCInterface_0001239.html)和[查询资源包信息](https://cbc.huaweicloud.com/bm/support/api-apidt/CBCInterface_0000511.html)。
4901
- * > 各种资源的计费方式请参考[计费说明](https://support.huaweicloud.com/productdesc-metastudio/metastudio_01_0006.html)。
5017
+ * 创建子账户(IAM用户)配额,需要先开启子账户隔离后才能配置。只有根账户可创建。
4902
5018
  *
4903
5019
  * Please refer to HUAWEI cloud API Explorer for details.
4904
5020
  *
4905
- * @summary 查看租户资源列表
4906
- * @param {string} resourceSource 资源来源,可填多个 例如:PURCHASED,ADMIN_ALLOCATED,将返回商用资源与管理员分配资源。 * PURCHASED: 用户购买的资源 * SP_ALLOCATED: SP分配的资源 * ADMIN_ALLOCATED: 系统管理员分配的资源
5021
+ * @summary 创建子账户配额
5022
+ * @param {CreateUserQuotaInfo} createUserQuotasRequestBody 设置租户服务配额请求
4907
5023
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
4908
5024
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
4909
5025
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
4910
- * @param {number} [limit] 每页显示的条目数量。
4911
- * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
4912
- * @param {string} [resource] 资源类型。可填多个,用\",\"分隔。详见[资源类型](metastudio_02_0042.xml)。
4913
- * @param {string} [business] 业务类型。可填多个,用\",\"分隔。 * VOICE_CLONE:声音制作 * SYNTHETICS_SOUND:声音合成 * ASSET_MANAGER:资产管理 * MODELING_2D:形象制作 * LIVE_2D:分身数字人视频直播 * VIDEO_2D:分身数字人视频制作 * CHAT_2D:分身数字人智能交互 * BUSINESS_CARD_2D:分身数字人名片 * PICTURE_2D:照片数字人视频 * MODELING_3D:3D照片建模 * VDS_3D:3D视觉驱动 * TTSA_3D:3D语音驱动 * FLEXUS_2D:FLEXUS版本资源
4914
- * @param {string} [resourceId] 资源id。
4915
- * @param {string} [orderId] 订单id。
4916
- * @param {string} [chargingMode] 计费类型。 * PERIODIC: 包周期 * ONE_TIME:一次性 * ON_DEMAND:按需 计费模式。
4917
- * @param {string} [resourceExpireStartTime] 资源过期时间段 开始时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"
4918
- * @param {string} [resourceExpireEndTime] 资源过期时间段 结束时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"
4919
- * @param {string} [subResource] 子资源类型。当前只有flexus套餐包存在该字段 * voice_clone_flexus: 语音克隆Flexus版 * modeling_count_2d_model_flexus: 分身数字人形象制作Flexus版 * video_time_flexus_2d_model: 分身数字人Flexus版本视频制作
4920
- * @param {number} [status] 资源状态。
4921
5026
  * @param {*} [options] Override http request option.
4922
5027
  * @throws {RequiredError}
4923
5028
  */
4924
- listTenantResources(listTenantResourcesRequest) {
4925
- const options = (0, exports.ParamCreater)().listTenantResources(listTenantResourcesRequest);
5029
+ createUserQuotas(createUserQuotasRequest) {
5030
+ const options = (0, exports.ParamCreater)().createUserQuotas(createUserQuotasRequest);
4926
5031
  // @ts-ignore
4927
5032
  options['responseHeaders'] = ['X-Request-Id'];
4928
5033
  return this.hcClient.sendRequest(options);
4929
5034
  }
4930
5035
  /**
4931
- * 查询租户一次性和包周期(包年/包月)资源用量信息。
4932
- * > 按需套餐包用量本接口无法查询,需要调用CBC接口查询,详见[按需套餐包用量查询](https://cbc.huaweicloud.com/bm/support/api-apidt/CBCInterface_0001239.html)和[查询资源包信息](https://cbc.huaweicloud.com/bm/support/api-apidt/CBCInterface_0000511.html)。
4933
- * > 各种资源的计费方式请参考[计费说明](https://support.huaweicloud.com/productdesc-metastudio/metastudio_01_0006.html)。
5036
+ * 删除租户个性化配置。由租户下用户操作设置。
4934
5037
  *
4935
5038
  * Please refer to HUAWEI cloud API Explorer for details.
4936
5039
  *
4937
- * @summary 查看租户资源用量信息
5040
+ * @summary 删除租户个性化配置
5041
+ * @param {DeleteTenantUserConfigurationReq} deleteTenantUserConfigurationRequestBody 删除租户个性化配置请求。
4938
5042
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
4939
5043
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
4940
5044
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
4941
- * @param {string} [resource] 资源类型。可填多个,用\",\"分隔。详见[资源类型](metastudio_02_0042.xml)。
4942
- * @param {string} [business] 业务类型。可填多个,用\",\"分隔。 * VOICE_CLONE:声音制作 * SYNTHETICS_SOUND:声音合成 * ASSET_MANAGER:资产管理 * MODELING_2D:形象制作 * LIVE_2D:分身数字人视频直播 * VIDEO_2D:分身数字人视频制作 * CHAT_2D:分身数字人智能交互 * BUSINESS_CARD_2D:分身数字人名片 * PICTURE_2D:照片数字人视频 * MODELING_3D:3D照片建模 * VDS_3D:3D视觉驱动 * TTSA_3D:3D语音驱动 * FLEXUS_2D:FLEXUS版本资源
4943
5045
  * @param {*} [options] Override http request option.
4944
5046
  * @throws {RequiredError}
4945
5047
  */
4946
- showResourceUsage(showResourceUsageRequest) {
4947
- const options = (0, exports.ParamCreater)().showResourceUsage(showResourceUsageRequest);
5048
+ deleteTenantUserConfiguration(deleteTenantUserConfigurationRequest) {
5049
+ const options = (0, exports.ParamCreater)().deleteTenantUserConfiguration(deleteTenantUserConfigurationRequest);
4948
5050
  // @ts-ignore
4949
5051
  options['responseHeaders'] = ['X-Request-Id'];
4950
5052
  return this.hcClient.sendRequest(options);
4951
5053
  }
4952
5054
  /**
4953
- * 签署云服务声明。调用此接口前请知悉[[metastudio隐私协议](https://www.huaweicloud.com/declaration/tsa_metastudio.html)](tag:hws)[[metastudio隐私协议](https://www.huaweicloud.com/intl/en-us/declaration-sg/tsa-metastudio.html)](tag:hws_hk)。
5055
+ * 删除子账户(IAM用户)配额,需要先开启子账户隔离后才能配置。只有根账户可删除。
4954
5056
  *
4955
5057
  * Please refer to HUAWEI cloud API Explorer for details.
4956
5058
  *
4957
- * @summary 签署云服务声明
5059
+ * @summary 删除子账户配额
5060
+ * @param {string} userId 子账户(用户)ID。
4958
5061
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
4959
5062
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
4960
5063
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
4961
5064
  * @param {*} [options] Override http request option.
4962
5065
  * @throws {RequiredError}
4963
5066
  */
4964
- signAgreement(signAgreementRequest) {
4965
- const options = (0, exports.ParamCreater)().signAgreement(signAgreementRequest);
5067
+ deleteUserQuotas(deleteUserQuotasRequest) {
5068
+ const options = (0, exports.ParamCreater)().deleteUserQuotas(deleteUserQuotasRequest);
4966
5069
  // @ts-ignore
4967
5070
  options['responseHeaders'] = ['X-Request-Id'];
4968
5071
  return this.hcClient.sendRequest(options);
4969
5072
  }
4970
5073
  /**
4971
- * 签署特殊云服务声明,目前可签署自动支付协议。开启自动支付协议之后,调用下单接口时,华为云将进行自动扣费。若因账户余额不足导致扣费失败,系统会生成待支付订单,您可前往费用中心-我的订单查看,届时您需手动完成支付。
5074
+ * 查看租户资源列表。
5075
+ * > 按需套餐包用量本接口无法查询,需要调用CBC接口查询,详见[按需套餐包用量查询](https://cbc.huaweicloud.com/bm/support/api-apidt/CBCInterface_0001239.html)和[查询资源包信息](https://cbc.huaweicloud.com/bm/support/api-apidt/CBCInterface_0000511.html)。
5076
+ * > 各种资源的计费方式请参考[计费说明](https://support.huaweicloud.com/productdesc-metastudio/metastudio_01_0006.html)。
4972
5077
  *
4973
5078
  * Please refer to HUAWEI cloud API Explorer for details.
4974
5079
  *
4975
- * @summary 签署特殊云服务声明
4976
- * @param {SpecialAgreementSignReq} signSpecialAgreementRequestBody 签署特殊协议请求
5080
+ * @summary 查看租户资源列表
5081
+ * @param {string} resourceSource 资源来源,可填多个 例如:PURCHASED,ADMIN_ALLOCATED,将返回商用资源与管理员分配资源。 * PURCHASED: 用户购买的资源 * SP_ALLOCATED: SP分配的资源 * ADMIN_ALLOCATED: 系统管理员分配的资源
4977
5082
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
4978
5083
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
4979
5084
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
5085
+ * @param {number} [limit] 每页显示的条目数量。
5086
+ * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
5087
+ * @param {string} [resource] 资源类型。可填多个,用\",\"分隔。详见[资源类型](metastudio_02_0042.xml)。
5088
+ * @param {string} [business] 业务类型。可填多个,用\",\"分隔。 * VOICE_CLONE:声音制作 * SYNTHETICS_SOUND:声音合成 * ASSET_MANAGER:资产管理 * MODELING_2D:形象制作 * LIVE_2D:分身数字人视频直播 * VIDEO_2D:分身数字人视频制作 * CHAT_2D:分身数字人智能交互 * BUSINESS_CARD_2D:分身数字人名片 * PICTURE_2D:照片数字人视频 * MODELING_3D:3D照片建模 * VDS_3D:3D视觉驱动 * TTSA_3D:3D语音驱动 * FLEXUS_2D:FLEXUS版本资源
5089
+ * @param {string} [resourceId] 资源id。
5090
+ * @param {string} [orderId] 订单id。
5091
+ * @param {string} [chargingMode] 计费类型。 * PERIODIC: 包周期 * ONE_TIME:一次性 * ON_DEMAND:按需 计费模式。
5092
+ * @param {string} [resourceExpireStartTime] 资源过期时间段 开始时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"
5093
+ * @param {string} [resourceExpireEndTime] 资源过期时间段 结束时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"
5094
+ * @param {string} [subResource] 子资源类型。当前只有flexus套餐包存在该字段 * voice_clone_flexus: 语音克隆Flexus版 * modeling_count_2d_model_flexus: 分身数字人形象制作Flexus版 * video_time_flexus_2d_model: 分身数字人Flexus版本视频制作
5095
+ * @param {number} [status] 资源状态。
4980
5096
  * @param {*} [options] Override http request option.
4981
5097
  * @throws {RequiredError}
4982
5098
  */
4983
- signSpecialAgreement(signSpecialAgreementRequest) {
4984
- const options = (0, exports.ParamCreater)().signSpecialAgreement(signSpecialAgreementRequest);
5099
+ listTenantResources(listTenantResourcesRequest) {
5100
+ const options = (0, exports.ParamCreater)().listTenantResources(listTenantResourcesRequest);
4985
5101
  // @ts-ignore
4986
5102
  options['responseHeaders'] = ['X-Request-Id'];
4987
5103
  return this.hcClient.sendRequest(options);
4988
5104
  }
4989
5105
  /**
4990
- * 提交短任务,执行改接口后,任务会正式开始执行。
5106
+ * 查询子账户(IAM用户)配额。只有根账户可查询。
4991
5107
  *
4992
5108
  * Please refer to HUAWEI cloud API Explorer for details.
4993
5109
  *
4994
- * @summary 提交短任务
4995
- * @param {string} jobId 任务id。
5110
+ * @summary 查询子账户配额
4996
5111
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
4997
5112
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
4998
5113
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
4999
- * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
5114
+ * @param {number} [limit] 每页显示的条目数量。
5115
+ * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
5116
+ * @param {string} [userId] 用户id
5000
5117
  * @param {*} [options] Override http request option.
5001
5118
  * @throws {RequiredError}
5002
5119
  */
5003
- commitShortJob(commitShortJobRequest) {
5004
- const options = (0, exports.ParamCreater)().commitShortJob(commitShortJobRequest);
5120
+ listUserQuotas(listUserQuotasRequest) {
5121
+ const options = (0, exports.ParamCreater)().listUserQuotas(listUserQuotasRequest);
5005
5122
  // @ts-ignore
5006
- options['responseHeaders'] = [''];
5123
+ options['responseHeaders'] = ['X-Request-Id'];
5007
5124
  return this.hcClient.sendRequest(options);
5008
5125
  }
5009
5126
  /**
5010
- * 提交训练任务,执行该接口后,任务会进入审核状态,审核完成后会等待训练。
5127
+ * 设置租户个性化通知配置
5011
5128
  *
5012
5129
  * Please refer to HUAWEI cloud API Explorer for details.
5013
5130
  *
5014
- * @summary 提交语音训练任务
5015
- * @param {string} jobId 任务id。
5131
+ * @summary 设置租户个性化通知配置
5132
+ * @param {SetTenantNoticeConfigurationReq} setTenantNoticeConfigurationRequestBody 设置租户个性化通知配置。
5016
5133
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
5017
5134
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
5018
5135
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
5019
- * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
5020
- * @param {CommitJobReq} [commitVoiceTrainingJobRequestBody] 提交任务请求。
5021
5136
  * @param {*} [options] Override http request option.
5022
5137
  * @throws {RequiredError}
5023
5138
  */
5024
- commitVoiceTrainingJob(commitVoiceTrainingJobRequest) {
5025
- const options = (0, exports.ParamCreater)().commitVoiceTrainingJob(commitVoiceTrainingJobRequest);
5139
+ setTenantNoticeConfiguration(setTenantNoticeConfigurationRequest) {
5140
+ const options = (0, exports.ParamCreater)().setTenantNoticeConfiguration(setTenantNoticeConfigurationRequest);
5026
5141
  // @ts-ignore
5027
- options['responseHeaders'] = [''];
5142
+ options['responseHeaders'] = ['X-Request-Id'];
5028
5143
  return this.hcClient.sendRequest(options);
5029
5144
  }
5030
5145
  /**
5031
- * 确认在线录音结果。
5146
+ * 设置租户个性化配置。由租户下用户操作设置。
5032
5147
  *
5033
5148
  * Please refer to HUAWEI cloud API Explorer for details.
5034
5149
  *
5035
- * @summary 确认在线录音结果
5036
- * @param {string} jobId 任务id。
5037
- * @param {number} index 语句索引。
5150
+ * @summary 设置租户个性化配置
5151
+ * @param {SetTenantUserConfigurationReq} setTenantUserConfigurationRequestBody 设置租户个性化配置请求。
5152
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
5153
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
5154
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
5038
5155
  * @param {*} [options] Override http request option.
5039
5156
  * @throws {RequiredError}
5040
5157
  */
5041
- confirmTrainingSegment(confirmTrainingSegmentRequest) {
5042
- const options = (0, exports.ParamCreater)().confirmTrainingSegment(confirmTrainingSegmentRequest);
5158
+ setTenantUserConfiguration(setTenantUserConfigurationRequest) {
5159
+ const options = (0, exports.ParamCreater)().setTenantUserConfiguration(setTenantUserConfigurationRequest);
5043
5160
  // @ts-ignore
5044
- options['responseHeaders'] = [''];
5161
+ options['responseHeaders'] = ['X-Request-Id'];
5045
5162
  return this.hcClient.sendRequest(options);
5046
5163
  }
5047
5164
  /**
5048
- * 用户创建短任务(音频质量检测等),该接口会返回一个obs上传地址,用于上传语音文件。
5049
- * 文件上传后,调用“提交短任务”接口,启动短任务。
5165
+ * 查询租户一次性和包周期(包年/包月)资源用量信息。
5166
+ * > 按需套餐包用量本接口无法查询,需要调用CBC接口查询,详见[按需套餐包用量查询](https://cbc.huaweicloud.com/bm/support/api-apidt/CBCInterface_0001239.html)和[查询资源包信息](https://cbc.huaweicloud.com/bm/support/api-apidt/CBCInterface_0000511.html)。
5167
+ * > 各种资源的计费方式请参考[计费说明](https://support.huaweicloud.com/productdesc-metastudio/metastudio_01_0006.html)。
5050
5168
  *
5051
5169
  * Please refer to HUAWEI cloud API Explorer for details.
5052
5170
  *
5053
- * @summary 创建短任务
5054
- * @param {CreateShortJobReq} createShortJobRequestBody 创建任务请求。
5171
+ * @summary 查看租户资源用量信息
5055
5172
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
5056
5173
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
5057
5174
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
5058
- * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
5175
+ * @param {string} [resource] 资源类型。可填多个,用\",\"分隔。详见[资源类型](metastudio_02_0042.xml)。
5176
+ * @param {string} [business] 业务类型。可填多个,用\",\"分隔。 * VOICE_CLONE:声音制作 * SYNTHETICS_SOUND:声音合成 * ASSET_MANAGER:资产管理 * MODELING_2D:形象制作 * LIVE_2D:分身数字人视频直播 * VIDEO_2D:分身数字人视频制作 * CHAT_2D:分身数字人智能交互 * BUSINESS_CARD_2D:分身数字人名片 * PICTURE_2D:照片数字人视频 * MODELING_3D:3D照片建模 * VDS_3D:3D视觉驱动 * TTSA_3D:3D语音驱动 * FLEXUS_2D:FLEXUS版本资源
5059
5177
  * @param {*} [options] Override http request option.
5060
5178
  * @throws {RequiredError}
5061
5179
  */
5062
- createShortJob(createShortJobRequest) {
5063
- const options = (0, exports.ParamCreater)().createShortJob(createShortJobRequest);
5180
+ showResourceUsage(showResourceUsageRequest) {
5181
+ const options = (0, exports.ParamCreater)().showResourceUsage(showResourceUsageRequest);
5064
5182
  // @ts-ignore
5065
- options['responseHeaders'] = [''];
5183
+ options['responseHeaders'] = ['X-Request-Id'];
5066
5184
  return this.hcClient.sendRequest(options);
5067
5185
  }
5068
5186
  /**
5069
- * 用户创建语音训练高级版任务,该接口会返回一个obs上传地址,用于上传语音文件。
5070
- *
5071
- * 语音文件为一段WAV格式的长音频文件,仅支持将语音文件打包成zip压缩格式上传。
5072
- *
5073
- * 文件上传后,调用“提交语音训练任务”接口,启动审核和训练。
5187
+ * 该接口用于普通租户查询租户下的资源详情。
5074
5188
  *
5075
5189
  * Please refer to HUAWEI cloud API Explorer for details.
5076
5190
  *
5077
- * @summary 创建高级版语音训练任务
5078
- * @param {CreateTrainingJobReq} createTrainingAdvanceJobRequestBody 创建任务请求。
5079
- * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
5191
+ * @summary 查询租户下分配的资源详情
5192
+ * @param {number} [limit] 每页显示的条目数量。
5193
+ * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
5080
5194
  * @param {*} [options] Override http request option.
5081
5195
  * @throws {RequiredError}
5082
5196
  */
5083
- createTrainingAdvanceJob(createTrainingAdvanceJobRequest) {
5084
- const options = (0, exports.ParamCreater)().createTrainingAdvanceJob(createTrainingAdvanceJobRequest);
5197
+ showTenantAssginRecord(showTenantAssginRecordRequest) {
5198
+ const options = (0, exports.ParamCreater)().showTenantAssginRecord(showTenantAssginRecordRequest);
5085
5199
  // @ts-ignore
5086
- options['responseHeaders'] = [''];
5200
+ options['responseHeaders'] = ['X-Request-Id'];
5087
5201
  return this.hcClient.sendRequest(options);
5088
5202
  }
5089
5203
  /**
5090
- * 用户创建语音训练基础版任务,该接口会返回一个obs上传地址,用于上传语音文件。
5091
- *
5092
- * 支持2种方式上传语音文件:
5093
- * * 语音文件和文本文件打包成zip上传:语音文件已经切分成20个wav文件,每个语音文件对应一个txt文本文件,所有文件打包成zip文件。语音文件命名规则:0.wav~19.wav;文本文件命名规则:0.txt~19.txt。
5094
- * * 语音文件和文本文件逐句上传:每次上传一句语料的语音文件和文本文件,再调用“确认在线录音结果”接口确认语音和文本内容是否一致。确认成功后再上传和确认下一句。
5095
- *
5096
- * 文件上传后,调用“提交语音训练任务”接口,启动审核和训练。
5204
+ * 查询租户个性化通知配置
5097
5205
  *
5098
5206
  * Please refer to HUAWEI cloud API Explorer for details.
5099
5207
  *
5100
- * @summary 创建基础版语音训练任务
5101
- * @param {CreateTrainingJobReq} createTrainingBasicJobRequestBody 创建任务请求。
5208
+ * @summary 查询租户个性化通知配置
5209
+ * @param {string} type 通知类型。 * RESOURCE_EXPIRE:资源过期通知 * RESOURCE_LEFT:资源剩余量通知
5102
5210
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
5103
5211
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
5104
5212
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
5105
- * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
5213
+ * @param {number} [limit] 每页显示的条目数量。
5214
+ * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
5106
5215
  * @param {*} [options] Override http request option.
5107
5216
  * @throws {RequiredError}
5108
5217
  */
5109
- createTrainingBasicJob(createTrainingBasicJobRequest) {
5110
- const options = (0, exports.ParamCreater)().createTrainingBasicJob(createTrainingBasicJobRequest);
5218
+ showTenantNoticeConfiguration(showTenantNoticeConfigurationRequest) {
5219
+ const options = (0, exports.ParamCreater)().showTenantNoticeConfiguration(showTenantNoticeConfigurationRequest);
5111
5220
  // @ts-ignore
5112
- options['responseHeaders'] = [''];
5221
+ options['responseHeaders'] = ['X-Request-Id'];
5113
5222
  return this.hcClient.sendRequest(options);
5114
5223
  }
5115
5224
  /**
5116
- * 用户创建语音训练进阶版任务,该接口会返回一个obs上传地址,用于上传语音文件。
5117
- *
5118
- * 支持2种方式上传语音文件:
5119
- * * 语音文件和文本文件打包成zip上传:语音文件已经切分成100个wav文件,每个语音文件对应一个txt文本文件,所有文件打包成zip文件。语音文件命名规则:0.wav~99.wav;文本文件命名规则:0.txt~99.txt。
5120
- * * 语音文件和文本文件逐句上传:每次上传一句语料的语音文件和文本文件,再调用“确认在线录音结果”接口确认语音和文本内容是否一致。确认成功后再上传和确认下一句。
5121
- *
5122
- * 文件上传后,调用“提交语音训练任务”接口,启动审核和训练。
5225
+ * 查看租户服务业务配置
5123
5226
  *
5124
5227
  * Please refer to HUAWEI cloud API Explorer for details.
5125
5228
  *
5126
- * @summary 创建进阶版语音训练任务
5127
- * @param {CreateTrainingJobReq} createTrainingMiddleJobRequestBody 创建任务请求。
5229
+ * @summary 查看租户服务业务配置
5128
5230
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
5129
5231
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
5130
5232
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
5131
- * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
5132
5233
  * @param {*} [options] Override http request option.
5133
5234
  * @throws {RequiredError}
5134
5235
  */
5135
- createTrainingMiddleJob(createTrainingMiddleJobRequest) {
5136
- const options = (0, exports.ParamCreater)().createTrainingMiddleJob(createTrainingMiddleJobRequest);
5236
+ showTenantServiceConfigs(showTenantServiceConfigsRequest) {
5237
+ const options = (0, exports.ParamCreater)().showTenantServiceConfigs(showTenantServiceConfigsRequest);
5137
5238
  // @ts-ignore
5138
- options['responseHeaders'] = [''];
5239
+ options['responseHeaders'] = ['X-Request-Id'];
5139
5240
  return this.hcClient.sendRequest(options);
5140
5241
  }
5141
5242
  /**
5142
- * 用户创建第三方平台语音训练任务,该接口会返回一个obs上传地址,用于上传语音文件。
5143
- * 仅支持zip包方式上传语音文件:
5144
- * * 语音文件打包成zip上传:上传的训练数据为一个zip格式压缩文件,其中包含一段wav格式的长音频文件。
5243
+ * 查询租户个性化配置。
5244
+ *
5245
+ * Please refer to HUAWEI cloud API Explorer for details.
5246
+ *
5247
+ * @summary 查询租户个性化配置
5248
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
5249
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
5250
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
5251
+ * @param {number} [limit] 每页显示的条目数量。
5252
+ * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
5253
+ * @param {*} [options] Override http request option.
5254
+ * @throws {RequiredError}
5255
+ */
5256
+ showTenantUserConfiguration(showTenantUserConfigurationRequest) {
5257
+ const options = (0, exports.ParamCreater)().showTenantUserConfiguration(showTenantUserConfigurationRequest);
5258
+ // @ts-ignore
5259
+ options['responseHeaders'] = ['X-Request-Id'];
5260
+ return this.hcClient.sendRequest(options);
5261
+ }
5262
+ /**
5263
+ * 签署云服务声明。调用此接口前请知悉[[metastudio隐私协议](https://www.huaweicloud.com/declaration/tsa_metastudio.html)](tag:hws)[[metastudio隐私协议](https://www.huaweicloud.com/intl/en-us/declaration-sg/tsa-metastudio.html)](tag:hws_hk)。
5264
+ *
5265
+ * Please refer to HUAWEI cloud API Explorer for details.
5266
+ *
5267
+ * @summary 签署云服务声明
5268
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
5269
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
5270
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
5271
+ * @param {*} [options] Override http request option.
5272
+ * @throws {RequiredError}
5273
+ */
5274
+ signAgreement(signAgreementRequest) {
5275
+ const options = (0, exports.ParamCreater)().signAgreement(signAgreementRequest);
5276
+ // @ts-ignore
5277
+ options['responseHeaders'] = ['X-Request-Id'];
5278
+ return this.hcClient.sendRequest(options);
5279
+ }
5280
+ /**
5281
+ * 签署特殊云服务声明,目前可签署自动支付协议。开启自动支付协议之后,调用下单接口时,华为云将进行自动扣费。若因账户余额不足导致扣费失败,系统会生成待支付订单,您可前往费用中心-我的订单查看,届时您需手动完成支付。
5282
+ *
5283
+ * Please refer to HUAWEI cloud API Explorer for details.
5284
+ *
5285
+ * @summary 签署特殊云服务声明
5286
+ * @param {SpecialAgreementSignReq} signSpecialAgreementRequestBody 签署特殊协议请求
5287
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
5288
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
5289
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
5290
+ * @param {*} [options] Override http request option.
5291
+ * @throws {RequiredError}
5292
+ */
5293
+ signSpecialAgreement(signSpecialAgreementRequest) {
5294
+ const options = (0, exports.ParamCreater)().signSpecialAgreement(signSpecialAgreementRequest);
5295
+ // @ts-ignore
5296
+ options['responseHeaders'] = ['X-Request-Id'];
5297
+ return this.hcClient.sendRequest(options);
5298
+ }
5299
+ /**
5300
+ * 设置租户服务业务配置
5301
+ *
5302
+ * Please refer to HUAWEI cloud API Explorer for details.
5303
+ *
5304
+ * @summary 设置租户服务配置
5305
+ * @param {UpdateTenantServiceConfigsReq} updateTenantServiceConfigsRequestBody 设置租户服务业务配置请求
5306
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
5307
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
5308
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
5309
+ * @param {*} [options] Override http request option.
5310
+ * @throws {RequiredError}
5311
+ */
5312
+ updateTenantServiceConfigs(updateTenantServiceConfigsRequest) {
5313
+ const options = (0, exports.ParamCreater)().updateTenantServiceConfigs(updateTenantServiceConfigsRequest);
5314
+ // @ts-ignore
5315
+ options['responseHeaders'] = ['X-Request-Id'];
5316
+ return this.hcClient.sendRequest(options);
5317
+ }
5318
+ /**
5319
+ * 设置子账户(IAM用户)配额,需要先开启子账户隔离后才能配置。只有根账户可修改。
5320
+ *
5321
+ * Please refer to HUAWEI cloud API Explorer for details.
5322
+ *
5323
+ * @summary 设置子账户配额
5324
+ * @param {string} userId 子账户(用户)ID。
5325
+ * @param {UpdateUserQuotaInfo} updateUserQuotasRequestBody 设置租户服务配额请求
5326
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
5327
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
5328
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
5329
+ * @param {*} [options] Override http request option.
5330
+ * @throws {RequiredError}
5331
+ */
5332
+ updateUserQuotas(updateUserQuotasRequest) {
5333
+ const options = (0, exports.ParamCreater)().updateUserQuotas(updateUserQuotasRequest);
5334
+ // @ts-ignore
5335
+ options['responseHeaders'] = ['X-Request-Id'];
5336
+ return this.hcClient.sendRequest(options);
5337
+ }
5338
+ /**
5339
+ * 提交短任务,执行改接口后,任务会正式开始执行。
5340
+ *
5341
+ * Please refer to HUAWEI cloud API Explorer for details.
5342
+ *
5343
+ * @summary 提交短任务
5344
+ * @param {string} jobId 任务id。
5345
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
5346
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
5347
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
5348
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
5349
+ * @param {*} [options] Override http request option.
5350
+ * @throws {RequiredError}
5351
+ */
5352
+ commitShortJob(commitShortJobRequest) {
5353
+ const options = (0, exports.ParamCreater)().commitShortJob(commitShortJobRequest);
5354
+ // @ts-ignore
5355
+ options['responseHeaders'] = [''];
5356
+ return this.hcClient.sendRequest(options);
5357
+ }
5358
+ /**
5359
+ * 提交训练任务,执行该接口后,任务会进入审核状态,审核完成后会等待训练。
5360
+ *
5361
+ * Please refer to HUAWEI cloud API Explorer for details.
5362
+ *
5363
+ * @summary 提交语音训练任务
5364
+ * @param {string} jobId 任务id。
5365
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
5366
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
5367
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
5368
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
5369
+ * @param {CommitJobReq} [commitVoiceTrainingJobRequestBody] 提交任务请求。
5370
+ * @param {*} [options] Override http request option.
5371
+ * @throws {RequiredError}
5372
+ */
5373
+ commitVoiceTrainingJob(commitVoiceTrainingJobRequest) {
5374
+ const options = (0, exports.ParamCreater)().commitVoiceTrainingJob(commitVoiceTrainingJobRequest);
5375
+ // @ts-ignore
5376
+ options['responseHeaders'] = [''];
5377
+ return this.hcClient.sendRequest(options);
5378
+ }
5379
+ /**
5380
+ * 确认在线录音结果。
5381
+ *
5382
+ * Please refer to HUAWEI cloud API Explorer for details.
5383
+ *
5384
+ * @summary 确认在线录音结果
5385
+ * @param {string} jobId 任务id。
5386
+ * @param {number} index 语句索引。
5387
+ * @param {*} [options] Override http request option.
5388
+ * @throws {RequiredError}
5389
+ */
5390
+ confirmTrainingSegment(confirmTrainingSegmentRequest) {
5391
+ const options = (0, exports.ParamCreater)().confirmTrainingSegment(confirmTrainingSegmentRequest);
5392
+ // @ts-ignore
5393
+ options['responseHeaders'] = [''];
5394
+ return this.hcClient.sendRequest(options);
5395
+ }
5396
+ /**
5397
+ * 用户创建短任务(音频质量检测等),该接口会返回一个obs上传地址,用于上传语音文件。
5398
+ * 文件上传后,调用“提交短任务”接口,启动短任务。
5399
+ *
5400
+ * Please refer to HUAWEI cloud API Explorer for details.
5401
+ *
5402
+ * @summary 创建短任务
5403
+ * @param {CreateShortJobReq} createShortJobRequestBody 创建任务请求。
5404
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
5405
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
5406
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
5407
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
5408
+ * @param {*} [options] Override http request option.
5409
+ * @throws {RequiredError}
5410
+ */
5411
+ createShortJob(createShortJobRequest) {
5412
+ const options = (0, exports.ParamCreater)().createShortJob(createShortJobRequest);
5413
+ // @ts-ignore
5414
+ options['responseHeaders'] = [''];
5415
+ return this.hcClient.sendRequest(options);
5416
+ }
5417
+ /**
5418
+ * 用户创建语音训练高级版任务,该接口会返回一个obs上传地址,用于上传语音文件。
5419
+ *
5420
+ * 语音文件为一段WAV格式的长音频文件,仅支持将语音文件打包成zip压缩格式上传。
5421
+ *
5422
+ * 文件上传后,调用“提交语音训练任务”接口,启动审核和训练。
5423
+ *
5424
+ * Please refer to HUAWEI cloud API Explorer for details.
5425
+ *
5426
+ * @summary 创建高级版语音训练任务
5427
+ * @param {CreateTrainingJobReq} createTrainingAdvanceJobRequestBody 创建任务请求。
5428
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
5429
+ * @param {*} [options] Override http request option.
5430
+ * @throws {RequiredError}
5431
+ */
5432
+ createTrainingAdvanceJob(createTrainingAdvanceJobRequest) {
5433
+ const options = (0, exports.ParamCreater)().createTrainingAdvanceJob(createTrainingAdvanceJobRequest);
5434
+ // @ts-ignore
5435
+ options['responseHeaders'] = [''];
5436
+ return this.hcClient.sendRequest(options);
5437
+ }
5438
+ /**
5439
+ * 用户创建语音训练基础版任务,该接口会返回一个obs上传地址,用于上传语音文件。
5440
+ *
5441
+ * 支持2种方式上传语音文件:
5442
+ * * 语音文件和文本文件打包成zip上传:语音文件已经切分成20个wav文件,每个语音文件对应一个txt文本文件,所有文件打包成zip文件。语音文件命名规则:0.wav~19.wav;文本文件命名规则:0.txt~19.txt。
5443
+ * * 语音文件和文本文件逐句上传:每次上传一句语料的语音文件和文本文件,再调用“确认在线录音结果”接口确认语音和文本内容是否一致。确认成功后再上传和确认下一句。
5444
+ *
5445
+ * 文件上传后,调用“提交语音训练任务”接口,启动审核和训练。
5446
+ *
5447
+ * Please refer to HUAWEI cloud API Explorer for details.
5448
+ *
5449
+ * @summary 创建基础版语音训练任务
5450
+ * @param {CreateTrainingJobReq} createTrainingBasicJobRequestBody 创建任务请求。
5451
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
5452
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
5453
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
5454
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
5455
+ * @param {*} [options] Override http request option.
5456
+ * @throws {RequiredError}
5457
+ */
5458
+ createTrainingBasicJob(createTrainingBasicJobRequest) {
5459
+ const options = (0, exports.ParamCreater)().createTrainingBasicJob(createTrainingBasicJobRequest);
5460
+ // @ts-ignore
5461
+ options['responseHeaders'] = [''];
5462
+ return this.hcClient.sendRequest(options);
5463
+ }
5464
+ /**
5465
+ * 用户创建语音训练进阶版任务,该接口会返回一个obs上传地址,用于上传语音文件。
5466
+ *
5467
+ * 支持2种方式上传语音文件:
5468
+ * * 语音文件和文本文件打包成zip上传:语音文件已经切分成100个wav文件,每个语音文件对应一个txt文本文件,所有文件打包成zip文件。语音文件命名规则:0.wav~99.wav;文本文件命名规则:0.txt~99.txt。
5469
+ * * 语音文件和文本文件逐句上传:每次上传一句语料的语音文件和文本文件,再调用“确认在线录音结果”接口确认语音和文本内容是否一致。确认成功后再上传和确认下一句。
5470
+ *
5471
+ * 文件上传后,调用“提交语音训练任务”接口,启动审核和训练。
5472
+ *
5473
+ * Please refer to HUAWEI cloud API Explorer for details.
5474
+ *
5475
+ * @summary 创建进阶版语音训练任务
5476
+ * @param {CreateTrainingJobReq} createTrainingMiddleJobRequestBody 创建任务请求。
5477
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
5478
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
5479
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
5480
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
5481
+ * @param {*} [options] Override http request option.
5482
+ * @throws {RequiredError}
5483
+ */
5484
+ createTrainingMiddleJob(createTrainingMiddleJobRequest) {
5485
+ const options = (0, exports.ParamCreater)().createTrainingMiddleJob(createTrainingMiddleJobRequest);
5486
+ // @ts-ignore
5487
+ options['responseHeaders'] = [''];
5488
+ return this.hcClient.sendRequest(options);
5489
+ }
5490
+ /**
5491
+ * 用户创建第三方平台语音训练任务,该接口会返回一个obs上传地址,用于上传语音文件。
5492
+ * 仅支持zip包方式上传语音文件:
5493
+ * * 语音文件打包成zip上传:上传的训练数据为一个zip格式压缩文件,其中包含一段wav格式的长音频文件。
5145
5494
  *
5146
5495
  * > * 文件上传后,调用“提交语音训练任务”接口,启动审核和训练。
5147
5496
  *
@@ -5246,6 +5595,24 @@ class MetaStudioClient {
5246
5595
  options['responseHeaders'] = [''];
5247
5596
  return this.hcClient.sendRequest(options);
5248
5597
  }
5598
+ /**
5599
+ * 下载加密文件
5600
+ *
5601
+ * Please refer to HUAWEI cloud API Explorer for details.
5602
+ *
5603
+ * @summary 下载加密文件
5604
+ * @param {string} tenantId 租户id
5605
+ * @param {string} jobId 任务id
5606
+ * @param {string} onceToken 一次性token
5607
+ * @param {*} [options] Override http request option.
5608
+ * @throws {RequiredError}
5609
+ */
5610
+ showEncryptFile(showEncryptFileRequest) {
5611
+ const options = (0, exports.ParamCreater)().showEncryptFile(showEncryptFileRequest);
5612
+ // @ts-ignore
5613
+ options['responseHeaders'] = [''];
5614
+ return this.hcClient.sendRequest(options);
5615
+ }
5249
5616
  /**
5250
5617
  * 获取语音训练任务审核结果。
5251
5618
  *
@@ -5409,7 +5776,25 @@ class MetaStudioClient {
5409
5776
  return this.hcClient.sendRequest(options);
5410
5777
  }
5411
5778
  /**
5412
- * 该接口用于租户执行分身数字人模型训练任务命令,如提交训练审核等。
5779
+ * 下载加密文件
5780
+ *
5781
+ * Please refer to HUAWEI cloud API Explorer for details.
5782
+ *
5783
+ * @summary 下载加密文件
5784
+ * @param {string} tenantId 租户id
5785
+ * @param {string} jobId 任务id
5786
+ * @param {string} onceToken 一次性token
5787
+ * @param {*} [options] Override http request option.
5788
+ * @throws {RequiredError}
5789
+ */
5790
+ download2dModelTraningEncryptFile(download2dModelTraningEncryptFileRequest) {
5791
+ const options = (0, exports.ParamCreater)().download2dModelTraningEncryptFile(download2dModelTraningEncryptFileRequest);
5792
+ // @ts-ignore
5793
+ options['responseHeaders'] = [''];
5794
+ return this.hcClient.sendRequest(options);
5795
+ }
5796
+ /**
5797
+ * 该接口用于租户执行分身数字人模型训练任务命令,如提交训练审核等。
5413
5798
  *
5414
5799
  * Please refer to HUAWEI cloud API Explorer for details.
5415
5800
  *
@@ -5441,18 +5826,23 @@ class MetaStudioClient {
5441
5826
  * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
5442
5827
  * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
5443
5828
  * @param {number} [limit] 每页显示的条目数量。
5829
+ * @param {string} [state] 任务状态,默认所有状态。 可多个状态查询,使用英文逗号分隔。 如state=CREATING,PUBLISHED
5444
5830
  * @param {string} [sortKey] 排序字段,支持的排序方式有: - 按创建时间排序:create_time - 按更新时间排序:update_time - 按资产排序:asset_order
5445
5831
  * @param {string} [sortDir] 排序方式。 * asc:升序 * desc:降序 默认asc升序。
5446
5832
  * @param {string} [createUntil] 过滤创建时间<=输入时间的记录。
5447
5833
  * @param {string} [createSince] 过滤创建时间>=输入时间的记录。
5448
- * @param {string} [state] 任务状态,默认所有状态。 可多个状态查询,使用英文逗号分隔。 如state=CREATING,PUBLISHED
5449
5834
  * @param {string} [queryProjectId] 查询租户id。
5835
+ * @param {string} [updateSince] 过滤更新时间>=输入时间的记录。
5836
+ * @param {string} [updateUntil] 过滤更新时间>=输入时间的记录。
5450
5837
  * @param {string} [batchName] 任务批次名称。
5451
5838
  * @param {string} [tag] 任务标签。
5452
5839
  * @param {string} [jobId] 任务ID。
5453
5840
  * @param {string} [name] 分身数字人模型名称
5454
5841
  * @param {string} [modelResolution] 模型分辨率
5455
5842
  * @param {boolean} [isFlexus] 是否是flexus任务
5843
+ * @param {boolean} [isLiveCopy] 是否是直播间复刻任务
5844
+ * @param {string} [trainLocation] 训练region
5845
+ * @param {boolean} [isOndemandResource] 是否测试版
5456
5846
  * @param {*} [options] Override http request option.
5457
5847
  * @throws {RequiredError}
5458
5848
  */
@@ -5504,99 +5894,6 @@ class MetaStudioClient {
5504
5894
  options['responseHeaders'] = ['X-Request-Id'];
5505
5895
  return this.hcClient.sendRequest(options);
5506
5896
  }
5507
- /**
5508
- * 该接口用于创建驱动数字人表情的任务。
5509
- *
5510
- * Please refer to HUAWEI cloud API Explorer for details.
5511
- *
5512
- * @summary 创建语音驱动表情动画任务
5513
- * @param {CreateFASReq} [createFacialAnimationsRequestBody] 数字人语音驱动表情任务创建请求。
5514
- * @param {*} [options] Override http request option.
5515
- * @throws {RequiredError}
5516
- */
5517
- createFacialAnimations(createFacialAnimationsRequest) {
5518
- const options = (0, exports.ParamCreater)().createFacialAnimations(createFacialAnimationsRequest);
5519
- // @ts-ignore
5520
- options['responseHeaders'] = ['X-Request-Id'];
5521
- return this.hcClient.sendRequest(options);
5522
- }
5523
- /**
5524
- * 该接口用于创建驱动数字人表情、动作及语音的任务。
5525
- *
5526
- * Please refer to HUAWEI cloud API Explorer for details.
5527
- *
5528
- * @summary 创建语音驱动任务
5529
- * @param {CreateTTSAReq} createTTSARequestBody 数字人语音驱动任务创建请求。
5530
- * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
5531
- * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
5532
- * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
5533
- * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
5534
- * @param {*} [options] Override http request option.
5535
- * @throws {RequiredError}
5536
- */
5537
- createTtsa(createTtsaRequest) {
5538
- const options = (0, exports.ParamCreater)().createTtsa(createTtsaRequest);
5539
- // @ts-ignore
5540
- options['responseHeaders'] = ['X-Request-Id'];
5541
- return this.hcClient.sendRequest(options);
5542
- }
5543
- /**
5544
- * 该接口用于获取生成的数字人表情驱动数据
5545
- *
5546
- * Please refer to HUAWEI cloud API Explorer for details.
5547
- *
5548
- * @summary 获取语音驱动表情数据
5549
- * @param {string} jobId 表情驱动任务ID
5550
- * @param {*} [options] Override http request option.
5551
- * @throws {RequiredError}
5552
- */
5553
- listFacialAnimationsData(listFacialAnimationsDataRequest) {
5554
- const options = (0, exports.ParamCreater)().listFacialAnimationsData(listFacialAnimationsDataRequest);
5555
- // @ts-ignore
5556
- options['responseHeaders'] = [''];
5557
- return this.hcClient.sendRequest(options);
5558
- }
5559
- /**
5560
- * 该接口用于获取生成的数字人驱动数据,包括语音、表情、动作等。
5561
- *
5562
- * Please refer to HUAWEI cloud API Explorer for details.
5563
- *
5564
- * @summary 获取语音驱动数据
5565
- * @param {string} jobId 任务ID。
5566
- * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
5567
- * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
5568
- * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
5569
- * @param {number} [offset] 偏移量,表示生成内容时间偏移,目前每次返回2秒内容。
5570
- * @param {*} [options] Override http request option.
5571
- * @throws {RequiredError}
5572
- */
5573
- listTtsaData(listTtsaDataRequest) {
5574
- const options = (0, exports.ParamCreater)().listTtsaData(listTtsaDataRequest);
5575
- // @ts-ignore
5576
- options['responseHeaders'] = ['X-Request-Id'];
5577
- return this.hcClient.sendRequest(options);
5578
- }
5579
- /**
5580
- * 该接口用于查询驱动数字人表情、动作及语音的任务列表。
5581
- *
5582
- * Please refer to HUAWEI cloud API Explorer for details.
5583
- *
5584
- * @summary 获取语音驱动任务列表
5585
- * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
5586
- * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
5587
- * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
5588
- * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
5589
- * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
5590
- * @param {number} [limit] 每页显示的条目数量。
5591
- * @param {*} [options] Override http request option.
5592
- * @throws {RequiredError}
5593
- */
5594
- listTtsaJobs(listTtsaJobsRequest) {
5595
- const options = (0, exports.ParamCreater)().listTtsaJobs(listTtsaJobsRequest);
5596
- // @ts-ignore
5597
- options['responseHeaders'] = ['X-Request-Id'];
5598
- return this.hcClient.sendRequest(options);
5599
- }
5600
5897
  /**
5601
5898
  * 该接口用于校验音色模型是否可用,模型可用返回模型信息,不可用返回具体不可用的原因
5602
5899
  *
@@ -5757,6 +6054,26 @@ class MetaStudioClient {
5757
6054
  options['responseHeaders'] = [''];
5758
6055
  return this.hcClient.sendRequest(options);
5759
6056
  }
6057
+ /**
6058
+ * 该接口用于获取TTS租户级一次性token。
6059
+ *
6060
+ * Please refer to HUAWEI cloud API Explorer for details.
6061
+ *
6062
+ * @summary 外部接口-获取TTS一次性token
6063
+ * @param {string} [xRequestId] 请求requestId,用来标识一路请求,用于问题跟踪定位,建议使用uuId,若不携带,则后台自动生成
6064
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
6065
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
6066
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
6067
+ * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
6068
+ * @param {*} [options] Override http request option.
6069
+ * @throws {RequiredError}
6070
+ */
6071
+ createTtsOnceCode(createTtsOnceCodeRequest) {
6072
+ const options = (0, exports.ParamCreater)().createTtsOnceCode(createTtsOnceCodeRequest);
6073
+ // @ts-ignore
6074
+ options['responseHeaders'] = [''];
6075
+ return this.hcClient.sendRequest(options);
6076
+ }
5760
6077
  /**
5761
6078
  * 该接口用于设置TTS租户级自定义读法配置。
5762
6079
  *
@@ -8376,6 +8693,67 @@ const ParamCreater = function () {
8376
8693
  options.headers = localVarHeaderParameter;
8377
8694
  return options;
8378
8695
  },
8696
+ /**
8697
+ * 转移资产任务控制
8698
+ *
8699
+ * Please refer to HUAWEI cloud API Explorer for details.
8700
+ */
8701
+ executeTransferAssetAction(executeTransferAssetActionRequest) {
8702
+ const options = {
8703
+ method: "POST",
8704
+ url: "/v1/{project_id}/digital-assets-action/transfers/{job_id}/{action}",
8705
+ contentType: "application/json",
8706
+ queryParams: {},
8707
+ pathParams: {},
8708
+ headers: {},
8709
+ data: {}
8710
+ };
8711
+ const localVarHeaderParameter = {};
8712
+ let body;
8713
+ let jobId;
8714
+ let action;
8715
+ let xAppUserId;
8716
+ let authorization;
8717
+ let xSdkDate;
8718
+ if (executeTransferAssetActionRequest !== null && executeTransferAssetActionRequest !== undefined) {
8719
+ if (executeTransferAssetActionRequest instanceof ExecuteTransferAssetActionRequest_1.ExecuteTransferAssetActionRequest) {
8720
+ jobId = executeTransferAssetActionRequest.jobId;
8721
+ action = executeTransferAssetActionRequest.action;
8722
+ xAppUserId = executeTransferAssetActionRequest.xAppUserId;
8723
+ authorization = executeTransferAssetActionRequest.authorization;
8724
+ xSdkDate = executeTransferAssetActionRequest.xSdkDate;
8725
+ body = executeTransferAssetActionRequest.body;
8726
+ }
8727
+ else {
8728
+ jobId = executeTransferAssetActionRequest['job_id'];
8729
+ action = executeTransferAssetActionRequest['action'];
8730
+ xAppUserId = executeTransferAssetActionRequest['X-App-UserId'];
8731
+ authorization = executeTransferAssetActionRequest['Authorization'];
8732
+ xSdkDate = executeTransferAssetActionRequest['X-Sdk-Date'];
8733
+ body = executeTransferAssetActionRequest['body'];
8734
+ }
8735
+ }
8736
+ if (jobId === null || jobId === undefined) {
8737
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling executeTransferAssetAction.');
8738
+ }
8739
+ if (action === null || action === undefined) {
8740
+ throw new RequiredError('action', 'Required parameter action was null or undefined when calling executeTransferAssetAction.');
8741
+ }
8742
+ if (xAppUserId !== undefined && xAppUserId !== null) {
8743
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
8744
+ }
8745
+ if (authorization !== undefined && authorization !== null) {
8746
+ localVarHeaderParameter['Authorization'] = String(authorization);
8747
+ }
8748
+ if (xSdkDate !== undefined && xSdkDate !== null) {
8749
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
8750
+ }
8751
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8752
+ options.data = body !== undefined ? body : {};
8753
+ options.pathParams = { 'job_id': jobId, 'action': action, };
8754
+ options.headers = localVarHeaderParameter;
8755
+ return options;
8756
+ },
8379
8757
  /**
8380
8758
  * 该接口用于查询媒体资产库中指定的多个资产的概要信息。
8381
8759
  *
@@ -8645,6 +9023,80 @@ const ParamCreater = function () {
8645
9023
  options.headers = localVarHeaderParameter;
8646
9024
  return options;
8647
9025
  },
9026
+ /**
9027
+ * 资产转移任务列表
9028
+ *
9029
+ * Please refer to HUAWEI cloud API Explorer for details.
9030
+ */
9031
+ listTransferAssetJobs(listTransferAssetJobsRequest) {
9032
+ const options = {
9033
+ method: "GET",
9034
+ url: "/v1/{project_id}/digital-assets-action/transfers",
9035
+ contentType: "application/json",
9036
+ queryParams: {},
9037
+ pathParams: {},
9038
+ headers: {}
9039
+ };
9040
+ const localVarHeaderParameter = {};
9041
+ const localVarQueryParameter = {};
9042
+ let authorization;
9043
+ let xSdkDate;
9044
+ let offset;
9045
+ let limit;
9046
+ let xAppUserId;
9047
+ let role;
9048
+ let state;
9049
+ let transferType;
9050
+ if (listTransferAssetJobsRequest !== null && listTransferAssetJobsRequest !== undefined) {
9051
+ if (listTransferAssetJobsRequest instanceof ListTransferAssetJobsRequest_1.ListTransferAssetJobsRequest) {
9052
+ authorization = listTransferAssetJobsRequest.authorization;
9053
+ xSdkDate = listTransferAssetJobsRequest.xSdkDate;
9054
+ offset = listTransferAssetJobsRequest.offset;
9055
+ limit = listTransferAssetJobsRequest.limit;
9056
+ xAppUserId = listTransferAssetJobsRequest.xAppUserId;
9057
+ role = listTransferAssetJobsRequest.role;
9058
+ state = listTransferAssetJobsRequest.state;
9059
+ transferType = listTransferAssetJobsRequest.transferType;
9060
+ }
9061
+ else {
9062
+ authorization = listTransferAssetJobsRequest['Authorization'];
9063
+ xSdkDate = listTransferAssetJobsRequest['X-Sdk-Date'];
9064
+ offset = listTransferAssetJobsRequest['offset'];
9065
+ limit = listTransferAssetJobsRequest['limit'];
9066
+ xAppUserId = listTransferAssetJobsRequest['X-App-UserId'];
9067
+ role = listTransferAssetJobsRequest['role'];
9068
+ state = listTransferAssetJobsRequest['state'];
9069
+ transferType = listTransferAssetJobsRequest['transfer_type'];
9070
+ }
9071
+ }
9072
+ if (offset !== null && offset !== undefined) {
9073
+ localVarQueryParameter['offset'] = offset;
9074
+ }
9075
+ if (limit !== null && limit !== undefined) {
9076
+ localVarQueryParameter['limit'] = limit;
9077
+ }
9078
+ if (role !== null && role !== undefined) {
9079
+ localVarQueryParameter['role'] = role;
9080
+ }
9081
+ if (state !== null && state !== undefined) {
9082
+ localVarQueryParameter['state'] = state;
9083
+ }
9084
+ if (transferType !== null && transferType !== undefined) {
9085
+ localVarQueryParameter['transfer_type'] = transferType;
9086
+ }
9087
+ if (authorization !== undefined && authorization !== null) {
9088
+ localVarHeaderParameter['Authorization'] = String(authorization);
9089
+ }
9090
+ if (xSdkDate !== undefined && xSdkDate !== null) {
9091
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
9092
+ }
9093
+ if (xAppUserId !== undefined && xAppUserId !== null) {
9094
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
9095
+ }
9096
+ options.queryParams = localVarQueryParameter;
9097
+ options.headers = localVarHeaderParameter;
9098
+ return options;
9099
+ },
8648
9100
  /**
8649
9101
  * 该接口用于恢复被删除至回收站的媒体资产。
8650
9102
  *
@@ -8793,47 +9245,40 @@ const ParamCreater = function () {
8793
9245
  return options;
8794
9246
  },
8795
9247
  /**
8796
- * 该接口用于更新资产库中的媒体资产信息。
9248
+ * 查询转移资产任务详情
8797
9249
  *
8798
9250
  * Please refer to HUAWEI cloud API Explorer for details.
8799
9251
  */
8800
- updateDigitalAsset(updateDigitalAssetRequest) {
9252
+ showTransferAssetJob(showTransferAssetJobRequest) {
8801
9253
  const options = {
8802
- method: "PUT",
8803
- url: "/v1/{project_id}/digital-assets/{asset_id}",
9254
+ method: "GET",
9255
+ url: "/v1/{project_id}/digital-assets-action/transfers/{job_id}",
8804
9256
  contentType: "application/json",
8805
9257
  queryParams: {},
8806
9258
  pathParams: {},
8807
- headers: {},
8808
- data: {}
9259
+ headers: {}
8809
9260
  };
8810
9261
  const localVarHeaderParameter = {};
8811
- let body;
8812
- let assetId;
9262
+ let jobId;
8813
9263
  let authorization;
8814
9264
  let xSdkDate;
8815
9265
  let xAppUserId;
8816
- if (updateDigitalAssetRequest !== null && updateDigitalAssetRequest !== undefined) {
8817
- if (updateDigitalAssetRequest instanceof UpdateDigitalAssetRequest_1.UpdateDigitalAssetRequest) {
8818
- assetId = updateDigitalAssetRequest.assetId;
8819
- body = updateDigitalAssetRequest.body;
8820
- authorization = updateDigitalAssetRequest.authorization;
8821
- xSdkDate = updateDigitalAssetRequest.xSdkDate;
8822
- xAppUserId = updateDigitalAssetRequest.xAppUserId;
9266
+ if (showTransferAssetJobRequest !== null && showTransferAssetJobRequest !== undefined) {
9267
+ if (showTransferAssetJobRequest instanceof ShowTransferAssetJobRequest_1.ShowTransferAssetJobRequest) {
9268
+ jobId = showTransferAssetJobRequest.jobId;
9269
+ authorization = showTransferAssetJobRequest.authorization;
9270
+ xSdkDate = showTransferAssetJobRequest.xSdkDate;
9271
+ xAppUserId = showTransferAssetJobRequest.xAppUserId;
8823
9272
  }
8824
9273
  else {
8825
- assetId = updateDigitalAssetRequest['asset_id'];
8826
- body = updateDigitalAssetRequest['body'];
8827
- authorization = updateDigitalAssetRequest['Authorization'];
8828
- xSdkDate = updateDigitalAssetRequest['X-Sdk-Date'];
8829
- xAppUserId = updateDigitalAssetRequest['X-App-UserId'];
9274
+ jobId = showTransferAssetJobRequest['job_id'];
9275
+ authorization = showTransferAssetJobRequest['Authorization'];
9276
+ xSdkDate = showTransferAssetJobRequest['X-Sdk-Date'];
9277
+ xAppUserId = showTransferAssetJobRequest['X-App-UserId'];
8830
9278
  }
8831
9279
  }
8832
- if (assetId === null || assetId === undefined) {
8833
- throw new RequiredError('assetId', 'Required parameter assetId was null or undefined when calling updateDigitalAsset.');
8834
- }
8835
- if (body === null || body === undefined) {
8836
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
9280
+ if (jobId === null || jobId === undefined) {
9281
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showTransferAssetJob.');
8837
9282
  }
8838
9283
  if (authorization !== undefined && authorization !== null) {
8839
9284
  localVarHeaderParameter['Authorization'] = String(authorization);
@@ -8844,21 +9289,19 @@ const ParamCreater = function () {
8844
9289
  if (xAppUserId !== undefined && xAppUserId !== null) {
8845
9290
  localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
8846
9291
  }
8847
- localVarHeaderParameter['Content-Type'] = 'application/json';
8848
- options.data = body !== undefined ? body : {};
8849
- options.pathParams = { 'asset_id': assetId, };
9292
+ options.pathParams = { 'job_id': jobId, };
8850
9293
  options.headers = localVarHeaderParameter;
8851
9294
  return options;
8852
9295
  },
8853
9296
  /**
8854
- * 该接口用于数字人名片制作任务。
9297
+ * 转移资产给其他用户
8855
9298
  *
8856
9299
  * Please refer to HUAWEI cloud API Explorer for details.
8857
9300
  */
8858
- createDigitalHumanBusinessCard(createDigitalHumanBusinessCardRequest) {
9301
+ transferAsset(transferAssetRequest) {
8859
9302
  const options = {
8860
9303
  method: "POST",
8861
- url: "/v1/{project_id}/digital-human-business-cards",
9304
+ url: "/v1/{project_id}/digital-assets-action/transfers",
8862
9305
  contentType: "application/json",
8863
9306
  queryParams: {},
8864
9307
  pathParams: {},
@@ -8869,22 +9312,19 @@ const ParamCreater = function () {
8869
9312
  let body;
8870
9313
  let authorization;
8871
9314
  let xSdkDate;
8872
- let xProjectId;
8873
9315
  let xAppUserId;
8874
- if (createDigitalHumanBusinessCardRequest !== null && createDigitalHumanBusinessCardRequest !== undefined) {
8875
- if (createDigitalHumanBusinessCardRequest instanceof CreateDigitalHumanBusinessCardRequest_1.CreateDigitalHumanBusinessCardRequest) {
8876
- body = createDigitalHumanBusinessCardRequest.body;
8877
- authorization = createDigitalHumanBusinessCardRequest.authorization;
8878
- xSdkDate = createDigitalHumanBusinessCardRequest.xSdkDate;
8879
- xProjectId = createDigitalHumanBusinessCardRequest.xProjectId;
8880
- xAppUserId = createDigitalHumanBusinessCardRequest.xAppUserId;
9316
+ if (transferAssetRequest !== null && transferAssetRequest !== undefined) {
9317
+ if (transferAssetRequest instanceof TransferAssetRequest_1.TransferAssetRequest) {
9318
+ body = transferAssetRequest.body;
9319
+ authorization = transferAssetRequest.authorization;
9320
+ xSdkDate = transferAssetRequest.xSdkDate;
9321
+ xAppUserId = transferAssetRequest.xAppUserId;
8881
9322
  }
8882
9323
  else {
8883
- body = createDigitalHumanBusinessCardRequest['body'];
8884
- authorization = createDigitalHumanBusinessCardRequest['Authorization'];
8885
- xSdkDate = createDigitalHumanBusinessCardRequest['X-Sdk-Date'];
8886
- xProjectId = createDigitalHumanBusinessCardRequest['X-Project-Id'];
8887
- xAppUserId = createDigitalHumanBusinessCardRequest['X-App-UserId'];
9324
+ body = transferAssetRequest['body'];
9325
+ authorization = transferAssetRequest['Authorization'];
9326
+ xSdkDate = transferAssetRequest['X-Sdk-Date'];
9327
+ xAppUserId = transferAssetRequest['X-App-UserId'];
8888
9328
  }
8889
9329
  }
8890
9330
  if (body === null || body === undefined) {
@@ -8896,9 +9336,6 @@ const ParamCreater = function () {
8896
9336
  if (xSdkDate !== undefined && xSdkDate !== null) {
8897
9337
  localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
8898
9338
  }
8899
- if (xProjectId !== undefined && xProjectId !== null) {
8900
- localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
8901
- }
8902
9339
  if (xAppUserId !== undefined && xAppUserId !== null) {
8903
9340
  localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
8904
9341
  }
@@ -8908,22 +9345,137 @@ const ParamCreater = function () {
8908
9345
  return options;
8909
9346
  },
8910
9347
  /**
8911
- * 该接口用于删除数字人名片制作任务。
9348
+ * 该接口用于更新资产库中的媒体资产信息。
8912
9349
  *
8913
9350
  * Please refer to HUAWEI cloud API Explorer for details.
8914
9351
  */
8915
- deleteDigitalHumanBusinessCard(deleteDigitalHumanBusinessCardRequest) {
9352
+ updateDigitalAsset(updateDigitalAssetRequest) {
8916
9353
  const options = {
8917
- method: "DELETE",
8918
- url: "/v1/{project_id}/digital-human-business-cards/{job_id}",
9354
+ method: "PUT",
9355
+ url: "/v1/{project_id}/digital-assets/{asset_id}",
8919
9356
  contentType: "application/json",
8920
9357
  queryParams: {},
8921
9358
  pathParams: {},
8922
- headers: {}
9359
+ headers: {},
9360
+ data: {}
8923
9361
  };
8924
9362
  const localVarHeaderParameter = {};
8925
- let jobId;
8926
- let authorization;
9363
+ let body;
9364
+ let assetId;
9365
+ let authorization;
9366
+ let xSdkDate;
9367
+ let xAppUserId;
9368
+ if (updateDigitalAssetRequest !== null && updateDigitalAssetRequest !== undefined) {
9369
+ if (updateDigitalAssetRequest instanceof UpdateDigitalAssetRequest_1.UpdateDigitalAssetRequest) {
9370
+ assetId = updateDigitalAssetRequest.assetId;
9371
+ body = updateDigitalAssetRequest.body;
9372
+ authorization = updateDigitalAssetRequest.authorization;
9373
+ xSdkDate = updateDigitalAssetRequest.xSdkDate;
9374
+ xAppUserId = updateDigitalAssetRequest.xAppUserId;
9375
+ }
9376
+ else {
9377
+ assetId = updateDigitalAssetRequest['asset_id'];
9378
+ body = updateDigitalAssetRequest['body'];
9379
+ authorization = updateDigitalAssetRequest['Authorization'];
9380
+ xSdkDate = updateDigitalAssetRequest['X-Sdk-Date'];
9381
+ xAppUserId = updateDigitalAssetRequest['X-App-UserId'];
9382
+ }
9383
+ }
9384
+ if (assetId === null || assetId === undefined) {
9385
+ throw new RequiredError('assetId', 'Required parameter assetId was null or undefined when calling updateDigitalAsset.');
9386
+ }
9387
+ if (body === null || body === undefined) {
9388
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
9389
+ }
9390
+ if (authorization !== undefined && authorization !== null) {
9391
+ localVarHeaderParameter['Authorization'] = String(authorization);
9392
+ }
9393
+ if (xSdkDate !== undefined && xSdkDate !== null) {
9394
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
9395
+ }
9396
+ if (xAppUserId !== undefined && xAppUserId !== null) {
9397
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
9398
+ }
9399
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9400
+ options.data = body !== undefined ? body : {};
9401
+ options.pathParams = { 'asset_id': assetId, };
9402
+ options.headers = localVarHeaderParameter;
9403
+ return options;
9404
+ },
9405
+ /**
9406
+ * 该接口用于数字人名片制作任务。
9407
+ *
9408
+ * Please refer to HUAWEI cloud API Explorer for details.
9409
+ */
9410
+ createDigitalHumanBusinessCard(createDigitalHumanBusinessCardRequest) {
9411
+ const options = {
9412
+ method: "POST",
9413
+ url: "/v1/{project_id}/digital-human-business-cards",
9414
+ contentType: "application/json",
9415
+ queryParams: {},
9416
+ pathParams: {},
9417
+ headers: {},
9418
+ data: {}
9419
+ };
9420
+ const localVarHeaderParameter = {};
9421
+ let body;
9422
+ let authorization;
9423
+ let xSdkDate;
9424
+ let xProjectId;
9425
+ let xAppUserId;
9426
+ if (createDigitalHumanBusinessCardRequest !== null && createDigitalHumanBusinessCardRequest !== undefined) {
9427
+ if (createDigitalHumanBusinessCardRequest instanceof CreateDigitalHumanBusinessCardRequest_1.CreateDigitalHumanBusinessCardRequest) {
9428
+ body = createDigitalHumanBusinessCardRequest.body;
9429
+ authorization = createDigitalHumanBusinessCardRequest.authorization;
9430
+ xSdkDate = createDigitalHumanBusinessCardRequest.xSdkDate;
9431
+ xProjectId = createDigitalHumanBusinessCardRequest.xProjectId;
9432
+ xAppUserId = createDigitalHumanBusinessCardRequest.xAppUserId;
9433
+ }
9434
+ else {
9435
+ body = createDigitalHumanBusinessCardRequest['body'];
9436
+ authorization = createDigitalHumanBusinessCardRequest['Authorization'];
9437
+ xSdkDate = createDigitalHumanBusinessCardRequest['X-Sdk-Date'];
9438
+ xProjectId = createDigitalHumanBusinessCardRequest['X-Project-Id'];
9439
+ xAppUserId = createDigitalHumanBusinessCardRequest['X-App-UserId'];
9440
+ }
9441
+ }
9442
+ if (body === null || body === undefined) {
9443
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
9444
+ }
9445
+ if (authorization !== undefined && authorization !== null) {
9446
+ localVarHeaderParameter['Authorization'] = String(authorization);
9447
+ }
9448
+ if (xSdkDate !== undefined && xSdkDate !== null) {
9449
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
9450
+ }
9451
+ if (xProjectId !== undefined && xProjectId !== null) {
9452
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
9453
+ }
9454
+ if (xAppUserId !== undefined && xAppUserId !== null) {
9455
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
9456
+ }
9457
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9458
+ options.data = body !== undefined ? body : {};
9459
+ options.headers = localVarHeaderParameter;
9460
+ return options;
9461
+ },
9462
+ /**
9463
+ * 该接口用于删除数字人名片制作任务。
9464
+ *
9465
+ * Please refer to HUAWEI cloud API Explorer for details.
9466
+ */
9467
+ deleteDigitalHumanBusinessCard(deleteDigitalHumanBusinessCardRequest) {
9468
+ const options = {
9469
+ method: "DELETE",
9470
+ url: "/v1/{project_id}/digital-human-business-cards/{job_id}",
9471
+ contentType: "application/json",
9472
+ queryParams: {},
9473
+ pathParams: {},
9474
+ headers: {}
9475
+ };
9476
+ const localVarHeaderParameter = {};
9477
+ let jobId;
9478
+ let authorization;
8927
9479
  let xSdkDate;
8928
9480
  let xProjectId;
8929
9481
  let xAppUserId;
@@ -12696,59 +13248,6 @@ const ParamCreater = function () {
12696
13248
  options.headers = localVarHeaderParameter;
12697
13249
  return options;
12698
13250
  },
12699
- /**
12700
- * 下载加密文件
12701
- *
12702
- * Please refer to HUAWEI cloud API Explorer for details.
12703
- */
12704
- showEncryptFile(showEncryptFileRequest) {
12705
- const options = {
12706
- method: "GET",
12707
- url: "/v1/voice-training-manage/common/encrypt-file-download",
12708
- contentType: "application/json",
12709
- queryParams: {},
12710
- pathParams: {},
12711
- headers: {}
12712
- };
12713
- const localVarHeaderParameter = {};
12714
- const localVarQueryParameter = {};
12715
- let tenantId;
12716
- let jobId;
12717
- let onceToken;
12718
- if (showEncryptFileRequest !== null && showEncryptFileRequest !== undefined) {
12719
- if (showEncryptFileRequest instanceof ShowEncryptFileRequest_1.ShowEncryptFileRequest) {
12720
- tenantId = showEncryptFileRequest.tenantId;
12721
- jobId = showEncryptFileRequest.jobId;
12722
- onceToken = showEncryptFileRequest.onceToken;
12723
- }
12724
- else {
12725
- tenantId = showEncryptFileRequest['tenant_id'];
12726
- jobId = showEncryptFileRequest['job_id'];
12727
- onceToken = showEncryptFileRequest['once_token'];
12728
- }
12729
- }
12730
- if (tenantId === null || tenantId === undefined) {
12731
- throw new RequiredError('tenantId', 'Required parameter tenantId was null or undefined when calling showEncryptFile.');
12732
- }
12733
- if (tenantId !== null && tenantId !== undefined) {
12734
- localVarQueryParameter['tenant_id'] = tenantId;
12735
- }
12736
- if (jobId === null || jobId === undefined) {
12737
- throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showEncryptFile.');
12738
- }
12739
- if (jobId !== null && jobId !== undefined) {
12740
- localVarQueryParameter['job_id'] = jobId;
12741
- }
12742
- if (onceToken === null || onceToken === undefined) {
12743
- throw new RequiredError('onceToken', 'Required parameter onceToken was null or undefined when calling showEncryptFile.');
12744
- }
12745
- if (onceToken !== null && onceToken !== undefined) {
12746
- localVarQueryParameter['once_token'] = onceToken;
12747
- }
12748
- options.queryParams = localVarQueryParameter;
12749
- options.headers = localVarHeaderParameter;
12750
- return options;
12751
- },
12752
13251
  /**
12753
13252
  * 该接口用于创建知识库意图和问法。一个意图包含一个主题,一个答案,若干个问法等。接口使用限制详见[API使用限制](metastudio_02_0000.xml)。
12754
13253
  *
@@ -14579,6 +15078,8 @@ const ParamCreater = function () {
14579
15078
  let xSdkDate;
14580
15079
  let xProjectId;
14581
15080
  let xAppUserId;
15081
+ let offset;
15082
+ let limit;
14582
15083
  let used;
14583
15084
  if (showLivePlatformAccessTypeRequest !== null && showLivePlatformAccessTypeRequest !== undefined) {
14584
15085
  if (showLivePlatformAccessTypeRequest instanceof ShowLivePlatformAccessTypeRequest_1.ShowLivePlatformAccessTypeRequest) {
@@ -14586,6 +15087,8 @@ const ParamCreater = function () {
14586
15087
  xSdkDate = showLivePlatformAccessTypeRequest.xSdkDate;
14587
15088
  xProjectId = showLivePlatformAccessTypeRequest.xProjectId;
14588
15089
  xAppUserId = showLivePlatformAccessTypeRequest.xAppUserId;
15090
+ offset = showLivePlatformAccessTypeRequest.offset;
15091
+ limit = showLivePlatformAccessTypeRequest.limit;
14589
15092
  used = showLivePlatformAccessTypeRequest.used;
14590
15093
  }
14591
15094
  else {
@@ -14593,9 +15096,17 @@ const ParamCreater = function () {
14593
15096
  xSdkDate = showLivePlatformAccessTypeRequest['X-Sdk-Date'];
14594
15097
  xProjectId = showLivePlatformAccessTypeRequest['X-Project-Id'];
14595
15098
  xAppUserId = showLivePlatformAccessTypeRequest['X-App-UserId'];
15099
+ offset = showLivePlatformAccessTypeRequest['offset'];
15100
+ limit = showLivePlatformAccessTypeRequest['limit'];
14596
15101
  used = showLivePlatformAccessTypeRequest['used'];
14597
15102
  }
14598
15103
  }
15104
+ if (offset !== null && offset !== undefined) {
15105
+ localVarQueryParameter['offset'] = offset;
15106
+ }
15107
+ if (limit !== null && limit !== undefined) {
15108
+ localVarQueryParameter['limit'] = limit;
15109
+ }
14599
15110
  if (used !== null && used !== undefined) {
14600
15111
  localVarQueryParameter['used'] = used;
14601
15112
  }
@@ -18451,6 +18962,48 @@ const ParamCreater = function () {
18451
18962
  options.headers = localVarHeaderParameter;
18452
18963
  return options;
18453
18964
  },
18965
+ /**
18966
+ * 该接口用于租户设置直播租户级配置。
18967
+ *
18968
+ * Please refer to HUAWEI cloud API Explorer for details.
18969
+ */
18970
+ showSmartLiveUserConfig(showSmartLiveUserConfigRequest) {
18971
+ const options = {
18972
+ method: "GET",
18973
+ url: "/v1/{project_id}/smart-live-configs/user-config",
18974
+ contentType: "application/json",
18975
+ queryParams: {},
18976
+ pathParams: {},
18977
+ headers: {}
18978
+ };
18979
+ const localVarHeaderParameter = {};
18980
+ let authorization;
18981
+ let xSdkDate;
18982
+ let xProjectId;
18983
+ if (showSmartLiveUserConfigRequest !== null && showSmartLiveUserConfigRequest !== undefined) {
18984
+ if (showSmartLiveUserConfigRequest instanceof ShowSmartLiveUserConfigRequest_1.ShowSmartLiveUserConfigRequest) {
18985
+ authorization = showSmartLiveUserConfigRequest.authorization;
18986
+ xSdkDate = showSmartLiveUserConfigRequest.xSdkDate;
18987
+ xProjectId = showSmartLiveUserConfigRequest.xProjectId;
18988
+ }
18989
+ else {
18990
+ authorization = showSmartLiveUserConfigRequest['Authorization'];
18991
+ xSdkDate = showSmartLiveUserConfigRequest['X-Sdk-Date'];
18992
+ xProjectId = showSmartLiveUserConfigRequest['X-Project-Id'];
18993
+ }
18994
+ }
18995
+ if (authorization !== undefined && authorization !== null) {
18996
+ localVarHeaderParameter['Authorization'] = String(authorization);
18997
+ }
18998
+ if (xSdkDate !== undefined && xSdkDate !== null) {
18999
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
19000
+ }
19001
+ if (xProjectId !== undefined && xProjectId !== null) {
19002
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
19003
+ }
19004
+ options.headers = localVarHeaderParameter;
19005
+ return options;
19006
+ },
18454
19007
  /**
18455
19008
  * 该接口用于租户设置直播租户级配置。
18456
19009
  *
@@ -20008,6 +20561,57 @@ const ParamCreater = function () {
20008
20561
  options.headers = localVarHeaderParameter;
20009
20562
  return options;
20010
20563
  },
20564
+ /**
20565
+ * 资源绑定接口。
20566
+ *
20567
+ * Please refer to HUAWEI cloud API Explorer for details.
20568
+ */
20569
+ bindUserAssetResource(bindUserAssetResourceRequest) {
20570
+ const options = {
20571
+ method: "POST",
20572
+ url: "/v1/{project_id}/tenants/bind-resource",
20573
+ contentType: "application/json",
20574
+ queryParams: {},
20575
+ pathParams: {},
20576
+ headers: {},
20577
+ data: {}
20578
+ };
20579
+ const localVarHeaderParameter = {};
20580
+ let body;
20581
+ let authorization;
20582
+ let xSdkDate;
20583
+ let xProjectId;
20584
+ if (bindUserAssetResourceRequest !== null && bindUserAssetResourceRequest !== undefined) {
20585
+ if (bindUserAssetResourceRequest instanceof BindUserAssetResourceRequest_1.BindUserAssetResourceRequest) {
20586
+ body = bindUserAssetResourceRequest.body;
20587
+ authorization = bindUserAssetResourceRequest.authorization;
20588
+ xSdkDate = bindUserAssetResourceRequest.xSdkDate;
20589
+ xProjectId = bindUserAssetResourceRequest.xProjectId;
20590
+ }
20591
+ else {
20592
+ body = bindUserAssetResourceRequest['body'];
20593
+ authorization = bindUserAssetResourceRequest['Authorization'];
20594
+ xSdkDate = bindUserAssetResourceRequest['X-Sdk-Date'];
20595
+ xProjectId = bindUserAssetResourceRequest['X-Project-Id'];
20596
+ }
20597
+ }
20598
+ if (body === null || body === undefined) {
20599
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
20600
+ }
20601
+ if (authorization !== undefined && authorization !== null) {
20602
+ localVarHeaderParameter['Authorization'] = String(authorization);
20603
+ }
20604
+ if (xSdkDate !== undefined && xSdkDate !== null) {
20605
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
20606
+ }
20607
+ if (xProjectId !== undefined && xProjectId !== null) {
20608
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
20609
+ }
20610
+ localVarHeaderParameter['Content-Type'] = 'application/json';
20611
+ options.data = body !== undefined ? body : {};
20612
+ options.headers = localVarHeaderParameter;
20613
+ return options;
20614
+ },
20011
20615
  /**
20012
20616
  * 统计指定时间段内即将过期的包周期与一次性资源数量。
20013
20617
  *
@@ -20071,20 +20675,171 @@ const ParamCreater = function () {
20071
20675
  return options;
20072
20676
  },
20073
20677
  /**
20074
- * 查看租户资源列表。
20075
- * > 按需套餐包用量本接口无法查询,需要调用CBC接口查询,详见[按需套餐包用量查询](https://cbc.huaweicloud.com/bm/support/api-apidt/CBCInterface_0001239.html)和[查询资源包信息](https://cbc.huaweicloud.com/bm/support/api-apidt/CBCInterface_0000511.html)。
20076
- * > 各种资源的计费方式请参考[计费说明](https://support.huaweicloud.com/productdesc-metastudio/metastudio_01_0006.html)。
20678
+ * 创建子账户(IAM用户)配额,需要先开启子账户隔离后才能配置。只有根账户可创建。
20077
20679
  *
20078
20680
  * Please refer to HUAWEI cloud API Explorer for details.
20079
20681
  */
20080
- listTenantResources(listTenantResourcesRequest) {
20682
+ createUserQuotas(createUserQuotasRequest) {
20081
20683
  const options = {
20082
- method: "GET",
20083
- url: "/v1/{project_id}/tenants/resources",
20684
+ method: "POST",
20685
+ url: "/v1/{project_id}/user/quotas",
20084
20686
  contentType: "application/json",
20085
20687
  queryParams: {},
20086
20688
  pathParams: {},
20087
- headers: {}
20689
+ headers: {},
20690
+ data: {}
20691
+ };
20692
+ const localVarHeaderParameter = {};
20693
+ let body;
20694
+ let authorization;
20695
+ let xSdkDate;
20696
+ let xProjectId;
20697
+ if (createUserQuotasRequest !== null && createUserQuotasRequest !== undefined) {
20698
+ if (createUserQuotasRequest instanceof CreateUserQuotasRequest_1.CreateUserQuotasRequest) {
20699
+ body = createUserQuotasRequest.body;
20700
+ authorization = createUserQuotasRequest.authorization;
20701
+ xSdkDate = createUserQuotasRequest.xSdkDate;
20702
+ xProjectId = createUserQuotasRequest.xProjectId;
20703
+ }
20704
+ else {
20705
+ body = createUserQuotasRequest['body'];
20706
+ authorization = createUserQuotasRequest['Authorization'];
20707
+ xSdkDate = createUserQuotasRequest['X-Sdk-Date'];
20708
+ xProjectId = createUserQuotasRequest['X-Project-Id'];
20709
+ }
20710
+ }
20711
+ if (body === null || body === undefined) {
20712
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
20713
+ }
20714
+ if (authorization !== undefined && authorization !== null) {
20715
+ localVarHeaderParameter['Authorization'] = String(authorization);
20716
+ }
20717
+ if (xSdkDate !== undefined && xSdkDate !== null) {
20718
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
20719
+ }
20720
+ if (xProjectId !== undefined && xProjectId !== null) {
20721
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
20722
+ }
20723
+ localVarHeaderParameter['Content-Type'] = 'application/json';
20724
+ options.data = body !== undefined ? body : {};
20725
+ options.headers = localVarHeaderParameter;
20726
+ return options;
20727
+ },
20728
+ /**
20729
+ * 删除租户个性化配置。由租户下用户操作设置。
20730
+ *
20731
+ * Please refer to HUAWEI cloud API Explorer for details.
20732
+ */
20733
+ deleteTenantUserConfiguration(deleteTenantUserConfigurationRequest) {
20734
+ const options = {
20735
+ method: "DELETE",
20736
+ url: "/v1/{project_id}/tenants/user-configurations",
20737
+ contentType: "application/json",
20738
+ queryParams: {},
20739
+ pathParams: {},
20740
+ headers: {},
20741
+ data: {}
20742
+ };
20743
+ const localVarHeaderParameter = {};
20744
+ let body;
20745
+ let authorization;
20746
+ let xSdkDate;
20747
+ let xProjectId;
20748
+ if (deleteTenantUserConfigurationRequest !== null && deleteTenantUserConfigurationRequest !== undefined) {
20749
+ if (deleteTenantUserConfigurationRequest instanceof DeleteTenantUserConfigurationRequest_1.DeleteTenantUserConfigurationRequest) {
20750
+ body = deleteTenantUserConfigurationRequest.body;
20751
+ authorization = deleteTenantUserConfigurationRequest.authorization;
20752
+ xSdkDate = deleteTenantUserConfigurationRequest.xSdkDate;
20753
+ xProjectId = deleteTenantUserConfigurationRequest.xProjectId;
20754
+ }
20755
+ else {
20756
+ body = deleteTenantUserConfigurationRequest['body'];
20757
+ authorization = deleteTenantUserConfigurationRequest['Authorization'];
20758
+ xSdkDate = deleteTenantUserConfigurationRequest['X-Sdk-Date'];
20759
+ xProjectId = deleteTenantUserConfigurationRequest['X-Project-Id'];
20760
+ }
20761
+ }
20762
+ if (body === null || body === undefined) {
20763
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
20764
+ }
20765
+ if (authorization !== undefined && authorization !== null) {
20766
+ localVarHeaderParameter['Authorization'] = String(authorization);
20767
+ }
20768
+ if (xSdkDate !== undefined && xSdkDate !== null) {
20769
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
20770
+ }
20771
+ if (xProjectId !== undefined && xProjectId !== null) {
20772
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
20773
+ }
20774
+ localVarHeaderParameter['Content-Type'] = 'application/json';
20775
+ options.data = body !== undefined ? body : {};
20776
+ options.headers = localVarHeaderParameter;
20777
+ return options;
20778
+ },
20779
+ /**
20780
+ * 删除子账户(IAM用户)配额,需要先开启子账户隔离后才能配置。只有根账户可删除。
20781
+ *
20782
+ * Please refer to HUAWEI cloud API Explorer for details.
20783
+ */
20784
+ deleteUserQuotas(deleteUserQuotasRequest) {
20785
+ const options = {
20786
+ method: "DELETE",
20787
+ url: "/v1/{project_id}/user/quotas/{user_id}",
20788
+ contentType: "application/json",
20789
+ queryParams: {},
20790
+ pathParams: {},
20791
+ headers: {}
20792
+ };
20793
+ const localVarHeaderParameter = {};
20794
+ let userId;
20795
+ let authorization;
20796
+ let xSdkDate;
20797
+ let xProjectId;
20798
+ if (deleteUserQuotasRequest !== null && deleteUserQuotasRequest !== undefined) {
20799
+ if (deleteUserQuotasRequest instanceof DeleteUserQuotasRequest_1.DeleteUserQuotasRequest) {
20800
+ userId = deleteUserQuotasRequest.userId;
20801
+ authorization = deleteUserQuotasRequest.authorization;
20802
+ xSdkDate = deleteUserQuotasRequest.xSdkDate;
20803
+ xProjectId = deleteUserQuotasRequest.xProjectId;
20804
+ }
20805
+ else {
20806
+ userId = deleteUserQuotasRequest['user_id'];
20807
+ authorization = deleteUserQuotasRequest['Authorization'];
20808
+ xSdkDate = deleteUserQuotasRequest['X-Sdk-Date'];
20809
+ xProjectId = deleteUserQuotasRequest['X-Project-Id'];
20810
+ }
20811
+ }
20812
+ if (userId === null || userId === undefined) {
20813
+ throw new RequiredError('userId', 'Required parameter userId was null or undefined when calling deleteUserQuotas.');
20814
+ }
20815
+ if (authorization !== undefined && authorization !== null) {
20816
+ localVarHeaderParameter['Authorization'] = String(authorization);
20817
+ }
20818
+ if (xSdkDate !== undefined && xSdkDate !== null) {
20819
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
20820
+ }
20821
+ if (xProjectId !== undefined && xProjectId !== null) {
20822
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
20823
+ }
20824
+ options.pathParams = { 'user_id': userId, };
20825
+ options.headers = localVarHeaderParameter;
20826
+ return options;
20827
+ },
20828
+ /**
20829
+ * 查看租户资源列表。
20830
+ * > 按需套餐包用量本接口无法查询,需要调用CBC接口查询,详见[按需套餐包用量查询](https://cbc.huaweicloud.com/bm/support/api-apidt/CBCInterface_0001239.html)和[查询资源包信息](https://cbc.huaweicloud.com/bm/support/api-apidt/CBCInterface_0000511.html)。
20831
+ * > 各种资源的计费方式请参考[计费说明](https://support.huaweicloud.com/productdesc-metastudio/metastudio_01_0006.html)。
20832
+ *
20833
+ * Please refer to HUAWEI cloud API Explorer for details.
20834
+ */
20835
+ listTenantResources(listTenantResourcesRequest) {
20836
+ const options = {
20837
+ method: "GET",
20838
+ url: "/v1/{project_id}/tenants/resources",
20839
+ contentType: "application/json",
20840
+ queryParams: {},
20841
+ pathParams: {},
20842
+ headers: {}
20088
20843
  };
20089
20844
  const localVarHeaderParameter = {};
20090
20845
  const localVarQueryParameter = {};
@@ -20151,32 +20906,400 @@ const ParamCreater = function () {
20151
20906
  if (offset !== null && offset !== undefined) {
20152
20907
  localVarQueryParameter['offset'] = offset;
20153
20908
  }
20154
- if (resource !== null && resource !== undefined) {
20155
- localVarQueryParameter['resource'] = resource;
20156
- }
20157
- if (business !== null && business !== undefined) {
20158
- localVarQueryParameter['business'] = business;
20159
- }
20160
- if (resourceId !== null && resourceId !== undefined) {
20161
- localVarQueryParameter['resource_id'] = resourceId;
20162
- }
20163
- if (orderId !== null && orderId !== undefined) {
20164
- localVarQueryParameter['order_id'] = orderId;
20165
- }
20166
- if (chargingMode !== null && chargingMode !== undefined) {
20167
- localVarQueryParameter['charging_mode'] = chargingMode;
20168
- }
20169
- if (resourceExpireStartTime !== null && resourceExpireStartTime !== undefined) {
20170
- localVarQueryParameter['resource_expire_start_time'] = resourceExpireStartTime;
20909
+ if (resource !== null && resource !== undefined) {
20910
+ localVarQueryParameter['resource'] = resource;
20911
+ }
20912
+ if (business !== null && business !== undefined) {
20913
+ localVarQueryParameter['business'] = business;
20914
+ }
20915
+ if (resourceId !== null && resourceId !== undefined) {
20916
+ localVarQueryParameter['resource_id'] = resourceId;
20917
+ }
20918
+ if (orderId !== null && orderId !== undefined) {
20919
+ localVarQueryParameter['order_id'] = orderId;
20920
+ }
20921
+ if (chargingMode !== null && chargingMode !== undefined) {
20922
+ localVarQueryParameter['charging_mode'] = chargingMode;
20923
+ }
20924
+ if (resourceExpireStartTime !== null && resourceExpireStartTime !== undefined) {
20925
+ localVarQueryParameter['resource_expire_start_time'] = resourceExpireStartTime;
20926
+ }
20927
+ if (resourceExpireEndTime !== null && resourceExpireEndTime !== undefined) {
20928
+ localVarQueryParameter['resource_expire_end_time'] = resourceExpireEndTime;
20929
+ }
20930
+ if (subResource !== null && subResource !== undefined) {
20931
+ localVarQueryParameter['sub_resource'] = subResource;
20932
+ }
20933
+ if (status !== null && status !== undefined) {
20934
+ localVarQueryParameter['status'] = status;
20935
+ }
20936
+ if (authorization !== undefined && authorization !== null) {
20937
+ localVarHeaderParameter['Authorization'] = String(authorization);
20938
+ }
20939
+ if (xSdkDate !== undefined && xSdkDate !== null) {
20940
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
20941
+ }
20942
+ if (xProjectId !== undefined && xProjectId !== null) {
20943
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
20944
+ }
20945
+ options.queryParams = localVarQueryParameter;
20946
+ options.headers = localVarHeaderParameter;
20947
+ return options;
20948
+ },
20949
+ /**
20950
+ * 查询子账户(IAM用户)配额。只有根账户可查询。
20951
+ *
20952
+ * Please refer to HUAWEI cloud API Explorer for details.
20953
+ */
20954
+ listUserQuotas(listUserQuotasRequest) {
20955
+ const options = {
20956
+ method: "GET",
20957
+ url: "/v1/{project_id}/user/quotas",
20958
+ contentType: "application/json",
20959
+ queryParams: {},
20960
+ pathParams: {},
20961
+ headers: {}
20962
+ };
20963
+ const localVarHeaderParameter = {};
20964
+ const localVarQueryParameter = {};
20965
+ let authorization;
20966
+ let xSdkDate;
20967
+ let xProjectId;
20968
+ let limit;
20969
+ let offset;
20970
+ let userId;
20971
+ if (listUserQuotasRequest !== null && listUserQuotasRequest !== undefined) {
20972
+ if (listUserQuotasRequest instanceof ListUserQuotasRequest_1.ListUserQuotasRequest) {
20973
+ authorization = listUserQuotasRequest.authorization;
20974
+ xSdkDate = listUserQuotasRequest.xSdkDate;
20975
+ xProjectId = listUserQuotasRequest.xProjectId;
20976
+ limit = listUserQuotasRequest.limit;
20977
+ offset = listUserQuotasRequest.offset;
20978
+ userId = listUserQuotasRequest.userId;
20979
+ }
20980
+ else {
20981
+ authorization = listUserQuotasRequest['Authorization'];
20982
+ xSdkDate = listUserQuotasRequest['X-Sdk-Date'];
20983
+ xProjectId = listUserQuotasRequest['X-Project-Id'];
20984
+ limit = listUserQuotasRequest['limit'];
20985
+ offset = listUserQuotasRequest['offset'];
20986
+ userId = listUserQuotasRequest['user_id'];
20987
+ }
20988
+ }
20989
+ if (limit !== null && limit !== undefined) {
20990
+ localVarQueryParameter['limit'] = limit;
20991
+ }
20992
+ if (offset !== null && offset !== undefined) {
20993
+ localVarQueryParameter['offset'] = offset;
20994
+ }
20995
+ if (userId !== null && userId !== undefined) {
20996
+ localVarQueryParameter['user_id'] = userId;
20997
+ }
20998
+ if (authorization !== undefined && authorization !== null) {
20999
+ localVarHeaderParameter['Authorization'] = String(authorization);
21000
+ }
21001
+ if (xSdkDate !== undefined && xSdkDate !== null) {
21002
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
21003
+ }
21004
+ if (xProjectId !== undefined && xProjectId !== null) {
21005
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
21006
+ }
21007
+ options.queryParams = localVarQueryParameter;
21008
+ options.headers = localVarHeaderParameter;
21009
+ return options;
21010
+ },
21011
+ /**
21012
+ * 设置租户个性化通知配置
21013
+ *
21014
+ * Please refer to HUAWEI cloud API Explorer for details.
21015
+ */
21016
+ setTenantNoticeConfiguration(setTenantNoticeConfigurationRequest) {
21017
+ const options = {
21018
+ method: "POST",
21019
+ url: "/v1/{project_id}/tenants/notice-configurations",
21020
+ contentType: "application/json",
21021
+ queryParams: {},
21022
+ pathParams: {},
21023
+ headers: {},
21024
+ data: {}
21025
+ };
21026
+ const localVarHeaderParameter = {};
21027
+ let body;
21028
+ let authorization;
21029
+ let xSdkDate;
21030
+ let xProjectId;
21031
+ if (setTenantNoticeConfigurationRequest !== null && setTenantNoticeConfigurationRequest !== undefined) {
21032
+ if (setTenantNoticeConfigurationRequest instanceof SetTenantNoticeConfigurationRequest_1.SetTenantNoticeConfigurationRequest) {
21033
+ body = setTenantNoticeConfigurationRequest.body;
21034
+ authorization = setTenantNoticeConfigurationRequest.authorization;
21035
+ xSdkDate = setTenantNoticeConfigurationRequest.xSdkDate;
21036
+ xProjectId = setTenantNoticeConfigurationRequest.xProjectId;
21037
+ }
21038
+ else {
21039
+ body = setTenantNoticeConfigurationRequest['body'];
21040
+ authorization = setTenantNoticeConfigurationRequest['Authorization'];
21041
+ xSdkDate = setTenantNoticeConfigurationRequest['X-Sdk-Date'];
21042
+ xProjectId = setTenantNoticeConfigurationRequest['X-Project-Id'];
21043
+ }
21044
+ }
21045
+ if (body === null || body === undefined) {
21046
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
21047
+ }
21048
+ if (authorization !== undefined && authorization !== null) {
21049
+ localVarHeaderParameter['Authorization'] = String(authorization);
21050
+ }
21051
+ if (xSdkDate !== undefined && xSdkDate !== null) {
21052
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
21053
+ }
21054
+ if (xProjectId !== undefined && xProjectId !== null) {
21055
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
21056
+ }
21057
+ localVarHeaderParameter['Content-Type'] = 'application/json';
21058
+ options.data = body !== undefined ? body : {};
21059
+ options.headers = localVarHeaderParameter;
21060
+ return options;
21061
+ },
21062
+ /**
21063
+ * 设置租户个性化配置。由租户下用户操作设置。
21064
+ *
21065
+ * Please refer to HUAWEI cloud API Explorer for details.
21066
+ */
21067
+ setTenantUserConfiguration(setTenantUserConfigurationRequest) {
21068
+ const options = {
21069
+ method: "POST",
21070
+ url: "/v1/{project_id}/tenants/user-configurations",
21071
+ contentType: "application/json",
21072
+ queryParams: {},
21073
+ pathParams: {},
21074
+ headers: {},
21075
+ data: {}
21076
+ };
21077
+ const localVarHeaderParameter = {};
21078
+ let body;
21079
+ let authorization;
21080
+ let xSdkDate;
21081
+ let xProjectId;
21082
+ if (setTenantUserConfigurationRequest !== null && setTenantUserConfigurationRequest !== undefined) {
21083
+ if (setTenantUserConfigurationRequest instanceof SetTenantUserConfigurationRequest_1.SetTenantUserConfigurationRequest) {
21084
+ body = setTenantUserConfigurationRequest.body;
21085
+ authorization = setTenantUserConfigurationRequest.authorization;
21086
+ xSdkDate = setTenantUserConfigurationRequest.xSdkDate;
21087
+ xProjectId = setTenantUserConfigurationRequest.xProjectId;
21088
+ }
21089
+ else {
21090
+ body = setTenantUserConfigurationRequest['body'];
21091
+ authorization = setTenantUserConfigurationRequest['Authorization'];
21092
+ xSdkDate = setTenantUserConfigurationRequest['X-Sdk-Date'];
21093
+ xProjectId = setTenantUserConfigurationRequest['X-Project-Id'];
21094
+ }
21095
+ }
21096
+ if (body === null || body === undefined) {
21097
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
21098
+ }
21099
+ if (authorization !== undefined && authorization !== null) {
21100
+ localVarHeaderParameter['Authorization'] = String(authorization);
21101
+ }
21102
+ if (xSdkDate !== undefined && xSdkDate !== null) {
21103
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
21104
+ }
21105
+ if (xProjectId !== undefined && xProjectId !== null) {
21106
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
21107
+ }
21108
+ localVarHeaderParameter['Content-Type'] = 'application/json';
21109
+ options.data = body !== undefined ? body : {};
21110
+ options.headers = localVarHeaderParameter;
21111
+ return options;
21112
+ },
21113
+ /**
21114
+ * 查询租户一次性和包周期(包年/包月)资源用量信息。
21115
+ * > 按需套餐包用量本接口无法查询,需要调用CBC接口查询,详见[按需套餐包用量查询](https://cbc.huaweicloud.com/bm/support/api-apidt/CBCInterface_0001239.html)和[查询资源包信息](https://cbc.huaweicloud.com/bm/support/api-apidt/CBCInterface_0000511.html)。
21116
+ * > 各种资源的计费方式请参考[计费说明](https://support.huaweicloud.com/productdesc-metastudio/metastudio_01_0006.html)。
21117
+ *
21118
+ * Please refer to HUAWEI cloud API Explorer for details.
21119
+ */
21120
+ showResourceUsage(showResourceUsageRequest) {
21121
+ const options = {
21122
+ method: "GET",
21123
+ url: "/v1/{project_id}/tenants/resources-usage",
21124
+ contentType: "application/json",
21125
+ queryParams: {},
21126
+ pathParams: {},
21127
+ headers: {}
21128
+ };
21129
+ const localVarHeaderParameter = {};
21130
+ const localVarQueryParameter = {};
21131
+ let authorization;
21132
+ let xSdkDate;
21133
+ let xProjectId;
21134
+ let resource;
21135
+ let business;
21136
+ if (showResourceUsageRequest !== null && showResourceUsageRequest !== undefined) {
21137
+ if (showResourceUsageRequest instanceof ShowResourceUsageRequest_1.ShowResourceUsageRequest) {
21138
+ authorization = showResourceUsageRequest.authorization;
21139
+ xSdkDate = showResourceUsageRequest.xSdkDate;
21140
+ xProjectId = showResourceUsageRequest.xProjectId;
21141
+ resource = showResourceUsageRequest.resource;
21142
+ business = showResourceUsageRequest.business;
21143
+ }
21144
+ else {
21145
+ authorization = showResourceUsageRequest['Authorization'];
21146
+ xSdkDate = showResourceUsageRequest['X-Sdk-Date'];
21147
+ xProjectId = showResourceUsageRequest['X-Project-Id'];
21148
+ resource = showResourceUsageRequest['resource'];
21149
+ business = showResourceUsageRequest['business'];
21150
+ }
21151
+ }
21152
+ if (resource !== null && resource !== undefined) {
21153
+ localVarQueryParameter['resource'] = resource;
21154
+ }
21155
+ if (business !== null && business !== undefined) {
21156
+ localVarQueryParameter['business'] = business;
21157
+ }
21158
+ if (authorization !== undefined && authorization !== null) {
21159
+ localVarHeaderParameter['Authorization'] = String(authorization);
21160
+ }
21161
+ if (xSdkDate !== undefined && xSdkDate !== null) {
21162
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
21163
+ }
21164
+ if (xProjectId !== undefined && xProjectId !== null) {
21165
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
21166
+ }
21167
+ options.queryParams = localVarQueryParameter;
21168
+ options.headers = localVarHeaderParameter;
21169
+ return options;
21170
+ },
21171
+ /**
21172
+ * 该接口用于普通租户查询租户下的资源详情。
21173
+ *
21174
+ * Please refer to HUAWEI cloud API Explorer for details.
21175
+ */
21176
+ showTenantAssginRecord(showTenantAssginRecordRequest) {
21177
+ const options = {
21178
+ method: "GET",
21179
+ url: "/v1/{project_id}/tenants/resource/assignrecourd",
21180
+ contentType: "application/json",
21181
+ queryParams: {},
21182
+ pathParams: {},
21183
+ headers: {}
21184
+ };
21185
+ const localVarHeaderParameter = {};
21186
+ const localVarQueryParameter = {};
21187
+ let limit;
21188
+ let offset;
21189
+ if (showTenantAssginRecordRequest !== null && showTenantAssginRecordRequest !== undefined) {
21190
+ if (showTenantAssginRecordRequest instanceof ShowTenantAssginRecordRequest_1.ShowTenantAssginRecordRequest) {
21191
+ limit = showTenantAssginRecordRequest.limit;
21192
+ offset = showTenantAssginRecordRequest.offset;
21193
+ }
21194
+ else {
21195
+ limit = showTenantAssginRecordRequest['limit'];
21196
+ offset = showTenantAssginRecordRequest['offset'];
21197
+ }
21198
+ }
21199
+ if (limit !== null && limit !== undefined) {
21200
+ localVarQueryParameter['limit'] = limit;
21201
+ }
21202
+ if (offset !== null && offset !== undefined) {
21203
+ localVarQueryParameter['offset'] = offset;
21204
+ }
21205
+ options.queryParams = localVarQueryParameter;
21206
+ options.headers = localVarHeaderParameter;
21207
+ return options;
21208
+ },
21209
+ /**
21210
+ * 查询租户个性化通知配置
21211
+ *
21212
+ * Please refer to HUAWEI cloud API Explorer for details.
21213
+ */
21214
+ showTenantNoticeConfiguration(showTenantNoticeConfigurationRequest) {
21215
+ const options = {
21216
+ method: "GET",
21217
+ url: "/v1/{project_id}/tenants/notice-configurations",
21218
+ contentType: "application/json",
21219
+ queryParams: {},
21220
+ pathParams: {},
21221
+ headers: {}
21222
+ };
21223
+ const localVarHeaderParameter = {};
21224
+ const localVarQueryParameter = {};
21225
+ let type;
21226
+ let authorization;
21227
+ let xSdkDate;
21228
+ let xProjectId;
21229
+ let limit;
21230
+ let offset;
21231
+ if (showTenantNoticeConfigurationRequest !== null && showTenantNoticeConfigurationRequest !== undefined) {
21232
+ if (showTenantNoticeConfigurationRequest instanceof ShowTenantNoticeConfigurationRequest_1.ShowTenantNoticeConfigurationRequest) {
21233
+ type = showTenantNoticeConfigurationRequest.type;
21234
+ authorization = showTenantNoticeConfigurationRequest.authorization;
21235
+ xSdkDate = showTenantNoticeConfigurationRequest.xSdkDate;
21236
+ xProjectId = showTenantNoticeConfigurationRequest.xProjectId;
21237
+ limit = showTenantNoticeConfigurationRequest.limit;
21238
+ offset = showTenantNoticeConfigurationRequest.offset;
21239
+ }
21240
+ else {
21241
+ type = showTenantNoticeConfigurationRequest['type'];
21242
+ authorization = showTenantNoticeConfigurationRequest['Authorization'];
21243
+ xSdkDate = showTenantNoticeConfigurationRequest['X-Sdk-Date'];
21244
+ xProjectId = showTenantNoticeConfigurationRequest['X-Project-Id'];
21245
+ limit = showTenantNoticeConfigurationRequest['limit'];
21246
+ offset = showTenantNoticeConfigurationRequest['offset'];
21247
+ }
21248
+ }
21249
+ if (type === null || type === undefined) {
21250
+ throw new RequiredError('type', 'Required parameter type was null or undefined when calling showTenantNoticeConfiguration.');
21251
+ }
21252
+ if (type !== null && type !== undefined) {
21253
+ localVarQueryParameter['type'] = type;
21254
+ }
21255
+ if (limit !== null && limit !== undefined) {
21256
+ localVarQueryParameter['limit'] = limit;
21257
+ }
21258
+ if (offset !== null && offset !== undefined) {
21259
+ localVarQueryParameter['offset'] = offset;
21260
+ }
21261
+ if (authorization !== undefined && authorization !== null) {
21262
+ localVarHeaderParameter['Authorization'] = String(authorization);
20171
21263
  }
20172
- if (resourceExpireEndTime !== null && resourceExpireEndTime !== undefined) {
20173
- localVarQueryParameter['resource_expire_end_time'] = resourceExpireEndTime;
21264
+ if (xSdkDate !== undefined && xSdkDate !== null) {
21265
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
20174
21266
  }
20175
- if (subResource !== null && subResource !== undefined) {
20176
- localVarQueryParameter['sub_resource'] = subResource;
21267
+ if (xProjectId !== undefined && xProjectId !== null) {
21268
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
20177
21269
  }
20178
- if (status !== null && status !== undefined) {
20179
- localVarQueryParameter['status'] = status;
21270
+ options.queryParams = localVarQueryParameter;
21271
+ options.headers = localVarHeaderParameter;
21272
+ return options;
21273
+ },
21274
+ /**
21275
+ * 查看租户服务业务配置
21276
+ *
21277
+ * Please refer to HUAWEI cloud API Explorer for details.
21278
+ */
21279
+ showTenantServiceConfigs(showTenantServiceConfigsRequest) {
21280
+ const options = {
21281
+ method: "GET",
21282
+ url: "/v1/{project_id}/tenants/service-configs",
21283
+ contentType: "application/json",
21284
+ queryParams: {},
21285
+ pathParams: {},
21286
+ headers: {}
21287
+ };
21288
+ const localVarHeaderParameter = {};
21289
+ let authorization;
21290
+ let xSdkDate;
21291
+ let xProjectId;
21292
+ if (showTenantServiceConfigsRequest !== null && showTenantServiceConfigsRequest !== undefined) {
21293
+ if (showTenantServiceConfigsRequest instanceof ShowTenantServiceConfigsRequest_1.ShowTenantServiceConfigsRequest) {
21294
+ authorization = showTenantServiceConfigsRequest.authorization;
21295
+ xSdkDate = showTenantServiceConfigsRequest.xSdkDate;
21296
+ xProjectId = showTenantServiceConfigsRequest.xProjectId;
21297
+ }
21298
+ else {
21299
+ authorization = showTenantServiceConfigsRequest['Authorization'];
21300
+ xSdkDate = showTenantServiceConfigsRequest['X-Sdk-Date'];
21301
+ xProjectId = showTenantServiceConfigsRequest['X-Project-Id'];
21302
+ }
20180
21303
  }
20181
21304
  if (authorization !== undefined && authorization !== null) {
20182
21305
  localVarHeaderParameter['Authorization'] = String(authorization);
@@ -20187,21 +21310,18 @@ const ParamCreater = function () {
20187
21310
  if (xProjectId !== undefined && xProjectId !== null) {
20188
21311
  localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
20189
21312
  }
20190
- options.queryParams = localVarQueryParameter;
20191
21313
  options.headers = localVarHeaderParameter;
20192
21314
  return options;
20193
21315
  },
20194
21316
  /**
20195
- * 查询租户一次性和包周期(包年/包月)资源用量信息。
20196
- * > 按需套餐包用量本接口无法查询,需要调用CBC接口查询,详见[按需套餐包用量查询](https://cbc.huaweicloud.com/bm/support/api-apidt/CBCInterface_0001239.html)和[查询资源包信息](https://cbc.huaweicloud.com/bm/support/api-apidt/CBCInterface_0000511.html)。
20197
- * > 各种资源的计费方式请参考[计费说明](https://support.huaweicloud.com/productdesc-metastudio/metastudio_01_0006.html)。
21317
+ * 查询租户个性化配置。
20198
21318
  *
20199
21319
  * Please refer to HUAWEI cloud API Explorer for details.
20200
21320
  */
20201
- showResourceUsage(showResourceUsageRequest) {
21321
+ showTenantUserConfiguration(showTenantUserConfigurationRequest) {
20202
21322
  const options = {
20203
21323
  method: "GET",
20204
- url: "/v1/{project_id}/tenants/resources-usage",
21324
+ url: "/v1/{project_id}/tenants/user-configurations",
20205
21325
  contentType: "application/json",
20206
21326
  queryParams: {},
20207
21327
  pathParams: {},
@@ -20212,29 +21332,29 @@ const ParamCreater = function () {
20212
21332
  let authorization;
20213
21333
  let xSdkDate;
20214
21334
  let xProjectId;
20215
- let resource;
20216
- let business;
20217
- if (showResourceUsageRequest !== null && showResourceUsageRequest !== undefined) {
20218
- if (showResourceUsageRequest instanceof ShowResourceUsageRequest_1.ShowResourceUsageRequest) {
20219
- authorization = showResourceUsageRequest.authorization;
20220
- xSdkDate = showResourceUsageRequest.xSdkDate;
20221
- xProjectId = showResourceUsageRequest.xProjectId;
20222
- resource = showResourceUsageRequest.resource;
20223
- business = showResourceUsageRequest.business;
21335
+ let limit;
21336
+ let offset;
21337
+ if (showTenantUserConfigurationRequest !== null && showTenantUserConfigurationRequest !== undefined) {
21338
+ if (showTenantUserConfigurationRequest instanceof ShowTenantUserConfigurationRequest_1.ShowTenantUserConfigurationRequest) {
21339
+ authorization = showTenantUserConfigurationRequest.authorization;
21340
+ xSdkDate = showTenantUserConfigurationRequest.xSdkDate;
21341
+ xProjectId = showTenantUserConfigurationRequest.xProjectId;
21342
+ limit = showTenantUserConfigurationRequest.limit;
21343
+ offset = showTenantUserConfigurationRequest.offset;
20224
21344
  }
20225
21345
  else {
20226
- authorization = showResourceUsageRequest['Authorization'];
20227
- xSdkDate = showResourceUsageRequest['X-Sdk-Date'];
20228
- xProjectId = showResourceUsageRequest['X-Project-Id'];
20229
- resource = showResourceUsageRequest['resource'];
20230
- business = showResourceUsageRequest['business'];
21346
+ authorization = showTenantUserConfigurationRequest['Authorization'];
21347
+ xSdkDate = showTenantUserConfigurationRequest['X-Sdk-Date'];
21348
+ xProjectId = showTenantUserConfigurationRequest['X-Project-Id'];
21349
+ limit = showTenantUserConfigurationRequest['limit'];
21350
+ offset = showTenantUserConfigurationRequest['offset'];
20231
21351
  }
20232
21352
  }
20233
- if (resource !== null && resource !== undefined) {
20234
- localVarQueryParameter['resource'] = resource;
21353
+ if (limit !== null && limit !== undefined) {
21354
+ localVarQueryParameter['limit'] = limit;
20235
21355
  }
20236
- if (business !== null && business !== undefined) {
20237
- localVarQueryParameter['business'] = business;
21356
+ if (offset !== null && offset !== undefined) {
21357
+ localVarQueryParameter['offset'] = offset;
20238
21358
  }
20239
21359
  if (authorization !== undefined && authorization !== null) {
20240
21360
  localVarHeaderParameter['Authorization'] = String(authorization);
@@ -20342,6 +21462,115 @@ const ParamCreater = function () {
20342
21462
  options.headers = localVarHeaderParameter;
20343
21463
  return options;
20344
21464
  },
21465
+ /**
21466
+ * 设置租户服务业务配置
21467
+ *
21468
+ * Please refer to HUAWEI cloud API Explorer for details.
21469
+ */
21470
+ updateTenantServiceConfigs(updateTenantServiceConfigsRequest) {
21471
+ const options = {
21472
+ method: "PUT",
21473
+ url: "/v1/{project_id}/tenants/service-configs",
21474
+ contentType: "application/json",
21475
+ queryParams: {},
21476
+ pathParams: {},
21477
+ headers: {},
21478
+ data: {}
21479
+ };
21480
+ const localVarHeaderParameter = {};
21481
+ let body;
21482
+ let authorization;
21483
+ let xSdkDate;
21484
+ let xProjectId;
21485
+ if (updateTenantServiceConfigsRequest !== null && updateTenantServiceConfigsRequest !== undefined) {
21486
+ if (updateTenantServiceConfigsRequest instanceof UpdateTenantServiceConfigsRequest_1.UpdateTenantServiceConfigsRequest) {
21487
+ body = updateTenantServiceConfigsRequest.body;
21488
+ authorization = updateTenantServiceConfigsRequest.authorization;
21489
+ xSdkDate = updateTenantServiceConfigsRequest.xSdkDate;
21490
+ xProjectId = updateTenantServiceConfigsRequest.xProjectId;
21491
+ }
21492
+ else {
21493
+ body = updateTenantServiceConfigsRequest['body'];
21494
+ authorization = updateTenantServiceConfigsRequest['Authorization'];
21495
+ xSdkDate = updateTenantServiceConfigsRequest['X-Sdk-Date'];
21496
+ xProjectId = updateTenantServiceConfigsRequest['X-Project-Id'];
21497
+ }
21498
+ }
21499
+ if (body === null || body === undefined) {
21500
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
21501
+ }
21502
+ if (authorization !== undefined && authorization !== null) {
21503
+ localVarHeaderParameter['Authorization'] = String(authorization);
21504
+ }
21505
+ if (xSdkDate !== undefined && xSdkDate !== null) {
21506
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
21507
+ }
21508
+ if (xProjectId !== undefined && xProjectId !== null) {
21509
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
21510
+ }
21511
+ localVarHeaderParameter['Content-Type'] = 'application/json';
21512
+ options.data = body !== undefined ? body : {};
21513
+ options.headers = localVarHeaderParameter;
21514
+ return options;
21515
+ },
21516
+ /**
21517
+ * 设置子账户(IAM用户)配额,需要先开启子账户隔离后才能配置。只有根账户可修改。
21518
+ *
21519
+ * Please refer to HUAWEI cloud API Explorer for details.
21520
+ */
21521
+ updateUserQuotas(updateUserQuotasRequest) {
21522
+ const options = {
21523
+ method: "PUT",
21524
+ url: "/v1/{project_id}/user/quotas/{user_id}",
21525
+ contentType: "application/json",
21526
+ queryParams: {},
21527
+ pathParams: {},
21528
+ headers: {},
21529
+ data: {}
21530
+ };
21531
+ const localVarHeaderParameter = {};
21532
+ let body;
21533
+ let userId;
21534
+ let authorization;
21535
+ let xSdkDate;
21536
+ let xProjectId;
21537
+ if (updateUserQuotasRequest !== null && updateUserQuotasRequest !== undefined) {
21538
+ if (updateUserQuotasRequest instanceof UpdateUserQuotasRequest_1.UpdateUserQuotasRequest) {
21539
+ userId = updateUserQuotasRequest.userId;
21540
+ body = updateUserQuotasRequest.body;
21541
+ authorization = updateUserQuotasRequest.authorization;
21542
+ xSdkDate = updateUserQuotasRequest.xSdkDate;
21543
+ xProjectId = updateUserQuotasRequest.xProjectId;
21544
+ }
21545
+ else {
21546
+ userId = updateUserQuotasRequest['user_id'];
21547
+ body = updateUserQuotasRequest['body'];
21548
+ authorization = updateUserQuotasRequest['Authorization'];
21549
+ xSdkDate = updateUserQuotasRequest['X-Sdk-Date'];
21550
+ xProjectId = updateUserQuotasRequest['X-Project-Id'];
21551
+ }
21552
+ }
21553
+ if (userId === null || userId === undefined) {
21554
+ throw new RequiredError('userId', 'Required parameter userId was null or undefined when calling updateUserQuotas.');
21555
+ }
21556
+ if (body === null || body === undefined) {
21557
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
21558
+ }
21559
+ if (authorization !== undefined && authorization !== null) {
21560
+ localVarHeaderParameter['Authorization'] = String(authorization);
21561
+ }
21562
+ if (xSdkDate !== undefined && xSdkDate !== null) {
21563
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
21564
+ }
21565
+ if (xProjectId !== undefined && xProjectId !== null) {
21566
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
21567
+ }
21568
+ localVarHeaderParameter['Content-Type'] = 'application/json';
21569
+ options.data = body !== undefined ? body : {};
21570
+ options.pathParams = { 'user_id': userId, };
21571
+ options.headers = localVarHeaderParameter;
21572
+ return options;
21573
+ },
20345
21574
  /**
20346
21575
  * 提交短任务,执行改接口后,任务会正式开始执行。
20347
21576
  *
@@ -21034,6 +22263,59 @@ const ParamCreater = function () {
21034
22263
  options.headers = localVarHeaderParameter;
21035
22264
  return options;
21036
22265
  },
22266
+ /**
22267
+ * 下载加密文件
22268
+ *
22269
+ * Please refer to HUAWEI cloud API Explorer for details.
22270
+ */
22271
+ showEncryptFile(showEncryptFileRequest) {
22272
+ const options = {
22273
+ method: "GET",
22274
+ url: "/v1/voice-training-manage/common/encrypt-file-download",
22275
+ contentType: "application/json",
22276
+ queryParams: {},
22277
+ pathParams: {},
22278
+ headers: {}
22279
+ };
22280
+ const localVarHeaderParameter = {};
22281
+ const localVarQueryParameter = {};
22282
+ let tenantId;
22283
+ let jobId;
22284
+ let onceToken;
22285
+ if (showEncryptFileRequest !== null && showEncryptFileRequest !== undefined) {
22286
+ if (showEncryptFileRequest instanceof ShowEncryptFileRequest_1.ShowEncryptFileRequest) {
22287
+ tenantId = showEncryptFileRequest.tenantId;
22288
+ jobId = showEncryptFileRequest.jobId;
22289
+ onceToken = showEncryptFileRequest.onceToken;
22290
+ }
22291
+ else {
22292
+ tenantId = showEncryptFileRequest['tenant_id'];
22293
+ jobId = showEncryptFileRequest['job_id'];
22294
+ onceToken = showEncryptFileRequest['once_token'];
22295
+ }
22296
+ }
22297
+ if (tenantId === null || tenantId === undefined) {
22298
+ throw new RequiredError('tenantId', 'Required parameter tenantId was null or undefined when calling showEncryptFile.');
22299
+ }
22300
+ if (tenantId !== null && tenantId !== undefined) {
22301
+ localVarQueryParameter['tenant_id'] = tenantId;
22302
+ }
22303
+ if (jobId === null || jobId === undefined) {
22304
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showEncryptFile.');
22305
+ }
22306
+ if (jobId !== null && jobId !== undefined) {
22307
+ localVarQueryParameter['job_id'] = jobId;
22308
+ }
22309
+ if (onceToken === null || onceToken === undefined) {
22310
+ throw new RequiredError('onceToken', 'Required parameter onceToken was null or undefined when calling showEncryptFile.');
22311
+ }
22312
+ if (onceToken !== null && onceToken !== undefined) {
22313
+ localVarQueryParameter['once_token'] = onceToken;
22314
+ }
22315
+ options.queryParams = localVarQueryParameter;
22316
+ options.headers = localVarHeaderParameter;
22317
+ return options;
22318
+ },
21037
22319
  /**
21038
22320
  * 获取语音训练任务审核结果。
21039
22321
  *
@@ -21399,21 +22681,74 @@ const ParamCreater = function () {
21399
22681
  }
21400
22682
  }
21401
22683
  if (jobId === null || jobId === undefined) {
21402
- throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling delete2dModelTrainingJob.');
21403
- }
21404
- if (authorization !== undefined && authorization !== null) {
21405
- localVarHeaderParameter['Authorization'] = String(authorization);
22684
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling delete2dModelTrainingJob.');
22685
+ }
22686
+ if (authorization !== undefined && authorization !== null) {
22687
+ localVarHeaderParameter['Authorization'] = String(authorization);
22688
+ }
22689
+ if (xSdkDate !== undefined && xSdkDate !== null) {
22690
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
22691
+ }
22692
+ if (xProjectId !== undefined && xProjectId !== null) {
22693
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
22694
+ }
22695
+ if (xAppUserId !== undefined && xAppUserId !== null) {
22696
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
22697
+ }
22698
+ options.pathParams = { 'job_id': jobId, };
22699
+ options.headers = localVarHeaderParameter;
22700
+ return options;
22701
+ },
22702
+ /**
22703
+ * 下载加密文件
22704
+ *
22705
+ * Please refer to HUAWEI cloud API Explorer for details.
22706
+ */
22707
+ download2dModelTraningEncryptFile(download2dModelTraningEncryptFileRequest) {
22708
+ const options = {
22709
+ method: "GET",
22710
+ url: "/v1/digital-human-training-manage/user/encrypt-file-download",
22711
+ contentType: "application/json",
22712
+ queryParams: {},
22713
+ pathParams: {},
22714
+ headers: {}
22715
+ };
22716
+ const localVarHeaderParameter = {};
22717
+ const localVarQueryParameter = {};
22718
+ let tenantId;
22719
+ let jobId;
22720
+ let onceToken;
22721
+ if (download2dModelTraningEncryptFileRequest !== null && download2dModelTraningEncryptFileRequest !== undefined) {
22722
+ if (download2dModelTraningEncryptFileRequest instanceof Download2dModelTraningEncryptFileRequest_1.Download2dModelTraningEncryptFileRequest) {
22723
+ tenantId = download2dModelTraningEncryptFileRequest.tenantId;
22724
+ jobId = download2dModelTraningEncryptFileRequest.jobId;
22725
+ onceToken = download2dModelTraningEncryptFileRequest.onceToken;
22726
+ }
22727
+ else {
22728
+ tenantId = download2dModelTraningEncryptFileRequest['tenant_id'];
22729
+ jobId = download2dModelTraningEncryptFileRequest['job_id'];
22730
+ onceToken = download2dModelTraningEncryptFileRequest['once_token'];
22731
+ }
22732
+ }
22733
+ if (tenantId === null || tenantId === undefined) {
22734
+ throw new RequiredError('tenantId', 'Required parameter tenantId was null or undefined when calling download2dModelTraningEncryptFile.');
22735
+ }
22736
+ if (tenantId !== null && tenantId !== undefined) {
22737
+ localVarQueryParameter['tenant_id'] = tenantId;
22738
+ }
22739
+ if (jobId === null || jobId === undefined) {
22740
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling download2dModelTraningEncryptFile.');
21406
22741
  }
21407
- if (xSdkDate !== undefined && xSdkDate !== null) {
21408
- localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
22742
+ if (jobId !== null && jobId !== undefined) {
22743
+ localVarQueryParameter['job_id'] = jobId;
21409
22744
  }
21410
- if (xProjectId !== undefined && xProjectId !== null) {
21411
- localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
22745
+ if (onceToken === null || onceToken === undefined) {
22746
+ throw new RequiredError('onceToken', 'Required parameter onceToken was null or undefined when calling download2dModelTraningEncryptFile.');
21412
22747
  }
21413
- if (xAppUserId !== undefined && xAppUserId !== null) {
21414
- localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
22748
+ if (onceToken !== null && onceToken !== undefined) {
22749
+ localVarQueryParameter['once_token'] = onceToken;
21415
22750
  }
21416
- options.pathParams = { 'job_id': jobId, };
22751
+ options.queryParams = localVarQueryParameter;
21417
22752
  options.headers = localVarHeaderParameter;
21418
22753
  return options;
21419
22754
  },
@@ -21503,18 +22838,23 @@ const ParamCreater = function () {
21503
22838
  let xAppUserId;
21504
22839
  let offset;
21505
22840
  let limit;
22841
+ let state;
21506
22842
  let sortKey;
21507
22843
  let sortDir;
21508
22844
  let createUntil;
21509
22845
  let createSince;
21510
- let state;
21511
22846
  let queryProjectId;
22847
+ let updateSince;
22848
+ let updateUntil;
21512
22849
  let batchName;
21513
22850
  let tag;
21514
22851
  let jobId;
21515
22852
  let name;
21516
22853
  let modelResolution;
21517
22854
  let isFlexus;
22855
+ let isLiveCopy;
22856
+ let trainLocation;
22857
+ let isOndemandResource;
21518
22858
  if (list2dModelTrainingJobRequest !== null && list2dModelTrainingJobRequest !== undefined) {
21519
22859
  if (list2dModelTrainingJobRequest instanceof List2dModelTrainingJobRequest_1.List2dModelTrainingJobRequest) {
21520
22860
  authorization = list2dModelTrainingJobRequest.authorization;
@@ -21523,18 +22863,23 @@ const ParamCreater = function () {
21523
22863
  xAppUserId = list2dModelTrainingJobRequest.xAppUserId;
21524
22864
  offset = list2dModelTrainingJobRequest.offset;
21525
22865
  limit = list2dModelTrainingJobRequest.limit;
22866
+ state = list2dModelTrainingJobRequest.state;
21526
22867
  sortKey = list2dModelTrainingJobRequest.sortKey;
21527
22868
  sortDir = list2dModelTrainingJobRequest.sortDir;
21528
22869
  createUntil = list2dModelTrainingJobRequest.createUntil;
21529
22870
  createSince = list2dModelTrainingJobRequest.createSince;
21530
- state = list2dModelTrainingJobRequest.state;
21531
22871
  queryProjectId = list2dModelTrainingJobRequest.queryProjectId;
22872
+ updateSince = list2dModelTrainingJobRequest.updateSince;
22873
+ updateUntil = list2dModelTrainingJobRequest.updateUntil;
21532
22874
  batchName = list2dModelTrainingJobRequest.batchName;
21533
22875
  tag = list2dModelTrainingJobRequest.tag;
21534
22876
  jobId = list2dModelTrainingJobRequest.jobId;
21535
22877
  name = list2dModelTrainingJobRequest.name;
21536
22878
  modelResolution = list2dModelTrainingJobRequest.modelResolution;
21537
22879
  isFlexus = list2dModelTrainingJobRequest.isFlexus;
22880
+ isLiveCopy = list2dModelTrainingJobRequest.isLiveCopy;
22881
+ trainLocation = list2dModelTrainingJobRequest.trainLocation;
22882
+ isOndemandResource = list2dModelTrainingJobRequest.isOndemandResource;
21538
22883
  }
21539
22884
  else {
21540
22885
  authorization = list2dModelTrainingJobRequest['Authorization'];
@@ -21543,18 +22888,23 @@ const ParamCreater = function () {
21543
22888
  xAppUserId = list2dModelTrainingJobRequest['X-App-UserId'];
21544
22889
  offset = list2dModelTrainingJobRequest['offset'];
21545
22890
  limit = list2dModelTrainingJobRequest['limit'];
22891
+ state = list2dModelTrainingJobRequest['state'];
21546
22892
  sortKey = list2dModelTrainingJobRequest['sort_key'];
21547
22893
  sortDir = list2dModelTrainingJobRequest['sort_dir'];
21548
22894
  createUntil = list2dModelTrainingJobRequest['create_until'];
21549
22895
  createSince = list2dModelTrainingJobRequest['create_since'];
21550
- state = list2dModelTrainingJobRequest['state'];
21551
22896
  queryProjectId = list2dModelTrainingJobRequest['query_project_id'];
22897
+ updateSince = list2dModelTrainingJobRequest['update_since'];
22898
+ updateUntil = list2dModelTrainingJobRequest['update_until'];
21552
22899
  batchName = list2dModelTrainingJobRequest['batch_name'];
21553
22900
  tag = list2dModelTrainingJobRequest['tag'];
21554
22901
  jobId = list2dModelTrainingJobRequest['job_id'];
21555
22902
  name = list2dModelTrainingJobRequest['name'];
21556
22903
  modelResolution = list2dModelTrainingJobRequest['model_resolution'];
21557
22904
  isFlexus = list2dModelTrainingJobRequest['is_flexus'];
22905
+ isLiveCopy = list2dModelTrainingJobRequest['is_live_copy'];
22906
+ trainLocation = list2dModelTrainingJobRequest['train_location'];
22907
+ isOndemandResource = list2dModelTrainingJobRequest['is_ondemand_resource'];
21558
22908
  }
21559
22909
  }
21560
22910
  if (offset !== null && offset !== undefined) {
@@ -21563,6 +22913,9 @@ const ParamCreater = function () {
21563
22913
  if (limit !== null && limit !== undefined) {
21564
22914
  localVarQueryParameter['limit'] = limit;
21565
22915
  }
22916
+ if (state !== null && state !== undefined) {
22917
+ localVarQueryParameter['state'] = state;
22918
+ }
21566
22919
  if (sortKey !== null && sortKey !== undefined) {
21567
22920
  localVarQueryParameter['sort_key'] = sortKey;
21568
22921
  }
@@ -21575,12 +22928,15 @@ const ParamCreater = function () {
21575
22928
  if (createSince !== null && createSince !== undefined) {
21576
22929
  localVarQueryParameter['create_since'] = createSince;
21577
22930
  }
21578
- if (state !== null && state !== undefined) {
21579
- localVarQueryParameter['state'] = state;
21580
- }
21581
22931
  if (queryProjectId !== null && queryProjectId !== undefined) {
21582
22932
  localVarQueryParameter['query_project_id'] = queryProjectId;
21583
22933
  }
22934
+ if (updateSince !== null && updateSince !== undefined) {
22935
+ localVarQueryParameter['update_since'] = updateSince;
22936
+ }
22937
+ if (updateUntil !== null && updateUntil !== undefined) {
22938
+ localVarQueryParameter['update_until'] = updateUntil;
22939
+ }
21584
22940
  if (batchName !== null && batchName !== undefined) {
21585
22941
  localVarQueryParameter['batch_name'] = batchName;
21586
22942
  }
@@ -21599,6 +22955,15 @@ const ParamCreater = function () {
21599
22955
  if (isFlexus !== null && isFlexus !== undefined) {
21600
22956
  localVarQueryParameter['is_flexus'] = isFlexus;
21601
22957
  }
22958
+ if (isLiveCopy !== null && isLiveCopy !== undefined) {
22959
+ localVarQueryParameter['is_live_copy'] = isLiveCopy;
22960
+ }
22961
+ if (trainLocation !== null && trainLocation !== undefined) {
22962
+ localVarQueryParameter['train_location'] = trainLocation;
22963
+ }
22964
+ if (isOndemandResource !== null && isOndemandResource !== undefined) {
22965
+ localVarQueryParameter['is_ondemand_resource'] = isOndemandResource;
22966
+ }
21602
22967
  if (authorization !== undefined && authorization !== null) {
21603
22968
  localVarHeaderParameter['Authorization'] = String(authorization);
21604
22969
  }
@@ -21735,243 +23100,6 @@ const ParamCreater = function () {
21735
23100
  options.headers = localVarHeaderParameter;
21736
23101
  return options;
21737
23102
  },
21738
- /**
21739
- * 该接口用于创建驱动数字人表情的任务。
21740
- *
21741
- * Please refer to HUAWEI cloud API Explorer for details.
21742
- */
21743
- createFacialAnimations(createFacialAnimationsRequest) {
21744
- const options = {
21745
- method: "POST",
21746
- url: "/v1/{project_id}/ttsa/fas",
21747
- contentType: "application/json;charset=utf-8",
21748
- queryParams: {},
21749
- pathParams: {},
21750
- headers: {},
21751
- data: {}
21752
- };
21753
- const localVarHeaderParameter = {};
21754
- let body;
21755
- if (createFacialAnimationsRequest !== null && createFacialAnimationsRequest !== undefined) {
21756
- if (createFacialAnimationsRequest instanceof CreateFacialAnimationsRequest_1.CreateFacialAnimationsRequest) {
21757
- body = createFacialAnimationsRequest.body;
21758
- }
21759
- else {
21760
- body = createFacialAnimationsRequest['body'];
21761
- }
21762
- }
21763
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=utf-8';
21764
- options.data = body !== undefined ? body : {};
21765
- options.headers = localVarHeaderParameter;
21766
- return options;
21767
- },
21768
- /**
21769
- * 该接口用于创建驱动数字人表情、动作及语音的任务。
21770
- *
21771
- * Please refer to HUAWEI cloud API Explorer for details.
21772
- */
21773
- createTtsa(createTtsaRequest) {
21774
- const options = {
21775
- method: "POST",
21776
- url: "/v1/{project_id}/ttsa-jobs",
21777
- contentType: "application/json",
21778
- queryParams: {},
21779
- pathParams: {},
21780
- headers: {},
21781
- data: {}
21782
- };
21783
- const localVarHeaderParameter = {};
21784
- let body;
21785
- let authorization;
21786
- let xSdkDate;
21787
- let xProjectId;
21788
- let xAppUserId;
21789
- if (createTtsaRequest !== null && createTtsaRequest !== undefined) {
21790
- if (createTtsaRequest instanceof CreateTtsaRequest_1.CreateTtsaRequest) {
21791
- body = createTtsaRequest.body;
21792
- authorization = createTtsaRequest.authorization;
21793
- xSdkDate = createTtsaRequest.xSdkDate;
21794
- xProjectId = createTtsaRequest.xProjectId;
21795
- xAppUserId = createTtsaRequest.xAppUserId;
21796
- }
21797
- else {
21798
- body = createTtsaRequest['body'];
21799
- authorization = createTtsaRequest['Authorization'];
21800
- xSdkDate = createTtsaRequest['X-Sdk-Date'];
21801
- xProjectId = createTtsaRequest['X-Project-Id'];
21802
- xAppUserId = createTtsaRequest['X-App-UserId'];
21803
- }
21804
- }
21805
- if (body === null || body === undefined) {
21806
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
21807
- }
21808
- if (authorization !== undefined && authorization !== null) {
21809
- localVarHeaderParameter['Authorization'] = String(authorization);
21810
- }
21811
- if (xSdkDate !== undefined && xSdkDate !== null) {
21812
- localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
21813
- }
21814
- if (xProjectId !== undefined && xProjectId !== null) {
21815
- localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
21816
- }
21817
- if (xAppUserId !== undefined && xAppUserId !== null) {
21818
- localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
21819
- }
21820
- localVarHeaderParameter['Content-Type'] = 'application/json';
21821
- options.data = body !== undefined ? body : {};
21822
- options.headers = localVarHeaderParameter;
21823
- return options;
21824
- },
21825
- /**
21826
- * 该接口用于获取生成的数字人表情驱动数据
21827
- *
21828
- * Please refer to HUAWEI cloud API Explorer for details.
21829
- */
21830
- listFacialAnimationsData(listFacialAnimationsDataRequest) {
21831
- const options = {
21832
- method: "GET",
21833
- url: "/v1/{project_id}/fas-jobs/{job_id}",
21834
- contentType: "application/json",
21835
- queryParams: {},
21836
- pathParams: {},
21837
- headers: {}
21838
- };
21839
- const localVarHeaderParameter = {};
21840
- let jobId;
21841
- if (listFacialAnimationsDataRequest !== null && listFacialAnimationsDataRequest !== undefined) {
21842
- if (listFacialAnimationsDataRequest instanceof ListFacialAnimationsDataRequest_1.ListFacialAnimationsDataRequest) {
21843
- jobId = listFacialAnimationsDataRequest.jobId;
21844
- }
21845
- else {
21846
- jobId = listFacialAnimationsDataRequest['job_id'];
21847
- }
21848
- }
21849
- if (jobId === null || jobId === undefined) {
21850
- throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling listFacialAnimationsData.');
21851
- }
21852
- options.pathParams = { 'job_id': jobId, };
21853
- options.headers = localVarHeaderParameter;
21854
- return options;
21855
- },
21856
- /**
21857
- * 该接口用于获取生成的数字人驱动数据,包括语音、表情、动作等。
21858
- *
21859
- * Please refer to HUAWEI cloud API Explorer for details.
21860
- */
21861
- listTtsaData(listTtsaDataRequest) {
21862
- const options = {
21863
- method: "GET",
21864
- url: "/v1/{project_id}/ttsa-jobs/{job_id}",
21865
- contentType: "application/json",
21866
- queryParams: {},
21867
- pathParams: {},
21868
- headers: {}
21869
- };
21870
- const localVarHeaderParameter = {};
21871
- const localVarQueryParameter = {};
21872
- let jobId;
21873
- let authorization;
21874
- let xSdkDate;
21875
- let xProjectId;
21876
- let offset;
21877
- if (listTtsaDataRequest !== null && listTtsaDataRequest !== undefined) {
21878
- if (listTtsaDataRequest instanceof ListTtsaDataRequest_1.ListTtsaDataRequest) {
21879
- jobId = listTtsaDataRequest.jobId;
21880
- authorization = listTtsaDataRequest.authorization;
21881
- xSdkDate = listTtsaDataRequest.xSdkDate;
21882
- xProjectId = listTtsaDataRequest.xProjectId;
21883
- offset = listTtsaDataRequest.offset;
21884
- }
21885
- else {
21886
- jobId = listTtsaDataRequest['job_id'];
21887
- authorization = listTtsaDataRequest['Authorization'];
21888
- xSdkDate = listTtsaDataRequest['X-Sdk-Date'];
21889
- xProjectId = listTtsaDataRequest['X-Project-Id'];
21890
- offset = listTtsaDataRequest['offset'];
21891
- }
21892
- }
21893
- if (jobId === null || jobId === undefined) {
21894
- throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling listTtsaData.');
21895
- }
21896
- if (offset !== null && offset !== undefined) {
21897
- localVarQueryParameter['offset'] = offset;
21898
- }
21899
- if (authorization !== undefined && authorization !== null) {
21900
- localVarHeaderParameter['Authorization'] = String(authorization);
21901
- }
21902
- if (xSdkDate !== undefined && xSdkDate !== null) {
21903
- localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
21904
- }
21905
- if (xProjectId !== undefined && xProjectId !== null) {
21906
- localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
21907
- }
21908
- options.queryParams = localVarQueryParameter;
21909
- options.pathParams = { 'job_id': jobId, };
21910
- options.headers = localVarHeaderParameter;
21911
- return options;
21912
- },
21913
- /**
21914
- * 该接口用于查询驱动数字人表情、动作及语音的任务列表。
21915
- *
21916
- * Please refer to HUAWEI cloud API Explorer for details.
21917
- */
21918
- listTtsaJobs(listTtsaJobsRequest) {
21919
- const options = {
21920
- method: "GET",
21921
- url: "/v1/{project_id}/ttsa-jobs",
21922
- contentType: "application/json",
21923
- queryParams: {},
21924
- pathParams: {},
21925
- headers: {}
21926
- };
21927
- const localVarHeaderParameter = {};
21928
- const localVarQueryParameter = {};
21929
- let authorization;
21930
- let xSdkDate;
21931
- let xProjectId;
21932
- let xAppUserId;
21933
- let offset;
21934
- let limit;
21935
- if (listTtsaJobsRequest !== null && listTtsaJobsRequest !== undefined) {
21936
- if (listTtsaJobsRequest instanceof ListTtsaJobsRequest_1.ListTtsaJobsRequest) {
21937
- authorization = listTtsaJobsRequest.authorization;
21938
- xSdkDate = listTtsaJobsRequest.xSdkDate;
21939
- xProjectId = listTtsaJobsRequest.xProjectId;
21940
- xAppUserId = listTtsaJobsRequest.xAppUserId;
21941
- offset = listTtsaJobsRequest.offset;
21942
- limit = listTtsaJobsRequest.limit;
21943
- }
21944
- else {
21945
- authorization = listTtsaJobsRequest['Authorization'];
21946
- xSdkDate = listTtsaJobsRequest['X-Sdk-Date'];
21947
- xProjectId = listTtsaJobsRequest['X-Project-Id'];
21948
- xAppUserId = listTtsaJobsRequest['X-App-UserId'];
21949
- offset = listTtsaJobsRequest['offset'];
21950
- limit = listTtsaJobsRequest['limit'];
21951
- }
21952
- }
21953
- if (offset !== null && offset !== undefined) {
21954
- localVarQueryParameter['offset'] = offset;
21955
- }
21956
- if (limit !== null && limit !== undefined) {
21957
- localVarQueryParameter['limit'] = limit;
21958
- }
21959
- if (authorization !== undefined && authorization !== null) {
21960
- localVarHeaderParameter['Authorization'] = String(authorization);
21961
- }
21962
- if (xSdkDate !== undefined && xSdkDate !== null) {
21963
- localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
21964
- }
21965
- if (xProjectId !== undefined && xProjectId !== null) {
21966
- localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
21967
- }
21968
- if (xAppUserId !== undefined && xAppUserId !== null) {
21969
- localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
21970
- }
21971
- options.queryParams = localVarQueryParameter;
21972
- options.headers = localVarHeaderParameter;
21973
- return options;
21974
- },
21975
23103
  /**
21976
23104
  * 该接口用于校验音色模型是否可用,模型可用返回模型信息,不可用返回具体不可用的原因
21977
23105
  *
@@ -22446,6 +23574,60 @@ const ParamCreater = function () {
22446
23574
  options.headers = localVarHeaderParameter;
22447
23575
  return options;
22448
23576
  },
23577
+ /**
23578
+ * 该接口用于获取TTS租户级一次性token。
23579
+ *
23580
+ * Please refer to HUAWEI cloud API Explorer for details.
23581
+ */
23582
+ createTtsOnceCode(createTtsOnceCodeRequest) {
23583
+ const options = {
23584
+ method: "POST",
23585
+ url: "/v1/{project_id}/ttsc/once-code",
23586
+ contentType: "application/json",
23587
+ queryParams: {},
23588
+ pathParams: {},
23589
+ headers: {}
23590
+ };
23591
+ const localVarHeaderParameter = {};
23592
+ let xRequestId;
23593
+ let authorization;
23594
+ let xSdkDate;
23595
+ let xProjectId;
23596
+ let xAppUserId;
23597
+ if (createTtsOnceCodeRequest !== null && createTtsOnceCodeRequest !== undefined) {
23598
+ if (createTtsOnceCodeRequest instanceof CreateTtsOnceCodeRequest_1.CreateTtsOnceCodeRequest) {
23599
+ xRequestId = createTtsOnceCodeRequest.xRequestId;
23600
+ authorization = createTtsOnceCodeRequest.authorization;
23601
+ xSdkDate = createTtsOnceCodeRequest.xSdkDate;
23602
+ xProjectId = createTtsOnceCodeRequest.xProjectId;
23603
+ xAppUserId = createTtsOnceCodeRequest.xAppUserId;
23604
+ }
23605
+ else {
23606
+ xRequestId = createTtsOnceCodeRequest['X-Request-Id'];
23607
+ authorization = createTtsOnceCodeRequest['Authorization'];
23608
+ xSdkDate = createTtsOnceCodeRequest['X-Sdk-Date'];
23609
+ xProjectId = createTtsOnceCodeRequest['X-Project-Id'];
23610
+ xAppUserId = createTtsOnceCodeRequest['X-App-UserId'];
23611
+ }
23612
+ }
23613
+ if (xRequestId !== undefined && xRequestId !== null) {
23614
+ localVarHeaderParameter['X-Request-Id'] = String(xRequestId);
23615
+ }
23616
+ if (authorization !== undefined && authorization !== null) {
23617
+ localVarHeaderParameter['Authorization'] = String(authorization);
23618
+ }
23619
+ if (xSdkDate !== undefined && xSdkDate !== null) {
23620
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
23621
+ }
23622
+ if (xProjectId !== undefined && xProjectId !== null) {
23623
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
23624
+ }
23625
+ if (xAppUserId !== undefined && xAppUserId !== null) {
23626
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
23627
+ }
23628
+ options.headers = localVarHeaderParameter;
23629
+ return options;
23630
+ },
22449
23631
  /**
22450
23632
  * 该接口用于设置TTS租户级自定义读法配置。
22451
23633
  *