@huaweicloud/huaweicloud-sdk-kafka 3.1.177 → 3.1.179

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 (360) hide show
  1. package/package.json +2 -2
  2. package/v2/KafkaClient.d.ts +729 -68
  3. package/v2/KafkaClient.d.ts.map +1 -1
  4. package/v2/KafkaClient.js +1427 -106
  5. package/v2/KafkaClient.js.map +1 -1
  6. package/v2/model/AlterAutoVolumeExpandConfig.d.ts +20 -0
  7. package/v2/model/AlterAutoVolumeExpandConfig.d.ts.map +1 -0
  8. package/v2/model/AlterAutoVolumeExpandConfig.js +50 -0
  9. package/v2/model/AlterAutoVolumeExpandConfig.js.map +1 -0
  10. package/v2/model/BatchModiftGroupDescriptionReq.d.ts +7 -0
  11. package/v2/model/{BatchModifyGroupDescriptionReq.d.ts.map → BatchModiftGroupDescriptionReq.d.ts.map} +1 -1
  12. package/v2/model/BatchModiftGroupDescriptionReq.js +13 -0
  13. package/v2/model/{BatchModifyGroupDescriptionReq.js.map → BatchModiftGroupDescriptionReq.js.map} +1 -1
  14. package/v2/model/BatchResumeInstanceReq.d.ts +6 -0
  15. package/v2/model/BatchResumeInstanceReq.d.ts.map +1 -0
  16. package/v2/model/BatchResumeInstanceReq.js +13 -0
  17. package/v2/model/BatchResumeInstanceReq.js.map +1 -0
  18. package/v2/model/CreateInstanceByEngineReq.d.ts +3 -1
  19. package/v2/model/CreateInstanceByEngineReq.d.ts.map +1 -1
  20. package/v2/model/CreateInstanceByEngineReq.js +2 -0
  21. package/v2/model/CreateInstanceByEngineReq.js.map +1 -1
  22. package/v2/model/CreateKafkaUserClientQuotaTaskReq.d.ts +4 -4
  23. package/v2/model/CreateKafkaUserClientQuotaTaskReq.js +12 -12
  24. package/v2/model/DeleteInstanceConsumerGroupRequest.d.ts +12 -0
  25. package/v2/model/DeleteInstanceConsumerGroupRequest.d.ts.map +1 -0
  26. package/v2/model/DeleteInstanceConsumerGroupRequest.js +30 -0
  27. package/v2/model/DeleteInstanceConsumerGroupRequest.js.map +1 -0
  28. package/v2/model/DeleteInstanceConsumerGroupResponse.d.ts +5 -0
  29. package/v2/model/DeleteInstanceConsumerGroupResponse.d.ts.map +1 -0
  30. package/v2/model/DeleteInstanceConsumerGroupResponse.js +11 -0
  31. package/v2/model/DeleteInstanceConsumerGroupResponse.js.map +1 -0
  32. package/v2/model/DeleteKafkaUserClientQuotaTaskReq.d.ts +2 -2
  33. package/v2/model/DeleteKafkaUserClientQuotaTaskReq.js +6 -6
  34. package/v2/model/DeleteScheduledTaskRequest.d.ts +12 -0
  35. package/v2/model/DeleteScheduledTaskRequest.d.ts.map +1 -0
  36. package/v2/model/DeleteScheduledTaskRequest.js +31 -0
  37. package/v2/model/DeleteScheduledTaskRequest.js.map +1 -0
  38. package/v2/model/DeleteScheduledTaskResponse.d.ts +5 -0
  39. package/v2/model/DeleteScheduledTaskResponse.d.ts.map +1 -0
  40. package/v2/model/DeleteScheduledTaskResponse.js +11 -0
  41. package/v2/model/DeleteScheduledTaskResponse.js.map +1 -0
  42. package/v2/model/DeleteUserRequest.d.ts +12 -0
  43. package/v2/model/DeleteUserRequest.d.ts.map +1 -0
  44. package/v2/model/DeleteUserRequest.js +31 -0
  45. package/v2/model/DeleteUserRequest.js.map +1 -0
  46. package/v2/model/DeleteUserResponse.d.ts +7 -0
  47. package/v2/model/DeleteUserResponse.d.ts.map +1 -0
  48. package/v2/model/DeleteUserResponse.js +15 -0
  49. package/v2/model/DeleteUserResponse.js.map +1 -0
  50. package/v2/model/DescribeGroupsRespGroup.d.ts +8 -10
  51. package/v2/model/DescribeGroupsRespGroup.d.ts.map +1 -1
  52. package/v2/model/DescribeGroupsRespGroup.js +18 -18
  53. package/v2/model/DescribeGroupsRespGroup.js.map +1 -1
  54. package/v2/model/InstanceRecycleInfo.d.ts +38 -0
  55. package/v2/model/InstanceRecycleInfo.d.ts.map +1 -0
  56. package/v2/model/InstanceRecycleInfo.js +91 -0
  57. package/v2/model/InstanceRecycleInfo.js.map +1 -0
  58. package/v2/model/InstanceResumeResult.d.ts +16 -0
  59. package/v2/model/InstanceResumeResult.d.ts.map +1 -0
  60. package/v2/model/InstanceResumeResult.js +39 -0
  61. package/v2/model/InstanceResumeResult.js.map +1 -0
  62. package/v2/model/KafkaTopicQuota.d.ts +2 -2
  63. package/v2/model/KafkaTopicQuota.js +6 -6
  64. package/v2/model/ListBackgroundTasksRequest.d.ts +2 -2
  65. package/v2/model/ListBackgroundTasksRequest.d.ts.map +1 -1
  66. package/v2/model/ListBackgroundTasksRequest.js +2 -2
  67. package/v2/model/ListBackgroundTasksRequest.js.map +1 -1
  68. package/v2/model/ListConfigFeatures.d.ts +10 -0
  69. package/v2/model/ListConfigFeatures.d.ts.map +1 -0
  70. package/v2/model/ListConfigFeatures.js +21 -0
  71. package/v2/model/ListConfigFeatures.js.map +1 -0
  72. package/v2/model/ListConfigFeaturesRequest.d.ts +4 -0
  73. package/v2/model/ListConfigFeaturesRequest.d.ts.map +1 -0
  74. package/v2/model/ListConfigFeaturesRequest.js +9 -0
  75. package/v2/model/ListConfigFeaturesRequest.js.map +1 -0
  76. package/v2/model/ListConfigFeaturesResponse.d.ts +10 -0
  77. package/v2/model/ListConfigFeaturesResponse.d.ts.map +1 -0
  78. package/v2/model/ListConfigFeaturesResponse.js +19 -0
  79. package/v2/model/ListConfigFeaturesResponse.js.map +1 -0
  80. package/v2/model/ListObsBucketsRequest.d.ts +4 -0
  81. package/v2/model/ListObsBucketsRequest.d.ts.map +1 -0
  82. package/v2/model/ListObsBucketsRequest.js +9 -0
  83. package/v2/model/ListObsBucketsRequest.js.map +1 -0
  84. package/v2/model/ListObsBucketsResponse.d.ts +8 -0
  85. package/v2/model/ListObsBucketsResponse.d.ts.map +1 -0
  86. package/v2/model/ListObsBucketsResponse.js +15 -0
  87. package/v2/model/ListObsBucketsResponse.js.map +1 -0
  88. package/v2/model/ListObsBucketsResponseBody.d.ts +32 -0
  89. package/v2/model/ListObsBucketsResponseBody.d.ts.map +1 -0
  90. package/v2/model/ListObsBucketsResponseBody.js +65 -0
  91. package/v2/model/ListObsBucketsResponseBody.js.map +1 -0
  92. package/v2/model/ListProductsRespDetail1.d.ts +41 -0
  93. package/v2/model/ListProductsRespDetail1.d.ts.map +1 -0
  94. package/v2/model/ListProductsRespDetail1.js +95 -0
  95. package/v2/model/ListProductsRespDetail1.js.map +1 -0
  96. package/v2/model/ListProductsRespIo1.d.ts +24 -0
  97. package/v2/model/ListProductsRespIo1.d.ts.map +1 -0
  98. package/v2/model/ListProductsRespIo1.js +59 -0
  99. package/v2/model/ListProductsRespIo1.js.map +1 -0
  100. package/v2/model/ListProductsRespMonthly.d.ts +11 -0
  101. package/v2/model/ListProductsRespMonthly.d.ts.map +1 -0
  102. package/v2/model/ListProductsRespMonthly.js +21 -0
  103. package/v2/model/ListProductsRespMonthly.js.map +1 -0
  104. package/v2/model/ListProductsRespValues1.d.ts +17 -0
  105. package/v2/model/ListProductsRespValues1.d.ts.map +1 -0
  106. package/v2/model/ListProductsRespValues1.js +37 -0
  107. package/v2/model/ListProductsRespValues1.js.map +1 -0
  108. package/v2/model/ListProductsResponse.d.ts +4 -3
  109. package/v2/model/ListProductsResponse.d.ts.map +1 -1
  110. package/v2/model/ListProductsResponse.js.map +1 -1
  111. package/v2/model/ListScheduledTasksRequest.d.ts +20 -0
  112. package/v2/model/ListScheduledTasksRequest.d.ts.map +1 -0
  113. package/v2/model/ListScheduledTasksRequest.js +48 -0
  114. package/v2/model/ListScheduledTasksRequest.js.map +1 -0
  115. package/v2/model/ListScheduledTasksResponse.d.ts +12 -0
  116. package/v2/model/ListScheduledTasksResponse.d.ts.map +1 -0
  117. package/v2/model/ListScheduledTasksResponse.js +25 -0
  118. package/v2/model/ListScheduledTasksResponse.js.map +1 -0
  119. package/v2/model/ListUserPoliciesRequest.d.ts +21 -0
  120. package/v2/model/ListUserPoliciesRequest.d.ts.map +1 -0
  121. package/v2/model/ListUserPoliciesRequest.js +44 -0
  122. package/v2/model/ListUserPoliciesRequest.js.map +1 -0
  123. package/v2/model/ListUserPoliciesResponse.d.ts +14 -0
  124. package/v2/model/ListUserPoliciesResponse.d.ts.map +1 -0
  125. package/v2/model/ListUserPoliciesResponse.js +29 -0
  126. package/v2/model/ListUserPoliciesResponse.js.map +1 -0
  127. package/v2/model/ModifyKafkaPublicIPAccessSwitchReq.d.ts +14 -0
  128. package/v2/model/ModifyKafkaPublicIPAccessSwitchReq.d.ts.map +1 -0
  129. package/v2/model/ModifyKafkaPublicIPAccessSwitchReq.js +33 -0
  130. package/v2/model/ModifyKafkaPublicIPAccessSwitchReq.js.map +1 -0
  131. package/v2/model/ModifyKafkaPublicIpAccessSwitchRequest.d.ts +11 -0
  132. package/v2/model/ModifyKafkaPublicIpAccessSwitchRequest.d.ts.map +1 -0
  133. package/v2/model/ModifyKafkaPublicIpAccessSwitchRequest.js +24 -0
  134. package/v2/model/ModifyKafkaPublicIpAccessSwitchRequest.js.map +1 -0
  135. package/v2/model/ModifyKafkaPublicIpAccessSwitchResponse.d.ts +5 -0
  136. package/v2/model/ModifyKafkaPublicIpAccessSwitchResponse.d.ts.map +1 -0
  137. package/v2/model/ModifyKafkaPublicIpAccessSwitchResponse.js +11 -0
  138. package/v2/model/ModifyKafkaPublicIpAccessSwitchResponse.js.map +1 -0
  139. package/v2/model/ModifyRecyclePolicyReq.d.ts +12 -0
  140. package/v2/model/ModifyRecyclePolicyReq.d.ts.map +1 -0
  141. package/v2/model/ModifyRecyclePolicyReq.js +29 -0
  142. package/v2/model/ModifyRecyclePolicyReq.js.map +1 -0
  143. package/v2/model/ModifyRecyclePolicyRequest.d.ts +7 -0
  144. package/v2/model/ModifyRecyclePolicyRequest.d.ts.map +1 -0
  145. package/v2/model/ModifyRecyclePolicyRequest.js +13 -0
  146. package/v2/model/ModifyRecyclePolicyRequest.js.map +1 -0
  147. package/v2/model/ModifyRecyclePolicyResponse.d.ts +18 -0
  148. package/v2/model/ModifyRecyclePolicyResponse.d.ts.map +1 -0
  149. package/v2/model/ModifyRecyclePolicyResponse.js +41 -0
  150. package/v2/model/ModifyRecyclePolicyResponse.js.map +1 -0
  151. package/v2/model/ResetMessageOffsetReq.d.ts +1 -1
  152. package/v2/model/ResetMessageOffsetReq.d.ts.map +1 -1
  153. package/v2/model/ResetMessageOffsetReq.js +2 -1
  154. package/v2/model/ResetMessageOffsetReq.js.map +1 -1
  155. package/v2/model/ResetUserPasswordReq.d.ts +8 -0
  156. package/v2/model/{ResetUserPasswrodReq.d.ts.map → ResetUserPasswordReq.d.ts.map} +1 -1
  157. package/v2/model/{ResetUserPasswrodReq.js → ResetUserPasswordReq.js} +4 -4
  158. package/v2/model/{ResetUserPasswrodReq.js.map → ResetUserPasswordReq.js.map} +1 -1
  159. package/v2/model/ResetUserPasswrodRequest.d.ts +3 -3
  160. package/v2/model/RestoreRecycleInstanceRequest.d.ts +7 -0
  161. package/v2/model/RestoreRecycleInstanceRequest.d.ts.map +1 -0
  162. package/v2/model/RestoreRecycleInstanceRequest.js +13 -0
  163. package/v2/model/RestoreRecycleInstanceRequest.js.map +1 -0
  164. package/v2/model/RestoreRecycleInstanceResponse.d.ts +8 -0
  165. package/v2/model/RestoreRecycleInstanceResponse.d.ts.map +1 -0
  166. package/v2/model/RestoreRecycleInstanceResponse.js +15 -0
  167. package/v2/model/RestoreRecycleInstanceResponse.js.map +1 -0
  168. package/v2/model/ScheduledTaskEntity.d.ts +32 -0
  169. package/v2/model/ScheduledTaskEntity.d.ts.map +1 -0
  170. package/v2/model/ScheduledTaskEntity.js +75 -0
  171. package/v2/model/ScheduledTaskEntity.js.map +1 -0
  172. package/v2/model/SetUserPoliciesReq.d.ts +17 -0
  173. package/v2/model/SetUserPoliciesReq.d.ts.map +1 -0
  174. package/v2/model/SetUserPoliciesReq.js +26 -0
  175. package/v2/model/SetUserPoliciesReq.js.map +1 -0
  176. package/v2/model/SetUserPoliciesRequest.d.ts +24 -0
  177. package/v2/model/SetUserPoliciesRequest.d.ts.map +1 -0
  178. package/v2/model/SetUserPoliciesRequest.js +48 -0
  179. package/v2/model/SetUserPoliciesRequest.js.map +1 -0
  180. package/v2/model/SetUserPoliciesResponse.d.ts +9 -0
  181. package/v2/model/SetUserPoliciesResponse.d.ts.map +1 -0
  182. package/v2/model/SetUserPoliciesResponse.js +21 -0
  183. package/v2/model/SetUserPoliciesResponse.js.map +1 -0
  184. package/v2/model/ShowBackgroundTaskProgressRequest.d.ts +12 -0
  185. package/v2/model/ShowBackgroundTaskProgressRequest.d.ts.map +1 -0
  186. package/v2/model/ShowBackgroundTaskProgressRequest.js +31 -0
  187. package/v2/model/ShowBackgroundTaskProgressRequest.js.map +1 -0
  188. package/v2/model/ShowBackgroundTaskProgressResponse.d.ts +18 -0
  189. package/v2/model/ShowBackgroundTaskProgressResponse.d.ts.map +1 -0
  190. package/v2/model/ShowBackgroundTaskProgressResponse.js +41 -0
  191. package/v2/model/ShowBackgroundTaskProgressResponse.js.map +1 -0
  192. package/v2/model/ShowConnectorResourceInfoRequest.d.ts +8 -0
  193. package/v2/model/ShowConnectorResourceInfoRequest.d.ts.map +1 -0
  194. package/v2/model/ShowConnectorResourceInfoRequest.js +20 -0
  195. package/v2/model/ShowConnectorResourceInfoRequest.js.map +1 -0
  196. package/v2/model/ShowConnectorResourceInfoResponse.d.ts +7 -0
  197. package/v2/model/ShowConnectorResourceInfoResponse.d.ts.map +1 -0
  198. package/v2/model/ShowConnectorResourceInfoResponse.js +15 -0
  199. package/v2/model/ShowConnectorResourceInfoResponse.js.map +1 -0
  200. package/v2/model/ShowInstanceExtendProductInfoRespDetail.d.ts +3 -3
  201. package/v2/model/ShowInstanceExtendProductInfoRespDetail.d.ts.map +1 -1
  202. package/v2/model/ShowInstanceExtendProductInfoRespDetail.js.map +1 -1
  203. package/v2/model/ShowInstanceExtendProductInfoRespIo.d.ts +24 -0
  204. package/v2/model/ShowInstanceExtendProductInfoRespIo.d.ts.map +1 -0
  205. package/v2/model/ShowInstanceExtendProductInfoRespIo.js +59 -0
  206. package/v2/model/ShowInstanceExtendProductInfoRespIo.js.map +1 -0
  207. package/v2/model/ShowInstanceMessagesRequest.d.ts +6 -0
  208. package/v2/model/ShowInstanceMessagesRequest.d.ts.map +1 -1
  209. package/v2/model/ShowInstanceMessagesRequest.js +12 -0
  210. package/v2/model/ShowInstanceMessagesRequest.js.map +1 -1
  211. package/v2/model/ShowKafkaClusterRequest.d.ts +8 -0
  212. package/v2/model/ShowKafkaClusterRequest.d.ts.map +1 -0
  213. package/v2/model/ShowKafkaClusterRequest.js +20 -0
  214. package/v2/model/ShowKafkaClusterRequest.js.map +1 -0
  215. package/v2/model/ShowKafkaClusterResponse.d.ts +8 -0
  216. package/v2/model/ShowKafkaClusterResponse.d.ts.map +1 -0
  217. package/v2/model/ShowKafkaClusterResponse.js +15 -0
  218. package/v2/model/ShowKafkaClusterResponse.js.map +1 -0
  219. package/v2/model/ShowKafkaProductCoresRequest.d.ts +16 -0
  220. package/v2/model/ShowKafkaProductCoresRequest.d.ts.map +1 -0
  221. package/v2/model/ShowKafkaProductCoresRequest.js +42 -0
  222. package/v2/model/ShowKafkaProductCoresRequest.js.map +1 -0
  223. package/v2/model/ShowKafkaProductCoresResponse.d.ts +13 -0
  224. package/v2/model/ShowKafkaProductCoresResponse.d.ts.map +1 -0
  225. package/v2/model/ShowKafkaProductCoresResponse.js +31 -0
  226. package/v2/model/ShowKafkaProductCoresResponse.js.map +1 -0
  227. package/v2/model/ShowKafkaScalePreCheckInfoRequest.d.ts +8 -0
  228. package/v2/model/ShowKafkaScalePreCheckInfoRequest.d.ts.map +1 -0
  229. package/v2/model/ShowKafkaScalePreCheckInfoRequest.js +20 -0
  230. package/v2/model/ShowKafkaScalePreCheckInfoRequest.js.map +1 -0
  231. package/v2/model/ShowKafkaScalePreCheckInfoResponse.d.ts +8 -0
  232. package/v2/model/ShowKafkaScalePreCheckInfoResponse.d.ts.map +1 -0
  233. package/v2/model/ShowKafkaScalePreCheckInfoResponse.js +15 -0
  234. package/v2/model/ShowKafkaScalePreCheckInfoResponse.js.map +1 -0
  235. package/v2/model/ShowKafkaScalePreCheckInfoResponseBody.d.ts +12 -0
  236. package/v2/model/ShowKafkaScalePreCheckInfoResponseBody.d.ts.map +1 -0
  237. package/v2/model/ShowKafkaScalePreCheckInfoResponseBody.js +25 -0
  238. package/v2/model/ShowKafkaScalePreCheckInfoResponseBody.js.map +1 -0
  239. package/v2/model/ShowKafkaTopicDetailRequest.d.ts +10 -0
  240. package/v2/model/ShowKafkaTopicDetailRequest.d.ts.map +1 -0
  241. package/v2/model/ShowKafkaTopicDetailRequest.js +25 -0
  242. package/v2/model/ShowKafkaTopicDetailRequest.js.map +1 -0
  243. package/v2/model/ShowKafkaTopicDetailResponse.d.ts +8 -0
  244. package/v2/model/ShowKafkaTopicDetailResponse.d.ts.map +1 -0
  245. package/v2/model/ShowKafkaTopicDetailResponse.js +15 -0
  246. package/v2/model/ShowKafkaTopicDetailResponse.js.map +1 -0
  247. package/v2/model/ShowKafkaTopicDetailResponseBody.d.ts +13 -0
  248. package/v2/model/ShowKafkaTopicDetailResponseBody.d.ts.map +1 -0
  249. package/v2/model/ShowKafkaTopicDetailResponseBody.js +27 -0
  250. package/v2/model/ShowKafkaTopicDetailResponseBody.js.map +1 -0
  251. package/v2/model/ShowKafkaTopicDetailResponsePartitions.d.ts +10 -0
  252. package/v2/model/ShowKafkaTopicDetailResponsePartitions.d.ts.map +1 -0
  253. package/v2/model/ShowKafkaTopicDetailResponsePartitions.js +21 -0
  254. package/v2/model/ShowKafkaTopicDetailResponsePartitions.js.map +1 -0
  255. package/v2/model/ShowKakfaClusterResponseCluster.d.ts +7 -0
  256. package/v2/model/ShowKakfaClusterResponseCluster.d.ts.map +1 -0
  257. package/v2/model/ShowKakfaClusterResponseCluster.js +13 -0
  258. package/v2/model/ShowKakfaClusterResponseCluster.js.map +1 -0
  259. package/v2/model/ShowKakfaClusterResponseClusterBrokers.d.ts +14 -0
  260. package/v2/model/ShowKakfaClusterResponseClusterBrokers.d.ts.map +1 -0
  261. package/v2/model/ShowKakfaClusterResponseClusterBrokers.js +31 -0
  262. package/v2/model/ShowKakfaClusterResponseClusterBrokers.js.map +1 -0
  263. package/v2/model/ShowRecycleInstancesRequest.d.ts +4 -0
  264. package/v2/model/ShowRecycleInstancesRequest.d.ts.map +1 -0
  265. package/v2/model/ShowRecycleInstancesRequest.js +9 -0
  266. package/v2/model/ShowRecycleInstancesRequest.js.map +1 -0
  267. package/v2/model/ShowRecycleInstancesResponse.d.ts +18 -0
  268. package/v2/model/ShowRecycleInstancesResponse.d.ts.map +1 -0
  269. package/v2/model/ShowRecycleInstancesResponse.js +41 -0
  270. package/v2/model/ShowRecycleInstancesResponse.js.map +1 -0
  271. package/v2/model/ShowSpecConvertProductRequest.d.ts +8 -0
  272. package/v2/model/ShowSpecConvertProductRequest.d.ts.map +1 -0
  273. package/v2/model/ShowSpecConvertProductRequest.js +20 -0
  274. package/v2/model/ShowSpecConvertProductRequest.js.map +1 -0
  275. package/v2/model/ShowSpecConvertProductResponse.d.ts +9 -0
  276. package/v2/model/ShowSpecConvertProductResponse.d.ts.map +1 -0
  277. package/v2/model/ShowSpecConvertProductResponse.js +21 -0
  278. package/v2/model/ShowSpecConvertProductResponse.js.map +1 -0
  279. package/v2/model/ShowUpgradeInstanceVersionRequest.d.ts +8 -0
  280. package/v2/model/ShowUpgradeInstanceVersionRequest.d.ts.map +1 -0
  281. package/v2/model/ShowUpgradeInstanceVersionRequest.js +20 -0
  282. package/v2/model/ShowUpgradeInstanceVersionRequest.js.map +1 -0
  283. package/v2/model/ShowUpgradeInstanceVersionResponse.d.ts +13 -0
  284. package/v2/model/ShowUpgradeInstanceVersionResponse.d.ts.map +1 -0
  285. package/v2/model/ShowUpgradeInstanceVersionResponse.js +31 -0
  286. package/v2/model/ShowUpgradeInstanceVersionResponse.js.map +1 -0
  287. package/v2/model/ShowVolumeExpandConfigRequest.d.ts +8 -0
  288. package/v2/model/ShowVolumeExpandConfigRequest.d.ts.map +1 -0
  289. package/v2/model/ShowVolumeExpandConfigRequest.js +20 -0
  290. package/v2/model/ShowVolumeExpandConfigRequest.js.map +1 -0
  291. package/v2/model/ShowVolumeExpandConfigResponse.d.ts +21 -0
  292. package/v2/model/ShowVolumeExpandConfigResponse.d.ts.map +1 -0
  293. package/v2/model/ShowVolumeExpandConfigResponse.js +51 -0
  294. package/v2/model/ShowVolumeExpandConfigResponse.js.map +1 -0
  295. package/v2/model/StepDetail.d.ts +16 -0
  296. package/v2/model/StepDetail.d.ts.map +1 -0
  297. package/v2/model/StepDetail.js +37 -0
  298. package/v2/model/StepDetail.js.map +1 -0
  299. package/v2/model/UpdateInstanceGroupRequest.d.ts +3 -3
  300. package/v2/model/UpdateInstanceGroupResponse.d.ts +0 -4
  301. package/v2/model/UpdateInstanceGroupResponse.d.ts.map +1 -1
  302. package/v2/model/UpdateInstanceGroupResponse.js +0 -10
  303. package/v2/model/UpdateInstanceGroupResponse.js.map +1 -1
  304. package/v2/model/UpdateKafkaUserClientQuotaTaskReq.d.ts +4 -4
  305. package/v2/model/UpdateKafkaUserClientQuotaTaskReq.js +12 -12
  306. package/v2/model/UpdateScheduledTaskRequest.d.ts +18 -0
  307. package/v2/model/UpdateScheduledTaskRequest.d.ts.map +1 -0
  308. package/v2/model/UpdateScheduledTaskRequest.js +45 -0
  309. package/v2/model/UpdateScheduledTaskRequest.js.map +1 -0
  310. package/v2/model/UpdateScheduledTaskResponse.d.ts +5 -0
  311. package/v2/model/UpdateScheduledTaskResponse.d.ts.map +1 -0
  312. package/v2/model/UpdateScheduledTaskResponse.js +11 -0
  313. package/v2/model/UpdateScheduledTaskResponse.js.map +1 -0
  314. package/v2/model/UpdateTopicAccessPolicyResponse.d.ts +4 -0
  315. package/v2/model/UpdateTopicAccessPolicyResponse.d.ts.map +1 -1
  316. package/v2/model/UpdateTopicAccessPolicyResponse.js +10 -0
  317. package/v2/model/UpdateTopicAccessPolicyResponse.js.map +1 -1
  318. package/v2/model/UpdateVolumeExpansionConfigRequest.d.ts +11 -0
  319. package/v2/model/UpdateVolumeExpansionConfigRequest.d.ts.map +1 -0
  320. package/v2/model/UpdateVolumeExpansionConfigRequest.js +24 -0
  321. package/v2/model/UpdateVolumeExpansionConfigRequest.js.map +1 -0
  322. package/v2/model/UpdateVolumeExpansionConfigResponse.d.ts +7 -0
  323. package/v2/model/UpdateVolumeExpansionConfigResponse.d.ts.map +1 -0
  324. package/v2/model/UpdateVolumeExpansionConfigResponse.js +15 -0
  325. package/v2/model/UpdateVolumeExpansionConfigResponse.js.map +1 -0
  326. package/v2/model/UpgradeInstanceReq.d.ts +12 -0
  327. package/v2/model/UpgradeInstanceReq.d.ts.map +1 -0
  328. package/v2/model/UpgradeInstanceReq.js +29 -0
  329. package/v2/model/UpgradeInstanceReq.js.map +1 -0
  330. package/v2/model/UpgradeInstanceRequest.d.ts +11 -0
  331. package/v2/model/UpgradeInstanceRequest.d.ts.map +1 -0
  332. package/v2/model/UpgradeInstanceRequest.js +24 -0
  333. package/v2/model/UpgradeInstanceRequest.js.map +1 -0
  334. package/v2/model/UpgradeInstanceResp.d.ts +4 -0
  335. package/v2/model/UpgradeInstanceResp.d.ts.map +1 -0
  336. package/v2/model/UpgradeInstanceResp.js +9 -0
  337. package/v2/model/UpgradeInstanceResp.js.map +1 -0
  338. package/v2/model/UpgradeInstanceResponse.d.ts +7 -0
  339. package/v2/model/UpgradeInstanceResponse.d.ts.map +1 -0
  340. package/v2/model/UpgradeInstanceResponse.js +15 -0
  341. package/v2/model/UpgradeInstanceResponse.js.map +1 -0
  342. package/v2/model/UserPolicyEntity.d.ts +37 -0
  343. package/v2/model/UserPolicyEntity.d.ts.map +1 -0
  344. package/v2/model/UserPolicyEntity.js +68 -0
  345. package/v2/model/UserPolicyEntity.js.map +1 -0
  346. package/v2/model/UserPolicyResponeEntity.d.ts +24 -0
  347. package/v2/model/UserPolicyResponeEntity.d.ts.map +1 -0
  348. package/v2/model/UserPolicyResponeEntity.js +59 -0
  349. package/v2/model/UserPolicyResponeEntity.js.map +1 -0
  350. package/v2/public-api.d.ts +75 -3
  351. package/v2/public-api.d.ts.map +1 -1
  352. package/v2/public-api.js +75 -3
  353. package/v2/public-api.js.map +1 -1
  354. package/v2/model/BatchModifyGroupDescriptionReq.d.ts +0 -7
  355. package/v2/model/BatchModifyGroupDescriptionReq.js +0 -13
  356. package/v2/model/DescribeGroupsRespGroupMembers.d.ts +0 -14
  357. package/v2/model/DescribeGroupsRespGroupMembers.d.ts.map +0 -1
  358. package/v2/model/DescribeGroupsRespGroupMembers.js +0 -33
  359. package/v2/model/DescribeGroupsRespGroupMembers.js.map +0 -1
  360. package/v2/model/ResetUserPasswrodReq.d.ts +0 -8
package/v2/KafkaClient.js CHANGED
@@ -27,10 +27,13 @@ const DeleteBackgroundTaskRequest_1 = require("./model/DeleteBackgroundTaskReque
27
27
  const DeleteConnectorRequest_1 = require("./model/DeleteConnectorRequest");
28
28
  const DeleteConnectorTaskRequest_1 = require("./model/DeleteConnectorTaskRequest");
29
29
  const DeleteConsumerGroupOffsetsRequest_1 = require("./model/DeleteConsumerGroupOffsetsRequest");
30
+ const DeleteInstanceConsumerGroupRequest_1 = require("./model/DeleteInstanceConsumerGroupRequest");
30
31
  const DeleteInstanceRequest_1 = require("./model/DeleteInstanceRequest");
31
32
  const DeleteKafkaMessageRequest_1 = require("./model/DeleteKafkaMessageRequest");
32
33
  const DeleteKafkaTopicQuotaRequest_1 = require("./model/DeleteKafkaTopicQuotaRequest");
33
34
  const DeleteKafkaUserClientQuotaTaskRequest_1 = require("./model/DeleteKafkaUserClientQuotaTaskRequest");
35
+ const DeleteScheduledTaskRequest_1 = require("./model/DeleteScheduledTaskRequest");
36
+ const DeleteUserRequest_1 = require("./model/DeleteUserRequest");
34
37
  const ListBackgroundTasksRequest_1 = require("./model/ListBackgroundTasksRequest");
35
38
  const ListConnectorTasksRequest_1 = require("./model/ListConnectorTasksRequest");
36
39
  const ListEngineProductsRequest_1 = require("./model/ListEngineProductsRequest");
@@ -43,11 +46,15 @@ const ListInstanceTopicsRequest_1 = require("./model/ListInstanceTopicsRequest")
43
46
  const ListInstancesRequest_1 = require("./model/ListInstancesRequest");
44
47
  const ListMessageDiagnosisReportsRequest_1 = require("./model/ListMessageDiagnosisReportsRequest");
45
48
  const ListProductsRequest_1 = require("./model/ListProductsRequest");
49
+ const ListScheduledTasksRequest_1 = require("./model/ListScheduledTasksRequest");
46
50
  const ListTopicPartitionsRequest_1 = require("./model/ListTopicPartitionsRequest");
47
51
  const ListTopicProducersRequest_1 = require("./model/ListTopicProducersRequest");
52
+ const ListUserPoliciesRequest_1 = require("./model/ListUserPoliciesRequest");
48
53
  const ModifyConnectorTaskRequest_1 = require("./model/ModifyConnectorTaskRequest");
49
54
  const ModifyInstanceConfigsRequest_1 = require("./model/ModifyInstanceConfigsRequest");
55
+ const ModifyKafkaPublicIpAccessSwitchRequest_1 = require("./model/ModifyKafkaPublicIpAccessSwitchRequest");
50
56
  const ModifyKafkaTopicQuotaRequest_1 = require("./model/ModifyKafkaTopicQuotaRequest");
57
+ const ModifyRecyclePolicyRequest_1 = require("./model/ModifyRecyclePolicyRequest");
51
58
  const PauseConnectorTaskRequest_1 = require("./model/PauseConnectorTaskRequest");
52
59
  const ResetManagerPasswordRequest_1 = require("./model/ResetManagerPasswordRequest");
53
60
  const ResetMessageOffsetRequest_1 = require("./model/ResetMessageOffsetRequest");
@@ -60,11 +67,15 @@ const ResizeKafkaInstanceRequest_1 = require("./model/ResizeKafkaInstanceRequest
60
67
  const RestartConnectorTaskRequest_1 = require("./model/RestartConnectorTaskRequest");
61
68
  const RestartManagerRequest_1 = require("./model/RestartManagerRequest");
62
69
  const RestartSmartConnectorTaskRequest_1 = require("./model/RestartSmartConnectorTaskRequest");
70
+ const RestoreRecycleInstanceRequest_1 = require("./model/RestoreRecycleInstanceRequest");
63
71
  const ResumeConnectorTaskRequest_1 = require("./model/ResumeConnectorTaskRequest");
64
72
  const SendKafkaMessageRequest_1 = require("./model/SendKafkaMessageRequest");
73
+ const SetUserPoliciesRequest_1 = require("./model/SetUserPoliciesRequest");
74
+ const ShowBackgroundTaskProgressRequest_1 = require("./model/ShowBackgroundTaskProgressRequest");
65
75
  const ShowBackgroundTaskRequest_1 = require("./model/ShowBackgroundTaskRequest");
66
76
  const ShowCesHierarchyRequest_1 = require("./model/ShowCesHierarchyRequest");
67
77
  const ShowClusterRequest_1 = require("./model/ShowClusterRequest");
78
+ const ShowConnectorResourceInfoRequest_1 = require("./model/ShowConnectorResourceInfoRequest");
68
79
  const ShowConnectorTaskRequest_1 = require("./model/ShowConnectorTaskRequest");
69
80
  const ShowCoordinatorsRequest_1 = require("./model/ShowCoordinatorsRequest");
70
81
  const ShowDiagnosisPreCheckRequest_1 = require("./model/ShowDiagnosisPreCheckRequest");
@@ -76,9 +87,13 @@ const ShowInstanceMessagesRequest_1 = require("./model/ShowInstanceMessagesReque
76
87
  const ShowInstanceRequest_1 = require("./model/ShowInstanceRequest");
77
88
  const ShowInstanceTopicDetailRequest_1 = require("./model/ShowInstanceTopicDetailRequest");
78
89
  const ShowInstanceUsersRequest_1 = require("./model/ShowInstanceUsersRequest");
90
+ const ShowKafkaClusterRequest_1 = require("./model/ShowKafkaClusterRequest");
79
91
  const ShowKafkaInstanceExtendProductInfoRequest_1 = require("./model/ShowKafkaInstanceExtendProductInfoRequest");
92
+ const ShowKafkaProductCoresRequest_1 = require("./model/ShowKafkaProductCoresRequest");
80
93
  const ShowKafkaRebalanceLogRequest_1 = require("./model/ShowKafkaRebalanceLogRequest");
94
+ const ShowKafkaScalePreCheckInfoRequest_1 = require("./model/ShowKafkaScalePreCheckInfoRequest");
81
95
  const ShowKafkaTagsRequest_1 = require("./model/ShowKafkaTagsRequest");
96
+ const ShowKafkaTopicDetailRequest_1 = require("./model/ShowKafkaTopicDetailRequest");
82
97
  const ShowKafkaTopicPartitionDiskusageRequest_1 = require("./model/ShowKafkaTopicPartitionDiskusageRequest");
83
98
  const ShowKafkaTopicQuotaRequest_1 = require("./model/ShowKafkaTopicQuotaRequest");
84
99
  const ShowKafkaUserClientQuotaRequest_1 = require("./model/ShowKafkaUserClientQuotaRequest");
@@ -88,7 +103,10 @@ const ShowPartitionBeginningMessageRequest_1 = require("./model/ShowPartitionBeg
88
103
  const ShowPartitionEndMessageRequest_1 = require("./model/ShowPartitionEndMessageRequest");
89
104
  const ShowPartitionMessageRequest_1 = require("./model/ShowPartitionMessageRequest");
90
105
  const ShowQuotasRequest_1 = require("./model/ShowQuotasRequest");
106
+ const ShowSpecConvertProductRequest_1 = require("./model/ShowSpecConvertProductRequest");
91
107
  const ShowTopicAccessPolicyRequest_1 = require("./model/ShowTopicAccessPolicyRequest");
108
+ const ShowUpgradeInstanceVersionRequest_1 = require("./model/ShowUpgradeInstanceVersionRequest");
109
+ const ShowVolumeExpandConfigRequest_1 = require("./model/ShowVolumeExpandConfigRequest");
92
110
  const StopKafkaRebalanceLogTaskRequest_1 = require("./model/StopKafkaRebalanceLogTaskRequest");
93
111
  const UpdateInstanceAutoCreateTopicRequest_1 = require("./model/UpdateInstanceAutoCreateTopicRequest");
94
112
  const UpdateInstanceConsumerGroupRequest_1 = require("./model/UpdateInstanceConsumerGroupRequest");
@@ -99,8 +117,11 @@ const UpdateInstanceTopicRequest_1 = require("./model/UpdateInstanceTopicRequest
99
117
  const UpdateInstanceUserRequest_1 = require("./model/UpdateInstanceUserRequest");
100
118
  const UpdateKafkaPortProtocolRequest_1 = require("./model/UpdateKafkaPortProtocolRequest");
101
119
  const UpdateKafkaUserClientQuotaTaskRequest_1 = require("./model/UpdateKafkaUserClientQuotaTaskRequest");
120
+ const UpdateScheduledTaskRequest_1 = require("./model/UpdateScheduledTaskRequest");
102
121
  const UpdateTopicAccessPolicyRequest_1 = require("./model/UpdateTopicAccessPolicyRequest");
103
122
  const UpdateTopicReplicaRequest_1 = require("./model/UpdateTopicReplicaRequest");
123
+ const UpdateVolumeExpansionConfigRequest_1 = require("./model/UpdateVolumeExpansionConfigRequest");
124
+ const UpgradeInstanceRequest_1 = require("./model/UpgradeInstanceRequest");
104
125
  const ValidateConnectorConnectivityRequest_1 = require("./model/ValidateConnectorConnectivityRequest");
105
126
  class KafkaClient {
106
127
  static newBuilder() {
@@ -153,7 +174,7 @@ class KafkaClient {
153
174
  * Please refer to HUAWEI cloud API Explorer for details.
154
175
  *
155
176
  * @summary Kafka实例批量删除Topic
156
- * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:登录Kafka控制台,在Kafka实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
177
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
157
178
  * @param {BatchDeleteInstanceTopicReq} batchDeleteInstanceTopicRequestBody 请求消息。
158
179
  * @param {*} [options] Override http request option.
159
180
  * @throws {RequiredError}
@@ -259,7 +280,7 @@ class KafkaClient {
259
280
  * Please refer to HUAWEI cloud API Explorer for details.
260
281
  *
261
282
  * @summary Kafka实例创建Topic
262
- * @param {string} instanceId 实例ID。
283
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
263
284
  * @param {CreateInstanceTopicReq} createInstanceTopicRequestBody 请求消息。
264
285
  * @param {*} [options] Override http request option.
265
286
  * @throws {RequiredError}
@@ -271,7 +292,7 @@ class KafkaClient {
271
292
  return this.hcClient.sendRequest(options);
272
293
  }
273
294
  /**
274
- * 创建Kafka实例的用户,用户可连接开启SASL的Kafka实例。 [ 2023年7月15日前创建的Kafka实例,一个实例最多创建20个用户。2023年7月15日及以后创建的Kafka实例,一个实例最多创建500个用户。](tag:hws,hws_hk)
295
+ * 创建Kafka实例的用户,用户可连接开启SASL的Kafka实例。 [ 2023年7月15日前创建的Kafka实例,一个实例最多创建20个用户。2023年7月15日及以后创建的Kafka实例,一个实例最多创建500个用户。](tag:hws,hws_hk) [一个实例最多创建500个用户。](tag:fcs,ax,hcs)
275
296
  *
276
297
  * Please refer to HUAWEI cloud API Explorer for details.
277
298
  *
@@ -343,7 +364,7 @@ class KafkaClient {
343
364
  * Please refer to HUAWEI cloud API Explorer for details.
344
365
  *
345
366
  * @summary 创建Topic流控配置
346
- * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:登录Kafka控制台,在Kafka实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
367
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
347
368
  * @param {KafkaTopicQuota} createKafkaTopicQuotaBody 请求消息。
348
369
  * @param {*} [options] Override http request option.
349
370
  * @throws {RequiredError}
@@ -407,7 +428,7 @@ class KafkaClient {
407
428
  /**
408
429
  * 创建实例。
409
430
  *
410
- * [该接口支持创建按需和包周期两种计费方式的实例。](tag:hws,hws_eu,hws_hk,ctc,cmcc)
431
+ * [该接口支持创建按需和包周期两种计费方式的实例。](tag:hws,hws_eu,hws_hk,ctc,cmcc,ax)
411
432
  *
412
433
  * Please refer to HUAWEI cloud API Explorer for details.
413
434
  *
@@ -490,6 +511,24 @@ class KafkaClient {
490
511
  options['responseHeaders'] = [''];
491
512
  return this.hcClient.sendRequest(options);
492
513
  }
514
+ /**
515
+ * 删除指定消费组。
516
+ *
517
+ * Please refer to HUAWEI cloud API Explorer for details.
518
+ *
519
+ * @summary 删除指定消费组
520
+ * @param {string} engine 引擎。
521
+ * @param {string} instanceId 实例ID。
522
+ * @param {string} group 消费组ID。
523
+ * @param {*} [options] Override http request option.
524
+ * @throws {RequiredError}
525
+ */
526
+ deleteInstanceConsumerGroup(deleteInstanceConsumerGroupRequest) {
527
+ const options = (0, exports.ParamCreater)().deleteInstanceConsumerGroup(deleteInstanceConsumerGroupRequest);
528
+ // @ts-ignore
529
+ options['responseHeaders'] = [''];
530
+ return this.hcClient.sendRequest(options);
531
+ }
493
532
  /**
494
533
  * Kafka删除消息。
495
534
  *
@@ -514,7 +553,7 @@ class KafkaClient {
514
553
  * Please refer to HUAWEI cloud API Explorer for details.
515
554
  *
516
555
  * @summary 删除Topic流控配置
517
- * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:登录Kafka控制台,在Kafka实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
556
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
518
557
  * @param {KafkaTopicQuota} deleteKafkaTopicQuotaBody 请求消息。
519
558
  * @param {*} [options] Override http request option.
520
559
  * @throws {RequiredError}
@@ -542,6 +581,40 @@ class KafkaClient {
542
581
  options['responseHeaders'] = [''];
543
582
  return this.hcClient.sendRequest(options);
544
583
  }
584
+ /**
585
+ * 删除指定的定时任务。仅当定时任务处于执行成功或已取消状态时,方可执行删除操作。
586
+ *
587
+ * Please refer to HUAWEI cloud API Explorer for details.
588
+ *
589
+ * @summary 删除指定的定时任务
590
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
591
+ * @param {string} taskId **参数解释**: 定时任务ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
592
+ * @param {*} [options] Override http request option.
593
+ * @throws {RequiredError}
594
+ */
595
+ deleteScheduledTask(deleteScheduledTaskRequest) {
596
+ const options = (0, exports.ParamCreater)().deleteScheduledTask(deleteScheduledTaskRequest);
597
+ // @ts-ignore
598
+ options['responseHeaders'] = [''];
599
+ return this.hcClient.sendRequest(options);
600
+ }
601
+ /**
602
+ * 删除指定用户。
603
+ *
604
+ * Please refer to HUAWEI cloud API Explorer for details.
605
+ *
606
+ * @summary 删除指定用户
607
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
608
+ * @param {string} userName **参数解释**: 用户名。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
609
+ * @param {*} [options] Override http request option.
610
+ * @throws {RequiredError}
611
+ */
612
+ deleteUser(deleteUserRequest) {
613
+ const options = (0, exports.ParamCreater)().deleteUser(deleteUserRequest);
614
+ // @ts-ignore
615
+ options['responseHeaders'] = [''];
616
+ return this.hcClient.sendRequest(options);
617
+ }
545
618
  /**
546
619
  * 在创建实例时,需要配置实例所在的可用区ID,可通过该接口查询可用区的ID。
547
620
  *
@@ -564,7 +637,7 @@ class KafkaClient {
564
637
  *
565
638
  * @summary 查询实例的后台任务列表
566
639
  * @param {string} instanceId 实例ID。
567
- * @param {number} [start] 开启查询的任务编号。
640
+ * @param {number} [offset] 开启查询的任务编号。
568
641
  * @param {number} [limit] 查询的任务个数。
569
642
  * @param {string} [beginTime] 查询任务的最小时间,格式为YYYYMMDDHHmmss。
570
643
  * @param {string} [endTime] 查询任务的最大时间,格式为YYYYMMDDHHmmss。
@@ -577,14 +650,29 @@ class KafkaClient {
577
650
  options['responseHeaders'] = [''];
578
651
  return this.hcClient.sendRequest(options);
579
652
  }
653
+ /**
654
+ * 获取特性开关列表。
655
+ *
656
+ * Please refer to HUAWEI cloud API Explorer for details.
657
+ *
658
+ * @summary 查询特性开关列表
659
+ * @param {*} [options] Override http request option.
660
+ * @throws {RequiredError}
661
+ */
662
+ listConfigFeatures(listConfigFeaturesRequest) {
663
+ const options = (0, exports.ParamCreater)().listConfigFeatures();
664
+ // @ts-ignore
665
+ options['responseHeaders'] = [''];
666
+ return this.hcClient.sendRequest(options);
667
+ }
580
668
  /**
581
669
  * 查询产品规格列表。
582
670
  *
583
671
  * Please refer to HUAWEI cloud API Explorer for details.
584
672
  *
585
673
  * @summary 查询产品规格列表
586
- * @param {'kafka'} engine 消息引擎的类型。
587
- * @param {string} [productId] 产品ID。
674
+ * @param {'kafka'} engine **参数解释**: 消息引擎的类型。 **约束限制**: 不涉及。 **取值范围**: kafka **默认取值**: 不涉及。
675
+ * @param {string} [productId] **参数解释**: 产品ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
588
676
  * @param {*} [options] Override http request option.
589
677
  * @throws {RequiredError}
590
678
  */
@@ -665,7 +753,7 @@ class KafkaClient {
665
753
  * @param {string} engine 引擎。
666
754
  * @param {string} instanceId 实例ID。
667
755
  * @param {string} group 消费组ID。
668
- * @param {number} [offset] 偏移量,表示从此偏移量开始查询, offset大于等于0。
756
+ * @param {number} [offset] 偏移量,表示从此偏移量开始查询,offset大于等于0。
669
757
  * @param {number} [limit] 当次查询返回的最大Topic个数,默认值为10,取值范围为1~50。
670
758
  * @param {string} [sortKey] 排序规则: - topic:按Topic名称排序。 - partition:按分区数排序。 - messages:按消息数量排序,默认方式。
671
759
  * @param {string} [sortDir] 排序方式。 - asc:升序。 - desc:降序,默认方式。
@@ -685,10 +773,10 @@ class KafkaClient {
685
773
  * Please refer to HUAWEI cloud API Explorer for details.
686
774
  *
687
775
  * @summary 查询所有消费组
688
- * @param {string} instanceId 实例ID。
689
- * @param {string} [offset] 偏移量,表示从此偏移量开始查询, offset大于等于0。
690
- * @param {string} [limit] 当次查询返回的最大消费组ID个数,默认值为10,取值范围为1~50。
691
- * @param {string} [group] 消费组名过滤查询,过滤方式为字段包含过滤。
776
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
777
+ * @param {string} [offset] **参数解释**: 偏移量。 **约束限制**: 不涉及。 **取值范围**: 大于等于0。 **默认取值**: 不涉及。
778
+ * @param {string} [limit] **参数解释**: 当次查询返回的最大消费组ID个数。 **约束限制**: 不涉及。 **取值范围**: 1~50。 **默认取值**: 10。
779
+ * @param {string} [group] **参数解释**: 消费组名过滤查询,过滤方式为字段包含过滤。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
692
780
  * @param {*} [options] Override http request option.
693
781
  * @throws {RequiredError}
694
782
  */
@@ -704,9 +792,9 @@ class KafkaClient {
704
792
  * Please refer to HUAWEI cloud API Explorer for details.
705
793
  *
706
794
  * @summary Kafka实例查询Topic
707
- * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:登录Kafka控制台,在Kafka实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
795
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
708
796
  * @param {string} [offset] **参数解释**: 偏移量,表示从此偏移量开始查询。 **约束限制**: 不涉及。 **取值范围**: 大于等于0。 **默认取值**: 不涉及。
709
- * @param {string} [limit] **参数解释**: 当次查询返回的最大实例个数。 **约束限制**: 不涉及。 **取值范围**: 大于等于0。 **默认取值**: 不涉及。
797
+ * @param {string} [limit] **参数解释**: 当次查询返回的最大实例个数。 **约束限制**: 不涉及。 **取值范围**: 大于等于0,小于等于200。 **默认取值**: 50。
710
798
  * @param {*} [options] Override http request option.
711
799
  * @throws {RequiredError}
712
800
  */
@@ -722,15 +810,15 @@ class KafkaClient {
722
810
  * Please refer to HUAWEI cloud API Explorer for details.
723
811
  *
724
812
  * @summary 查询所有实例列表
725
- * @param {'kafka'} engine 消息引擎:kafka。
726
- * @param {string} [name] 实例名称。
727
- * @param {string} [instanceId] 实例ID。
728
- * @param {'CREATING' | 'RUNNING' | 'RESTARTING' | 'DELETING' | 'ERROR' | 'CREATEFAILED' | 'FREEZING' | 'FROZEN' | 'EXTENDING' | 'SHRINKING' | 'EXTENDEDFAILED' | 'CONFIGURING' | 'ROLLBACK' | 'ROLLBACKFAILED' | 'VOLUMETYPECHANGING'} [status] 实例状态。 详细状态说明请参考[实例状态说明](kafka-api-180514012.xml)。
729
- * @param {'true' | 'false'} [includeFailure] 是否返回创建失败的实例数。 当参数值为“true”时,返回创建失败的实例数。参数值为“false”,不返回创建失败的实例数。
730
- * @param {'true' | 'false'} [exactMatchName] 是否按照实例名称进行精确匹配查询。 默认为“false”,表示模糊匹配实例名称查询。若参数值为“true”表示按照实例名称进行精确匹配查询。
731
- * @param {string} [enterpriseProjectId] 企业项目ID。
732
- * @param {string} [offset] 偏移量,表示从此偏移量开始查询, offset大于等于0。
733
- * @param {string} [limit] 当次查询返回的最大实例个数,默认值为10,取值范围为1~50。
813
+ * @param {'kafka'} engine **参数解释**: 消息引擎。 **约束限制**: 不涉及。 **取值范围**: kafka。 **默认取值**: 不涉及。
814
+ * @param {string} [name] **参数解释**: 实例名称。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
815
+ * @param {string} [instanceId] **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
816
+ * @param {'CREATING' | 'RUNNING' | 'RESTARTING' | 'DELETING' | 'ERROR' | 'CREATEFAILED' | 'FREEZING' | 'FROZEN' | 'EXTENDING' | 'SHRINKING' | 'EXTENDEDFAILED' | 'CONFIGURING' | 'ROLLBACK' | 'ROLLBACKFAILED' | 'VOLUMETYPECHANGING'} [status] **参数解释**: 实例状态,详细状态说明请参考[实例状态说明](kafka-api-180514012.xml)。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
817
+ * @param {'true' | 'false'} [includeFailure] **参数解释**: 是否返回创建失败的实例数。 **约束限制**: 不涉及。 **取值范围**: - \'true\':返回创建失败的实例数。 - \'false\':不返回创建失败的实例数。 **默认取值**: 不涉及。
818
+ * @param {'true' | 'false'} [exactMatchName] **参数解释**: 是否按照实例名称进行精确匹配查询。 **约束限制**: 不涉及。 **取值范围**: - \'true\':表示按照实例名称进行精确匹配查询。 - \'false\':表示模糊匹配实例名称查询。 **默认取值**: \'false\'。
819
+ * @param {string} [enterpriseProjectId] **参数解释**: 企业项目ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
820
+ * @param {string} [offset] **参数解释**: 偏移量,表示从此偏移量开始查询。 **约束限制**: 不涉及。 **取值范围**: 大于等于0。 **默认取值**: 不涉及。
821
+ * @param {string} [limit] **参数解释**: 当次查询返回的实例最大个数。 **约束限制**: 不涉及。 **取值范围**: 1~50。 **默认取值**: 10。
734
822
  * @param {*} [options] Override http request option.
735
823
  * @throws {RequiredError}
736
824
  */
@@ -770,7 +858,7 @@ class KafkaClient {
770
858
  * Please refer to HUAWEI cloud API Explorer for details.
771
859
  *
772
860
  * @summary 查询产品规格列表
773
- * @param {'kafka'} engine 消息引擎的类型。当前只支持kafka类型。
861
+ * @param {'kafka'} engine **参数解释**: 消息引擎的类型。当前只支持kafka类型。 **约束限制**: 不涉及。 **取值范围**: kafka **默认取值**: 不涉及。
774
862
  * @param {*} [options] Override http request option.
775
863
  * @throws {RequiredError}
776
864
  */
@@ -780,6 +868,26 @@ class KafkaClient {
780
868
  options['responseHeaders'] = [''];
781
869
  return this.hcClient.sendRequest(options);
782
870
  }
871
+ /**
872
+ * 查询实例的定时任务列表。
873
+ *
874
+ * Please refer to HUAWEI cloud API Explorer for details.
875
+ *
876
+ * @summary 查询实例的定时任务列表
877
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
878
+ * @param {string} [start] **参数解释**: 开启查询的定时任务编号。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
879
+ * @param {string} [limit] **参数解释**: 查询的定时任务个数。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
880
+ * @param {string} [beginTime] **参数解释**: 查询定时任务的最小时间,格式为YYYYMMDDHHmmss。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
881
+ * @param {string} [endTime] **参数解释**: 查询定时任务的最大时间,格式为YYYYMMDDHHmmss。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
882
+ * @param {*} [options] Override http request option.
883
+ * @throws {RequiredError}
884
+ */
885
+ listScheduledTasks(listScheduledTasksRequest) {
886
+ const options = (0, exports.ParamCreater)().listScheduledTasks(listScheduledTasksRequest);
887
+ // @ts-ignore
888
+ options['responseHeaders'] = [''];
889
+ return this.hcClient.sendRequest(options);
890
+ }
783
891
  /**
784
892
  * 查询Topic的分区列表
785
893
  *
@@ -805,7 +913,7 @@ class KafkaClient {
805
913
  * Please refer to HUAWEI cloud API Explorer for details.
806
914
  *
807
915
  * @summary 查询Topic的当前生产者列表
808
- * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:登录Kafka控制台,在Kafka实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
916
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
809
917
  * @param {string} topic **参数解释**: 主题。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
810
918
  * @param {number} [offset] **参数解释**: 偏移量,表示查询该偏移量后面的记录。 **约束限制**: 不涉及。 **取值范围**: 大于等于0。 **默认取值**: 不涉及。
811
919
  * @param {number} [limit] **参数解释**: 查询返回记录的数量限制。 **约束限制**: 不涉及。 **取值范围**: 1~50。 **默认取值**: 不涉及。
@@ -818,6 +926,26 @@ class KafkaClient {
818
926
  options['responseHeaders'] = [''];
819
927
  return this.hcClient.sendRequest(options);
820
928
  }
929
+ /**
930
+ * 查询用户策略。
931
+ *
932
+ * Kafka实例开启SASL功能后,才支持查询用户策略功能。
933
+ *
934
+ * Please refer to HUAWEI cloud API Explorer for details.
935
+ *
936
+ * @summary 查询用户策略
937
+ * @param {'kafka'} engine **参数解释**: 消息引擎。 **约束限制**: 不涉及。 **取值范围**: kafka **默认取值**: kafka
938
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
939
+ * @param {string} userName **参数解释**: 用户名。 **约束限制**: 不涉及。 **取值范围**: 已经创建的用户名。 **默认取值**: 不涉及。
940
+ * @param {*} [options] Override http request option.
941
+ * @throws {RequiredError}
942
+ */
943
+ listUserPolicies(listUserPoliciesRequest) {
944
+ const options = (0, exports.ParamCreater)().listUserPolicies(listUserPoliciesRequest);
945
+ // @ts-ignore
946
+ options['responseHeaders'] = [''];
947
+ return this.hcClient.sendRequest(options);
948
+ }
821
949
  /**
822
950
  * 修改实例配置。
823
951
  *
@@ -835,13 +963,30 @@ class KafkaClient {
835
963
  options['responseHeaders'] = [''];
836
964
  return this.hcClient.sendRequest(options);
837
965
  }
966
+ /**
967
+ * 开启或者关闭Kafka实例公网访问功能。
968
+ *
969
+ * Please refer to HUAWEI cloud API Explorer for details.
970
+ *
971
+ * @summary 开启或者关闭Kafka实例公网访问功能
972
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
973
+ * @param {ModifyKafkaPublicIPAccessSwitchReq} modifyKafkaPublicIPAccessSwitchBody 请求体。
974
+ * @param {*} [options] Override http request option.
975
+ * @throws {RequiredError}
976
+ */
977
+ modifyKafkaPublicIpAccessSwitch(modifyKafkaPublicIpAccessSwitchRequest) {
978
+ const options = (0, exports.ParamCreater)().modifyKafkaPublicIpAccessSwitch(modifyKafkaPublicIpAccessSwitchRequest);
979
+ // @ts-ignore
980
+ options['responseHeaders'] = [''];
981
+ return this.hcClient.sendRequest(options);
982
+ }
838
983
  /**
839
984
  * 该接口用于向Kafka实例提交修改Topic级别的流控任务,若成功则返回流控任务的job_id。
840
985
  *
841
986
  * Please refer to HUAWEI cloud API Explorer for details.
842
987
  *
843
988
  * @summary 修改Topic流控配置
844
- * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:登录Kafka控制台,在Kafka实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
989
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
845
990
  * @param {KafkaTopicQuota} modifyKafkaTopicQuotaBody 请求消息。
846
991
  * @param {*} [options] Override http request option.
847
992
  * @throws {RequiredError}
@@ -852,6 +997,22 @@ class KafkaClient {
852
997
  options['responseHeaders'] = [''];
853
998
  return this.hcClient.sendRequest(options);
854
999
  }
1000
+ /**
1001
+ * 更新回收站策略。
1002
+ *
1003
+ * Please refer to HUAWEI cloud API Explorer for details.
1004
+ *
1005
+ * @summary 更新回收站策略
1006
+ * @param {ModifyRecyclePolicyReq} [modifyRecyclePolicyReq] **参数解释**: 项目ID,获取方式请参见[获取项目ID](kafka-api-0036212547.xml)。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1007
+ * @param {*} [options] Override http request option.
1008
+ * @throws {RequiredError}
1009
+ */
1010
+ modifyRecyclePolicy(modifyRecyclePolicyRequest) {
1011
+ const options = (0, exports.ParamCreater)().modifyRecyclePolicy(modifyRecyclePolicyRequest);
1012
+ // @ts-ignore
1013
+ options['responseHeaders'] = [''];
1014
+ return this.hcClient.sendRequest(options);
1015
+ }
855
1016
  /**
856
1017
  * 重置Manager密码。
857
1018
  *
@@ -934,7 +1095,7 @@ class KafkaClient {
934
1095
  * @summary 重置用户密码
935
1096
  * @param {string} instanceId 实例ID。
936
1097
  * @param {string} userName 用户名称。
937
- * @param {ResetUserPasswrodReq} resetUserPasswrodRequestBody 请求消息。
1098
+ * @param {ResetUserPasswordReq} resetUserPasswordRequestBody 请求消息。
938
1099
  * @param {*} [options] Override http request option.
939
1100
  * @throws {RequiredError}
940
1101
  */
@@ -980,7 +1141,7 @@ class KafkaClient {
980
1141
  return this.hcClient.sendRequest(options);
981
1142
  }
982
1143
  /**
983
- * 实例规格变更。[当前通过调用API,只支持按需实例进行实例扩容。](tag:hws,hws_hk,ctc,cmcc,hws_eu)
1144
+ * 实例规格变更。[当前通过调用API,只支持按需实例进行实例扩容。](tag:hws,hws_hk,ctc,cmcc,hws_eu,ax)
984
1145
  *
985
1146
  * Please refer to HUAWEI cloud API Explorer for details.
986
1147
  *
@@ -1013,7 +1174,23 @@ class KafkaClient {
1013
1174
  return this.hcClient.sendRequest(options);
1014
1175
  }
1015
1176
  /**
1016
- * 在控制台发送指定消息到Kafka实例
1177
+ * 恢复回收站实例。
1178
+ *
1179
+ * Please refer to HUAWEI cloud API Explorer for details.
1180
+ *
1181
+ * @summary 恢复回收站实例
1182
+ * @param {BatchResumeInstanceReq} [batchResumeInstanceReq] **参数解释**: 项目ID,获取方式请参见[获取项目ID](kafka-api-0036212547.xml)。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1183
+ * @param {*} [options] Override http request option.
1184
+ * @throws {RequiredError}
1185
+ */
1186
+ restoreRecycleInstance(restoreRecycleInstanceRequest) {
1187
+ const options = (0, exports.ParamCreater)().restoreRecycleInstance(restoreRecycleInstanceRequest);
1188
+ // @ts-ignore
1189
+ options['responseHeaders'] = [''];
1190
+ return this.hcClient.sendRequest(options);
1191
+ }
1192
+ /**
1193
+ * 在控制台发送指定消息到Kafka实例。
1017
1194
  *
1018
1195
  * Please refer to HUAWEI cloud API Explorer for details.
1019
1196
  *
@@ -1030,6 +1207,27 @@ class KafkaClient {
1030
1207
  options['responseHeaders'] = [''];
1031
1208
  return this.hcClient.sendRequest(options);
1032
1209
  }
1210
+ /**
1211
+ * 创建/删除用户策略。
1212
+ *
1213
+ * Kafka实例开启SASL功能后,才支持创建/删除用户策略。
1214
+ *
1215
+ * Please refer to HUAWEI cloud API Explorer for details.
1216
+ *
1217
+ * @summary 创建/删除用户策略
1218
+ * @param {'kafka'} engine **参数解释**: 消息引擎。 **约束限制**: 不涉及。 **取值范围**: kafka **默认取值**: kafka
1219
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1220
+ * @param {string} userName **参数解释**: 用户名。 **约束限制**: 不涉及。 **取值范围**: 已经创建的用户名。 **默认取值**: 不涉及。
1221
+ * @param {SetUserPoliciesReq} setUserPoliciesRequestBody 请求消息。
1222
+ * @param {*} [options] Override http request option.
1223
+ * @throws {RequiredError}
1224
+ */
1225
+ setUserPolicies(setUserPoliciesRequest) {
1226
+ const options = (0, exports.ParamCreater)().setUserPolicies(setUserPoliciesRequest);
1227
+ // @ts-ignore
1228
+ options['responseHeaders'] = [''];
1229
+ return this.hcClient.sendRequest(options);
1230
+ }
1033
1231
  /**
1034
1232
  * 查询后台任务管理中的指定记录。
1035
1233
  *
@@ -1047,13 +1245,30 @@ class KafkaClient {
1047
1245
  options['responseHeaders'] = [''];
1048
1246
  return this.hcClient.sendRequest(options);
1049
1247
  }
1248
+ /**
1249
+ * 查询后台任务中的指定实例的变更进度。
1250
+ *
1251
+ * Please refer to HUAWEI cloud API Explorer for details.
1252
+ *
1253
+ * @summary 查询后台任务中的指定实例的变更进度
1254
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1255
+ * @param {string} taskId **参数解释**: 任务ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1256
+ * @param {*} [options] Override http request option.
1257
+ * @throws {RequiredError}
1258
+ */
1259
+ showBackgroundTaskProgress(showBackgroundTaskProgressRequest) {
1260
+ const options = (0, exports.ParamCreater)().showBackgroundTaskProgress(showBackgroundTaskProgressRequest);
1261
+ // @ts-ignore
1262
+ options['responseHeaders'] = [''];
1263
+ return this.hcClient.sendRequest(options);
1264
+ }
1050
1265
  /**
1051
1266
  * 查询实例在CES的监控层级关系。
1052
1267
  *
1053
1268
  * Please refer to HUAWEI cloud API Explorer for details.
1054
1269
  *
1055
1270
  * @summary 查询实例在CES的监控层级关系
1056
- * @param {string} instanceId 实例ID。
1271
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1057
1272
  * @param {*} [options] Override http request option.
1058
1273
  * @throws {RequiredError}
1059
1274
  */
@@ -1069,7 +1284,7 @@ class KafkaClient {
1069
1284
  * Please refer to HUAWEI cloud API Explorer for details.
1070
1285
  *
1071
1286
  * @summary 查询Kafka集群元数据信息
1072
- * @param {string} instanceId 实例ID。
1287
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1073
1288
  * @param {*} [options] Override http request option.
1074
1289
  * @throws {RequiredError}
1075
1290
  */
@@ -1085,7 +1300,7 @@ class KafkaClient {
1085
1300
  * Please refer to HUAWEI cloud API Explorer for details.
1086
1301
  *
1087
1302
  * @summary 查询Kafka实例的协调器信息
1088
- * @param {string} instanceId 实例ID。
1303
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1089
1304
  * @param {*} [options] Override http request option.
1090
1305
  * @throws {RequiredError}
1091
1306
  */
@@ -1137,8 +1352,8 @@ class KafkaClient {
1137
1352
  * Please refer to HUAWEI cloud API Explorer for details.
1138
1353
  *
1139
1354
  * @summary 查询消费组信息
1140
- * @param {string} instanceId 实例ID。
1141
- * @param {string} group 消费组名称。
1355
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1356
+ * @param {string} group **参数解释**: 消费组名称。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1142
1357
  * @param {*} [options] Override http request option.
1143
1358
  * @throws {RequiredError}
1144
1359
  */
@@ -1154,7 +1369,7 @@ class KafkaClient {
1154
1369
  * Please refer to HUAWEI cloud API Explorer for details.
1155
1370
  *
1156
1371
  * @summary 查询指定实例
1157
- * @param {string} instanceId 实例ID。
1372
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1158
1373
  * @param {*} [options] Override http request option.
1159
1374
  * @throws {RequiredError}
1160
1375
  */
@@ -1205,17 +1420,20 @@ class KafkaClient {
1205
1420
  * Please refer to HUAWEI cloud API Explorer for details.
1206
1421
  *
1207
1422
  * @summary 查询消息
1208
- * @param {string} instanceId 实例ID。
1209
- * @param {string} topic Topic名称。 Topic名称必须以字母开头且只支持大小写字母、中横线、下划线以及数字。
1210
- * @param {boolean} [asc] 是否按照时间排序。
1211
- * @param {string} [startTime] 开始时间。 Unix毫秒时间戳。 查询消息偏移量时,为必选参数。
1212
- * @param {string} [endTime] 结束时间。 Unix毫秒时间戳。 查询消息偏移量时,为必选参数。
1213
- * @param {string} [limit] 每一页显示的message数量。
1214
- * @param {string} [offset] 页数。
1215
- * @param {boolean} [download] 是否下载。
1216
- * @param {string} [messageOffset] 消息偏移量。 **查询消息内容时,为必选参数。** 若start_time、end_time参数不为空,该参数无效。
1217
- * @param {string} [partition] 分区。 **查询消息内容时,为必选参数。** 若start_time、end_time参数不为空,该参数无效。
1218
- * @param {string} [keyword] 关键词。 取值范围为0~50
1423
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1424
+ * @param {string} topic **参数解释**: Topic名称。 **约束限制**: Topic名称必须以字母开头且只支持大小写字母、中横线、下划线以及数字。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1425
+ * @param {boolean} [asc] **参数解释**: 是否按照时间排序。 **约束限制**: 不涉及。 **取值范围**: - true:按照时间排序。 - false:不按照时间排序。 **默认取值**: 不涉及。
1426
+ * @param {string} [startTime] **参数解释**: 开始时间。 Unix毫秒时间戳。 **约束限制**: 查询消息偏移量时,为必选参数。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1427
+ * @param {string} [endTime] **参数解释**: 结束时间。 Unix毫秒时间戳。 **约束限制**: 查询消息偏移量时,为必选参数。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1428
+ * @param {string} [limit] **参数解释**: 每一页显示的消息数量。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1429
+ * @param {string} [offset] **参数解释**: 页数。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1430
+ * @param {boolean} [download] **参数解释**: 是否下载消息到本地。 **约束限制**: 不涉及。 **取值范围**: - true:下载。 - false:不下载。 **默认取值**: 不涉及。
1431
+ * @param {string} [messageOffset] **参数解释**: 消息偏移量。 **约束限制**: 查询消息内容时,为必选参数。 若start_time、end_time参数不为空,该参数无效。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1432
+ * @param {string} [partition] **参数解释**: 分区。 **约束限制**: 查询消息内容时,为必选参数。 若start_time、end_time参数不为空,该参数无效。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1433
+ * @param {string} [keyword] **参数解释**: 设置查询消息的关键词。 **约束限制**: 不涉及。 **取值范围**: 0~50字符。 **默认取值**: 不涉及。
1434
+ * @param {string} [key] **参数解释**: 设置消息的KEY,查询结果为包含KEY的所有消息。 **约束限制**: 由于查询资源和性能限制,最大搜索10000条消息且所有消息总大小不超过200MB,最多返回包含KEY的前10条消息。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1435
+ * @param {string} [include] **参数解释**: 设置消息正文中包含的关键词,查询结果为包含此关键词的消息。 **约束限制**: 多个关键字用%2C隔开,%2C是“,”的URL编码形式。 **取值范围**: include与exclude的关键词总数不得超过20个。 **默认取值**: 不涉及。
1436
+ * @param {string} [exclude] **参数解释**: 设置消息正文中需要排除的关键词,查询结果为不包含此关键词的消息。 **约束限制**: 多个关键字用%2C隔开,%2C是“,”的URL编码形式。 **取值范围**: include与exclude的关键词总数不得超过20个。 **默认取值**: 不涉及。
1219
1437
  * @param {*} [options] Override http request option.
1220
1438
  * @throws {RequiredError}
1221
1439
  */
@@ -1231,7 +1449,7 @@ class KafkaClient {
1231
1449
  * Please refer to HUAWEI cloud API Explorer for details.
1232
1450
  *
1233
1451
  * @summary 查询Kafka实例Topic详细信息
1234
- * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:登录Kafka控制台,在Kafka实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1452
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1235
1453
  * @param {string} topic **参数解释**: Topic名称。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1236
1454
  * @param {*} [options] Override http request option.
1237
1455
  * @throws {RequiredError}
@@ -1260,6 +1478,22 @@ class KafkaClient {
1260
1478
  options['responseHeaders'] = [''];
1261
1479
  return this.hcClient.sendRequest(options);
1262
1480
  }
1481
+ /**
1482
+ * 查询Kafka集群信息。
1483
+ *
1484
+ * Please refer to HUAWEI cloud API Explorer for details.
1485
+ *
1486
+ * @summary 查询Kafka集群信息
1487
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1488
+ * @param {*} [options] Override http request option.
1489
+ * @throws {RequiredError}
1490
+ */
1491
+ showKafkaCluster(showKafkaClusterRequest) {
1492
+ const options = (0, exports.ParamCreater)().showKafkaCluster(showKafkaClusterRequest);
1493
+ // @ts-ignore
1494
+ options['responseHeaders'] = [''];
1495
+ return this.hcClient.sendRequest(options);
1496
+ }
1263
1497
  /**
1264
1498
  * 查询实例的扩容规格列表。
1265
1499
  *
@@ -1277,6 +1511,24 @@ class KafkaClient {
1277
1511
  options['responseHeaders'] = [''];
1278
1512
  return this.hcClient.sendRequest(options);
1279
1513
  }
1514
+ /**
1515
+ * 查询Kafka产品规格核数。
1516
+ *
1517
+ * Please refer to HUAWEI cloud API Explorer for details.
1518
+ *
1519
+ * @summary 查询Kafka产品规格核数
1520
+ * @param {string} instanceId 实例ID。
1521
+ * @param {string} productId **参数解释**: 产品ID。 **约束限制**: 不涉及。 **取值范围**: - s6.2u4g.single.small:规格kafka.2u4g.single.small的产品ID。 - c6.2u4g.single:规格kafka.2u4g.single的产品ID。 [- s6.2u4g.cluster.small:规格kafka.2u4g.cluster.small的产品ID。](tag:hws,hws_hk,hws_eu,dt,ax) - c6.2u4g.cluster:规格kafka.2u4g.cluster的产品ID。 - c6.4u8g.cluster:规格kafka.4u8g.cluster的产品ID。 - c6.8u16g.cluster:规格kafka.8u16g.cluster的产品ID。 - c6.12u24g.cluster:规格kafka.12u24g.cluster的产品ID。 - c6.16u32g.cluster:规格kafka.16u32g.cluster的产品ID。 **默认取值**: 不涉及。
1522
+ * @param {string} brokerNum **参数解释**: broker数量。 **约束限制**: 不涉及。 **取值范围**: - Kafka实例规格为kafka.2u4g.single.small时,代理数建议取值范围1。 - Kafka实例规格为kafka.2u4g.single时,代理数建议取值范围1。 [- Kafka实例规格为kafka.2u4g.cluster.small时,代理数取值范围3-30。](tag:hws,hws_hk,hws_eu,dt,ax) - Kafka实例规格为kafka.2u4g.cluster时,代理数取值范围3-30。 - Kafka实例规格为kafka.4u8g.cluster时,代理数取值范围3-30。 - Kafka实例规格为kafka.8u16g.cluster时,代理数取值范围3-50。 - Kafka实例规格为kafka.12u24g.cluster时,代理数取值范围3-50。 - Kafka实例规格为kafka.16u32g.cluster时,代理数取值范围3-50。 **默认取值**: 不涉及。
1523
+ * @param {*} [options] Override http request option.
1524
+ * @throws {RequiredError}
1525
+ */
1526
+ showKafkaProductCores(showKafkaProductCoresRequest) {
1527
+ const options = (0, exports.ParamCreater)().showKafkaProductCores(showKafkaProductCoresRequest);
1528
+ // @ts-ignore
1529
+ options['responseHeaders'] = [''];
1530
+ return this.hcClient.sendRequest(options);
1531
+ }
1280
1532
  /**
1281
1533
  * 查询项目标签。
1282
1534
  *
@@ -1308,6 +1560,22 @@ class KafkaClient {
1308
1560
  options['responseHeaders'] = [''];
1309
1561
  return this.hcClient.sendRequest(options);
1310
1562
  }
1563
+ /**
1564
+ * 获取Kafka实例扩容前置检查信息。
1565
+ *
1566
+ * Please refer to HUAWEI cloud API Explorer for details.
1567
+ *
1568
+ * @summary 获取Kafka实例扩容前置检查信息
1569
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1570
+ * @param {*} [options] Override http request option.
1571
+ * @throws {RequiredError}
1572
+ */
1573
+ showKafkaScalePreCheckInfo(showKafkaScalePreCheckInfoRequest) {
1574
+ const options = (0, exports.ParamCreater)().showKafkaScalePreCheckInfo(showKafkaScalePreCheckInfoRequest);
1575
+ // @ts-ignore
1576
+ options['responseHeaders'] = [''];
1577
+ return this.hcClient.sendRequest(options);
1578
+ }
1311
1579
  /**
1312
1580
  * 查询实例标签。
1313
1581
  *
@@ -1325,11 +1593,28 @@ class KafkaClient {
1325
1593
  return this.hcClient.sendRequest(options);
1326
1594
  }
1327
1595
  /**
1328
- * 查询topic在Broker上磁盘占用情况。
1596
+ * 获取Kafka Topic详细信息。
1597
+ *
1598
+ * Please refer to HUAWEI cloud API Explorer for details.
1599
+ *
1600
+ * @summary 获取Kafka Topic详细信息
1601
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1602
+ * @param {string} topic **参数解释**: Topic名称。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1603
+ * @param {*} [options] Override http request option.
1604
+ * @throws {RequiredError}
1605
+ */
1606
+ showKafkaTopicDetail(showKafkaTopicDetailRequest) {
1607
+ const options = (0, exports.ParamCreater)().showKafkaTopicDetail(showKafkaTopicDetailRequest);
1608
+ // @ts-ignore
1609
+ options['responseHeaders'] = [''];
1610
+ return this.hcClient.sendRequest(options);
1611
+ }
1612
+ /**
1613
+ * 查询Topic在Broker上磁盘占用情况。
1329
1614
  *
1330
1615
  * Please refer to HUAWEI cloud API Explorer for details.
1331
1616
  *
1332
- * @summary 查询topic的磁盘存储情况
1617
+ * @summary 查询Topic的磁盘存储情况
1333
1618
  * @param {string} instanceId 实例ID。
1334
1619
  * @param {string} [minSize] 占用磁盘大小,默认值1G (1K,1M,1G)。
1335
1620
  * @param {string} [top] **参数解释**: 占用磁盘大小,查询top N。 **约束限制**: 不涉及。 **取值范围**: 1~1000。 **默认取值**: 不涉及。
@@ -1349,7 +1634,7 @@ class KafkaClient {
1349
1634
  * Please refer to HUAWEI cloud API Explorer for details.
1350
1635
  *
1351
1636
  * @summary 查询Topic流控配置
1352
- * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:登录Kafka控制台,在Kafka实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1637
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1353
1638
  * @param {string} [type] **参数解释**: 查询类型。 **约束限制**: 查询类型必须以字母开头且只支持大小写字母、中横线、下划线以及数字。 **取值范围**: 默认为topic **默认取值**: topic
1354
1639
  * @param {string} [limit] **参数解释**: 每一页显示的流控数量。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1355
1640
  * @param {string} [offset] **参数解释**: 页数。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
@@ -1419,7 +1704,7 @@ class KafkaClient {
1419
1704
  * Please refer to HUAWEI cloud API Explorer for details.
1420
1705
  *
1421
1706
  * @summary 查询分区指定时间段的消息
1422
- * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:登录Kafka控制台,在Kafka实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1707
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1423
1708
  * @param {string} topic **参数解释**: Topic名称。 **约束限制**: Topic名称必须以字母开头且只支持大小写字母、中横线、下划线以及数字。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1424
1709
  * @param {string} [startTime] **参数解释**: 查询起始时间,为Unix时间戳格式。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 0。
1425
1710
  * @param {string} [endTime] **参数解释**: 查询结束时间,为Unix时间戳格式。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 系统当前时间。
@@ -1441,7 +1726,7 @@ class KafkaClient {
1441
1726
  * Please refer to HUAWEI cloud API Explorer for details.
1442
1727
  *
1443
1728
  * @summary 查询分区最早消息的位置
1444
- * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:登录Kafka控制台,在Kafka实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1729
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1445
1730
  * @param {string} topic **参数解释**: Topic名称。 **约束限制**: Topic名称必须以字母开头且只支持大小写字母、中横线、下划线以及数字。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1446
1731
  * @param {number} partition **参数解释**: 分区编号。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1447
1732
  * @param {*} [options] Override http request option.
@@ -1459,7 +1744,7 @@ class KafkaClient {
1459
1744
  * Please refer to HUAWEI cloud API Explorer for details.
1460
1745
  *
1461
1746
  * @summary 查询分区最新消息的位置
1462
- * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:登录Kafka控制台,在Kafka实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1747
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1463
1748
  * @param {string} topic **参数解释**: Topic名称。 **约束限制**: Topic名称必须以字母开头且只支持大小写字母、中横线、下划线以及数字。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1464
1749
  * @param {number} partition **参数解释**: 分区编号。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1465
1750
  * @param {*} [options] Override http request option.
@@ -1477,7 +1762,7 @@ class KafkaClient {
1477
1762
  * Please refer to HUAWEI cloud API Explorer for details.
1478
1763
  *
1479
1764
  * @summary 查询分区指定偏移量的消息
1480
- * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:登录Kafka控制台,在Kafka实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1765
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1481
1766
  * @param {string} topic **参数解释**: Topic名称。 **约束限制**: Topic名称必须以字母开头且只支持大小写字母、中横线、下划线以及数字。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1482
1767
  * @param {number} partition **参数解释**: 分区编号。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1483
1768
  * @param {string} messageOffset **参数解释**: 消息位置。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
@@ -1506,6 +1791,37 @@ class KafkaClient {
1506
1791
  options['responseHeaders'] = [''];
1507
1792
  return this.hcClient.sendRequest(options);
1508
1793
  }
1794
+ /**
1795
+ * 查询回收站实例列表。
1796
+ *
1797
+ * Please refer to HUAWEI cloud API Explorer for details.
1798
+ *
1799
+ * @summary 查询回收站实例列表
1800
+ * @param {*} [options] Override http request option.
1801
+ * @throws {RequiredError}
1802
+ */
1803
+ showRecycleInstances(showRecycleInstancesRequest) {
1804
+ const options = (0, exports.ParamCreater)().showRecycleInstances();
1805
+ // @ts-ignore
1806
+ options['responseHeaders'] = [''];
1807
+ return this.hcClient.sendRequest(options);
1808
+ }
1809
+ /**
1810
+ * 查询旧规格实例可升级的新规格信息。
1811
+ *
1812
+ * Please refer to HUAWEI cloud API Explorer for details.
1813
+ *
1814
+ * @summary 查询旧规格升级新规格映射
1815
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1816
+ * @param {*} [options] Override http request option.
1817
+ * @throws {RequiredError}
1818
+ */
1819
+ showSpecConvertProduct(showSpecConvertProductRequest) {
1820
+ const options = (0, exports.ParamCreater)().showSpecConvertProduct(showSpecConvertProductRequest);
1821
+ // @ts-ignore
1822
+ options['responseHeaders'] = [''];
1823
+ return this.hcClient.sendRequest(options);
1824
+ }
1509
1825
  /**
1510
1826
  * 查询用户权限。
1511
1827
  *
@@ -1525,6 +1841,38 @@ class KafkaClient {
1525
1841
  options['responseHeaders'] = [''];
1526
1842
  return this.hcClient.sendRequest(options);
1527
1843
  }
1844
+ /**
1845
+ * 查询Kafka实例版本信息。
1846
+ *
1847
+ * Please refer to HUAWEI cloud API Explorer for details.
1848
+ *
1849
+ * @summary 查询Kafka实例版本信息
1850
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1851
+ * @param {*} [options] Override http request option.
1852
+ * @throws {RequiredError}
1853
+ */
1854
+ showUpgradeInstanceVersion(showUpgradeInstanceVersionRequest) {
1855
+ const options = (0, exports.ParamCreater)().showUpgradeInstanceVersion(showUpgradeInstanceVersionRequest);
1856
+ // @ts-ignore
1857
+ options['responseHeaders'] = [''];
1858
+ return this.hcClient.sendRequest(options);
1859
+ }
1860
+ /**
1861
+ * 查询磁盘自动扩容配置,包括磁盘自动扩容是否开启,以及开启后的扩容阈值、扩容步长、扩容上限信息。
1862
+ *
1863
+ * Please refer to HUAWEI cloud API Explorer for details.
1864
+ *
1865
+ * @summary 查询磁盘自动扩容配置
1866
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1867
+ * @param {*} [options] Override http request option.
1868
+ * @throws {RequiredError}
1869
+ */
1870
+ showVolumeExpandConfig(showVolumeExpandConfigRequest) {
1871
+ const options = (0, exports.ParamCreater)().showVolumeExpandConfig(showVolumeExpandConfigRequest);
1872
+ // @ts-ignore
1873
+ options['responseHeaders'] = [''];
1874
+ return this.hcClient.sendRequest(options);
1875
+ }
1528
1876
  /**
1529
1877
  * 关闭Kafka实例重平衡日志功能。
1530
1878
  *
@@ -1619,7 +1967,7 @@ class KafkaClient {
1619
1967
  * @summary 修改所有消费组
1620
1968
  * @param {string} engine 引擎。
1621
1969
  * @param {string} instanceId 实例ID。
1622
- * @param {BatchModifyGroupDescriptionReq} groupCreateRequestBody 请求消息。
1970
+ * @param {BatchModiftGroupDescriptionReq} batchModiftGroupDescriptionRequestBody 请求消息。
1623
1971
  * @param {*} [options] Override http request option.
1624
1972
  * @throws {RequiredError}
1625
1973
  */
@@ -1700,6 +2048,25 @@ class KafkaClient {
1700
2048
  options['responseHeaders'] = [''];
1701
2049
  return this.hcClient.sendRequest(options);
1702
2050
  }
2051
+ /**
2052
+ * 修改指定的定时任务。
2053
+ *
2054
+ * Please refer to HUAWEI cloud API Explorer for details.
2055
+ *
2056
+ * @summary 修改指定的定时任务
2057
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
2058
+ * @param {string} taskId **参数解释**: 定时任务ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
2059
+ * @param {string} [executeAt] **参数解释**: 修改定时任务的执行时间。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
2060
+ * @param {string} [status] **参数解释**: 修改定时任务状态。 **约束限制**: 不涉及。 **取值范围**: - CANCELLED:定时任务被取消。 - null:定时任务待执行。 **默认取值**: 不涉及。
2061
+ * @param {*} [options] Override http request option.
2062
+ * @throws {RequiredError}
2063
+ */
2064
+ updateScheduledTask(updateScheduledTaskRequest) {
2065
+ const options = (0, exports.ParamCreater)().updateScheduledTask(updateScheduledTaskRequest);
2066
+ // @ts-ignore
2067
+ options['responseHeaders'] = [''];
2068
+ return this.hcClient.sendRequest(options);
2069
+ }
1703
2070
  /**
1704
2071
  * 设置用户权限。
1705
2072
  *
@@ -1738,43 +2105,77 @@ class KafkaClient {
1738
2105
  return this.hcClient.sendRequest(options);
1739
2106
  }
1740
2107
  /**
1741
- * 开启Smart Connect,提交创建Smart Connect节点任务。
1742
- *
1743
- * [**当前通过调用API,只支持按需实例创建Smart Connect节点。**](tag:hws,hws_hk,g42,hk_g42,ctc)
2108
+ * 该接口用于修改磁盘自动扩容配置,包含磁盘自动扩容是否开启、扩容阈值、扩容步长,以及扩容上限的配置。
1744
2109
  *
1745
2110
  * Please refer to HUAWEI cloud API Explorer for details.
1746
2111
  *
1747
- * @summary 开启Smart Connect(按需实例)
1748
- * @param {string} instanceId 实例ID。
1749
- * @param {CreateConnectorReq} createConnectorRequestBody 请求消息。
2112
+ * @summary 修改磁盘自动扩容配置
2113
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
2114
+ * @param {AlterAutoVolumeExpandConfig} updateVolumeExpansionConfigRequestBody **参数解释**: 自动磁盘扩容配置 **约束限制**: 不涉及。
1750
2115
  * @param {*} [options] Override http request option.
1751
2116
  * @throws {RequiredError}
1752
2117
  */
1753
- createConnector(createConnectorRequest) {
1754
- const options = (0, exports.ParamCreater)().createConnector(createConnectorRequest);
2118
+ updateVolumeExpansionConfig(updateVolumeExpansionConfigRequest) {
2119
+ const options = (0, exports.ParamCreater)().updateVolumeExpansionConfig(updateVolumeExpansionConfigRequest);
1755
2120
  // @ts-ignore
1756
2121
  options['responseHeaders'] = [''];
1757
2122
  return this.hcClient.sendRequest(options);
1758
2123
  }
1759
2124
  /**
1760
- * 创建Smart Connect任务。
2125
+ * 实例内核升级。
1761
2126
  *
1762
2127
  * Please refer to HUAWEI cloud API Explorer for details.
1763
2128
  *
1764
- * @summary 创建Smart Connect任务
2129
+ * @summary 实例升级
1765
2130
  * @param {string} instanceId 实例ID。
1766
- * @param {CreateSmartConnectTaskReq} createSmartConnectTaskRequestBody 请求消息。
2131
+ * @param {UpgradeInstanceReq} upgradeInstanceRequestBody 请求消息。
1767
2132
  * @param {*} [options] Override http request option.
1768
2133
  * @throws {RequiredError}
1769
2134
  */
1770
- createConnectorTask(createConnectorTaskRequest) {
1771
- const options = (0, exports.ParamCreater)().createConnectorTask(createConnectorTaskRequest);
2135
+ upgradeInstance(upgradeInstanceRequest) {
2136
+ const options = (0, exports.ParamCreater)().upgradeInstance(upgradeInstanceRequest);
1772
2137
  // @ts-ignore
1773
2138
  options['responseHeaders'] = [''];
1774
2139
  return this.hcClient.sendRequest(options);
1775
2140
  }
1776
2141
  /**
1777
- * 介绍按需实例如何关闭Smart Connect
2142
+ * 开启Smart Connect,提交创建Smart Connect节点任务。
2143
+ *
2144
+ * [**当前通过调用API,只支持按需实例创建Smart Connect节点。**](tag:hws,hws_hk,g42,hk_g42,ctc,cmcc)
2145
+ *
2146
+ * Please refer to HUAWEI cloud API Explorer for details.
2147
+ *
2148
+ * @summary 开启Smart Connect(按需实例)
2149
+ * @param {string} instanceId 实例ID。
2150
+ * @param {CreateConnectorReq} createConnectorRequestBody 请求消息。
2151
+ * @param {*} [options] Override http request option.
2152
+ * @throws {RequiredError}
2153
+ */
2154
+ createConnector(createConnectorRequest) {
2155
+ const options = (0, exports.ParamCreater)().createConnector(createConnectorRequest);
2156
+ // @ts-ignore
2157
+ options['responseHeaders'] = [''];
2158
+ return this.hcClient.sendRequest(options);
2159
+ }
2160
+ /**
2161
+ * 创建Smart Connect任务。
2162
+ *
2163
+ * Please refer to HUAWEI cloud API Explorer for details.
2164
+ *
2165
+ * @summary 创建Smart Connect任务
2166
+ * @param {string} instanceId 实例ID。
2167
+ * @param {CreateSmartConnectTaskReq} createSmartConnectTaskRequestBody 请求消息。
2168
+ * @param {*} [options] Override http request option.
2169
+ * @throws {RequiredError}
2170
+ */
2171
+ createConnectorTask(createConnectorTaskRequest) {
2172
+ const options = (0, exports.ParamCreater)().createConnectorTask(createConnectorTaskRequest);
2173
+ // @ts-ignore
2174
+ options['responseHeaders'] = [''];
2175
+ return this.hcClient.sendRequest(options);
2176
+ }
2177
+ /**
2178
+ * 介绍按需实例如何关闭Smart Connect。
1778
2179
  *
1779
2180
  * Please refer to HUAWEI cloud API Explorer for details.
1780
2181
  *
@@ -1824,14 +2225,29 @@ class KafkaClient {
1824
2225
  options['responseHeaders'] = [''];
1825
2226
  return this.hcClient.sendRequest(options);
1826
2227
  }
2228
+ /**
2229
+ * 查询OBS桶列表。
2230
+ *
2231
+ * Please refer to HUAWEI cloud API Explorer for details.
2232
+ *
2233
+ * @summary 查询OBS桶列表
2234
+ * @param {*} [options] Override http request option.
2235
+ * @throws {RequiredError}
2236
+ */
2237
+ listObsBuckets(listObsBucketsRequest) {
2238
+ const options = (0, exports.ParamCreater)().listObsBuckets();
2239
+ // @ts-ignore
2240
+ options['responseHeaders'] = [''];
2241
+ return this.hcClient.sendRequest(options);
2242
+ }
1827
2243
  /**
1828
2244
  * 修改Smart Connect任务配置。
1829
2245
  *
1830
2246
  * Please refer to HUAWEI cloud API Explorer for details.
1831
2247
  *
1832
- * @summary 修改Smart Connect任务配置。
1833
- * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:登录Kafka控制台,在Kafka实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1834
- * @param {string} taskId **参数解释**: 任务ID。获取方法如下:登录Kafka控制台,在Smart Connect页面查找任务ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
2248
+ * @summary 修改Smart Connect任务配置
2249
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
2250
+ * @param {string} taskId **参数解释**: 任务ID。获取方法如下:调用“查询Smart Connect任务列表”接口,从响应体中获取Smart Connect任务ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1835
2251
  * @param {SmartConnectTaskEntity} modifyConnectorTaskBody **参数解释**: 修改Smart Connect任务配置请求体。
1836
2252
  * @param {*} [options] Override http request option.
1837
2253
  * @throws {RequiredError}
@@ -1910,6 +2326,22 @@ class KafkaClient {
1910
2326
  options['responseHeaders'] = [''];
1911
2327
  return this.hcClient.sendRequest(options);
1912
2328
  }
2329
+ /**
2330
+ * 查询开启Smart Connector功能所需要使用的资源的情况
2331
+ *
2332
+ * Please refer to HUAWEI cloud API Explorer for details.
2333
+ *
2334
+ * @summary 查询开启Smart Connector功能所需资源信息
2335
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
2336
+ * @param {*} [options] Override http request option.
2337
+ * @throws {RequiredError}
2338
+ */
2339
+ showConnectorResourceInfo(showConnectorResourceInfoRequest) {
2340
+ const options = (0, exports.ParamCreater)().showConnectorResourceInfo(showConnectorResourceInfoRequest);
2341
+ // @ts-ignore
2342
+ options['responseHeaders'] = [''];
2343
+ return this.hcClient.sendRequest(options);
2344
+ }
1913
2345
  /**
1914
2346
  * 查询Smart Connect任务详情。
1915
2347
  *
@@ -1933,7 +2365,7 @@ class KafkaClient {
1933
2365
  * Please refer to HUAWEI cloud API Explorer for details.
1934
2366
  *
1935
2367
  * @summary 校验Connector连通性
1936
- * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:登录Kafka控制台,在Kafka实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
2368
+ * @param {string} instanceId **参数解释**: 实例ID。获取方法如下:调用“查询所有实例列表”接口,从响应体中获取实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
1937
2369
  * @param {SmartConnectValidateEntity} validateConnectorConnectivityBody **参数解释**: 校验Connector连通性请求体。
1938
2370
  * @param {*} [options] Override http request option.
1939
2371
  * @throws {RequiredError}
@@ -2299,7 +2731,7 @@ const ParamCreater = function () {
2299
2731
  return options;
2300
2732
  },
2301
2733
  /**
2302
- * 创建Kafka实例的用户,用户可连接开启SASL的Kafka实例。 [ 2023年7月15日前创建的Kafka实例,一个实例最多创建20个用户。2023年7月15日及以后创建的Kafka实例,一个实例最多创建500个用户。](tag:hws,hws_hk)
2734
+ * 创建Kafka实例的用户,用户可连接开启SASL的Kafka实例。 [ 2023年7月15日前创建的Kafka实例,一个实例最多创建20个用户。2023年7月15日及以后创建的Kafka实例,一个实例最多创建500个用户。](tag:hws,hws_hk) [一个实例最多创建500个用户。](tag:fcs,ax,hcs)
2303
2735
  *
2304
2736
  * Please refer to HUAWEI cloud API Explorer for details.
2305
2737
  */
@@ -2605,7 +3037,7 @@ const ParamCreater = function () {
2605
3037
  /**
2606
3038
  * 创建实例。
2607
3039
  *
2608
- * [该接口支持创建按需和包周期两种计费方式的实例。](tag:hws,hws_eu,hws_hk,ctc,cmcc)
3040
+ * [该接口支持创建按需和包周期两种计费方式的实例。](tag:hws,hws_eu,hws_hk,ctc,cmcc,ax)
2609
3041
  *
2610
3042
  * Please refer to HUAWEI cloud API Explorer for details.
2611
3043
  */
@@ -2791,6 +3223,49 @@ const ParamCreater = function () {
2791
3223
  options.headers = localVarHeaderParameter;
2792
3224
  return options;
2793
3225
  },
3226
+ /**
3227
+ * 删除指定消费组。
3228
+ *
3229
+ * Please refer to HUAWEI cloud API Explorer for details.
3230
+ */
3231
+ deleteInstanceConsumerGroup(deleteInstanceConsumerGroupRequest) {
3232
+ const options = {
3233
+ method: "DELETE",
3234
+ url: "/v2/{engine}/{project_id}/instances/{instance_id}/groups/{group}",
3235
+ contentType: "application/json",
3236
+ queryParams: {},
3237
+ pathParams: {},
3238
+ headers: {}
3239
+ };
3240
+ const localVarHeaderParameter = {};
3241
+ let engine;
3242
+ let instanceId;
3243
+ let group;
3244
+ if (deleteInstanceConsumerGroupRequest !== null && deleteInstanceConsumerGroupRequest !== undefined) {
3245
+ if (deleteInstanceConsumerGroupRequest instanceof DeleteInstanceConsumerGroupRequest_1.DeleteInstanceConsumerGroupRequest) {
3246
+ engine = deleteInstanceConsumerGroupRequest.engine;
3247
+ instanceId = deleteInstanceConsumerGroupRequest.instanceId;
3248
+ group = deleteInstanceConsumerGroupRequest.group;
3249
+ }
3250
+ else {
3251
+ engine = deleteInstanceConsumerGroupRequest['engine'];
3252
+ instanceId = deleteInstanceConsumerGroupRequest['instance_id'];
3253
+ group = deleteInstanceConsumerGroupRequest['group'];
3254
+ }
3255
+ }
3256
+ if (engine === null || engine === undefined) {
3257
+ throw new RequiredError('engine', 'Required parameter engine was null or undefined when calling deleteInstanceConsumerGroup.');
3258
+ }
3259
+ if (instanceId === null || instanceId === undefined) {
3260
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling deleteInstanceConsumerGroup.');
3261
+ }
3262
+ if (group === null || group === undefined) {
3263
+ throw new RequiredError('group', 'Required parameter group was null or undefined when calling deleteInstanceConsumerGroup.');
3264
+ }
3265
+ options.pathParams = { 'engine': engine, 'instance_id': instanceId, 'group': group, };
3266
+ options.headers = localVarHeaderParameter;
3267
+ return options;
3268
+ },
2794
3269
  /**
2795
3270
  * Kafka删除消息。
2796
3271
  *
@@ -2917,6 +3392,80 @@ const ParamCreater = function () {
2917
3392
  options.headers = localVarHeaderParameter;
2918
3393
  return options;
2919
3394
  },
3395
+ /**
3396
+ * 删除指定的定时任务。仅当定时任务处于执行成功或已取消状态时,方可执行删除操作。
3397
+ *
3398
+ * Please refer to HUAWEI cloud API Explorer for details.
3399
+ */
3400
+ deleteScheduledTask(deleteScheduledTaskRequest) {
3401
+ const options = {
3402
+ method: "DELETE",
3403
+ url: "/v2/{project_id}/instances/{instance_id}/scheduled-tasks/{task_id}",
3404
+ contentType: "application/json",
3405
+ queryParams: {},
3406
+ pathParams: {},
3407
+ headers: {}
3408
+ };
3409
+ const localVarHeaderParameter = {};
3410
+ let instanceId;
3411
+ let taskId;
3412
+ if (deleteScheduledTaskRequest !== null && deleteScheduledTaskRequest !== undefined) {
3413
+ if (deleteScheduledTaskRequest instanceof DeleteScheduledTaskRequest_1.DeleteScheduledTaskRequest) {
3414
+ instanceId = deleteScheduledTaskRequest.instanceId;
3415
+ taskId = deleteScheduledTaskRequest.taskId;
3416
+ }
3417
+ else {
3418
+ instanceId = deleteScheduledTaskRequest['instance_id'];
3419
+ taskId = deleteScheduledTaskRequest['task_id'];
3420
+ }
3421
+ }
3422
+ if (instanceId === null || instanceId === undefined) {
3423
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling deleteScheduledTask.');
3424
+ }
3425
+ if (taskId === null || taskId === undefined) {
3426
+ throw new RequiredError('taskId', 'Required parameter taskId was null or undefined when calling deleteScheduledTask.');
3427
+ }
3428
+ options.pathParams = { 'instance_id': instanceId, 'task_id': taskId, };
3429
+ options.headers = localVarHeaderParameter;
3430
+ return options;
3431
+ },
3432
+ /**
3433
+ * 删除指定用户。
3434
+ *
3435
+ * Please refer to HUAWEI cloud API Explorer for details.
3436
+ */
3437
+ deleteUser(deleteUserRequest) {
3438
+ const options = {
3439
+ method: "DELETE",
3440
+ url: "/v2/{project_id}/instances/{instance_id}/users/{user_name}",
3441
+ contentType: "application/json",
3442
+ queryParams: {},
3443
+ pathParams: {},
3444
+ headers: {}
3445
+ };
3446
+ const localVarHeaderParameter = {};
3447
+ let instanceId;
3448
+ let userName;
3449
+ if (deleteUserRequest !== null && deleteUserRequest !== undefined) {
3450
+ if (deleteUserRequest instanceof DeleteUserRequest_1.DeleteUserRequest) {
3451
+ instanceId = deleteUserRequest.instanceId;
3452
+ userName = deleteUserRequest.userName;
3453
+ }
3454
+ else {
3455
+ instanceId = deleteUserRequest['instance_id'];
3456
+ userName = deleteUserRequest['user_name'];
3457
+ }
3458
+ }
3459
+ if (instanceId === null || instanceId === undefined) {
3460
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling deleteUser.');
3461
+ }
3462
+ if (userName === null || userName === undefined) {
3463
+ throw new RequiredError('userName', 'Required parameter userName was null or undefined when calling deleteUser.');
3464
+ }
3465
+ options.pathParams = { 'instance_id': instanceId, 'user_name': userName, };
3466
+ options.headers = localVarHeaderParameter;
3467
+ return options;
3468
+ },
2920
3469
  /**
2921
3470
  * 在创建实例时,需要配置实例所在的可用区ID,可通过该接口查询可用区的ID。
2922
3471
  *
@@ -2952,21 +3501,21 @@ const ParamCreater = function () {
2952
3501
  const localVarHeaderParameter = {};
2953
3502
  const localVarQueryParameter = {};
2954
3503
  let instanceId;
2955
- let start;
3504
+ let offset;
2956
3505
  let limit;
2957
3506
  let beginTime;
2958
3507
  let endTime;
2959
3508
  if (listBackgroundTasksRequest !== null && listBackgroundTasksRequest !== undefined) {
2960
3509
  if (listBackgroundTasksRequest instanceof ListBackgroundTasksRequest_1.ListBackgroundTasksRequest) {
2961
3510
  instanceId = listBackgroundTasksRequest.instanceId;
2962
- start = listBackgroundTasksRequest.start;
3511
+ offset = listBackgroundTasksRequest.offset;
2963
3512
  limit = listBackgroundTasksRequest.limit;
2964
3513
  beginTime = listBackgroundTasksRequest.beginTime;
2965
3514
  endTime = listBackgroundTasksRequest.endTime;
2966
3515
  }
2967
3516
  else {
2968
3517
  instanceId = listBackgroundTasksRequest['instance_id'];
2969
- start = listBackgroundTasksRequest['start'];
3518
+ offset = listBackgroundTasksRequest['offset'];
2970
3519
  limit = listBackgroundTasksRequest['limit'];
2971
3520
  beginTime = listBackgroundTasksRequest['begin_time'];
2972
3521
  endTime = listBackgroundTasksRequest['end_time'];
@@ -2975,8 +3524,8 @@ const ParamCreater = function () {
2975
3524
  if (instanceId === null || instanceId === undefined) {
2976
3525
  throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listBackgroundTasks.');
2977
3526
  }
2978
- if (start !== null && start !== undefined) {
2979
- localVarQueryParameter['start'] = start;
3527
+ if (offset !== null && offset !== undefined) {
3528
+ localVarQueryParameter['offset'] = offset;
2980
3529
  }
2981
3530
  if (limit !== null && limit !== undefined) {
2982
3531
  localVarQueryParameter['limit'] = limit;
@@ -2992,6 +3541,24 @@ const ParamCreater = function () {
2992
3541
  options.headers = localVarHeaderParameter;
2993
3542
  return options;
2994
3543
  },
3544
+ /**
3545
+ * 获取特性开关列表。
3546
+ *
3547
+ * Please refer to HUAWEI cloud API Explorer for details.
3548
+ */
3549
+ listConfigFeatures() {
3550
+ const options = {
3551
+ method: "GET",
3552
+ url: "/v2/config/features",
3553
+ contentType: "application/json",
3554
+ queryParams: {},
3555
+ pathParams: {},
3556
+ headers: {}
3557
+ };
3558
+ const localVarHeaderParameter = {};
3559
+ options.headers = localVarHeaderParameter;
3560
+ return options;
3561
+ },
2995
3562
  /**
2996
3563
  * 查询产品规格列表。
2997
3564
  *
@@ -3552,6 +4119,63 @@ const ParamCreater = function () {
3552
4119
  options.headers = localVarHeaderParameter;
3553
4120
  return options;
3554
4121
  },
4122
+ /**
4123
+ * 查询实例的定时任务列表。
4124
+ *
4125
+ * Please refer to HUAWEI cloud API Explorer for details.
4126
+ */
4127
+ listScheduledTasks(listScheduledTasksRequest) {
4128
+ const options = {
4129
+ method: "GET",
4130
+ url: "/v2/{project_id}/instances/{instance_id}/scheduled-tasks",
4131
+ contentType: "application/json",
4132
+ queryParams: {},
4133
+ pathParams: {},
4134
+ headers: {}
4135
+ };
4136
+ const localVarHeaderParameter = {};
4137
+ const localVarQueryParameter = {};
4138
+ let instanceId;
4139
+ let start;
4140
+ let limit;
4141
+ let beginTime;
4142
+ let endTime;
4143
+ if (listScheduledTasksRequest !== null && listScheduledTasksRequest !== undefined) {
4144
+ if (listScheduledTasksRequest instanceof ListScheduledTasksRequest_1.ListScheduledTasksRequest) {
4145
+ instanceId = listScheduledTasksRequest.instanceId;
4146
+ start = listScheduledTasksRequest.start;
4147
+ limit = listScheduledTasksRequest.limit;
4148
+ beginTime = listScheduledTasksRequest.beginTime;
4149
+ endTime = listScheduledTasksRequest.endTime;
4150
+ }
4151
+ else {
4152
+ instanceId = listScheduledTasksRequest['instance_id'];
4153
+ start = listScheduledTasksRequest['start'];
4154
+ limit = listScheduledTasksRequest['limit'];
4155
+ beginTime = listScheduledTasksRequest['begin_time'];
4156
+ endTime = listScheduledTasksRequest['end_time'];
4157
+ }
4158
+ }
4159
+ if (instanceId === null || instanceId === undefined) {
4160
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listScheduledTasks.');
4161
+ }
4162
+ if (start !== null && start !== undefined) {
4163
+ localVarQueryParameter['start'] = start;
4164
+ }
4165
+ if (limit !== null && limit !== undefined) {
4166
+ localVarQueryParameter['limit'] = limit;
4167
+ }
4168
+ if (beginTime !== null && beginTime !== undefined) {
4169
+ localVarQueryParameter['begin_time'] = beginTime;
4170
+ }
4171
+ if (endTime !== null && endTime !== undefined) {
4172
+ localVarQueryParameter['end_time'] = endTime;
4173
+ }
4174
+ options.queryParams = localVarQueryParameter;
4175
+ options.pathParams = { 'instance_id': instanceId, };
4176
+ options.headers = localVarHeaderParameter;
4177
+ return options;
4178
+ },
3555
4179
  /**
3556
4180
  * 查询Topic的分区列表
3557
4181
  *
@@ -3654,6 +4278,51 @@ const ParamCreater = function () {
3654
4278
  options.headers = localVarHeaderParameter;
3655
4279
  return options;
3656
4280
  },
4281
+ /**
4282
+ * 查询用户策略。
4283
+ *
4284
+ * Kafka实例开启SASL功能后,才支持查询用户策略功能。
4285
+ *
4286
+ * Please refer to HUAWEI cloud API Explorer for details.
4287
+ */
4288
+ listUserPolicies(listUserPoliciesRequest) {
4289
+ const options = {
4290
+ method: "GET",
4291
+ url: "/v2/{project_id}/{engine}/instances/{instance_id}/users/{user_name}/access-policy",
4292
+ contentType: "application/json",
4293
+ queryParams: {},
4294
+ pathParams: {},
4295
+ headers: {}
4296
+ };
4297
+ const localVarHeaderParameter = {};
4298
+ let engine;
4299
+ let instanceId;
4300
+ let userName;
4301
+ if (listUserPoliciesRequest !== null && listUserPoliciesRequest !== undefined) {
4302
+ if (listUserPoliciesRequest instanceof ListUserPoliciesRequest_1.ListUserPoliciesRequest) {
4303
+ engine = listUserPoliciesRequest.engine;
4304
+ instanceId = listUserPoliciesRequest.instanceId;
4305
+ userName = listUserPoliciesRequest.userName;
4306
+ }
4307
+ else {
4308
+ engine = listUserPoliciesRequest['engine'];
4309
+ instanceId = listUserPoliciesRequest['instance_id'];
4310
+ userName = listUserPoliciesRequest['user_name'];
4311
+ }
4312
+ }
4313
+ if (engine === null || engine === undefined) {
4314
+ throw new RequiredError('engine', 'Required parameter engine was null or undefined when calling listUserPolicies.');
4315
+ }
4316
+ if (instanceId === null || instanceId === undefined) {
4317
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listUserPolicies.');
4318
+ }
4319
+ if (userName === null || userName === undefined) {
4320
+ throw new RequiredError('userName', 'Required parameter userName was null or undefined when calling listUserPolicies.');
4321
+ }
4322
+ options.pathParams = { 'engine': engine, 'instance_id': instanceId, 'user_name': userName, };
4323
+ options.headers = localVarHeaderParameter;
4324
+ return options;
4325
+ },
3657
4326
  /**
3658
4327
  * 修改实例配置。
3659
4328
  *
@@ -3694,6 +4363,46 @@ const ParamCreater = function () {
3694
4363
  options.headers = localVarHeaderParameter;
3695
4364
  return options;
3696
4365
  },
4366
+ /**
4367
+ * 开启或者关闭Kafka实例公网访问功能。
4368
+ *
4369
+ * Please refer to HUAWEI cloud API Explorer for details.
4370
+ */
4371
+ modifyKafkaPublicIpAccessSwitch(modifyKafkaPublicIpAccessSwitchRequest) {
4372
+ const options = {
4373
+ method: "POST",
4374
+ url: "/v1/{project_id}/instances/{instance_id}/public-boundwidth",
4375
+ contentType: "application/json",
4376
+ queryParams: {},
4377
+ pathParams: {},
4378
+ headers: {},
4379
+ data: {}
4380
+ };
4381
+ const localVarHeaderParameter = {};
4382
+ let body;
4383
+ let instanceId;
4384
+ if (modifyKafkaPublicIpAccessSwitchRequest !== null && modifyKafkaPublicIpAccessSwitchRequest !== undefined) {
4385
+ if (modifyKafkaPublicIpAccessSwitchRequest instanceof ModifyKafkaPublicIpAccessSwitchRequest_1.ModifyKafkaPublicIpAccessSwitchRequest) {
4386
+ instanceId = modifyKafkaPublicIpAccessSwitchRequest.instanceId;
4387
+ body = modifyKafkaPublicIpAccessSwitchRequest.body;
4388
+ }
4389
+ else {
4390
+ instanceId = modifyKafkaPublicIpAccessSwitchRequest['instance_id'];
4391
+ body = modifyKafkaPublicIpAccessSwitchRequest['body'];
4392
+ }
4393
+ }
4394
+ if (instanceId === null || instanceId === undefined) {
4395
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling modifyKafkaPublicIpAccessSwitch.');
4396
+ }
4397
+ if (body === null || body === undefined) {
4398
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
4399
+ }
4400
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4401
+ options.data = body !== undefined ? body : {};
4402
+ options.pathParams = { 'instance_id': instanceId, };
4403
+ options.headers = localVarHeaderParameter;
4404
+ return options;
4405
+ },
3697
4406
  /**
3698
4407
  * 该接口用于向Kafka实例提交修改Topic级别的流控任务,若成功则返回流控任务的job_id。
3699
4408
  *
@@ -3734,6 +4443,36 @@ const ParamCreater = function () {
3734
4443
  options.headers = localVarHeaderParameter;
3735
4444
  return options;
3736
4445
  },
4446
+ /**
4447
+ * 更新回收站策略。
4448
+ *
4449
+ * Please refer to HUAWEI cloud API Explorer for details.
4450
+ */
4451
+ modifyRecyclePolicy(modifyRecyclePolicyRequest) {
4452
+ const options = {
4453
+ method: "PUT",
4454
+ url: "/v2/{project_id}/recycle",
4455
+ contentType: "application/json",
4456
+ queryParams: {},
4457
+ pathParams: {},
4458
+ headers: {},
4459
+ data: {}
4460
+ };
4461
+ const localVarHeaderParameter = {};
4462
+ let body;
4463
+ if (modifyRecyclePolicyRequest !== null && modifyRecyclePolicyRequest !== undefined) {
4464
+ if (modifyRecyclePolicyRequest instanceof ModifyRecyclePolicyRequest_1.ModifyRecyclePolicyRequest) {
4465
+ body = modifyRecyclePolicyRequest.body;
4466
+ }
4467
+ else {
4468
+ body = modifyRecyclePolicyRequest['body'];
4469
+ }
4470
+ }
4471
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4472
+ options.data = body !== undefined ? body : {};
4473
+ options.headers = localVarHeaderParameter;
4474
+ return options;
4475
+ },
3737
4476
  /**
3738
4477
  * 重置Manager密码。
3739
4478
  *
@@ -4043,7 +4782,7 @@ const ParamCreater = function () {
4043
4782
  return options;
4044
4783
  },
4045
4784
  /**
4046
- * 实例规格变更。[当前通过调用API,只支持按需实例进行实例扩容。](tag:hws,hws_hk,ctc,cmcc,hws_eu)
4785
+ * 实例规格变更。[当前通过调用API,只支持按需实例进行实例扩容。](tag:hws,hws_hk,ctc,cmcc,hws_eu,ax)
4047
4786
  *
4048
4787
  * Please refer to HUAWEI cloud API Explorer for details.
4049
4788
  */
@@ -4114,7 +4853,37 @@ const ParamCreater = function () {
4114
4853
  return options;
4115
4854
  },
4116
4855
  /**
4117
- * 在控制台发送指定消息到Kafka实例
4856
+ * 恢复回收站实例。
4857
+ *
4858
+ * Please refer to HUAWEI cloud API Explorer for details.
4859
+ */
4860
+ restoreRecycleInstance(restoreRecycleInstanceRequest) {
4861
+ const options = {
4862
+ method: "POST",
4863
+ url: "/v2/{project_id}/recycle",
4864
+ contentType: "application/json",
4865
+ queryParams: {},
4866
+ pathParams: {},
4867
+ headers: {},
4868
+ data: {}
4869
+ };
4870
+ const localVarHeaderParameter = {};
4871
+ let body;
4872
+ if (restoreRecycleInstanceRequest !== null && restoreRecycleInstanceRequest !== undefined) {
4873
+ if (restoreRecycleInstanceRequest instanceof RestoreRecycleInstanceRequest_1.RestoreRecycleInstanceRequest) {
4874
+ body = restoreRecycleInstanceRequest.body;
4875
+ }
4876
+ else {
4877
+ body = restoreRecycleInstanceRequest['body'];
4878
+ }
4879
+ }
4880
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4881
+ options.data = body !== undefined ? body : {};
4882
+ options.headers = localVarHeaderParameter;
4883
+ return options;
4884
+ },
4885
+ /**
4886
+ * 在控制台发送指定消息到Kafka实例。
4118
4887
  *
4119
4888
  * Please refer to HUAWEI cloud API Explorer for details.
4120
4889
  */
@@ -4164,6 +4933,60 @@ const ParamCreater = function () {
4164
4933
  options.headers = localVarHeaderParameter;
4165
4934
  return options;
4166
4935
  },
4936
+ /**
4937
+ * 创建/删除用户策略。
4938
+ *
4939
+ * Kafka实例开启SASL功能后,才支持创建/删除用户策略。
4940
+ *
4941
+ * Please refer to HUAWEI cloud API Explorer for details.
4942
+ */
4943
+ setUserPolicies(setUserPoliciesRequest) {
4944
+ const options = {
4945
+ method: "POST",
4946
+ url: "/v2/{project_id}/{engine}/instances/{instance_id}/users/{user_name}/access-policy",
4947
+ contentType: "application/json",
4948
+ queryParams: {},
4949
+ pathParams: {},
4950
+ headers: {},
4951
+ data: {}
4952
+ };
4953
+ const localVarHeaderParameter = {};
4954
+ let body;
4955
+ let engine;
4956
+ let instanceId;
4957
+ let userName;
4958
+ if (setUserPoliciesRequest !== null && setUserPoliciesRequest !== undefined) {
4959
+ if (setUserPoliciesRequest instanceof SetUserPoliciesRequest_1.SetUserPoliciesRequest) {
4960
+ engine = setUserPoliciesRequest.engine;
4961
+ instanceId = setUserPoliciesRequest.instanceId;
4962
+ userName = setUserPoliciesRequest.userName;
4963
+ body = setUserPoliciesRequest.body;
4964
+ }
4965
+ else {
4966
+ engine = setUserPoliciesRequest['engine'];
4967
+ instanceId = setUserPoliciesRequest['instance_id'];
4968
+ userName = setUserPoliciesRequest['user_name'];
4969
+ body = setUserPoliciesRequest['body'];
4970
+ }
4971
+ }
4972
+ if (engine === null || engine === undefined) {
4973
+ throw new RequiredError('engine', 'Required parameter engine was null or undefined when calling setUserPolicies.');
4974
+ }
4975
+ if (instanceId === null || instanceId === undefined) {
4976
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling setUserPolicies.');
4977
+ }
4978
+ if (userName === null || userName === undefined) {
4979
+ throw new RequiredError('userName', 'Required parameter userName was null or undefined when calling setUserPolicies.');
4980
+ }
4981
+ if (body === null || body === undefined) {
4982
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
4983
+ }
4984
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4985
+ options.data = body !== undefined ? body : {};
4986
+ options.pathParams = { 'engine': engine, 'instance_id': instanceId, 'user_name': userName, };
4987
+ options.headers = localVarHeaderParameter;
4988
+ return options;
4989
+ },
4167
4990
  /**
4168
4991
  * 查询后台任务管理中的指定记录。
4169
4992
  *
@@ -4201,6 +5024,43 @@ const ParamCreater = function () {
4201
5024
  options.headers = localVarHeaderParameter;
4202
5025
  return options;
4203
5026
  },
5027
+ /**
5028
+ * 查询后台任务中的指定实例的变更进度。
5029
+ *
5030
+ * Please refer to HUAWEI cloud API Explorer for details.
5031
+ */
5032
+ showBackgroundTaskProgress(showBackgroundTaskProgressRequest) {
5033
+ const options = {
5034
+ method: "GET",
5035
+ url: "/v2/{project_id}/instances/{instance_id}/tasks/{task_id}/progress",
5036
+ contentType: "application/json",
5037
+ queryParams: {},
5038
+ pathParams: {},
5039
+ headers: {}
5040
+ };
5041
+ const localVarHeaderParameter = {};
5042
+ let instanceId;
5043
+ let taskId;
5044
+ if (showBackgroundTaskProgressRequest !== null && showBackgroundTaskProgressRequest !== undefined) {
5045
+ if (showBackgroundTaskProgressRequest instanceof ShowBackgroundTaskProgressRequest_1.ShowBackgroundTaskProgressRequest) {
5046
+ instanceId = showBackgroundTaskProgressRequest.instanceId;
5047
+ taskId = showBackgroundTaskProgressRequest.taskId;
5048
+ }
5049
+ else {
5050
+ instanceId = showBackgroundTaskProgressRequest['instance_id'];
5051
+ taskId = showBackgroundTaskProgressRequest['task_id'];
5052
+ }
5053
+ }
5054
+ if (instanceId === null || instanceId === undefined) {
5055
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling showBackgroundTaskProgress.');
5056
+ }
5057
+ if (taskId === null || taskId === undefined) {
5058
+ throw new RequiredError('taskId', 'Required parameter taskId was null or undefined when calling showBackgroundTaskProgress.');
5059
+ }
5060
+ options.pathParams = { 'instance_id': instanceId, 'task_id': taskId, };
5061
+ options.headers = localVarHeaderParameter;
5062
+ return options;
5063
+ },
4204
5064
  /**
4205
5065
  * 查询实例在CES的监控层级关系。
4206
5066
  *
@@ -4571,6 +5431,9 @@ const ParamCreater = function () {
4571
5431
  let messageOffset;
4572
5432
  let partition;
4573
5433
  let keyword;
5434
+ let key;
5435
+ let include;
5436
+ let exclude;
4574
5437
  if (showInstanceMessagesRequest !== null && showInstanceMessagesRequest !== undefined) {
4575
5438
  if (showInstanceMessagesRequest instanceof ShowInstanceMessagesRequest_1.ShowInstanceMessagesRequest) {
4576
5439
  instanceId = showInstanceMessagesRequest.instanceId;
@@ -4584,6 +5447,9 @@ const ParamCreater = function () {
4584
5447
  messageOffset = showInstanceMessagesRequest.messageOffset;
4585
5448
  partition = showInstanceMessagesRequest.partition;
4586
5449
  keyword = showInstanceMessagesRequest.keyword;
5450
+ key = showInstanceMessagesRequest.key;
5451
+ include = showInstanceMessagesRequest.include;
5452
+ exclude = showInstanceMessagesRequest.exclude;
4587
5453
  }
4588
5454
  else {
4589
5455
  instanceId = showInstanceMessagesRequest['instance_id'];
@@ -4597,6 +5463,9 @@ const ParamCreater = function () {
4597
5463
  messageOffset = showInstanceMessagesRequest['message_offset'];
4598
5464
  partition = showInstanceMessagesRequest['partition'];
4599
5465
  keyword = showInstanceMessagesRequest['keyword'];
5466
+ key = showInstanceMessagesRequest['key'];
5467
+ include = showInstanceMessagesRequest['include'];
5468
+ exclude = showInstanceMessagesRequest['exclude'];
4600
5469
  }
4601
5470
  }
4602
5471
  if (instanceId === null || instanceId === undefined) {
@@ -4635,6 +5504,15 @@ const ParamCreater = function () {
4635
5504
  if (keyword !== null && keyword !== undefined) {
4636
5505
  localVarQueryParameter['keyword'] = keyword;
4637
5506
  }
5507
+ if (key !== null && key !== undefined) {
5508
+ localVarQueryParameter['key'] = key;
5509
+ }
5510
+ if (include !== null && include !== undefined) {
5511
+ localVarQueryParameter['include'] = include;
5512
+ }
5513
+ if (exclude !== null && exclude !== undefined) {
5514
+ localVarQueryParameter['exclude'] = exclude;
5515
+ }
4638
5516
  options.queryParams = localVarQueryParameter;
4639
5517
  options.pathParams = { 'instance_id': instanceId, };
4640
5518
  options.headers = localVarHeaderParameter;
@@ -4710,6 +5588,37 @@ const ParamCreater = function () {
4710
5588
  options.headers = localVarHeaderParameter;
4711
5589
  return options;
4712
5590
  },
5591
+ /**
5592
+ * 查询Kafka集群信息。
5593
+ *
5594
+ * Please refer to HUAWEI cloud API Explorer for details.
5595
+ */
5596
+ showKafkaCluster(showKafkaClusterRequest) {
5597
+ const options = {
5598
+ method: "GET",
5599
+ url: "/v2/{project_id}/instances/{instance_id}/manage/cluster",
5600
+ contentType: "application/json",
5601
+ queryParams: {},
5602
+ pathParams: {},
5603
+ headers: {}
5604
+ };
5605
+ const localVarHeaderParameter = {};
5606
+ let instanceId;
5607
+ if (showKafkaClusterRequest !== null && showKafkaClusterRequest !== undefined) {
5608
+ if (showKafkaClusterRequest instanceof ShowKafkaClusterRequest_1.ShowKafkaClusterRequest) {
5609
+ instanceId = showKafkaClusterRequest.instanceId;
5610
+ }
5611
+ else {
5612
+ instanceId = showKafkaClusterRequest['instance_id'];
5613
+ }
5614
+ }
5615
+ if (instanceId === null || instanceId === undefined) {
5616
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling showKafkaCluster.');
5617
+ }
5618
+ options.pathParams = { 'instance_id': instanceId, };
5619
+ options.headers = localVarHeaderParameter;
5620
+ return options;
5621
+ },
4713
5622
  /**
4714
5623
  * 查询实例的扩容规格列表。
4715
5624
  *
@@ -4753,32 +5662,147 @@ const ParamCreater = function () {
4753
5662
  return options;
4754
5663
  },
4755
5664
  /**
4756
- * 查询项目标签。
5665
+ * 查询Kafka产品规格核数。
5666
+ *
5667
+ * Please refer to HUAWEI cloud API Explorer for details.
5668
+ */
5669
+ showKafkaProductCores(showKafkaProductCoresRequest) {
5670
+ const options = {
5671
+ method: "GET",
5672
+ url: "/v2/kafka/products/cores",
5673
+ contentType: "application/json",
5674
+ queryParams: {},
5675
+ pathParams: {},
5676
+ headers: {}
5677
+ };
5678
+ const localVarHeaderParameter = {};
5679
+ const localVarQueryParameter = {};
5680
+ let instanceId;
5681
+ let productId;
5682
+ let brokerNum;
5683
+ if (showKafkaProductCoresRequest !== null && showKafkaProductCoresRequest !== undefined) {
5684
+ if (showKafkaProductCoresRequest instanceof ShowKafkaProductCoresRequest_1.ShowKafkaProductCoresRequest) {
5685
+ instanceId = showKafkaProductCoresRequest.instanceId;
5686
+ productId = showKafkaProductCoresRequest.productId;
5687
+ brokerNum = showKafkaProductCoresRequest.brokerNum;
5688
+ }
5689
+ else {
5690
+ instanceId = showKafkaProductCoresRequest['instance_id'];
5691
+ productId = showKafkaProductCoresRequest['product_id'];
5692
+ brokerNum = showKafkaProductCoresRequest['broker_num'];
5693
+ }
5694
+ }
5695
+ if (instanceId === null || instanceId === undefined) {
5696
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling showKafkaProductCores.');
5697
+ }
5698
+ if (instanceId !== null && instanceId !== undefined) {
5699
+ localVarQueryParameter['instance_id'] = instanceId;
5700
+ }
5701
+ if (productId === null || productId === undefined) {
5702
+ throw new RequiredError('productId', 'Required parameter productId was null or undefined when calling showKafkaProductCores.');
5703
+ }
5704
+ if (productId !== null && productId !== undefined) {
5705
+ localVarQueryParameter['product_id'] = productId;
5706
+ }
5707
+ if (brokerNum === null || brokerNum === undefined) {
5708
+ throw new RequiredError('brokerNum', 'Required parameter brokerNum was null or undefined when calling showKafkaProductCores.');
5709
+ }
5710
+ if (brokerNum !== null && brokerNum !== undefined) {
5711
+ localVarQueryParameter['broker_num'] = brokerNum;
5712
+ }
5713
+ options.queryParams = localVarQueryParameter;
5714
+ options.headers = localVarHeaderParameter;
5715
+ return options;
5716
+ },
5717
+ /**
5718
+ * 查询项目标签。
5719
+ *
5720
+ * Please refer to HUAWEI cloud API Explorer for details.
5721
+ */
5722
+ showKafkaProjectTags() {
5723
+ const options = {
5724
+ method: "GET",
5725
+ url: "/v2/{project_id}/kafka/tags",
5726
+ contentType: "application/json",
5727
+ queryParams: {},
5728
+ pathParams: {},
5729
+ headers: {}
5730
+ };
5731
+ const localVarHeaderParameter = {};
5732
+ options.headers = localVarHeaderParameter;
5733
+ return options;
5734
+ },
5735
+ /**
5736
+ * 查询Kafka实例重平衡日志详情。
5737
+ *
5738
+ * Please refer to HUAWEI cloud API Explorer for details.
5739
+ */
5740
+ showKafkaRebalanceLog(showKafkaRebalanceLogRequest) {
5741
+ const options = {
5742
+ method: "GET",
5743
+ url: "/v2/kafka/{project_id}/instances/{instance_id}/log/rebalance-log",
5744
+ contentType: "application/json",
5745
+ queryParams: {},
5746
+ pathParams: {},
5747
+ headers: {}
5748
+ };
5749
+ const localVarHeaderParameter = {};
5750
+ let instanceId;
5751
+ if (showKafkaRebalanceLogRequest !== null && showKafkaRebalanceLogRequest !== undefined) {
5752
+ if (showKafkaRebalanceLogRequest instanceof ShowKafkaRebalanceLogRequest_1.ShowKafkaRebalanceLogRequest) {
5753
+ instanceId = showKafkaRebalanceLogRequest.instanceId;
5754
+ }
5755
+ else {
5756
+ instanceId = showKafkaRebalanceLogRequest['instance_id'];
5757
+ }
5758
+ }
5759
+ if (instanceId === null || instanceId === undefined) {
5760
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling showKafkaRebalanceLog.');
5761
+ }
5762
+ options.pathParams = { 'instance_id': instanceId, };
5763
+ options.headers = localVarHeaderParameter;
5764
+ return options;
5765
+ },
5766
+ /**
5767
+ * 获取Kafka实例扩容前置检查信息。
4757
5768
  *
4758
5769
  * Please refer to HUAWEI cloud API Explorer for details.
4759
5770
  */
4760
- showKafkaProjectTags() {
5771
+ showKafkaScalePreCheckInfo(showKafkaScalePreCheckInfoRequest) {
4761
5772
  const options = {
4762
5773
  method: "GET",
4763
- url: "/v2/{project_id}/kafka/tags",
5774
+ url: "/v2/{project_id}/kafka/instances/{instance_id}/extend-check",
4764
5775
  contentType: "application/json",
4765
5776
  queryParams: {},
4766
5777
  pathParams: {},
4767
5778
  headers: {}
4768
5779
  };
4769
5780
  const localVarHeaderParameter = {};
5781
+ let instanceId;
5782
+ if (showKafkaScalePreCheckInfoRequest !== null && showKafkaScalePreCheckInfoRequest !== undefined) {
5783
+ if (showKafkaScalePreCheckInfoRequest instanceof ShowKafkaScalePreCheckInfoRequest_1.ShowKafkaScalePreCheckInfoRequest) {
5784
+ instanceId = showKafkaScalePreCheckInfoRequest.instanceId;
5785
+ }
5786
+ else {
5787
+ instanceId = showKafkaScalePreCheckInfoRequest['instance_id'];
5788
+ }
5789
+ }
5790
+ if (instanceId === null || instanceId === undefined) {
5791
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling showKafkaScalePreCheckInfo.');
5792
+ }
5793
+ options.pathParams = { 'instance_id': instanceId, };
4770
5794
  options.headers = localVarHeaderParameter;
4771
5795
  return options;
4772
5796
  },
4773
5797
  /**
4774
- * 查询Kafka实例重平衡日志详情。
5798
+ * 查询实例标签。
4775
5799
  *
4776
5800
  * Please refer to HUAWEI cloud API Explorer for details.
4777
5801
  */
4778
- showKafkaRebalanceLog(showKafkaRebalanceLogRequest) {
5802
+ showKafkaTags(showKafkaTagsRequest) {
4779
5803
  const options = {
4780
5804
  method: "GET",
4781
- url: "/v2/kafka/{project_id}/instances/{instance_id}/log/rebalance-log",
5805
+ url: "/v2/{project_id}/kafka/{instance_id}/tags",
4782
5806
  contentType: "application/json",
4783
5807
  queryParams: {},
4784
5808
  pathParams: {},
@@ -4786,30 +5810,30 @@ const ParamCreater = function () {
4786
5810
  };
4787
5811
  const localVarHeaderParameter = {};
4788
5812
  let instanceId;
4789
- if (showKafkaRebalanceLogRequest !== null && showKafkaRebalanceLogRequest !== undefined) {
4790
- if (showKafkaRebalanceLogRequest instanceof ShowKafkaRebalanceLogRequest_1.ShowKafkaRebalanceLogRequest) {
4791
- instanceId = showKafkaRebalanceLogRequest.instanceId;
5813
+ if (showKafkaTagsRequest !== null && showKafkaTagsRequest !== undefined) {
5814
+ if (showKafkaTagsRequest instanceof ShowKafkaTagsRequest_1.ShowKafkaTagsRequest) {
5815
+ instanceId = showKafkaTagsRequest.instanceId;
4792
5816
  }
4793
5817
  else {
4794
- instanceId = showKafkaRebalanceLogRequest['instance_id'];
5818
+ instanceId = showKafkaTagsRequest['instance_id'];
4795
5819
  }
4796
5820
  }
4797
5821
  if (instanceId === null || instanceId === undefined) {
4798
- throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling showKafkaRebalanceLog.');
5822
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling showKafkaTags.');
4799
5823
  }
4800
5824
  options.pathParams = { 'instance_id': instanceId, };
4801
5825
  options.headers = localVarHeaderParameter;
4802
5826
  return options;
4803
5827
  },
4804
5828
  /**
4805
- * 查询实例标签。
5829
+ * 获取Kafka Topic详细信息。
4806
5830
  *
4807
5831
  * Please refer to HUAWEI cloud API Explorer for details.
4808
5832
  */
4809
- showKafkaTags(showKafkaTagsRequest) {
5833
+ showKafkaTopicDetail(showKafkaTopicDetailRequest) {
4810
5834
  const options = {
4811
5835
  method: "GET",
4812
- url: "/v2/{project_id}/kafka/{instance_id}/tags",
5836
+ url: "/v2/kafka/{project_id}/instances/{instance_id}/topics-detail/{topic}",
4813
5837
  contentType: "application/json",
4814
5838
  queryParams: {},
4815
5839
  pathParams: {},
@@ -4817,23 +5841,29 @@ const ParamCreater = function () {
4817
5841
  };
4818
5842
  const localVarHeaderParameter = {};
4819
5843
  let instanceId;
4820
- if (showKafkaTagsRequest !== null && showKafkaTagsRequest !== undefined) {
4821
- if (showKafkaTagsRequest instanceof ShowKafkaTagsRequest_1.ShowKafkaTagsRequest) {
4822
- instanceId = showKafkaTagsRequest.instanceId;
5844
+ let topic;
5845
+ if (showKafkaTopicDetailRequest !== null && showKafkaTopicDetailRequest !== undefined) {
5846
+ if (showKafkaTopicDetailRequest instanceof ShowKafkaTopicDetailRequest_1.ShowKafkaTopicDetailRequest) {
5847
+ instanceId = showKafkaTopicDetailRequest.instanceId;
5848
+ topic = showKafkaTopicDetailRequest.topic;
4823
5849
  }
4824
5850
  else {
4825
- instanceId = showKafkaTagsRequest['instance_id'];
5851
+ instanceId = showKafkaTopicDetailRequest['instance_id'];
5852
+ topic = showKafkaTopicDetailRequest['topic'];
4826
5853
  }
4827
5854
  }
4828
5855
  if (instanceId === null || instanceId === undefined) {
4829
- throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling showKafkaTags.');
5856
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling showKafkaTopicDetail.');
4830
5857
  }
4831
- options.pathParams = { 'instance_id': instanceId, };
5858
+ if (topic === null || topic === undefined) {
5859
+ throw new RequiredError('topic', 'Required parameter topic was null or undefined when calling showKafkaTopicDetail.');
5860
+ }
5861
+ options.pathParams = { 'instance_id': instanceId, 'topic': topic, };
4832
5862
  options.headers = localVarHeaderParameter;
4833
5863
  return options;
4834
5864
  },
4835
5865
  /**
4836
- * 查询topic在Broker上磁盘占用情况。
5866
+ * 查询Topic在Broker上磁盘占用情况。
4837
5867
  *
4838
5868
  * Please refer to HUAWEI cloud API Explorer for details.
4839
5869
  */
@@ -5281,6 +6311,55 @@ const ParamCreater = function () {
5281
6311
  options.headers = localVarHeaderParameter;
5282
6312
  return options;
5283
6313
  },
6314
+ /**
6315
+ * 查询回收站实例列表。
6316
+ *
6317
+ * Please refer to HUAWEI cloud API Explorer for details.
6318
+ */
6319
+ showRecycleInstances() {
6320
+ const options = {
6321
+ method: "GET",
6322
+ url: "/v2/{project_id}/recycle",
6323
+ contentType: "application/json",
6324
+ queryParams: {},
6325
+ pathParams: {},
6326
+ headers: {}
6327
+ };
6328
+ const localVarHeaderParameter = {};
6329
+ options.headers = localVarHeaderParameter;
6330
+ return options;
6331
+ },
6332
+ /**
6333
+ * 查询旧规格实例可升级的新规格信息。
6334
+ *
6335
+ * Please refer to HUAWEI cloud API Explorer for details.
6336
+ */
6337
+ showSpecConvertProduct(showSpecConvertProductRequest) {
6338
+ const options = {
6339
+ method: "GET",
6340
+ url: "/v2/{project_id}/instances/{instance_id}/spec-convert",
6341
+ contentType: "application/json",
6342
+ queryParams: {},
6343
+ pathParams: {},
6344
+ headers: {}
6345
+ };
6346
+ const localVarHeaderParameter = {};
6347
+ let instanceId;
6348
+ if (showSpecConvertProductRequest !== null && showSpecConvertProductRequest !== undefined) {
6349
+ if (showSpecConvertProductRequest instanceof ShowSpecConvertProductRequest_1.ShowSpecConvertProductRequest) {
6350
+ instanceId = showSpecConvertProductRequest.instanceId;
6351
+ }
6352
+ else {
6353
+ instanceId = showSpecConvertProductRequest['instance_id'];
6354
+ }
6355
+ }
6356
+ if (instanceId === null || instanceId === undefined) {
6357
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling showSpecConvertProduct.');
6358
+ }
6359
+ options.pathParams = { 'instance_id': instanceId, };
6360
+ options.headers = localVarHeaderParameter;
6361
+ return options;
6362
+ },
5284
6363
  /**
5285
6364
  * 查询用户权限。
5286
6365
  *
@@ -5320,6 +6399,68 @@ const ParamCreater = function () {
5320
6399
  options.headers = localVarHeaderParameter;
5321
6400
  return options;
5322
6401
  },
6402
+ /**
6403
+ * 查询Kafka实例版本信息。
6404
+ *
6405
+ * Please refer to HUAWEI cloud API Explorer for details.
6406
+ */
6407
+ showUpgradeInstanceVersion(showUpgradeInstanceVersionRequest) {
6408
+ const options = {
6409
+ method: "GET",
6410
+ url: "/v2/{project_id}/kafka/instances/{instance_id}/upgrade",
6411
+ contentType: "application/json",
6412
+ queryParams: {},
6413
+ pathParams: {},
6414
+ headers: {}
6415
+ };
6416
+ const localVarHeaderParameter = {};
6417
+ let instanceId;
6418
+ if (showUpgradeInstanceVersionRequest !== null && showUpgradeInstanceVersionRequest !== undefined) {
6419
+ if (showUpgradeInstanceVersionRequest instanceof ShowUpgradeInstanceVersionRequest_1.ShowUpgradeInstanceVersionRequest) {
6420
+ instanceId = showUpgradeInstanceVersionRequest.instanceId;
6421
+ }
6422
+ else {
6423
+ instanceId = showUpgradeInstanceVersionRequest['instance_id'];
6424
+ }
6425
+ }
6426
+ if (instanceId === null || instanceId === undefined) {
6427
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling showUpgradeInstanceVersion.');
6428
+ }
6429
+ options.pathParams = { 'instance_id': instanceId, };
6430
+ options.headers = localVarHeaderParameter;
6431
+ return options;
6432
+ },
6433
+ /**
6434
+ * 查询磁盘自动扩容配置,包括磁盘自动扩容是否开启,以及开启后的扩容阈值、扩容步长、扩容上限信息。
6435
+ *
6436
+ * Please refer to HUAWEI cloud API Explorer for details.
6437
+ */
6438
+ showVolumeExpandConfig(showVolumeExpandConfigRequest) {
6439
+ const options = {
6440
+ method: "GET",
6441
+ url: "/v2/{project_id}/instances/{instance_id}/auto-volume-expand",
6442
+ contentType: "application/json",
6443
+ queryParams: {},
6444
+ pathParams: {},
6445
+ headers: {}
6446
+ };
6447
+ const localVarHeaderParameter = {};
6448
+ let instanceId;
6449
+ if (showVolumeExpandConfigRequest !== null && showVolumeExpandConfigRequest !== undefined) {
6450
+ if (showVolumeExpandConfigRequest instanceof ShowVolumeExpandConfigRequest_1.ShowVolumeExpandConfigRequest) {
6451
+ instanceId = showVolumeExpandConfigRequest.instanceId;
6452
+ }
6453
+ else {
6454
+ instanceId = showVolumeExpandConfigRequest['instance_id'];
6455
+ }
6456
+ }
6457
+ if (instanceId === null || instanceId === undefined) {
6458
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling showVolumeExpandConfig.');
6459
+ }
6460
+ options.pathParams = { 'instance_id': instanceId, };
6461
+ options.headers = localVarHeaderParameter;
6462
+ return options;
6463
+ },
5323
6464
  /**
5324
6465
  * 关闭Kafka实例重平衡日志功能。
5325
6466
  *
@@ -5747,6 +6888,57 @@ const ParamCreater = function () {
5747
6888
  options.headers = localVarHeaderParameter;
5748
6889
  return options;
5749
6890
  },
6891
+ /**
6892
+ * 修改指定的定时任务。
6893
+ *
6894
+ * Please refer to HUAWEI cloud API Explorer for details.
6895
+ */
6896
+ updateScheduledTask(updateScheduledTaskRequest) {
6897
+ const options = {
6898
+ method: "PUT",
6899
+ url: "/v2/{project_id}/instances/{instance_id}/scheduled-tasks/{task_id}",
6900
+ contentType: "application/json",
6901
+ queryParams: {},
6902
+ pathParams: {},
6903
+ headers: {}
6904
+ };
6905
+ const localVarHeaderParameter = {};
6906
+ const localVarQueryParameter = {};
6907
+ let instanceId;
6908
+ let taskId;
6909
+ let executeAt;
6910
+ let status;
6911
+ if (updateScheduledTaskRequest !== null && updateScheduledTaskRequest !== undefined) {
6912
+ if (updateScheduledTaskRequest instanceof UpdateScheduledTaskRequest_1.UpdateScheduledTaskRequest) {
6913
+ instanceId = updateScheduledTaskRequest.instanceId;
6914
+ taskId = updateScheduledTaskRequest.taskId;
6915
+ executeAt = updateScheduledTaskRequest.executeAt;
6916
+ status = updateScheduledTaskRequest.status;
6917
+ }
6918
+ else {
6919
+ instanceId = updateScheduledTaskRequest['instance_id'];
6920
+ taskId = updateScheduledTaskRequest['task_id'];
6921
+ executeAt = updateScheduledTaskRequest['execute_at'];
6922
+ status = updateScheduledTaskRequest['status'];
6923
+ }
6924
+ }
6925
+ if (instanceId === null || instanceId === undefined) {
6926
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling updateScheduledTask.');
6927
+ }
6928
+ if (taskId === null || taskId === undefined) {
6929
+ throw new RequiredError('taskId', 'Required parameter taskId was null or undefined when calling updateScheduledTask.');
6930
+ }
6931
+ if (executeAt !== null && executeAt !== undefined) {
6932
+ localVarQueryParameter['execute_at'] = executeAt;
6933
+ }
6934
+ if (status !== null && status !== undefined) {
6935
+ localVarQueryParameter['status'] = status;
6936
+ }
6937
+ options.queryParams = localVarQueryParameter;
6938
+ options.pathParams = { 'instance_id': instanceId, 'task_id': taskId, };
6939
+ options.headers = localVarHeaderParameter;
6940
+ return options;
6941
+ },
5750
6942
  /**
5751
6943
  * 设置用户权限。
5752
6944
  *
@@ -5835,10 +7027,90 @@ const ParamCreater = function () {
5835
7027
  options.headers = localVarHeaderParameter;
5836
7028
  return options;
5837
7029
  },
7030
+ /**
7031
+ * 该接口用于修改磁盘自动扩容配置,包含磁盘自动扩容是否开启、扩容阈值、扩容步长,以及扩容上限的配置。
7032
+ *
7033
+ * Please refer to HUAWEI cloud API Explorer for details.
7034
+ */
7035
+ updateVolumeExpansionConfig(updateVolumeExpansionConfigRequest) {
7036
+ const options = {
7037
+ method: "PUT",
7038
+ url: "/v2/{project_id}/instances/{instance_id}/auto-volume-expand",
7039
+ contentType: "application/json",
7040
+ queryParams: {},
7041
+ pathParams: {},
7042
+ headers: {},
7043
+ data: {}
7044
+ };
7045
+ const localVarHeaderParameter = {};
7046
+ let body;
7047
+ let instanceId;
7048
+ if (updateVolumeExpansionConfigRequest !== null && updateVolumeExpansionConfigRequest !== undefined) {
7049
+ if (updateVolumeExpansionConfigRequest instanceof UpdateVolumeExpansionConfigRequest_1.UpdateVolumeExpansionConfigRequest) {
7050
+ instanceId = updateVolumeExpansionConfigRequest.instanceId;
7051
+ body = updateVolumeExpansionConfigRequest.body;
7052
+ }
7053
+ else {
7054
+ instanceId = updateVolumeExpansionConfigRequest['instance_id'];
7055
+ body = updateVolumeExpansionConfigRequest['body'];
7056
+ }
7057
+ }
7058
+ if (instanceId === null || instanceId === undefined) {
7059
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling updateVolumeExpansionConfig.');
7060
+ }
7061
+ if (body === null || body === undefined) {
7062
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
7063
+ }
7064
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7065
+ options.data = body !== undefined ? body : {};
7066
+ options.pathParams = { 'instance_id': instanceId, };
7067
+ options.headers = localVarHeaderParameter;
7068
+ return options;
7069
+ },
7070
+ /**
7071
+ * 实例内核升级。
7072
+ *
7073
+ * Please refer to HUAWEI cloud API Explorer for details.
7074
+ */
7075
+ upgradeInstance(upgradeInstanceRequest) {
7076
+ const options = {
7077
+ method: "POST",
7078
+ url: "/v2/{project_id}/kafka/instances/{instance_id}/upgrade",
7079
+ contentType: "application/json",
7080
+ queryParams: {},
7081
+ pathParams: {},
7082
+ headers: {},
7083
+ data: {}
7084
+ };
7085
+ const localVarHeaderParameter = {};
7086
+ let body;
7087
+ let instanceId;
7088
+ if (upgradeInstanceRequest !== null && upgradeInstanceRequest !== undefined) {
7089
+ if (upgradeInstanceRequest instanceof UpgradeInstanceRequest_1.UpgradeInstanceRequest) {
7090
+ instanceId = upgradeInstanceRequest.instanceId;
7091
+ body = upgradeInstanceRequest.body;
7092
+ }
7093
+ else {
7094
+ instanceId = upgradeInstanceRequest['instance_id'];
7095
+ body = upgradeInstanceRequest['body'];
7096
+ }
7097
+ }
7098
+ if (instanceId === null || instanceId === undefined) {
7099
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling upgradeInstance.');
7100
+ }
7101
+ if (body === null || body === undefined) {
7102
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
7103
+ }
7104
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7105
+ options.data = body !== undefined ? body : {};
7106
+ options.pathParams = { 'instance_id': instanceId, };
7107
+ options.headers = localVarHeaderParameter;
7108
+ return options;
7109
+ },
5838
7110
  /**
5839
7111
  * 开启Smart Connect,提交创建Smart Connect节点任务。
5840
7112
  *
5841
- * [**当前通过调用API,只支持按需实例创建Smart Connect节点。**](tag:hws,hws_hk,g42,hk_g42,ctc)
7113
+ * [**当前通过调用API,只支持按需实例创建Smart Connect节点。**](tag:hws,hws_hk,g42,hk_g42,ctc,cmcc)
5842
7114
  *
5843
7115
  * Please refer to HUAWEI cloud API Explorer for details.
5844
7116
  */
@@ -6030,6 +7302,24 @@ const ParamCreater = function () {
6030
7302
  options.headers = localVarHeaderParameter;
6031
7303
  return options;
6032
7304
  },
7305
+ /**
7306
+ * 查询OBS桶列表。
7307
+ *
7308
+ * Please refer to HUAWEI cloud API Explorer for details.
7309
+ */
7310
+ listObsBuckets() {
7311
+ const options = {
7312
+ method: "GET",
7313
+ url: "/v1.0/dms/obs/buckets",
7314
+ contentType: "application/json",
7315
+ queryParams: {},
7316
+ pathParams: {},
7317
+ headers: {}
7318
+ };
7319
+ const localVarHeaderParameter = {};
7320
+ options.headers = localVarHeaderParameter;
7321
+ return options;
7322
+ },
6033
7323
  /**
6034
7324
  * 修改Smart Connect任务配置。
6035
7325
  *
@@ -6224,6 +7514,37 @@ const ParamCreater = function () {
6224
7514
  options.headers = localVarHeaderParameter;
6225
7515
  return options;
6226
7516
  },
7517
+ /**
7518
+ * 查询开启Smart Connector功能所需要使用的资源的情况
7519
+ *
7520
+ * Please refer to HUAWEI cloud API Explorer for details.
7521
+ */
7522
+ showConnectorResourceInfo(showConnectorResourceInfoRequest) {
7523
+ const options = {
7524
+ method: "GET",
7525
+ url: "/v2/{project_id}/instances/{instance_id}/connector",
7526
+ contentType: "application/json",
7527
+ queryParams: {},
7528
+ pathParams: {},
7529
+ headers: {}
7530
+ };
7531
+ const localVarHeaderParameter = {};
7532
+ let instanceId;
7533
+ if (showConnectorResourceInfoRequest !== null && showConnectorResourceInfoRequest !== undefined) {
7534
+ if (showConnectorResourceInfoRequest instanceof ShowConnectorResourceInfoRequest_1.ShowConnectorResourceInfoRequest) {
7535
+ instanceId = showConnectorResourceInfoRequest.instanceId;
7536
+ }
7537
+ else {
7538
+ instanceId = showConnectorResourceInfoRequest['instance_id'];
7539
+ }
7540
+ }
7541
+ if (instanceId === null || instanceId === undefined) {
7542
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling showConnectorResourceInfo.');
7543
+ }
7544
+ options.pathParams = { 'instance_id': instanceId, };
7545
+ options.headers = localVarHeaderParameter;
7546
+ return options;
7547
+ },
6227
7548
  /**
6228
7549
  * 查询Smart Connect任务详情。
6229
7550
  *