@huaweicloud/huaweicloud-sdk-cbr 3.1.37 → 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 +601 -0
- package/v1/CbrClient.js +1221 -10
- package/v1/CbrRegion.d.ts +1 -0
- package/v1/CbrRegion.js +3 -1
- package/v1/model/AddAgentPathRequest.d.ts +10 -0
- package/v1/model/AddAgentPathRequest.js +28 -0
- package/v1/model/AddAgentPathResponse.d.ts +8 -0
- package/v1/model/AddAgentPathResponse.js +35 -0
- package/v1/model/Agent.d.ts +48 -0
- package/v1/model/Agent.js +158 -0
- package/v1/model/AgentAddPathReq.d.ts +7 -0
- package/v1/model/AgentAddPathReq.js +24 -0
- package/v1/model/AgentRegister.d.ts +31 -0
- package/v1/model/AgentRegister.js +111 -0
- package/v1/model/AgentRegisterReq.d.ts +6 -0
- package/v1/model/AgentRegisterReq.js +14 -0
- package/v1/model/AgentRemovePathReq.d.ts +7 -0
- package/v1/model/AgentRemovePathReq.js +24 -0
- package/v1/model/AgentUpdate.d.ts +12 -0
- package/v1/model/AgentUpdate.js +22 -0
- package/v1/model/AgentUpdateReq.d.ts +6 -0
- package/v1/model/AgentUpdateReq.js +14 -0
- 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/ListAgentRequest.d.ts +13 -0
- package/v1/model/ListAgentRequest.js +35 -0
- package/v1/model/ListAgentResponse.d.ts +13 -0
- package/v1/model/ListAgentResponse.js +43 -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/Path.d.ts +15 -0
- package/v1/model/Path.js +45 -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/RegisterAgentRequest.d.ts +6 -0
- package/v1/model/RegisterAgentRequest.js +13 -0
- package/v1/model/RegisterAgentResponse.d.ts +7 -0
- package/v1/model/RegisterAgentResponse.js +31 -0
- package/v1/model/RemoveAgentPathRequest.d.ts +10 -0
- package/v1/model/RemoveAgentPathRequest.js +28 -0
- package/v1/model/RemoveAgentPathResponse.d.ts +10 -0
- package/v1/model/RemoveAgentPathResponse.js +45 -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/ShowAgentRequest.d.ts +7 -0
- package/v1/model/ShowAgentRequest.js +24 -0
- package/v1/model/ShowAgentResponse.d.ts +7 -0
- package/v1/model/ShowAgentResponse.js +31 -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/UnregisterAgentRequest.d.ts +7 -0
- package/v1/model/UnregisterAgentRequest.js +24 -0
- package/v1/model/UnregisterAgentResponse.d.ts +4 -0
- package/v1/model/UnregisterAgentResponse.js +27 -0
- package/v1/model/UpdateAgentRequest.d.ts +10 -0
- package/v1/model/UpdateAgentRequest.js +28 -0
- package/v1/model/UpdateAgentResponse.d.ts +7 -0
- package/v1/model/UpdateAgentResponse.js +31 -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 +75 -0
- package/v1/public-api.js +75 -0
package/v1/CbrClient.js
CHANGED
@@ -17,14 +17,18 @@ var __extends = (this && this.__extends) || (function () {
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
18
18
|
exports.RequiredError = exports.ParamCreater = exports.CbrClient = void 0;
|
19
19
|
var ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
|
20
|
+
var AddAgentPathRequest_1 = require("./model/AddAgentPathRequest");
|
20
21
|
var AddMemberRequest_1 = require("./model/AddMemberRequest");
|
21
22
|
var AddVaultResourceRequest_1 = require("./model/AddVaultResourceRequest");
|
22
23
|
var AssociateVaultPolicyRequest_1 = require("./model/AssociateVaultPolicyRequest");
|
23
24
|
var BatchCreateAndDeleteVaultTagsRequest_1 = require("./model/BatchCreateAndDeleteVaultTagsRequest");
|
25
|
+
var BatchUpdateVaultRequest_1 = require("./model/BatchUpdateVaultRequest");
|
26
|
+
var CheckAgentRequest_1 = require("./model/CheckAgentRequest");
|
24
27
|
var CopyBackupRequest_1 = require("./model/CopyBackupRequest");
|
25
28
|
var CopyCheckpointRequest_1 = require("./model/CopyCheckpointRequest");
|
26
29
|
var CreateCheckpointRequest_1 = require("./model/CreateCheckpointRequest");
|
27
30
|
var CreatePolicyRequest_1 = require("./model/CreatePolicyRequest");
|
31
|
+
var CreatePostPaidVaultRequest_1 = require("./model/CreatePostPaidVaultRequest");
|
28
32
|
var CreateVaultRequest_1 = require("./model/CreateVaultRequest");
|
29
33
|
var CreateVaultTagsRequest_1 = require("./model/CreateVaultTagsRequest");
|
30
34
|
var DeleteBackupRequest_1 = require("./model/DeleteBackupRequest");
|
@@ -34,25 +38,42 @@ var DeleteVaultRequest_1 = require("./model/DeleteVaultRequest");
|
|
34
38
|
var DeleteVaultTagRequest_1 = require("./model/DeleteVaultTagRequest");
|
35
39
|
var DisassociateVaultPolicyRequest_1 = require("./model/DisassociateVaultPolicyRequest");
|
36
40
|
var ImportBackupRequest_1 = require("./model/ImportBackupRequest");
|
41
|
+
var ImportCheckpointRequest_1 = require("./model/ImportCheckpointRequest");
|
42
|
+
var ListAgentRequest_1 = require("./model/ListAgentRequest");
|
37
43
|
var ListBackupsRequest_1 = require("./model/ListBackupsRequest");
|
44
|
+
var ListDomainProjectsRequest_1 = require("./model/ListDomainProjectsRequest");
|
45
|
+
var ListExternalVaultRequest_1 = require("./model/ListExternalVaultRequest");
|
38
46
|
var ListOpLogsRequest_1 = require("./model/ListOpLogsRequest");
|
39
47
|
var ListPoliciesRequest_1 = require("./model/ListPoliciesRequest");
|
40
48
|
var ListProtectableRequest_1 = require("./model/ListProtectableRequest");
|
41
49
|
var ListVaultRequest_1 = require("./model/ListVaultRequest");
|
50
|
+
var MigrateDomainRequest_1 = require("./model/MigrateDomainRequest");
|
42
51
|
var MigrateVaultResourceRequest_1 = require("./model/MigrateVaultResourceRequest");
|
52
|
+
var RegisterAgentRequest_1 = require("./model/RegisterAgentRequest");
|
53
|
+
var RemoveAgentPathRequest_1 = require("./model/RemoveAgentPathRequest");
|
43
54
|
var RemoveVaultResourceRequest_1 = require("./model/RemoveVaultResourceRequest");
|
44
55
|
var RestoreBackupRequest_1 = require("./model/RestoreBackupRequest");
|
56
|
+
var SetVaultResourceRequest_1 = require("./model/SetVaultResourceRequest");
|
57
|
+
var ShowAgentRequest_1 = require("./model/ShowAgentRequest");
|
45
58
|
var ShowBackupRequest_1 = require("./model/ShowBackupRequest");
|
46
59
|
var ShowCheckpointRequest_1 = require("./model/ShowCheckpointRequest");
|
60
|
+
var ShowDomainRequest_1 = require("./model/ShowDomainRequest");
|
47
61
|
var ShowMemberDetailRequest_1 = require("./model/ShowMemberDetailRequest");
|
48
62
|
var ShowMembersDetailRequest_1 = require("./model/ShowMembersDetailRequest");
|
63
|
+
var ShowMetadataRequest_1 = require("./model/ShowMetadataRequest");
|
64
|
+
var ShowMigrateStatusRequest_1 = require("./model/ShowMigrateStatusRequest");
|
49
65
|
var ShowOpLogRequest_1 = require("./model/ShowOpLogRequest");
|
50
66
|
var ShowPolicyRequest_1 = require("./model/ShowPolicyRequest");
|
51
67
|
var ShowProtectableRequest_1 = require("./model/ShowProtectableRequest");
|
68
|
+
var ShowStorageUsageRequest_1 = require("./model/ShowStorageUsageRequest");
|
52
69
|
var ShowVaultRequest_1 = require("./model/ShowVaultRequest");
|
53
70
|
var ShowVaultResourceInstancesRequest_1 = require("./model/ShowVaultResourceInstancesRequest");
|
54
71
|
var ShowVaultTagRequest_1 = require("./model/ShowVaultTagRequest");
|
72
|
+
var UnregisterAgentRequest_1 = require("./model/UnregisterAgentRequest");
|
73
|
+
var UpdateAgentRequest_1 = require("./model/UpdateAgentRequest");
|
74
|
+
var UpdateBackupRequest_1 = require("./model/UpdateBackupRequest");
|
55
75
|
var UpdateMemberStatusRequest_1 = require("./model/UpdateMemberStatusRequest");
|
76
|
+
var UpdateOrderRequest_1 = require("./model/UpdateOrderRequest");
|
56
77
|
var UpdatePolicyRequest_1 = require("./model/UpdatePolicyRequest");
|
57
78
|
var UpdateVaultRequest_1 = require("./model/UpdateVaultRequest");
|
58
79
|
var CbrClient = /** @class */ (function () {
|
@@ -65,6 +86,23 @@ var CbrClient = /** @class */ (function () {
|
|
65
86
|
CbrClient.prototype.getPath = function () {
|
66
87
|
return __dirname;
|
67
88
|
};
|
89
|
+
/**
|
90
|
+
* 对客户端新增备份路径,新增的路径不会校验是否存在。
|
91
|
+
*
|
92
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
93
|
+
*
|
94
|
+
* @summary 新增备份路径
|
95
|
+
* @param {string} agentId 客户端ID
|
96
|
+
* @param {AgentAddPathReq} addAgentPathRequestBody 新增文件备份路径参数
|
97
|
+
* @param {*} [options] Override http request option.
|
98
|
+
* @throws {RequiredError}
|
99
|
+
*/
|
100
|
+
CbrClient.prototype.addAgentPath = function (addAgentPathRequest) {
|
101
|
+
var options = (0, exports.ParamCreater)().addAgentPath(addAgentPathRequest);
|
102
|
+
// @ts-ignore
|
103
|
+
options['responseHeaders'] = [''];
|
104
|
+
return this.hcClient.sendRequest(options);
|
105
|
+
};
|
68
106
|
/**
|
69
107
|
* 添加备份可共享的成员,只有云服务器备份可以添加备份共享成员,且仅支持在同一区域的不同用户间共享。
|
70
108
|
*
|
@@ -140,6 +178,38 @@ var CbrClient = /** @class */ (function () {
|
|
140
178
|
options['responseHeaders'] = [''];
|
141
179
|
return this.hcClient.sendRequest(options);
|
142
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
|
+
};
|
143
213
|
/**
|
144
214
|
* 跨区域复制备份。
|
145
215
|
*
|
@@ -205,6 +275,22 @@ var CbrClient = /** @class */ (function () {
|
|
205
275
|
options['responseHeaders'] = [''];
|
206
276
|
return this.hcClient.sendRequest(options);
|
207
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
|
+
};
|
208
294
|
/**
|
209
295
|
* 创建存储库
|
210
296
|
*
|
@@ -354,6 +440,41 @@ var CbrClient = /** @class */ (function () {
|
|
354
440
|
options['responseHeaders'] = [''];
|
355
441
|
return this.hcClient.sendRequest(options);
|
356
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
|
+
};
|
459
|
+
/**
|
460
|
+
* 查询客户端列表
|
461
|
+
*
|
462
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
463
|
+
*
|
464
|
+
* @summary 查询客户端列表
|
465
|
+
* @param {string} [limit] 每页显示条目数,正整数
|
466
|
+
* @param {number} [offset] 偏移值,正整数
|
467
|
+
* @param {string} [status] 状态
|
468
|
+
* @param {string} [agentId] 客户端ID
|
469
|
+
* @param {*} [options] Override http request option.
|
470
|
+
* @throws {RequiredError}
|
471
|
+
*/
|
472
|
+
CbrClient.prototype.listAgent = function (listAgentRequest) {
|
473
|
+
var options = (0, exports.ParamCreater)().listAgent(listAgentRequest);
|
474
|
+
// @ts-ignore
|
475
|
+
options['responseHeaders'] = [''];
|
476
|
+
return this.hcClient.sendRequest(options);
|
477
|
+
};
|
357
478
|
/**
|
358
479
|
* 查询所有副本
|
359
480
|
*
|
@@ -392,6 +513,45 @@ var CbrClient = /** @class */ (function () {
|
|
392
513
|
options['responseHeaders'] = [''];
|
393
514
|
return this.hcClient.sendRequest(options);
|
394
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
|
+
};
|
395
555
|
/**
|
396
556
|
* 查询任务列表
|
397
557
|
*
|
@@ -436,6 +596,21 @@ var CbrClient = /** @class */ (function () {
|
|
436
596
|
options['responseHeaders'] = [''];
|
437
597
|
return this.hcClient.sendRequest(options);
|
438
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
|
+
};
|
439
614
|
/**
|
440
615
|
* 查询可保护性资源列表
|
441
616
|
*
|
@@ -485,6 +660,22 @@ var CbrClient = /** @class */ (function () {
|
|
485
660
|
options['responseHeaders'] = [''];
|
486
661
|
return this.hcClient.sendRequest(options);
|
487
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
|
+
};
|
488
679
|
/**
|
489
680
|
* 支持资源迁移到另一个存储库,不删除备份。
|
490
681
|
*
|
@@ -502,6 +693,39 @@ var CbrClient = /** @class */ (function () {
|
|
502
693
|
options['responseHeaders'] = [''];
|
503
694
|
return this.hcClient.sendRequest(options);
|
504
695
|
};
|
696
|
+
/**
|
697
|
+
* 注册客户端,安装时候由Agent调用,无需手动注册。
|
698
|
+
*
|
699
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
700
|
+
*
|
701
|
+
* @summary 注册客户端
|
702
|
+
* @param {AgentRegisterReq} registerAgentRequestBody 注册客户端参数明细
|
703
|
+
* @param {*} [options] Override http request option.
|
704
|
+
* @throws {RequiredError}
|
705
|
+
*/
|
706
|
+
CbrClient.prototype.registerAgent = function (registerAgentRequest) {
|
707
|
+
var options = (0, exports.ParamCreater)().registerAgent(registerAgentRequest);
|
708
|
+
// @ts-ignore
|
709
|
+
options['responseHeaders'] = [''];
|
710
|
+
return this.hcClient.sendRequest(options);
|
711
|
+
};
|
712
|
+
/**
|
713
|
+
* 移除已添加的文件备份路径。
|
714
|
+
*
|
715
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
716
|
+
*
|
717
|
+
* @summary 移除备份路径
|
718
|
+
* @param {string} agentId 客户端ID
|
719
|
+
* @param {AgentRemovePathReq} removeAgentPathRequestBody 移除文件备份路径参数
|
720
|
+
* @param {*} [options] Override http request option.
|
721
|
+
* @throws {RequiredError}
|
722
|
+
*/
|
723
|
+
CbrClient.prototype.removeAgentPath = function (removeAgentPathRequest) {
|
724
|
+
var options = (0, exports.ParamCreater)().removeAgentPath(removeAgentPathRequest);
|
725
|
+
// @ts-ignore
|
726
|
+
options['responseHeaders'] = [''];
|
727
|
+
return this.hcClient.sendRequest(options);
|
728
|
+
};
|
505
729
|
/**
|
506
730
|
* 移除存储库中的资源,若移除资源,将一并删除该资源在保管库中的备份
|
507
731
|
*
|
@@ -536,6 +760,39 @@ var CbrClient = /** @class */ (function () {
|
|
536
760
|
options['responseHeaders'] = [''];
|
537
761
|
return this.hcClient.sendRequest(options);
|
538
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
|
+
};
|
780
|
+
/**
|
781
|
+
* 查询指定客户端
|
782
|
+
*
|
783
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
784
|
+
*
|
785
|
+
* @summary 查询指定客户端
|
786
|
+
* @param {string} agentId 客户端ID
|
787
|
+
* @param {*} [options] Override http request option.
|
788
|
+
* @throws {RequiredError}
|
789
|
+
*/
|
790
|
+
CbrClient.prototype.showAgent = function (showAgentRequest) {
|
791
|
+
var options = (0, exports.ParamCreater)().showAgent(showAgentRequest);
|
792
|
+
// @ts-ignore
|
793
|
+
options['responseHeaders'] = [''];
|
794
|
+
return this.hcClient.sendRequest(options);
|
795
|
+
};
|
539
796
|
/**
|
540
797
|
* 根据指定id查询单个副本。
|
541
798
|
*
|
@@ -568,6 +825,22 @@ var CbrClient = /** @class */ (function () {
|
|
568
825
|
options['responseHeaders'] = [''];
|
569
826
|
return this.hcClient.sendRequest(options);
|
570
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
|
+
};
|
571
844
|
/**
|
572
845
|
* 获取备份成员的详情
|
573
846
|
*
|
@@ -609,6 +882,38 @@ var CbrClient = /** @class */ (function () {
|
|
609
882
|
options['responseHeaders'] = [''];
|
610
883
|
return this.hcClient.sendRequest(options);
|
611
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
|
+
};
|
612
917
|
/**
|
613
918
|
* 根据指定任务ID查询任务
|
614
919
|
*
|
@@ -673,6 +978,25 @@ var CbrClient = /** @class */ (function () {
|
|
673
978
|
options['responseHeaders'] = [''];
|
674
979
|
return this.hcClient.sendRequest(options);
|
675
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
|
+
};
|
676
1000
|
/**
|
677
1001
|
* 根据ID查询指定存储库
|
678
1002
|
*
|
@@ -739,6 +1063,56 @@ var CbrClient = /** @class */ (function () {
|
|
739
1063
|
options['responseHeaders'] = [''];
|
740
1064
|
return this.hcClient.sendRequest(options);
|
741
1065
|
};
|
1066
|
+
/**
|
1067
|
+
* 移除客户端,移除客户端时将会删除该客户端所有备份,请谨慎操作。
|
1068
|
+
*
|
1069
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1070
|
+
*
|
1071
|
+
* @summary 移除客户端
|
1072
|
+
* @param {string} agentId 客户端ID
|
1073
|
+
* @param {*} [options] Override http request option.
|
1074
|
+
* @throws {RequiredError}
|
1075
|
+
*/
|
1076
|
+
CbrClient.prototype.unregisterAgent = function (unregisterAgentRequest) {
|
1077
|
+
var options = (0, exports.ParamCreater)().unregisterAgent(unregisterAgentRequest);
|
1078
|
+
// @ts-ignore
|
1079
|
+
options['responseHeaders'] = [''];
|
1080
|
+
return this.hcClient.sendRequest(options);
|
1081
|
+
};
|
1082
|
+
/**
|
1083
|
+
* 修改客户端状态
|
1084
|
+
*
|
1085
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1086
|
+
*
|
1087
|
+
* @summary 修改客户端
|
1088
|
+
* @param {string} agentId
|
1089
|
+
* @param {AgentUpdateReq} updateAgentRequestBody
|
1090
|
+
* @param {*} [options] Override http request option.
|
1091
|
+
* @throws {RequiredError}
|
1092
|
+
*/
|
1093
|
+
CbrClient.prototype.updateAgent = function (updateAgentRequest) {
|
1094
|
+
var options = (0, exports.ParamCreater)().updateAgent(updateAgentRequest);
|
1095
|
+
// @ts-ignore
|
1096
|
+
options['responseHeaders'] = [''];
|
1097
|
+
return this.hcClient.sendRequest(options);
|
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
|
+
};
|
742
1116
|
/**
|
743
1117
|
* 更新备份共享成员的状态,需要接收方执行此API。
|
744
1118
|
*
|
@@ -757,6 +1131,23 @@ var CbrClient = /** @class */ (function () {
|
|
757
1131
|
options['responseHeaders'] = [''];
|
758
1132
|
return this.hcClient.sendRequest(options);
|
759
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
|
+
};
|
760
1151
|
/**
|
761
1152
|
* 修改策略
|
762
1153
|
*
|
@@ -797,14 +1188,14 @@ exports.CbrClient = CbrClient;
|
|
797
1188
|
var ParamCreater = function () {
|
798
1189
|
return {
|
799
1190
|
/**
|
800
|
-
*
|
1191
|
+
* 对客户端新增备份路径,新增的路径不会校验是否存在。
|
801
1192
|
*
|
802
1193
|
* Please refer to HUAWEI cloud API Explorer for details.
|
803
1194
|
*/
|
804
|
-
|
1195
|
+
addAgentPath: function (addAgentPathRequest) {
|
805
1196
|
var options = {
|
806
1197
|
method: "POST",
|
807
|
-
url: "/v3/{project_id}/
|
1198
|
+
url: "/v3/{project_id}/agents/{agent_id}/add-path",
|
808
1199
|
contentType: "application/json;charset=UTF-8",
|
809
1200
|
queryParams: {},
|
810
1201
|
pathParams: {},
|
@@ -813,11 +1204,51 @@ var ParamCreater = function () {
|
|
813
1204
|
};
|
814
1205
|
var localVarHeaderParameter = {};
|
815
1206
|
var body;
|
816
|
-
var
|
817
|
-
if (
|
818
|
-
if (
|
819
|
-
|
820
|
-
body =
|
1207
|
+
var agentId;
|
1208
|
+
if (addAgentPathRequest !== null && addAgentPathRequest !== undefined) {
|
1209
|
+
if (addAgentPathRequest instanceof AddAgentPathRequest_1.AddAgentPathRequest) {
|
1210
|
+
agentId = addAgentPathRequest.agentId;
|
1211
|
+
body = addAgentPathRequest.body;
|
1212
|
+
}
|
1213
|
+
else {
|
1214
|
+
agentId = addAgentPathRequest['agent_id'];
|
1215
|
+
body = addAgentPathRequest['body'];
|
1216
|
+
}
|
1217
|
+
}
|
1218
|
+
if (agentId === null || agentId === undefined) {
|
1219
|
+
throw new RequiredError('agentId', 'Required parameter agentId was null or undefined when calling addAgentPath.');
|
1220
|
+
}
|
1221
|
+
if (body === null || body === undefined) {
|
1222
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1223
|
+
}
|
1224
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
1225
|
+
options.data = body !== undefined ? body : {};
|
1226
|
+
options.pathParams = { 'agent_id': agentId, };
|
1227
|
+
options.headers = localVarHeaderParameter;
|
1228
|
+
return options;
|
1229
|
+
},
|
1230
|
+
/**
|
1231
|
+
* 添加备份可共享的成员,只有云服务器备份可以添加备份共享成员,且仅支持在同一区域的不同用户间共享。
|
1232
|
+
*
|
1233
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1234
|
+
*/
|
1235
|
+
addMember: function (addMemberRequest) {
|
1236
|
+
var options = {
|
1237
|
+
method: "POST",
|
1238
|
+
url: "/v3/{project_id}/backups/{backup_id}/members",
|
1239
|
+
contentType: "application/json;charset=UTF-8",
|
1240
|
+
queryParams: {},
|
1241
|
+
pathParams: {},
|
1242
|
+
headers: {},
|
1243
|
+
data: {}
|
1244
|
+
};
|
1245
|
+
var localVarHeaderParameter = {};
|
1246
|
+
var body;
|
1247
|
+
var backupId;
|
1248
|
+
if (addMemberRequest !== null && addMemberRequest !== undefined) {
|
1249
|
+
if (addMemberRequest instanceof AddMemberRequest_1.AddMemberRequest) {
|
1250
|
+
backupId = addMemberRequest.backupId;
|
1251
|
+
body = addMemberRequest.body;
|
821
1252
|
}
|
822
1253
|
else {
|
823
1254
|
backupId = addMemberRequest['backup_id'];
|
@@ -960,6 +1391,72 @@ var ParamCreater = function () {
|
|
960
1391
|
options.headers = localVarHeaderParameter;
|
961
1392
|
return options;
|
962
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
|
+
},
|
963
1460
|
/**
|
964
1461
|
* 跨区域复制备份。
|
965
1462
|
*
|
@@ -1099,6 +1596,39 @@ var ParamCreater = function () {
|
|
1099
1596
|
options.headers = localVarHeaderParameter;
|
1100
1597
|
return options;
|
1101
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
|
+
},
|
1102
1632
|
/**
|
1103
1633
|
* 创建存储库
|
1104
1634
|
*
|
@@ -1410,6 +1940,89 @@ var ParamCreater = function () {
|
|
1410
1940
|
options.headers = localVarHeaderParameter;
|
1411
1941
|
return options;
|
1412
1942
|
},
|
1943
|
+
/**
|
1944
|
+
* 针对vault同步备份副本
|
1945
|
+
*
|
1946
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1947
|
+
*/
|
1948
|
+
importCheckpoint: function (importCheckpointRequest) {
|
1949
|
+
var options = {
|
1950
|
+
method: "POST",
|
1951
|
+
url: "/v3/{project_id}/checkpoints/sync",
|
1952
|
+
contentType: "application/json;charset=UTF-8",
|
1953
|
+
queryParams: {},
|
1954
|
+
pathParams: {},
|
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
|
+
};
|
1990
|
+
var localVarHeaderParameter = {};
|
1991
|
+
var localVarQueryParameter = {};
|
1992
|
+
var limit;
|
1993
|
+
var offset;
|
1994
|
+
var status;
|
1995
|
+
var agentId;
|
1996
|
+
if (listAgentRequest !== null && listAgentRequest !== undefined) {
|
1997
|
+
if (listAgentRequest instanceof ListAgentRequest_1.ListAgentRequest) {
|
1998
|
+
limit = listAgentRequest.limit;
|
1999
|
+
offset = listAgentRequest.offset;
|
2000
|
+
status = listAgentRequest.status;
|
2001
|
+
agentId = listAgentRequest.agentId;
|
2002
|
+
}
|
2003
|
+
else {
|
2004
|
+
limit = listAgentRequest['limit'];
|
2005
|
+
offset = listAgentRequest['offset'];
|
2006
|
+
status = listAgentRequest['status'];
|
2007
|
+
agentId = listAgentRequest['agent_id'];
|
2008
|
+
}
|
2009
|
+
}
|
2010
|
+
if (limit !== null && limit !== undefined) {
|
2011
|
+
localVarQueryParameter['limit'] = limit;
|
2012
|
+
}
|
2013
|
+
if (offset !== null && offset !== undefined) {
|
2014
|
+
localVarQueryParameter['offset'] = offset;
|
2015
|
+
}
|
2016
|
+
if (status !== null && status !== undefined) {
|
2017
|
+
localVarQueryParameter['status'] = status;
|
2018
|
+
}
|
2019
|
+
if (agentId !== null && agentId !== undefined) {
|
2020
|
+
localVarQueryParameter['agent_id'] = agentId;
|
2021
|
+
}
|
2022
|
+
options.queryParams = localVarQueryParameter;
|
2023
|
+
options.headers = localVarHeaderParameter;
|
2024
|
+
return options;
|
2025
|
+
},
|
1413
2026
|
/**
|
1414
2027
|
* 查询所有副本
|
1415
2028
|
*
|
@@ -1574,6 +2187,117 @@ var ParamCreater = function () {
|
|
1574
2187
|
options.headers = localVarHeaderParameter;
|
1575
2188
|
return options;
|
1576
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
|
+
},
|
1577
2301
|
/**
|
1578
2302
|
* 查询任务列表
|
1579
2303
|
*
|
@@ -1710,6 +2434,24 @@ var ParamCreater = function () {
|
|
1710
2434
|
options.headers = localVarHeaderParameter;
|
1711
2435
|
return options;
|
1712
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
|
+
},
|
1713
2455
|
/**
|
1714
2456
|
* 查询可保护性资源列表
|
1715
2457
|
*
|
@@ -1878,11 +2620,44 @@ var ParamCreater = function () {
|
|
1878
2620
|
return options;
|
1879
2621
|
},
|
1880
2622
|
/**
|
1881
|
-
*
|
2623
|
+
* 将CSBS/VBS资源迁移到CBR。
|
1882
2624
|
*
|
1883
2625
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1884
2626
|
*/
|
1885
|
-
|
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
|
+
},
|
2655
|
+
/**
|
2656
|
+
* 支持资源迁移到另一个存储库,不删除备份。
|
2657
|
+
*
|
2658
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2659
|
+
*/
|
2660
|
+
migrateVaultResource: function (migrateVaultResourceRequest) {
|
1886
2661
|
var options = {
|
1887
2662
|
method: "POST",
|
1888
2663
|
url: "/v3/{project_id}/vaults/{vault_id}/migrateresources",
|
@@ -1917,6 +2692,79 @@ var ParamCreater = function () {
|
|
1917
2692
|
options.headers = localVarHeaderParameter;
|
1918
2693
|
return options;
|
1919
2694
|
},
|
2695
|
+
/**
|
2696
|
+
* 注册客户端,安装时候由Agent调用,无需手动注册。
|
2697
|
+
*
|
2698
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2699
|
+
*/
|
2700
|
+
registerAgent: function (registerAgentRequest) {
|
2701
|
+
var options = {
|
2702
|
+
method: "POST",
|
2703
|
+
url: "/v3/{project_id}/agents",
|
2704
|
+
contentType: "application/json;charset=UTF-8",
|
2705
|
+
queryParams: {},
|
2706
|
+
pathParams: {},
|
2707
|
+
headers: {},
|
2708
|
+
data: {}
|
2709
|
+
};
|
2710
|
+
var localVarHeaderParameter = {};
|
2711
|
+
var body;
|
2712
|
+
if (registerAgentRequest !== null && registerAgentRequest !== undefined) {
|
2713
|
+
if (registerAgentRequest instanceof RegisterAgentRequest_1.RegisterAgentRequest) {
|
2714
|
+
body = registerAgentRequest.body;
|
2715
|
+
}
|
2716
|
+
else {
|
2717
|
+
body = registerAgentRequest['body'];
|
2718
|
+
}
|
2719
|
+
}
|
2720
|
+
if (body === null || body === undefined) {
|
2721
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2722
|
+
}
|
2723
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
2724
|
+
options.data = body !== undefined ? body : {};
|
2725
|
+
options.headers = localVarHeaderParameter;
|
2726
|
+
return options;
|
2727
|
+
},
|
2728
|
+
/**
|
2729
|
+
* 移除已添加的文件备份路径。
|
2730
|
+
*
|
2731
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2732
|
+
*/
|
2733
|
+
removeAgentPath: function (removeAgentPathRequest) {
|
2734
|
+
var options = {
|
2735
|
+
method: "POST",
|
2736
|
+
url: "/v3/{project_id}/agents/{agent_id}/remove-path",
|
2737
|
+
contentType: "application/json;charset=UTF-8",
|
2738
|
+
queryParams: {},
|
2739
|
+
pathParams: {},
|
2740
|
+
headers: {},
|
2741
|
+
data: {}
|
2742
|
+
};
|
2743
|
+
var localVarHeaderParameter = {};
|
2744
|
+
var body;
|
2745
|
+
var agentId;
|
2746
|
+
if (removeAgentPathRequest !== null && removeAgentPathRequest !== undefined) {
|
2747
|
+
if (removeAgentPathRequest instanceof RemoveAgentPathRequest_1.RemoveAgentPathRequest) {
|
2748
|
+
agentId = removeAgentPathRequest.agentId;
|
2749
|
+
body = removeAgentPathRequest.body;
|
2750
|
+
}
|
2751
|
+
else {
|
2752
|
+
agentId = removeAgentPathRequest['agent_id'];
|
2753
|
+
body = removeAgentPathRequest['body'];
|
2754
|
+
}
|
2755
|
+
}
|
2756
|
+
if (agentId === null || agentId === undefined) {
|
2757
|
+
throw new RequiredError('agentId', 'Required parameter agentId was null or undefined when calling removeAgentPath.');
|
2758
|
+
}
|
2759
|
+
if (body === null || body === undefined) {
|
2760
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2761
|
+
}
|
2762
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
2763
|
+
options.data = body !== undefined ? body : {};
|
2764
|
+
options.pathParams = { 'agent_id': agentId, };
|
2765
|
+
options.headers = localVarHeaderParameter;
|
2766
|
+
return options;
|
2767
|
+
},
|
1920
2768
|
/**
|
1921
2769
|
* 移除存储库中的资源,若移除资源,将一并删除该资源在保管库中的备份
|
1922
2770
|
*
|
@@ -1997,6 +2845,77 @@ var ParamCreater = function () {
|
|
1997
2845
|
options.headers = localVarHeaderParameter;
|
1998
2846
|
return options;
|
1999
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
|
+
},
|
2888
|
+
/**
|
2889
|
+
* 查询指定客户端
|
2890
|
+
*
|
2891
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2892
|
+
*/
|
2893
|
+
showAgent: function (showAgentRequest) {
|
2894
|
+
var options = {
|
2895
|
+
method: "GET",
|
2896
|
+
url: "/v3/{project_id}/agents/{agent_id}",
|
2897
|
+
contentType: "application/json",
|
2898
|
+
queryParams: {},
|
2899
|
+
pathParams: {},
|
2900
|
+
headers: {}
|
2901
|
+
};
|
2902
|
+
var localVarHeaderParameter = {};
|
2903
|
+
var agentId;
|
2904
|
+
if (showAgentRequest !== null && showAgentRequest !== undefined) {
|
2905
|
+
if (showAgentRequest instanceof ShowAgentRequest_1.ShowAgentRequest) {
|
2906
|
+
agentId = showAgentRequest.agentId;
|
2907
|
+
}
|
2908
|
+
else {
|
2909
|
+
agentId = showAgentRequest['agent_id'];
|
2910
|
+
}
|
2911
|
+
}
|
2912
|
+
if (agentId === null || agentId === undefined) {
|
2913
|
+
throw new RequiredError('agentId', 'Required parameter agentId was null or undefined when calling showAgent.');
|
2914
|
+
}
|
2915
|
+
options.pathParams = { 'agent_id': agentId, };
|
2916
|
+
options.headers = localVarHeaderParameter;
|
2917
|
+
return options;
|
2918
|
+
},
|
2000
2919
|
/**
|
2001
2920
|
* 根据指定id查询单个副本。
|
2002
2921
|
*
|
@@ -2059,6 +2978,37 @@ var ParamCreater = function () {
|
|
2059
2978
|
options.headers = localVarHeaderParameter;
|
2060
2979
|
return options;
|
2061
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
|
+
},
|
2062
3012
|
/**
|
2063
3013
|
* 获取备份成员的详情
|
2064
3014
|
*
|
@@ -2177,6 +3127,69 @@ var ParamCreater = function () {
|
|
2177
3127
|
options.headers = localVarHeaderParameter;
|
2178
3128
|
return options;
|
2179
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
|
+
},
|
2180
3193
|
/**
|
2181
3194
|
* 根据指定任务ID查询任务
|
2182
3195
|
*
|
@@ -2294,6 +3307,56 @@ var ParamCreater = function () {
|
|
2294
3307
|
options.headers = localVarHeaderParameter;
|
2295
3308
|
return options;
|
2296
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
|
+
},
|
2297
3360
|
/**
|
2298
3361
|
* 根据ID查询指定存储库
|
2299
3362
|
*
|
@@ -2410,6 +3473,114 @@ var ParamCreater = function () {
|
|
2410
3473
|
options.headers = localVarHeaderParameter;
|
2411
3474
|
return options;
|
2412
3475
|
},
|
3476
|
+
/**
|
3477
|
+
* 移除客户端,移除客户端时将会删除该客户端所有备份,请谨慎操作。
|
3478
|
+
*
|
3479
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3480
|
+
*/
|
3481
|
+
unregisterAgent: function (unregisterAgentRequest) {
|
3482
|
+
var options = {
|
3483
|
+
method: "DELETE",
|
3484
|
+
url: "/v3/{project_id}/agents/{agent_id}",
|
3485
|
+
contentType: "application/json",
|
3486
|
+
queryParams: {},
|
3487
|
+
pathParams: {},
|
3488
|
+
headers: {}
|
3489
|
+
};
|
3490
|
+
var localVarHeaderParameter = {};
|
3491
|
+
var agentId;
|
3492
|
+
if (unregisterAgentRequest !== null && unregisterAgentRequest !== undefined) {
|
3493
|
+
if (unregisterAgentRequest instanceof UnregisterAgentRequest_1.UnregisterAgentRequest) {
|
3494
|
+
agentId = unregisterAgentRequest.agentId;
|
3495
|
+
}
|
3496
|
+
else {
|
3497
|
+
agentId = unregisterAgentRequest['agent_id'];
|
3498
|
+
}
|
3499
|
+
}
|
3500
|
+
if (agentId === null || agentId === undefined) {
|
3501
|
+
throw new RequiredError('agentId', 'Required parameter agentId was null or undefined when calling unregisterAgent.');
|
3502
|
+
}
|
3503
|
+
options.pathParams = { 'agent_id': agentId, };
|
3504
|
+
options.headers = localVarHeaderParameter;
|
3505
|
+
return options;
|
3506
|
+
},
|
3507
|
+
/**
|
3508
|
+
* 修改客户端状态
|
3509
|
+
*
|
3510
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3511
|
+
*/
|
3512
|
+
updateAgent: function (updateAgentRequest) {
|
3513
|
+
var options = {
|
3514
|
+
method: "PUT",
|
3515
|
+
url: "/v3/{project_id}/agents/{agent_id}",
|
3516
|
+
contentType: "application/json;charset=UTF-8",
|
3517
|
+
queryParams: {},
|
3518
|
+
pathParams: {},
|
3519
|
+
headers: {},
|
3520
|
+
data: {}
|
3521
|
+
};
|
3522
|
+
var localVarHeaderParameter = {};
|
3523
|
+
var body;
|
3524
|
+
var agentId;
|
3525
|
+
if (updateAgentRequest !== null && updateAgentRequest !== undefined) {
|
3526
|
+
if (updateAgentRequest instanceof UpdateAgentRequest_1.UpdateAgentRequest) {
|
3527
|
+
agentId = updateAgentRequest.agentId;
|
3528
|
+
body = updateAgentRequest.body;
|
3529
|
+
}
|
3530
|
+
else {
|
3531
|
+
agentId = updateAgentRequest['agent_id'];
|
3532
|
+
body = updateAgentRequest['body'];
|
3533
|
+
}
|
3534
|
+
}
|
3535
|
+
if (agentId === null || agentId === undefined) {
|
3536
|
+
throw new RequiredError('agentId', 'Required parameter agentId was null or undefined when calling updateAgent.');
|
3537
|
+
}
|
3538
|
+
if (body === null || body === undefined) {
|
3539
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
3540
|
+
}
|
3541
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
3542
|
+
options.data = body !== undefined ? body : {};
|
3543
|
+
options.pathParams = { 'agent_id': agentId, };
|
3544
|
+
options.headers = localVarHeaderParameter;
|
3545
|
+
return options;
|
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
|
+
},
|
2413
3584
|
/**
|
2414
3585
|
* 更新备份共享成员的状态,需要接收方执行此API。
|
2415
3586
|
*
|
@@ -2453,6 +3624,46 @@ var ParamCreater = function () {
|
|
2453
3624
|
options.headers = localVarHeaderParameter;
|
2454
3625
|
return options;
|
2455
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
|
+
},
|
2456
3667
|
/**
|
2457
3668
|
* 修改策略
|
2458
3669
|
*
|