@huaweicloud/huaweicloud-sdk-cbr 3.1.38 → 3.1.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. package/package.json +2 -2
  2. package/v1/CbrClient.d.ts +433 -0
  3. package/v1/CbrClient.js +872 -18
  4. package/v1/CbrRegion.d.ts +1 -0
  5. package/v1/CbrRegion.js +3 -1
  6. package/v1/model/BackupUpdate.d.ts +5 -0
  7. package/v1/model/BackupUpdate.js +13 -0
  8. package/v1/model/BackupUpdateReq.d.ts +6 -0
  9. package/v1/model/BackupUpdateReq.js +13 -0
  10. package/v1/model/BatchUpdateVaultRequest.d.ts +6 -0
  11. package/v1/model/BatchUpdateVaultRequest.js +13 -0
  12. package/v1/model/BatchUpdateVaultRequestBody.d.ts +6 -0
  13. package/v1/model/BatchUpdateVaultRequestBody.js +14 -0
  14. package/v1/model/BatchUpdateVaultResponse.d.ts +8 -0
  15. package/v1/model/BatchUpdateVaultResponse.js +41 -0
  16. package/v1/model/CbcProductInfoUpdate.d.ts +11 -0
  17. package/v1/model/CbcProductInfoUpdate.js +28 -0
  18. package/v1/model/CbcUpdate.d.ts +14 -0
  19. package/v1/model/CbcUpdate.js +37 -0
  20. package/v1/model/CheckAgentRequest.d.ts +6 -0
  21. package/v1/model/CheckAgentRequest.js +13 -0
  22. package/v1/model/CheckAgentResponse.d.ts +9 -0
  23. package/v1/model/CheckAgentResponse.js +41 -0
  24. package/v1/model/CombinedOrder.d.ts +15 -0
  25. package/v1/model/CombinedOrder.js +51 -0
  26. package/v1/model/CreatePostPaidVaultRequest.d.ts +6 -0
  27. package/v1/model/CreatePostPaidVaultRequest.js +13 -0
  28. package/v1/model/CreatePostPaidVaultResponse.d.ts +15 -0
  29. package/v1/model/CreatePostPaidVaultResponse.js +53 -0
  30. package/v1/model/DomainMigrate.d.ts +9 -0
  31. package/v1/model/DomainMigrate.js +29 -0
  32. package/v1/model/DomainMigrateProjectStatus.d.ts +36 -0
  33. package/v1/model/DomainMigrateProjectStatus.js +100 -0
  34. package/v1/model/DomainProjectsInfo.d.ts +11 -0
  35. package/v1/model/DomainProjectsInfo.js +39 -0
  36. package/v1/model/ImportCheckpointRequest.d.ts +6 -0
  37. package/v1/model/ImportCheckpointRequest.js +13 -0
  38. package/v1/model/ImportCheckpointResponse.d.ts +7 -0
  39. package/v1/model/ImportCheckpointResponse.js +31 -0
  40. package/v1/model/ListDomainProjectsRequest.d.ts +7 -0
  41. package/v1/model/ListDomainProjectsRequest.js +24 -0
  42. package/v1/model/ListDomainProjectsResponse.d.ts +7 -0
  43. package/v1/model/ListDomainProjectsResponse.js +31 -0
  44. package/v1/model/ListExternalVaultRequest.d.ts +38 -0
  45. package/v1/model/ListExternalVaultRequest.js +111 -0
  46. package/v1/model/ListExternalVaultResponse.d.ts +13 -0
  47. package/v1/model/ListExternalVaultResponse.js +43 -0
  48. package/v1/model/ListProjectsRequest.d.ts +3 -0
  49. package/v1/model/ListProjectsRequest.js +9 -0
  50. package/v1/model/ListProjectsResponse.d.ts +10 -0
  51. package/v1/model/ListProjectsResponse.js +35 -0
  52. package/v1/model/MigrateDomainRequest.d.ts +6 -0
  53. package/v1/model/MigrateDomainRequest.js +13 -0
  54. package/v1/model/MigrateDomainResponse.d.ts +10 -0
  55. package/v1/model/MigrateDomainResponse.js +31 -0
  56. package/v1/model/ProjectsListInfo.d.ts +26 -0
  57. package/v1/model/ProjectsListInfo.js +71 -0
  58. package/v1/model/ProtectableAgentReq.d.ts +8 -0
  59. package/v1/model/ProtectableAgentReq.js +24 -0
  60. package/v1/model/ProtectableAgentStatus.d.ts +19 -0
  61. package/v1/model/ProtectableAgentStatus.js +53 -0
  62. package/v1/model/ProtectableAgentStatusResource.d.ts +15 -0
  63. package/v1/model/ProtectableAgentStatusResource.js +53 -0
  64. package/v1/model/SelfLinksInfo.d.ts +5 -0
  65. package/v1/model/SelfLinksInfo.js +13 -0
  66. package/v1/model/SetVaultResourceRequest.d.ts +10 -0
  67. package/v1/model/SetVaultResourceRequest.js +28 -0
  68. package/v1/model/SetVaultResourceResponse.d.ts +8 -0
  69. package/v1/model/SetVaultResourceResponse.js +41 -0
  70. package/v1/model/ShowDomainRequest.d.ts +7 -0
  71. package/v1/model/ShowDomainRequest.js +24 -0
  72. package/v1/model/ShowDomainResponse.d.ts +20 -0
  73. package/v1/model/ShowDomainResponse.js +83 -0
  74. package/v1/model/ShowMetadataRequest.d.ts +7 -0
  75. package/v1/model/ShowMetadataRequest.js +24 -0
  76. package/v1/model/ShowMetadataResponse.d.ts +24 -0
  77. package/v1/model/ShowMetadataResponse.js +79 -0
  78. package/v1/model/ShowMigrateStatusRequest.d.ts +7 -0
  79. package/v1/model/ShowMigrateStatusRequest.js +23 -0
  80. package/v1/model/ShowMigrateStatusResponse.d.ts +20 -0
  81. package/v1/model/ShowMigrateStatusResponse.js +55 -0
  82. package/v1/model/ShowStorageUsageRequest.d.ts +23 -0
  83. package/v1/model/ShowStorageUsageRequest.js +54 -0
  84. package/v1/model/ShowStorageUsageResponse.d.ts +13 -0
  85. package/v1/model/ShowStorageUsageResponse.js +55 -0
  86. package/v1/model/ShowSummaryRequest.d.ts +3 -0
  87. package/v1/model/ShowSummaryRequest.js +9 -0
  88. package/v1/model/ShowSummaryResponse.d.ts +10 -0
  89. package/v1/model/ShowSummaryResponse.js +45 -0
  90. package/v1/model/StorageUsage.d.ts +27 -0
  91. package/v1/model/StorageUsage.js +96 -0
  92. package/v1/model/SyncParam.d.ts +11 -0
  93. package/v1/model/SyncParam.js +39 -0
  94. package/v1/model/SyncReq.d.ts +6 -0
  95. package/v1/model/SyncReq.js +14 -0
  96. package/v1/model/SyncRespBody.d.ts +11 -0
  97. package/v1/model/SyncRespBody.js +39 -0
  98. package/v1/model/UpdateBackupRequest.d.ts +10 -0
  99. package/v1/model/UpdateBackupRequest.js +28 -0
  100. package/v1/model/UpdateBackupResponse.d.ts +7 -0
  101. package/v1/model/UpdateBackupResponse.js +31 -0
  102. package/v1/model/UpdateOrderRequest.d.ts +10 -0
  103. package/v1/model/UpdateOrderRequest.js +28 -0
  104. package/v1/model/UpdateOrderResponse.d.ts +10 -0
  105. package/v1/model/UpdateOrderResponse.js +39 -0
  106. package/v1/model/VaultBatchUpdate.d.ts +9 -0
  107. package/v1/model/VaultBatchUpdate.js +27 -0
  108. package/v1/model/VaultCreate.d.ts +14 -0
  109. package/v1/model/VaultCreate.js +46 -0
  110. package/v1/model/VaultCreateParameters.d.ts +8 -0
  111. package/v1/model/VaultCreateParameters.js +23 -0
  112. package/v1/model/VaultCreateResource.d.ts +14 -0
  113. package/v1/model/VaultCreateResource.js +46 -0
  114. package/v1/model/VaultOrder.d.ts +46 -0
  115. package/v1/model/VaultOrder.js +123 -0
  116. package/v1/model/VaultOrderCreateReqs.d.ts +6 -0
  117. package/v1/model/VaultOrderCreateReqs.js +14 -0
  118. package/v1/model/VaultSetResourceReq.d.ts +17 -0
  119. package/v1/model/VaultSetResourceReq.js +38 -0
  120. package/v1/public-api.d.ts +55 -0
  121. package/v1/public-api.js +55 -0
package/v1/CbrClient.js CHANGED
@@ -22,10 +22,13 @@ var AddMemberRequest_1 = require("./model/AddMemberRequest");
22
22
  var AddVaultResourceRequest_1 = require("./model/AddVaultResourceRequest");
23
23
  var AssociateVaultPolicyRequest_1 = require("./model/AssociateVaultPolicyRequest");
24
24
  var BatchCreateAndDeleteVaultTagsRequest_1 = require("./model/BatchCreateAndDeleteVaultTagsRequest");
25
+ var BatchUpdateVaultRequest_1 = require("./model/BatchUpdateVaultRequest");
26
+ var CheckAgentRequest_1 = require("./model/CheckAgentRequest");
25
27
  var CopyBackupRequest_1 = require("./model/CopyBackupRequest");
26
28
  var CopyCheckpointRequest_1 = require("./model/CopyCheckpointRequest");
27
29
  var CreateCheckpointRequest_1 = require("./model/CreateCheckpointRequest");
28
30
  var CreatePolicyRequest_1 = require("./model/CreatePolicyRequest");
31
+ var CreatePostPaidVaultRequest_1 = require("./model/CreatePostPaidVaultRequest");
29
32
  var CreateVaultRequest_1 = require("./model/CreateVaultRequest");
30
33
  var CreateVaultTagsRequest_1 = require("./model/CreateVaultTagsRequest");
31
34
  var DeleteBackupRequest_1 = require("./model/DeleteBackupRequest");
@@ -35,31 +38,42 @@ var DeleteVaultRequest_1 = require("./model/DeleteVaultRequest");
35
38
  var DeleteVaultTagRequest_1 = require("./model/DeleteVaultTagRequest");
36
39
  var DisassociateVaultPolicyRequest_1 = require("./model/DisassociateVaultPolicyRequest");
37
40
  var ImportBackupRequest_1 = require("./model/ImportBackupRequest");
41
+ var ImportCheckpointRequest_1 = require("./model/ImportCheckpointRequest");
38
42
  var ListAgentRequest_1 = require("./model/ListAgentRequest");
39
43
  var ListBackupsRequest_1 = require("./model/ListBackupsRequest");
44
+ var ListDomainProjectsRequest_1 = require("./model/ListDomainProjectsRequest");
45
+ var ListExternalVaultRequest_1 = require("./model/ListExternalVaultRequest");
40
46
  var ListOpLogsRequest_1 = require("./model/ListOpLogsRequest");
41
47
  var ListPoliciesRequest_1 = require("./model/ListPoliciesRequest");
42
48
  var ListProtectableRequest_1 = require("./model/ListProtectableRequest");
43
49
  var ListVaultRequest_1 = require("./model/ListVaultRequest");
50
+ var MigrateDomainRequest_1 = require("./model/MigrateDomainRequest");
44
51
  var MigrateVaultResourceRequest_1 = require("./model/MigrateVaultResourceRequest");
45
52
  var RegisterAgentRequest_1 = require("./model/RegisterAgentRequest");
46
53
  var RemoveAgentPathRequest_1 = require("./model/RemoveAgentPathRequest");
47
54
  var RemoveVaultResourceRequest_1 = require("./model/RemoveVaultResourceRequest");
48
55
  var RestoreBackupRequest_1 = require("./model/RestoreBackupRequest");
56
+ var SetVaultResourceRequest_1 = require("./model/SetVaultResourceRequest");
49
57
  var ShowAgentRequest_1 = require("./model/ShowAgentRequest");
50
58
  var ShowBackupRequest_1 = require("./model/ShowBackupRequest");
51
59
  var ShowCheckpointRequest_1 = require("./model/ShowCheckpointRequest");
60
+ var ShowDomainRequest_1 = require("./model/ShowDomainRequest");
52
61
  var ShowMemberDetailRequest_1 = require("./model/ShowMemberDetailRequest");
53
62
  var ShowMembersDetailRequest_1 = require("./model/ShowMembersDetailRequest");
63
+ var ShowMetadataRequest_1 = require("./model/ShowMetadataRequest");
64
+ var ShowMigrateStatusRequest_1 = require("./model/ShowMigrateStatusRequest");
54
65
  var ShowOpLogRequest_1 = require("./model/ShowOpLogRequest");
55
66
  var ShowPolicyRequest_1 = require("./model/ShowPolicyRequest");
56
67
  var ShowProtectableRequest_1 = require("./model/ShowProtectableRequest");
68
+ var ShowStorageUsageRequest_1 = require("./model/ShowStorageUsageRequest");
57
69
  var ShowVaultRequest_1 = require("./model/ShowVaultRequest");
58
70
  var ShowVaultResourceInstancesRequest_1 = require("./model/ShowVaultResourceInstancesRequest");
59
71
  var ShowVaultTagRequest_1 = require("./model/ShowVaultTagRequest");
60
72
  var UnregisterAgentRequest_1 = require("./model/UnregisterAgentRequest");
61
73
  var UpdateAgentRequest_1 = require("./model/UpdateAgentRequest");
74
+ var UpdateBackupRequest_1 = require("./model/UpdateBackupRequest");
62
75
  var UpdateMemberStatusRequest_1 = require("./model/UpdateMemberStatusRequest");
76
+ var UpdateOrderRequest_1 = require("./model/UpdateOrderRequest");
63
77
  var UpdatePolicyRequest_1 = require("./model/UpdatePolicyRequest");
64
78
  var UpdateVaultRequest_1 = require("./model/UpdateVaultRequest");
65
79
  var CbrClient = /** @class */ (function () {
@@ -164,6 +178,38 @@ var CbrClient = /** @class */ (function () {
164
178
  options['responseHeaders'] = [''];
165
179
  return this.hcClient.sendRequest(options);
166
180
  };
181
+ /**
182
+ * 批量修改项目下所有存储库
183
+ *
184
+ * Please refer to HUAWEI cloud API Explorer for details.
185
+ *
186
+ * @summary 批量修改存储库
187
+ * @param {BatchUpdateVaultRequestBody} updateVaultRequestBody 存储批量修改参数
188
+ * @param {*} [options] Override http request option.
189
+ * @throws {RequiredError}
190
+ */
191
+ CbrClient.prototype.batchUpdateVault = function (batchUpdateVaultRequest) {
192
+ var options = (0, exports.ParamCreater)().batchUpdateVault(batchUpdateVaultRequest);
193
+ // @ts-ignore
194
+ options['responseHeaders'] = [''];
195
+ return this.hcClient.sendRequest(options);
196
+ };
197
+ /**
198
+ * 检查应用一致性Agent状态
199
+ *
200
+ * Please refer to HUAWEI cloud API Explorer for details.
201
+ *
202
+ * @summary 查询agent状态
203
+ * @param {ProtectableAgentReq} checkAgentRequestBody Agent状态检查参数
204
+ * @param {*} [options] Override http request option.
205
+ * @throws {RequiredError}
206
+ */
207
+ CbrClient.prototype.checkAgent = function (checkAgentRequest) {
208
+ var options = (0, exports.ParamCreater)().checkAgent(checkAgentRequest);
209
+ // @ts-ignore
210
+ options['responseHeaders'] = [''];
211
+ return this.hcClient.sendRequest(options);
212
+ };
167
213
  /**
168
214
  * 跨区域复制备份。
169
215
  *
@@ -229,6 +275,22 @@ var CbrClient = /** @class */ (function () {
229
275
  options['responseHeaders'] = [''];
230
276
  return this.hcClient.sendRequest(options);
231
277
  };
278
+ /**
279
+ * 创建包周期存储库
280
+ *
281
+ * Please refer to HUAWEI cloud API Explorer for details.
282
+ *
283
+ * @summary 创建包周期存储库
284
+ * @param {VaultOrderCreateReqs} createPostPaidVaultRequestBody 请求体
285
+ * @param {*} [options] Override http request option.
286
+ * @throws {RequiredError}
287
+ */
288
+ CbrClient.prototype.createPostPaidVault = function (createPostPaidVaultRequest) {
289
+ var options = (0, exports.ParamCreater)().createPostPaidVault(createPostPaidVaultRequest);
290
+ // @ts-ignore
291
+ options['responseHeaders'] = [''];
292
+ return this.hcClient.sendRequest(options);
293
+ };
232
294
  /**
233
295
  * 创建存储库
234
296
  *
@@ -378,6 +440,22 @@ var CbrClient = /** @class */ (function () {
378
440
  options['responseHeaders'] = [''];
379
441
  return this.hcClient.sendRequest(options);
380
442
  };
443
+ /**
444
+ * 针对vault同步备份副本
445
+ *
446
+ * Please refer to HUAWEI cloud API Explorer for details.
447
+ *
448
+ * @summary 同步备份还原点
449
+ * @param {SyncReq} importCheckpointRequestBody This is a auto create Body Object
450
+ * @param {*} [options] Override http request option.
451
+ * @throws {RequiredError}
452
+ */
453
+ CbrClient.prototype.importCheckpoint = function (importCheckpointRequest) {
454
+ var options = (0, exports.ParamCreater)().importCheckpoint(importCheckpointRequest);
455
+ // @ts-ignore
456
+ options['responseHeaders'] = [''];
457
+ return this.hcClient.sendRequest(options);
458
+ };
381
459
  /**
382
460
  * 查询客户端列表
383
461
  *
@@ -435,6 +513,45 @@ var CbrClient = /** @class */ (function () {
435
513
  options['responseHeaders'] = [''];
436
514
  return this.hcClient.sendRequest(options);
437
515
  };
516
+ /**
517
+ * 根据指定租户名称查询项目列表。
518
+ *
519
+ * Please refer to HUAWEI cloud API Explorer for details.
520
+ *
521
+ * @summary 查询租户项目列表
522
+ * @param {string} domainName 租户名称
523
+ * @param {*} [options] Override http request option.
524
+ * @throws {RequiredError}
525
+ */
526
+ CbrClient.prototype.listDomainProjects = function (listDomainProjectsRequest) {
527
+ var options = (0, exports.ParamCreater)().listDomainProjects(listDomainProjectsRequest);
528
+ // @ts-ignore
529
+ options['responseHeaders'] = [''];
530
+ return this.hcClient.sendRequest(options);
531
+ };
532
+ /**
533
+ * 查询其他区域的存储库列表
534
+ *
535
+ * Please refer to HUAWEI cloud API Explorer for details.
536
+ *
537
+ * @summary 查询其他区域存储库列表
538
+ * @param {string} externalProjectId 其他区域的项目ID
539
+ * @param {string} regionId 区域ID
540
+ * @param {number} [limit] 每页显示条目数
541
+ * @param {number} [offset] 偏移值
542
+ * @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)
543
+ * @param {string} [objcetType] 资源类型
544
+ * @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)
545
+ * @param {string} [vaultId] 存储库ID,指定存储ID时其他过滤条件不生效。
546
+ * @param {*} [options] Override http request option.
547
+ * @throws {RequiredError}
548
+ */
549
+ CbrClient.prototype.listExternalVault = function (listExternalVaultRequest) {
550
+ var options = (0, exports.ParamCreater)().listExternalVault(listExternalVaultRequest);
551
+ // @ts-ignore
552
+ options['responseHeaders'] = [''];
553
+ return this.hcClient.sendRequest(options);
554
+ };
438
555
  /**
439
556
  * 查询任务列表
440
557
  *
@@ -479,6 +596,21 @@ var CbrClient = /** @class */ (function () {
479
596
  options['responseHeaders'] = [''];
480
597
  return this.hcClient.sendRequest(options);
481
598
  };
599
+ /**
600
+ * 查询租户的企业项目信息
601
+ *
602
+ * Please refer to HUAWEI cloud API Explorer for details.
603
+ *
604
+ * @summary 查询租户的项目信息
605
+ * @param {*} [options] Override http request option.
606
+ * @throws {RequiredError}
607
+ */
608
+ CbrClient.prototype.listProjects = function () {
609
+ var options = (0, exports.ParamCreater)().listProjects();
610
+ // @ts-ignore
611
+ options['responseHeaders'] = [''];
612
+ return this.hcClient.sendRequest(options);
613
+ };
482
614
  /**
483
615
  * 查询可保护性资源列表
484
616
  *
@@ -528,6 +660,22 @@ var CbrClient = /** @class */ (function () {
528
660
  options['responseHeaders'] = [''];
529
661
  return this.hcClient.sendRequest(options);
530
662
  };
663
+ /**
664
+ * 将CSBS/VBS资源迁移到CBR。
665
+ *
666
+ * Please refer to HUAWEI cloud API Explorer for details.
667
+ *
668
+ * @summary 租户迁移
669
+ * @param {DomainMigrate} migrateDomainRequestBody 迁移参数
670
+ * @param {*} [options] Override http request option.
671
+ * @throws {RequiredError}
672
+ */
673
+ CbrClient.prototype.migrateDomain = function (migrateDomainRequest) {
674
+ var options = (0, exports.ParamCreater)().migrateDomain(migrateDomainRequest);
675
+ // @ts-ignore
676
+ options['responseHeaders'] = [''];
677
+ return this.hcClient.sendRequest(options);
678
+ };
531
679
  /**
532
680
  * 支持资源迁移到另一个存储库,不删除备份。
533
681
  *
@@ -612,6 +760,23 @@ var CbrClient = /** @class */ (function () {
612
760
  options['responseHeaders'] = [''];
613
761
  return this.hcClient.sendRequest(options);
614
762
  };
763
+ /**
764
+ * 设置存储库资源是否自动备份
765
+ *
766
+ * Please refer to HUAWEI cloud API Explorer for details.
767
+ *
768
+ * @summary 设置存储库资源
769
+ * @param {string} vaultId 存储库id
770
+ * @param {VaultSetResourceReq} vaultSetResourceBody 存储库设置资源请求body
771
+ * @param {*} [options] Override http request option.
772
+ * @throws {RequiredError}
773
+ */
774
+ CbrClient.prototype.setVaultResource = function (setVaultResourceRequest) {
775
+ var options = (0, exports.ParamCreater)().setVaultResource(setVaultResourceRequest);
776
+ // @ts-ignore
777
+ options['responseHeaders'] = [''];
778
+ return this.hcClient.sendRequest(options);
779
+ };
615
780
  /**
616
781
  * 查询指定客户端
617
782
  *
@@ -660,6 +825,22 @@ var CbrClient = /** @class */ (function () {
660
825
  options['responseHeaders'] = [''];
661
826
  return this.hcClient.sendRequest(options);
662
827
  };
828
+ /**
829
+ * 由控制台调用的内部接口,用于仅在查询共享备份时获取源project_id的域名信息。
830
+ *
831
+ * Please refer to HUAWEI cloud API Explorer for details.
832
+ *
833
+ * @summary 查询租户信息
834
+ * @param {string} sourceProjectId 源项目ID
835
+ * @param {*} [options] Override http request option.
836
+ * @throws {RequiredError}
837
+ */
838
+ CbrClient.prototype.showDomain = function (showDomainRequest) {
839
+ var options = (0, exports.ParamCreater)().showDomain(showDomainRequest);
840
+ // @ts-ignore
841
+ options['responseHeaders'] = [''];
842
+ return this.hcClient.sendRequest(options);
843
+ };
663
844
  /**
664
845
  * 获取备份成员的详情
665
846
  *
@@ -701,6 +882,38 @@ var CbrClient = /** @class */ (function () {
701
882
  options['responseHeaders'] = [''];
702
883
  return this.hcClient.sendRequest(options);
703
884
  };
885
+ /**
886
+ * 查询备份时资源的元数据
887
+ *
888
+ * Please refer to HUAWEI cloud API Explorer for details.
889
+ *
890
+ * @summary 查询备份元数据
891
+ * @param {string} backupId 备份ID
892
+ * @param {*} [options] Override http request option.
893
+ * @throws {RequiredError}
894
+ */
895
+ CbrClient.prototype.showMetadata = function (showMetadataRequest) {
896
+ var options = (0, exports.ParamCreater)().showMetadata(showMetadataRequest);
897
+ // @ts-ignore
898
+ options['responseHeaders'] = [''];
899
+ return this.hcClient.sendRequest(options);
900
+ };
901
+ /**
902
+ * 查询迁移结果
903
+ *
904
+ * Please refer to HUAWEI cloud API Explorer for details.
905
+ *
906
+ * @summary 查询迁移
907
+ * @param {boolean} [allRegions] 是否查询其他区域结果
908
+ * @param {*} [options] Override http request option.
909
+ * @throws {RequiredError}
910
+ */
911
+ CbrClient.prototype.showMigrateStatus = function (showMigrateStatusRequest) {
912
+ var options = (0, exports.ParamCreater)().showMigrateStatus(showMigrateStatusRequest);
913
+ // @ts-ignore
914
+ options['responseHeaders'] = [''];
915
+ return this.hcClient.sendRequest(options);
916
+ };
704
917
  /**
705
918
  * 根据指定任务ID查询任务
706
919
  *
@@ -765,6 +978,40 @@ var CbrClient = /** @class */ (function () {
765
978
  options['responseHeaders'] = [''];
766
979
  return this.hcClient.sendRequest(options);
767
980
  };
981
+ /**
982
+ * 查询容量统计
983
+ *
984
+ * Please refer to HUAWEI cloud API Explorer for details.
985
+ *
986
+ * @summary 查询容量统计
987
+ * @param {number} [limit] 查询条数
988
+ * @param {number} [offset] 偏移值
989
+ * @param {string} [resourceId] 支持按照备份对象ID过滤
990
+ * @param {'OS::Nova::Server' | 'OS::Ironic::BareMetalServer'} [resourceType] 支持按照备份对象类型过滤
991
+ * @param {*} [options] Override http request option.
992
+ * @throws {RequiredError}
993
+ */
994
+ CbrClient.prototype.showStorageUsage = function (showStorageUsageRequest) {
995
+ var options = (0, exports.ParamCreater)().showStorageUsage(showStorageUsageRequest);
996
+ // @ts-ignore
997
+ options['responseHeaders'] = [''];
998
+ return this.hcClient.sendRequest(options);
999
+ };
1000
+ /**
1001
+ * 查询项目下所有存储库的总容量和总使用量
1002
+ *
1003
+ * Please refer to HUAWEI cloud API Explorer for details.
1004
+ *
1005
+ * @summary 存储库容量总览
1006
+ * @param {*} [options] Override http request option.
1007
+ * @throws {RequiredError}
1008
+ */
1009
+ CbrClient.prototype.showSummary = function () {
1010
+ var options = (0, exports.ParamCreater)().showSummary();
1011
+ // @ts-ignore
1012
+ options['responseHeaders'] = [''];
1013
+ return this.hcClient.sendRequest(options);
1014
+ };
768
1015
  /**
769
1016
  * 根据ID查询指定存储库
770
1017
  *
@@ -864,6 +1111,23 @@ var CbrClient = /** @class */ (function () {
864
1111
  options['responseHeaders'] = [''];
865
1112
  return this.hcClient.sendRequest(options);
866
1113
  };
1114
+ /**
1115
+ * 根据备份id更改备份
1116
+ *
1117
+ * Please refer to HUAWEI cloud API Explorer for details.
1118
+ *
1119
+ * @summary 更新备份
1120
+ * @param {string} backupId 备份ID
1121
+ * @param {BackupUpdateReq} [backupUpdateRequestBody] 备份修改参数
1122
+ * @param {*} [options] Override http request option.
1123
+ * @throws {RequiredError}
1124
+ */
1125
+ CbrClient.prototype.updateBackup = function (updateBackupRequest) {
1126
+ var options = (0, exports.ParamCreater)().updateBackup(updateBackupRequest);
1127
+ // @ts-ignore
1128
+ options['responseHeaders'] = [''];
1129
+ return this.hcClient.sendRequest(options);
1130
+ };
867
1131
  /**
868
1132
  * 更新备份共享成员的状态,需要接收方执行此API。
869
1133
  *
@@ -882,6 +1146,23 @@ var CbrClient = /** @class */ (function () {
882
1146
  options['responseHeaders'] = [''];
883
1147
  return this.hcClient.sendRequest(options);
884
1148
  };
1149
+ /**
1150
+ * 订单更新,支付cbc订单后,调用该接口更新包周期产品订单信息。
1151
+ *
1152
+ * Please refer to HUAWEI cloud API Explorer for details.
1153
+ *
1154
+ * @summary 变更
1155
+ * @param {string} orderId 订单ID
1156
+ * @param {CbcUpdate} updateOrderRequestBody 变更请求body
1157
+ * @param {*} [options] Override http request option.
1158
+ * @throws {RequiredError}
1159
+ */
1160
+ CbrClient.prototype.updateOrder = function (updateOrderRequest) {
1161
+ var options = (0, exports.ParamCreater)().updateOrder(updateOrderRequest);
1162
+ // @ts-ignore
1163
+ options['responseHeaders'] = [''];
1164
+ return this.hcClient.sendRequest(options);
1165
+ };
885
1166
  /**
886
1167
  * 修改策略
887
1168
  *
@@ -1125,6 +1406,72 @@ var ParamCreater = function () {
1125
1406
  options.headers = localVarHeaderParameter;
1126
1407
  return options;
1127
1408
  },
1409
+ /**
1410
+ * 批量修改项目下所有存储库
1411
+ *
1412
+ * Please refer to HUAWEI cloud API Explorer for details.
1413
+ */
1414
+ batchUpdateVault: function (batchUpdateVaultRequest) {
1415
+ var options = {
1416
+ method: "PUT",
1417
+ url: "/v3/{project_id}/vaults/batch-update",
1418
+ contentType: "application/json;charset=UTF-8",
1419
+ queryParams: {},
1420
+ pathParams: {},
1421
+ headers: {},
1422
+ data: {}
1423
+ };
1424
+ var localVarHeaderParameter = {};
1425
+ var body;
1426
+ if (batchUpdateVaultRequest !== null && batchUpdateVaultRequest !== undefined) {
1427
+ if (batchUpdateVaultRequest instanceof BatchUpdateVaultRequest_1.BatchUpdateVaultRequest) {
1428
+ body = batchUpdateVaultRequest.body;
1429
+ }
1430
+ else {
1431
+ body = batchUpdateVaultRequest['body'];
1432
+ }
1433
+ }
1434
+ if (body === null || body === undefined) {
1435
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
1436
+ }
1437
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
1438
+ options.data = body !== undefined ? body : {};
1439
+ options.headers = localVarHeaderParameter;
1440
+ return options;
1441
+ },
1442
+ /**
1443
+ * 检查应用一致性Agent状态
1444
+ *
1445
+ * Please refer to HUAWEI cloud API Explorer for details.
1446
+ */
1447
+ checkAgent: function (checkAgentRequest) {
1448
+ var options = {
1449
+ method: "POST",
1450
+ url: "/v3/{project_id}/agent/check",
1451
+ contentType: "application/json;charset=UTF-8",
1452
+ queryParams: {},
1453
+ pathParams: {},
1454
+ headers: {},
1455
+ data: {}
1456
+ };
1457
+ var localVarHeaderParameter = {};
1458
+ var body;
1459
+ if (checkAgentRequest !== null && checkAgentRequest !== undefined) {
1460
+ if (checkAgentRequest instanceof CheckAgentRequest_1.CheckAgentRequest) {
1461
+ body = checkAgentRequest.body;
1462
+ }
1463
+ else {
1464
+ body = checkAgentRequest['body'];
1465
+ }
1466
+ }
1467
+ if (body === null || body === undefined) {
1468
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
1469
+ }
1470
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
1471
+ options.data = body !== undefined ? body : {};
1472
+ options.headers = localVarHeaderParameter;
1473
+ return options;
1474
+ },
1128
1475
  /**
1129
1476
  * 跨区域复制备份。
1130
1477
  *
@@ -1265,14 +1612,14 @@ var ParamCreater = function () {
1265
1612
  return options;
1266
1613
  },
1267
1614
  /**
1268
- * 创建存储库
1615
+ * 创建包周期存储库
1269
1616
  *
1270
1617
  * Please refer to HUAWEI cloud API Explorer for details.
1271
1618
  */
1272
- createVault: function (createVaultRequest) {
1619
+ createPostPaidVault: function (createPostPaidVaultRequest) {
1273
1620
  var options = {
1274
1621
  method: "POST",
1275
- url: "/v3/{project_id}/vaults",
1622
+ url: "/v3/{project_id}/vaults/order",
1276
1623
  contentType: "application/json;charset=UTF-8",
1277
1624
  queryParams: {},
1278
1625
  pathParams: {},
@@ -1281,12 +1628,12 @@ var ParamCreater = function () {
1281
1628
  };
1282
1629
  var localVarHeaderParameter = {};
1283
1630
  var body;
1284
- if (createVaultRequest !== null && createVaultRequest !== undefined) {
1285
- if (createVaultRequest instanceof CreateVaultRequest_1.CreateVaultRequest) {
1286
- body = createVaultRequest.body;
1631
+ if (createPostPaidVaultRequest !== null && createPostPaidVaultRequest !== undefined) {
1632
+ if (createPostPaidVaultRequest instanceof CreatePostPaidVaultRequest_1.CreatePostPaidVaultRequest) {
1633
+ body = createPostPaidVaultRequest.body;
1287
1634
  }
1288
1635
  else {
1289
- body = createVaultRequest['body'];
1636
+ body = createPostPaidVaultRequest['body'];
1290
1637
  }
1291
1638
  }
1292
1639
  if (body === null || body === undefined) {
@@ -1298,15 +1645,14 @@ var ParamCreater = function () {
1298
1645
  return options;
1299
1646
  },
1300
1647
  /**
1301
- * 一个资源上最多有10个标签。
1302
- * 此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。
1648
+ * 创建存储库
1303
1649
  *
1304
1650
  * Please refer to HUAWEI cloud API Explorer for details.
1305
1651
  */
1306
- createVaultTags: function (createVaultTagsRequest) {
1652
+ createVault: function (createVaultRequest) {
1307
1653
  var options = {
1308
1654
  method: "POST",
1309
- url: "/v3/{project_id}/vault/{vault_id}/tags",
1655
+ url: "/v3/{project_id}/vaults",
1310
1656
  contentType: "application/json;charset=UTF-8",
1311
1657
  queryParams: {},
1312
1658
  pathParams: {},
@@ -1315,15 +1661,49 @@ var ParamCreater = function () {
1315
1661
  };
1316
1662
  var localVarHeaderParameter = {};
1317
1663
  var body;
1318
- var vaultId;
1319
- if (createVaultTagsRequest !== null && createVaultTagsRequest !== undefined) {
1320
- if (createVaultTagsRequest instanceof CreateVaultTagsRequest_1.CreateVaultTagsRequest) {
1321
- vaultId = createVaultTagsRequest.vaultId;
1322
- body = createVaultTagsRequest.body;
1664
+ if (createVaultRequest !== null && createVaultRequest !== undefined) {
1665
+ if (createVaultRequest instanceof CreateVaultRequest_1.CreateVaultRequest) {
1666
+ body = createVaultRequest.body;
1323
1667
  }
1324
1668
  else {
1325
- vaultId = createVaultTagsRequest['vault_id'];
1326
- body = createVaultTagsRequest['body'];
1669
+ body = createVaultRequest['body'];
1670
+ }
1671
+ }
1672
+ if (body === null || body === undefined) {
1673
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
1674
+ }
1675
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
1676
+ options.data = body !== undefined ? body : {};
1677
+ options.headers = localVarHeaderParameter;
1678
+ return options;
1679
+ },
1680
+ /**
1681
+ * 一个资源上最多有10个标签。
1682
+ * 此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。
1683
+ *
1684
+ * Please refer to HUAWEI cloud API Explorer for details.
1685
+ */
1686
+ createVaultTags: function (createVaultTagsRequest) {
1687
+ var options = {
1688
+ method: "POST",
1689
+ url: "/v3/{project_id}/vault/{vault_id}/tags",
1690
+ contentType: "application/json;charset=UTF-8",
1691
+ queryParams: {},
1692
+ pathParams: {},
1693
+ headers: {},
1694
+ data: {}
1695
+ };
1696
+ var localVarHeaderParameter = {};
1697
+ var body;
1698
+ var vaultId;
1699
+ if (createVaultTagsRequest !== null && createVaultTagsRequest !== undefined) {
1700
+ if (createVaultTagsRequest instanceof CreateVaultTagsRequest_1.CreateVaultTagsRequest) {
1701
+ vaultId = createVaultTagsRequest.vaultId;
1702
+ body = createVaultTagsRequest.body;
1703
+ }
1704
+ else {
1705
+ vaultId = createVaultTagsRequest['vault_id'];
1706
+ body = createVaultTagsRequest['body'];
1327
1707
  }
1328
1708
  }
1329
1709
  if (vaultId === null || vaultId === undefined) {
@@ -1575,6 +1955,39 @@ var ParamCreater = function () {
1575
1955
  options.headers = localVarHeaderParameter;
1576
1956
  return options;
1577
1957
  },
1958
+ /**
1959
+ * 针对vault同步备份副本
1960
+ *
1961
+ * Please refer to HUAWEI cloud API Explorer for details.
1962
+ */
1963
+ importCheckpoint: function (importCheckpointRequest) {
1964
+ var options = {
1965
+ method: "POST",
1966
+ url: "/v3/{project_id}/checkpoints/sync",
1967
+ contentType: "application/json;charset=UTF-8",
1968
+ queryParams: {},
1969
+ pathParams: {},
1970
+ headers: {},
1971
+ data: {}
1972
+ };
1973
+ var localVarHeaderParameter = {};
1974
+ var body;
1975
+ if (importCheckpointRequest !== null && importCheckpointRequest !== undefined) {
1976
+ if (importCheckpointRequest instanceof ImportCheckpointRequest_1.ImportCheckpointRequest) {
1977
+ body = importCheckpointRequest.body;
1978
+ }
1979
+ else {
1980
+ body = importCheckpointRequest['body'];
1981
+ }
1982
+ }
1983
+ if (body === null || body === undefined) {
1984
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
1985
+ }
1986
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
1987
+ options.data = body !== undefined ? body : {};
1988
+ options.headers = localVarHeaderParameter;
1989
+ return options;
1990
+ },
1578
1991
  /**
1579
1992
  * 查询客户端列表
1580
1993
  *
@@ -1789,6 +2202,117 @@ var ParamCreater = function () {
1789
2202
  options.headers = localVarHeaderParameter;
1790
2203
  return options;
1791
2204
  },
2205
+ /**
2206
+ * 根据指定租户名称查询项目列表。
2207
+ *
2208
+ * Please refer to HUAWEI cloud API Explorer for details.
2209
+ */
2210
+ listDomainProjects: function (listDomainProjectsRequest) {
2211
+ var options = {
2212
+ method: "GET",
2213
+ url: "/v3/domain/{domain_name}/projects",
2214
+ contentType: "application/json",
2215
+ queryParams: {},
2216
+ pathParams: {},
2217
+ headers: {}
2218
+ };
2219
+ var localVarHeaderParameter = {};
2220
+ var domainName;
2221
+ if (listDomainProjectsRequest !== null && listDomainProjectsRequest !== undefined) {
2222
+ if (listDomainProjectsRequest instanceof ListDomainProjectsRequest_1.ListDomainProjectsRequest) {
2223
+ domainName = listDomainProjectsRequest.domainName;
2224
+ }
2225
+ else {
2226
+ domainName = listDomainProjectsRequest['domain_name'];
2227
+ }
2228
+ }
2229
+ if (domainName === null || domainName === undefined) {
2230
+ throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling listDomainProjects.');
2231
+ }
2232
+ options.pathParams = { 'domain_name': domainName, };
2233
+ options.headers = localVarHeaderParameter;
2234
+ return options;
2235
+ },
2236
+ /**
2237
+ * 查询其他区域的存储库列表
2238
+ *
2239
+ * Please refer to HUAWEI cloud API Explorer for details.
2240
+ */
2241
+ listExternalVault: function (listExternalVaultRequest) {
2242
+ var options = {
2243
+ method: "GET",
2244
+ url: "/v3/{project_id}/vaults/external",
2245
+ contentType: "application/json",
2246
+ queryParams: {},
2247
+ pathParams: {},
2248
+ headers: {}
2249
+ };
2250
+ var localVarHeaderParameter = {};
2251
+ var localVarQueryParameter = {};
2252
+ var externalProjectId;
2253
+ var regionId;
2254
+ var limit;
2255
+ var offset;
2256
+ var protectType;
2257
+ var objcetType;
2258
+ var cloudType;
2259
+ var vaultId;
2260
+ if (listExternalVaultRequest !== null && listExternalVaultRequest !== undefined) {
2261
+ if (listExternalVaultRequest instanceof ListExternalVaultRequest_1.ListExternalVaultRequest) {
2262
+ externalProjectId = listExternalVaultRequest.externalProjectId;
2263
+ regionId = listExternalVaultRequest.regionId;
2264
+ limit = listExternalVaultRequest.limit;
2265
+ offset = listExternalVaultRequest.offset;
2266
+ protectType = listExternalVaultRequest.protectType;
2267
+ objcetType = listExternalVaultRequest.objcetType;
2268
+ cloudType = listExternalVaultRequest.cloudType;
2269
+ vaultId = listExternalVaultRequest.vaultId;
2270
+ }
2271
+ else {
2272
+ externalProjectId = listExternalVaultRequest['external_project_id'];
2273
+ regionId = listExternalVaultRequest['region_id'];
2274
+ limit = listExternalVaultRequest['limit'];
2275
+ offset = listExternalVaultRequest['offset'];
2276
+ protectType = listExternalVaultRequest['protect_type'];
2277
+ objcetType = listExternalVaultRequest['objcet_type'];
2278
+ cloudType = listExternalVaultRequest['cloud_type'];
2279
+ vaultId = listExternalVaultRequest['vault_id'];
2280
+ }
2281
+ }
2282
+ if (externalProjectId === null || externalProjectId === undefined) {
2283
+ throw new RequiredError('externalProjectId', 'Required parameter externalProjectId was null or undefined when calling listExternalVault.');
2284
+ }
2285
+ if (externalProjectId !== null && externalProjectId !== undefined) {
2286
+ localVarQueryParameter['external_project_id'] = externalProjectId;
2287
+ }
2288
+ if (regionId === null || regionId === undefined) {
2289
+ throw new RequiredError('regionId', 'Required parameter regionId was null or undefined when calling listExternalVault.');
2290
+ }
2291
+ if (regionId !== null && regionId !== undefined) {
2292
+ localVarQueryParameter['region_id'] = regionId;
2293
+ }
2294
+ if (limit !== null && limit !== undefined) {
2295
+ localVarQueryParameter['limit'] = limit;
2296
+ }
2297
+ if (offset !== null && offset !== undefined) {
2298
+ localVarQueryParameter['offset'] = offset;
2299
+ }
2300
+ if (protectType !== null && protectType !== undefined) {
2301
+ localVarQueryParameter['protect_type'] = protectType;
2302
+ }
2303
+ if (objcetType !== null && objcetType !== undefined) {
2304
+ localVarQueryParameter['objcet_type'] = objcetType;
2305
+ }
2306
+ if (cloudType !== null && cloudType !== undefined) {
2307
+ localVarQueryParameter['cloud_type'] = cloudType;
2308
+ }
2309
+ if (vaultId !== null && vaultId !== undefined) {
2310
+ localVarQueryParameter['vault_id'] = vaultId;
2311
+ }
2312
+ options.queryParams = localVarQueryParameter;
2313
+ options.headers = localVarHeaderParameter;
2314
+ return options;
2315
+ },
1792
2316
  /**
1793
2317
  * 查询任务列表
1794
2318
  *
@@ -1925,6 +2449,24 @@ var ParamCreater = function () {
1925
2449
  options.headers = localVarHeaderParameter;
1926
2450
  return options;
1927
2451
  },
2452
+ /**
2453
+ * 查询租户的企业项目信息
2454
+ *
2455
+ * Please refer to HUAWEI cloud API Explorer for details.
2456
+ */
2457
+ listProjects: function () {
2458
+ var options = {
2459
+ method: "GET",
2460
+ url: "/v3/region-projects",
2461
+ contentType: "application/json",
2462
+ queryParams: {},
2463
+ pathParams: {},
2464
+ headers: {}
2465
+ };
2466
+ var localVarHeaderParameter = {};
2467
+ options.headers = localVarHeaderParameter;
2468
+ return options;
2469
+ },
1928
2470
  /**
1929
2471
  * 查询可保护性资源列表
1930
2472
  *
@@ -2092,6 +2634,39 @@ var ParamCreater = function () {
2092
2634
  options.headers = localVarHeaderParameter;
2093
2635
  return options;
2094
2636
  },
2637
+ /**
2638
+ * 将CSBS/VBS资源迁移到CBR。
2639
+ *
2640
+ * Please refer to HUAWEI cloud API Explorer for details.
2641
+ */
2642
+ migrateDomain: function (migrateDomainRequest) {
2643
+ var options = {
2644
+ method: "POST",
2645
+ url: "/v3/migrates",
2646
+ contentType: "application/json",
2647
+ queryParams: {},
2648
+ pathParams: {},
2649
+ headers: {},
2650
+ data: {}
2651
+ };
2652
+ var localVarHeaderParameter = {};
2653
+ var body;
2654
+ if (migrateDomainRequest !== null && migrateDomainRequest !== undefined) {
2655
+ if (migrateDomainRequest instanceof MigrateDomainRequest_1.MigrateDomainRequest) {
2656
+ body = migrateDomainRequest.body;
2657
+ }
2658
+ else {
2659
+ body = migrateDomainRequest['body'];
2660
+ }
2661
+ }
2662
+ if (body === null || body === undefined) {
2663
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
2664
+ }
2665
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2666
+ options.data = body !== undefined ? body : {};
2667
+ options.headers = localVarHeaderParameter;
2668
+ return options;
2669
+ },
2095
2670
  /**
2096
2671
  * 支持资源迁移到另一个存储库,不删除备份。
2097
2672
  *
@@ -2285,6 +2860,46 @@ var ParamCreater = function () {
2285
2860
  options.headers = localVarHeaderParameter;
2286
2861
  return options;
2287
2862
  },
2863
+ /**
2864
+ * 设置存储库资源是否自动备份
2865
+ *
2866
+ * Please refer to HUAWEI cloud API Explorer for details.
2867
+ */
2868
+ setVaultResource: function (setVaultResourceRequest) {
2869
+ var options = {
2870
+ method: "PUT",
2871
+ url: "/v3/{project_id}/vaults/{vault_id}/set-resources",
2872
+ contentType: "application/json;charset=UTF-8",
2873
+ queryParams: {},
2874
+ pathParams: {},
2875
+ headers: {},
2876
+ data: {}
2877
+ };
2878
+ var localVarHeaderParameter = {};
2879
+ var body;
2880
+ var vaultId;
2881
+ if (setVaultResourceRequest !== null && setVaultResourceRequest !== undefined) {
2882
+ if (setVaultResourceRequest instanceof SetVaultResourceRequest_1.SetVaultResourceRequest) {
2883
+ vaultId = setVaultResourceRequest.vaultId;
2884
+ body = setVaultResourceRequest.body;
2885
+ }
2886
+ else {
2887
+ vaultId = setVaultResourceRequest['vault_id'];
2888
+ body = setVaultResourceRequest['body'];
2889
+ }
2890
+ }
2891
+ if (vaultId === null || vaultId === undefined) {
2892
+ throw new RequiredError('vaultId', 'Required parameter vaultId was null or undefined when calling setVaultResource.');
2893
+ }
2894
+ if (body === null || body === undefined) {
2895
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
2896
+ }
2897
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
2898
+ options.data = body !== undefined ? body : {};
2899
+ options.pathParams = { 'vault_id': vaultId, };
2900
+ options.headers = localVarHeaderParameter;
2901
+ return options;
2902
+ },
2288
2903
  /**
2289
2904
  * 查询指定客户端
2290
2905
  *
@@ -2378,6 +2993,37 @@ var ParamCreater = function () {
2378
2993
  options.headers = localVarHeaderParameter;
2379
2994
  return options;
2380
2995
  },
2996
+ /**
2997
+ * 由控制台调用的内部接口,用于仅在查询共享备份时获取源project_id的域名信息。
2998
+ *
2999
+ * Please refer to HUAWEI cloud API Explorer for details.
3000
+ */
3001
+ showDomain: function (showDomainRequest) {
3002
+ var options = {
3003
+ method: "GET",
3004
+ url: "/v3/domain/{source_project_id}",
3005
+ contentType: "application/json",
3006
+ queryParams: {},
3007
+ pathParams: {},
3008
+ headers: {}
3009
+ };
3010
+ var localVarHeaderParameter = {};
3011
+ var sourceProjectId;
3012
+ if (showDomainRequest !== null && showDomainRequest !== undefined) {
3013
+ if (showDomainRequest instanceof ShowDomainRequest_1.ShowDomainRequest) {
3014
+ sourceProjectId = showDomainRequest.sourceProjectId;
3015
+ }
3016
+ else {
3017
+ sourceProjectId = showDomainRequest['source_project_id'];
3018
+ }
3019
+ }
3020
+ if (sourceProjectId === null || sourceProjectId === undefined) {
3021
+ throw new RequiredError('sourceProjectId', 'Required parameter sourceProjectId was null or undefined when calling showDomain.');
3022
+ }
3023
+ options.pathParams = { 'source_project_id': sourceProjectId, };
3024
+ options.headers = localVarHeaderParameter;
3025
+ return options;
3026
+ },
2381
3027
  /**
2382
3028
  * 获取备份成员的详情
2383
3029
  *
@@ -2496,6 +3142,69 @@ var ParamCreater = function () {
2496
3142
  options.headers = localVarHeaderParameter;
2497
3143
  return options;
2498
3144
  },
3145
+ /**
3146
+ * 查询备份时资源的元数据
3147
+ *
3148
+ * Please refer to HUAWEI cloud API Explorer for details.
3149
+ */
3150
+ showMetadata: function (showMetadataRequest) {
3151
+ var options = {
3152
+ method: "GET",
3153
+ url: "/v3/{project_id}/backups/{backup_id}/metadata",
3154
+ contentType: "application/json",
3155
+ queryParams: {},
3156
+ pathParams: {},
3157
+ headers: {}
3158
+ };
3159
+ var localVarHeaderParameter = {};
3160
+ var backupId;
3161
+ if (showMetadataRequest !== null && showMetadataRequest !== undefined) {
3162
+ if (showMetadataRequest instanceof ShowMetadataRequest_1.ShowMetadataRequest) {
3163
+ backupId = showMetadataRequest.backupId;
3164
+ }
3165
+ else {
3166
+ backupId = showMetadataRequest['backup_id'];
3167
+ }
3168
+ }
3169
+ if (backupId === null || backupId === undefined) {
3170
+ throw new RequiredError('backupId', 'Required parameter backupId was null or undefined when calling showMetadata.');
3171
+ }
3172
+ options.pathParams = { 'backup_id': backupId, };
3173
+ options.headers = localVarHeaderParameter;
3174
+ return options;
3175
+ },
3176
+ /**
3177
+ * 查询迁移结果
3178
+ *
3179
+ * Please refer to HUAWEI cloud API Explorer for details.
3180
+ */
3181
+ showMigrateStatus: function (showMigrateStatusRequest) {
3182
+ var options = {
3183
+ method: "GET",
3184
+ url: "/v3/migrates",
3185
+ contentType: "application/json",
3186
+ queryParams: {},
3187
+ pathParams: {},
3188
+ headers: {}
3189
+ };
3190
+ var localVarHeaderParameter = {};
3191
+ var localVarQueryParameter = {};
3192
+ var allRegions;
3193
+ if (showMigrateStatusRequest !== null && showMigrateStatusRequest !== undefined) {
3194
+ if (showMigrateStatusRequest instanceof ShowMigrateStatusRequest_1.ShowMigrateStatusRequest) {
3195
+ allRegions = showMigrateStatusRequest.allRegions;
3196
+ }
3197
+ else {
3198
+ allRegions = showMigrateStatusRequest['all_regions'];
3199
+ }
3200
+ }
3201
+ if (allRegions !== null && allRegions !== undefined) {
3202
+ localVarQueryParameter['all_regions'] = allRegions;
3203
+ }
3204
+ options.queryParams = localVarQueryParameter;
3205
+ options.headers = localVarHeaderParameter;
3206
+ return options;
3207
+ },
2499
3208
  /**
2500
3209
  * 根据指定任务ID查询任务
2501
3210
  *
@@ -2613,6 +3322,74 @@ var ParamCreater = function () {
2613
3322
  options.headers = localVarHeaderParameter;
2614
3323
  return options;
2615
3324
  },
3325
+ /**
3326
+ * 查询容量统计
3327
+ *
3328
+ * Please refer to HUAWEI cloud API Explorer for details.
3329
+ */
3330
+ showStorageUsage: function (showStorageUsageRequest) {
3331
+ var options = {
3332
+ method: "GET",
3333
+ url: "/v3/{project_id}/storage_usage",
3334
+ contentType: "application/json",
3335
+ queryParams: {},
3336
+ pathParams: {},
3337
+ headers: {}
3338
+ };
3339
+ var localVarHeaderParameter = {};
3340
+ var localVarQueryParameter = {};
3341
+ var limit;
3342
+ var offset;
3343
+ var resourceId;
3344
+ var resourceType;
3345
+ if (showStorageUsageRequest !== null && showStorageUsageRequest !== undefined) {
3346
+ if (showStorageUsageRequest instanceof ShowStorageUsageRequest_1.ShowStorageUsageRequest) {
3347
+ limit = showStorageUsageRequest.limit;
3348
+ offset = showStorageUsageRequest.offset;
3349
+ resourceId = showStorageUsageRequest.resourceId;
3350
+ resourceType = showStorageUsageRequest.resourceType;
3351
+ }
3352
+ else {
3353
+ limit = showStorageUsageRequest['limit'];
3354
+ offset = showStorageUsageRequest['offset'];
3355
+ resourceId = showStorageUsageRequest['resource_id'];
3356
+ resourceType = showStorageUsageRequest['resource_type'];
3357
+ }
3358
+ }
3359
+ if (limit !== null && limit !== undefined) {
3360
+ localVarQueryParameter['limit'] = limit;
3361
+ }
3362
+ if (offset !== null && offset !== undefined) {
3363
+ localVarQueryParameter['offset'] = offset;
3364
+ }
3365
+ if (resourceId !== null && resourceId !== undefined) {
3366
+ localVarQueryParameter['resource_id'] = resourceId;
3367
+ }
3368
+ if (resourceType !== null && resourceType !== undefined) {
3369
+ localVarQueryParameter['resource_type'] = resourceType;
3370
+ }
3371
+ options.queryParams = localVarQueryParameter;
3372
+ options.headers = localVarHeaderParameter;
3373
+ return options;
3374
+ },
3375
+ /**
3376
+ * 查询项目下所有存储库的总容量和总使用量
3377
+ *
3378
+ * Please refer to HUAWEI cloud API Explorer for details.
3379
+ */
3380
+ showSummary: function () {
3381
+ var options = {
3382
+ method: "GET",
3383
+ url: "/v3/{project_id}/vaults/summary",
3384
+ contentType: "application/json",
3385
+ queryParams: {},
3386
+ pathParams: {},
3387
+ headers: {}
3388
+ };
3389
+ var localVarHeaderParameter = {};
3390
+ options.headers = localVarHeaderParameter;
3391
+ return options;
3392
+ },
2616
3393
  /**
2617
3394
  * 根据ID查询指定存储库
2618
3395
  *
@@ -2800,6 +3577,43 @@ var ParamCreater = function () {
2800
3577
  options.headers = localVarHeaderParameter;
2801
3578
  return options;
2802
3579
  },
3580
+ /**
3581
+ * 根据备份id更改备份
3582
+ *
3583
+ * Please refer to HUAWEI cloud API Explorer for details.
3584
+ */
3585
+ updateBackup: function (updateBackupRequest) {
3586
+ var options = {
3587
+ method: "PUT",
3588
+ url: "/v3/{project_id}/backups/{backup_id}",
3589
+ contentType: "application/json;charset=UTF-8",
3590
+ queryParams: {},
3591
+ pathParams: {},
3592
+ headers: {},
3593
+ data: {}
3594
+ };
3595
+ var localVarHeaderParameter = {};
3596
+ var body;
3597
+ var backupId;
3598
+ if (updateBackupRequest !== null && updateBackupRequest !== undefined) {
3599
+ if (updateBackupRequest instanceof UpdateBackupRequest_1.UpdateBackupRequest) {
3600
+ backupId = updateBackupRequest.backupId;
3601
+ body = updateBackupRequest.body;
3602
+ }
3603
+ else {
3604
+ backupId = updateBackupRequest['backup_id'];
3605
+ body = updateBackupRequest['body'];
3606
+ }
3607
+ }
3608
+ if (backupId === null || backupId === undefined) {
3609
+ throw new RequiredError('backupId', 'Required parameter backupId was null or undefined when calling updateBackup.');
3610
+ }
3611
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
3612
+ options.data = body !== undefined ? body : {};
3613
+ options.pathParams = { 'backup_id': backupId, };
3614
+ options.headers = localVarHeaderParameter;
3615
+ return options;
3616
+ },
2803
3617
  /**
2804
3618
  * 更新备份共享成员的状态,需要接收方执行此API。
2805
3619
  *
@@ -2843,6 +3657,46 @@ var ParamCreater = function () {
2843
3657
  options.headers = localVarHeaderParameter;
2844
3658
  return options;
2845
3659
  },
3660
+ /**
3661
+ * 订单更新,支付cbc订单后,调用该接口更新包周期产品订单信息。
3662
+ *
3663
+ * Please refer to HUAWEI cloud API Explorer for details.
3664
+ */
3665
+ updateOrder: function (updateOrderRequest) {
3666
+ var options = {
3667
+ method: "PUT",
3668
+ url: "/v3/{project_id}/orders/{order_id}",
3669
+ contentType: "application/json;charset=UTF-8",
3670
+ queryParams: {},
3671
+ pathParams: {},
3672
+ headers: {},
3673
+ data: {}
3674
+ };
3675
+ var localVarHeaderParameter = {};
3676
+ var body;
3677
+ var orderId;
3678
+ if (updateOrderRequest !== null && updateOrderRequest !== undefined) {
3679
+ if (updateOrderRequest instanceof UpdateOrderRequest_1.UpdateOrderRequest) {
3680
+ orderId = updateOrderRequest.orderId;
3681
+ body = updateOrderRequest.body;
3682
+ }
3683
+ else {
3684
+ orderId = updateOrderRequest['order_id'];
3685
+ body = updateOrderRequest['body'];
3686
+ }
3687
+ }
3688
+ if (orderId === null || orderId === undefined) {
3689
+ throw new RequiredError('orderId', 'Required parameter orderId was null or undefined when calling updateOrder.');
3690
+ }
3691
+ if (body === null || body === undefined) {
3692
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
3693
+ }
3694
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
3695
+ options.data = body !== undefined ? body : {};
3696
+ options.pathParams = { 'order_id': orderId, };
3697
+ options.headers = localVarHeaderParameter;
3698
+ return options;
3699
+ },
2846
3700
  /**
2847
3701
  * 修改策略
2848
3702
  *