@huaweicloud/huaweicloud-sdk-cbr 3.1.46 → 3.1.47

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1251) hide show
  1. package/huaweicloud-sdk-cbr.d.ts +3 -0
  2. package/huaweicloud-sdk-cbr.d.ts.map +1 -0
  3. package/huaweicloud-sdk-cbr.js +32 -0
  4. package/huaweicloud-sdk-cbr.js.map +1 -0
  5. package/package.json +8 -4
  6. package/v1/CbrClient.d.ts +1805 -0
  7. package/v1/CbrClient.d.ts.map +1 -0
  8. package/v1/CbrClient.js +3784 -0
  9. package/v1/CbrClient.js.map +1 -0
  10. package/v1/CbrRegion.d.ts +27 -0
  11. package/v1/CbrRegion.d.ts.map +1 -0
  12. package/v1/CbrRegion.js +62 -0
  13. package/v1/CbrRegion.js.map +1 -0
  14. package/v1/model/AddAgentPathRequest.d.ts +11 -0
  15. package/v1/model/AddAgentPathRequest.d.ts.map +1 -0
  16. package/v1/model/AddAgentPathRequest.js +24 -0
  17. package/v1/model/AddAgentPathRequest.js.map +1 -0
  18. package/v1/model/AddAgentPathResponse.d.ts +9 -0
  19. package/v1/model/AddAgentPathResponse.d.ts.map +1 -0
  20. package/v1/model/AddAgentPathResponse.js +19 -0
  21. package/v1/model/AddAgentPathResponse.js.map +1 -0
  22. package/v1/model/AddMemberRequest.d.ts +11 -0
  23. package/v1/model/AddMemberRequest.d.ts.map +1 -0
  24. package/v1/model/AddMemberRequest.js +24 -0
  25. package/v1/model/AddMemberRequest.js.map +1 -0
  26. package/v1/model/AddMemberResponse.d.ts +10 -0
  27. package/v1/model/AddMemberResponse.d.ts.map +1 -0
  28. package/v1/model/AddMemberResponse.js +19 -0
  29. package/v1/model/AddMemberResponse.js.map +1 -0
  30. package/v1/model/AddMembersReq.d.ts +6 -0
  31. package/v1/model/AddMembersReq.d.ts.map +1 -0
  32. package/v1/model/AddMembersReq.js +14 -0
  33. package/v1/model/AddMembersReq.js.map +1 -0
  34. package/v1/model/AddVaultResourceRequest.d.ts +11 -0
  35. package/v1/model/AddVaultResourceRequest.d.ts.map +1 -0
  36. package/v1/model/AddVaultResourceRequest.js +24 -0
  37. package/v1/model/AddVaultResourceRequest.js.map +1 -0
  38. package/v1/model/AddVaultResourceResponse.d.ts +9 -0
  39. package/v1/model/AddVaultResourceResponse.d.ts.map +1 -0
  40. package/v1/model/AddVaultResourceResponse.js +21 -0
  41. package/v1/model/AddVaultResourceResponse.js.map +1 -0
  42. package/v1/model/Agent.d.ts +49 -0
  43. package/v1/model/Agent.d.ts.map +1 -0
  44. package/v1/model/Agent.js +118 -0
  45. package/v1/model/Agent.js.map +1 -0
  46. package/v1/model/AgentAddPathReq.d.ts +8 -0
  47. package/v1/model/AgentAddPathReq.d.ts.map +1 -0
  48. package/v1/model/AgentAddPathReq.js +20 -0
  49. package/v1/model/AgentAddPathReq.js.map +1 -0
  50. package/v1/model/AgentRegister.d.ts +32 -0
  51. package/v1/model/AgentRegister.d.ts.map +1 -0
  52. package/v1/model/AgentRegister.js +83 -0
  53. package/v1/model/AgentRegister.js.map +1 -0
  54. package/v1/model/AgentRegisterReq.d.ts +7 -0
  55. package/v1/model/AgentRegisterReq.d.ts.map +1 -0
  56. package/v1/model/AgentRegisterReq.js +14 -0
  57. package/v1/model/AgentRegisterReq.js.map +1 -0
  58. package/v1/model/AgentRemovePathReq.d.ts +8 -0
  59. package/v1/model/AgentRemovePathReq.d.ts.map +1 -0
  60. package/v1/model/AgentRemovePathReq.js +20 -0
  61. package/v1/model/AgentRemovePathReq.js.map +1 -0
  62. package/v1/model/AgentUpdate.d.ts +13 -0
  63. package/v1/model/AgentUpdate.d.ts.map +1 -0
  64. package/v1/model/AgentUpdate.js +22 -0
  65. package/v1/model/AgentUpdate.js.map +1 -0
  66. package/v1/model/AgentUpdateReq.d.ts +7 -0
  67. package/v1/model/AgentUpdateReq.d.ts.map +1 -0
  68. package/v1/model/AgentUpdateReq.js +14 -0
  69. package/v1/model/AgentUpdateReq.js.map +1 -0
  70. package/v1/model/AssociateVaultPolicyRequest.d.ts +11 -0
  71. package/v1/model/AssociateVaultPolicyRequest.d.ts.map +1 -0
  72. package/v1/model/AssociateVaultPolicyRequest.js +24 -0
  73. package/v1/model/AssociateVaultPolicyRequest.js.map +1 -0
  74. package/v1/model/AssociateVaultPolicyResponse.d.ts +10 -0
  75. package/v1/model/AssociateVaultPolicyResponse.d.ts.map +1 -0
  76. package/v1/model/AssociateVaultPolicyResponse.js +21 -0
  77. package/v1/model/AssociateVaultPolicyResponse.js.map +1 -0
  78. package/v1/model/BackupExtendInfo.d.ts +52 -0
  79. package/v1/model/BackupExtendInfo.d.ts.map +1 -0
  80. package/v1/model/BackupExtendInfo.js +111 -0
  81. package/v1/model/BackupExtendInfo.js.map +1 -0
  82. package/v1/model/BackupReplicateReq.d.ts +7 -0
  83. package/v1/model/BackupReplicateReq.d.ts.map +1 -0
  84. package/v1/model/BackupReplicateReq.js +14 -0
  85. package/v1/model/BackupReplicateReq.js.map +1 -0
  86. package/v1/model/BackupReplicateReqBody.d.ts +24 -0
  87. package/v1/model/BackupReplicateReqBody.d.ts.map +1 -0
  88. package/v1/model/BackupReplicateReqBody.js +60 -0
  89. package/v1/model/BackupReplicateReqBody.js.map +1 -0
  90. package/v1/model/BackupReplicateRespBody.d.ts +36 -0
  91. package/v1/model/BackupReplicateRespBody.d.ts.map +1 -0
  92. package/v1/model/BackupReplicateRespBody.js +89 -0
  93. package/v1/model/BackupReplicateRespBody.js.map +1 -0
  94. package/v1/model/BackupResp.d.ts +119 -0
  95. package/v1/model/BackupResp.d.ts.map +1 -0
  96. package/v1/model/BackupResp.js +263 -0
  97. package/v1/model/BackupResp.js.map +1 -0
  98. package/v1/model/BackupRestore.d.ts +23 -0
  99. package/v1/model/BackupRestore.d.ts.map +1 -0
  100. package/v1/model/BackupRestore.js +53 -0
  101. package/v1/model/BackupRestore.js.map +1 -0
  102. package/v1/model/BackupRestoreReq.d.ts +7 -0
  103. package/v1/model/BackupRestoreReq.d.ts.map +1 -0
  104. package/v1/model/BackupRestoreReq.js +14 -0
  105. package/v1/model/BackupRestoreReq.js.map +1 -0
  106. package/v1/model/BackupRestoreServerMapping.d.ts +12 -0
  107. package/v1/model/BackupRestoreServerMapping.d.ts.map +1 -0
  108. package/v1/model/BackupRestoreServerMapping.js +31 -0
  109. package/v1/model/BackupRestoreServerMapping.js.map +1 -0
  110. package/v1/model/BackupSync.d.ts +36 -0
  111. package/v1/model/BackupSync.d.ts.map +1 -0
  112. package/v1/model/BackupSync.js +97 -0
  113. package/v1/model/BackupSync.js.map +1 -0
  114. package/v1/model/BackupSyncReq.d.ts +7 -0
  115. package/v1/model/BackupSyncReq.d.ts.map +1 -0
  116. package/v1/model/BackupSyncReq.js +14 -0
  117. package/v1/model/BackupSyncReq.js.map +1 -0
  118. package/v1/model/BackupSyncRespBody.d.ts +12 -0
  119. package/v1/model/BackupSyncRespBody.d.ts.map +1 -0
  120. package/v1/model/BackupSyncRespBody.js +31 -0
  121. package/v1/model/BackupSyncRespBody.js.map +1 -0
  122. package/v1/model/BackupUpdate.d.ts +6 -0
  123. package/v1/model/BackupUpdate.d.ts.map +1 -0
  124. package/v1/model/BackupUpdate.js +13 -0
  125. package/v1/model/BackupUpdate.js.map +1 -0
  126. package/v1/model/BackupUpdateReq.d.ts +7 -0
  127. package/v1/model/BackupUpdateReq.d.ts.map +1 -0
  128. package/v1/model/BackupUpdateReq.js +13 -0
  129. package/v1/model/BackupUpdateReq.js.map +1 -0
  130. package/v1/model/BatchCreateAndDeleteVaultTagsRequest.d.ts +11 -0
  131. package/v1/model/BatchCreateAndDeleteVaultTagsRequest.d.ts.map +1 -0
  132. package/v1/model/BatchCreateAndDeleteVaultTagsRequest.js +24 -0
  133. package/v1/model/BatchCreateAndDeleteVaultTagsRequest.js.map +1 -0
  134. package/v1/model/BatchCreateAndDeleteVaultTagsResponse.d.ts +5 -0
  135. package/v1/model/BatchCreateAndDeleteVaultTagsResponse.d.ts.map +1 -0
  136. package/v1/model/BatchCreateAndDeleteVaultTagsResponse.js +11 -0
  137. package/v1/model/BatchCreateAndDeleteVaultTagsResponse.js.map +1 -0
  138. package/v1/model/BatchUpdateVaultRequest.d.ts +7 -0
  139. package/v1/model/BatchUpdateVaultRequest.d.ts.map +1 -0
  140. package/v1/model/BatchUpdateVaultRequest.js +13 -0
  141. package/v1/model/BatchUpdateVaultRequest.js.map +1 -0
  142. package/v1/model/BatchUpdateVaultRequestBody.d.ts +7 -0
  143. package/v1/model/BatchUpdateVaultRequestBody.d.ts.map +1 -0
  144. package/v1/model/BatchUpdateVaultRequestBody.js +14 -0
  145. package/v1/model/BatchUpdateVaultRequestBody.js.map +1 -0
  146. package/v1/model/BatchUpdateVaultResponse.d.ts +9 -0
  147. package/v1/model/BatchUpdateVaultResponse.d.ts.map +1 -0
  148. package/v1/model/BatchUpdateVaultResponse.js +21 -0
  149. package/v1/model/BatchUpdateVaultResponse.js.map +1 -0
  150. package/v1/model/Billing.d.ts +120 -0
  151. package/v1/model/Billing.d.ts.map +1 -0
  152. package/v1/model/Billing.js +214 -0
  153. package/v1/model/Billing.js.map +1 -0
  154. package/v1/model/BillingCreate.d.ts +115 -0
  155. package/v1/model/BillingCreate.d.ts.map +1 -0
  156. package/v1/model/BillingCreate.js +216 -0
  157. package/v1/model/BillingCreate.js.map +1 -0
  158. package/v1/model/BillingUpdate.d.ts +18 -0
  159. package/v1/model/BillingUpdate.d.ts.map +1 -0
  160. package/v1/model/BillingUpdate.js +32 -0
  161. package/v1/model/BillingUpdate.js.map +1 -0
  162. package/v1/model/BindRulesTags.d.ts +8 -0
  163. package/v1/model/BindRulesTags.d.ts.map +1 -0
  164. package/v1/model/BindRulesTags.js +19 -0
  165. package/v1/model/BindRulesTags.js.map +1 -0
  166. package/v1/model/BulkCreateAndDeleteVaultTagsReq.d.ts +22 -0
  167. package/v1/model/BulkCreateAndDeleteVaultTagsReq.d.ts.map +1 -0
  168. package/v1/model/BulkCreateAndDeleteVaultTagsReq.js +37 -0
  169. package/v1/model/BulkCreateAndDeleteVaultTagsReq.js.map +1 -0
  170. package/v1/model/CbcOrderResult.d.ts +12 -0
  171. package/v1/model/CbcOrderResult.d.ts.map +1 -0
  172. package/v1/model/CbcOrderResult.js +27 -0
  173. package/v1/model/CbcOrderResult.js.map +1 -0
  174. package/v1/model/CbcProductInfoUpdate.d.ts +12 -0
  175. package/v1/model/CbcProductInfoUpdate.d.ts.map +1 -0
  176. package/v1/model/CbcProductInfoUpdate.js +28 -0
  177. package/v1/model/CbcProductInfoUpdate.js.map +1 -0
  178. package/v1/model/CbcUpdate.d.ts +15 -0
  179. package/v1/model/CbcUpdate.d.ts.map +1 -0
  180. package/v1/model/CbcUpdate.js +33 -0
  181. package/v1/model/CbcUpdate.js.map +1 -0
  182. package/v1/model/CheckAgentRequest.d.ts +7 -0
  183. package/v1/model/CheckAgentRequest.d.ts.map +1 -0
  184. package/v1/model/CheckAgentRequest.js +13 -0
  185. package/v1/model/CheckAgentRequest.js.map +1 -0
  186. package/v1/model/CheckAgentResponse.d.ts +10 -0
  187. package/v1/model/CheckAgentResponse.d.ts.map +1 -0
  188. package/v1/model/CheckAgentResponse.js +21 -0
  189. package/v1/model/CheckAgentResponse.js.map +1 -0
  190. package/v1/model/CheckpointCreate.d.ts +36 -0
  191. package/v1/model/CheckpointCreate.d.ts.map +1 -0
  192. package/v1/model/CheckpointCreate.js +68 -0
  193. package/v1/model/CheckpointCreate.js.map +1 -0
  194. package/v1/model/CheckpointCreateSkippedResource.d.ts +14 -0
  195. package/v1/model/CheckpointCreateSkippedResource.d.ts.map +1 -0
  196. package/v1/model/CheckpointCreateSkippedResource.js +29 -0
  197. package/v1/model/CheckpointCreateSkippedResource.js.map +1 -0
  198. package/v1/model/CheckpointExtraInfoResp.d.ts +12 -0
  199. package/v1/model/CheckpointExtraInfoResp.d.ts.map +1 -0
  200. package/v1/model/CheckpointExtraInfoResp.js +27 -0
  201. package/v1/model/CheckpointExtraInfoResp.js.map +1 -0
  202. package/v1/model/CheckpointParam.d.ts +25 -0
  203. package/v1/model/CheckpointParam.d.ts.map +1 -0
  204. package/v1/model/CheckpointParam.js +55 -0
  205. package/v1/model/CheckpointParam.js.map +1 -0
  206. package/v1/model/CheckpointPlanCreate.d.ts +16 -0
  207. package/v1/model/CheckpointPlanCreate.d.ts.map +1 -0
  208. package/v1/model/CheckpointPlanCreate.js +33 -0
  209. package/v1/model/CheckpointPlanCreate.js.map +1 -0
  210. package/v1/model/CheckpointReplicateParam.d.ts +28 -0
  211. package/v1/model/CheckpointReplicateParam.d.ts.map +1 -0
  212. package/v1/model/CheckpointReplicateParam.js +73 -0
  213. package/v1/model/CheckpointReplicateParam.js.map +1 -0
  214. package/v1/model/CheckpointReplicateReq.d.ts +7 -0
  215. package/v1/model/CheckpointReplicateReq.d.ts.map +1 -0
  216. package/v1/model/CheckpointReplicateReq.js +14 -0
  217. package/v1/model/CheckpointReplicateReq.js.map +1 -0
  218. package/v1/model/CheckpointReplicateRespBody.d.ts +35 -0
  219. package/v1/model/CheckpointReplicateRespBody.d.ts.map +1 -0
  220. package/v1/model/CheckpointReplicateRespBody.js +91 -0
  221. package/v1/model/CheckpointReplicateRespBody.js.map +1 -0
  222. package/v1/model/CheckpointReplicateRespbackups.d.ts +12 -0
  223. package/v1/model/CheckpointReplicateRespbackups.d.ts.map +1 -0
  224. package/v1/model/CheckpointReplicateRespbackups.js +31 -0
  225. package/v1/model/CheckpointReplicateRespbackups.js.map +1 -0
  226. package/v1/model/CheckpointResourceResp.d.ts +41 -0
  227. package/v1/model/CheckpointResourceResp.d.ts.map +1 -0
  228. package/v1/model/CheckpointResourceResp.js +86 -0
  229. package/v1/model/CheckpointResourceResp.js.map +1 -0
  230. package/v1/model/CombinedOrder.d.ts +16 -0
  231. package/v1/model/CombinedOrder.d.ts.map +1 -0
  232. package/v1/model/CombinedOrder.js +39 -0
  233. package/v1/model/CombinedOrder.js.map +1 -0
  234. package/v1/model/CopyBackupRequest.d.ts +11 -0
  235. package/v1/model/CopyBackupRequest.d.ts.map +1 -0
  236. package/v1/model/CopyBackupRequest.js +24 -0
  237. package/v1/model/CopyBackupRequest.js.map +1 -0
  238. package/v1/model/CopyBackupResponse.d.ts +8 -0
  239. package/v1/model/CopyBackupResponse.d.ts.map +1 -0
  240. package/v1/model/CopyBackupResponse.js +15 -0
  241. package/v1/model/CopyBackupResponse.js.map +1 -0
  242. package/v1/model/CopyCheckpointRequest.d.ts +7 -0
  243. package/v1/model/CopyCheckpointRequest.d.ts.map +1 -0
  244. package/v1/model/CopyCheckpointRequest.js +13 -0
  245. package/v1/model/CopyCheckpointRequest.js.map +1 -0
  246. package/v1/model/CopyCheckpointResponse.d.ts +8 -0
  247. package/v1/model/CopyCheckpointResponse.d.ts.map +1 -0
  248. package/v1/model/CopyCheckpointResponse.js +15 -0
  249. package/v1/model/CopyCheckpointResponse.js.map +1 -0
  250. package/v1/model/CreateCheckpointRequest.d.ts +7 -0
  251. package/v1/model/CreateCheckpointRequest.d.ts.map +1 -0
  252. package/v1/model/CreateCheckpointRequest.js +13 -0
  253. package/v1/model/CreateCheckpointRequest.js.map +1 -0
  254. package/v1/model/CreateCheckpointResponse.d.ts +8 -0
  255. package/v1/model/CreateCheckpointResponse.d.ts.map +1 -0
  256. package/v1/model/CreateCheckpointResponse.js +15 -0
  257. package/v1/model/CreateCheckpointResponse.js.map +1 -0
  258. package/v1/model/CreatePolicyRequest.d.ts +7 -0
  259. package/v1/model/CreatePolicyRequest.d.ts.map +1 -0
  260. package/v1/model/CreatePolicyRequest.js +13 -0
  261. package/v1/model/CreatePolicyRequest.js.map +1 -0
  262. package/v1/model/CreatePolicyResponse.d.ts +8 -0
  263. package/v1/model/CreatePolicyResponse.d.ts.map +1 -0
  264. package/v1/model/CreatePolicyResponse.js +15 -0
  265. package/v1/model/CreatePolicyResponse.js.map +1 -0
  266. package/v1/model/CreatePostPaidVaultRequest.d.ts +7 -0
  267. package/v1/model/CreatePostPaidVaultRequest.d.ts.map +1 -0
  268. package/v1/model/CreatePostPaidVaultRequest.js +13 -0
  269. package/v1/model/CreatePostPaidVaultRequest.js.map +1 -0
  270. package/v1/model/CreatePostPaidVaultResponse.d.ts +16 -0
  271. package/v1/model/CreatePostPaidVaultResponse.d.ts.map +1 -0
  272. package/v1/model/CreatePostPaidVaultResponse.js +33 -0
  273. package/v1/model/CreatePostPaidVaultResponse.js.map +1 -0
  274. package/v1/model/CreateVaultRequest.d.ts +7 -0
  275. package/v1/model/CreateVaultRequest.d.ts.map +1 -0
  276. package/v1/model/CreateVaultRequest.js +13 -0
  277. package/v1/model/CreateVaultRequest.js.map +1 -0
  278. package/v1/model/CreateVaultResponse.d.ts +8 -0
  279. package/v1/model/CreateVaultResponse.d.ts.map +1 -0
  280. package/v1/model/CreateVaultResponse.js +15 -0
  281. package/v1/model/CreateVaultResponse.js.map +1 -0
  282. package/v1/model/CreateVaultTagsRequest.d.ts +11 -0
  283. package/v1/model/CreateVaultTagsRequest.d.ts.map +1 -0
  284. package/v1/model/CreateVaultTagsRequest.js +24 -0
  285. package/v1/model/CreateVaultTagsRequest.js.map +1 -0
  286. package/v1/model/CreateVaultTagsResponse.d.ts +5 -0
  287. package/v1/model/CreateVaultTagsResponse.d.ts.map +1 -0
  288. package/v1/model/CreateVaultTagsResponse.js +11 -0
  289. package/v1/model/CreateVaultTagsResponse.js.map +1 -0
  290. package/v1/model/DeleteBackupRequest.d.ts +8 -0
  291. package/v1/model/DeleteBackupRequest.d.ts.map +1 -0
  292. package/v1/model/DeleteBackupRequest.js +20 -0
  293. package/v1/model/DeleteBackupRequest.js.map +1 -0
  294. package/v1/model/DeleteBackupResponse.d.ts +5 -0
  295. package/v1/model/DeleteBackupResponse.d.ts.map +1 -0
  296. package/v1/model/DeleteBackupResponse.js +11 -0
  297. package/v1/model/DeleteBackupResponse.js.map +1 -0
  298. package/v1/model/DeleteMemberRequest.d.ts +12 -0
  299. package/v1/model/DeleteMemberRequest.d.ts.map +1 -0
  300. package/v1/model/DeleteMemberRequest.js +31 -0
  301. package/v1/model/DeleteMemberRequest.js.map +1 -0
  302. package/v1/model/DeleteMemberResponse.d.ts +5 -0
  303. package/v1/model/DeleteMemberResponse.d.ts.map +1 -0
  304. package/v1/model/DeleteMemberResponse.js +11 -0
  305. package/v1/model/DeleteMemberResponse.js.map +1 -0
  306. package/v1/model/DeletePolicyRequest.d.ts +8 -0
  307. package/v1/model/DeletePolicyRequest.d.ts.map +1 -0
  308. package/v1/model/DeletePolicyRequest.js +20 -0
  309. package/v1/model/DeletePolicyRequest.js.map +1 -0
  310. package/v1/model/DeletePolicyResponse.d.ts +5 -0
  311. package/v1/model/DeletePolicyResponse.d.ts.map +1 -0
  312. package/v1/model/DeletePolicyResponse.js +11 -0
  313. package/v1/model/DeletePolicyResponse.js.map +1 -0
  314. package/v1/model/DeleteVaultRequest.d.ts +8 -0
  315. package/v1/model/DeleteVaultRequest.d.ts.map +1 -0
  316. package/v1/model/DeleteVaultRequest.js +20 -0
  317. package/v1/model/DeleteVaultRequest.js.map +1 -0
  318. package/v1/model/DeleteVaultResponse.d.ts +5 -0
  319. package/v1/model/DeleteVaultResponse.d.ts.map +1 -0
  320. package/v1/model/DeleteVaultResponse.js +11 -0
  321. package/v1/model/DeleteVaultResponse.js.map +1 -0
  322. package/v1/model/DeleteVaultTagRequest.d.ts +10 -0
  323. package/v1/model/DeleteVaultTagRequest.d.ts.map +1 -0
  324. package/v1/model/DeleteVaultTagRequest.js +25 -0
  325. package/v1/model/DeleteVaultTagRequest.js.map +1 -0
  326. package/v1/model/DeleteVaultTagResponse.d.ts +5 -0
  327. package/v1/model/DeleteVaultTagResponse.d.ts.map +1 -0
  328. package/v1/model/DeleteVaultTagResponse.js +11 -0
  329. package/v1/model/DeleteVaultTagResponse.js.map +1 -0
  330. package/v1/model/DisassociateVaultPolicyRequest.d.ts +11 -0
  331. package/v1/model/DisassociateVaultPolicyRequest.d.ts.map +1 -0
  332. package/v1/model/DisassociateVaultPolicyRequest.js +24 -0
  333. package/v1/model/DisassociateVaultPolicyRequest.js.map +1 -0
  334. package/v1/model/DisassociateVaultPolicyResponse.d.ts +10 -0
  335. package/v1/model/DisassociateVaultPolicyResponse.d.ts.map +1 -0
  336. package/v1/model/DisassociateVaultPolicyResponse.js +21 -0
  337. package/v1/model/DisassociateVaultPolicyResponse.js.map +1 -0
  338. package/v1/model/DomainMigrate.d.ts +10 -0
  339. package/v1/model/DomainMigrate.d.ts.map +1 -0
  340. package/v1/model/DomainMigrate.js +25 -0
  341. package/v1/model/DomainMigrate.js.map +1 -0
  342. package/v1/model/DomainMigrateProjectStatus.d.ts +37 -0
  343. package/v1/model/DomainMigrateProjectStatus.d.ts.map +1 -0
  344. package/v1/model/DomainMigrateProjectStatus.js +80 -0
  345. package/v1/model/DomainMigrateProjectStatus.js.map +1 -0
  346. package/v1/model/DomainProjectsInfo.d.ts +12 -0
  347. package/v1/model/DomainProjectsInfo.d.ts.map +1 -0
  348. package/v1/model/DomainProjectsInfo.js +31 -0
  349. package/v1/model/DomainProjectsInfo.js.map +1 -0
  350. package/v1/model/ImageData.d.ts +8 -0
  351. package/v1/model/ImageData.d.ts.map +1 -0
  352. package/v1/model/ImageData.js +19 -0
  353. package/v1/model/ImageData.js.map +1 -0
  354. package/v1/model/ImportBackupRequest.d.ts +7 -0
  355. package/v1/model/ImportBackupRequest.d.ts.map +1 -0
  356. package/v1/model/ImportBackupRequest.js +13 -0
  357. package/v1/model/ImportBackupRequest.js.map +1 -0
  358. package/v1/model/ImportBackupResponse.d.ts +8 -0
  359. package/v1/model/ImportBackupResponse.d.ts.map +1 -0
  360. package/v1/model/ImportBackupResponse.js +15 -0
  361. package/v1/model/ImportBackupResponse.js.map +1 -0
  362. package/v1/model/ImportCheckpointRequest.d.ts +7 -0
  363. package/v1/model/ImportCheckpointRequest.d.ts.map +1 -0
  364. package/v1/model/ImportCheckpointRequest.js +13 -0
  365. package/v1/model/ImportCheckpointRequest.js.map +1 -0
  366. package/v1/model/ImportCheckpointResponse.d.ts +8 -0
  367. package/v1/model/ImportCheckpointResponse.d.ts.map +1 -0
  368. package/v1/model/ImportCheckpointResponse.js +15 -0
  369. package/v1/model/ImportCheckpointResponse.js.map +1 -0
  370. package/v1/model/InstancesResourceDetail.d.ts +7 -0
  371. package/v1/model/InstancesResourceDetail.d.ts.map +1 -0
  372. package/v1/model/InstancesResourceDetail.js +13 -0
  373. package/v1/model/InstancesResourceDetail.js.map +1 -0
  374. package/v1/model/ListAgentRequest.d.ts +14 -0
  375. package/v1/model/ListAgentRequest.d.ts.map +1 -0
  376. package/v1/model/ListAgentRequest.js +31 -0
  377. package/v1/model/ListAgentRequest.js.map +1 -0
  378. package/v1/model/ListAgentResponse.d.ts +14 -0
  379. package/v1/model/ListAgentResponse.d.ts.map +1 -0
  380. package/v1/model/ListAgentResponse.js +27 -0
  381. package/v1/model/ListAgentResponse.js.map +1 -0
  382. package/v1/model/ListBackupsRequest.d.ts +129 -0
  383. package/v1/model/ListBackupsRequest.d.ts.map +1 -0
  384. package/v1/model/ListBackupsRequest.js +245 -0
  385. package/v1/model/ListBackupsRequest.js.map +1 -0
  386. package/v1/model/ListBackupsResponse.d.ts +14 -0
  387. package/v1/model/ListBackupsResponse.d.ts.map +1 -0
  388. package/v1/model/ListBackupsResponse.js +27 -0
  389. package/v1/model/ListBackupsResponse.js.map +1 -0
  390. package/v1/model/ListDomainProjectsRequest.d.ts +8 -0
  391. package/v1/model/ListDomainProjectsRequest.d.ts.map +1 -0
  392. package/v1/model/ListDomainProjectsRequest.js +20 -0
  393. package/v1/model/ListDomainProjectsRequest.js.map +1 -0
  394. package/v1/model/ListDomainProjectsResponse.d.ts +8 -0
  395. package/v1/model/ListDomainProjectsResponse.d.ts.map +1 -0
  396. package/v1/model/ListDomainProjectsResponse.js +15 -0
  397. package/v1/model/ListDomainProjectsResponse.js.map +1 -0
  398. package/v1/model/ListExternalVaultRequest.d.ts +39 -0
  399. package/v1/model/ListExternalVaultRequest.d.ts.map +1 -0
  400. package/v1/model/ListExternalVaultRequest.js +87 -0
  401. package/v1/model/ListExternalVaultRequest.js.map +1 -0
  402. package/v1/model/ListExternalVaultResponse.d.ts +14 -0
  403. package/v1/model/ListExternalVaultResponse.d.ts.map +1 -0
  404. package/v1/model/ListExternalVaultResponse.js +27 -0
  405. package/v1/model/ListExternalVaultResponse.js.map +1 -0
  406. package/v1/model/ListOpLogsRequest.d.ts +72 -0
  407. package/v1/model/ListOpLogsRequest.d.ts.map +1 -0
  408. package/v1/model/ListOpLogsRequest.js +139 -0
  409. package/v1/model/ListOpLogsRequest.js.map +1 -0
  410. package/v1/model/ListOpLogsResponse.d.ts +16 -0
  411. package/v1/model/ListOpLogsResponse.d.ts.map +1 -0
  412. package/v1/model/ListOpLogsResponse.js +33 -0
  413. package/v1/model/ListOpLogsResponse.js.map +1 -0
  414. package/v1/model/ListPoliciesRequest.d.ts +20 -0
  415. package/v1/model/ListPoliciesRequest.d.ts.map +1 -0
  416. package/v1/model/ListPoliciesRequest.js +38 -0
  417. package/v1/model/ListPoliciesRequest.js.map +1 -0
  418. package/v1/model/ListPoliciesResponse.d.ts +10 -0
  419. package/v1/model/ListPoliciesResponse.d.ts.map +1 -0
  420. package/v1/model/ListPoliciesResponse.js +19 -0
  421. package/v1/model/ListPoliciesResponse.js.map +1 -0
  422. package/v1/model/ListProjectsRequest.d.ts +4 -0
  423. package/v1/model/ListProjectsRequest.d.ts.map +1 -0
  424. package/v1/model/ListProjectsRequest.js +9 -0
  425. package/v1/model/ListProjectsRequest.js.map +1 -0
  426. package/v1/model/ListProjectsResponse.d.ts +11 -0
  427. package/v1/model/ListProjectsResponse.d.ts.map +1 -0
  428. package/v1/model/ListProjectsResponse.js +19 -0
  429. package/v1/model/ListProjectsResponse.js.map +1 -0
  430. package/v1/model/ListProtectableRequest.d.ts +32 -0
  431. package/v1/model/ListProtectableRequest.d.ts.map +1 -0
  432. package/v1/model/ListProtectableRequest.js +63 -0
  433. package/v1/model/ListProtectableRequest.js.map +1 -0
  434. package/v1/model/ListProtectableResponse.d.ts +8 -0
  435. package/v1/model/ListProtectableResponse.d.ts.map +1 -0
  436. package/v1/model/ListProtectableResponse.js +15 -0
  437. package/v1/model/ListProtectableResponse.js.map +1 -0
  438. package/v1/model/ListVaultRequest.d.ts +54 -0
  439. package/v1/model/ListVaultRequest.d.ts.map +1 -0
  440. package/v1/model/ListVaultRequest.js +107 -0
  441. package/v1/model/ListVaultRequest.js.map +1 -0
  442. package/v1/model/ListVaultResponse.d.ts +14 -0
  443. package/v1/model/ListVaultResponse.d.ts.map +1 -0
  444. package/v1/model/ListVaultResponse.js +27 -0
  445. package/v1/model/ListVaultResponse.js.map +1 -0
  446. package/v1/model/Match.d.ts +8 -0
  447. package/v1/model/Match.d.ts.map +1 -0
  448. package/v1/model/Match.js +19 -0
  449. package/v1/model/Match.js.map +1 -0
  450. package/v1/model/Member.d.ts +41 -0
  451. package/v1/model/Member.d.ts.map +1 -0
  452. package/v1/model/Member.js +88 -0
  453. package/v1/model/Member.js.map +1 -0
  454. package/v1/model/MigrateDomainRequest.d.ts +7 -0
  455. package/v1/model/MigrateDomainRequest.d.ts.map +1 -0
  456. package/v1/model/MigrateDomainRequest.js +13 -0
  457. package/v1/model/MigrateDomainRequest.js.map +1 -0
  458. package/v1/model/MigrateDomainResponse.d.ts +11 -0
  459. package/v1/model/MigrateDomainResponse.d.ts.map +1 -0
  460. package/v1/model/MigrateDomainResponse.js +15 -0
  461. package/v1/model/MigrateDomainResponse.js.map +1 -0
  462. package/v1/model/MigrateVaultResourceRequest.d.ts +11 -0
  463. package/v1/model/MigrateVaultResourceRequest.d.ts.map +1 -0
  464. package/v1/model/MigrateVaultResourceRequest.js +24 -0
  465. package/v1/model/MigrateVaultResourceRequest.js.map +1 -0
  466. package/v1/model/MigrateVaultResourceResponse.d.ts +9 -0
  467. package/v1/model/MigrateVaultResourceResponse.d.ts.map +1 -0
  468. package/v1/model/MigrateVaultResourceResponse.js +21 -0
  469. package/v1/model/MigrateVaultResourceResponse.js.map +1 -0
  470. package/v1/model/OpErrorInfo.d.ts +8 -0
  471. package/v1/model/OpErrorInfo.d.ts.map +1 -0
  472. package/v1/model/OpErrorInfo.js +17 -0
  473. package/v1/model/OpErrorInfo.js.map +1 -0
  474. package/v1/model/OpExtendInfoBckup.d.ts +42 -0
  475. package/v1/model/OpExtendInfoBckup.d.ts.map +1 -0
  476. package/v1/model/OpExtendInfoBckup.js +82 -0
  477. package/v1/model/OpExtendInfoBckup.js.map +1 -0
  478. package/v1/model/OpExtendInfoCommon.d.ts +14 -0
  479. package/v1/model/OpExtendInfoCommon.d.ts.map +1 -0
  480. package/v1/model/OpExtendInfoCommon.js +35 -0
  481. package/v1/model/OpExtendInfoCommon.js.map +1 -0
  482. package/v1/model/OpExtendInfoDelete.d.ts +12 -0
  483. package/v1/model/OpExtendInfoDelete.d.ts.map +1 -0
  484. package/v1/model/OpExtendInfoDelete.js +31 -0
  485. package/v1/model/OpExtendInfoDelete.js.map +1 -0
  486. package/v1/model/OpExtendInfoRemoveResources.d.ts +15 -0
  487. package/v1/model/OpExtendInfoRemoveResources.d.ts.map +1 -0
  488. package/v1/model/OpExtendInfoRemoveResources.js +33 -0
  489. package/v1/model/OpExtendInfoRemoveResources.js.map +1 -0
  490. package/v1/model/OpExtendInfoReplication.d.ts +44 -0
  491. package/v1/model/OpExtendInfoReplication.d.ts.map +1 -0
  492. package/v1/model/OpExtendInfoReplication.js +114 -0
  493. package/v1/model/OpExtendInfoReplication.js.map +1 -0
  494. package/v1/model/OpExtendInfoRestore.d.ts +20 -0
  495. package/v1/model/OpExtendInfoRestore.d.ts.map +1 -0
  496. package/v1/model/OpExtendInfoRestore.js +49 -0
  497. package/v1/model/OpExtendInfoRestore.js.map +1 -0
  498. package/v1/model/OpExtendInfoSync.d.ts +16 -0
  499. package/v1/model/OpExtendInfoSync.d.ts.map +1 -0
  500. package/v1/model/OpExtendInfoSync.js +39 -0
  501. package/v1/model/OpExtendInfoSync.js.map +1 -0
  502. package/v1/model/OpExtendInfoVaultDelete.d.ts +12 -0
  503. package/v1/model/OpExtendInfoVaultDelete.d.ts.map +1 -0
  504. package/v1/model/OpExtendInfoVaultDelete.js +29 -0
  505. package/v1/model/OpExtendInfoVaultDelete.js.map +1 -0
  506. package/v1/model/OpExtraInfo.d.ts +37 -0
  507. package/v1/model/OpExtraInfo.d.ts.map +1 -0
  508. package/v1/model/OpExtraInfo.js +65 -0
  509. package/v1/model/OpExtraInfo.js.map +1 -0
  510. package/v1/model/OperationLog.d.ts +88 -0
  511. package/v1/model/OperationLog.d.ts.map +1 -0
  512. package/v1/model/OperationLog.js +182 -0
  513. package/v1/model/OperationLog.js.map +1 -0
  514. package/v1/model/Path.d.ts +16 -0
  515. package/v1/model/Path.d.ts.map +1 -0
  516. package/v1/model/Path.js +37 -0
  517. package/v1/model/Path.js.map +1 -0
  518. package/v1/model/Policy.d.ts +35 -0
  519. package/v1/model/Policy.d.ts.map +1 -0
  520. package/v1/model/Policy.js +70 -0
  521. package/v1/model/Policy.js.map +1 -0
  522. package/v1/model/PolicyAssociateVault.d.ts +12 -0
  523. package/v1/model/PolicyAssociateVault.d.ts.map +1 -0
  524. package/v1/model/PolicyAssociateVault.js +30 -0
  525. package/v1/model/PolicyAssociateVault.js.map +1 -0
  526. package/v1/model/PolicyCreate.d.ts +28 -0
  527. package/v1/model/PolicyCreate.d.ts.map +1 -0
  528. package/v1/model/PolicyCreate.js +54 -0
  529. package/v1/model/PolicyCreate.js.map +1 -0
  530. package/v1/model/PolicyCreateReq.d.ts +7 -0
  531. package/v1/model/PolicyCreateReq.d.ts.map +1 -0
  532. package/v1/model/PolicyCreateReq.js +14 -0
  533. package/v1/model/PolicyCreateReq.js.map +1 -0
  534. package/v1/model/PolicyTriggerPropertiesReq.d.ts +6 -0
  535. package/v1/model/PolicyTriggerPropertiesReq.d.ts.map +1 -0
  536. package/v1/model/PolicyTriggerPropertiesReq.js +14 -0
  537. package/v1/model/PolicyTriggerPropertiesReq.js.map +1 -0
  538. package/v1/model/PolicyTriggerPropertiesResp.d.ts +10 -0
  539. package/v1/model/PolicyTriggerPropertiesResp.d.ts.map +1 -0
  540. package/v1/model/PolicyTriggerPropertiesResp.js +24 -0
  541. package/v1/model/PolicyTriggerPropertiesResp.js.map +1 -0
  542. package/v1/model/PolicyTriggerReq.d.ts +7 -0
  543. package/v1/model/PolicyTriggerReq.d.ts.map +1 -0
  544. package/v1/model/PolicyTriggerReq.js +14 -0
  545. package/v1/model/PolicyTriggerReq.js.map +1 -0
  546. package/v1/model/PolicyTriggerResp.d.ts +20 -0
  547. package/v1/model/PolicyTriggerResp.d.ts.map +1 -0
  548. package/v1/model/PolicyTriggerResp.js +35 -0
  549. package/v1/model/PolicyTriggerResp.js.map +1 -0
  550. package/v1/model/PolicyUpdate.d.ts +16 -0
  551. package/v1/model/PolicyUpdate.d.ts.map +1 -0
  552. package/v1/model/PolicyUpdate.js +31 -0
  553. package/v1/model/PolicyUpdate.js.map +1 -0
  554. package/v1/model/PolicyUpdateReq.d.ts +7 -0
  555. package/v1/model/PolicyUpdateReq.d.ts.map +1 -0
  556. package/v1/model/PolicyUpdateReq.js +14 -0
  557. package/v1/model/PolicyUpdateReq.js.map +1 -0
  558. package/v1/model/PolicyoODCreate.d.ts +46 -0
  559. package/v1/model/PolicyoODCreate.d.ts.map +1 -0
  560. package/v1/model/PolicyoODCreate.js +113 -0
  561. package/v1/model/PolicyoODCreate.js.map +1 -0
  562. package/v1/model/ProjectsListInfo.d.ts +27 -0
  563. package/v1/model/ProjectsListInfo.d.ts.map +1 -0
  564. package/v1/model/ProjectsListInfo.js +59 -0
  565. package/v1/model/ProjectsListInfo.js.map +1 -0
  566. package/v1/model/ProtectableAgentReq.d.ts +9 -0
  567. package/v1/model/ProtectableAgentReq.d.ts.map +1 -0
  568. package/v1/model/ProtectableAgentReq.js +20 -0
  569. package/v1/model/ProtectableAgentReq.js.map +1 -0
  570. package/v1/model/ProtectableAgentStatus.d.ts +20 -0
  571. package/v1/model/ProtectableAgentStatus.d.ts.map +1 -0
  572. package/v1/model/ProtectableAgentStatus.js +45 -0
  573. package/v1/model/ProtectableAgentStatus.js.map +1 -0
  574. package/v1/model/ProtectableAgentStatusResource.d.ts +16 -0
  575. package/v1/model/ProtectableAgentStatusResource.d.ts.map +1 -0
  576. package/v1/model/ProtectableAgentStatusResource.js +41 -0
  577. package/v1/model/ProtectableAgentStatusResource.js.map +1 -0
  578. package/v1/model/ProtectableReplicationCapabilitiesRespRegion.d.ts +10 -0
  579. package/v1/model/ProtectableReplicationCapabilitiesRespRegion.d.ts.map +1 -0
  580. package/v1/model/ProtectableReplicationCapabilitiesRespRegion.js +25 -0
  581. package/v1/model/ProtectableReplicationCapabilitiesRespRegion.js.map +1 -0
  582. package/v1/model/ProtectableResult.d.ts +15 -0
  583. package/v1/model/ProtectableResult.d.ts.map +1 -0
  584. package/v1/model/ProtectableResult.js +30 -0
  585. package/v1/model/ProtectableResult.js.map +1 -0
  586. package/v1/model/ProtectablesResp.d.ts +30 -0
  587. package/v1/model/ProtectablesResp.d.ts.map +1 -0
  588. package/v1/model/ProtectablesResp.js +56 -0
  589. package/v1/model/ProtectablesResp.js.map +1 -0
  590. package/v1/model/RegisterAgentRequest.d.ts +7 -0
  591. package/v1/model/RegisterAgentRequest.d.ts.map +1 -0
  592. package/v1/model/RegisterAgentRequest.js +13 -0
  593. package/v1/model/RegisterAgentRequest.js.map +1 -0
  594. package/v1/model/RegisterAgentResponse.d.ts +8 -0
  595. package/v1/model/RegisterAgentResponse.d.ts.map +1 -0
  596. package/v1/model/RegisterAgentResponse.js +15 -0
  597. package/v1/model/RegisterAgentResponse.js.map +1 -0
  598. package/v1/model/RemoveAgentPathRequest.d.ts +11 -0
  599. package/v1/model/RemoveAgentPathRequest.d.ts.map +1 -0
  600. package/v1/model/RemoveAgentPathRequest.js +24 -0
  601. package/v1/model/RemoveAgentPathRequest.js.map +1 -0
  602. package/v1/model/RemoveAgentPathResponse.d.ts +11 -0
  603. package/v1/model/RemoveAgentPathResponse.d.ts.map +1 -0
  604. package/v1/model/RemoveAgentPathResponse.js +25 -0
  605. package/v1/model/RemoveAgentPathResponse.js.map +1 -0
  606. package/v1/model/RemoveVaultResourceRequest.d.ts +11 -0
  607. package/v1/model/RemoveVaultResourceRequest.d.ts.map +1 -0
  608. package/v1/model/RemoveVaultResourceRequest.js +24 -0
  609. package/v1/model/RemoveVaultResourceRequest.js.map +1 -0
  610. package/v1/model/RemoveVaultResourceResponse.d.ts +9 -0
  611. package/v1/model/RemoveVaultResourceResponse.d.ts.map +1 -0
  612. package/v1/model/RemoveVaultResourceResponse.js +21 -0
  613. package/v1/model/RemoveVaultResourceResponse.js.map +1 -0
  614. package/v1/model/ReplicationRecordGet.d.ts +68 -0
  615. package/v1/model/ReplicationRecordGet.d.ts.map +1 -0
  616. package/v1/model/ReplicationRecordGet.js +150 -0
  617. package/v1/model/ReplicationRecordGet.js.map +1 -0
  618. package/v1/model/ReplicationRecordsExtraInfo.d.ts +22 -0
  619. package/v1/model/ReplicationRecordsExtraInfo.d.ts.map +1 -0
  620. package/v1/model/ReplicationRecordsExtraInfo.js +53 -0
  621. package/v1/model/ReplicationRecordsExtraInfo.js.map +1 -0
  622. package/v1/model/Resource.d.ts +15 -0
  623. package/v1/model/Resource.d.ts.map +1 -0
  624. package/v1/model/Resource.js +33 -0
  625. package/v1/model/Resource.js.map +1 -0
  626. package/v1/model/ResourceCreate.d.ts +15 -0
  627. package/v1/model/ResourceCreate.d.ts.map +1 -0
  628. package/v1/model/ResourceCreate.js +33 -0
  629. package/v1/model/ResourceCreate.js.map +1 -0
  630. package/v1/model/ResourceExtraInfo.d.ts +13 -0
  631. package/v1/model/ResourceExtraInfo.d.ts.map +1 -0
  632. package/v1/model/ResourceExtraInfo.js +29 -0
  633. package/v1/model/ResourceExtraInfo.js.map +1 -0
  634. package/v1/model/ResourceExtraInfoIncludeVolumes.d.ts +10 -0
  635. package/v1/model/ResourceExtraInfoIncludeVolumes.d.ts.map +1 -0
  636. package/v1/model/ResourceExtraInfoIncludeVolumes.js +24 -0
  637. package/v1/model/ResourceExtraInfoIncludeVolumes.js.map +1 -0
  638. package/v1/model/ResourceResp.d.ts +44 -0
  639. package/v1/model/ResourceResp.d.ts.map +1 -0
  640. package/v1/model/ResourceResp.js +90 -0
  641. package/v1/model/ResourceResp.js.map +1 -0
  642. package/v1/model/RestoreBackupRequest.d.ts +11 -0
  643. package/v1/model/RestoreBackupRequest.d.ts.map +1 -0
  644. package/v1/model/RestoreBackupRequest.js +24 -0
  645. package/v1/model/RestoreBackupRequest.js.map +1 -0
  646. package/v1/model/RestoreBackupResponse.d.ts +5 -0
  647. package/v1/model/RestoreBackupResponse.d.ts.map +1 -0
  648. package/v1/model/RestoreBackupResponse.js +11 -0
  649. package/v1/model/RestoreBackupResponse.js.map +1 -0
  650. package/v1/model/SelfLinksInfo.d.ts +6 -0
  651. package/v1/model/SelfLinksInfo.d.ts.map +1 -0
  652. package/v1/model/SelfLinksInfo.js +13 -0
  653. package/v1/model/SelfLinksInfo.js.map +1 -0
  654. package/v1/model/SetVaultResourceRequest.d.ts +11 -0
  655. package/v1/model/SetVaultResourceRequest.d.ts.map +1 -0
  656. package/v1/model/SetVaultResourceRequest.js +24 -0
  657. package/v1/model/SetVaultResourceRequest.js.map +1 -0
  658. package/v1/model/SetVaultResourceResponse.d.ts +9 -0
  659. package/v1/model/SetVaultResourceResponse.d.ts.map +1 -0
  660. package/v1/model/SetVaultResourceResponse.js +21 -0
  661. package/v1/model/SetVaultResourceResponse.js.map +1 -0
  662. package/v1/model/ShowAgentRequest.d.ts +8 -0
  663. package/v1/model/ShowAgentRequest.d.ts.map +1 -0
  664. package/v1/model/ShowAgentRequest.js +20 -0
  665. package/v1/model/ShowAgentRequest.js.map +1 -0
  666. package/v1/model/ShowAgentResponse.d.ts +8 -0
  667. package/v1/model/ShowAgentResponse.d.ts.map +1 -0
  668. package/v1/model/ShowAgentResponse.js +15 -0
  669. package/v1/model/ShowAgentResponse.js.map +1 -0
  670. package/v1/model/ShowBackupRequest.d.ts +8 -0
  671. package/v1/model/ShowBackupRequest.d.ts.map +1 -0
  672. package/v1/model/ShowBackupRequest.js +20 -0
  673. package/v1/model/ShowBackupRequest.js.map +1 -0
  674. package/v1/model/ShowBackupResponse.d.ts +8 -0
  675. package/v1/model/ShowBackupResponse.d.ts.map +1 -0
  676. package/v1/model/ShowBackupResponse.js +15 -0
  677. package/v1/model/ShowBackupResponse.js.map +1 -0
  678. package/v1/model/ShowCheckpointRequest.d.ts +8 -0
  679. package/v1/model/ShowCheckpointRequest.d.ts.map +1 -0
  680. package/v1/model/ShowCheckpointRequest.js +20 -0
  681. package/v1/model/ShowCheckpointRequest.js.map +1 -0
  682. package/v1/model/ShowCheckpointResponse.d.ts +8 -0
  683. package/v1/model/ShowCheckpointResponse.d.ts.map +1 -0
  684. package/v1/model/ShowCheckpointResponse.js +15 -0
  685. package/v1/model/ShowCheckpointResponse.js.map +1 -0
  686. package/v1/model/ShowDomainRequest.d.ts +8 -0
  687. package/v1/model/ShowDomainRequest.d.ts.map +1 -0
  688. package/v1/model/ShowDomainRequest.js +20 -0
  689. package/v1/model/ShowDomainRequest.js.map +1 -0
  690. package/v1/model/ShowDomainResponse.d.ts +21 -0
  691. package/v1/model/ShowDomainResponse.d.ts.map +1 -0
  692. package/v1/model/ShowDomainResponse.js +51 -0
  693. package/v1/model/ShowDomainResponse.js.map +1 -0
  694. package/v1/model/ShowMemberDetailRequest.d.ts +12 -0
  695. package/v1/model/ShowMemberDetailRequest.d.ts.map +1 -0
  696. package/v1/model/ShowMemberDetailRequest.js +31 -0
  697. package/v1/model/ShowMemberDetailRequest.js.map +1 -0
  698. package/v1/model/ShowMemberDetailResponse.d.ts +8 -0
  699. package/v1/model/ShowMemberDetailResponse.d.ts.map +1 -0
  700. package/v1/model/ShowMemberDetailResponse.js +15 -0
  701. package/v1/model/ShowMemberDetailResponse.js.map +1 -0
  702. package/v1/model/ShowMembersDetailRequest.d.ts +30 -0
  703. package/v1/model/ShowMembersDetailRequest.d.ts.map +1 -0
  704. package/v1/model/ShowMembersDetailRequest.js +70 -0
  705. package/v1/model/ShowMembersDetailRequest.js.map +1 -0
  706. package/v1/model/ShowMembersDetailResponse.d.ts +10 -0
  707. package/v1/model/ShowMembersDetailResponse.d.ts.map +1 -0
  708. package/v1/model/ShowMembersDetailResponse.js +19 -0
  709. package/v1/model/ShowMembersDetailResponse.js.map +1 -0
  710. package/v1/model/ShowMetadataRequest.d.ts +8 -0
  711. package/v1/model/ShowMetadataRequest.d.ts.map +1 -0
  712. package/v1/model/ShowMetadataRequest.js +20 -0
  713. package/v1/model/ShowMetadataRequest.js.map +1 -0
  714. package/v1/model/ShowMetadataResponse.d.ts +25 -0
  715. package/v1/model/ShowMetadataResponse.d.ts.map +1 -0
  716. package/v1/model/ShowMetadataResponse.js +55 -0
  717. package/v1/model/ShowMetadataResponse.js.map +1 -0
  718. package/v1/model/ShowMigrateStatusRequest.d.ts +8 -0
  719. package/v1/model/ShowMigrateStatusRequest.d.ts.map +1 -0
  720. package/v1/model/ShowMigrateStatusRequest.js +19 -0
  721. package/v1/model/ShowMigrateStatusRequest.js.map +1 -0
  722. package/v1/model/ShowMigrateStatusResponse.d.ts +21 -0
  723. package/v1/model/ShowMigrateStatusResponse.d.ts.map +1 -0
  724. package/v1/model/ShowMigrateStatusResponse.js +35 -0
  725. package/v1/model/ShowMigrateStatusResponse.js.map +1 -0
  726. package/v1/model/ShowOpLogRequest.d.ts +8 -0
  727. package/v1/model/ShowOpLogRequest.d.ts.map +1 -0
  728. package/v1/model/ShowOpLogRequest.js +20 -0
  729. package/v1/model/ShowOpLogRequest.js.map +1 -0
  730. package/v1/model/ShowOpLogResponse.d.ts +10 -0
  731. package/v1/model/ShowOpLogResponse.d.ts.map +1 -0
  732. package/v1/model/ShowOpLogResponse.js +21 -0
  733. package/v1/model/ShowOpLogResponse.js.map +1 -0
  734. package/v1/model/ShowPolicyRequest.d.ts +8 -0
  735. package/v1/model/ShowPolicyRequest.d.ts.map +1 -0
  736. package/v1/model/ShowPolicyRequest.js +20 -0
  737. package/v1/model/ShowPolicyRequest.js.map +1 -0
  738. package/v1/model/ShowPolicyResponse.d.ts +8 -0
  739. package/v1/model/ShowPolicyResponse.d.ts.map +1 -0
  740. package/v1/model/ShowPolicyResponse.js +15 -0
  741. package/v1/model/ShowPolicyResponse.js.map +1 -0
  742. package/v1/model/ShowProtectableRequest.d.ts +20 -0
  743. package/v1/model/ShowProtectableRequest.d.ts.map +1 -0
  744. package/v1/model/ShowProtectableRequest.js +40 -0
  745. package/v1/model/ShowProtectableRequest.js.map +1 -0
  746. package/v1/model/ShowProtectableResponse.d.ts +8 -0
  747. package/v1/model/ShowProtectableResponse.d.ts.map +1 -0
  748. package/v1/model/ShowProtectableResponse.js +15 -0
  749. package/v1/model/ShowProtectableResponse.js.map +1 -0
  750. package/v1/model/ShowReplicationCapabilitiesRequest.d.ts +4 -0
  751. package/v1/model/ShowReplicationCapabilitiesRequest.d.ts.map +1 -0
  752. package/v1/model/ShowReplicationCapabilitiesRequest.js +9 -0
  753. package/v1/model/ShowReplicationCapabilitiesRequest.js.map +1 -0
  754. package/v1/model/ShowReplicationCapabilitiesResponse.d.ts +8 -0
  755. package/v1/model/ShowReplicationCapabilitiesResponse.d.ts.map +1 -0
  756. package/v1/model/ShowReplicationCapabilitiesResponse.js +15 -0
  757. package/v1/model/ShowReplicationCapabilitiesResponse.js.map +1 -0
  758. package/v1/model/ShowStorageUsageRequest.d.ts +24 -0
  759. package/v1/model/ShowStorageUsageRequest.d.ts.map +1 -0
  760. package/v1/model/ShowStorageUsageRequest.js +46 -0
  761. package/v1/model/ShowStorageUsageRequest.js.map +1 -0
  762. package/v1/model/ShowStorageUsageResponse.d.ts +14 -0
  763. package/v1/model/ShowStorageUsageResponse.d.ts.map +1 -0
  764. package/v1/model/ShowStorageUsageResponse.js +31 -0
  765. package/v1/model/ShowStorageUsageResponse.js.map +1 -0
  766. package/v1/model/ShowSummaryRequest.d.ts +4 -0
  767. package/v1/model/ShowSummaryRequest.d.ts.map +1 -0
  768. package/v1/model/ShowSummaryRequest.js +9 -0
  769. package/v1/model/ShowSummaryRequest.js.map +1 -0
  770. package/v1/model/ShowSummaryResponse.d.ts +11 -0
  771. package/v1/model/ShowSummaryResponse.d.ts.map +1 -0
  772. package/v1/model/ShowSummaryResponse.js +25 -0
  773. package/v1/model/ShowSummaryResponse.js.map +1 -0
  774. package/v1/model/ShowVaultProjectTagRequest.d.ts +4 -0
  775. package/v1/model/ShowVaultProjectTagRequest.d.ts.map +1 -0
  776. package/v1/model/ShowVaultProjectTagRequest.js +9 -0
  777. package/v1/model/ShowVaultProjectTagRequest.js.map +1 -0
  778. package/v1/model/ShowVaultProjectTagResponse.d.ts +8 -0
  779. package/v1/model/ShowVaultProjectTagResponse.d.ts.map +1 -0
  780. package/v1/model/ShowVaultProjectTagResponse.js +15 -0
  781. package/v1/model/ShowVaultProjectTagResponse.js.map +1 -0
  782. package/v1/model/ShowVaultRequest.d.ts +8 -0
  783. package/v1/model/ShowVaultRequest.d.ts.map +1 -0
  784. package/v1/model/ShowVaultRequest.js +20 -0
  785. package/v1/model/ShowVaultRequest.js.map +1 -0
  786. package/v1/model/ShowVaultResourceInstancesRequest.d.ts +7 -0
  787. package/v1/model/ShowVaultResourceInstancesRequest.d.ts.map +1 -0
  788. package/v1/model/ShowVaultResourceInstancesRequest.js +13 -0
  789. package/v1/model/ShowVaultResourceInstancesRequest.js.map +1 -0
  790. package/v1/model/ShowVaultResourceInstancesResponse.d.ts +12 -0
  791. package/v1/model/ShowVaultResourceInstancesResponse.d.ts.map +1 -0
  792. package/v1/model/ShowVaultResourceInstancesResponse.js +25 -0
  793. package/v1/model/ShowVaultResourceInstancesResponse.js.map +1 -0
  794. package/v1/model/ShowVaultResponse.d.ts +8 -0
  795. package/v1/model/ShowVaultResponse.d.ts.map +1 -0
  796. package/v1/model/ShowVaultResponse.js +15 -0
  797. package/v1/model/ShowVaultResponse.js.map +1 -0
  798. package/v1/model/ShowVaultTagRequest.d.ts +8 -0
  799. package/v1/model/ShowVaultTagRequest.d.ts.map +1 -0
  800. package/v1/model/ShowVaultTagRequest.js +20 -0
  801. package/v1/model/ShowVaultTagRequest.js.map +1 -0
  802. package/v1/model/ShowVaultTagResponse.d.ts +13 -0
  803. package/v1/model/ShowVaultTagResponse.d.ts.map +1 -0
  804. package/v1/model/ShowVaultTagResponse.js +25 -0
  805. package/v1/model/ShowVaultTagResponse.js.map +1 -0
  806. package/v1/model/StorageUsage.d.ts +28 -0
  807. package/v1/model/StorageUsage.d.ts.map +1 -0
  808. package/v1/model/StorageUsage.js +72 -0
  809. package/v1/model/StorageUsage.js.map +1 -0
  810. package/v1/model/SyncParam.d.ts +12 -0
  811. package/v1/model/SyncParam.d.ts.map +1 -0
  812. package/v1/model/SyncParam.js +31 -0
  813. package/v1/model/SyncParam.js.map +1 -0
  814. package/v1/model/SyncReq.d.ts +7 -0
  815. package/v1/model/SyncReq.d.ts.map +1 -0
  816. package/v1/model/SyncReq.js +14 -0
  817. package/v1/model/SyncReq.js.map +1 -0
  818. package/v1/model/SyncRespBody.d.ts +12 -0
  819. package/v1/model/SyncRespBody.d.ts.map +1 -0
  820. package/v1/model/SyncRespBody.js +31 -0
  821. package/v1/model/SyncRespBody.js.map +1 -0
  822. package/v1/model/SysTag.d.ts +8 -0
  823. package/v1/model/SysTag.d.ts.map +1 -0
  824. package/v1/model/SysTag.js +19 -0
  825. package/v1/model/SysTag.js.map +1 -0
  826. package/v1/model/SysTags.d.ts +8 -0
  827. package/v1/model/SysTags.d.ts.map +1 -0
  828. package/v1/model/SysTags.js +19 -0
  829. package/v1/model/SysTags.js.map +1 -0
  830. package/v1/model/Tag.d.ts +8 -0
  831. package/v1/model/Tag.d.ts.map +1 -0
  832. package/v1/model/Tag.js +18 -0
  833. package/v1/model/Tag.js.map +1 -0
  834. package/v1/model/TagResource.d.ts +25 -0
  835. package/v1/model/TagResource.d.ts.map +1 -0
  836. package/v1/model/TagResource.js +58 -0
  837. package/v1/model/TagResource.js.map +1 -0
  838. package/v1/model/TagsReq.d.ts +8 -0
  839. package/v1/model/TagsReq.d.ts.map +1 -0
  840. package/v1/model/TagsReq.js +19 -0
  841. package/v1/model/TagsReq.js.map +1 -0
  842. package/v1/model/TagsResp.d.ts +8 -0
  843. package/v1/model/TagsResp.d.ts.map +1 -0
  844. package/v1/model/TagsResp.js +17 -0
  845. package/v1/model/TagsResp.js.map +1 -0
  846. package/v1/model/UnregisterAgentRequest.d.ts +8 -0
  847. package/v1/model/UnregisterAgentRequest.d.ts.map +1 -0
  848. package/v1/model/UnregisterAgentRequest.js +20 -0
  849. package/v1/model/UnregisterAgentRequest.js.map +1 -0
  850. package/v1/model/UnregisterAgentResponse.d.ts +5 -0
  851. package/v1/model/UnregisterAgentResponse.d.ts.map +1 -0
  852. package/v1/model/UnregisterAgentResponse.js +11 -0
  853. package/v1/model/UnregisterAgentResponse.js.map +1 -0
  854. package/v1/model/UpdateAgentRequest.d.ts +11 -0
  855. package/v1/model/UpdateAgentRequest.d.ts.map +1 -0
  856. package/v1/model/UpdateAgentRequest.js +24 -0
  857. package/v1/model/UpdateAgentRequest.js.map +1 -0
  858. package/v1/model/UpdateAgentResponse.d.ts +8 -0
  859. package/v1/model/UpdateAgentResponse.d.ts.map +1 -0
  860. package/v1/model/UpdateAgentResponse.js +15 -0
  861. package/v1/model/UpdateAgentResponse.js.map +1 -0
  862. package/v1/model/UpdateBackupRequest.d.ts +11 -0
  863. package/v1/model/UpdateBackupRequest.d.ts.map +1 -0
  864. package/v1/model/UpdateBackupRequest.js +24 -0
  865. package/v1/model/UpdateBackupRequest.js.map +1 -0
  866. package/v1/model/UpdateBackupResponse.d.ts +8 -0
  867. package/v1/model/UpdateBackupResponse.d.ts.map +1 -0
  868. package/v1/model/UpdateBackupResponse.js +15 -0
  869. package/v1/model/UpdateBackupResponse.js.map +1 -0
  870. package/v1/model/UpdateMember.d.ts +19 -0
  871. package/v1/model/UpdateMember.d.ts.map +1 -0
  872. package/v1/model/UpdateMember.js +34 -0
  873. package/v1/model/UpdateMember.js.map +1 -0
  874. package/v1/model/UpdateMemberStatusRequest.d.ts +15 -0
  875. package/v1/model/UpdateMemberStatusRequest.d.ts.map +1 -0
  876. package/v1/model/UpdateMemberStatusRequest.js +35 -0
  877. package/v1/model/UpdateMemberStatusRequest.js.map +1 -0
  878. package/v1/model/UpdateMemberStatusResponse.d.ts +8 -0
  879. package/v1/model/UpdateMemberStatusResponse.d.ts.map +1 -0
  880. package/v1/model/UpdateMemberStatusResponse.js +15 -0
  881. package/v1/model/UpdateMemberStatusResponse.js.map +1 -0
  882. package/v1/model/UpdateOrderRequest.d.ts +11 -0
  883. package/v1/model/UpdateOrderRequest.d.ts.map +1 -0
  884. package/v1/model/UpdateOrderRequest.js +24 -0
  885. package/v1/model/UpdateOrderRequest.js.map +1 -0
  886. package/v1/model/UpdateOrderResponse.d.ts +11 -0
  887. package/v1/model/UpdateOrderResponse.d.ts.map +1 -0
  888. package/v1/model/UpdateOrderResponse.js +23 -0
  889. package/v1/model/UpdateOrderResponse.js.map +1 -0
  890. package/v1/model/UpdatePolicyRequest.d.ts +11 -0
  891. package/v1/model/UpdatePolicyRequest.d.ts.map +1 -0
  892. package/v1/model/UpdatePolicyRequest.js +24 -0
  893. package/v1/model/UpdatePolicyRequest.js.map +1 -0
  894. package/v1/model/UpdatePolicyResponse.d.ts +8 -0
  895. package/v1/model/UpdatePolicyResponse.d.ts.map +1 -0
  896. package/v1/model/UpdatePolicyResponse.js +15 -0
  897. package/v1/model/UpdatePolicyResponse.js.map +1 -0
  898. package/v1/model/UpdateVaultRequest.d.ts +11 -0
  899. package/v1/model/UpdateVaultRequest.d.ts.map +1 -0
  900. package/v1/model/UpdateVaultRequest.js +24 -0
  901. package/v1/model/UpdateVaultRequest.js.map +1 -0
  902. package/v1/model/UpdateVaultResponse.d.ts +8 -0
  903. package/v1/model/UpdateVaultResponse.d.ts.map +1 -0
  904. package/v1/model/UpdateVaultResponse.js +15 -0
  905. package/v1/model/UpdateVaultResponse.js.map +1 -0
  906. package/v1/model/Vault.d.ts +58 -0
  907. package/v1/model/Vault.d.ts.map +1 -0
  908. package/v1/model/Vault.js +133 -0
  909. package/v1/model/Vault.js.map +1 -0
  910. package/v1/model/VaultAddResourceReq.d.ts +7 -0
  911. package/v1/model/VaultAddResourceReq.d.ts.map +1 -0
  912. package/v1/model/VaultAddResourceReq.js +14 -0
  913. package/v1/model/VaultAddResourceReq.js.map +1 -0
  914. package/v1/model/VaultAssociate.d.ts +16 -0
  915. package/v1/model/VaultAssociate.d.ts.map +1 -0
  916. package/v1/model/VaultAssociate.js +39 -0
  917. package/v1/model/VaultAssociate.js.map +1 -0
  918. package/v1/model/VaultBackup.d.ts +11 -0
  919. package/v1/model/VaultBackup.d.ts.map +1 -0
  920. package/v1/model/VaultBackup.js +24 -0
  921. package/v1/model/VaultBackup.js.map +1 -0
  922. package/v1/model/VaultBackupReq.d.ts +7 -0
  923. package/v1/model/VaultBackupReq.d.ts.map +1 -0
  924. package/v1/model/VaultBackupReq.js +14 -0
  925. package/v1/model/VaultBackupReq.js.map +1 -0
  926. package/v1/model/VaultBatchUpdate.d.ts +10 -0
  927. package/v1/model/VaultBatchUpdate.d.ts.map +1 -0
  928. package/v1/model/VaultBatchUpdate.js +23 -0
  929. package/v1/model/VaultBatchUpdate.js.map +1 -0
  930. package/v1/model/VaultBindRules.d.ts +7 -0
  931. package/v1/model/VaultBindRules.d.ts.map +1 -0
  932. package/v1/model/VaultBindRules.js +13 -0
  933. package/v1/model/VaultBindRules.js.map +1 -0
  934. package/v1/model/VaultCreate.d.ts +52 -0
  935. package/v1/model/VaultCreate.d.ts.map +1 -0
  936. package/v1/model/VaultCreate.js +116 -0
  937. package/v1/model/VaultCreate.js.map +1 -0
  938. package/v1/model/VaultCreateParameters.d.ts +9 -0
  939. package/v1/model/VaultCreateParameters.d.ts.map +1 -0
  940. package/v1/model/VaultCreateParameters.js +19 -0
  941. package/v1/model/VaultCreateParameters.js.map +1 -0
  942. package/v1/model/VaultCreateReq.d.ts +7 -0
  943. package/v1/model/VaultCreateReq.d.ts.map +1 -0
  944. package/v1/model/VaultCreateReq.js +14 -0
  945. package/v1/model/VaultCreateReq.js.map +1 -0
  946. package/v1/model/VaultCreateResource.d.ts +79 -0
  947. package/v1/model/VaultCreateResource.d.ts.map +1 -0
  948. package/v1/model/VaultCreateResource.js +179 -0
  949. package/v1/model/VaultCreateResource.js.map +1 -0
  950. package/v1/model/VaultDissociate.d.ts +8 -0
  951. package/v1/model/VaultDissociate.d.ts.map +1 -0
  952. package/v1/model/VaultDissociate.js +20 -0
  953. package/v1/model/VaultDissociate.js.map +1 -0
  954. package/v1/model/VaultGet.d.ts +64 -0
  955. package/v1/model/VaultGet.d.ts.map +1 -0
  956. package/v1/model/VaultGet.js +148 -0
  957. package/v1/model/VaultGet.js.map +1 -0
  958. package/v1/model/VaultMigrateResourceReq.d.ts +12 -0
  959. package/v1/model/VaultMigrateResourceReq.d.ts.map +1 -0
  960. package/v1/model/VaultMigrateResourceReq.js +31 -0
  961. package/v1/model/VaultMigrateResourceReq.js.map +1 -0
  962. package/v1/model/VaultOrder.d.ts +47 -0
  963. package/v1/model/VaultOrder.d.ts.map +1 -0
  964. package/v1/model/VaultOrder.js +99 -0
  965. package/v1/model/VaultOrder.js.map +1 -0
  966. package/v1/model/VaultOrderCreateReqs.d.ts +7 -0
  967. package/v1/model/VaultOrderCreateReqs.d.ts.map +1 -0
  968. package/v1/model/VaultOrderCreateReqs.js +14 -0
  969. package/v1/model/VaultOrderCreateReqs.js.map +1 -0
  970. package/v1/model/VaultPolicyResp.d.ts +16 -0
  971. package/v1/model/VaultPolicyResp.d.ts.map +1 -0
  972. package/v1/model/VaultPolicyResp.js +41 -0
  973. package/v1/model/VaultPolicyResp.js.map +1 -0
  974. package/v1/model/VaultRemoveResourceReq.d.ts +8 -0
  975. package/v1/model/VaultRemoveResourceReq.d.ts.map +1 -0
  976. package/v1/model/VaultRemoveResourceReq.js +20 -0
  977. package/v1/model/VaultRemoveResourceReq.js.map +1 -0
  978. package/v1/model/VaultResourceInstancesReq.d.ts +61 -0
  979. package/v1/model/VaultResourceInstancesReq.d.ts.map +1 -0
  980. package/v1/model/VaultResourceInstancesReq.js +118 -0
  981. package/v1/model/VaultResourceInstancesReq.js.map +1 -0
  982. package/v1/model/VaultSetResourceReq.d.ts +18 -0
  983. package/v1/model/VaultSetResourceReq.d.ts.map +1 -0
  984. package/v1/model/VaultSetResourceReq.js +34 -0
  985. package/v1/model/VaultSetResourceReq.js.map +1 -0
  986. package/v1/model/VaultTagsCreateReq.d.ts +7 -0
  987. package/v1/model/VaultTagsCreateReq.d.ts.map +1 -0
  988. package/v1/model/VaultTagsCreateReq.js +13 -0
  989. package/v1/model/VaultTagsCreateReq.js.map +1 -0
  990. package/v1/model/VaultUpdate.d.ts +28 -0
  991. package/v1/model/VaultUpdate.d.ts.map +1 -0
  992. package/v1/model/VaultUpdate.js +61 -0
  993. package/v1/model/VaultUpdate.js.map +1 -0
  994. package/v1/model/VaultUpdateReq.d.ts +7 -0
  995. package/v1/model/VaultUpdateReq.d.ts.map +1 -0
  996. package/v1/model/VaultUpdateReq.js +14 -0
  997. package/v1/model/VaultUpdateReq.js.map +1 -0
  998. package/v1/public-api.d.ts +249 -0
  999. package/v1/public-api.d.ts.map +1 -0
  1000. package/v1/public-api.js +265 -0
  1001. package/v1/public-api.js.map +1 -0
  1002. package/huaweicloud-sdk-cbr.ts +0 -4
  1003. package/v1/CbrClient.ts +0 -4585
  1004. package/v1/CbrRegion.ts +0 -64
  1005. package/v1/model/AddAgentPathRequest.ts +0 -24
  1006. package/v1/model/AddAgentPathResponse.ts +0 -18
  1007. package/v1/model/AddMemberRequest.ts +0 -24
  1008. package/v1/model/AddMemberResponse.ts +0 -19
  1009. package/v1/model/AddMembersReq.ts +0 -12
  1010. package/v1/model/AddVaultResourceRequest.ts +0 -24
  1011. package/v1/model/AddVaultResourceResponse.ts +0 -19
  1012. package/v1/model/Agent.ts +0 -128
  1013. package/v1/model/AgentAddPathReq.ts +0 -18
  1014. package/v1/model/AgentRegister.ts +0 -87
  1015. package/v1/model/AgentRegisterReq.ts +0 -13
  1016. package/v1/model/AgentRemovePathReq.ts +0 -18
  1017. package/v1/model/AgentUpdate.ts +0 -20
  1018. package/v1/model/AgentUpdateReq.ts +0 -13
  1019. package/v1/model/AssociateVaultPolicyRequest.ts +0 -24
  1020. package/v1/model/AssociateVaultPolicyResponse.ts +0 -20
  1021. package/v1/model/BackupExtendInfo.ts +0 -120
  1022. package/v1/model/BackupReplicateReq.ts +0 -13
  1023. package/v1/model/BackupReplicateReqBody.ts +0 -63
  1024. package/v1/model/BackupReplicateRespBody.ts +0 -94
  1025. package/v1/model/BackupResp.ts +0 -283
  1026. package/v1/model/BackupRestore.ts +0 -56
  1027. package/v1/model/BackupRestoreReq.ts +0 -13
  1028. package/v1/model/BackupRestoreServerMapping.ts +0 -30
  1029. package/v1/model/BackupSync.ts +0 -102
  1030. package/v1/model/BackupSyncReq.ts +0 -13
  1031. package/v1/model/BackupSyncRespBody.ts +0 -30
  1032. package/v1/model/BackupUpdate.ts +0 -11
  1033. package/v1/model/BackupUpdateReq.ts +0 -12
  1034. package/v1/model/BatchCreateAndDeleteVaultTagsRequest.ts +0 -24
  1035. package/v1/model/BatchCreateAndDeleteVaultTagsResponse.ts +0 -8
  1036. package/v1/model/BatchUpdateVaultRequest.ts +0 -12
  1037. package/v1/model/BatchUpdateVaultRequestBody.ts +0 -13
  1038. package/v1/model/BatchUpdateVaultResponse.ts +0 -19
  1039. package/v1/model/Billing.ts +0 -220
  1040. package/v1/model/BillingCreate.ts +0 -223
  1041. package/v1/model/BillingUpdate.ts +0 -31
  1042. package/v1/model/BindRulesTags.ts +0 -18
  1043. package/v1/model/BulkCreateAndDeleteVaultTagsReq.ts +0 -39
  1044. package/v1/model/CbcOrderResult.ts +0 -28
  1045. package/v1/model/CbcProductInfoUpdate.ts +0 -29
  1046. package/v1/model/CbcUpdate.ts +0 -35
  1047. package/v1/model/CheckAgentRequest.ts +0 -12
  1048. package/v1/model/CheckAgentResponse.ts +0 -20
  1049. package/v1/model/CheckpointCreate.ts +0 -73
  1050. package/v1/model/CheckpointCreateSkippedResource.ts +0 -31
  1051. package/v1/model/CheckpointExtraInfoResp.ts +0 -27
  1052. package/v1/model/CheckpointParam.ts +0 -60
  1053. package/v1/model/CheckpointPlanCreate.ts +0 -36
  1054. package/v1/model/CheckpointReplicateParam.ts +0 -76
  1055. package/v1/model/CheckpointReplicateReq.ts +0 -13
  1056. package/v1/model/CheckpointReplicateRespBody.ts +0 -97
  1057. package/v1/model/CheckpointReplicateRespbackups.ts +0 -30
  1058. package/v1/model/CheckpointResourceResp.ts +0 -91
  1059. package/v1/model/CombinedOrder.ts +0 -39
  1060. package/v1/model/CopyBackupRequest.ts +0 -24
  1061. package/v1/model/CopyBackupResponse.ts +0 -14
  1062. package/v1/model/CopyCheckpointRequest.ts +0 -12
  1063. package/v1/model/CopyCheckpointResponse.ts +0 -14
  1064. package/v1/model/CreateCheckpointRequest.ts +0 -12
  1065. package/v1/model/CreateCheckpointResponse.ts +0 -14
  1066. package/v1/model/CreatePolicyRequest.ts +0 -12
  1067. package/v1/model/CreatePolicyResponse.ts +0 -14
  1068. package/v1/model/CreatePostPaidVaultRequest.ts +0 -12
  1069. package/v1/model/CreatePostPaidVaultResponse.ts +0 -35
  1070. package/v1/model/CreateVaultRequest.ts +0 -12
  1071. package/v1/model/CreateVaultResponse.ts +0 -14
  1072. package/v1/model/CreateVaultTagsRequest.ts +0 -24
  1073. package/v1/model/CreateVaultTagsResponse.ts +0 -8
  1074. package/v1/model/DeleteBackupRequest.ts +0 -18
  1075. package/v1/model/DeleteBackupResponse.ts +0 -8
  1076. package/v1/model/DeleteMemberRequest.ts +0 -30
  1077. package/v1/model/DeleteMemberResponse.ts +0 -8
  1078. package/v1/model/DeletePolicyRequest.ts +0 -18
  1079. package/v1/model/DeletePolicyResponse.ts +0 -8
  1080. package/v1/model/DeleteVaultRequest.ts +0 -18
  1081. package/v1/model/DeleteVaultResponse.ts +0 -8
  1082. package/v1/model/DeleteVaultTagRequest.ts +0 -24
  1083. package/v1/model/DeleteVaultTagResponse.ts +0 -8
  1084. package/v1/model/DisassociateVaultPolicyRequest.ts +0 -24
  1085. package/v1/model/DisassociateVaultPolicyResponse.ts +0 -20
  1086. package/v1/model/DomainMigrate.ts +0 -24
  1087. package/v1/model/DomainMigrateProjectStatus.ts +0 -84
  1088. package/v1/model/DomainProjectsInfo.ts +0 -30
  1089. package/v1/model/ImageData.ts +0 -17
  1090. package/v1/model/ImportBackupRequest.ts +0 -12
  1091. package/v1/model/ImportBackupResponse.ts +0 -14
  1092. package/v1/model/ImportCheckpointRequest.ts +0 -12
  1093. package/v1/model/ImportCheckpointResponse.ts +0 -14
  1094. package/v1/model/InstancesResourceDetail.ts +0 -12
  1095. package/v1/model/ListAgentRequest.ts +0 -32
  1096. package/v1/model/ListAgentResponse.ts +0 -29
  1097. package/v1/model/ListBackupsRequest.ts +0 -261
  1098. package/v1/model/ListBackupsResponse.ts +0 -29
  1099. package/v1/model/ListDomainProjectsRequest.ts +0 -18
  1100. package/v1/model/ListDomainProjectsResponse.ts +0 -14
  1101. package/v1/model/ListExternalVaultRequest.ts +0 -92
  1102. package/v1/model/ListExternalVaultResponse.ts +0 -29
  1103. package/v1/model/ListOpLogsRequest.ts +0 -147
  1104. package/v1/model/ListOpLogsResponse.ts +0 -35
  1105. package/v1/model/ListPoliciesRequest.ts +0 -37
  1106. package/v1/model/ListPoliciesResponse.ts +0 -19
  1107. package/v1/model/ListProjectsRequest.ts +0 -6
  1108. package/v1/model/ListProjectsResponse.ts +0 -20
  1109. package/v1/model/ListProtectableRequest.ts +0 -68
  1110. package/v1/model/ListProtectableResponse.ts +0 -14
  1111. package/v1/model/ListVaultRequest.ts +0 -114
  1112. package/v1/model/ListVaultResponse.ts +0 -29
  1113. package/v1/model/Match.ts +0 -18
  1114. package/v1/model/Member.ts +0 -93
  1115. package/v1/model/MigrateDomainRequest.ts +0 -12
  1116. package/v1/model/MigrateDomainResponse.ts +0 -13
  1117. package/v1/model/MigrateVaultResourceRequest.ts +0 -24
  1118. package/v1/model/MigrateVaultResourceResponse.ts +0 -19
  1119. package/v1/model/OpErrorInfo.ts +0 -16
  1120. package/v1/model/OpExtendInfoBckup.ts +0 -84
  1121. package/v1/model/OpExtendInfoCommon.ts +0 -35
  1122. package/v1/model/OpExtendInfoDelete.ts +0 -30
  1123. package/v1/model/OpExtendInfoRemoveResources.ts +0 -34
  1124. package/v1/model/OpExtendInfoReplication.ts +0 -121
  1125. package/v1/model/OpExtendInfoRestore.ts +0 -50
  1126. package/v1/model/OpExtendInfoSync.ts +0 -39
  1127. package/v1/model/OpExtendInfoVaultDelete.ts +0 -28
  1128. package/v1/model/OpExtraInfo.ts +0 -80
  1129. package/v1/model/OperationLog.ts +0 -195
  1130. package/v1/model/Path.ts +0 -38
  1131. package/v1/model/Policy.ts +0 -77
  1132. package/v1/model/PolicyAssociateVault.ts +0 -29
  1133. package/v1/model/PolicyCreate.ts +0 -58
  1134. package/v1/model/PolicyCreateReq.ts +0 -13
  1135. package/v1/model/PolicyTriggerPropertiesReq.ts +0 -12
  1136. package/v1/model/PolicyTriggerPropertiesResp.ts +0 -23
  1137. package/v1/model/PolicyTriggerReq.ts +0 -13
  1138. package/v1/model/PolicyTriggerResp.ts +0 -37
  1139. package/v1/model/PolicyUpdate.ts +0 -34
  1140. package/v1/model/PolicyUpdateReq.ts +0 -13
  1141. package/v1/model/PolicyoODCreate.ts +0 -121
  1142. package/v1/model/ProjectsListInfo.ts +0 -65
  1143. package/v1/model/ProtectableAgentReq.ts +0 -19
  1144. package/v1/model/ProtectableAgentStatus.ts +0 -48
  1145. package/v1/model/ProtectableAgentStatusResource.ts +0 -41
  1146. package/v1/model/ProtectableReplicationCapabilitiesRespRegion.ts +0 -24
  1147. package/v1/model/ProtectableResult.ts +0 -33
  1148. package/v1/model/ProtectablesResp.ts +0 -62
  1149. package/v1/model/RegisterAgentRequest.ts +0 -12
  1150. package/v1/model/RegisterAgentResponse.ts +0 -14
  1151. package/v1/model/RemoveAgentPathRequest.ts +0 -24
  1152. package/v1/model/RemoveAgentPathResponse.ts +0 -24
  1153. package/v1/model/RemoveVaultResourceRequest.ts +0 -24
  1154. package/v1/model/RemoveVaultResourceResponse.ts +0 -19
  1155. package/v1/model/ReplicationRecordGet.ts +0 -162
  1156. package/v1/model/ReplicationRecordsExtraInfo.ts +0 -55
  1157. package/v1/model/Resource.ts +0 -35
  1158. package/v1/model/ResourceCreate.ts +0 -35
  1159. package/v1/model/ResourceExtraInfo.ts +0 -29
  1160. package/v1/model/ResourceExtraInfoIncludeVolumes.ts +0 -23
  1161. package/v1/model/ResourceResp.ts +0 -97
  1162. package/v1/model/RestoreBackupRequest.ts +0 -24
  1163. package/v1/model/RestoreBackupResponse.ts +0 -8
  1164. package/v1/model/SelfLinksInfo.ts +0 -11
  1165. package/v1/model/SetVaultResourceRequest.ts +0 -24
  1166. package/v1/model/SetVaultResourceResponse.ts +0 -19
  1167. package/v1/model/ShowAgentRequest.ts +0 -18
  1168. package/v1/model/ShowAgentResponse.ts +0 -14
  1169. package/v1/model/ShowBackupRequest.ts +0 -18
  1170. package/v1/model/ShowBackupResponse.ts +0 -14
  1171. package/v1/model/ShowCheckpointRequest.ts +0 -18
  1172. package/v1/model/ShowCheckpointResponse.ts +0 -14
  1173. package/v1/model/ShowDomainRequest.ts +0 -18
  1174. package/v1/model/ShowDomainResponse.ts +0 -52
  1175. package/v1/model/ShowMemberDetailRequest.ts +0 -30
  1176. package/v1/model/ShowMemberDetailResponse.ts +0 -14
  1177. package/v1/model/ShowMembersDetailRequest.ts +0 -76
  1178. package/v1/model/ShowMembersDetailResponse.ts +0 -19
  1179. package/v1/model/ShowMetadataRequest.ts +0 -18
  1180. package/v1/model/ShowMetadataResponse.ts +0 -60
  1181. package/v1/model/ShowMigrateStatusRequest.ts +0 -17
  1182. package/v1/model/ShowMigrateStatusResponse.ts +0 -35
  1183. package/v1/model/ShowOpLogRequest.ts +0 -18
  1184. package/v1/model/ShowOpLogResponse.ts +0 -20
  1185. package/v1/model/ShowPolicyRequest.ts +0 -18
  1186. package/v1/model/ShowPolicyResponse.ts +0 -14
  1187. package/v1/model/ShowProtectableRequest.ts +0 -39
  1188. package/v1/model/ShowProtectableResponse.ts +0 -14
  1189. package/v1/model/ShowReplicationCapabilitiesRequest.ts +0 -6
  1190. package/v1/model/ShowReplicationCapabilitiesResponse.ts +0 -14
  1191. package/v1/model/ShowStorageUsageRequest.ts +0 -47
  1192. package/v1/model/ShowStorageUsageResponse.ts +0 -31
  1193. package/v1/model/ShowSummaryRequest.ts +0 -6
  1194. package/v1/model/ShowSummaryResponse.ts +0 -24
  1195. package/v1/model/ShowVaultProjectTagRequest.ts +0 -6
  1196. package/v1/model/ShowVaultProjectTagResponse.ts +0 -14
  1197. package/v1/model/ShowVaultRequest.ts +0 -18
  1198. package/v1/model/ShowVaultResourceInstancesRequest.ts +0 -12
  1199. package/v1/model/ShowVaultResourceInstancesResponse.ts +0 -25
  1200. package/v1/model/ShowVaultResponse.ts +0 -14
  1201. package/v1/model/ShowVaultTagRequest.ts +0 -18
  1202. package/v1/model/ShowVaultTagResponse.ts +0 -26
  1203. package/v1/model/StorageUsage.ts +0 -75
  1204. package/v1/model/SyncParam.ts +0 -30
  1205. package/v1/model/SyncReq.ts +0 -13
  1206. package/v1/model/SyncRespBody.ts +0 -30
  1207. package/v1/model/SysTag.ts +0 -18
  1208. package/v1/model/SysTags.ts +0 -18
  1209. package/v1/model/Tag.ts +0 -17
  1210. package/v1/model/TagResource.ts +0 -63
  1211. package/v1/model/TagsReq.ts +0 -18
  1212. package/v1/model/TagsResp.ts +0 -16
  1213. package/v1/model/UnregisterAgentRequest.ts +0 -18
  1214. package/v1/model/UnregisterAgentResponse.ts +0 -8
  1215. package/v1/model/UpdateAgentRequest.ts +0 -24
  1216. package/v1/model/UpdateAgentResponse.ts +0 -14
  1217. package/v1/model/UpdateBackupRequest.ts +0 -24
  1218. package/v1/model/UpdateBackupResponse.ts +0 -14
  1219. package/v1/model/UpdateMember.ts +0 -33
  1220. package/v1/model/UpdateMemberStatusRequest.ts +0 -36
  1221. package/v1/model/UpdateMemberStatusResponse.ts +0 -14
  1222. package/v1/model/UpdateOrderRequest.ts +0 -24
  1223. package/v1/model/UpdateOrderResponse.ts +0 -23
  1224. package/v1/model/UpdatePolicyRequest.ts +0 -24
  1225. package/v1/model/UpdatePolicyResponse.ts +0 -14
  1226. package/v1/model/UpdateVaultRequest.ts +0 -24
  1227. package/v1/model/UpdateVaultResponse.ts +0 -14
  1228. package/v1/model/Vault.ts +0 -150
  1229. package/v1/model/VaultAddResourceReq.ts +0 -13
  1230. package/v1/model/VaultAssociate.ts +0 -39
  1231. package/v1/model/VaultBackup.ts +0 -24
  1232. package/v1/model/VaultBackupReq.ts +0 -13
  1233. package/v1/model/VaultBatchUpdate.ts +0 -22
  1234. package/v1/model/VaultBindRules.ts +0 -12
  1235. package/v1/model/VaultCreate.ts +0 -131
  1236. package/v1/model/VaultCreateParameters.ts +0 -18
  1237. package/v1/model/VaultCreateReq.ts +0 -13
  1238. package/v1/model/VaultCreateResource.ts +0 -204
  1239. package/v1/model/VaultDissociate.ts +0 -18
  1240. package/v1/model/VaultGet.ts +0 -168
  1241. package/v1/model/VaultMigrateResourceReq.ts +0 -30
  1242. package/v1/model/VaultOrder.ts +0 -114
  1243. package/v1/model/VaultOrderCreateReqs.ts +0 -13
  1244. package/v1/model/VaultPolicyResp.ts +0 -41
  1245. package/v1/model/VaultRemoveResourceReq.ts +0 -18
  1246. package/v1/model/VaultResourceInstancesReq.ts +0 -129
  1247. package/v1/model/VaultSetResourceReq.ts +0 -33
  1248. package/v1/model/VaultTagsCreateReq.ts +0 -12
  1249. package/v1/model/VaultUpdate.ts +0 -67
  1250. package/v1/model/VaultUpdateReq.ts +0 -13
  1251. package/v1/public-api.ts +0 -249
package/v1/CbrClient.ts DELETED
@@ -1,4585 +0,0 @@
1
- import { HcClient } from "@huaweicloud/huaweicloud-sdk-core/HcClient";
2
- import { ClientBuilder } from "@huaweicloud/huaweicloud-sdk-core/ClientBuilder";
3
- import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
4
-
5
- import { AddAgentPathRequest } from './model/AddAgentPathRequest';
6
- import { AddAgentPathResponse } from './model/AddAgentPathResponse';
7
- import { AddMemberRequest } from './model/AddMemberRequest';
8
- import { AddMemberResponse } from './model/AddMemberResponse';
9
- import { AddMembersReq } from './model/AddMembersReq';
10
- import { AddVaultResourceRequest } from './model/AddVaultResourceRequest';
11
- import { AddVaultResourceResponse } from './model/AddVaultResourceResponse';
12
- import { Agent } from './model/Agent';
13
- import { AgentAddPathReq } from './model/AgentAddPathReq';
14
- import { AgentRegister } from './model/AgentRegister';
15
- import { AgentRegisterReq } from './model/AgentRegisterReq';
16
- import { AgentRemovePathReq } from './model/AgentRemovePathReq';
17
- import { AgentUpdate } from './model/AgentUpdate';
18
- import { AgentUpdateReq } from './model/AgentUpdateReq';
19
- import { AssociateVaultPolicyRequest } from './model/AssociateVaultPolicyRequest';
20
- import { AssociateVaultPolicyResponse } from './model/AssociateVaultPolicyResponse';
21
- import { BackupExtendInfo } from './model/BackupExtendInfo';
22
- import { BackupReplicateReq } from './model/BackupReplicateReq';
23
- import { BackupReplicateReqBody } from './model/BackupReplicateReqBody';
24
- import { BackupReplicateRespBody } from './model/BackupReplicateRespBody';
25
- import { BackupResp } from './model/BackupResp';
26
- import { BackupRestore } from './model/BackupRestore';
27
- import { BackupRestoreReq } from './model/BackupRestoreReq';
28
- import { BackupRestoreServerMapping } from './model/BackupRestoreServerMapping';
29
- import { BackupSync } from './model/BackupSync';
30
- import { BackupSyncReq } from './model/BackupSyncReq';
31
- import { BackupSyncRespBody } from './model/BackupSyncRespBody';
32
- import { BackupUpdate } from './model/BackupUpdate';
33
- import { BackupUpdateReq } from './model/BackupUpdateReq';
34
- import { BatchCreateAndDeleteVaultTagsRequest } from './model/BatchCreateAndDeleteVaultTagsRequest';
35
- import { BatchCreateAndDeleteVaultTagsResponse } from './model/BatchCreateAndDeleteVaultTagsResponse';
36
- import { BatchUpdateVaultRequest } from './model/BatchUpdateVaultRequest';
37
- import { BatchUpdateVaultRequestBody } from './model/BatchUpdateVaultRequestBody';
38
- import { BatchUpdateVaultResponse } from './model/BatchUpdateVaultResponse';
39
- import { Billing } from './model/Billing';
40
- import { BillingCreate } from './model/BillingCreate';
41
- import { BillingUpdate } from './model/BillingUpdate';
42
- import { BindRulesTags } from './model/BindRulesTags';
43
- import { BulkCreateAndDeleteVaultTagsReq } from './model/BulkCreateAndDeleteVaultTagsReq';
44
- import { CbcOrderResult } from './model/CbcOrderResult';
45
- import { CbcProductInfoUpdate } from './model/CbcProductInfoUpdate';
46
- import { CbcUpdate } from './model/CbcUpdate';
47
- import { CheckAgentRequest } from './model/CheckAgentRequest';
48
- import { CheckAgentResponse } from './model/CheckAgentResponse';
49
- import { CheckpointCreate } from './model/CheckpointCreate';
50
- import { CheckpointCreateSkippedResource } from './model/CheckpointCreateSkippedResource';
51
- import { CheckpointExtraInfoResp } from './model/CheckpointExtraInfoResp';
52
- import { CheckpointParam } from './model/CheckpointParam';
53
- import { CheckpointPlanCreate } from './model/CheckpointPlanCreate';
54
- import { CheckpointReplicateParam } from './model/CheckpointReplicateParam';
55
- import { CheckpointReplicateReq } from './model/CheckpointReplicateReq';
56
- import { CheckpointReplicateRespBody } from './model/CheckpointReplicateRespBody';
57
- import { CheckpointReplicateRespbackups } from './model/CheckpointReplicateRespbackups';
58
- import { CheckpointResourceResp } from './model/CheckpointResourceResp';
59
- import { CombinedOrder } from './model/CombinedOrder';
60
- import { CopyBackupRequest } from './model/CopyBackupRequest';
61
- import { CopyBackupResponse } from './model/CopyBackupResponse';
62
- import { CopyCheckpointRequest } from './model/CopyCheckpointRequest';
63
- import { CopyCheckpointResponse } from './model/CopyCheckpointResponse';
64
- import { CreateCheckpointRequest } from './model/CreateCheckpointRequest';
65
- import { CreateCheckpointResponse } from './model/CreateCheckpointResponse';
66
- import { CreatePolicyRequest } from './model/CreatePolicyRequest';
67
- import { CreatePolicyResponse } from './model/CreatePolicyResponse';
68
- import { CreatePostPaidVaultRequest } from './model/CreatePostPaidVaultRequest';
69
- import { CreatePostPaidVaultResponse } from './model/CreatePostPaidVaultResponse';
70
- import { CreateVaultRequest } from './model/CreateVaultRequest';
71
- import { CreateVaultResponse } from './model/CreateVaultResponse';
72
- import { CreateVaultTagsRequest } from './model/CreateVaultTagsRequest';
73
- import { CreateVaultTagsResponse } from './model/CreateVaultTagsResponse';
74
- import { DeleteBackupRequest } from './model/DeleteBackupRequest';
75
- import { DeleteBackupResponse } from './model/DeleteBackupResponse';
76
- import { DeleteMemberRequest } from './model/DeleteMemberRequest';
77
- import { DeleteMemberResponse } from './model/DeleteMemberResponse';
78
- import { DeletePolicyRequest } from './model/DeletePolicyRequest';
79
- import { DeletePolicyResponse } from './model/DeletePolicyResponse';
80
- import { DeleteVaultRequest } from './model/DeleteVaultRequest';
81
- import { DeleteVaultResponse } from './model/DeleteVaultResponse';
82
- import { DeleteVaultTagRequest } from './model/DeleteVaultTagRequest';
83
- import { DeleteVaultTagResponse } from './model/DeleteVaultTagResponse';
84
- import { DisassociateVaultPolicyRequest } from './model/DisassociateVaultPolicyRequest';
85
- import { DisassociateVaultPolicyResponse } from './model/DisassociateVaultPolicyResponse';
86
- import { DomainMigrate } from './model/DomainMigrate';
87
- import { DomainMigrateProjectStatus } from './model/DomainMigrateProjectStatus';
88
- import { DomainProjectsInfo } from './model/DomainProjectsInfo';
89
- import { ImageData } from './model/ImageData';
90
- import { ImportBackupRequest } from './model/ImportBackupRequest';
91
- import { ImportBackupResponse } from './model/ImportBackupResponse';
92
- import { ImportCheckpointRequest } from './model/ImportCheckpointRequest';
93
- import { ImportCheckpointResponse } from './model/ImportCheckpointResponse';
94
- import { InstancesResourceDetail } from './model/InstancesResourceDetail';
95
- import { ListAgentRequest } from './model/ListAgentRequest';
96
- import { ListAgentResponse } from './model/ListAgentResponse';
97
- import { ListBackupsRequest } from './model/ListBackupsRequest';
98
- import { ListBackupsResponse } from './model/ListBackupsResponse';
99
- import { ListDomainProjectsRequest } from './model/ListDomainProjectsRequest';
100
- import { ListDomainProjectsResponse } from './model/ListDomainProjectsResponse';
101
- import { ListExternalVaultRequest } from './model/ListExternalVaultRequest';
102
- import { ListExternalVaultResponse } from './model/ListExternalVaultResponse';
103
- import { ListOpLogsRequest } from './model/ListOpLogsRequest';
104
- import { ListOpLogsResponse } from './model/ListOpLogsResponse';
105
- import { ListPoliciesRequest } from './model/ListPoliciesRequest';
106
- import { ListPoliciesResponse } from './model/ListPoliciesResponse';
107
- import { ListProjectsRequest } from './model/ListProjectsRequest';
108
- import { ListProjectsResponse } from './model/ListProjectsResponse';
109
- import { ListProtectableRequest } from './model/ListProtectableRequest';
110
- import { ListProtectableResponse } from './model/ListProtectableResponse';
111
- import { ListVaultRequest } from './model/ListVaultRequest';
112
- import { ListVaultResponse } from './model/ListVaultResponse';
113
- import { Match } from './model/Match';
114
- import { Member } from './model/Member';
115
- import { MigrateDomainRequest } from './model/MigrateDomainRequest';
116
- import { MigrateDomainResponse } from './model/MigrateDomainResponse';
117
- import { MigrateVaultResourceRequest } from './model/MigrateVaultResourceRequest';
118
- import { MigrateVaultResourceResponse } from './model/MigrateVaultResourceResponse';
119
- import { OpErrorInfo } from './model/OpErrorInfo';
120
- import { OpExtendInfoBckup } from './model/OpExtendInfoBckup';
121
- import { OpExtendInfoCommon } from './model/OpExtendInfoCommon';
122
- import { OpExtendInfoDelete } from './model/OpExtendInfoDelete';
123
- import { OpExtendInfoRemoveResources } from './model/OpExtendInfoRemoveResources';
124
- import { OpExtendInfoReplication } from './model/OpExtendInfoReplication';
125
- import { OpExtendInfoRestore } from './model/OpExtendInfoRestore';
126
- import { OpExtendInfoSync } from './model/OpExtendInfoSync';
127
- import { OpExtendInfoVaultDelete } from './model/OpExtendInfoVaultDelete';
128
- import { OpExtraInfo } from './model/OpExtraInfo';
129
- import { OperationLog } from './model/OperationLog';
130
- import { Path } from './model/Path';
131
- import { Policy } from './model/Policy';
132
- import { PolicyAssociateVault } from './model/PolicyAssociateVault';
133
- import { PolicyCreate } from './model/PolicyCreate';
134
- import { PolicyCreateReq } from './model/PolicyCreateReq';
135
- import { PolicyTriggerPropertiesReq } from './model/PolicyTriggerPropertiesReq';
136
- import { PolicyTriggerPropertiesResp } from './model/PolicyTriggerPropertiesResp';
137
- import { PolicyTriggerReq } from './model/PolicyTriggerReq';
138
- import { PolicyTriggerResp } from './model/PolicyTriggerResp';
139
- import { PolicyUpdate } from './model/PolicyUpdate';
140
- import { PolicyUpdateReq } from './model/PolicyUpdateReq';
141
- import { PolicyoODCreate } from './model/PolicyoODCreate';
142
- import { ProjectsListInfo } from './model/ProjectsListInfo';
143
- import { ProtectableAgentReq } from './model/ProtectableAgentReq';
144
- import { ProtectableAgentStatus } from './model/ProtectableAgentStatus';
145
- import { ProtectableAgentStatusResource } from './model/ProtectableAgentStatusResource';
146
- import { ProtectableReplicationCapabilitiesRespRegion } from './model/ProtectableReplicationCapabilitiesRespRegion';
147
- import { ProtectableResult } from './model/ProtectableResult';
148
- import { ProtectablesResp } from './model/ProtectablesResp';
149
- import { RegisterAgentRequest } from './model/RegisterAgentRequest';
150
- import { RegisterAgentResponse } from './model/RegisterAgentResponse';
151
- import { RemoveAgentPathRequest } from './model/RemoveAgentPathRequest';
152
- import { RemoveAgentPathResponse } from './model/RemoveAgentPathResponse';
153
- import { RemoveVaultResourceRequest } from './model/RemoveVaultResourceRequest';
154
- import { RemoveVaultResourceResponse } from './model/RemoveVaultResourceResponse';
155
- import { ReplicationRecordGet } from './model/ReplicationRecordGet';
156
- import { ReplicationRecordsExtraInfo } from './model/ReplicationRecordsExtraInfo';
157
- import { Resource } from './model/Resource';
158
- import { ResourceCreate } from './model/ResourceCreate';
159
- import { ResourceExtraInfo } from './model/ResourceExtraInfo';
160
- import { ResourceExtraInfoIncludeVolumes } from './model/ResourceExtraInfoIncludeVolumes';
161
- import { ResourceResp } from './model/ResourceResp';
162
- import { RestoreBackupRequest } from './model/RestoreBackupRequest';
163
- import { RestoreBackupResponse } from './model/RestoreBackupResponse';
164
- import { SelfLinksInfo } from './model/SelfLinksInfo';
165
- import { SetVaultResourceRequest } from './model/SetVaultResourceRequest';
166
- import { SetVaultResourceResponse } from './model/SetVaultResourceResponse';
167
- import { ShowAgentRequest } from './model/ShowAgentRequest';
168
- import { ShowAgentResponse } from './model/ShowAgentResponse';
169
- import { ShowBackupRequest } from './model/ShowBackupRequest';
170
- import { ShowBackupResponse } from './model/ShowBackupResponse';
171
- import { ShowCheckpointRequest } from './model/ShowCheckpointRequest';
172
- import { ShowCheckpointResponse } from './model/ShowCheckpointResponse';
173
- import { ShowDomainRequest } from './model/ShowDomainRequest';
174
- import { ShowDomainResponse } from './model/ShowDomainResponse';
175
- import { ShowMemberDetailRequest } from './model/ShowMemberDetailRequest';
176
- import { ShowMemberDetailResponse } from './model/ShowMemberDetailResponse';
177
- import { ShowMembersDetailRequest } from './model/ShowMembersDetailRequest';
178
- import { ShowMembersDetailResponse } from './model/ShowMembersDetailResponse';
179
- import { ShowMetadataRequest } from './model/ShowMetadataRequest';
180
- import { ShowMetadataResponse } from './model/ShowMetadataResponse';
181
- import { ShowMigrateStatusRequest } from './model/ShowMigrateStatusRequest';
182
- import { ShowMigrateStatusResponse } from './model/ShowMigrateStatusResponse';
183
- import { ShowOpLogRequest } from './model/ShowOpLogRequest';
184
- import { ShowOpLogResponse } from './model/ShowOpLogResponse';
185
- import { ShowPolicyRequest } from './model/ShowPolicyRequest';
186
- import { ShowPolicyResponse } from './model/ShowPolicyResponse';
187
- import { ShowProtectableRequest } from './model/ShowProtectableRequest';
188
- import { ShowProtectableResponse } from './model/ShowProtectableResponse';
189
- import { ShowReplicationCapabilitiesRequest } from './model/ShowReplicationCapabilitiesRequest';
190
- import { ShowReplicationCapabilitiesResponse } from './model/ShowReplicationCapabilitiesResponse';
191
- import { ShowStorageUsageRequest } from './model/ShowStorageUsageRequest';
192
- import { ShowStorageUsageResponse } from './model/ShowStorageUsageResponse';
193
- import { ShowSummaryRequest } from './model/ShowSummaryRequest';
194
- import { ShowSummaryResponse } from './model/ShowSummaryResponse';
195
- import { ShowVaultProjectTagRequest } from './model/ShowVaultProjectTagRequest';
196
- import { ShowVaultProjectTagResponse } from './model/ShowVaultProjectTagResponse';
197
- import { ShowVaultRequest } from './model/ShowVaultRequest';
198
- import { ShowVaultResourceInstancesRequest } from './model/ShowVaultResourceInstancesRequest';
199
- import { ShowVaultResourceInstancesResponse } from './model/ShowVaultResourceInstancesResponse';
200
- import { ShowVaultResponse } from './model/ShowVaultResponse';
201
- import { ShowVaultTagRequest } from './model/ShowVaultTagRequest';
202
- import { ShowVaultTagResponse } from './model/ShowVaultTagResponse';
203
- import { StorageUsage } from './model/StorageUsage';
204
- import { SyncParam } from './model/SyncParam';
205
- import { SyncReq } from './model/SyncReq';
206
- import { SyncRespBody } from './model/SyncRespBody';
207
- import { SysTag } from './model/SysTag';
208
- import { SysTags } from './model/SysTags';
209
- import { Tag } from './model/Tag';
210
- import { TagResource } from './model/TagResource';
211
- import { TagsReq } from './model/TagsReq';
212
- import { TagsResp } from './model/TagsResp';
213
- import { UnregisterAgentRequest } from './model/UnregisterAgentRequest';
214
- import { UnregisterAgentResponse } from './model/UnregisterAgentResponse';
215
- import { UpdateAgentRequest } from './model/UpdateAgentRequest';
216
- import { UpdateAgentResponse } from './model/UpdateAgentResponse';
217
- import { UpdateBackupRequest } from './model/UpdateBackupRequest';
218
- import { UpdateBackupResponse } from './model/UpdateBackupResponse';
219
- import { UpdateMember } from './model/UpdateMember';
220
- import { UpdateMemberStatusRequest } from './model/UpdateMemberStatusRequest';
221
- import { UpdateMemberStatusResponse } from './model/UpdateMemberStatusResponse';
222
- import { UpdateOrderRequest } from './model/UpdateOrderRequest';
223
- import { UpdateOrderResponse } from './model/UpdateOrderResponse';
224
- import { UpdatePolicyRequest } from './model/UpdatePolicyRequest';
225
- import { UpdatePolicyResponse } from './model/UpdatePolicyResponse';
226
- import { UpdateVaultRequest } from './model/UpdateVaultRequest';
227
- import { UpdateVaultResponse } from './model/UpdateVaultResponse';
228
- import { Vault } from './model/Vault';
229
- import { VaultAddResourceReq } from './model/VaultAddResourceReq';
230
- import { VaultAssociate } from './model/VaultAssociate';
231
- import { VaultBackup } from './model/VaultBackup';
232
- import { VaultBackupReq } from './model/VaultBackupReq';
233
- import { VaultBatchUpdate } from './model/VaultBatchUpdate';
234
- import { VaultBindRules } from './model/VaultBindRules';
235
- import { VaultCreate } from './model/VaultCreate';
236
- import { VaultCreateParameters } from './model/VaultCreateParameters';
237
- import { VaultCreateReq } from './model/VaultCreateReq';
238
- import { VaultCreateResource } from './model/VaultCreateResource';
239
- import { VaultDissociate } from './model/VaultDissociate';
240
- import { VaultGet } from './model/VaultGet';
241
- import { VaultMigrateResourceReq } from './model/VaultMigrateResourceReq';
242
- import { VaultOrder } from './model/VaultOrder';
243
- import { VaultOrderCreateReqs } from './model/VaultOrderCreateReqs';
244
- import { VaultPolicyResp } from './model/VaultPolicyResp';
245
- import { VaultRemoveResourceReq } from './model/VaultRemoveResourceReq';
246
- import { VaultResourceInstancesReq } from './model/VaultResourceInstancesReq';
247
- import { VaultSetResourceReq } from './model/VaultSetResourceReq';
248
- import { VaultTagsCreateReq } from './model/VaultTagsCreateReq';
249
- import { VaultUpdate } from './model/VaultUpdate';
250
- import { VaultUpdateReq } from './model/VaultUpdateReq';
251
-
252
- export class CbrClient {
253
- public static newBuilder(): ClientBuilder<CbrClient> {
254
- return new ClientBuilder<CbrClient>(newClient);
255
- }
256
-
257
- private hcClient: HcClient;
258
- public constructor(client: HcClient) {
259
- this.hcClient = client;
260
- }
261
-
262
- public getPath() {
263
- return __dirname;
264
- }
265
-
266
-
267
- /**
268
- * 对客户端新增备份路径,新增的路径不会校验是否存在。
269
- *
270
- * Please refer to HUAWEI cloud API Explorer for details.
271
- *
272
- * @summary 新增备份路径
273
- * @param {string} agentId 客户端ID
274
- * @param {AgentAddPathReq} addAgentPathRequestBody 新增文件备份路径参数
275
- * @param {*} [options] Override http request option.
276
- * @throws {RequiredError}
277
- */
278
- public addAgentPath(addAgentPathRequest?: AddAgentPathRequest): Promise<AddAgentPathResponse> {
279
- const options = ParamCreater().addAgentPath(addAgentPathRequest);
280
-
281
- // @ts-ignore
282
- options['responseHeaders'] = [''];
283
-
284
- return this.hcClient.sendRequest(options);
285
- }
286
-
287
- /**
288
- * 添加备份可共享的成员,只有云服务器备份可以添加备份共享成员,且仅支持在同一区域的不同用户间共享。
289
- *
290
- * Please refer to HUAWEI cloud API Explorer for details.
291
- *
292
- * @summary 添加备份成员
293
- * @param {string} backupId 备份副本id
294
- * @param {AddMembersReq} addMemberRequestBody 添加备份共享成员请求body
295
- * @param {*} [options] Override http request option.
296
- * @throws {RequiredError}
297
- */
298
- public addMember(addMemberRequest?: AddMemberRequest): Promise<AddMemberResponse> {
299
- const options = ParamCreater().addMember(addMemberRequest);
300
-
301
- // @ts-ignore
302
- options['responseHeaders'] = [''];
303
-
304
- return this.hcClient.sendRequest(options);
305
- }
306
-
307
- /**
308
- * 存储库添加资源
309
- *
310
- * Please refer to HUAWEI cloud API Explorer for details.
311
- *
312
- * @summary 添加资源
313
- * @param {string} vaultId 存储库ID
314
- * @param {VaultAddResourceReq} addVaultResourceRequestBody 存储库添加资源参数
315
- * @param {*} [options] Override http request option.
316
- * @throws {RequiredError}
317
- */
318
- public addVaultResource(addVaultResourceRequest?: AddVaultResourceRequest): Promise<AddVaultResourceResponse> {
319
- const options = ParamCreater().addVaultResource(addVaultResourceRequest);
320
-
321
- // @ts-ignore
322
- options['responseHeaders'] = [''];
323
-
324
- return this.hcClient.sendRequest(options);
325
- }
326
-
327
- /**
328
- * 存储库设置策略
329
- *
330
- * Please refer to HUAWEI cloud API Explorer for details.
331
- *
332
- * @summary 设置存储库策略
333
- * @param {string} vaultId 存储库ID
334
- * @param {VaultAssociate} associateVaultPolicyRequestBody 关联策略ID
335
- * @param {*} [options] Override http request option.
336
- * @throws {RequiredError}
337
- */
338
- public associateVaultPolicy(associateVaultPolicyRequest?: AssociateVaultPolicyRequest): Promise<AssociateVaultPolicyResponse> {
339
- const options = ParamCreater().associateVaultPolicy(associateVaultPolicyRequest);
340
-
341
- // @ts-ignore
342
- options['responseHeaders'] = [''];
343
-
344
- return this.hcClient.sendRequest(options);
345
- }
346
-
347
- /**
348
- * 为指定实例批量添加或删除标签
349
- * 标签管理服务需要使用该接口批量管理实例的标签。
350
- * 一个资源上最多有10个标签。
351
- * 此接口为幂等接口:
352
- * 创建时如果请求体中存在重复key则报错。
353
- * 创建时,不允许重复key,如果数据库存在就覆盖。
354
- * 删除时,允许重复key。
355
- * 删除时,如果删除的标签不存在,默认处理成功,删除时不对标签字符集范围做校验。key长度127个字符,value为255个字符。删除时tags结构体不能缺失,key不能为空,或者空字符串。
356
- *
357
- * Please refer to HUAWEI cloud API Explorer for details.
358
- *
359
- * @summary 批量添加删除存储库资源标签
360
- * @param {string} vaultId 资源id
361
- * @param {BulkCreateAndDeleteVaultTagsReq} [batchCreateAndDeleteVaultTagsRequestBody] 批量添加删除存储库资源标签请求body
362
- * @param {*} [options] Override http request option.
363
- * @throws {RequiredError}
364
- */
365
- public batchCreateAndDeleteVaultTags(batchCreateAndDeleteVaultTagsRequest?: BatchCreateAndDeleteVaultTagsRequest): Promise<BatchCreateAndDeleteVaultTagsResponse> {
366
- const options = ParamCreater().batchCreateAndDeleteVaultTags(batchCreateAndDeleteVaultTagsRequest);
367
-
368
- // @ts-ignore
369
- options['responseHeaders'] = [''];
370
-
371
- return this.hcClient.sendRequest(options);
372
- }
373
-
374
- /**
375
- * 批量修改项目下所有存储库
376
- *
377
- * Please refer to HUAWEI cloud API Explorer for details.
378
- *
379
- * @summary 批量修改存储库
380
- * @param {BatchUpdateVaultRequestBody} updateVaultRequestBody 存储批量修改参数
381
- * @param {*} [options] Override http request option.
382
- * @throws {RequiredError}
383
- */
384
- public batchUpdateVault(batchUpdateVaultRequest?: BatchUpdateVaultRequest): Promise<BatchUpdateVaultResponse> {
385
- const options = ParamCreater().batchUpdateVault(batchUpdateVaultRequest);
386
-
387
- // @ts-ignore
388
- options['responseHeaders'] = [''];
389
-
390
- return this.hcClient.sendRequest(options);
391
- }
392
-
393
- /**
394
- * 检查应用一致性Agent状态
395
- *
396
- * Please refer to HUAWEI cloud API Explorer for details.
397
- *
398
- * @summary 查询agent状态
399
- * @param {ProtectableAgentReq} checkAgentRequestBody Agent状态检查参数
400
- * @param {*} [options] Override http request option.
401
- * @throws {RequiredError}
402
- */
403
- public checkAgent(checkAgentRequest?: CheckAgentRequest): Promise<CheckAgentResponse> {
404
- const options = ParamCreater().checkAgent(checkAgentRequest);
405
-
406
- // @ts-ignore
407
- options['responseHeaders'] = [''];
408
-
409
- return this.hcClient.sendRequest(options);
410
- }
411
-
412
- /**
413
- * 跨区域复制备份。
414
- *
415
- * Please refer to HUAWEI cloud API Explorer for details.
416
- *
417
- * @summary 复制备份
418
- * @param {string} backupId 复制的备份ID
419
- * @param {BackupReplicateReq} copyBackupRequestBody 复制备份请求body
420
- * @param {*} [options] Override http request option.
421
- * @throws {RequiredError}
422
- */
423
- public copyBackup(copyBackupRequest?: CopyBackupRequest): Promise<CopyBackupResponse> {
424
- const options = ParamCreater().copyBackup(copyBackupRequest);
425
-
426
- // @ts-ignore
427
- options['responseHeaders'] = [''];
428
-
429
- return this.hcClient.sendRequest(options);
430
- }
431
-
432
- /**
433
- * 执行复制
434
- *
435
- * Please refer to HUAWEI cloud API Explorer for details.
436
- *
437
- * @summary 复制备份还原点
438
- * @param {CheckpointReplicateReq} copyCheckpointRequestBody 创建复制
439
- * @param {*} [options] Override http request option.
440
- * @throws {RequiredError}
441
- */
442
- public copyCheckpoint(copyCheckpointRequest?: CopyCheckpointRequest): Promise<CopyCheckpointResponse> {
443
- const options = ParamCreater().copyCheckpoint(copyCheckpointRequest);
444
-
445
- // @ts-ignore
446
- options['responseHeaders'] = [''];
447
-
448
- return this.hcClient.sendRequest(options);
449
- }
450
-
451
- /**
452
- * 对存储库执行备份,生成备份还原点
453
- *
454
- * Please refer to HUAWEI cloud API Explorer for details.
455
- *
456
- * @summary 创建备份还原点
457
- * @param {VaultBackupReq} createCheckpointRequestBody vault维度执行备份
458
- * @param {*} [options] Override http request option.
459
- * @throws {RequiredError}
460
- */
461
- public createCheckpoint(createCheckpointRequest?: CreateCheckpointRequest): Promise<CreateCheckpointResponse> {
462
- const options = ParamCreater().createCheckpoint(createCheckpointRequest);
463
-
464
- // @ts-ignore
465
- options['responseHeaders'] = [''];
466
-
467
- return this.hcClient.sendRequest(options);
468
- }
469
-
470
- /**
471
- * 创建策略,策略分为备份策略和复制策略。
472
- *
473
- * Please refer to HUAWEI cloud API Explorer for details.
474
- *
475
- * @summary 创建策略
476
- * @param {PolicyCreateReq} createPolicyRequestBody 创建策略body
477
- * @param {*} [options] Override http request option.
478
- * @throws {RequiredError}
479
- */
480
- public createPolicy(createPolicyRequest?: CreatePolicyRequest): Promise<CreatePolicyResponse> {
481
- const options = ParamCreater().createPolicy(createPolicyRequest);
482
-
483
- // @ts-ignore
484
- options['responseHeaders'] = [''];
485
-
486
- return this.hcClient.sendRequest(options);
487
- }
488
-
489
- /**
490
- * 创建包周期存储库
491
- *
492
- * Please refer to HUAWEI cloud API Explorer for details.
493
- *
494
- * @summary 创建包周期存储库
495
- * @param {VaultOrderCreateReqs} createPostPaidVaultRequestBody 请求体
496
- * @param {*} [options] Override http request option.
497
- * @throws {RequiredError}
498
- */
499
- public createPostPaidVault(createPostPaidVaultRequest?: CreatePostPaidVaultRequest): Promise<CreatePostPaidVaultResponse> {
500
- const options = ParamCreater().createPostPaidVault(createPostPaidVaultRequest);
501
-
502
- // @ts-ignore
503
- options['responseHeaders'] = [''];
504
-
505
- return this.hcClient.sendRequest(options);
506
- }
507
-
508
- /**
509
- * 创建存储库
510
- *
511
- * Please refer to HUAWEI cloud API Explorer for details.
512
- *
513
- * @summary 创建存储库
514
- * @param {VaultCreateReq} createVaultRequestBody 存储库创建参数
515
- * @param {*} [options] Override http request option.
516
- * @throws {RequiredError}
517
- */
518
- public createVault(createVaultRequest?: CreateVaultRequest): Promise<CreateVaultResponse> {
519
- const options = ParamCreater().createVault(createVaultRequest);
520
-
521
- // @ts-ignore
522
- options['responseHeaders'] = [''];
523
-
524
- return this.hcClient.sendRequest(options);
525
- }
526
-
527
- /**
528
- * 一个资源上最多有10个标签。
529
- * 此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。
530
- *
531
- * Please refer to HUAWEI cloud API Explorer for details.
532
- *
533
- * @summary 添加存储库资源标签
534
- * @param {string} vaultId 资源id
535
- * @param {VaultTagsCreateReq} [createVaultTagsRequestBody] 添加存储库资源标签参数
536
- * @param {*} [options] Override http request option.
537
- * @throws {RequiredError}
538
- */
539
- public createVaultTags(createVaultTagsRequest?: CreateVaultTagsRequest): Promise<CreateVaultTagsResponse> {
540
- const options = ParamCreater().createVaultTags(createVaultTagsRequest);
541
-
542
- // @ts-ignore
543
- options['responseHeaders'] = [''];
544
-
545
- return this.hcClient.sendRequest(options);
546
- }
547
-
548
- /**
549
- * 删除单个备份。
550
- *
551
- * Please refer to HUAWEI cloud API Explorer for details.
552
- *
553
- * @summary 删除备份
554
- * @param {string} backupId 指定删除的备份ID
555
- * @param {*} [options] Override http request option.
556
- * @throws {RequiredError}
557
- */
558
- public deleteBackup(deleteBackupRequest?: DeleteBackupRequest): Promise<DeleteBackupResponse> {
559
- const options = ParamCreater().deleteBackup(deleteBackupRequest);
560
-
561
- // @ts-ignore
562
- options['responseHeaders'] = [''];
563
-
564
- return this.hcClient.sendRequest(options);
565
- }
566
-
567
- /**
568
- * 删除指定的备份共享成员
569
- *
570
- * Please refer to HUAWEI cloud API Explorer for details.
571
- *
572
- * @summary 删除指定备份成员
573
- * @param {string} backupId 备份副本id
574
- * @param {string} memberId 成员id
575
- * @param {*} [options] Override http request option.
576
- * @throws {RequiredError}
577
- */
578
- public deleteMember(deleteMemberRequest?: DeleteMemberRequest): Promise<DeleteMemberResponse> {
579
- const options = ParamCreater().deleteMember(deleteMemberRequest);
580
-
581
- // @ts-ignore
582
- options['responseHeaders'] = [''];
583
-
584
- return this.hcClient.sendRequest(options);
585
- }
586
-
587
- /**
588
- * 删除策略
589
- *
590
- * Please refer to HUAWEI cloud API Explorer for details.
591
- *
592
- * @summary 删除策略
593
- * @param {string} policyId 策略ID
594
- * @param {*} [options] Override http request option.
595
- * @throws {RequiredError}
596
- */
597
- public deletePolicy(deletePolicyRequest?: DeletePolicyRequest): Promise<DeletePolicyResponse> {
598
- const options = ParamCreater().deletePolicy(deletePolicyRequest);
599
-
600
- // @ts-ignore
601
- options['responseHeaders'] = [''];
602
-
603
- return this.hcClient.sendRequest(options);
604
- }
605
-
606
- /**
607
- * 删除存储库。若删除储存库,将一并删除存储库中的所有备份。
608
- *
609
- * Please refer to HUAWEI cloud API Explorer for details.
610
- *
611
- * @summary 删除存储库
612
- * @param {string} vaultId 存储库ID
613
- * @param {*} [options] Override http request option.
614
- * @throws {RequiredError}
615
- */
616
- public deleteVault(deleteVaultRequest?: DeleteVaultRequest): Promise<DeleteVaultResponse> {
617
- const options = ParamCreater().deleteVault(deleteVaultRequest);
618
-
619
- // @ts-ignore
620
- options['responseHeaders'] = [''];
621
-
622
- return this.hcClient.sendRequest(options);
623
- }
624
-
625
- /**
626
- * 幂等接口:删除时,如果删除的标签不存在,返回404。Key不能为空或者空字符串。
627
- *
628
- * Please refer to HUAWEI cloud API Explorer for details.
629
- *
630
- * @summary 删除存储库资源标签
631
- * @param {string} key 不能为空或空字符串,不检查长度和字符集,去掉key前后的空格后检查,去掉key前后的空格后使用。 即使底层存在非法的tag也要能删。
632
- * @param {string} vaultId 资源id
633
- * @param {*} [options] Override http request option.
634
- * @throws {RequiredError}
635
- */
636
- public deleteVaultTag(deleteVaultTagRequest?: DeleteVaultTagRequest): Promise<DeleteVaultTagResponse> {
637
- const options = ParamCreater().deleteVaultTag(deleteVaultTagRequest);
638
-
639
- // @ts-ignore
640
- options['responseHeaders'] = [''];
641
-
642
- return this.hcClient.sendRequest(options);
643
- }
644
-
645
- /**
646
- * 存储库解除策略
647
- *
648
- * Please refer to HUAWEI cloud API Explorer for details.
649
- *
650
- * @summary 解除存储库策略
651
- * @param {string} vaultId 存储库ID
652
- * @param {VaultDissociate} disassociateVaultPolicyRequestBody 解除策略参数
653
- * @param {*} [options] Override http request option.
654
- * @throws {RequiredError}
655
- */
656
- public disassociateVaultPolicy(disassociateVaultPolicyRequest?: DisassociateVaultPolicyRequest): Promise<DisassociateVaultPolicyResponse> {
657
- const options = ParamCreater().disassociateVaultPolicy(disassociateVaultPolicyRequest);
658
-
659
- // @ts-ignore
660
- options['responseHeaders'] = [''];
661
-
662
- return this.hcClient.sendRequest(options);
663
- }
664
-
665
- /**
666
- * 同步线下混合云VMware备份副本
667
- *
668
- * Please refer to HUAWEI cloud API Explorer for details.
669
- *
670
- * @summary 同步备份
671
- * @param {BackupSyncReq} importBackupRequestBody 同步备份请求体
672
- * @param {*} [options] Override http request option.
673
- * @throws {RequiredError}
674
- */
675
- public importBackup(importBackupRequest?: ImportBackupRequest): Promise<ImportBackupResponse> {
676
- const options = ParamCreater().importBackup(importBackupRequest);
677
-
678
- // @ts-ignore
679
- options['responseHeaders'] = [''];
680
-
681
- return this.hcClient.sendRequest(options);
682
- }
683
-
684
- /**
685
- * 针对vault同步备份副本
686
- *
687
- * Please refer to HUAWEI cloud API Explorer for details.
688
- *
689
- * @summary 同步备份还原点
690
- * @param {SyncReq} importCheckpointRequestBody This is a auto create Body Object
691
- * @param {*} [options] Override http request option.
692
- * @throws {RequiredError}
693
- */
694
- public importCheckpoint(importCheckpointRequest?: ImportCheckpointRequest): Promise<ImportCheckpointResponse> {
695
- const options = ParamCreater().importCheckpoint(importCheckpointRequest);
696
-
697
- // @ts-ignore
698
- options['responseHeaders'] = [''];
699
-
700
- return this.hcClient.sendRequest(options);
701
- }
702
-
703
- /**
704
- * 查询客户端列表
705
- *
706
- * Please refer to HUAWEI cloud API Explorer for details.
707
- *
708
- * @summary 查询客户端列表
709
- * @param {string} [limit] 每页显示条目数,正整数
710
- * @param {number} [offset] 偏移值,正整数
711
- * @param {string} [status] 状态
712
- * @param {string} [agentId] 客户端ID
713
- * @param {*} [options] Override http request option.
714
- * @throws {RequiredError}
715
- */
716
- public listAgent(listAgentRequest?: ListAgentRequest): Promise<ListAgentResponse> {
717
- const options = ParamCreater().listAgent(listAgentRequest);
718
-
719
- // @ts-ignore
720
- options['responseHeaders'] = [''];
721
-
722
- return this.hcClient.sendRequest(options);
723
- }
724
-
725
- /**
726
- * 查询所有副本
727
- *
728
- * Please refer to HUAWEI cloud API Explorer for details.
729
- *
730
- * @summary 查询所有备份
731
- * @param {string} [checkpointId] 还原点ID
732
- * @param {boolean} [dec] 专属云 (专属云场景使用,非专属云场景不生效)
733
- * @param {string} [endTime] 备份产生时间范围的结束时间,格式为%YYYY-%mm-%ddT%HH:%MM:%SSZ,例如2018-02-01T12:00:00Z
734
- * @param {'backup' | 'replication'} [imageType] 备份类型
735
- * @param {number} [limit] 每页显示的条目数量,正整数
736
- * @param {string} [marker] 上一次查询最后一条的id
737
- * @param {string} [name] 名称
738
- * @param {number} [offset] 偏移值,正整数
739
- * @param {string} [resourceAz] 支持按az来过滤
740
- * @param {string} [resourceId] 资源ID
741
- * @param {string} [resourceName] 资源名称
742
- * @param {'OS::Cinder::Volume' | 'OS::Nova::Server' | 'OS::Workspace::DesktopV2'} [resourceType] 资源类型: 云服务器: OS::Nova::Server, 云硬盘: OS::Cinder::Volume, 云桌面:OS::Workspace::DesktopV2
743
- * @param {string} [sort] sort的内容为一组由逗号分隔的属性及可选排序方向组成,形如&lt;key1&gt;[:&lt;direction&gt;],&lt;key2&gt;[:&lt;direction&gt;],其中direction的取值为asc (升序) 或 desc (降序),如没有传入direction参数,默认为降序,sort内容的长度限制为255个字符。key取值范围:[created_at,updated_at,name,status,protected_at,id]
744
- * @param {string} [startTime] 备份产生时间范围的开始时间,格式为%YYYY-%mm-%ddT%HH:%MM:%SSZ,例如2018-02-01T12:00:00Z
745
- * @param {'available' | 'protecting' | 'deleting' | 'restoring' | 'error' | 'waiting_protect' | 'waiting_delete' | 'waiting_restore'} [status] 状态。 调用API时,支持通过传多个status值进行过滤。例如:status&#x3D;available&amp;status&#x3D;error
746
- * @param {string} [vaultId] 存储库ID
747
- * @param {string} [enterpriseProjectId] 企业项目id或all_granted_eps,all_granted_eps表示查询用户有权限的所有企业项目id
748
- * @param {'all_granted' | 'private' | 'shared'} [ownType] 持有类型,私有的private/共享的shared/全部all_granted,默认只查询private。
749
- * @param {'pending' | 'accepted' | 'rejected'} [memberStatus] 共享状态
750
- * @param {string} [parentId] 父备份ID
751
- * @param {string} [usedPercent] 根据存储库使用率过滤备份,取值范围 [1, 100],含1和100。例如,used_percent&#x3D;80,表示筛选所属存储库使用率大于等于80%的所有备份。
752
- * @param {boolean} [showReplication] 是否返回复制记录
753
- * @param {boolean} [incremental] 是否是增备
754
- * @param {*} [options] Override http request option.
755
- * @throws {RequiredError}
756
- */
757
- public listBackups(listBackupsRequest?: ListBackupsRequest): Promise<ListBackupsResponse> {
758
- const options = ParamCreater().listBackups(listBackupsRequest);
759
-
760
- // @ts-ignore
761
- options['responseHeaders'] = [''];
762
-
763
- return this.hcClient.sendRequest(options);
764
- }
765
-
766
- /**
767
- * 根据指定租户名称查询项目列表。
768
- *
769
- * Please refer to HUAWEI cloud API Explorer for details.
770
- *
771
- * @summary 查询租户项目列表
772
- * @param {string} domainName 租户名称
773
- * @param {*} [options] Override http request option.
774
- * @throws {RequiredError}
775
- */
776
- public listDomainProjects(listDomainProjectsRequest?: ListDomainProjectsRequest): Promise<ListDomainProjectsResponse> {
777
- const options = ParamCreater().listDomainProjects(listDomainProjectsRequest);
778
-
779
- // @ts-ignore
780
- options['responseHeaders'] = [''];
781
-
782
- return this.hcClient.sendRequest(options);
783
- }
784
-
785
- /**
786
- * 查询其他区域的存储库列表
787
- *
788
- * Please refer to HUAWEI cloud API Explorer for details.
789
- *
790
- * @summary 查询其他区域存储库列表
791
- * @param {string} externalProjectId 其他区域的项目ID
792
- * @param {string} regionId 区域ID
793
- * @param {number} [limit] 每页显示条目数
794
- * @param {number} [offset] 偏移值
795
- * @param {'backup;replication;hybrid'} [protectType] [保护类型。取值为backup,replication和hybrid。](tag:hws,hws_hk) [保护类型。取值为backup和replication。](tag:ocb) [保护类型。取值为backup。](tag:g42,hk-g42,sbc,dt,fcs_vm,ctc,tm,tlf,cmcc,hcso_dt)
796
- * @param {string} [objcetType] 资源类型
797
- * @param {string} [cloudType] [云类型。取值为public和hybrid。](tag:hws,hws_hk) [云类型。取值为public。](tag:g42,hk-g42,sbc,dt,fcs_vm,ctc,ocb,tm,tlf,cmcc,hcso_dt)
798
- * @param {string} [vaultId] 存储库ID,指定存储ID时其他过滤条件不生效。
799
- * @param {*} [options] Override http request option.
800
- * @throws {RequiredError}
801
- */
802
- public listExternalVault(listExternalVaultRequest?: ListExternalVaultRequest): Promise<ListExternalVaultResponse> {
803
- const options = ParamCreater().listExternalVault(listExternalVaultRequest);
804
-
805
- // @ts-ignore
806
- options['responseHeaders'] = [''];
807
-
808
- return this.hcClient.sendRequest(options);
809
- }
810
-
811
- /**
812
- * 查询任务列表
813
- *
814
- * Please refer to HUAWEI cloud API Explorer for details.
815
- *
816
- * @summary 查询任务列表
817
- * @param {string} [endTime] 任务结束时间,格式为%YYYY-%mm-%ddT%HH:%MM:%SSZ,例如2018-02-01T12:00:00Z
818
- * @param {number} [limit] 每页显示的条目数量,正整数
819
- * @param {number} [offset] 偏移值,正整数
820
- * @param {'backup' | 'copy' | 'replication' | 'delete' | 'restore' | 'vault_delete' | 'remove_resource' | 'sync'} [operationType] 任务类型
821
- * @param {string} [providerId] 备份提供商ID
822
- * @param {string} [resourceId] 该任务操作的资源ID
823
- * @param {string} [resourceName] 该任务操作的资源名称
824
- * @param {string} [startTime] 任务开始时间,格式为%YYYY-%mm-%ddT%HH:%MM:%SSZ,例如2018-01-01T12:00:00Z
825
- * @param {'success' | 'skipped' | 'failed' | 'running' | 'timeout' | 'waiting'} [status] 任务状态
826
- * @param {string} [vaultId] 存储库ID,该任务操作的资源所属绑定的存储库。
827
- * @param {string} [vaultName] 存储库名称,该任务操作资源所绑定的存储库名称。
828
- * @param {string} [enterpriseProjectId] 企业项目id或all_granted_eps,all_granted_eps表示查询用户有权限的所有企业项目id
829
- * @param {*} [options] Override http request option.
830
- * @throws {RequiredError}
831
- */
832
- public listOpLogs(listOpLogsRequest?: ListOpLogsRequest): Promise<ListOpLogsResponse> {
833
- const options = ParamCreater().listOpLogs(listOpLogsRequest);
834
-
835
- // @ts-ignore
836
- options['responseHeaders'] = [''];
837
-
838
- return this.hcClient.sendRequest(options);
839
- }
840
-
841
- /**
842
- * 查询策略列表
843
- *
844
- * Please refer to HUAWEI cloud API Explorer for details.
845
- *
846
- * @summary 查询策略列表
847
- * @param {'backup' | 'replication'} [operationType] 策略类型:备份(backup)、复制(replication)
848
- * @param {string} [vaultId] 存储库ID
849
- * @param {*} [options] Override http request option.
850
- * @throws {RequiredError}
851
- */
852
- public listPolicies(listPoliciesRequest?: ListPoliciesRequest): Promise<ListPoliciesResponse> {
853
- const options = ParamCreater().listPolicies(listPoliciesRequest);
854
-
855
- // @ts-ignore
856
- options['responseHeaders'] = [''];
857
-
858
- return this.hcClient.sendRequest(options);
859
- }
860
-
861
- /**
862
- * 查询租户的企业项目信息
863
- *
864
- * Please refer to HUAWEI cloud API Explorer for details.
865
- *
866
- * @summary 查询租户的项目信息
867
- * @param {*} [options] Override http request option.
868
- * @throws {RequiredError}
869
- */
870
- public listProjects(): Promise<ListProjectsResponse> {
871
- const options = ParamCreater().listProjects();
872
-
873
- // @ts-ignore
874
- options['responseHeaders'] = [''];
875
-
876
- return this.hcClient.sendRequest(options);
877
- }
878
-
879
- /**
880
- * 查询可保护性资源列表
881
- *
882
- * Please refer to HUAWEI cloud API Explorer for details.
883
- *
884
- * @summary 查询可保护资源
885
- * @param {'server' | 'disk'} protectableType 对象类型
886
- * @param {number} [limit] 每页显示的条目数量,每页最多支持50条
887
- * @param {string} [marker] 上一次查询最后一条的ID
888
- * @param {string} [name] 按名称过滤
889
- * @param {number} [offset] 偏移值
890
- * @param {string} [status] 资源的状态,如available,error 等
891
- * @param {string} [id] 根据资源id过滤
892
- * @param {string} [serverId] 根据该id过滤属于该服务器的所有磁盘,支持企业多项目的用户才能传入此参数
893
- * @param {*} [options] Override http request option.
894
- * @throws {RequiredError}
895
- */
896
- public listProtectable(listProtectableRequest?: ListProtectableRequest): Promise<ListProtectableResponse> {
897
- const options = ParamCreater().listProtectable(listProtectableRequest);
898
-
899
- // @ts-ignore
900
- options['responseHeaders'] = [''];
901
-
902
- return this.hcClient.sendRequest(options);
903
- }
904
-
905
- /**
906
- * 查询存储库列表
907
- *
908
- * Please refer to HUAWEI cloud API Explorer for details.
909
- *
910
- * @summary 查询存储库列表
911
- * @param {number} [limit] 每页显示条目数,正整数
912
- * @param {string} [name] 存储库名称
913
- * @param {number} [offset] 偏移值,正整数
914
- * @param {'public' | 'hybrid'} [cloudType] 云类型
915
- * @param {'backup' | 'replication'} [protectType] 保护类型
916
- * @param {string} [objectType] 对象类型:云服务器(server),云硬盘(disk),文件系统(turbo),云桌面(workspace),VMware(vmware),关系型数据库(rds),文件(file)。
917
- * @param {string} [enterpriseProjectId] 企业项目id或all_granted_eps,all_granted_eps表示查询用户有权限的所有企业项目id
918
- * @param {string} [id] 存储库ID
919
- * @param {string} [policyId] 策略ID
920
- * @param {string} [status] 状态
921
- * @param {string} [resourceIds] 资源id
922
- * @param {*} [options] Override http request option.
923
- * @throws {RequiredError}
924
- */
925
- public listVault(listVaultRequest?: ListVaultRequest): Promise<ListVaultResponse> {
926
- const options = ParamCreater().listVault(listVaultRequest);
927
-
928
- // @ts-ignore
929
- options['responseHeaders'] = [''];
930
-
931
- return this.hcClient.sendRequest(options);
932
- }
933
-
934
- /**
935
- * 将CSBS/VBS资源迁移到CBR。
936
- *
937
- * Please refer to HUAWEI cloud API Explorer for details.
938
- *
939
- * @summary 租户迁移
940
- * @param {DomainMigrate} migrateDomainRequestBody 迁移参数
941
- * @param {*} [options] Override http request option.
942
- * @throws {RequiredError}
943
- */
944
- public migrateDomain(migrateDomainRequest?: MigrateDomainRequest): Promise<MigrateDomainResponse> {
945
- const options = ParamCreater().migrateDomain(migrateDomainRequest);
946
-
947
- // @ts-ignore
948
- options['responseHeaders'] = [''];
949
-
950
- return this.hcClient.sendRequest(options);
951
- }
952
-
953
- /**
954
- * 支持资源迁移到另一个存储库,不删除备份。
955
- *
956
- * Please refer to HUAWEI cloud API Explorer for details.
957
- *
958
- * @summary 迁移资源
959
- * @param {string} vaultId
960
- * @param {VaultMigrateResourceReq} migrateVaultResourceRequestBody 迁移资源请求体
961
- * @param {*} [options] Override http request option.
962
- * @throws {RequiredError}
963
- */
964
- public migrateVaultResource(migrateVaultResourceRequest?: MigrateVaultResourceRequest): Promise<MigrateVaultResourceResponse> {
965
- const options = ParamCreater().migrateVaultResource(migrateVaultResourceRequest);
966
-
967
- // @ts-ignore
968
- options['responseHeaders'] = [''];
969
-
970
- return this.hcClient.sendRequest(options);
971
- }
972
-
973
- /**
974
- * 注册客户端,安装时候由Agent调用,无需手动注册。
975
- *
976
- * Please refer to HUAWEI cloud API Explorer for details.
977
- *
978
- * @summary 注册客户端
979
- * @param {AgentRegisterReq} registerAgentRequestBody 注册客户端参数明细
980
- * @param {*} [options] Override http request option.
981
- * @throws {RequiredError}
982
- */
983
- public registerAgent(registerAgentRequest?: RegisterAgentRequest): Promise<RegisterAgentResponse> {
984
- const options = ParamCreater().registerAgent(registerAgentRequest);
985
-
986
- // @ts-ignore
987
- options['responseHeaders'] = [''];
988
-
989
- return this.hcClient.sendRequest(options);
990
- }
991
-
992
- /**
993
- * 移除已添加的文件备份路径。
994
- *
995
- * Please refer to HUAWEI cloud API Explorer for details.
996
- *
997
- * @summary 移除备份路径
998
- * @param {string} agentId 客户端ID
999
- * @param {AgentRemovePathReq} removeAgentPathRequestBody 移除文件备份路径参数
1000
- * @param {*} [options] Override http request option.
1001
- * @throws {RequiredError}
1002
- */
1003
- public removeAgentPath(removeAgentPathRequest?: RemoveAgentPathRequest): Promise<RemoveAgentPathResponse> {
1004
- const options = ParamCreater().removeAgentPath(removeAgentPathRequest);
1005
-
1006
- // @ts-ignore
1007
- options['responseHeaders'] = [''];
1008
-
1009
- return this.hcClient.sendRequest(options);
1010
- }
1011
-
1012
- /**
1013
- * 移除存储库中的资源,若移除资源,将一并删除该资源在保管库中的备份
1014
- *
1015
- * Please refer to HUAWEI cloud API Explorer for details.
1016
- *
1017
- * @summary 移除资源
1018
- * @param {string} vaultId 存储库ID
1019
- * @param {VaultRemoveResourceReq} removeVaultResourceRequestBody 存储库移除资源参数
1020
- * @param {*} [options] Override http request option.
1021
- * @throws {RequiredError}
1022
- */
1023
- public removeVaultResource(removeVaultResourceRequest?: RemoveVaultResourceRequest): Promise<RemoveVaultResourceResponse> {
1024
- const options = ParamCreater().removeVaultResource(removeVaultResourceRequest);
1025
-
1026
- // @ts-ignore
1027
- options['responseHeaders'] = [''];
1028
-
1029
- return this.hcClient.sendRequest(options);
1030
- }
1031
-
1032
- /**
1033
- * 恢复备份数据
1034
- *
1035
- * Please refer to HUAWEI cloud API Explorer for details.
1036
- *
1037
- * @summary 备份恢复
1038
- * @param {string} backupId 备份id
1039
- * @param {BackupRestoreReq} restoreBackupRequestBody 恢复请求body
1040
- * @param {*} [options] Override http request option.
1041
- * @throws {RequiredError}
1042
- */
1043
- public restoreBackup(restoreBackupRequest?: RestoreBackupRequest): Promise<RestoreBackupResponse> {
1044
- const options = ParamCreater().restoreBackup(restoreBackupRequest);
1045
-
1046
- // @ts-ignore
1047
- options['responseHeaders'] = [''];
1048
-
1049
- return this.hcClient.sendRequest(options);
1050
- }
1051
-
1052
- /**
1053
- * 设置存储库资源是否自动备份
1054
- *
1055
- * Please refer to HUAWEI cloud API Explorer for details.
1056
- *
1057
- * @summary 设置存储库资源
1058
- * @param {string} vaultId 存储库id
1059
- * @param {VaultSetResourceReq} vaultSetResourceBody 存储库设置资源请求body
1060
- * @param {*} [options] Override http request option.
1061
- * @throws {RequiredError}
1062
- */
1063
- public setVaultResource(setVaultResourceRequest?: SetVaultResourceRequest): Promise<SetVaultResourceResponse> {
1064
- const options = ParamCreater().setVaultResource(setVaultResourceRequest);
1065
-
1066
- // @ts-ignore
1067
- options['responseHeaders'] = [''];
1068
-
1069
- return this.hcClient.sendRequest(options);
1070
- }
1071
-
1072
- /**
1073
- * 查询指定客户端
1074
- *
1075
- * Please refer to HUAWEI cloud API Explorer for details.
1076
- *
1077
- * @summary 查询指定客户端
1078
- * @param {string} agentId 客户端ID
1079
- * @param {*} [options] Override http request option.
1080
- * @throws {RequiredError}
1081
- */
1082
- public showAgent(showAgentRequest?: ShowAgentRequest): Promise<ShowAgentResponse> {
1083
- const options = ParamCreater().showAgent(showAgentRequest);
1084
-
1085
- // @ts-ignore
1086
- options['responseHeaders'] = [''];
1087
-
1088
- return this.hcClient.sendRequest(options);
1089
- }
1090
-
1091
- /**
1092
- * 根据指定id查询单个副本。
1093
- *
1094
- * Please refer to HUAWEI cloud API Explorer for details.
1095
- *
1096
- * @summary 查询指定备份
1097
- * @param {string} backupId 备份ID
1098
- * @param {*} [options] Override http request option.
1099
- * @throws {RequiredError}
1100
- */
1101
- public showBackup(showBackupRequest?: ShowBackupRequest): Promise<ShowBackupResponse> {
1102
- const options = ParamCreater().showBackup(showBackupRequest);
1103
-
1104
- // @ts-ignore
1105
- options['responseHeaders'] = [''];
1106
-
1107
- return this.hcClient.sendRequest(options);
1108
- }
1109
-
1110
- /**
1111
- * 根据还原点ID查询指定还原点
1112
- *
1113
- * Please refer to HUAWEI cloud API Explorer for details.
1114
- *
1115
- * @summary 查询备份还原点
1116
- * @param {string} checkpointId 还原点ID
1117
- * @param {*} [options] Override http request option.
1118
- * @throws {RequiredError}
1119
- */
1120
- public showCheckpoint(showCheckpointRequest?: ShowCheckpointRequest): Promise<ShowCheckpointResponse> {
1121
- const options = ParamCreater().showCheckpoint(showCheckpointRequest);
1122
-
1123
- // @ts-ignore
1124
- options['responseHeaders'] = [''];
1125
-
1126
- return this.hcClient.sendRequest(options);
1127
- }
1128
-
1129
- /**
1130
- * 由控制台调用的内部接口,用于仅在查询共享备份时获取源project_id的域名信息。
1131
- *
1132
- * Please refer to HUAWEI cloud API Explorer for details.
1133
- *
1134
- * @summary 查询租户信息
1135
- * @param {string} sourceProjectId 源项目ID
1136
- * @param {*} [options] Override http request option.
1137
- * @throws {RequiredError}
1138
- */
1139
- public showDomain(showDomainRequest?: ShowDomainRequest): Promise<ShowDomainResponse> {
1140
- const options = ParamCreater().showDomain(showDomainRequest);
1141
-
1142
- // @ts-ignore
1143
- options['responseHeaders'] = [''];
1144
-
1145
- return this.hcClient.sendRequest(options);
1146
- }
1147
-
1148
- /**
1149
- * 获取备份成员的详情
1150
- *
1151
- * Please refer to HUAWEI cloud API Explorer for details.
1152
- *
1153
- * @summary 获取备份成员详情
1154
- * @param {string} backupId 备份副本id
1155
- * @param {string} memberId 成员id,为接收方的project_id
1156
- * @param {*} [options] Override http request option.
1157
- * @throws {RequiredError}
1158
- */
1159
- public showMemberDetail(showMemberDetailRequest?: ShowMemberDetailRequest): Promise<ShowMemberDetailResponse> {
1160
- const options = ParamCreater().showMemberDetail(showMemberDetailRequest);
1161
-
1162
- // @ts-ignore
1163
- options['responseHeaders'] = [''];
1164
-
1165
- return this.hcClient.sendRequest(options);
1166
- }
1167
-
1168
- /**
1169
- * 获取备份共享成员的列表信息
1170
- *
1171
- * Please refer to HUAWEI cloud API Explorer for details.
1172
- *
1173
- * @summary 获取备份成员列表
1174
- * @param {string} backupId 备份id
1175
- * @param {string} [destProjectId] 接受备份共享的项目id
1176
- * @param {string} [imageId] 接受的共享备份副本注册的镜像id
1177
- * @param {string} [status] 备份共享状态
1178
- * @param {string} [vaultId] 目标端接受共享备份的存储库id,仅支持uuid
1179
- * @param {number} [limit] 每页显示的条目数量,正整数
1180
- * @param {string} [marker] 上一次查询最后一条的id,仅支持uuid
1181
- * @param {number} [offset] 偏移值,正整数
1182
- * @param {string} [sort] sort的内容为一组由逗号分隔的属性及可选排序方向组成,形如&lt;key1&gt;[:&lt;direction&gt;],&lt;key2&gt;[:&lt;direction&gt;],其中direction的取值为asc (升序) 或 desc (降序),如没有传入direction参数,默认为降序,sort内容的长度限制为255个字符。
1183
- * @param {*} [options] Override http request option.
1184
- * @throws {RequiredError}
1185
- */
1186
- public showMembersDetail(showMembersDetailRequest?: ShowMembersDetailRequest): Promise<ShowMembersDetailResponse> {
1187
- const options = ParamCreater().showMembersDetail(showMembersDetailRequest);
1188
-
1189
- // @ts-ignore
1190
- options['responseHeaders'] = [''];
1191
-
1192
- return this.hcClient.sendRequest(options);
1193
- }
1194
-
1195
- /**
1196
- * 查询备份时资源的元数据
1197
- *
1198
- * Please refer to HUAWEI cloud API Explorer for details.
1199
- *
1200
- * @summary 查询备份元数据
1201
- * @param {string} backupId 备份ID
1202
- * @param {*} [options] Override http request option.
1203
- * @throws {RequiredError}
1204
- */
1205
- public showMetadata(showMetadataRequest?: ShowMetadataRequest): Promise<ShowMetadataResponse> {
1206
- const options = ParamCreater().showMetadata(showMetadataRequest);
1207
-
1208
- // @ts-ignore
1209
- options['responseHeaders'] = [''];
1210
-
1211
- return this.hcClient.sendRequest(options);
1212
- }
1213
-
1214
- /**
1215
- * 查询迁移结果
1216
- *
1217
- * Please refer to HUAWEI cloud API Explorer for details.
1218
- *
1219
- * @summary 查询迁移
1220
- * @param {boolean} [allRegions] 是否查询其他区域结果
1221
- * @param {*} [options] Override http request option.
1222
- * @throws {RequiredError}
1223
- */
1224
- public showMigrateStatus(showMigrateStatusRequest?: ShowMigrateStatusRequest): Promise<ShowMigrateStatusResponse> {
1225
- const options = ParamCreater().showMigrateStatus(showMigrateStatusRequest);
1226
-
1227
- // @ts-ignore
1228
- options['responseHeaders'] = [''];
1229
-
1230
- return this.hcClient.sendRequest(options);
1231
- }
1232
-
1233
- /**
1234
- * 根据指定任务ID查询任务
1235
- *
1236
- * Please refer to HUAWEI cloud API Explorer for details.
1237
- *
1238
- * @summary 查询单个任务
1239
- * @param {string} operationLogId 任务ID
1240
- * @param {*} [options] Override http request option.
1241
- * @throws {RequiredError}
1242
- */
1243
- public showOpLog(showOpLogRequest?: ShowOpLogRequest): Promise<ShowOpLogResponse> {
1244
- const options = ParamCreater().showOpLog(showOpLogRequest);
1245
-
1246
- // @ts-ignore
1247
- options['responseHeaders'] = [''];
1248
-
1249
- return this.hcClient.sendRequest(options);
1250
- }
1251
-
1252
- /**
1253
- * 查询单个策略
1254
- *
1255
- * Please refer to HUAWEI cloud API Explorer for details.
1256
- *
1257
- * @summary 查询单个策略
1258
- * @param {string} policyId 策略ID
1259
- * @param {*} [options] Override http request option.
1260
- * @throws {RequiredError}
1261
- */
1262
- public showPolicy(showPolicyRequest?: ShowPolicyRequest): Promise<ShowPolicyResponse> {
1263
- const options = ParamCreater().showPolicy(showPolicyRequest);
1264
-
1265
- // @ts-ignore
1266
- options['responseHeaders'] = [''];
1267
-
1268
- return this.hcClient.sendRequest(options);
1269
- }
1270
-
1271
- /**
1272
- * 根据ID查询可保护性资源
1273
- *
1274
- * Please refer to HUAWEI cloud API Explorer for details.
1275
- *
1276
- * @summary 查询指定可保护资源
1277
- * @param {string} instanceId 资源ID
1278
- * @param {'server' | 'disk'} protectableType 可保护性类型
1279
- * @param {*} [options] Override http request option.
1280
- * @throws {RequiredError}
1281
- */
1282
- public showProtectable(showProtectableRequest?: ShowProtectableRequest): Promise<ShowProtectableResponse> {
1283
- const options = ParamCreater().showProtectable(showProtectableRequest);
1284
-
1285
- // @ts-ignore
1286
- options['responseHeaders'] = [''];
1287
-
1288
- return this.hcClient.sendRequest(options);
1289
- }
1290
-
1291
- /**
1292
- * 查询本区域的复制能力
1293
- *
1294
- * Please refer to HUAWEI cloud API Explorer for details.
1295
- *
1296
- * @summary 查询复制能力
1297
- * @param {*} [options] Override http request option.
1298
- * @throws {RequiredError}
1299
- */
1300
- public showReplicationCapabilities(): Promise<ShowReplicationCapabilitiesResponse> {
1301
- const options = ParamCreater().showReplicationCapabilities();
1302
-
1303
- // @ts-ignore
1304
- options['responseHeaders'] = [''];
1305
-
1306
- return this.hcClient.sendRequest(options);
1307
- }
1308
-
1309
- /**
1310
- * 查询容量统计
1311
- *
1312
- * Please refer to HUAWEI cloud API Explorer for details.
1313
- *
1314
- * @summary 查询容量统计
1315
- * @param {number} [limit] 查询条数
1316
- * @param {number} [offset] 偏移值
1317
- * @param {string} [resourceId] 支持按照备份对象ID过滤
1318
- * @param {'OS::Nova::Server' | 'OS::Ironic::BareMetalServer'} [resourceType] 支持按照备份对象类型过滤
1319
- * @param {*} [options] Override http request option.
1320
- * @throws {RequiredError}
1321
- */
1322
- public showStorageUsage(showStorageUsageRequest?: ShowStorageUsageRequest): Promise<ShowStorageUsageResponse> {
1323
- const options = ParamCreater().showStorageUsage(showStorageUsageRequest);
1324
-
1325
- // @ts-ignore
1326
- options['responseHeaders'] = [''];
1327
-
1328
- return this.hcClient.sendRequest(options);
1329
- }
1330
-
1331
- /**
1332
- * 查询项目下所有存储库的总容量和总使用量
1333
- *
1334
- * Please refer to HUAWEI cloud API Explorer for details.
1335
- *
1336
- * @summary 存储库容量总览
1337
- * @param {*} [options] Override http request option.
1338
- * @throws {RequiredError}
1339
- */
1340
- public showSummary(): Promise<ShowSummaryResponse> {
1341
- const options = ParamCreater().showSummary();
1342
-
1343
- // @ts-ignore
1344
- options['responseHeaders'] = [''];
1345
-
1346
- return this.hcClient.sendRequest(options);
1347
- }
1348
-
1349
- /**
1350
- * 根据ID查询指定存储库
1351
- *
1352
- * Please refer to HUAWEI cloud API Explorer for details.
1353
- *
1354
- * @summary 查询指定存储库
1355
- * @param {string} vaultId 存储库ID
1356
- * @param {*} [options] Override http request option.
1357
- * @throws {RequiredError}
1358
- */
1359
- public showVault(showVaultRequest?: ShowVaultRequest): Promise<ShowVaultResponse> {
1360
- const options = ParamCreater().showVault(showVaultRequest);
1361
-
1362
- // @ts-ignore
1363
- options['responseHeaders'] = [''];
1364
-
1365
- return this.hcClient.sendRequest(options);
1366
- }
1367
-
1368
- /**
1369
- * 查询租户在指定Region和实例类型的所有标签集合
1370
- * 标签管理服务需要能够列出当前租户全部已使用的标签集合,为各服务Console打标签和过滤实例时提供标签联想功能
1371
- *
1372
- * Please refer to HUAWEI cloud API Explorer for details.
1373
- *
1374
- * @summary 查询存储库项目标签
1375
- * @param {*} [options] Override http request option.
1376
- * @throws {RequiredError}
1377
- */
1378
- public showVaultProjectTag(): Promise<ShowVaultProjectTagResponse> {
1379
- const options = ParamCreater().showVaultProjectTag();
1380
-
1381
- // @ts-ignore
1382
- options['responseHeaders'] = [''];
1383
-
1384
- return this.hcClient.sendRequest(options);
1385
- }
1386
-
1387
- /**
1388
- * 使用标签过滤实例
1389
- * 标签管理服务需要提供按标签过滤各服务实例并汇总显示在列表中,需要各服务提供查询能力
1390
- *
1391
- * Please refer to HUAWEI cloud API Explorer for details.
1392
- *
1393
- * @summary 查询存储库资源实例
1394
- * @param {VaultResourceInstancesReq} showVaultResourceInstancesRequestBody 查询存储库资源实例参数
1395
- * @param {*} [options] Override http request option.
1396
- * @throws {RequiredError}
1397
- */
1398
- public showVaultResourceInstances(showVaultResourceInstancesRequest?: ShowVaultResourceInstancesRequest): Promise<ShowVaultResourceInstancesResponse> {
1399
- const options = ParamCreater().showVaultResourceInstances(showVaultResourceInstancesRequest);
1400
-
1401
- // @ts-ignore
1402
- options['responseHeaders'] = [''];
1403
-
1404
- return this.hcClient.sendRequest(options);
1405
- }
1406
-
1407
- /**
1408
- * 查询指定实例的标签信息
1409
- * 标签管理服务需要使用该接口查询指定实例的全部标签数据
1410
- *
1411
- * Please refer to HUAWEI cloud API Explorer for details.
1412
- *
1413
- * @summary 查询存储库资源标签
1414
- * @param {string} vaultId 资源id
1415
- * @param {*} [options] Override http request option.
1416
- * @throws {RequiredError}
1417
- */
1418
- public showVaultTag(showVaultTagRequest?: ShowVaultTagRequest): Promise<ShowVaultTagResponse> {
1419
- const options = ParamCreater().showVaultTag(showVaultTagRequest);
1420
-
1421
- // @ts-ignore
1422
- options['responseHeaders'] = [''];
1423
-
1424
- return this.hcClient.sendRequest(options);
1425
- }
1426
-
1427
- /**
1428
- * 移除客户端,移除客户端时将会删除该客户端所有备份,请谨慎操作。
1429
- *
1430
- * Please refer to HUAWEI cloud API Explorer for details.
1431
- *
1432
- * @summary 移除客户端
1433
- * @param {string} agentId 客户端ID
1434
- * @param {*} [options] Override http request option.
1435
- * @throws {RequiredError}
1436
- */
1437
- public unregisterAgent(unregisterAgentRequest?: UnregisterAgentRequest): Promise<UnregisterAgentResponse> {
1438
- const options = ParamCreater().unregisterAgent(unregisterAgentRequest);
1439
-
1440
- // @ts-ignore
1441
- options['responseHeaders'] = [''];
1442
-
1443
- return this.hcClient.sendRequest(options);
1444
- }
1445
-
1446
- /**
1447
- * 修改客户端状态
1448
- *
1449
- * Please refer to HUAWEI cloud API Explorer for details.
1450
- *
1451
- * @summary 修改客户端
1452
- * @param {string} agentId
1453
- * @param {AgentUpdateReq} updateAgentRequestBody
1454
- * @param {*} [options] Override http request option.
1455
- * @throws {RequiredError}
1456
- */
1457
- public updateAgent(updateAgentRequest?: UpdateAgentRequest): Promise<UpdateAgentResponse> {
1458
- const options = ParamCreater().updateAgent(updateAgentRequest);
1459
-
1460
- // @ts-ignore
1461
- options['responseHeaders'] = [''];
1462
-
1463
- return this.hcClient.sendRequest(options);
1464
- }
1465
-
1466
- /**
1467
- * 根据备份id更改备份
1468
- *
1469
- * Please refer to HUAWEI cloud API Explorer for details.
1470
- *
1471
- * @summary 更新备份
1472
- * @param {string} backupId 备份ID
1473
- * @param {BackupUpdateReq} [backupUpdateRequestBody] 备份修改参数
1474
- * @param {*} [options] Override http request option.
1475
- * @throws {RequiredError}
1476
- */
1477
- public updateBackup(updateBackupRequest?: UpdateBackupRequest): Promise<UpdateBackupResponse> {
1478
- const options = ParamCreater().updateBackup(updateBackupRequest);
1479
-
1480
- // @ts-ignore
1481
- options['responseHeaders'] = [''];
1482
-
1483
- return this.hcClient.sendRequest(options);
1484
- }
1485
-
1486
- /**
1487
- * 更新备份共享成员的状态,需要接收方执行此API。
1488
- *
1489
- * Please refer to HUAWEI cloud API Explorer for details.
1490
- *
1491
- * @summary 更新备份成员状态
1492
- * @param {string} memberId 成员id,成员id与项目id为同一个。
1493
- * @param {string} backupId 备份副本id
1494
- * @param {UpdateMember} [updateMemberStatusRequestBody] 备份共享更新请求体
1495
- * @param {*} [options] Override http request option.
1496
- * @throws {RequiredError}
1497
- */
1498
- public updateMemberStatus(updateMemberStatusRequest?: UpdateMemberStatusRequest): Promise<UpdateMemberStatusResponse> {
1499
- const options = ParamCreater().updateMemberStatus(updateMemberStatusRequest);
1500
-
1501
- // @ts-ignore
1502
- options['responseHeaders'] = [''];
1503
-
1504
- return this.hcClient.sendRequest(options);
1505
- }
1506
-
1507
- /**
1508
- * 订单更新,支付cbc订单后,调用该接口更新包周期产品订单信息。
1509
- *
1510
- * Please refer to HUAWEI cloud API Explorer for details.
1511
- *
1512
- * @summary 变更
1513
- * @param {string} orderId 订单ID
1514
- * @param {CbcUpdate} updateOrderRequestBody 变更请求body
1515
- * @param {*} [options] Override http request option.
1516
- * @throws {RequiredError}
1517
- */
1518
- public updateOrder(updateOrderRequest?: UpdateOrderRequest): Promise<UpdateOrderResponse> {
1519
- const options = ParamCreater().updateOrder(updateOrderRequest);
1520
-
1521
- // @ts-ignore
1522
- options['responseHeaders'] = [''];
1523
-
1524
- return this.hcClient.sendRequest(options);
1525
- }
1526
-
1527
- /**
1528
- * 修改策略
1529
- *
1530
- * Please refer to HUAWEI cloud API Explorer for details.
1531
- *
1532
- * @summary 修改策略
1533
- * @param {string} policyId 策略ID
1534
- * @param {PolicyUpdateReq} updatePolicyRequestBody 修改策略body
1535
- * @param {*} [options] Override http request option.
1536
- * @throws {RequiredError}
1537
- */
1538
- public updatePolicy(updatePolicyRequest?: UpdatePolicyRequest): Promise<UpdatePolicyResponse> {
1539
- const options = ParamCreater().updatePolicy(updatePolicyRequest);
1540
-
1541
- // @ts-ignore
1542
- options['responseHeaders'] = [''];
1543
-
1544
- return this.hcClient.sendRequest(options);
1545
- }
1546
-
1547
- /**
1548
- * 根据存储库ID修改存储库
1549
- *
1550
- * Please refer to HUAWEI cloud API Explorer for details.
1551
- *
1552
- * @summary 修改存储库
1553
- * @param {string} vaultId 存储库ID
1554
- * @param {VaultUpdateReq} updateVaultRequestBody 存储修改参数
1555
- * @param {*} [options] Override http request option.
1556
- * @throws {RequiredError}
1557
- */
1558
- public updateVault(updateVaultRequest?: UpdateVaultRequest): Promise<UpdateVaultResponse> {
1559
- const options = ParamCreater().updateVault(updateVaultRequest);
1560
-
1561
- // @ts-ignore
1562
- options['responseHeaders'] = [''];
1563
-
1564
- return this.hcClient.sendRequest(options);
1565
- }
1566
- }
1567
-
1568
- export const ParamCreater = function () {
1569
- return {
1570
-
1571
- /**
1572
- * 对客户端新增备份路径,新增的路径不会校验是否存在。
1573
- *
1574
- * Please refer to HUAWEI cloud API Explorer for details.
1575
- */
1576
- addAgentPath(addAgentPathRequest?: AddAgentPathRequest) {
1577
- const options = {
1578
- method: "POST",
1579
- url: "/v3/{project_id}/agents/{agent_id}/add-path",
1580
- contentType: "application/json;charset=UTF-8",
1581
- queryParams: {},
1582
- pathParams: {},
1583
- headers: {},
1584
- data: {}
1585
- };
1586
- const localVarHeaderParameter = {} as any;
1587
-
1588
- let body: any;
1589
-
1590
- let agentId;
1591
-
1592
- if (addAgentPathRequest !== null && addAgentPathRequest !== undefined) {
1593
- if (addAgentPathRequest instanceof AddAgentPathRequest) {
1594
- agentId = addAgentPathRequest.agentId;
1595
- body = addAgentPathRequest.body
1596
- } else {
1597
- agentId = addAgentPathRequest['agent_id'];
1598
- body = addAgentPathRequest['body'];
1599
- }
1600
- }
1601
-
1602
-
1603
- if (agentId === null || agentId === undefined) {
1604
- throw new RequiredError('agentId','Required parameter agentId was null or undefined when calling addAgentPath.');
1605
- }
1606
- if (body === null || body === undefined) {
1607
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
1608
- }
1609
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
1610
-
1611
- options.data = body !== undefined ? body : {};
1612
- options.pathParams = { 'agent_id': agentId, };
1613
- options.headers = localVarHeaderParameter;
1614
- return options;
1615
- },
1616
-
1617
- /**
1618
- * 添加备份可共享的成员,只有云服务器备份可以添加备份共享成员,且仅支持在同一区域的不同用户间共享。
1619
- *
1620
- * Please refer to HUAWEI cloud API Explorer for details.
1621
- */
1622
- addMember(addMemberRequest?: AddMemberRequest) {
1623
- const options = {
1624
- method: "POST",
1625
- url: "/v3/{project_id}/backups/{backup_id}/members",
1626
- contentType: "application/json;charset=UTF-8",
1627
- queryParams: {},
1628
- pathParams: {},
1629
- headers: {},
1630
- data: {}
1631
- };
1632
- const localVarHeaderParameter = {} as any;
1633
-
1634
- let body: any;
1635
-
1636
- let backupId;
1637
-
1638
- if (addMemberRequest !== null && addMemberRequest !== undefined) {
1639
- if (addMemberRequest instanceof AddMemberRequest) {
1640
- backupId = addMemberRequest.backupId;
1641
- body = addMemberRequest.body
1642
- } else {
1643
- backupId = addMemberRequest['backup_id'];
1644
- body = addMemberRequest['body'];
1645
- }
1646
- }
1647
-
1648
-
1649
- if (backupId === null || backupId === undefined) {
1650
- throw new RequiredError('backupId','Required parameter backupId was null or undefined when calling addMember.');
1651
- }
1652
- if (body === null || body === undefined) {
1653
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
1654
- }
1655
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
1656
-
1657
- options.data = body !== undefined ? body : {};
1658
- options.pathParams = { 'backup_id': backupId, };
1659
- options.headers = localVarHeaderParameter;
1660
- return options;
1661
- },
1662
-
1663
- /**
1664
- * 存储库添加资源
1665
- *
1666
- * Please refer to HUAWEI cloud API Explorer for details.
1667
- */
1668
- addVaultResource(addVaultResourceRequest?: AddVaultResourceRequest) {
1669
- const options = {
1670
- method: "POST",
1671
- url: "/v3/{project_id}/vaults/{vault_id}/addresources",
1672
- contentType: "application/json;charset=UTF-8",
1673
- queryParams: {},
1674
- pathParams: {},
1675
- headers: {},
1676
- data: {}
1677
- };
1678
- const localVarHeaderParameter = {} as any;
1679
-
1680
- let body: any;
1681
-
1682
- let vaultId;
1683
-
1684
- if (addVaultResourceRequest !== null && addVaultResourceRequest !== undefined) {
1685
- if (addVaultResourceRequest instanceof AddVaultResourceRequest) {
1686
- vaultId = addVaultResourceRequest.vaultId;
1687
- body = addVaultResourceRequest.body
1688
- } else {
1689
- vaultId = addVaultResourceRequest['vault_id'];
1690
- body = addVaultResourceRequest['body'];
1691
- }
1692
- }
1693
-
1694
-
1695
- if (vaultId === null || vaultId === undefined) {
1696
- throw new RequiredError('vaultId','Required parameter vaultId was null or undefined when calling addVaultResource.');
1697
- }
1698
- if (body === null || body === undefined) {
1699
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
1700
- }
1701
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
1702
-
1703
- options.data = body !== undefined ? body : {};
1704
- options.pathParams = { 'vault_id': vaultId, };
1705
- options.headers = localVarHeaderParameter;
1706
- return options;
1707
- },
1708
-
1709
- /**
1710
- * 存储库设置策略
1711
- *
1712
- * Please refer to HUAWEI cloud API Explorer for details.
1713
- */
1714
- associateVaultPolicy(associateVaultPolicyRequest?: AssociateVaultPolicyRequest) {
1715
- const options = {
1716
- method: "POST",
1717
- url: "/v3/{project_id}/vaults/{vault_id}/associatepolicy",
1718
- contentType: "application/json;charset=UTF-8",
1719
- queryParams: {},
1720
- pathParams: {},
1721
- headers: {},
1722
- data: {}
1723
- };
1724
- const localVarHeaderParameter = {} as any;
1725
-
1726
- let body: any;
1727
-
1728
- let vaultId;
1729
-
1730
- if (associateVaultPolicyRequest !== null && associateVaultPolicyRequest !== undefined) {
1731
- if (associateVaultPolicyRequest instanceof AssociateVaultPolicyRequest) {
1732
- vaultId = associateVaultPolicyRequest.vaultId;
1733
- body = associateVaultPolicyRequest.body
1734
- } else {
1735
- vaultId = associateVaultPolicyRequest['vault_id'];
1736
- body = associateVaultPolicyRequest['body'];
1737
- }
1738
- }
1739
-
1740
-
1741
- if (vaultId === null || vaultId === undefined) {
1742
- throw new RequiredError('vaultId','Required parameter vaultId was null or undefined when calling associateVaultPolicy.');
1743
- }
1744
- if (body === null || body === undefined) {
1745
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
1746
- }
1747
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
1748
-
1749
- options.data = body !== undefined ? body : {};
1750
- options.pathParams = { 'vault_id': vaultId, };
1751
- options.headers = localVarHeaderParameter;
1752
- return options;
1753
- },
1754
-
1755
- /**
1756
- * 为指定实例批量添加或删除标签
1757
- * 标签管理服务需要使用该接口批量管理实例的标签。
1758
- * 一个资源上最多有10个标签。
1759
- * 此接口为幂等接口:
1760
- * 创建时如果请求体中存在重复key则报错。
1761
- * 创建时,不允许重复key,如果数据库存在就覆盖。
1762
- * 删除时,允许重复key。
1763
- * 删除时,如果删除的标签不存在,默认处理成功,删除时不对标签字符集范围做校验。key长度127个字符,value为255个字符。删除时tags结构体不能缺失,key不能为空,或者空字符串。
1764
- *
1765
- * Please refer to HUAWEI cloud API Explorer for details.
1766
- */
1767
- batchCreateAndDeleteVaultTags(batchCreateAndDeleteVaultTagsRequest?: BatchCreateAndDeleteVaultTagsRequest) {
1768
- const options = {
1769
- method: "POST",
1770
- url: "/v3/{project_id}/vault/{vault_id}/tags/action",
1771
- contentType: "application/json;charset=UTF-8",
1772
- queryParams: {},
1773
- pathParams: {},
1774
- headers: {},
1775
- data: {}
1776
- };
1777
- const localVarHeaderParameter = {} as any;
1778
-
1779
- let body: any;
1780
-
1781
- let vaultId;
1782
-
1783
- if (batchCreateAndDeleteVaultTagsRequest !== null && batchCreateAndDeleteVaultTagsRequest !== undefined) {
1784
- if (batchCreateAndDeleteVaultTagsRequest instanceof BatchCreateAndDeleteVaultTagsRequest) {
1785
- vaultId = batchCreateAndDeleteVaultTagsRequest.vaultId;
1786
- body = batchCreateAndDeleteVaultTagsRequest.body
1787
- } else {
1788
- vaultId = batchCreateAndDeleteVaultTagsRequest['vault_id'];
1789
- body = batchCreateAndDeleteVaultTagsRequest['body'];
1790
- }
1791
- }
1792
-
1793
-
1794
- if (vaultId === null || vaultId === undefined) {
1795
- throw new RequiredError('vaultId','Required parameter vaultId was null or undefined when calling batchCreateAndDeleteVaultTags.');
1796
- }
1797
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
1798
-
1799
- options.data = body !== undefined ? body : {};
1800
- options.pathParams = { 'vault_id': vaultId, };
1801
- options.headers = localVarHeaderParameter;
1802
- return options;
1803
- },
1804
-
1805
- /**
1806
- * 批量修改项目下所有存储库
1807
- *
1808
- * Please refer to HUAWEI cloud API Explorer for details.
1809
- */
1810
- batchUpdateVault(batchUpdateVaultRequest?: BatchUpdateVaultRequest) {
1811
- const options = {
1812
- method: "PUT",
1813
- url: "/v3/{project_id}/vaults/batch-update",
1814
- contentType: "application/json;charset=UTF-8",
1815
- queryParams: {},
1816
- pathParams: {},
1817
- headers: {},
1818
- data: {}
1819
- };
1820
- const localVarHeaderParameter = {} as any;
1821
-
1822
- let body: any;
1823
-
1824
- if (batchUpdateVaultRequest !== null && batchUpdateVaultRequest !== undefined) {
1825
- if (batchUpdateVaultRequest instanceof BatchUpdateVaultRequest) {
1826
- body = batchUpdateVaultRequest.body
1827
- } else {
1828
- body = batchUpdateVaultRequest['body'];
1829
- }
1830
- }
1831
-
1832
-
1833
- if (body === null || body === undefined) {
1834
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
1835
- }
1836
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
1837
-
1838
- options.data = body !== undefined ? body : {};
1839
- options.headers = localVarHeaderParameter;
1840
- return options;
1841
- },
1842
-
1843
- /**
1844
- * 检查应用一致性Agent状态
1845
- *
1846
- * Please refer to HUAWEI cloud API Explorer for details.
1847
- */
1848
- checkAgent(checkAgentRequest?: CheckAgentRequest) {
1849
- const options = {
1850
- method: "POST",
1851
- url: "/v3/{project_id}/agent/check",
1852
- contentType: "application/json;charset=UTF-8",
1853
- queryParams: {},
1854
- pathParams: {},
1855
- headers: {},
1856
- data: {}
1857
- };
1858
- const localVarHeaderParameter = {} as any;
1859
-
1860
- let body: any;
1861
-
1862
- if (checkAgentRequest !== null && checkAgentRequest !== undefined) {
1863
- if (checkAgentRequest instanceof CheckAgentRequest) {
1864
- body = checkAgentRequest.body
1865
- } else {
1866
- body = checkAgentRequest['body'];
1867
- }
1868
- }
1869
-
1870
-
1871
- if (body === null || body === undefined) {
1872
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
1873
- }
1874
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
1875
-
1876
- options.data = body !== undefined ? body : {};
1877
- options.headers = localVarHeaderParameter;
1878
- return options;
1879
- },
1880
-
1881
- /**
1882
- * 跨区域复制备份。
1883
- *
1884
- * Please refer to HUAWEI cloud API Explorer for details.
1885
- */
1886
- copyBackup(copyBackupRequest?: CopyBackupRequest) {
1887
- const options = {
1888
- method: "POST",
1889
- url: "/v3/{project_id}/backups/{backup_id}/replicate",
1890
- contentType: "application/json;charset=UTF-8",
1891
- queryParams: {},
1892
- pathParams: {},
1893
- headers: {},
1894
- data: {}
1895
- };
1896
- const localVarHeaderParameter = {} as any;
1897
-
1898
- let body: any;
1899
-
1900
- let backupId;
1901
-
1902
- if (copyBackupRequest !== null && copyBackupRequest !== undefined) {
1903
- if (copyBackupRequest instanceof CopyBackupRequest) {
1904
- backupId = copyBackupRequest.backupId;
1905
- body = copyBackupRequest.body
1906
- } else {
1907
- backupId = copyBackupRequest['backup_id'];
1908
- body = copyBackupRequest['body'];
1909
- }
1910
- }
1911
-
1912
-
1913
- if (backupId === null || backupId === undefined) {
1914
- throw new RequiredError('backupId','Required parameter backupId was null or undefined when calling copyBackup.');
1915
- }
1916
- if (body === null || body === undefined) {
1917
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
1918
- }
1919
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
1920
-
1921
- options.data = body !== undefined ? body : {};
1922
- options.pathParams = { 'backup_id': backupId, };
1923
- options.headers = localVarHeaderParameter;
1924
- return options;
1925
- },
1926
-
1927
- /**
1928
- * 执行复制
1929
- *
1930
- * Please refer to HUAWEI cloud API Explorer for details.
1931
- */
1932
- copyCheckpoint(copyCheckpointRequest?: CopyCheckpointRequest) {
1933
- const options = {
1934
- method: "POST",
1935
- url: "/v3/{project_id}/checkpoints/replicate",
1936
- contentType: "application/json;charset=UTF-8",
1937
- queryParams: {},
1938
- pathParams: {},
1939
- headers: {},
1940
- data: {}
1941
- };
1942
- const localVarHeaderParameter = {} as any;
1943
-
1944
- let body: any;
1945
-
1946
- if (copyCheckpointRequest !== null && copyCheckpointRequest !== undefined) {
1947
- if (copyCheckpointRequest instanceof CopyCheckpointRequest) {
1948
- body = copyCheckpointRequest.body
1949
- } else {
1950
- body = copyCheckpointRequest['body'];
1951
- }
1952
- }
1953
-
1954
-
1955
- if (body === null || body === undefined) {
1956
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
1957
- }
1958
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
1959
-
1960
- options.data = body !== undefined ? body : {};
1961
- options.headers = localVarHeaderParameter;
1962
- return options;
1963
- },
1964
-
1965
- /**
1966
- * 对存储库执行备份,生成备份还原点
1967
- *
1968
- * Please refer to HUAWEI cloud API Explorer for details.
1969
- */
1970
- createCheckpoint(createCheckpointRequest?: CreateCheckpointRequest) {
1971
- const options = {
1972
- method: "POST",
1973
- url: "/v3/{project_id}/checkpoints",
1974
- contentType: "application/json;charset=UTF-8",
1975
- queryParams: {},
1976
- pathParams: {},
1977
- headers: {},
1978
- data: {}
1979
- };
1980
- const localVarHeaderParameter = {} as any;
1981
-
1982
- let body: any;
1983
-
1984
- if (createCheckpointRequest !== null && createCheckpointRequest !== undefined) {
1985
- if (createCheckpointRequest instanceof CreateCheckpointRequest) {
1986
- body = createCheckpointRequest.body
1987
- } else {
1988
- body = createCheckpointRequest['body'];
1989
- }
1990
- }
1991
-
1992
-
1993
- if (body === null || body === undefined) {
1994
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
1995
- }
1996
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
1997
-
1998
- options.data = body !== undefined ? body : {};
1999
- options.headers = localVarHeaderParameter;
2000
- return options;
2001
- },
2002
-
2003
- /**
2004
- * 创建策略,策略分为备份策略和复制策略。
2005
- *
2006
- * Please refer to HUAWEI cloud API Explorer for details.
2007
- */
2008
- createPolicy(createPolicyRequest?: CreatePolicyRequest) {
2009
- const options = {
2010
- method: "POST",
2011
- url: "/v3/{project_id}/policies",
2012
- contentType: "application/json;charset=UTF-8",
2013
- queryParams: {},
2014
- pathParams: {},
2015
- headers: {},
2016
- data: {}
2017
- };
2018
- const localVarHeaderParameter = {} as any;
2019
-
2020
- let body: any;
2021
-
2022
- if (createPolicyRequest !== null && createPolicyRequest !== undefined) {
2023
- if (createPolicyRequest instanceof CreatePolicyRequest) {
2024
- body = createPolicyRequest.body
2025
- } else {
2026
- body = createPolicyRequest['body'];
2027
- }
2028
- }
2029
-
2030
-
2031
- if (body === null || body === undefined) {
2032
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
2033
- }
2034
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
2035
-
2036
- options.data = body !== undefined ? body : {};
2037
- options.headers = localVarHeaderParameter;
2038
- return options;
2039
- },
2040
-
2041
- /**
2042
- * 创建包周期存储库
2043
- *
2044
- * Please refer to HUAWEI cloud API Explorer for details.
2045
- */
2046
- createPostPaidVault(createPostPaidVaultRequest?: CreatePostPaidVaultRequest) {
2047
- const options = {
2048
- method: "POST",
2049
- url: "/v3/{project_id}/vaults/order",
2050
- contentType: "application/json;charset=UTF-8",
2051
- queryParams: {},
2052
- pathParams: {},
2053
- headers: {},
2054
- data: {}
2055
- };
2056
- const localVarHeaderParameter = {} as any;
2057
-
2058
- let body: any;
2059
-
2060
- if (createPostPaidVaultRequest !== null && createPostPaidVaultRequest !== undefined) {
2061
- if (createPostPaidVaultRequest instanceof CreatePostPaidVaultRequest) {
2062
- body = createPostPaidVaultRequest.body
2063
- } else {
2064
- body = createPostPaidVaultRequest['body'];
2065
- }
2066
- }
2067
-
2068
-
2069
- if (body === null || body === undefined) {
2070
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
2071
- }
2072
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
2073
-
2074
- options.data = body !== undefined ? body : {};
2075
- options.headers = localVarHeaderParameter;
2076
- return options;
2077
- },
2078
-
2079
- /**
2080
- * 创建存储库
2081
- *
2082
- * Please refer to HUAWEI cloud API Explorer for details.
2083
- */
2084
- createVault(createVaultRequest?: CreateVaultRequest) {
2085
- const options = {
2086
- method: "POST",
2087
- url: "/v3/{project_id}/vaults",
2088
- contentType: "application/json;charset=UTF-8",
2089
- queryParams: {},
2090
- pathParams: {},
2091
- headers: {},
2092
- data: {}
2093
- };
2094
- const localVarHeaderParameter = {} as any;
2095
-
2096
- let body: any;
2097
-
2098
- if (createVaultRequest !== null && createVaultRequest !== undefined) {
2099
- if (createVaultRequest instanceof CreateVaultRequest) {
2100
- body = createVaultRequest.body
2101
- } else {
2102
- body = createVaultRequest['body'];
2103
- }
2104
- }
2105
-
2106
-
2107
- if (body === null || body === undefined) {
2108
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
2109
- }
2110
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
2111
-
2112
- options.data = body !== undefined ? body : {};
2113
- options.headers = localVarHeaderParameter;
2114
- return options;
2115
- },
2116
-
2117
- /**
2118
- * 一个资源上最多有10个标签。
2119
- * 此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。
2120
- *
2121
- * Please refer to HUAWEI cloud API Explorer for details.
2122
- */
2123
- createVaultTags(createVaultTagsRequest?: CreateVaultTagsRequest) {
2124
- const options = {
2125
- method: "POST",
2126
- url: "/v3/{project_id}/vault/{vault_id}/tags",
2127
- contentType: "application/json;charset=UTF-8",
2128
- queryParams: {},
2129
- pathParams: {},
2130
- headers: {},
2131
- data: {}
2132
- };
2133
- const localVarHeaderParameter = {} as any;
2134
-
2135
- let body: any;
2136
-
2137
- let vaultId;
2138
-
2139
- if (createVaultTagsRequest !== null && createVaultTagsRequest !== undefined) {
2140
- if (createVaultTagsRequest instanceof CreateVaultTagsRequest) {
2141
- vaultId = createVaultTagsRequest.vaultId;
2142
- body = createVaultTagsRequest.body
2143
- } else {
2144
- vaultId = createVaultTagsRequest['vault_id'];
2145
- body = createVaultTagsRequest['body'];
2146
- }
2147
- }
2148
-
2149
-
2150
- if (vaultId === null || vaultId === undefined) {
2151
- throw new RequiredError('vaultId','Required parameter vaultId was null or undefined when calling createVaultTags.');
2152
- }
2153
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
2154
-
2155
- options.data = body !== undefined ? body : {};
2156
- options.pathParams = { 'vault_id': vaultId, };
2157
- options.headers = localVarHeaderParameter;
2158
- return options;
2159
- },
2160
-
2161
- /**
2162
- * 删除单个备份。
2163
- *
2164
- * Please refer to HUAWEI cloud API Explorer for details.
2165
- */
2166
- deleteBackup(deleteBackupRequest?: DeleteBackupRequest) {
2167
- const options = {
2168
- method: "DELETE",
2169
- url: "/v3/{project_id}/backups/{backup_id}",
2170
- contentType: "application/json",
2171
- queryParams: {},
2172
- pathParams: {},
2173
- headers: {}
2174
- };
2175
- const localVarHeaderParameter = {} as any;
2176
-
2177
-
2178
- let backupId;
2179
-
2180
- if (deleteBackupRequest !== null && deleteBackupRequest !== undefined) {
2181
- if (deleteBackupRequest instanceof DeleteBackupRequest) {
2182
- backupId = deleteBackupRequest.backupId;
2183
- } else {
2184
- backupId = deleteBackupRequest['backup_id'];
2185
- }
2186
- }
2187
-
2188
-
2189
- if (backupId === null || backupId === undefined) {
2190
- throw new RequiredError('backupId','Required parameter backupId was null or undefined when calling deleteBackup.');
2191
- }
2192
-
2193
- options.pathParams = { 'backup_id': backupId, };
2194
- options.headers = localVarHeaderParameter;
2195
- return options;
2196
- },
2197
-
2198
- /**
2199
- * 删除指定的备份共享成员
2200
- *
2201
- * Please refer to HUAWEI cloud API Explorer for details.
2202
- */
2203
- deleteMember(deleteMemberRequest?: DeleteMemberRequest) {
2204
- const options = {
2205
- method: "DELETE",
2206
- url: "/v3/{project_id}/backups/{backup_id}/members/{member_id}",
2207
- contentType: "application/json",
2208
- queryParams: {},
2209
- pathParams: {},
2210
- headers: {}
2211
- };
2212
- const localVarHeaderParameter = {} as any;
2213
-
2214
-
2215
- let backupId;
2216
-
2217
- let memberId;
2218
-
2219
- if (deleteMemberRequest !== null && deleteMemberRequest !== undefined) {
2220
- if (deleteMemberRequest instanceof DeleteMemberRequest) {
2221
- backupId = deleteMemberRequest.backupId;
2222
- memberId = deleteMemberRequest.memberId;
2223
- } else {
2224
- backupId = deleteMemberRequest['backup_id'];
2225
- memberId = deleteMemberRequest['member_id'];
2226
- }
2227
- }
2228
-
2229
-
2230
- if (backupId === null || backupId === undefined) {
2231
- throw new RequiredError('backupId','Required parameter backupId was null or undefined when calling deleteMember.');
2232
- }
2233
- if (memberId === null || memberId === undefined) {
2234
- throw new RequiredError('memberId','Required parameter memberId was null or undefined when calling deleteMember.');
2235
- }
2236
-
2237
- options.pathParams = { 'backup_id': backupId,'member_id': memberId, };
2238
- options.headers = localVarHeaderParameter;
2239
- return options;
2240
- },
2241
-
2242
- /**
2243
- * 删除策略
2244
- *
2245
- * Please refer to HUAWEI cloud API Explorer for details.
2246
- */
2247
- deletePolicy(deletePolicyRequest?: DeletePolicyRequest) {
2248
- const options = {
2249
- method: "DELETE",
2250
- url: "/v3/{project_id}/policies/{policy_id}",
2251
- contentType: "application/json",
2252
- queryParams: {},
2253
- pathParams: {},
2254
- headers: {}
2255
- };
2256
- const localVarHeaderParameter = {} as any;
2257
-
2258
-
2259
- let policyId;
2260
-
2261
- if (deletePolicyRequest !== null && deletePolicyRequest !== undefined) {
2262
- if (deletePolicyRequest instanceof DeletePolicyRequest) {
2263
- policyId = deletePolicyRequest.policyId;
2264
- } else {
2265
- policyId = deletePolicyRequest['policy_id'];
2266
- }
2267
- }
2268
-
2269
-
2270
- if (policyId === null || policyId === undefined) {
2271
- throw new RequiredError('policyId','Required parameter policyId was null or undefined when calling deletePolicy.');
2272
- }
2273
-
2274
- options.pathParams = { 'policy_id': policyId, };
2275
- options.headers = localVarHeaderParameter;
2276
- return options;
2277
- },
2278
-
2279
- /**
2280
- * 删除存储库。若删除储存库,将一并删除存储库中的所有备份。
2281
- *
2282
- * Please refer to HUAWEI cloud API Explorer for details.
2283
- */
2284
- deleteVault(deleteVaultRequest?: DeleteVaultRequest) {
2285
- const options = {
2286
- method: "DELETE",
2287
- url: "/v3/{project_id}/vaults/{vault_id}",
2288
- contentType: "application/json",
2289
- queryParams: {},
2290
- pathParams: {},
2291
- headers: {}
2292
- };
2293
- const localVarHeaderParameter = {} as any;
2294
-
2295
-
2296
- let vaultId;
2297
-
2298
- if (deleteVaultRequest !== null && deleteVaultRequest !== undefined) {
2299
- if (deleteVaultRequest instanceof DeleteVaultRequest) {
2300
- vaultId = deleteVaultRequest.vaultId;
2301
- } else {
2302
- vaultId = deleteVaultRequest['vault_id'];
2303
- }
2304
- }
2305
-
2306
-
2307
- if (vaultId === null || vaultId === undefined) {
2308
- throw new RequiredError('vaultId','Required parameter vaultId was null or undefined when calling deleteVault.');
2309
- }
2310
-
2311
- options.pathParams = { 'vault_id': vaultId, };
2312
- options.headers = localVarHeaderParameter;
2313
- return options;
2314
- },
2315
-
2316
- /**
2317
- * 幂等接口:删除时,如果删除的标签不存在,返回404。Key不能为空或者空字符串。
2318
- *
2319
- * Please refer to HUAWEI cloud API Explorer for details.
2320
- */
2321
- deleteVaultTag(deleteVaultTagRequest?: DeleteVaultTagRequest) {
2322
- const options = {
2323
- method: "DELETE",
2324
- url: "/v3/{project_id}/vault/{vault_id}/tags/{key}",
2325
- contentType: "application/json",
2326
- queryParams: {},
2327
- pathParams: {},
2328
- headers: {}
2329
- };
2330
- const localVarHeaderParameter = {} as any;
2331
-
2332
-
2333
- let key;
2334
-
2335
- let vaultId;
2336
-
2337
- if (deleteVaultTagRequest !== null && deleteVaultTagRequest !== undefined) {
2338
- if (deleteVaultTagRequest instanceof DeleteVaultTagRequest) {
2339
- key = deleteVaultTagRequest.key;
2340
- vaultId = deleteVaultTagRequest.vaultId;
2341
- } else {
2342
- key = deleteVaultTagRequest['key'];
2343
- vaultId = deleteVaultTagRequest['vault_id'];
2344
- }
2345
- }
2346
-
2347
-
2348
- if (key === null || key === undefined) {
2349
- throw new RequiredError('key','Required parameter key was null or undefined when calling deleteVaultTag.');
2350
- }
2351
- if (vaultId === null || vaultId === undefined) {
2352
- throw new RequiredError('vaultId','Required parameter vaultId was null or undefined when calling deleteVaultTag.');
2353
- }
2354
-
2355
- options.pathParams = { 'key': key,'vault_id': vaultId, };
2356
- options.headers = localVarHeaderParameter;
2357
- return options;
2358
- },
2359
-
2360
- /**
2361
- * 存储库解除策略
2362
- *
2363
- * Please refer to HUAWEI cloud API Explorer for details.
2364
- */
2365
- disassociateVaultPolicy(disassociateVaultPolicyRequest?: DisassociateVaultPolicyRequest) {
2366
- const options = {
2367
- method: "POST",
2368
- url: "/v3/{project_id}/vaults/{vault_id}/dissociatepolicy",
2369
- contentType: "application/json;charset=UTF-8",
2370
- queryParams: {},
2371
- pathParams: {},
2372
- headers: {},
2373
- data: {}
2374
- };
2375
- const localVarHeaderParameter = {} as any;
2376
-
2377
- let body: any;
2378
-
2379
- let vaultId;
2380
-
2381
- if (disassociateVaultPolicyRequest !== null && disassociateVaultPolicyRequest !== undefined) {
2382
- if (disassociateVaultPolicyRequest instanceof DisassociateVaultPolicyRequest) {
2383
- vaultId = disassociateVaultPolicyRequest.vaultId;
2384
- body = disassociateVaultPolicyRequest.body
2385
- } else {
2386
- vaultId = disassociateVaultPolicyRequest['vault_id'];
2387
- body = disassociateVaultPolicyRequest['body'];
2388
- }
2389
- }
2390
-
2391
-
2392
- if (vaultId === null || vaultId === undefined) {
2393
- throw new RequiredError('vaultId','Required parameter vaultId was null or undefined when calling disassociateVaultPolicy.');
2394
- }
2395
- if (body === null || body === undefined) {
2396
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
2397
- }
2398
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
2399
-
2400
- options.data = body !== undefined ? body : {};
2401
- options.pathParams = { 'vault_id': vaultId, };
2402
- options.headers = localVarHeaderParameter;
2403
- return options;
2404
- },
2405
-
2406
- /**
2407
- * 同步线下混合云VMware备份副本
2408
- *
2409
- * Please refer to HUAWEI cloud API Explorer for details.
2410
- */
2411
- importBackup(importBackupRequest?: ImportBackupRequest) {
2412
- const options = {
2413
- method: "POST",
2414
- url: "/v3/{project_id}/backups/sync",
2415
- contentType: "application/json;charset=UTF-8",
2416
- queryParams: {},
2417
- pathParams: {},
2418
- headers: {},
2419
- data: {}
2420
- };
2421
- const localVarHeaderParameter = {} as any;
2422
-
2423
- let body: any;
2424
-
2425
- if (importBackupRequest !== null && importBackupRequest !== undefined) {
2426
- if (importBackupRequest instanceof ImportBackupRequest) {
2427
- body = importBackupRequest.body
2428
- } else {
2429
- body = importBackupRequest['body'];
2430
- }
2431
- }
2432
-
2433
-
2434
- if (body === null || body === undefined) {
2435
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
2436
- }
2437
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
2438
-
2439
- options.data = body !== undefined ? body : {};
2440
- options.headers = localVarHeaderParameter;
2441
- return options;
2442
- },
2443
-
2444
- /**
2445
- * 针对vault同步备份副本
2446
- *
2447
- * Please refer to HUAWEI cloud API Explorer for details.
2448
- */
2449
- importCheckpoint(importCheckpointRequest?: ImportCheckpointRequest) {
2450
- const options = {
2451
- method: "POST",
2452
- url: "/v3/{project_id}/checkpoints/sync",
2453
- contentType: "application/json;charset=UTF-8",
2454
- queryParams: {},
2455
- pathParams: {},
2456
- headers: {},
2457
- data: {}
2458
- };
2459
- const localVarHeaderParameter = {} as any;
2460
-
2461
- let body: any;
2462
-
2463
- if (importCheckpointRequest !== null && importCheckpointRequest !== undefined) {
2464
- if (importCheckpointRequest instanceof ImportCheckpointRequest) {
2465
- body = importCheckpointRequest.body
2466
- } else {
2467
- body = importCheckpointRequest['body'];
2468
- }
2469
- }
2470
-
2471
-
2472
- if (body === null || body === undefined) {
2473
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
2474
- }
2475
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
2476
-
2477
- options.data = body !== undefined ? body : {};
2478
- options.headers = localVarHeaderParameter;
2479
- return options;
2480
- },
2481
-
2482
- /**
2483
- * 查询客户端列表
2484
- *
2485
- * Please refer to HUAWEI cloud API Explorer for details.
2486
- */
2487
- listAgent(listAgentRequest?: ListAgentRequest) {
2488
- const options = {
2489
- method: "GET",
2490
- url: "/v3/{project_id}/agents",
2491
- contentType: "application/json",
2492
- queryParams: {},
2493
- pathParams: {},
2494
- headers: {}
2495
- };
2496
- const localVarHeaderParameter = {} as any;
2497
- const localVarQueryParameter = {} as any;
2498
-
2499
- let limit;
2500
-
2501
- let offset;
2502
-
2503
- let status;
2504
-
2505
- let agentId;
2506
-
2507
- if (listAgentRequest !== null && listAgentRequest !== undefined) {
2508
- if (listAgentRequest instanceof ListAgentRequest) {
2509
- limit = listAgentRequest.limit;
2510
- offset = listAgentRequest.offset;
2511
- status = listAgentRequest.status;
2512
- agentId = listAgentRequest.agentId;
2513
- } else {
2514
- limit = listAgentRequest['limit'];
2515
- offset = listAgentRequest['offset'];
2516
- status = listAgentRequest['status'];
2517
- agentId = listAgentRequest['agent_id'];
2518
- }
2519
- }
2520
-
2521
-
2522
- if (limit !== null && limit !== undefined) {
2523
- localVarQueryParameter['limit'] = limit;
2524
- }
2525
- if (offset !== null && offset !== undefined) {
2526
- localVarQueryParameter['offset'] = offset;
2527
- }
2528
- if (status !== null && status !== undefined) {
2529
- localVarQueryParameter['status'] = status;
2530
- }
2531
- if (agentId !== null && agentId !== undefined) {
2532
- localVarQueryParameter['agent_id'] = agentId;
2533
- }
2534
-
2535
- options.queryParams = localVarQueryParameter;
2536
- options.headers = localVarHeaderParameter;
2537
- return options;
2538
- },
2539
-
2540
- /**
2541
- * 查询所有副本
2542
- *
2543
- * Please refer to HUAWEI cloud API Explorer for details.
2544
- */
2545
- listBackups(listBackupsRequest?: ListBackupsRequest) {
2546
- const options = {
2547
- method: "GET",
2548
- url: "/v3/{project_id}/backups",
2549
- contentType: "application/json",
2550
- queryParams: {},
2551
- pathParams: {},
2552
- headers: {}
2553
- };
2554
- const localVarHeaderParameter = {} as any;
2555
- const localVarQueryParameter = {} as any;
2556
-
2557
- let checkpointId;
2558
-
2559
- let dec;
2560
-
2561
- let endTime;
2562
-
2563
- let imageType;
2564
-
2565
- let limit;
2566
-
2567
- let marker;
2568
-
2569
- let name;
2570
-
2571
- let offset;
2572
-
2573
- let resourceAz;
2574
-
2575
- let resourceId;
2576
-
2577
- let resourceName;
2578
-
2579
- let resourceType;
2580
-
2581
- let sort;
2582
-
2583
- let startTime;
2584
-
2585
- let status;
2586
-
2587
- let vaultId;
2588
-
2589
- let enterpriseProjectId;
2590
-
2591
- let ownType;
2592
-
2593
- let memberStatus;
2594
-
2595
- let parentId;
2596
-
2597
- let usedPercent;
2598
-
2599
- let showReplication;
2600
-
2601
- let incremental;
2602
-
2603
- if (listBackupsRequest !== null && listBackupsRequest !== undefined) {
2604
- if (listBackupsRequest instanceof ListBackupsRequest) {
2605
- checkpointId = listBackupsRequest.checkpointId;
2606
- dec = listBackupsRequest.dec;
2607
- endTime = listBackupsRequest.endTime;
2608
- imageType = listBackupsRequest.imageType;
2609
- limit = listBackupsRequest.limit;
2610
- marker = listBackupsRequest.marker;
2611
- name = listBackupsRequest.name;
2612
- offset = listBackupsRequest.offset;
2613
- resourceAz = listBackupsRequest.resourceAz;
2614
- resourceId = listBackupsRequest.resourceId;
2615
- resourceName = listBackupsRequest.resourceName;
2616
- resourceType = listBackupsRequest.resourceType;
2617
- sort = listBackupsRequest.sort;
2618
- startTime = listBackupsRequest.startTime;
2619
- status = listBackupsRequest.status;
2620
- vaultId = listBackupsRequest.vaultId;
2621
- enterpriseProjectId = listBackupsRequest.enterpriseProjectId;
2622
- ownType = listBackupsRequest.ownType;
2623
- memberStatus = listBackupsRequest.memberStatus;
2624
- parentId = listBackupsRequest.parentId;
2625
- usedPercent = listBackupsRequest.usedPercent;
2626
- showReplication = listBackupsRequest.showReplication;
2627
- incremental = listBackupsRequest.incremental;
2628
- } else {
2629
- checkpointId = listBackupsRequest['checkpoint_id'];
2630
- dec = listBackupsRequest['dec'];
2631
- endTime = listBackupsRequest['end_time'];
2632
- imageType = listBackupsRequest['image_type'];
2633
- limit = listBackupsRequest['limit'];
2634
- marker = listBackupsRequest['marker'];
2635
- name = listBackupsRequest['name'];
2636
- offset = listBackupsRequest['offset'];
2637
- resourceAz = listBackupsRequest['resource_az'];
2638
- resourceId = listBackupsRequest['resource_id'];
2639
- resourceName = listBackupsRequest['resource_name'];
2640
- resourceType = listBackupsRequest['resource_type'];
2641
- sort = listBackupsRequest['sort'];
2642
- startTime = listBackupsRequest['start_time'];
2643
- status = listBackupsRequest['status'];
2644
- vaultId = listBackupsRequest['vault_id'];
2645
- enterpriseProjectId = listBackupsRequest['enterprise_project_id'];
2646
- ownType = listBackupsRequest['own_type'];
2647
- memberStatus = listBackupsRequest['member_status'];
2648
- parentId = listBackupsRequest['parent_id'];
2649
- usedPercent = listBackupsRequest['used_percent'];
2650
- showReplication = listBackupsRequest['show_replication'];
2651
- incremental = listBackupsRequest['incremental'];
2652
- }
2653
- }
2654
-
2655
-
2656
- if (checkpointId !== null && checkpointId !== undefined) {
2657
- localVarQueryParameter['checkpoint_id'] = checkpointId;
2658
- }
2659
- if (dec !== null && dec !== undefined) {
2660
- localVarQueryParameter['dec'] = dec;
2661
- }
2662
- if (endTime !== null && endTime !== undefined) {
2663
- localVarQueryParameter['end_time'] = endTime;
2664
- }
2665
- if (imageType !== null && imageType !== undefined) {
2666
- localVarQueryParameter['image_type'] = imageType;
2667
- }
2668
- if (limit !== null && limit !== undefined) {
2669
- localVarQueryParameter['limit'] = limit;
2670
- }
2671
- if (marker !== null && marker !== undefined) {
2672
- localVarQueryParameter['marker'] = marker;
2673
- }
2674
- if (name !== null && name !== undefined) {
2675
- localVarQueryParameter['name'] = name;
2676
- }
2677
- if (offset !== null && offset !== undefined) {
2678
- localVarQueryParameter['offset'] = offset;
2679
- }
2680
- if (resourceAz !== null && resourceAz !== undefined) {
2681
- localVarQueryParameter['resource_az'] = resourceAz;
2682
- }
2683
- if (resourceId !== null && resourceId !== undefined) {
2684
- localVarQueryParameter['resource_id'] = resourceId;
2685
- }
2686
- if (resourceName !== null && resourceName !== undefined) {
2687
- localVarQueryParameter['resource_name'] = resourceName;
2688
- }
2689
- if (resourceType !== null && resourceType !== undefined) {
2690
- localVarQueryParameter['resource_type'] = resourceType;
2691
- }
2692
- if (sort !== null && sort !== undefined) {
2693
- localVarQueryParameter['sort'] = sort;
2694
- }
2695
- if (startTime !== null && startTime !== undefined) {
2696
- localVarQueryParameter['start_time'] = startTime;
2697
- }
2698
- if (status !== null && status !== undefined) {
2699
- localVarQueryParameter['status'] = status;
2700
- }
2701
- if (vaultId !== null && vaultId !== undefined) {
2702
- localVarQueryParameter['vault_id'] = vaultId;
2703
- }
2704
- if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
2705
- localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
2706
- }
2707
- if (ownType !== null && ownType !== undefined) {
2708
- localVarQueryParameter['own_type'] = ownType;
2709
- }
2710
- if (memberStatus !== null && memberStatus !== undefined) {
2711
- localVarQueryParameter['member_status'] = memberStatus;
2712
- }
2713
- if (parentId !== null && parentId !== undefined) {
2714
- localVarQueryParameter['parent_id'] = parentId;
2715
- }
2716
- if (usedPercent !== null && usedPercent !== undefined) {
2717
- localVarQueryParameter['used_percent'] = usedPercent;
2718
- }
2719
- if (showReplication !== null && showReplication !== undefined) {
2720
- localVarQueryParameter['show_replication'] = showReplication;
2721
- }
2722
- if (incremental !== null && incremental !== undefined) {
2723
- localVarQueryParameter['incremental'] = incremental;
2724
- }
2725
-
2726
- options.queryParams = localVarQueryParameter;
2727
- options.headers = localVarHeaderParameter;
2728
- return options;
2729
- },
2730
-
2731
- /**
2732
- * 根据指定租户名称查询项目列表。
2733
- *
2734
- * Please refer to HUAWEI cloud API Explorer for details.
2735
- */
2736
- listDomainProjects(listDomainProjectsRequest?: ListDomainProjectsRequest) {
2737
- const options = {
2738
- method: "GET",
2739
- url: "/v3/domain/{domain_name}/projects",
2740
- contentType: "application/json",
2741
- queryParams: {},
2742
- pathParams: {},
2743
- headers: {}
2744
- };
2745
- const localVarHeaderParameter = {} as any;
2746
-
2747
-
2748
- let domainName;
2749
-
2750
- if (listDomainProjectsRequest !== null && listDomainProjectsRequest !== undefined) {
2751
- if (listDomainProjectsRequest instanceof ListDomainProjectsRequest) {
2752
- domainName = listDomainProjectsRequest.domainName;
2753
- } else {
2754
- domainName = listDomainProjectsRequest['domain_name'];
2755
- }
2756
- }
2757
-
2758
-
2759
- if (domainName === null || domainName === undefined) {
2760
- throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling listDomainProjects.');
2761
- }
2762
-
2763
- options.pathParams = { 'domain_name': domainName, };
2764
- options.headers = localVarHeaderParameter;
2765
- return options;
2766
- },
2767
-
2768
- /**
2769
- * 查询其他区域的存储库列表
2770
- *
2771
- * Please refer to HUAWEI cloud API Explorer for details.
2772
- */
2773
- listExternalVault(listExternalVaultRequest?: ListExternalVaultRequest) {
2774
- const options = {
2775
- method: "GET",
2776
- url: "/v3/{project_id}/vaults/external",
2777
- contentType: "application/json",
2778
- queryParams: {},
2779
- pathParams: {},
2780
- headers: {}
2781
- };
2782
- const localVarHeaderParameter = {} as any;
2783
- const localVarQueryParameter = {} as any;
2784
-
2785
- let externalProjectId;
2786
-
2787
- let regionId;
2788
-
2789
- let limit;
2790
-
2791
- let offset;
2792
-
2793
- let protectType;
2794
-
2795
- let objcetType;
2796
-
2797
- let cloudType;
2798
-
2799
- let vaultId;
2800
-
2801
- if (listExternalVaultRequest !== null && listExternalVaultRequest !== undefined) {
2802
- if (listExternalVaultRequest instanceof ListExternalVaultRequest) {
2803
- externalProjectId = listExternalVaultRequest.externalProjectId;
2804
- regionId = listExternalVaultRequest.regionId;
2805
- limit = listExternalVaultRequest.limit;
2806
- offset = listExternalVaultRequest.offset;
2807
- protectType = listExternalVaultRequest.protectType;
2808
- objcetType = listExternalVaultRequest.objcetType;
2809
- cloudType = listExternalVaultRequest.cloudType;
2810
- vaultId = listExternalVaultRequest.vaultId;
2811
- } else {
2812
- externalProjectId = listExternalVaultRequest['external_project_id'];
2813
- regionId = listExternalVaultRequest['region_id'];
2814
- limit = listExternalVaultRequest['limit'];
2815
- offset = listExternalVaultRequest['offset'];
2816
- protectType = listExternalVaultRequest['protect_type'];
2817
- objcetType = listExternalVaultRequest['objcet_type'];
2818
- cloudType = listExternalVaultRequest['cloud_type'];
2819
- vaultId = listExternalVaultRequest['vault_id'];
2820
- }
2821
- }
2822
-
2823
-
2824
- if (externalProjectId === null || externalProjectId === undefined) {
2825
- throw new RequiredError('externalProjectId','Required parameter externalProjectId was null or undefined when calling listExternalVault.');
2826
- }
2827
- if (externalProjectId !== null && externalProjectId !== undefined) {
2828
- localVarQueryParameter['external_project_id'] = externalProjectId;
2829
- }
2830
- if (regionId === null || regionId === undefined) {
2831
- throw new RequiredError('regionId','Required parameter regionId was null or undefined when calling listExternalVault.');
2832
- }
2833
- if (regionId !== null && regionId !== undefined) {
2834
- localVarQueryParameter['region_id'] = regionId;
2835
- }
2836
- if (limit !== null && limit !== undefined) {
2837
- localVarQueryParameter['limit'] = limit;
2838
- }
2839
- if (offset !== null && offset !== undefined) {
2840
- localVarQueryParameter['offset'] = offset;
2841
- }
2842
- if (protectType !== null && protectType !== undefined) {
2843
- localVarQueryParameter['protect_type'] = protectType;
2844
- }
2845
- if (objcetType !== null && objcetType !== undefined) {
2846
- localVarQueryParameter['objcet_type'] = objcetType;
2847
- }
2848
- if (cloudType !== null && cloudType !== undefined) {
2849
- localVarQueryParameter['cloud_type'] = cloudType;
2850
- }
2851
- if (vaultId !== null && vaultId !== undefined) {
2852
- localVarQueryParameter['vault_id'] = vaultId;
2853
- }
2854
-
2855
- options.queryParams = localVarQueryParameter;
2856
- options.headers = localVarHeaderParameter;
2857
- return options;
2858
- },
2859
-
2860
- /**
2861
- * 查询任务列表
2862
- *
2863
- * Please refer to HUAWEI cloud API Explorer for details.
2864
- */
2865
- listOpLogs(listOpLogsRequest?: ListOpLogsRequest) {
2866
- const options = {
2867
- method: "GET",
2868
- url: "/v3/{project_id}/operation-logs",
2869
- contentType: "application/json",
2870
- queryParams: {},
2871
- pathParams: {},
2872
- headers: {}
2873
- };
2874
- const localVarHeaderParameter = {} as any;
2875
- const localVarQueryParameter = {} as any;
2876
-
2877
- let endTime;
2878
-
2879
- let limit;
2880
-
2881
- let offset;
2882
-
2883
- let operationType;
2884
-
2885
- let providerId;
2886
-
2887
- let resourceId;
2888
-
2889
- let resourceName;
2890
-
2891
- let startTime;
2892
-
2893
- let status;
2894
-
2895
- let vaultId;
2896
-
2897
- let vaultName;
2898
-
2899
- let enterpriseProjectId;
2900
-
2901
- if (listOpLogsRequest !== null && listOpLogsRequest !== undefined) {
2902
- if (listOpLogsRequest instanceof ListOpLogsRequest) {
2903
- endTime = listOpLogsRequest.endTime;
2904
- limit = listOpLogsRequest.limit;
2905
- offset = listOpLogsRequest.offset;
2906
- operationType = listOpLogsRequest.operationType;
2907
- providerId = listOpLogsRequest.providerId;
2908
- resourceId = listOpLogsRequest.resourceId;
2909
- resourceName = listOpLogsRequest.resourceName;
2910
- startTime = listOpLogsRequest.startTime;
2911
- status = listOpLogsRequest.status;
2912
- vaultId = listOpLogsRequest.vaultId;
2913
- vaultName = listOpLogsRequest.vaultName;
2914
- enterpriseProjectId = listOpLogsRequest.enterpriseProjectId;
2915
- } else {
2916
- endTime = listOpLogsRequest['end_time'];
2917
- limit = listOpLogsRequest['limit'];
2918
- offset = listOpLogsRequest['offset'];
2919
- operationType = listOpLogsRequest['operation_type'];
2920
- providerId = listOpLogsRequest['provider_id'];
2921
- resourceId = listOpLogsRequest['resource_id'];
2922
- resourceName = listOpLogsRequest['resource_name'];
2923
- startTime = listOpLogsRequest['start_time'];
2924
- status = listOpLogsRequest['status'];
2925
- vaultId = listOpLogsRequest['vault_id'];
2926
- vaultName = listOpLogsRequest['vault_name'];
2927
- enterpriseProjectId = listOpLogsRequest['enterprise_project_id'];
2928
- }
2929
- }
2930
-
2931
-
2932
- if (endTime !== null && endTime !== undefined) {
2933
- localVarQueryParameter['end_time'] = endTime;
2934
- }
2935
- if (limit !== null && limit !== undefined) {
2936
- localVarQueryParameter['limit'] = limit;
2937
- }
2938
- if (offset !== null && offset !== undefined) {
2939
- localVarQueryParameter['offset'] = offset;
2940
- }
2941
- if (operationType !== null && operationType !== undefined) {
2942
- localVarQueryParameter['operation_type'] = operationType;
2943
- }
2944
- if (providerId !== null && providerId !== undefined) {
2945
- localVarQueryParameter['provider_id'] = providerId;
2946
- }
2947
- if (resourceId !== null && resourceId !== undefined) {
2948
- localVarQueryParameter['resource_id'] = resourceId;
2949
- }
2950
- if (resourceName !== null && resourceName !== undefined) {
2951
- localVarQueryParameter['resource_name'] = resourceName;
2952
- }
2953
- if (startTime !== null && startTime !== undefined) {
2954
- localVarQueryParameter['start_time'] = startTime;
2955
- }
2956
- if (status !== null && status !== undefined) {
2957
- localVarQueryParameter['status'] = status;
2958
- }
2959
- if (vaultId !== null && vaultId !== undefined) {
2960
- localVarQueryParameter['vault_id'] = vaultId;
2961
- }
2962
- if (vaultName !== null && vaultName !== undefined) {
2963
- localVarQueryParameter['vault_name'] = vaultName;
2964
- }
2965
- if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
2966
- localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
2967
- }
2968
-
2969
- options.queryParams = localVarQueryParameter;
2970
- options.headers = localVarHeaderParameter;
2971
- return options;
2972
- },
2973
-
2974
- /**
2975
- * 查询策略列表
2976
- *
2977
- * Please refer to HUAWEI cloud API Explorer for details.
2978
- */
2979
- listPolicies(listPoliciesRequest?: ListPoliciesRequest) {
2980
- const options = {
2981
- method: "GET",
2982
- url: "/v3/{project_id}/policies",
2983
- contentType: "application/json",
2984
- queryParams: {},
2985
- pathParams: {},
2986
- headers: {}
2987
- };
2988
- const localVarHeaderParameter = {} as any;
2989
- const localVarQueryParameter = {} as any;
2990
-
2991
- let operationType;
2992
-
2993
- let vaultId;
2994
-
2995
- if (listPoliciesRequest !== null && listPoliciesRequest !== undefined) {
2996
- if (listPoliciesRequest instanceof ListPoliciesRequest) {
2997
- operationType = listPoliciesRequest.operationType;
2998
- vaultId = listPoliciesRequest.vaultId;
2999
- } else {
3000
- operationType = listPoliciesRequest['operation_type'];
3001
- vaultId = listPoliciesRequest['vault_id'];
3002
- }
3003
- }
3004
-
3005
-
3006
- if (operationType !== null && operationType !== undefined) {
3007
- localVarQueryParameter['operation_type'] = operationType;
3008
- }
3009
- if (vaultId !== null && vaultId !== undefined) {
3010
- localVarQueryParameter['vault_id'] = vaultId;
3011
- }
3012
-
3013
- options.queryParams = localVarQueryParameter;
3014
- options.headers = localVarHeaderParameter;
3015
- return options;
3016
- },
3017
-
3018
- /**
3019
- * 查询租户的企业项目信息
3020
- *
3021
- * Please refer to HUAWEI cloud API Explorer for details.
3022
- */
3023
- listProjects() {
3024
- const options = {
3025
- method: "GET",
3026
- url: "/v3/region-projects",
3027
- contentType: "application/json",
3028
- queryParams: {},
3029
- pathParams: {},
3030
- headers: {}
3031
- };
3032
- const localVarHeaderParameter = {} as any;
3033
-
3034
-
3035
- options.headers = localVarHeaderParameter;
3036
- return options;
3037
- },
3038
-
3039
- /**
3040
- * 查询可保护性资源列表
3041
- *
3042
- * Please refer to HUAWEI cloud API Explorer for details.
3043
- */
3044
- listProtectable(listProtectableRequest?: ListProtectableRequest) {
3045
- const options = {
3046
- method: "GET",
3047
- url: "/v3/{project_id}/protectables/{protectable_type}/instances",
3048
- contentType: "application/json",
3049
- queryParams: {},
3050
- pathParams: {},
3051
- headers: {}
3052
- };
3053
- const localVarHeaderParameter = {} as any;
3054
- const localVarQueryParameter = {} as any;
3055
-
3056
- let protectableType;
3057
-
3058
- let limit;
3059
-
3060
- let marker;
3061
-
3062
- let name;
3063
-
3064
- let offset;
3065
-
3066
- let status;
3067
-
3068
- let id;
3069
-
3070
- let serverId;
3071
-
3072
- if (listProtectableRequest !== null && listProtectableRequest !== undefined) {
3073
- if (listProtectableRequest instanceof ListProtectableRequest) {
3074
- protectableType = listProtectableRequest.protectableType;
3075
- limit = listProtectableRequest.limit;
3076
- marker = listProtectableRequest.marker;
3077
- name = listProtectableRequest.name;
3078
- offset = listProtectableRequest.offset;
3079
- status = listProtectableRequest.status;
3080
- id = listProtectableRequest.id;
3081
- serverId = listProtectableRequest.serverId;
3082
- } else {
3083
- protectableType = listProtectableRequest['protectable_type'];
3084
- limit = listProtectableRequest['limit'];
3085
- marker = listProtectableRequest['marker'];
3086
- name = listProtectableRequest['name'];
3087
- offset = listProtectableRequest['offset'];
3088
- status = listProtectableRequest['status'];
3089
- id = listProtectableRequest['id'];
3090
- serverId = listProtectableRequest['server_id'];
3091
- }
3092
- }
3093
-
3094
-
3095
- if (protectableType === null || protectableType === undefined) {
3096
- throw new RequiredError('protectableType','Required parameter protectableType was null or undefined when calling listProtectable.');
3097
- }
3098
- if (limit !== null && limit !== undefined) {
3099
- localVarQueryParameter['limit'] = limit;
3100
- }
3101
- if (marker !== null && marker !== undefined) {
3102
- localVarQueryParameter['marker'] = marker;
3103
- }
3104
- if (name !== null && name !== undefined) {
3105
- localVarQueryParameter['name'] = name;
3106
- }
3107
- if (offset !== null && offset !== undefined) {
3108
- localVarQueryParameter['offset'] = offset;
3109
- }
3110
- if (status !== null && status !== undefined) {
3111
- localVarQueryParameter['status'] = status;
3112
- }
3113
- if (id !== null && id !== undefined) {
3114
- localVarQueryParameter['id'] = id;
3115
- }
3116
- if (serverId !== null && serverId !== undefined) {
3117
- localVarQueryParameter['server_id'] = serverId;
3118
- }
3119
-
3120
- options.queryParams = localVarQueryParameter;
3121
- options.pathParams = { 'protectable_type': protectableType, };
3122
- options.headers = localVarHeaderParameter;
3123
- return options;
3124
- },
3125
-
3126
- /**
3127
- * 查询存储库列表
3128
- *
3129
- * Please refer to HUAWEI cloud API Explorer for details.
3130
- */
3131
- listVault(listVaultRequest?: ListVaultRequest) {
3132
- const options = {
3133
- method: "GET",
3134
- url: "/v3/{project_id}/vaults",
3135
- contentType: "application/json",
3136
- queryParams: {},
3137
- pathParams: {},
3138
- headers: {}
3139
- };
3140
- const localVarHeaderParameter = {} as any;
3141
- const localVarQueryParameter = {} as any;
3142
-
3143
- let limit;
3144
-
3145
- let name;
3146
-
3147
- let offset;
3148
-
3149
- let cloudType;
3150
-
3151
- let protectType;
3152
-
3153
- let objectType;
3154
-
3155
- let enterpriseProjectId;
3156
-
3157
- let id;
3158
-
3159
- let policyId;
3160
-
3161
- let status;
3162
-
3163
- let resourceIds;
3164
-
3165
- if (listVaultRequest !== null && listVaultRequest !== undefined) {
3166
- if (listVaultRequest instanceof ListVaultRequest) {
3167
- limit = listVaultRequest.limit;
3168
- name = listVaultRequest.name;
3169
- offset = listVaultRequest.offset;
3170
- cloudType = listVaultRequest.cloudType;
3171
- protectType = listVaultRequest.protectType;
3172
- objectType = listVaultRequest.objectType;
3173
- enterpriseProjectId = listVaultRequest.enterpriseProjectId;
3174
- id = listVaultRequest.id;
3175
- policyId = listVaultRequest.policyId;
3176
- status = listVaultRequest.status;
3177
- resourceIds = listVaultRequest.resourceIds;
3178
- } else {
3179
- limit = listVaultRequest['limit'];
3180
- name = listVaultRequest['name'];
3181
- offset = listVaultRequest['offset'];
3182
- cloudType = listVaultRequest['cloud_type'];
3183
- protectType = listVaultRequest['protect_type'];
3184
- objectType = listVaultRequest['object_type'];
3185
- enterpriseProjectId = listVaultRequest['enterprise_project_id'];
3186
- id = listVaultRequest['id'];
3187
- policyId = listVaultRequest['policy_id'];
3188
- status = listVaultRequest['status'];
3189
- resourceIds = listVaultRequest['resource_ids'];
3190
- }
3191
- }
3192
-
3193
-
3194
- if (limit !== null && limit !== undefined) {
3195
- localVarQueryParameter['limit'] = limit;
3196
- }
3197
- if (name !== null && name !== undefined) {
3198
- localVarQueryParameter['name'] = name;
3199
- }
3200
- if (offset !== null && offset !== undefined) {
3201
- localVarQueryParameter['offset'] = offset;
3202
- }
3203
- if (cloudType !== null && cloudType !== undefined) {
3204
- localVarQueryParameter['cloud_type'] = cloudType;
3205
- }
3206
- if (protectType !== null && protectType !== undefined) {
3207
- localVarQueryParameter['protect_type'] = protectType;
3208
- }
3209
- if (objectType !== null && objectType !== undefined) {
3210
- localVarQueryParameter['object_type'] = objectType;
3211
- }
3212
- if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
3213
- localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
3214
- }
3215
- if (id !== null && id !== undefined) {
3216
- localVarQueryParameter['id'] = id;
3217
- }
3218
- if (policyId !== null && policyId !== undefined) {
3219
- localVarQueryParameter['policy_id'] = policyId;
3220
- }
3221
- if (status !== null && status !== undefined) {
3222
- localVarQueryParameter['status'] = status;
3223
- }
3224
- if (resourceIds !== null && resourceIds !== undefined) {
3225
- localVarQueryParameter['resource_ids'] = resourceIds;
3226
- }
3227
-
3228
- options.queryParams = localVarQueryParameter;
3229
- options.headers = localVarHeaderParameter;
3230
- return options;
3231
- },
3232
-
3233
- /**
3234
- * 将CSBS/VBS资源迁移到CBR。
3235
- *
3236
- * Please refer to HUAWEI cloud API Explorer for details.
3237
- */
3238
- migrateDomain(migrateDomainRequest?: MigrateDomainRequest) {
3239
- const options = {
3240
- method: "POST",
3241
- url: "/v3/migrates",
3242
- contentType: "application/json",
3243
- queryParams: {},
3244
- pathParams: {},
3245
- headers: {},
3246
- data: {}
3247
- };
3248
- const localVarHeaderParameter = {} as any;
3249
-
3250
- let body: any;
3251
-
3252
- if (migrateDomainRequest !== null && migrateDomainRequest !== undefined) {
3253
- if (migrateDomainRequest instanceof MigrateDomainRequest) {
3254
- body = migrateDomainRequest.body
3255
- } else {
3256
- body = migrateDomainRequest['body'];
3257
- }
3258
- }
3259
-
3260
-
3261
- if (body === null || body === undefined) {
3262
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
3263
- }
3264
- localVarHeaderParameter['Content-Type'] = 'application/json';
3265
-
3266
- options.data = body !== undefined ? body : {};
3267
- options.headers = localVarHeaderParameter;
3268
- return options;
3269
- },
3270
-
3271
- /**
3272
- * 支持资源迁移到另一个存储库,不删除备份。
3273
- *
3274
- * Please refer to HUAWEI cloud API Explorer for details.
3275
- */
3276
- migrateVaultResource(migrateVaultResourceRequest?: MigrateVaultResourceRequest) {
3277
- const options = {
3278
- method: "POST",
3279
- url: "/v3/{project_id}/vaults/{vault_id}/migrateresources",
3280
- contentType: "application/json;charset=UTF-8",
3281
- queryParams: {},
3282
- pathParams: {},
3283
- headers: {},
3284
- data: {}
3285
- };
3286
- const localVarHeaderParameter = {} as any;
3287
-
3288
- let body: any;
3289
-
3290
- let vaultId;
3291
-
3292
- if (migrateVaultResourceRequest !== null && migrateVaultResourceRequest !== undefined) {
3293
- if (migrateVaultResourceRequest instanceof MigrateVaultResourceRequest) {
3294
- vaultId = migrateVaultResourceRequest.vaultId;
3295
- body = migrateVaultResourceRequest.body
3296
- } else {
3297
- vaultId = migrateVaultResourceRequest['vault_id'];
3298
- body = migrateVaultResourceRequest['body'];
3299
- }
3300
- }
3301
-
3302
-
3303
- if (vaultId === null || vaultId === undefined) {
3304
- throw new RequiredError('vaultId','Required parameter vaultId was null or undefined when calling migrateVaultResource.');
3305
- }
3306
- if (body === null || body === undefined) {
3307
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
3308
- }
3309
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
3310
-
3311
- options.data = body !== undefined ? body : {};
3312
- options.pathParams = { 'vault_id': vaultId, };
3313
- options.headers = localVarHeaderParameter;
3314
- return options;
3315
- },
3316
-
3317
- /**
3318
- * 注册客户端,安装时候由Agent调用,无需手动注册。
3319
- *
3320
- * Please refer to HUAWEI cloud API Explorer for details.
3321
- */
3322
- registerAgent(registerAgentRequest?: RegisterAgentRequest) {
3323
- const options = {
3324
- method: "POST",
3325
- url: "/v3/{project_id}/agents",
3326
- contentType: "application/json;charset=UTF-8",
3327
- queryParams: {},
3328
- pathParams: {},
3329
- headers: {},
3330
- data: {}
3331
- };
3332
- const localVarHeaderParameter = {} as any;
3333
-
3334
- let body: any;
3335
-
3336
- if (registerAgentRequest !== null && registerAgentRequest !== undefined) {
3337
- if (registerAgentRequest instanceof RegisterAgentRequest) {
3338
- body = registerAgentRequest.body
3339
- } else {
3340
- body = registerAgentRequest['body'];
3341
- }
3342
- }
3343
-
3344
-
3345
- if (body === null || body === undefined) {
3346
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
3347
- }
3348
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
3349
-
3350
- options.data = body !== undefined ? body : {};
3351
- options.headers = localVarHeaderParameter;
3352
- return options;
3353
- },
3354
-
3355
- /**
3356
- * 移除已添加的文件备份路径。
3357
- *
3358
- * Please refer to HUAWEI cloud API Explorer for details.
3359
- */
3360
- removeAgentPath(removeAgentPathRequest?: RemoveAgentPathRequest) {
3361
- const options = {
3362
- method: "POST",
3363
- url: "/v3/{project_id}/agents/{agent_id}/remove-path",
3364
- contentType: "application/json;charset=UTF-8",
3365
- queryParams: {},
3366
- pathParams: {},
3367
- headers: {},
3368
- data: {}
3369
- };
3370
- const localVarHeaderParameter = {} as any;
3371
-
3372
- let body: any;
3373
-
3374
- let agentId;
3375
-
3376
- if (removeAgentPathRequest !== null && removeAgentPathRequest !== undefined) {
3377
- if (removeAgentPathRequest instanceof RemoveAgentPathRequest) {
3378
- agentId = removeAgentPathRequest.agentId;
3379
- body = removeAgentPathRequest.body
3380
- } else {
3381
- agentId = removeAgentPathRequest['agent_id'];
3382
- body = removeAgentPathRequest['body'];
3383
- }
3384
- }
3385
-
3386
-
3387
- if (agentId === null || agentId === undefined) {
3388
- throw new RequiredError('agentId','Required parameter agentId was null or undefined when calling removeAgentPath.');
3389
- }
3390
- if (body === null || body === undefined) {
3391
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
3392
- }
3393
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
3394
-
3395
- options.data = body !== undefined ? body : {};
3396
- options.pathParams = { 'agent_id': agentId, };
3397
- options.headers = localVarHeaderParameter;
3398
- return options;
3399
- },
3400
-
3401
- /**
3402
- * 移除存储库中的资源,若移除资源,将一并删除该资源在保管库中的备份
3403
- *
3404
- * Please refer to HUAWEI cloud API Explorer for details.
3405
- */
3406
- removeVaultResource(removeVaultResourceRequest?: RemoveVaultResourceRequest) {
3407
- const options = {
3408
- method: "POST",
3409
- url: "/v3/{project_id}/vaults/{vault_id}/removeresources",
3410
- contentType: "application/json;charset=UTF-8",
3411
- queryParams: {},
3412
- pathParams: {},
3413
- headers: {},
3414
- data: {}
3415
- };
3416
- const localVarHeaderParameter = {} as any;
3417
-
3418
- let body: any;
3419
-
3420
- let vaultId;
3421
-
3422
- if (removeVaultResourceRequest !== null && removeVaultResourceRequest !== undefined) {
3423
- if (removeVaultResourceRequest instanceof RemoveVaultResourceRequest) {
3424
- vaultId = removeVaultResourceRequest.vaultId;
3425
- body = removeVaultResourceRequest.body
3426
- } else {
3427
- vaultId = removeVaultResourceRequest['vault_id'];
3428
- body = removeVaultResourceRequest['body'];
3429
- }
3430
- }
3431
-
3432
-
3433
- if (vaultId === null || vaultId === undefined) {
3434
- throw new RequiredError('vaultId','Required parameter vaultId was null or undefined when calling removeVaultResource.');
3435
- }
3436
- if (body === null || body === undefined) {
3437
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
3438
- }
3439
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
3440
-
3441
- options.data = body !== undefined ? body : {};
3442
- options.pathParams = { 'vault_id': vaultId, };
3443
- options.headers = localVarHeaderParameter;
3444
- return options;
3445
- },
3446
-
3447
- /**
3448
- * 恢复备份数据
3449
- *
3450
- * Please refer to HUAWEI cloud API Explorer for details.
3451
- */
3452
- restoreBackup(restoreBackupRequest?: RestoreBackupRequest) {
3453
- const options = {
3454
- method: "POST",
3455
- url: "/v3/{project_id}/backups/{backup_id}/restore",
3456
- contentType: "application/json;charset=UTF-8",
3457
- queryParams: {},
3458
- pathParams: {},
3459
- headers: {},
3460
- data: {}
3461
- };
3462
- const localVarHeaderParameter = {} as any;
3463
-
3464
- let body: any;
3465
-
3466
- let backupId;
3467
-
3468
- if (restoreBackupRequest !== null && restoreBackupRequest !== undefined) {
3469
- if (restoreBackupRequest instanceof RestoreBackupRequest) {
3470
- backupId = restoreBackupRequest.backupId;
3471
- body = restoreBackupRequest.body
3472
- } else {
3473
- backupId = restoreBackupRequest['backup_id'];
3474
- body = restoreBackupRequest['body'];
3475
- }
3476
- }
3477
-
3478
-
3479
- if (backupId === null || backupId === undefined) {
3480
- throw new RequiredError('backupId','Required parameter backupId was null or undefined when calling restoreBackup.');
3481
- }
3482
- if (body === null || body === undefined) {
3483
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
3484
- }
3485
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
3486
-
3487
- options.data = body !== undefined ? body : {};
3488
- options.pathParams = { 'backup_id': backupId, };
3489
- options.headers = localVarHeaderParameter;
3490
- return options;
3491
- },
3492
-
3493
- /**
3494
- * 设置存储库资源是否自动备份
3495
- *
3496
- * Please refer to HUAWEI cloud API Explorer for details.
3497
- */
3498
- setVaultResource(setVaultResourceRequest?: SetVaultResourceRequest) {
3499
- const options = {
3500
- method: "PUT",
3501
- url: "/v3/{project_id}/vaults/{vault_id}/set-resources",
3502
- contentType: "application/json;charset=UTF-8",
3503
- queryParams: {},
3504
- pathParams: {},
3505
- headers: {},
3506
- data: {}
3507
- };
3508
- const localVarHeaderParameter = {} as any;
3509
-
3510
- let body: any;
3511
-
3512
- let vaultId;
3513
-
3514
- if (setVaultResourceRequest !== null && setVaultResourceRequest !== undefined) {
3515
- if (setVaultResourceRequest instanceof SetVaultResourceRequest) {
3516
- vaultId = setVaultResourceRequest.vaultId;
3517
- body = setVaultResourceRequest.body
3518
- } else {
3519
- vaultId = setVaultResourceRequest['vault_id'];
3520
- body = setVaultResourceRequest['body'];
3521
- }
3522
- }
3523
-
3524
-
3525
- if (vaultId === null || vaultId === undefined) {
3526
- throw new RequiredError('vaultId','Required parameter vaultId was null or undefined when calling setVaultResource.');
3527
- }
3528
- if (body === null || body === undefined) {
3529
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
3530
- }
3531
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
3532
-
3533
- options.data = body !== undefined ? body : {};
3534
- options.pathParams = { 'vault_id': vaultId, };
3535
- options.headers = localVarHeaderParameter;
3536
- return options;
3537
- },
3538
-
3539
- /**
3540
- * 查询指定客户端
3541
- *
3542
- * Please refer to HUAWEI cloud API Explorer for details.
3543
- */
3544
- showAgent(showAgentRequest?: ShowAgentRequest) {
3545
- const options = {
3546
- method: "GET",
3547
- url: "/v3/{project_id}/agents/{agent_id}",
3548
- contentType: "application/json",
3549
- queryParams: {},
3550
- pathParams: {},
3551
- headers: {}
3552
- };
3553
- const localVarHeaderParameter = {} as any;
3554
-
3555
-
3556
- let agentId;
3557
-
3558
- if (showAgentRequest !== null && showAgentRequest !== undefined) {
3559
- if (showAgentRequest instanceof ShowAgentRequest) {
3560
- agentId = showAgentRequest.agentId;
3561
- } else {
3562
- agentId = showAgentRequest['agent_id'];
3563
- }
3564
- }
3565
-
3566
-
3567
- if (agentId === null || agentId === undefined) {
3568
- throw new RequiredError('agentId','Required parameter agentId was null or undefined when calling showAgent.');
3569
- }
3570
-
3571
- options.pathParams = { 'agent_id': agentId, };
3572
- options.headers = localVarHeaderParameter;
3573
- return options;
3574
- },
3575
-
3576
- /**
3577
- * 根据指定id查询单个副本。
3578
- *
3579
- * Please refer to HUAWEI cloud API Explorer for details.
3580
- */
3581
- showBackup(showBackupRequest?: ShowBackupRequest) {
3582
- const options = {
3583
- method: "GET",
3584
- url: "/v3/{project_id}/backups/{backup_id}",
3585
- contentType: "application/json",
3586
- queryParams: {},
3587
- pathParams: {},
3588
- headers: {}
3589
- };
3590
- const localVarHeaderParameter = {} as any;
3591
-
3592
-
3593
- let backupId;
3594
-
3595
- if (showBackupRequest !== null && showBackupRequest !== undefined) {
3596
- if (showBackupRequest instanceof ShowBackupRequest) {
3597
- backupId = showBackupRequest.backupId;
3598
- } else {
3599
- backupId = showBackupRequest['backup_id'];
3600
- }
3601
- }
3602
-
3603
-
3604
- if (backupId === null || backupId === undefined) {
3605
- throw new RequiredError('backupId','Required parameter backupId was null or undefined when calling showBackup.');
3606
- }
3607
-
3608
- options.pathParams = { 'backup_id': backupId, };
3609
- options.headers = localVarHeaderParameter;
3610
- return options;
3611
- },
3612
-
3613
- /**
3614
- * 根据还原点ID查询指定还原点
3615
- *
3616
- * Please refer to HUAWEI cloud API Explorer for details.
3617
- */
3618
- showCheckpoint(showCheckpointRequest?: ShowCheckpointRequest) {
3619
- const options = {
3620
- method: "GET",
3621
- url: "/v3/{project_id}/checkpoints/{checkpoint_id}",
3622
- contentType: "application/json",
3623
- queryParams: {},
3624
- pathParams: {},
3625
- headers: {}
3626
- };
3627
- const localVarHeaderParameter = {} as any;
3628
-
3629
-
3630
- let checkpointId;
3631
-
3632
- if (showCheckpointRequest !== null && showCheckpointRequest !== undefined) {
3633
- if (showCheckpointRequest instanceof ShowCheckpointRequest) {
3634
- checkpointId = showCheckpointRequest.checkpointId;
3635
- } else {
3636
- checkpointId = showCheckpointRequest['checkpoint_id'];
3637
- }
3638
- }
3639
-
3640
-
3641
- if (checkpointId === null || checkpointId === undefined) {
3642
- throw new RequiredError('checkpointId','Required parameter checkpointId was null or undefined when calling showCheckpoint.');
3643
- }
3644
-
3645
- options.pathParams = { 'checkpoint_id': checkpointId, };
3646
- options.headers = localVarHeaderParameter;
3647
- return options;
3648
- },
3649
-
3650
- /**
3651
- * 由控制台调用的内部接口,用于仅在查询共享备份时获取源project_id的域名信息。
3652
- *
3653
- * Please refer to HUAWEI cloud API Explorer for details.
3654
- */
3655
- showDomain(showDomainRequest?: ShowDomainRequest) {
3656
- const options = {
3657
- method: "GET",
3658
- url: "/v3/domain/{source_project_id}",
3659
- contentType: "application/json",
3660
- queryParams: {},
3661
- pathParams: {},
3662
- headers: {}
3663
- };
3664
- const localVarHeaderParameter = {} as any;
3665
-
3666
-
3667
- let sourceProjectId;
3668
-
3669
- if (showDomainRequest !== null && showDomainRequest !== undefined) {
3670
- if (showDomainRequest instanceof ShowDomainRequest) {
3671
- sourceProjectId = showDomainRequest.sourceProjectId;
3672
- } else {
3673
- sourceProjectId = showDomainRequest['source_project_id'];
3674
- }
3675
- }
3676
-
3677
-
3678
- if (sourceProjectId === null || sourceProjectId === undefined) {
3679
- throw new RequiredError('sourceProjectId','Required parameter sourceProjectId was null or undefined when calling showDomain.');
3680
- }
3681
-
3682
- options.pathParams = { 'source_project_id': sourceProjectId, };
3683
- options.headers = localVarHeaderParameter;
3684
- return options;
3685
- },
3686
-
3687
- /**
3688
- * 获取备份成员的详情
3689
- *
3690
- * Please refer to HUAWEI cloud API Explorer for details.
3691
- */
3692
- showMemberDetail(showMemberDetailRequest?: ShowMemberDetailRequest) {
3693
- const options = {
3694
- method: "GET",
3695
- url: "/v3/{project_id}/backups/{backup_id}/members/{member_id}",
3696
- contentType: "application/json",
3697
- queryParams: {},
3698
- pathParams: {},
3699
- headers: {}
3700
- };
3701
- const localVarHeaderParameter = {} as any;
3702
-
3703
-
3704
- let backupId;
3705
-
3706
- let memberId;
3707
-
3708
- if (showMemberDetailRequest !== null && showMemberDetailRequest !== undefined) {
3709
- if (showMemberDetailRequest instanceof ShowMemberDetailRequest) {
3710
- backupId = showMemberDetailRequest.backupId;
3711
- memberId = showMemberDetailRequest.memberId;
3712
- } else {
3713
- backupId = showMemberDetailRequest['backup_id'];
3714
- memberId = showMemberDetailRequest['member_id'];
3715
- }
3716
- }
3717
-
3718
-
3719
- if (backupId === null || backupId === undefined) {
3720
- throw new RequiredError('backupId','Required parameter backupId was null or undefined when calling showMemberDetail.');
3721
- }
3722
- if (memberId === null || memberId === undefined) {
3723
- throw new RequiredError('memberId','Required parameter memberId was null or undefined when calling showMemberDetail.');
3724
- }
3725
-
3726
- options.pathParams = { 'backup_id': backupId,'member_id': memberId, };
3727
- options.headers = localVarHeaderParameter;
3728
- return options;
3729
- },
3730
-
3731
- /**
3732
- * 获取备份共享成员的列表信息
3733
- *
3734
- * Please refer to HUAWEI cloud API Explorer for details.
3735
- */
3736
- showMembersDetail(showMembersDetailRequest?: ShowMembersDetailRequest) {
3737
- const options = {
3738
- method: "GET",
3739
- url: "/v3/{project_id}/backups/{backup_id}/members",
3740
- contentType: "application/json",
3741
- queryParams: {},
3742
- pathParams: {},
3743
- headers: {}
3744
- };
3745
- const localVarHeaderParameter = {} as any;
3746
- const localVarQueryParameter = {} as any;
3747
-
3748
- let backupId;
3749
-
3750
- let destProjectId;
3751
-
3752
- let imageId;
3753
-
3754
- let status;
3755
-
3756
- let vaultId;
3757
-
3758
- let limit;
3759
-
3760
- let marker;
3761
-
3762
- let offset;
3763
-
3764
- let sort;
3765
-
3766
- if (showMembersDetailRequest !== null && showMembersDetailRequest !== undefined) {
3767
- if (showMembersDetailRequest instanceof ShowMembersDetailRequest) {
3768
- backupId = showMembersDetailRequest.backupId;
3769
- destProjectId = showMembersDetailRequest.destProjectId;
3770
- imageId = showMembersDetailRequest.imageId;
3771
- status = showMembersDetailRequest.status;
3772
- vaultId = showMembersDetailRequest.vaultId;
3773
- limit = showMembersDetailRequest.limit;
3774
- marker = showMembersDetailRequest.marker;
3775
- offset = showMembersDetailRequest.offset;
3776
- sort = showMembersDetailRequest.sort;
3777
- } else {
3778
- backupId = showMembersDetailRequest['backup_id'];
3779
- destProjectId = showMembersDetailRequest['dest_project_id'];
3780
- imageId = showMembersDetailRequest['image_id'];
3781
- status = showMembersDetailRequest['status'];
3782
- vaultId = showMembersDetailRequest['vault_id'];
3783
- limit = showMembersDetailRequest['limit'];
3784
- marker = showMembersDetailRequest['marker'];
3785
- offset = showMembersDetailRequest['offset'];
3786
- sort = showMembersDetailRequest['sort'];
3787
- }
3788
- }
3789
-
3790
-
3791
- if (backupId === null || backupId === undefined) {
3792
- throw new RequiredError('backupId','Required parameter backupId was null or undefined when calling showMembersDetail.');
3793
- }
3794
- if (destProjectId !== null && destProjectId !== undefined) {
3795
- localVarQueryParameter['dest_project_id'] = destProjectId;
3796
- }
3797
- if (imageId !== null && imageId !== undefined) {
3798
- localVarQueryParameter['image_id'] = imageId;
3799
- }
3800
- if (status !== null && status !== undefined) {
3801
- localVarQueryParameter['status'] = status;
3802
- }
3803
- if (vaultId !== null && vaultId !== undefined) {
3804
- localVarQueryParameter['vault_id'] = vaultId;
3805
- }
3806
- if (limit !== null && limit !== undefined) {
3807
- localVarQueryParameter['limit'] = limit;
3808
- }
3809
- if (marker !== null && marker !== undefined) {
3810
- localVarQueryParameter['marker'] = marker;
3811
- }
3812
- if (offset !== null && offset !== undefined) {
3813
- localVarQueryParameter['offset'] = offset;
3814
- }
3815
- if (sort !== null && sort !== undefined) {
3816
- localVarQueryParameter['sort'] = sort;
3817
- }
3818
-
3819
- options.queryParams = localVarQueryParameter;
3820
- options.pathParams = { 'backup_id': backupId, };
3821
- options.headers = localVarHeaderParameter;
3822
- return options;
3823
- },
3824
-
3825
- /**
3826
- * 查询备份时资源的元数据
3827
- *
3828
- * Please refer to HUAWEI cloud API Explorer for details.
3829
- */
3830
- showMetadata(showMetadataRequest?: ShowMetadataRequest) {
3831
- const options = {
3832
- method: "GET",
3833
- url: "/v3/{project_id}/backups/{backup_id}/metadata",
3834
- contentType: "application/json",
3835
- queryParams: {},
3836
- pathParams: {},
3837
- headers: {}
3838
- };
3839
- const localVarHeaderParameter = {} as any;
3840
-
3841
-
3842
- let backupId;
3843
-
3844
- if (showMetadataRequest !== null && showMetadataRequest !== undefined) {
3845
- if (showMetadataRequest instanceof ShowMetadataRequest) {
3846
- backupId = showMetadataRequest.backupId;
3847
- } else {
3848
- backupId = showMetadataRequest['backup_id'];
3849
- }
3850
- }
3851
-
3852
-
3853
- if (backupId === null || backupId === undefined) {
3854
- throw new RequiredError('backupId','Required parameter backupId was null or undefined when calling showMetadata.');
3855
- }
3856
-
3857
- options.pathParams = { 'backup_id': backupId, };
3858
- options.headers = localVarHeaderParameter;
3859
- return options;
3860
- },
3861
-
3862
- /**
3863
- * 查询迁移结果
3864
- *
3865
- * Please refer to HUAWEI cloud API Explorer for details.
3866
- */
3867
- showMigrateStatus(showMigrateStatusRequest?: ShowMigrateStatusRequest) {
3868
- const options = {
3869
- method: "GET",
3870
- url: "/v3/migrates",
3871
- contentType: "application/json",
3872
- queryParams: {},
3873
- pathParams: {},
3874
- headers: {}
3875
- };
3876
- const localVarHeaderParameter = {} as any;
3877
- const localVarQueryParameter = {} as any;
3878
-
3879
- let allRegions;
3880
-
3881
- if (showMigrateStatusRequest !== null && showMigrateStatusRequest !== undefined) {
3882
- if (showMigrateStatusRequest instanceof ShowMigrateStatusRequest) {
3883
- allRegions = showMigrateStatusRequest.allRegions;
3884
- } else {
3885
- allRegions = showMigrateStatusRequest['all_regions'];
3886
- }
3887
- }
3888
-
3889
-
3890
- if (allRegions !== null && allRegions !== undefined) {
3891
- localVarQueryParameter['all_regions'] = allRegions;
3892
- }
3893
-
3894
- options.queryParams = localVarQueryParameter;
3895
- options.headers = localVarHeaderParameter;
3896
- return options;
3897
- },
3898
-
3899
- /**
3900
- * 根据指定任务ID查询任务
3901
- *
3902
- * Please refer to HUAWEI cloud API Explorer for details.
3903
- */
3904
- showOpLog(showOpLogRequest?: ShowOpLogRequest) {
3905
- const options = {
3906
- method: "GET",
3907
- url: "/v3/{project_id}/operation-logs/{operation_log_id}",
3908
- contentType: "application/json",
3909
- queryParams: {},
3910
- pathParams: {},
3911
- headers: {}
3912
- };
3913
- const localVarHeaderParameter = {} as any;
3914
-
3915
-
3916
- let operationLogId;
3917
-
3918
- if (showOpLogRequest !== null && showOpLogRequest !== undefined) {
3919
- if (showOpLogRequest instanceof ShowOpLogRequest) {
3920
- operationLogId = showOpLogRequest.operationLogId;
3921
- } else {
3922
- operationLogId = showOpLogRequest['operation_log_id'];
3923
- }
3924
- }
3925
-
3926
-
3927
- if (operationLogId === null || operationLogId === undefined) {
3928
- throw new RequiredError('operationLogId','Required parameter operationLogId was null or undefined when calling showOpLog.');
3929
- }
3930
-
3931
- options.pathParams = { 'operation_log_id': operationLogId, };
3932
- options.headers = localVarHeaderParameter;
3933
- return options;
3934
- },
3935
-
3936
- /**
3937
- * 查询单个策略
3938
- *
3939
- * Please refer to HUAWEI cloud API Explorer for details.
3940
- */
3941
- showPolicy(showPolicyRequest?: ShowPolicyRequest) {
3942
- const options = {
3943
- method: "GET",
3944
- url: "/v3/{project_id}/policies/{policy_id}",
3945
- contentType: "application/json",
3946
- queryParams: {},
3947
- pathParams: {},
3948
- headers: {}
3949
- };
3950
- const localVarHeaderParameter = {} as any;
3951
-
3952
-
3953
- let policyId;
3954
-
3955
- if (showPolicyRequest !== null && showPolicyRequest !== undefined) {
3956
- if (showPolicyRequest instanceof ShowPolicyRequest) {
3957
- policyId = showPolicyRequest.policyId;
3958
- } else {
3959
- policyId = showPolicyRequest['policy_id'];
3960
- }
3961
- }
3962
-
3963
-
3964
- if (policyId === null || policyId === undefined) {
3965
- throw new RequiredError('policyId','Required parameter policyId was null or undefined when calling showPolicy.');
3966
- }
3967
-
3968
- options.pathParams = { 'policy_id': policyId, };
3969
- options.headers = localVarHeaderParameter;
3970
- return options;
3971
- },
3972
-
3973
- /**
3974
- * 根据ID查询可保护性资源
3975
- *
3976
- * Please refer to HUAWEI cloud API Explorer for details.
3977
- */
3978
- showProtectable(showProtectableRequest?: ShowProtectableRequest) {
3979
- const options = {
3980
- method: "GET",
3981
- url: "/v3/{project_id}/protectables/{protectable_type}/instances/{instance_id}",
3982
- contentType: "application/json",
3983
- queryParams: {},
3984
- pathParams: {},
3985
- headers: {}
3986
- };
3987
- const localVarHeaderParameter = {} as any;
3988
-
3989
-
3990
- let instanceId;
3991
-
3992
- let protectableType;
3993
-
3994
- if (showProtectableRequest !== null && showProtectableRequest !== undefined) {
3995
- if (showProtectableRequest instanceof ShowProtectableRequest) {
3996
- instanceId = showProtectableRequest.instanceId;
3997
- protectableType = showProtectableRequest.protectableType;
3998
- } else {
3999
- instanceId = showProtectableRequest['instance_id'];
4000
- protectableType = showProtectableRequest['protectable_type'];
4001
- }
4002
- }
4003
-
4004
-
4005
- if (instanceId === null || instanceId === undefined) {
4006
- throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling showProtectable.');
4007
- }
4008
- if (protectableType === null || protectableType === undefined) {
4009
- throw new RequiredError('protectableType','Required parameter protectableType was null or undefined when calling showProtectable.');
4010
- }
4011
-
4012
- options.pathParams = { 'instance_id': instanceId,'protectable_type': protectableType, };
4013
- options.headers = localVarHeaderParameter;
4014
- return options;
4015
- },
4016
-
4017
- /**
4018
- * 查询本区域的复制能力
4019
- *
4020
- * Please refer to HUAWEI cloud API Explorer for details.
4021
- */
4022
- showReplicationCapabilities() {
4023
- const options = {
4024
- method: "GET",
4025
- url: "/v3/{project_id}/replication-capabilities",
4026
- contentType: "application/json",
4027
- queryParams: {},
4028
- pathParams: {},
4029
- headers: {}
4030
- };
4031
- const localVarHeaderParameter = {} as any;
4032
-
4033
-
4034
- options.headers = localVarHeaderParameter;
4035
- return options;
4036
- },
4037
-
4038
- /**
4039
- * 查询容量统计
4040
- *
4041
- * Please refer to HUAWEI cloud API Explorer for details.
4042
- */
4043
- showStorageUsage(showStorageUsageRequest?: ShowStorageUsageRequest) {
4044
- const options = {
4045
- method: "GET",
4046
- url: "/v3/{project_id}/storage_usage",
4047
- contentType: "application/json",
4048
- queryParams: {},
4049
- pathParams: {},
4050
- headers: {}
4051
- };
4052
- const localVarHeaderParameter = {} as any;
4053
- const localVarQueryParameter = {} as any;
4054
-
4055
- let limit;
4056
-
4057
- let offset;
4058
-
4059
- let resourceId;
4060
-
4061
- let resourceType;
4062
-
4063
- if (showStorageUsageRequest !== null && showStorageUsageRequest !== undefined) {
4064
- if (showStorageUsageRequest instanceof ShowStorageUsageRequest) {
4065
- limit = showStorageUsageRequest.limit;
4066
- offset = showStorageUsageRequest.offset;
4067
- resourceId = showStorageUsageRequest.resourceId;
4068
- resourceType = showStorageUsageRequest.resourceType;
4069
- } else {
4070
- limit = showStorageUsageRequest['limit'];
4071
- offset = showStorageUsageRequest['offset'];
4072
- resourceId = showStorageUsageRequest['resource_id'];
4073
- resourceType = showStorageUsageRequest['resource_type'];
4074
- }
4075
- }
4076
-
4077
-
4078
- if (limit !== null && limit !== undefined) {
4079
- localVarQueryParameter['limit'] = limit;
4080
- }
4081
- if (offset !== null && offset !== undefined) {
4082
- localVarQueryParameter['offset'] = offset;
4083
- }
4084
- if (resourceId !== null && resourceId !== undefined) {
4085
- localVarQueryParameter['resource_id'] = resourceId;
4086
- }
4087
- if (resourceType !== null && resourceType !== undefined) {
4088
- localVarQueryParameter['resource_type'] = resourceType;
4089
- }
4090
-
4091
- options.queryParams = localVarQueryParameter;
4092
- options.headers = localVarHeaderParameter;
4093
- return options;
4094
- },
4095
-
4096
- /**
4097
- * 查询项目下所有存储库的总容量和总使用量
4098
- *
4099
- * Please refer to HUAWEI cloud API Explorer for details.
4100
- */
4101
- showSummary() {
4102
- const options = {
4103
- method: "GET",
4104
- url: "/v3/{project_id}/vaults/summary",
4105
- contentType: "application/json",
4106
- queryParams: {},
4107
- pathParams: {},
4108
- headers: {}
4109
- };
4110
- const localVarHeaderParameter = {} as any;
4111
-
4112
-
4113
- options.headers = localVarHeaderParameter;
4114
- return options;
4115
- },
4116
-
4117
- /**
4118
- * 根据ID查询指定存储库
4119
- *
4120
- * Please refer to HUAWEI cloud API Explorer for details.
4121
- */
4122
- showVault(showVaultRequest?: ShowVaultRequest) {
4123
- const options = {
4124
- method: "GET",
4125
- url: "/v3/{project_id}/vaults/{vault_id}",
4126
- contentType: "application/json",
4127
- queryParams: {},
4128
- pathParams: {},
4129
- headers: {}
4130
- };
4131
- const localVarHeaderParameter = {} as any;
4132
-
4133
-
4134
- let vaultId;
4135
-
4136
- if (showVaultRequest !== null && showVaultRequest !== undefined) {
4137
- if (showVaultRequest instanceof ShowVaultRequest) {
4138
- vaultId = showVaultRequest.vaultId;
4139
- } else {
4140
- vaultId = showVaultRequest['vault_id'];
4141
- }
4142
- }
4143
-
4144
-
4145
- if (vaultId === null || vaultId === undefined) {
4146
- throw new RequiredError('vaultId','Required parameter vaultId was null or undefined when calling showVault.');
4147
- }
4148
-
4149
- options.pathParams = { 'vault_id': vaultId, };
4150
- options.headers = localVarHeaderParameter;
4151
- return options;
4152
- },
4153
-
4154
- /**
4155
- * 查询租户在指定Region和实例类型的所有标签集合
4156
- * 标签管理服务需要能够列出当前租户全部已使用的标签集合,为各服务Console打标签和过滤实例时提供标签联想功能
4157
- *
4158
- * Please refer to HUAWEI cloud API Explorer for details.
4159
- */
4160
- showVaultProjectTag() {
4161
- const options = {
4162
- method: "GET",
4163
- url: "/v3/{project_id}/vault/tags",
4164
- contentType: "application/json",
4165
- queryParams: {},
4166
- pathParams: {},
4167
- headers: {}
4168
- };
4169
- const localVarHeaderParameter = {} as any;
4170
-
4171
-
4172
- options.headers = localVarHeaderParameter;
4173
- return options;
4174
- },
4175
-
4176
- /**
4177
- * 使用标签过滤实例
4178
- * 标签管理服务需要提供按标签过滤各服务实例并汇总显示在列表中,需要各服务提供查询能力
4179
- *
4180
- * Please refer to HUAWEI cloud API Explorer for details.
4181
- */
4182
- showVaultResourceInstances(showVaultResourceInstancesRequest?: ShowVaultResourceInstancesRequest) {
4183
- const options = {
4184
- method: "POST",
4185
- url: "/v3/{project_id}/vault/resource_instances/action",
4186
- contentType: "application/json;charset=UTF-8",
4187
- queryParams: {},
4188
- pathParams: {},
4189
- headers: {},
4190
- data: {}
4191
- };
4192
- const localVarHeaderParameter = {} as any;
4193
-
4194
- let body: any;
4195
-
4196
- if (showVaultResourceInstancesRequest !== null && showVaultResourceInstancesRequest !== undefined) {
4197
- if (showVaultResourceInstancesRequest instanceof ShowVaultResourceInstancesRequest) {
4198
- body = showVaultResourceInstancesRequest.body
4199
- } else {
4200
- body = showVaultResourceInstancesRequest['body'];
4201
- }
4202
- }
4203
-
4204
-
4205
- if (body === null || body === undefined) {
4206
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
4207
- }
4208
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
4209
-
4210
- options.data = body !== undefined ? body : {};
4211
- options.headers = localVarHeaderParameter;
4212
- return options;
4213
- },
4214
-
4215
- /**
4216
- * 查询指定实例的标签信息
4217
- * 标签管理服务需要使用该接口查询指定实例的全部标签数据
4218
- *
4219
- * Please refer to HUAWEI cloud API Explorer for details.
4220
- */
4221
- showVaultTag(showVaultTagRequest?: ShowVaultTagRequest) {
4222
- const options = {
4223
- method: "GET",
4224
- url: "/v3/{project_id}/vault/{vault_id}/tags",
4225
- contentType: "application/json",
4226
- queryParams: {},
4227
- pathParams: {},
4228
- headers: {}
4229
- };
4230
- const localVarHeaderParameter = {} as any;
4231
-
4232
-
4233
- let vaultId;
4234
-
4235
- if (showVaultTagRequest !== null && showVaultTagRequest !== undefined) {
4236
- if (showVaultTagRequest instanceof ShowVaultTagRequest) {
4237
- vaultId = showVaultTagRequest.vaultId;
4238
- } else {
4239
- vaultId = showVaultTagRequest['vault_id'];
4240
- }
4241
- }
4242
-
4243
-
4244
- if (vaultId === null || vaultId === undefined) {
4245
- throw new RequiredError('vaultId','Required parameter vaultId was null or undefined when calling showVaultTag.');
4246
- }
4247
-
4248
- options.pathParams = { 'vault_id': vaultId, };
4249
- options.headers = localVarHeaderParameter;
4250
- return options;
4251
- },
4252
-
4253
- /**
4254
- * 移除客户端,移除客户端时将会删除该客户端所有备份,请谨慎操作。
4255
- *
4256
- * Please refer to HUAWEI cloud API Explorer for details.
4257
- */
4258
- unregisterAgent(unregisterAgentRequest?: UnregisterAgentRequest) {
4259
- const options = {
4260
- method: "DELETE",
4261
- url: "/v3/{project_id}/agents/{agent_id}",
4262
- contentType: "application/json",
4263
- queryParams: {},
4264
- pathParams: {},
4265
- headers: {}
4266
- };
4267
- const localVarHeaderParameter = {} as any;
4268
-
4269
-
4270
- let agentId;
4271
-
4272
- if (unregisterAgentRequest !== null && unregisterAgentRequest !== undefined) {
4273
- if (unregisterAgentRequest instanceof UnregisterAgentRequest) {
4274
- agentId = unregisterAgentRequest.agentId;
4275
- } else {
4276
- agentId = unregisterAgentRequest['agent_id'];
4277
- }
4278
- }
4279
-
4280
-
4281
- if (agentId === null || agentId === undefined) {
4282
- throw new RequiredError('agentId','Required parameter agentId was null or undefined when calling unregisterAgent.');
4283
- }
4284
-
4285
- options.pathParams = { 'agent_id': agentId, };
4286
- options.headers = localVarHeaderParameter;
4287
- return options;
4288
- },
4289
-
4290
- /**
4291
- * 修改客户端状态
4292
- *
4293
- * Please refer to HUAWEI cloud API Explorer for details.
4294
- */
4295
- updateAgent(updateAgentRequest?: UpdateAgentRequest) {
4296
- const options = {
4297
- method: "PUT",
4298
- url: "/v3/{project_id}/agents/{agent_id}",
4299
- contentType: "application/json;charset=UTF-8",
4300
- queryParams: {},
4301
- pathParams: {},
4302
- headers: {},
4303
- data: {}
4304
- };
4305
- const localVarHeaderParameter = {} as any;
4306
-
4307
- let body: any;
4308
-
4309
- let agentId;
4310
-
4311
- if (updateAgentRequest !== null && updateAgentRequest !== undefined) {
4312
- if (updateAgentRequest instanceof UpdateAgentRequest) {
4313
- agentId = updateAgentRequest.agentId;
4314
- body = updateAgentRequest.body
4315
- } else {
4316
- agentId = updateAgentRequest['agent_id'];
4317
- body = updateAgentRequest['body'];
4318
- }
4319
- }
4320
-
4321
-
4322
- if (agentId === null || agentId === undefined) {
4323
- throw new RequiredError('agentId','Required parameter agentId was null or undefined when calling updateAgent.');
4324
- }
4325
- if (body === null || body === undefined) {
4326
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
4327
- }
4328
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
4329
-
4330
- options.data = body !== undefined ? body : {};
4331
- options.pathParams = { 'agent_id': agentId, };
4332
- options.headers = localVarHeaderParameter;
4333
- return options;
4334
- },
4335
-
4336
- /**
4337
- * 根据备份id更改备份
4338
- *
4339
- * Please refer to HUAWEI cloud API Explorer for details.
4340
- */
4341
- updateBackup(updateBackupRequest?: UpdateBackupRequest) {
4342
- const options = {
4343
- method: "PUT",
4344
- url: "/v3/{project_id}/backups/{backup_id}",
4345
- contentType: "application/json;charset=UTF-8",
4346
- queryParams: {},
4347
- pathParams: {},
4348
- headers: {},
4349
- data: {}
4350
- };
4351
- const localVarHeaderParameter = {} as any;
4352
-
4353
- let body: any;
4354
-
4355
- let backupId;
4356
-
4357
- if (updateBackupRequest !== null && updateBackupRequest !== undefined) {
4358
- if (updateBackupRequest instanceof UpdateBackupRequest) {
4359
- backupId = updateBackupRequest.backupId;
4360
- body = updateBackupRequest.body
4361
- } else {
4362
- backupId = updateBackupRequest['backup_id'];
4363
- body = updateBackupRequest['body'];
4364
- }
4365
- }
4366
-
4367
-
4368
- if (backupId === null || backupId === undefined) {
4369
- throw new RequiredError('backupId','Required parameter backupId was null or undefined when calling updateBackup.');
4370
- }
4371
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
4372
-
4373
- options.data = body !== undefined ? body : {};
4374
- options.pathParams = { 'backup_id': backupId, };
4375
- options.headers = localVarHeaderParameter;
4376
- return options;
4377
- },
4378
-
4379
- /**
4380
- * 更新备份共享成员的状态,需要接收方执行此API。
4381
- *
4382
- * Please refer to HUAWEI cloud API Explorer for details.
4383
- */
4384
- updateMemberStatus(updateMemberStatusRequest?: UpdateMemberStatusRequest) {
4385
- const options = {
4386
- method: "PUT",
4387
- url: "/v3/{project_id}/backups/{backup_id}/members/{member_id}",
4388
- contentType: "application/json;charset=UTF-8",
4389
- queryParams: {},
4390
- pathParams: {},
4391
- headers: {},
4392
- data: {}
4393
- };
4394
- const localVarHeaderParameter = {} as any;
4395
-
4396
- let body: any;
4397
-
4398
- let memberId;
4399
-
4400
- let backupId;
4401
-
4402
- if (updateMemberStatusRequest !== null && updateMemberStatusRequest !== undefined) {
4403
- if (updateMemberStatusRequest instanceof UpdateMemberStatusRequest) {
4404
- memberId = updateMemberStatusRequest.memberId;
4405
- backupId = updateMemberStatusRequest.backupId;
4406
- body = updateMemberStatusRequest.body
4407
- } else {
4408
- memberId = updateMemberStatusRequest['member_id'];
4409
- backupId = updateMemberStatusRequest['backup_id'];
4410
- body = updateMemberStatusRequest['body'];
4411
- }
4412
- }
4413
-
4414
-
4415
- if (memberId === null || memberId === undefined) {
4416
- throw new RequiredError('memberId','Required parameter memberId was null or undefined when calling updateMemberStatus.');
4417
- }
4418
- if (backupId === null || backupId === undefined) {
4419
- throw new RequiredError('backupId','Required parameter backupId was null or undefined when calling updateMemberStatus.');
4420
- }
4421
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
4422
-
4423
- options.data = body !== undefined ? body : {};
4424
- options.pathParams = { 'member_id': memberId,'backup_id': backupId, };
4425
- options.headers = localVarHeaderParameter;
4426
- return options;
4427
- },
4428
-
4429
- /**
4430
- * 订单更新,支付cbc订单后,调用该接口更新包周期产品订单信息。
4431
- *
4432
- * Please refer to HUAWEI cloud API Explorer for details.
4433
- */
4434
- updateOrder(updateOrderRequest?: UpdateOrderRequest) {
4435
- const options = {
4436
- method: "PUT",
4437
- url: "/v3/{project_id}/orders/{order_id}",
4438
- contentType: "application/json;charset=UTF-8",
4439
- queryParams: {},
4440
- pathParams: {},
4441
- headers: {},
4442
- data: {}
4443
- };
4444
- const localVarHeaderParameter = {} as any;
4445
-
4446
- let body: any;
4447
-
4448
- let orderId;
4449
-
4450
- if (updateOrderRequest !== null && updateOrderRequest !== undefined) {
4451
- if (updateOrderRequest instanceof UpdateOrderRequest) {
4452
- orderId = updateOrderRequest.orderId;
4453
- body = updateOrderRequest.body
4454
- } else {
4455
- orderId = updateOrderRequest['order_id'];
4456
- body = updateOrderRequest['body'];
4457
- }
4458
- }
4459
-
4460
-
4461
- if (orderId === null || orderId === undefined) {
4462
- throw new RequiredError('orderId','Required parameter orderId was null or undefined when calling updateOrder.');
4463
- }
4464
- if (body === null || body === undefined) {
4465
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
4466
- }
4467
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
4468
-
4469
- options.data = body !== undefined ? body : {};
4470
- options.pathParams = { 'order_id': orderId, };
4471
- options.headers = localVarHeaderParameter;
4472
- return options;
4473
- },
4474
-
4475
- /**
4476
- * 修改策略
4477
- *
4478
- * Please refer to HUAWEI cloud API Explorer for details.
4479
- */
4480
- updatePolicy(updatePolicyRequest?: UpdatePolicyRequest) {
4481
- const options = {
4482
- method: "PUT",
4483
- url: "/v3/{project_id}/policies/{policy_id}",
4484
- contentType: "application/json;charset=UTF-8",
4485
- queryParams: {},
4486
- pathParams: {},
4487
- headers: {},
4488
- data: {}
4489
- };
4490
- const localVarHeaderParameter = {} as any;
4491
-
4492
- let body: any;
4493
-
4494
- let policyId;
4495
-
4496
- if (updatePolicyRequest !== null && updatePolicyRequest !== undefined) {
4497
- if (updatePolicyRequest instanceof UpdatePolicyRequest) {
4498
- policyId = updatePolicyRequest.policyId;
4499
- body = updatePolicyRequest.body
4500
- } else {
4501
- policyId = updatePolicyRequest['policy_id'];
4502
- body = updatePolicyRequest['body'];
4503
- }
4504
- }
4505
-
4506
-
4507
- if (policyId === null || policyId === undefined) {
4508
- throw new RequiredError('policyId','Required parameter policyId was null or undefined when calling updatePolicy.');
4509
- }
4510
- if (body === null || body === undefined) {
4511
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
4512
- }
4513
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
4514
-
4515
- options.data = body !== undefined ? body : {};
4516
- options.pathParams = { 'policy_id': policyId, };
4517
- options.headers = localVarHeaderParameter;
4518
- return options;
4519
- },
4520
-
4521
- /**
4522
- * 根据存储库ID修改存储库
4523
- *
4524
- * Please refer to HUAWEI cloud API Explorer for details.
4525
- */
4526
- updateVault(updateVaultRequest?: UpdateVaultRequest) {
4527
- const options = {
4528
- method: "PUT",
4529
- url: "/v3/{project_id}/vaults/{vault_id}",
4530
- contentType: "application/json;charset=UTF-8",
4531
- queryParams: {},
4532
- pathParams: {},
4533
- headers: {},
4534
- data: {}
4535
- };
4536
- const localVarHeaderParameter = {} as any;
4537
-
4538
- let body: any;
4539
-
4540
- let vaultId;
4541
-
4542
- if (updateVaultRequest !== null && updateVaultRequest !== undefined) {
4543
- if (updateVaultRequest instanceof UpdateVaultRequest) {
4544
- vaultId = updateVaultRequest.vaultId;
4545
- body = updateVaultRequest.body
4546
- } else {
4547
- vaultId = updateVaultRequest['vault_id'];
4548
- body = updateVaultRequest['body'];
4549
- }
4550
- }
4551
-
4552
-
4553
- if (vaultId === null || vaultId === undefined) {
4554
- throw new RequiredError('vaultId','Required parameter vaultId was null or undefined when calling updateVault.');
4555
- }
4556
- if (body === null || body === undefined) {
4557
- throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
4558
- }
4559
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
4560
-
4561
- options.data = body !== undefined ? body : {};
4562
- options.pathParams = { 'vault_id': vaultId, };
4563
- options.headers = localVarHeaderParameter;
4564
- return options;
4565
- },
4566
-
4567
- }
4568
- };
4569
-
4570
- function newClient(client: HcClient): CbrClient {
4571
- return new CbrClient(client);
4572
- }
4573
-
4574
- /**
4575
- *
4576
- * @export
4577
- * @class RequiredError
4578
- * @extends {Error}
4579
- */
4580
- export class RequiredError extends Error {
4581
- name: "RequiredError" = "RequiredError";
4582
- constructor(public field: string, msg?: string) {
4583
- super(msg);
4584
- }
4585
- }