@huaweicloud/huaweicloud-sdk-cbr 3.1.38 → 3.1.39
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +2 -2
- package/v1/CbrClient.d.ts +409 -0
- package/v1/CbrClient.js +828 -7
- package/v1/CbrRegion.d.ts +1 -0
- package/v1/CbrRegion.js +3 -1
- package/v1/model/BackupUpdate.d.ts +5 -0
- package/v1/model/BackupUpdate.js +13 -0
- package/v1/model/BackupUpdateReq.d.ts +6 -0
- package/v1/model/BackupUpdateReq.js +13 -0
- package/v1/model/BatchUpdateVaultRequest.d.ts +6 -0
- package/v1/model/BatchUpdateVaultRequest.js +13 -0
- package/v1/model/BatchUpdateVaultRequestBody.d.ts +6 -0
- package/v1/model/BatchUpdateVaultRequestBody.js +14 -0
- package/v1/model/BatchUpdateVaultResponse.d.ts +8 -0
- package/v1/model/BatchUpdateVaultResponse.js +41 -0
- package/v1/model/CbcProductInfoUpdate.d.ts +11 -0
- package/v1/model/CbcProductInfoUpdate.js +28 -0
- package/v1/model/CbcUpdate.d.ts +14 -0
- package/v1/model/CbcUpdate.js +37 -0
- package/v1/model/CheckAgentRequest.d.ts +6 -0
- package/v1/model/CheckAgentRequest.js +13 -0
- package/v1/model/CheckAgentResponse.d.ts +9 -0
- package/v1/model/CheckAgentResponse.js +41 -0
- package/v1/model/CombinedOrder.d.ts +15 -0
- package/v1/model/CombinedOrder.js +51 -0
- package/v1/model/CreatePostPaidVaultRequest.d.ts +6 -0
- package/v1/model/CreatePostPaidVaultRequest.js +13 -0
- package/v1/model/CreatePostPaidVaultResponse.d.ts +15 -0
- package/v1/model/CreatePostPaidVaultResponse.js +53 -0
- package/v1/model/DomainMigrate.d.ts +9 -0
- package/v1/model/DomainMigrate.js +29 -0
- package/v1/model/DomainMigrateProjectStatus.d.ts +36 -0
- package/v1/model/DomainMigrateProjectStatus.js +100 -0
- package/v1/model/DomainProjectsInfo.d.ts +11 -0
- package/v1/model/DomainProjectsInfo.js +39 -0
- package/v1/model/ImportCheckpointRequest.d.ts +6 -0
- package/v1/model/ImportCheckpointRequest.js +13 -0
- package/v1/model/ImportCheckpointResponse.d.ts +7 -0
- package/v1/model/ImportCheckpointResponse.js +31 -0
- package/v1/model/ListDomainProjectsRequest.d.ts +7 -0
- package/v1/model/ListDomainProjectsRequest.js +24 -0
- package/v1/model/ListDomainProjectsResponse.d.ts +7 -0
- package/v1/model/ListDomainProjectsResponse.js +31 -0
- package/v1/model/ListExternalVaultRequest.d.ts +38 -0
- package/v1/model/ListExternalVaultRequest.js +111 -0
- package/v1/model/ListExternalVaultResponse.d.ts +13 -0
- package/v1/model/ListExternalVaultResponse.js +43 -0
- package/v1/model/ListProjectsRequest.d.ts +3 -0
- package/v1/model/ListProjectsRequest.js +9 -0
- package/v1/model/ListProjectsResponse.d.ts +10 -0
- package/v1/model/ListProjectsResponse.js +35 -0
- package/v1/model/MigrateDomainRequest.d.ts +6 -0
- package/v1/model/MigrateDomainRequest.js +13 -0
- package/v1/model/MigrateDomainResponse.d.ts +10 -0
- package/v1/model/MigrateDomainResponse.js +31 -0
- package/v1/model/ProjectsListInfo.d.ts +26 -0
- package/v1/model/ProjectsListInfo.js +71 -0
- package/v1/model/ProtectableAgentReq.d.ts +8 -0
- package/v1/model/ProtectableAgentReq.js +24 -0
- package/v1/model/ProtectableAgentStatus.d.ts +19 -0
- package/v1/model/ProtectableAgentStatus.js +53 -0
- package/v1/model/ProtectableAgentStatusResource.d.ts +15 -0
- package/v1/model/ProtectableAgentStatusResource.js +53 -0
- package/v1/model/SelfLinksInfo.d.ts +5 -0
- package/v1/model/SelfLinksInfo.js +13 -0
- package/v1/model/SetVaultResourceRequest.d.ts +10 -0
- package/v1/model/SetVaultResourceRequest.js +28 -0
- package/v1/model/SetVaultResourceResponse.d.ts +8 -0
- package/v1/model/SetVaultResourceResponse.js +41 -0
- package/v1/model/ShowDomainRequest.d.ts +7 -0
- package/v1/model/ShowDomainRequest.js +24 -0
- package/v1/model/ShowDomainResponse.d.ts +20 -0
- package/v1/model/ShowDomainResponse.js +83 -0
- package/v1/model/ShowMetadataRequest.d.ts +7 -0
- package/v1/model/ShowMetadataRequest.js +24 -0
- package/v1/model/ShowMetadataResponse.d.ts +24 -0
- package/v1/model/ShowMetadataResponse.js +79 -0
- package/v1/model/ShowMigrateStatusRequest.d.ts +7 -0
- package/v1/model/ShowMigrateStatusRequest.js +23 -0
- package/v1/model/ShowMigrateStatusResponse.d.ts +20 -0
- package/v1/model/ShowMigrateStatusResponse.js +55 -0
- package/v1/model/ShowStorageUsageRequest.d.ts +23 -0
- package/v1/model/ShowStorageUsageRequest.js +54 -0
- package/v1/model/ShowStorageUsageResponse.d.ts +13 -0
- package/v1/model/ShowStorageUsageResponse.js +55 -0
- package/v1/model/StorageUsage.d.ts +27 -0
- package/v1/model/StorageUsage.js +96 -0
- package/v1/model/SyncParam.d.ts +11 -0
- package/v1/model/SyncParam.js +39 -0
- package/v1/model/SyncReq.d.ts +6 -0
- package/v1/model/SyncReq.js +14 -0
- package/v1/model/SyncRespBody.d.ts +11 -0
- package/v1/model/SyncRespBody.js +39 -0
- package/v1/model/UpdateBackupRequest.d.ts +10 -0
- package/v1/model/UpdateBackupRequest.js +28 -0
- package/v1/model/UpdateBackupResponse.d.ts +7 -0
- package/v1/model/UpdateBackupResponse.js +31 -0
- package/v1/model/UpdateOrderRequest.d.ts +10 -0
- package/v1/model/UpdateOrderRequest.js +28 -0
- package/v1/model/UpdateOrderResponse.d.ts +4 -0
- package/v1/model/UpdateOrderResponse.js +27 -0
- package/v1/model/VaultBatchUpdate.d.ts +9 -0
- package/v1/model/VaultBatchUpdate.js +27 -0
- package/v1/model/VaultCreate.d.ts +14 -0
- package/v1/model/VaultCreate.js +46 -0
- package/v1/model/VaultCreateParameters.d.ts +8 -0
- package/v1/model/VaultCreateParameters.js +23 -0
- package/v1/model/VaultCreateResource.d.ts +14 -0
- package/v1/model/VaultCreateResource.js +46 -0
- package/v1/model/VaultOrder.d.ts +46 -0
- package/v1/model/VaultOrder.js +123 -0
- package/v1/model/VaultOrderCreateReqs.d.ts +6 -0
- package/v1/model/VaultOrderCreateReqs.js +14 -0
- package/v1/model/VaultSetResourceReq.d.ts +17 -0
- package/v1/model/VaultSetResourceReq.js +38 -0
- package/v1/public-api.d.ts +53 -0
- package/v1/public-api.js +53 -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,25 @@ 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
|
+
};
|
768
1000
|
/**
|
769
1001
|
* 根据ID查询指定存储库
|
770
1002
|
*
|
@@ -864,6 +1096,23 @@ var CbrClient = /** @class */ (function () {
|
|
864
1096
|
options['responseHeaders'] = [''];
|
865
1097
|
return this.hcClient.sendRequest(options);
|
866
1098
|
};
|
1099
|
+
/**
|
1100
|
+
* 根据备份id更改备份
|
1101
|
+
*
|
1102
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1103
|
+
*
|
1104
|
+
* @summary 更新备份
|
1105
|
+
* @param {string} backupId 备份ID
|
1106
|
+
* @param {BackupUpdateReq} [backupUpdateRequestBody] 备份修改参数
|
1107
|
+
* @param {*} [options] Override http request option.
|
1108
|
+
* @throws {RequiredError}
|
1109
|
+
*/
|
1110
|
+
CbrClient.prototype.updateBackup = function (updateBackupRequest) {
|
1111
|
+
var options = (0, exports.ParamCreater)().updateBackup(updateBackupRequest);
|
1112
|
+
// @ts-ignore
|
1113
|
+
options['responseHeaders'] = [''];
|
1114
|
+
return this.hcClient.sendRequest(options);
|
1115
|
+
};
|
867
1116
|
/**
|
868
1117
|
* 更新备份共享成员的状态,需要接收方执行此API。
|
869
1118
|
*
|
@@ -882,6 +1131,23 @@ var CbrClient = /** @class */ (function () {
|
|
882
1131
|
options['responseHeaders'] = [''];
|
883
1132
|
return this.hcClient.sendRequest(options);
|
884
1133
|
};
|
1134
|
+
/**
|
1135
|
+
* 订单更新,支付cbc订单后,调用该接口更新包周期产品订单信息。
|
1136
|
+
*
|
1137
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1138
|
+
*
|
1139
|
+
* @summary 变更
|
1140
|
+
* @param {string} orderId 订单ID
|
1141
|
+
* @param {CbcUpdate} updateOrderRequestBody 变更请求body
|
1142
|
+
* @param {*} [options] Override http request option.
|
1143
|
+
* @throws {RequiredError}
|
1144
|
+
*/
|
1145
|
+
CbrClient.prototype.updateOrder = function (updateOrderRequest) {
|
1146
|
+
var options = (0, exports.ParamCreater)().updateOrder(updateOrderRequest);
|
1147
|
+
// @ts-ignore
|
1148
|
+
options['responseHeaders'] = [''];
|
1149
|
+
return this.hcClient.sendRequest(options);
|
1150
|
+
};
|
885
1151
|
/**
|
886
1152
|
* 修改策略
|
887
1153
|
*
|
@@ -1125,6 +1391,72 @@ var ParamCreater = function () {
|
|
1125
1391
|
options.headers = localVarHeaderParameter;
|
1126
1392
|
return options;
|
1127
1393
|
},
|
1394
|
+
/**
|
1395
|
+
* 批量修改项目下所有存储库
|
1396
|
+
*
|
1397
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1398
|
+
*/
|
1399
|
+
batchUpdateVault: function (batchUpdateVaultRequest) {
|
1400
|
+
var options = {
|
1401
|
+
method: "PUT",
|
1402
|
+
url: "/v3/{project_id}/vaults/batch-update",
|
1403
|
+
contentType: "application/json;charset=UTF-8",
|
1404
|
+
queryParams: {},
|
1405
|
+
pathParams: {},
|
1406
|
+
headers: {},
|
1407
|
+
data: {}
|
1408
|
+
};
|
1409
|
+
var localVarHeaderParameter = {};
|
1410
|
+
var body;
|
1411
|
+
if (batchUpdateVaultRequest !== null && batchUpdateVaultRequest !== undefined) {
|
1412
|
+
if (batchUpdateVaultRequest instanceof BatchUpdateVaultRequest_1.BatchUpdateVaultRequest) {
|
1413
|
+
body = batchUpdateVaultRequest.body;
|
1414
|
+
}
|
1415
|
+
else {
|
1416
|
+
body = batchUpdateVaultRequest['body'];
|
1417
|
+
}
|
1418
|
+
}
|
1419
|
+
if (body === null || body === undefined) {
|
1420
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1421
|
+
}
|
1422
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
1423
|
+
options.data = body !== undefined ? body : {};
|
1424
|
+
options.headers = localVarHeaderParameter;
|
1425
|
+
return options;
|
1426
|
+
},
|
1427
|
+
/**
|
1428
|
+
* 检查应用一致性Agent状态
|
1429
|
+
*
|
1430
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1431
|
+
*/
|
1432
|
+
checkAgent: function (checkAgentRequest) {
|
1433
|
+
var options = {
|
1434
|
+
method: "POST",
|
1435
|
+
url: "/v3/{project_id}/agent/check",
|
1436
|
+
contentType: "application/json;charset=UTF-8",
|
1437
|
+
queryParams: {},
|
1438
|
+
pathParams: {},
|
1439
|
+
headers: {},
|
1440
|
+
data: {}
|
1441
|
+
};
|
1442
|
+
var localVarHeaderParameter = {};
|
1443
|
+
var body;
|
1444
|
+
if (checkAgentRequest !== null && checkAgentRequest !== undefined) {
|
1445
|
+
if (checkAgentRequest instanceof CheckAgentRequest_1.CheckAgentRequest) {
|
1446
|
+
body = checkAgentRequest.body;
|
1447
|
+
}
|
1448
|
+
else {
|
1449
|
+
body = checkAgentRequest['body'];
|
1450
|
+
}
|
1451
|
+
}
|
1452
|
+
if (body === null || body === undefined) {
|
1453
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1454
|
+
}
|
1455
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
1456
|
+
options.data = body !== undefined ? body : {};
|
1457
|
+
options.headers = localVarHeaderParameter;
|
1458
|
+
return options;
|
1459
|
+
},
|
1128
1460
|
/**
|
1129
1461
|
* 跨区域复制备份。
|
1130
1462
|
*
|
@@ -1264,6 +1596,39 @@ var ParamCreater = function () {
|
|
1264
1596
|
options.headers = localVarHeaderParameter;
|
1265
1597
|
return options;
|
1266
1598
|
},
|
1599
|
+
/**
|
1600
|
+
* 创建包周期存储库
|
1601
|
+
*
|
1602
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1603
|
+
*/
|
1604
|
+
createPostPaidVault: function (createPostPaidVaultRequest) {
|
1605
|
+
var options = {
|
1606
|
+
method: "POST",
|
1607
|
+
url: "/v3/{project_id}/vaults/order",
|
1608
|
+
contentType: "application/json;charset=UTF-8",
|
1609
|
+
queryParams: {},
|
1610
|
+
pathParams: {},
|
1611
|
+
headers: {},
|
1612
|
+
data: {}
|
1613
|
+
};
|
1614
|
+
var localVarHeaderParameter = {};
|
1615
|
+
var body;
|
1616
|
+
if (createPostPaidVaultRequest !== null && createPostPaidVaultRequest !== undefined) {
|
1617
|
+
if (createPostPaidVaultRequest instanceof CreatePostPaidVaultRequest_1.CreatePostPaidVaultRequest) {
|
1618
|
+
body = createPostPaidVaultRequest.body;
|
1619
|
+
}
|
1620
|
+
else {
|
1621
|
+
body = createPostPaidVaultRequest['body'];
|
1622
|
+
}
|
1623
|
+
}
|
1624
|
+
if (body === null || body === undefined) {
|
1625
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1626
|
+
}
|
1627
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
1628
|
+
options.data = body !== undefined ? body : {};
|
1629
|
+
options.headers = localVarHeaderParameter;
|
1630
|
+
return options;
|
1631
|
+
},
|
1267
1632
|
/**
|
1268
1633
|
* 创建存储库
|
1269
1634
|
*
|
@@ -1576,19 +1941,52 @@ var ParamCreater = function () {
|
|
1576
1941
|
return options;
|
1577
1942
|
},
|
1578
1943
|
/**
|
1579
|
-
*
|
1944
|
+
* 针对vault同步备份副本
|
1580
1945
|
*
|
1581
1946
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1582
1947
|
*/
|
1583
|
-
|
1948
|
+
importCheckpoint: function (importCheckpointRequest) {
|
1584
1949
|
var options = {
|
1585
|
-
method: "
|
1586
|
-
url: "/v3/{project_id}/
|
1587
|
-
contentType: "application/json",
|
1950
|
+
method: "POST",
|
1951
|
+
url: "/v3/{project_id}/checkpoints/sync",
|
1952
|
+
contentType: "application/json;charset=UTF-8",
|
1588
1953
|
queryParams: {},
|
1589
1954
|
pathParams: {},
|
1590
|
-
headers: {}
|
1591
|
-
|
1955
|
+
headers: {},
|
1956
|
+
data: {}
|
1957
|
+
};
|
1958
|
+
var localVarHeaderParameter = {};
|
1959
|
+
var body;
|
1960
|
+
if (importCheckpointRequest !== null && importCheckpointRequest !== undefined) {
|
1961
|
+
if (importCheckpointRequest instanceof ImportCheckpointRequest_1.ImportCheckpointRequest) {
|
1962
|
+
body = importCheckpointRequest.body;
|
1963
|
+
}
|
1964
|
+
else {
|
1965
|
+
body = importCheckpointRequest['body'];
|
1966
|
+
}
|
1967
|
+
}
|
1968
|
+
if (body === null || body === undefined) {
|
1969
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1970
|
+
}
|
1971
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
1972
|
+
options.data = body !== undefined ? body : {};
|
1973
|
+
options.headers = localVarHeaderParameter;
|
1974
|
+
return options;
|
1975
|
+
},
|
1976
|
+
/**
|
1977
|
+
* 查询客户端列表
|
1978
|
+
*
|
1979
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1980
|
+
*/
|
1981
|
+
listAgent: function (listAgentRequest) {
|
1982
|
+
var options = {
|
1983
|
+
method: "GET",
|
1984
|
+
url: "/v3/{project_id}/agents",
|
1985
|
+
contentType: "application/json",
|
1986
|
+
queryParams: {},
|
1987
|
+
pathParams: {},
|
1988
|
+
headers: {}
|
1989
|
+
};
|
1592
1990
|
var localVarHeaderParameter = {};
|
1593
1991
|
var localVarQueryParameter = {};
|
1594
1992
|
var limit;
|
@@ -1789,6 +2187,117 @@ var ParamCreater = function () {
|
|
1789
2187
|
options.headers = localVarHeaderParameter;
|
1790
2188
|
return options;
|
1791
2189
|
},
|
2190
|
+
/**
|
2191
|
+
* 根据指定租户名称查询项目列表。
|
2192
|
+
*
|
2193
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2194
|
+
*/
|
2195
|
+
listDomainProjects: function (listDomainProjectsRequest) {
|
2196
|
+
var options = {
|
2197
|
+
method: "GET",
|
2198
|
+
url: "/v3/domain/{domain_name}/projects",
|
2199
|
+
contentType: "application/json",
|
2200
|
+
queryParams: {},
|
2201
|
+
pathParams: {},
|
2202
|
+
headers: {}
|
2203
|
+
};
|
2204
|
+
var localVarHeaderParameter = {};
|
2205
|
+
var domainName;
|
2206
|
+
if (listDomainProjectsRequest !== null && listDomainProjectsRequest !== undefined) {
|
2207
|
+
if (listDomainProjectsRequest instanceof ListDomainProjectsRequest_1.ListDomainProjectsRequest) {
|
2208
|
+
domainName = listDomainProjectsRequest.domainName;
|
2209
|
+
}
|
2210
|
+
else {
|
2211
|
+
domainName = listDomainProjectsRequest['domain_name'];
|
2212
|
+
}
|
2213
|
+
}
|
2214
|
+
if (domainName === null || domainName === undefined) {
|
2215
|
+
throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling listDomainProjects.');
|
2216
|
+
}
|
2217
|
+
options.pathParams = { 'domain_name': domainName, };
|
2218
|
+
options.headers = localVarHeaderParameter;
|
2219
|
+
return options;
|
2220
|
+
},
|
2221
|
+
/**
|
2222
|
+
* 查询其他区域的存储库列表
|
2223
|
+
*
|
2224
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2225
|
+
*/
|
2226
|
+
listExternalVault: function (listExternalVaultRequest) {
|
2227
|
+
var options = {
|
2228
|
+
method: "GET",
|
2229
|
+
url: "/v3/{project_id}/vaults/external",
|
2230
|
+
contentType: "application/json",
|
2231
|
+
queryParams: {},
|
2232
|
+
pathParams: {},
|
2233
|
+
headers: {}
|
2234
|
+
};
|
2235
|
+
var localVarHeaderParameter = {};
|
2236
|
+
var localVarQueryParameter = {};
|
2237
|
+
var externalProjectId;
|
2238
|
+
var regionId;
|
2239
|
+
var limit;
|
2240
|
+
var offset;
|
2241
|
+
var protectType;
|
2242
|
+
var objcetType;
|
2243
|
+
var cloudType;
|
2244
|
+
var vaultId;
|
2245
|
+
if (listExternalVaultRequest !== null && listExternalVaultRequest !== undefined) {
|
2246
|
+
if (listExternalVaultRequest instanceof ListExternalVaultRequest_1.ListExternalVaultRequest) {
|
2247
|
+
externalProjectId = listExternalVaultRequest.externalProjectId;
|
2248
|
+
regionId = listExternalVaultRequest.regionId;
|
2249
|
+
limit = listExternalVaultRequest.limit;
|
2250
|
+
offset = listExternalVaultRequest.offset;
|
2251
|
+
protectType = listExternalVaultRequest.protectType;
|
2252
|
+
objcetType = listExternalVaultRequest.objcetType;
|
2253
|
+
cloudType = listExternalVaultRequest.cloudType;
|
2254
|
+
vaultId = listExternalVaultRequest.vaultId;
|
2255
|
+
}
|
2256
|
+
else {
|
2257
|
+
externalProjectId = listExternalVaultRequest['external_project_id'];
|
2258
|
+
regionId = listExternalVaultRequest['region_id'];
|
2259
|
+
limit = listExternalVaultRequest['limit'];
|
2260
|
+
offset = listExternalVaultRequest['offset'];
|
2261
|
+
protectType = listExternalVaultRequest['protect_type'];
|
2262
|
+
objcetType = listExternalVaultRequest['objcet_type'];
|
2263
|
+
cloudType = listExternalVaultRequest['cloud_type'];
|
2264
|
+
vaultId = listExternalVaultRequest['vault_id'];
|
2265
|
+
}
|
2266
|
+
}
|
2267
|
+
if (externalProjectId === null || externalProjectId === undefined) {
|
2268
|
+
throw new RequiredError('externalProjectId', 'Required parameter externalProjectId was null or undefined when calling listExternalVault.');
|
2269
|
+
}
|
2270
|
+
if (externalProjectId !== null && externalProjectId !== undefined) {
|
2271
|
+
localVarQueryParameter['external_project_id'] = externalProjectId;
|
2272
|
+
}
|
2273
|
+
if (regionId === null || regionId === undefined) {
|
2274
|
+
throw new RequiredError('regionId', 'Required parameter regionId was null or undefined when calling listExternalVault.');
|
2275
|
+
}
|
2276
|
+
if (regionId !== null && regionId !== undefined) {
|
2277
|
+
localVarQueryParameter['region_id'] = regionId;
|
2278
|
+
}
|
2279
|
+
if (limit !== null && limit !== undefined) {
|
2280
|
+
localVarQueryParameter['limit'] = limit;
|
2281
|
+
}
|
2282
|
+
if (offset !== null && offset !== undefined) {
|
2283
|
+
localVarQueryParameter['offset'] = offset;
|
2284
|
+
}
|
2285
|
+
if (protectType !== null && protectType !== undefined) {
|
2286
|
+
localVarQueryParameter['protect_type'] = protectType;
|
2287
|
+
}
|
2288
|
+
if (objcetType !== null && objcetType !== undefined) {
|
2289
|
+
localVarQueryParameter['objcet_type'] = objcetType;
|
2290
|
+
}
|
2291
|
+
if (cloudType !== null && cloudType !== undefined) {
|
2292
|
+
localVarQueryParameter['cloud_type'] = cloudType;
|
2293
|
+
}
|
2294
|
+
if (vaultId !== null && vaultId !== undefined) {
|
2295
|
+
localVarQueryParameter['vault_id'] = vaultId;
|
2296
|
+
}
|
2297
|
+
options.queryParams = localVarQueryParameter;
|
2298
|
+
options.headers = localVarHeaderParameter;
|
2299
|
+
return options;
|
2300
|
+
},
|
1792
2301
|
/**
|
1793
2302
|
* 查询任务列表
|
1794
2303
|
*
|
@@ -1925,6 +2434,24 @@ var ParamCreater = function () {
|
|
1925
2434
|
options.headers = localVarHeaderParameter;
|
1926
2435
|
return options;
|
1927
2436
|
},
|
2437
|
+
/**
|
2438
|
+
* 查询租户的企业项目信息
|
2439
|
+
*
|
2440
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2441
|
+
*/
|
2442
|
+
listProjects: function () {
|
2443
|
+
var options = {
|
2444
|
+
method: "GET",
|
2445
|
+
url: "/v3/region-projects",
|
2446
|
+
contentType: "application/json",
|
2447
|
+
queryParams: {},
|
2448
|
+
pathParams: {},
|
2449
|
+
headers: {}
|
2450
|
+
};
|
2451
|
+
var localVarHeaderParameter = {};
|
2452
|
+
options.headers = localVarHeaderParameter;
|
2453
|
+
return options;
|
2454
|
+
},
|
1928
2455
|
/**
|
1929
2456
|
* 查询可保护性资源列表
|
1930
2457
|
*
|
@@ -2092,6 +2619,39 @@ var ParamCreater = function () {
|
|
2092
2619
|
options.headers = localVarHeaderParameter;
|
2093
2620
|
return options;
|
2094
2621
|
},
|
2622
|
+
/**
|
2623
|
+
* 将CSBS/VBS资源迁移到CBR。
|
2624
|
+
*
|
2625
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2626
|
+
*/
|
2627
|
+
migrateDomain: function (migrateDomainRequest) {
|
2628
|
+
var options = {
|
2629
|
+
method: "POST",
|
2630
|
+
url: "/v3/migrates",
|
2631
|
+
contentType: "application/json",
|
2632
|
+
queryParams: {},
|
2633
|
+
pathParams: {},
|
2634
|
+
headers: {},
|
2635
|
+
data: {}
|
2636
|
+
};
|
2637
|
+
var localVarHeaderParameter = {};
|
2638
|
+
var body;
|
2639
|
+
if (migrateDomainRequest !== null && migrateDomainRequest !== undefined) {
|
2640
|
+
if (migrateDomainRequest instanceof MigrateDomainRequest_1.MigrateDomainRequest) {
|
2641
|
+
body = migrateDomainRequest.body;
|
2642
|
+
}
|
2643
|
+
else {
|
2644
|
+
body = migrateDomainRequest['body'];
|
2645
|
+
}
|
2646
|
+
}
|
2647
|
+
if (body === null || body === undefined) {
|
2648
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2649
|
+
}
|
2650
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2651
|
+
options.data = body !== undefined ? body : {};
|
2652
|
+
options.headers = localVarHeaderParameter;
|
2653
|
+
return options;
|
2654
|
+
},
|
2095
2655
|
/**
|
2096
2656
|
* 支持资源迁移到另一个存储库,不删除备份。
|
2097
2657
|
*
|
@@ -2285,6 +2845,46 @@ var ParamCreater = function () {
|
|
2285
2845
|
options.headers = localVarHeaderParameter;
|
2286
2846
|
return options;
|
2287
2847
|
},
|
2848
|
+
/**
|
2849
|
+
* 设置存储库资源是否自动备份
|
2850
|
+
*
|
2851
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2852
|
+
*/
|
2853
|
+
setVaultResource: function (setVaultResourceRequest) {
|
2854
|
+
var options = {
|
2855
|
+
method: "PUT",
|
2856
|
+
url: "/v3/{project_id}/vaults/{vault_id}/set-resources",
|
2857
|
+
contentType: "application/json;charset=UTF-8",
|
2858
|
+
queryParams: {},
|
2859
|
+
pathParams: {},
|
2860
|
+
headers: {},
|
2861
|
+
data: {}
|
2862
|
+
};
|
2863
|
+
var localVarHeaderParameter = {};
|
2864
|
+
var body;
|
2865
|
+
var vaultId;
|
2866
|
+
if (setVaultResourceRequest !== null && setVaultResourceRequest !== undefined) {
|
2867
|
+
if (setVaultResourceRequest instanceof SetVaultResourceRequest_1.SetVaultResourceRequest) {
|
2868
|
+
vaultId = setVaultResourceRequest.vaultId;
|
2869
|
+
body = setVaultResourceRequest.body;
|
2870
|
+
}
|
2871
|
+
else {
|
2872
|
+
vaultId = setVaultResourceRequest['vault_id'];
|
2873
|
+
body = setVaultResourceRequest['body'];
|
2874
|
+
}
|
2875
|
+
}
|
2876
|
+
if (vaultId === null || vaultId === undefined) {
|
2877
|
+
throw new RequiredError('vaultId', 'Required parameter vaultId was null or undefined when calling setVaultResource.');
|
2878
|
+
}
|
2879
|
+
if (body === null || body === undefined) {
|
2880
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2881
|
+
}
|
2882
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
2883
|
+
options.data = body !== undefined ? body : {};
|
2884
|
+
options.pathParams = { 'vault_id': vaultId, };
|
2885
|
+
options.headers = localVarHeaderParameter;
|
2886
|
+
return options;
|
2887
|
+
},
|
2288
2888
|
/**
|
2289
2889
|
* 查询指定客户端
|
2290
2890
|
*
|
@@ -2378,6 +2978,37 @@ var ParamCreater = function () {
|
|
2378
2978
|
options.headers = localVarHeaderParameter;
|
2379
2979
|
return options;
|
2380
2980
|
},
|
2981
|
+
/**
|
2982
|
+
* 由控制台调用的内部接口,用于仅在查询共享备份时获取源project_id的域名信息。
|
2983
|
+
*
|
2984
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2985
|
+
*/
|
2986
|
+
showDomain: function (showDomainRequest) {
|
2987
|
+
var options = {
|
2988
|
+
method: "GET",
|
2989
|
+
url: "/v3/domain/{source_project_id}",
|
2990
|
+
contentType: "application/json",
|
2991
|
+
queryParams: {},
|
2992
|
+
pathParams: {},
|
2993
|
+
headers: {}
|
2994
|
+
};
|
2995
|
+
var localVarHeaderParameter = {};
|
2996
|
+
var sourceProjectId;
|
2997
|
+
if (showDomainRequest !== null && showDomainRequest !== undefined) {
|
2998
|
+
if (showDomainRequest instanceof ShowDomainRequest_1.ShowDomainRequest) {
|
2999
|
+
sourceProjectId = showDomainRequest.sourceProjectId;
|
3000
|
+
}
|
3001
|
+
else {
|
3002
|
+
sourceProjectId = showDomainRequest['source_project_id'];
|
3003
|
+
}
|
3004
|
+
}
|
3005
|
+
if (sourceProjectId === null || sourceProjectId === undefined) {
|
3006
|
+
throw new RequiredError('sourceProjectId', 'Required parameter sourceProjectId was null or undefined when calling showDomain.');
|
3007
|
+
}
|
3008
|
+
options.pathParams = { 'source_project_id': sourceProjectId, };
|
3009
|
+
options.headers = localVarHeaderParameter;
|
3010
|
+
return options;
|
3011
|
+
},
|
2381
3012
|
/**
|
2382
3013
|
* 获取备份成员的详情
|
2383
3014
|
*
|
@@ -2496,6 +3127,69 @@ var ParamCreater = function () {
|
|
2496
3127
|
options.headers = localVarHeaderParameter;
|
2497
3128
|
return options;
|
2498
3129
|
},
|
3130
|
+
/**
|
3131
|
+
* 查询备份时资源的元数据
|
3132
|
+
*
|
3133
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3134
|
+
*/
|
3135
|
+
showMetadata: function (showMetadataRequest) {
|
3136
|
+
var options = {
|
3137
|
+
method: "GET",
|
3138
|
+
url: "/v3/{project_id}/backups/{backup_id}/metadata",
|
3139
|
+
contentType: "application/json",
|
3140
|
+
queryParams: {},
|
3141
|
+
pathParams: {},
|
3142
|
+
headers: {}
|
3143
|
+
};
|
3144
|
+
var localVarHeaderParameter = {};
|
3145
|
+
var backupId;
|
3146
|
+
if (showMetadataRequest !== null && showMetadataRequest !== undefined) {
|
3147
|
+
if (showMetadataRequest instanceof ShowMetadataRequest_1.ShowMetadataRequest) {
|
3148
|
+
backupId = showMetadataRequest.backupId;
|
3149
|
+
}
|
3150
|
+
else {
|
3151
|
+
backupId = showMetadataRequest['backup_id'];
|
3152
|
+
}
|
3153
|
+
}
|
3154
|
+
if (backupId === null || backupId === undefined) {
|
3155
|
+
throw new RequiredError('backupId', 'Required parameter backupId was null or undefined when calling showMetadata.');
|
3156
|
+
}
|
3157
|
+
options.pathParams = { 'backup_id': backupId, };
|
3158
|
+
options.headers = localVarHeaderParameter;
|
3159
|
+
return options;
|
3160
|
+
},
|
3161
|
+
/**
|
3162
|
+
* 查询迁移结果
|
3163
|
+
*
|
3164
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3165
|
+
*/
|
3166
|
+
showMigrateStatus: function (showMigrateStatusRequest) {
|
3167
|
+
var options = {
|
3168
|
+
method: "GET",
|
3169
|
+
url: "/v3/migrates",
|
3170
|
+
contentType: "application/json",
|
3171
|
+
queryParams: {},
|
3172
|
+
pathParams: {},
|
3173
|
+
headers: {}
|
3174
|
+
};
|
3175
|
+
var localVarHeaderParameter = {};
|
3176
|
+
var localVarQueryParameter = {};
|
3177
|
+
var allRegions;
|
3178
|
+
if (showMigrateStatusRequest !== null && showMigrateStatusRequest !== undefined) {
|
3179
|
+
if (showMigrateStatusRequest instanceof ShowMigrateStatusRequest_1.ShowMigrateStatusRequest) {
|
3180
|
+
allRegions = showMigrateStatusRequest.allRegions;
|
3181
|
+
}
|
3182
|
+
else {
|
3183
|
+
allRegions = showMigrateStatusRequest['all_regions'];
|
3184
|
+
}
|
3185
|
+
}
|
3186
|
+
if (allRegions !== null && allRegions !== undefined) {
|
3187
|
+
localVarQueryParameter['all_regions'] = allRegions;
|
3188
|
+
}
|
3189
|
+
options.queryParams = localVarQueryParameter;
|
3190
|
+
options.headers = localVarHeaderParameter;
|
3191
|
+
return options;
|
3192
|
+
},
|
2499
3193
|
/**
|
2500
3194
|
* 根据指定任务ID查询任务
|
2501
3195
|
*
|
@@ -2613,6 +3307,56 @@ var ParamCreater = function () {
|
|
2613
3307
|
options.headers = localVarHeaderParameter;
|
2614
3308
|
return options;
|
2615
3309
|
},
|
3310
|
+
/**
|
3311
|
+
* 查询容量统计
|
3312
|
+
*
|
3313
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3314
|
+
*/
|
3315
|
+
showStorageUsage: function (showStorageUsageRequest) {
|
3316
|
+
var options = {
|
3317
|
+
method: "GET",
|
3318
|
+
url: "/v3/{project_id}/storage_usage",
|
3319
|
+
contentType: "application/json",
|
3320
|
+
queryParams: {},
|
3321
|
+
pathParams: {},
|
3322
|
+
headers: {}
|
3323
|
+
};
|
3324
|
+
var localVarHeaderParameter = {};
|
3325
|
+
var localVarQueryParameter = {};
|
3326
|
+
var limit;
|
3327
|
+
var offset;
|
3328
|
+
var resourceId;
|
3329
|
+
var resourceType;
|
3330
|
+
if (showStorageUsageRequest !== null && showStorageUsageRequest !== undefined) {
|
3331
|
+
if (showStorageUsageRequest instanceof ShowStorageUsageRequest_1.ShowStorageUsageRequest) {
|
3332
|
+
limit = showStorageUsageRequest.limit;
|
3333
|
+
offset = showStorageUsageRequest.offset;
|
3334
|
+
resourceId = showStorageUsageRequest.resourceId;
|
3335
|
+
resourceType = showStorageUsageRequest.resourceType;
|
3336
|
+
}
|
3337
|
+
else {
|
3338
|
+
limit = showStorageUsageRequest['limit'];
|
3339
|
+
offset = showStorageUsageRequest['offset'];
|
3340
|
+
resourceId = showStorageUsageRequest['resource_id'];
|
3341
|
+
resourceType = showStorageUsageRequest['resource_type'];
|
3342
|
+
}
|
3343
|
+
}
|
3344
|
+
if (limit !== null && limit !== undefined) {
|
3345
|
+
localVarQueryParameter['limit'] = limit;
|
3346
|
+
}
|
3347
|
+
if (offset !== null && offset !== undefined) {
|
3348
|
+
localVarQueryParameter['offset'] = offset;
|
3349
|
+
}
|
3350
|
+
if (resourceId !== null && resourceId !== undefined) {
|
3351
|
+
localVarQueryParameter['resource_id'] = resourceId;
|
3352
|
+
}
|
3353
|
+
if (resourceType !== null && resourceType !== undefined) {
|
3354
|
+
localVarQueryParameter['resource_type'] = resourceType;
|
3355
|
+
}
|
3356
|
+
options.queryParams = localVarQueryParameter;
|
3357
|
+
options.headers = localVarHeaderParameter;
|
3358
|
+
return options;
|
3359
|
+
},
|
2616
3360
|
/**
|
2617
3361
|
* 根据ID查询指定存储库
|
2618
3362
|
*
|
@@ -2800,6 +3544,43 @@ var ParamCreater = function () {
|
|
2800
3544
|
options.headers = localVarHeaderParameter;
|
2801
3545
|
return options;
|
2802
3546
|
},
|
3547
|
+
/**
|
3548
|
+
* 根据备份id更改备份
|
3549
|
+
*
|
3550
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3551
|
+
*/
|
3552
|
+
updateBackup: function (updateBackupRequest) {
|
3553
|
+
var options = {
|
3554
|
+
method: "PUT",
|
3555
|
+
url: "/v3/{project_id}/backups/{backup_id}",
|
3556
|
+
contentType: "application/json;charset=UTF-8",
|
3557
|
+
queryParams: {},
|
3558
|
+
pathParams: {},
|
3559
|
+
headers: {},
|
3560
|
+
data: {}
|
3561
|
+
};
|
3562
|
+
var localVarHeaderParameter = {};
|
3563
|
+
var body;
|
3564
|
+
var backupId;
|
3565
|
+
if (updateBackupRequest !== null && updateBackupRequest !== undefined) {
|
3566
|
+
if (updateBackupRequest instanceof UpdateBackupRequest_1.UpdateBackupRequest) {
|
3567
|
+
backupId = updateBackupRequest.backupId;
|
3568
|
+
body = updateBackupRequest.body;
|
3569
|
+
}
|
3570
|
+
else {
|
3571
|
+
backupId = updateBackupRequest['backup_id'];
|
3572
|
+
body = updateBackupRequest['body'];
|
3573
|
+
}
|
3574
|
+
}
|
3575
|
+
if (backupId === null || backupId === undefined) {
|
3576
|
+
throw new RequiredError('backupId', 'Required parameter backupId was null or undefined when calling updateBackup.');
|
3577
|
+
}
|
3578
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
3579
|
+
options.data = body !== undefined ? body : {};
|
3580
|
+
options.pathParams = { 'backup_id': backupId, };
|
3581
|
+
options.headers = localVarHeaderParameter;
|
3582
|
+
return options;
|
3583
|
+
},
|
2803
3584
|
/**
|
2804
3585
|
* 更新备份共享成员的状态,需要接收方执行此API。
|
2805
3586
|
*
|
@@ -2843,6 +3624,46 @@ var ParamCreater = function () {
|
|
2843
3624
|
options.headers = localVarHeaderParameter;
|
2844
3625
|
return options;
|
2845
3626
|
},
|
3627
|
+
/**
|
3628
|
+
* 订单更新,支付cbc订单后,调用该接口更新包周期产品订单信息。
|
3629
|
+
*
|
3630
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3631
|
+
*/
|
3632
|
+
updateOrder: function (updateOrderRequest) {
|
3633
|
+
var options = {
|
3634
|
+
method: "PUT",
|
3635
|
+
url: "/v3/{project_id}/orders/{order_id}",
|
3636
|
+
contentType: "application/json;charset=UTF-8",
|
3637
|
+
queryParams: {},
|
3638
|
+
pathParams: {},
|
3639
|
+
headers: {},
|
3640
|
+
data: {}
|
3641
|
+
};
|
3642
|
+
var localVarHeaderParameter = {};
|
3643
|
+
var body;
|
3644
|
+
var orderId;
|
3645
|
+
if (updateOrderRequest !== null && updateOrderRequest !== undefined) {
|
3646
|
+
if (updateOrderRequest instanceof UpdateOrderRequest_1.UpdateOrderRequest) {
|
3647
|
+
orderId = updateOrderRequest.orderId;
|
3648
|
+
body = updateOrderRequest.body;
|
3649
|
+
}
|
3650
|
+
else {
|
3651
|
+
orderId = updateOrderRequest['order_id'];
|
3652
|
+
body = updateOrderRequest['body'];
|
3653
|
+
}
|
3654
|
+
}
|
3655
|
+
if (orderId === null || orderId === undefined) {
|
3656
|
+
throw new RequiredError('orderId', 'Required parameter orderId was null or undefined when calling updateOrder.');
|
3657
|
+
}
|
3658
|
+
if (body === null || body === undefined) {
|
3659
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
3660
|
+
}
|
3661
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
3662
|
+
options.data = body !== undefined ? body : {};
|
3663
|
+
options.pathParams = { 'order_id': orderId, };
|
3664
|
+
options.headers = localVarHeaderParameter;
|
3665
|
+
return options;
|
3666
|
+
},
|
2846
3667
|
/**
|
2847
3668
|
* 修改策略
|
2848
3669
|
*
|