@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
@@ -0,0 +1,83 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
3
|
+
var extendStatics = function (d, b) {
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
+
return extendStatics(d, b);
|
8
|
+
};
|
9
|
+
return function (d, b) {
|
10
|
+
if (typeof b !== "function" && b !== null)
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
+
extendStatics(d, b);
|
13
|
+
function __() { this.constructor = d; }
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
+
};
|
16
|
+
})();
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
+
exports.ShowDomainResponse = void 0;
|
19
|
+
var SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
|
20
|
+
var ShowDomainResponse = /** @class */ (function (_super) {
|
21
|
+
__extends(ShowDomainResponse, _super);
|
22
|
+
function ShowDomainResponse() {
|
23
|
+
return _super.call(this) || this;
|
24
|
+
}
|
25
|
+
ShowDomainResponse.prototype.withProjectName = function (projectName) {
|
26
|
+
this['project_name'] = projectName;
|
27
|
+
return this;
|
28
|
+
};
|
29
|
+
Object.defineProperty(ShowDomainResponse.prototype, "projectName", {
|
30
|
+
get: function () {
|
31
|
+
return this['project_name'];
|
32
|
+
},
|
33
|
+
set: function (projectName) {
|
34
|
+
this['project_name'] = projectName;
|
35
|
+
},
|
36
|
+
enumerable: false,
|
37
|
+
configurable: true
|
38
|
+
});
|
39
|
+
ShowDomainResponse.prototype.withProjectId = function (projectId) {
|
40
|
+
this['project_id'] = projectId;
|
41
|
+
return this;
|
42
|
+
};
|
43
|
+
Object.defineProperty(ShowDomainResponse.prototype, "projectId", {
|
44
|
+
get: function () {
|
45
|
+
return this['project_id'];
|
46
|
+
},
|
47
|
+
set: function (projectId) {
|
48
|
+
this['project_id'] = projectId;
|
49
|
+
},
|
50
|
+
enumerable: false,
|
51
|
+
configurable: true
|
52
|
+
});
|
53
|
+
ShowDomainResponse.prototype.withDomainId = function (domainId) {
|
54
|
+
this['domain_id'] = domainId;
|
55
|
+
return this;
|
56
|
+
};
|
57
|
+
Object.defineProperty(ShowDomainResponse.prototype, "domainId", {
|
58
|
+
get: function () {
|
59
|
+
return this['domain_id'];
|
60
|
+
},
|
61
|
+
set: function (domainId) {
|
62
|
+
this['domain_id'] = domainId;
|
63
|
+
},
|
64
|
+
enumerable: false,
|
65
|
+
configurable: true
|
66
|
+
});
|
67
|
+
ShowDomainResponse.prototype.withDomainName = function (domainName) {
|
68
|
+
this['domain_name'] = domainName;
|
69
|
+
return this;
|
70
|
+
};
|
71
|
+
Object.defineProperty(ShowDomainResponse.prototype, "domainName", {
|
72
|
+
get: function () {
|
73
|
+
return this['domain_name'];
|
74
|
+
},
|
75
|
+
set: function (domainName) {
|
76
|
+
this['domain_name'] = domainName;
|
77
|
+
},
|
78
|
+
enumerable: false,
|
79
|
+
configurable: true
|
80
|
+
});
|
81
|
+
return ShowDomainResponse;
|
82
|
+
}(SdkResponse_1.SdkResponse));
|
83
|
+
exports.ShowDomainResponse = ShowDomainResponse;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ShowMetadataRequest = void 0;
|
4
|
+
var ShowMetadataRequest = /** @class */ (function () {
|
5
|
+
function ShowMetadataRequest(backupId) {
|
6
|
+
this['backup_id'] = backupId;
|
7
|
+
}
|
8
|
+
ShowMetadataRequest.prototype.withBackupId = function (backupId) {
|
9
|
+
this['backup_id'] = backupId;
|
10
|
+
return this;
|
11
|
+
};
|
12
|
+
Object.defineProperty(ShowMetadataRequest.prototype, "backupId", {
|
13
|
+
get: function () {
|
14
|
+
return this['backup_id'];
|
15
|
+
},
|
16
|
+
set: function (backupId) {
|
17
|
+
this['backup_id'] = backupId;
|
18
|
+
},
|
19
|
+
enumerable: false,
|
20
|
+
configurable: true
|
21
|
+
});
|
22
|
+
return ShowMetadataRequest;
|
23
|
+
}());
|
24
|
+
exports.ShowMetadataRequest = ShowMetadataRequest;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
|
2
|
+
export declare class ShowMetadataResponse extends SdkResponse {
|
3
|
+
private 'backup_id'?;
|
4
|
+
backups?: string;
|
5
|
+
flavor?: string;
|
6
|
+
floatingips?: Array<string>;
|
7
|
+
private 'interface'?;
|
8
|
+
ports?: Array<string>;
|
9
|
+
server?: string;
|
10
|
+
volumes?: Array<string>;
|
11
|
+
constructor();
|
12
|
+
withBackupId(backupId: string): ShowMetadataResponse;
|
13
|
+
set backupId(backupId: string | undefined);
|
14
|
+
get backupId(): string | undefined;
|
15
|
+
withBackups(backups: string): ShowMetadataResponse;
|
16
|
+
withFlavor(flavor: string): ShowMetadataResponse;
|
17
|
+
withFloatingips(floatingips: Array<string>): ShowMetadataResponse;
|
18
|
+
withInterface(_interface: string): ShowMetadataResponse;
|
19
|
+
set _interface(_interface: string | undefined);
|
20
|
+
get _interface(): string | undefined;
|
21
|
+
withPorts(ports: Array<string>): ShowMetadataResponse;
|
22
|
+
withServer(server: string): ShowMetadataResponse;
|
23
|
+
withVolumes(volumes: Array<string>): ShowMetadataResponse;
|
24
|
+
}
|
@@ -0,0 +1,79 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
3
|
+
var extendStatics = function (d, b) {
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
+
return extendStatics(d, b);
|
8
|
+
};
|
9
|
+
return function (d, b) {
|
10
|
+
if (typeof b !== "function" && b !== null)
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
+
extendStatics(d, b);
|
13
|
+
function __() { this.constructor = d; }
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
+
};
|
16
|
+
})();
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
+
exports.ShowMetadataResponse = void 0;
|
19
|
+
var SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
|
20
|
+
var ShowMetadataResponse = /** @class */ (function (_super) {
|
21
|
+
__extends(ShowMetadataResponse, _super);
|
22
|
+
function ShowMetadataResponse() {
|
23
|
+
return _super.call(this) || this;
|
24
|
+
}
|
25
|
+
ShowMetadataResponse.prototype.withBackupId = function (backupId) {
|
26
|
+
this['backup_id'] = backupId;
|
27
|
+
return this;
|
28
|
+
};
|
29
|
+
Object.defineProperty(ShowMetadataResponse.prototype, "backupId", {
|
30
|
+
get: function () {
|
31
|
+
return this['backup_id'];
|
32
|
+
},
|
33
|
+
set: function (backupId) {
|
34
|
+
this['backup_id'] = backupId;
|
35
|
+
},
|
36
|
+
enumerable: false,
|
37
|
+
configurable: true
|
38
|
+
});
|
39
|
+
ShowMetadataResponse.prototype.withBackups = function (backups) {
|
40
|
+
this['backups'] = backups;
|
41
|
+
return this;
|
42
|
+
};
|
43
|
+
ShowMetadataResponse.prototype.withFlavor = function (flavor) {
|
44
|
+
this['flavor'] = flavor;
|
45
|
+
return this;
|
46
|
+
};
|
47
|
+
ShowMetadataResponse.prototype.withFloatingips = function (floatingips) {
|
48
|
+
this['floatingips'] = floatingips;
|
49
|
+
return this;
|
50
|
+
};
|
51
|
+
ShowMetadataResponse.prototype.withInterface = function (_interface) {
|
52
|
+
this['interface'] = _interface;
|
53
|
+
return this;
|
54
|
+
};
|
55
|
+
Object.defineProperty(ShowMetadataResponse.prototype, "_interface", {
|
56
|
+
get: function () {
|
57
|
+
return this['interface'];
|
58
|
+
},
|
59
|
+
set: function (_interface) {
|
60
|
+
this['interface'] = _interface;
|
61
|
+
},
|
62
|
+
enumerable: false,
|
63
|
+
configurable: true
|
64
|
+
});
|
65
|
+
ShowMetadataResponse.prototype.withPorts = function (ports) {
|
66
|
+
this['ports'] = ports;
|
67
|
+
return this;
|
68
|
+
};
|
69
|
+
ShowMetadataResponse.prototype.withServer = function (server) {
|
70
|
+
this['server'] = server;
|
71
|
+
return this;
|
72
|
+
};
|
73
|
+
ShowMetadataResponse.prototype.withVolumes = function (volumes) {
|
74
|
+
this['volumes'] = volumes;
|
75
|
+
return this;
|
76
|
+
};
|
77
|
+
return ShowMetadataResponse;
|
78
|
+
}(SdkResponse_1.SdkResponse));
|
79
|
+
exports.ShowMetadataResponse = ShowMetadataResponse;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ShowMigrateStatusRequest = void 0;
|
4
|
+
var ShowMigrateStatusRequest = /** @class */ (function () {
|
5
|
+
function ShowMigrateStatusRequest() {
|
6
|
+
}
|
7
|
+
ShowMigrateStatusRequest.prototype.withAllRegions = function (allRegions) {
|
8
|
+
this['all_regions'] = allRegions;
|
9
|
+
return this;
|
10
|
+
};
|
11
|
+
Object.defineProperty(ShowMigrateStatusRequest.prototype, "allRegions", {
|
12
|
+
get: function () {
|
13
|
+
return this['all_regions'];
|
14
|
+
},
|
15
|
+
set: function (allRegions) {
|
16
|
+
this['all_regions'] = allRegions;
|
17
|
+
},
|
18
|
+
enumerable: false,
|
19
|
+
configurable: true
|
20
|
+
});
|
21
|
+
return ShowMigrateStatusRequest;
|
22
|
+
}());
|
23
|
+
exports.ShowMigrateStatusRequest = ShowMigrateStatusRequest;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { DomainMigrateProjectStatus } from './DomainMigrateProjectStatus';
|
2
|
+
import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
|
3
|
+
export declare class ShowMigrateStatusResponse extends SdkResponse {
|
4
|
+
status?: ShowMigrateStatusResponseStatusEnum;
|
5
|
+
private 'project_status'?;
|
6
|
+
constructor();
|
7
|
+
withStatus(status: ShowMigrateStatusResponseStatusEnum): ShowMigrateStatusResponse;
|
8
|
+
withProjectStatus(projectStatus: Array<DomainMigrateProjectStatus>): ShowMigrateStatusResponse;
|
9
|
+
set projectStatus(projectStatus: Array<DomainMigrateProjectStatus> | undefined);
|
10
|
+
get projectStatus(): Array<DomainMigrateProjectStatus> | undefined;
|
11
|
+
}
|
12
|
+
/**
|
13
|
+
* @export
|
14
|
+
* @enum {string}
|
15
|
+
*/
|
16
|
+
export declare enum ShowMigrateStatusResponseStatusEnum {
|
17
|
+
SUCCESS = "success",
|
18
|
+
FAILED = "failed",
|
19
|
+
MIGRATING = "migrating"
|
20
|
+
}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
3
|
+
var extendStatics = function (d, b) {
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
+
return extendStatics(d, b);
|
8
|
+
};
|
9
|
+
return function (d, b) {
|
10
|
+
if (typeof b !== "function" && b !== null)
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
+
extendStatics(d, b);
|
13
|
+
function __() { this.constructor = d; }
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
+
};
|
16
|
+
})();
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
+
exports.ShowMigrateStatusResponseStatusEnum = exports.ShowMigrateStatusResponse = void 0;
|
19
|
+
var SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
|
20
|
+
var ShowMigrateStatusResponse = /** @class */ (function (_super) {
|
21
|
+
__extends(ShowMigrateStatusResponse, _super);
|
22
|
+
function ShowMigrateStatusResponse() {
|
23
|
+
return _super.call(this) || this;
|
24
|
+
}
|
25
|
+
ShowMigrateStatusResponse.prototype.withStatus = function (status) {
|
26
|
+
this['status'] = status;
|
27
|
+
return this;
|
28
|
+
};
|
29
|
+
ShowMigrateStatusResponse.prototype.withProjectStatus = function (projectStatus) {
|
30
|
+
this['project_status'] = projectStatus;
|
31
|
+
return this;
|
32
|
+
};
|
33
|
+
Object.defineProperty(ShowMigrateStatusResponse.prototype, "projectStatus", {
|
34
|
+
get: function () {
|
35
|
+
return this['project_status'];
|
36
|
+
},
|
37
|
+
set: function (projectStatus) {
|
38
|
+
this['project_status'] = projectStatus;
|
39
|
+
},
|
40
|
+
enumerable: false,
|
41
|
+
configurable: true
|
42
|
+
});
|
43
|
+
return ShowMigrateStatusResponse;
|
44
|
+
}(SdkResponse_1.SdkResponse));
|
45
|
+
exports.ShowMigrateStatusResponse = ShowMigrateStatusResponse;
|
46
|
+
/**
|
47
|
+
* @export
|
48
|
+
* @enum {string}
|
49
|
+
*/
|
50
|
+
var ShowMigrateStatusResponseStatusEnum;
|
51
|
+
(function (ShowMigrateStatusResponseStatusEnum) {
|
52
|
+
ShowMigrateStatusResponseStatusEnum["SUCCESS"] = "success";
|
53
|
+
ShowMigrateStatusResponseStatusEnum["FAILED"] = "failed";
|
54
|
+
ShowMigrateStatusResponseStatusEnum["MIGRATING"] = "migrating";
|
55
|
+
})(ShowMigrateStatusResponseStatusEnum = exports.ShowMigrateStatusResponseStatusEnum || (exports.ShowMigrateStatusResponseStatusEnum = {}));
|
@@ -0,0 +1,23 @@
|
|
1
|
+
export declare class ShowStorageUsageRequest {
|
2
|
+
limit?: number;
|
3
|
+
offset?: number;
|
4
|
+
private 'resource_id'?;
|
5
|
+
private 'resource_type'?;
|
6
|
+
constructor();
|
7
|
+
withLimit(limit: number): ShowStorageUsageRequest;
|
8
|
+
withOffset(offset: number): ShowStorageUsageRequest;
|
9
|
+
withResourceId(resourceId: string): ShowStorageUsageRequest;
|
10
|
+
set resourceId(resourceId: string | undefined);
|
11
|
+
get resourceId(): string | undefined;
|
12
|
+
withResourceType(resourceType: ShowStorageUsageRequestResourceTypeEnum): ShowStorageUsageRequest;
|
13
|
+
set resourceType(resourceType: ShowStorageUsageRequestResourceTypeEnum | undefined);
|
14
|
+
get resourceType(): ShowStorageUsageRequestResourceTypeEnum | undefined;
|
15
|
+
}
|
16
|
+
/**
|
17
|
+
* @export
|
18
|
+
* @enum {string}
|
19
|
+
*/
|
20
|
+
export declare enum ShowStorageUsageRequestResourceTypeEnum {
|
21
|
+
OSNOVASERVER = "OS::Nova::Server",
|
22
|
+
OSIRONICBAREMETALSERVER = "OS::Ironic::BareMetalServer"
|
23
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ShowStorageUsageRequestResourceTypeEnum = exports.ShowStorageUsageRequest = void 0;
|
4
|
+
var ShowStorageUsageRequest = /** @class */ (function () {
|
5
|
+
function ShowStorageUsageRequest() {
|
6
|
+
}
|
7
|
+
ShowStorageUsageRequest.prototype.withLimit = function (limit) {
|
8
|
+
this['limit'] = limit;
|
9
|
+
return this;
|
10
|
+
};
|
11
|
+
ShowStorageUsageRequest.prototype.withOffset = function (offset) {
|
12
|
+
this['offset'] = offset;
|
13
|
+
return this;
|
14
|
+
};
|
15
|
+
ShowStorageUsageRequest.prototype.withResourceId = function (resourceId) {
|
16
|
+
this['resource_id'] = resourceId;
|
17
|
+
return this;
|
18
|
+
};
|
19
|
+
Object.defineProperty(ShowStorageUsageRequest.prototype, "resourceId", {
|
20
|
+
get: function () {
|
21
|
+
return this['resource_id'];
|
22
|
+
},
|
23
|
+
set: function (resourceId) {
|
24
|
+
this['resource_id'] = resourceId;
|
25
|
+
},
|
26
|
+
enumerable: false,
|
27
|
+
configurable: true
|
28
|
+
});
|
29
|
+
ShowStorageUsageRequest.prototype.withResourceType = function (resourceType) {
|
30
|
+
this['resource_type'] = resourceType;
|
31
|
+
return this;
|
32
|
+
};
|
33
|
+
Object.defineProperty(ShowStorageUsageRequest.prototype, "resourceType", {
|
34
|
+
get: function () {
|
35
|
+
return this['resource_type'];
|
36
|
+
},
|
37
|
+
set: function (resourceType) {
|
38
|
+
this['resource_type'] = resourceType;
|
39
|
+
},
|
40
|
+
enumerable: false,
|
41
|
+
configurable: true
|
42
|
+
});
|
43
|
+
return ShowStorageUsageRequest;
|
44
|
+
}());
|
45
|
+
exports.ShowStorageUsageRequest = ShowStorageUsageRequest;
|
46
|
+
/**
|
47
|
+
* @export
|
48
|
+
* @enum {string}
|
49
|
+
*/
|
50
|
+
var ShowStorageUsageRequestResourceTypeEnum;
|
51
|
+
(function (ShowStorageUsageRequestResourceTypeEnum) {
|
52
|
+
ShowStorageUsageRequestResourceTypeEnum["OSNOVASERVER"] = "OS::Nova::Server";
|
53
|
+
ShowStorageUsageRequestResourceTypeEnum["OSIRONICBAREMETALSERVER"] = "OS::Ironic::BareMetalServer";
|
54
|
+
})(ShowStorageUsageRequestResourceTypeEnum = exports.ShowStorageUsageRequestResourceTypeEnum || (exports.ShowStorageUsageRequestResourceTypeEnum = {}));
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { StorageUsage } from './StorageUsage';
|
2
|
+
import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
|
3
|
+
export declare class ShowStorageUsageResponse extends SdkResponse {
|
4
|
+
private 'resource_count'?;
|
5
|
+
private 'storage_usage'?;
|
6
|
+
constructor();
|
7
|
+
withResourceCount(resourceCount: number): ShowStorageUsageResponse;
|
8
|
+
set resourceCount(resourceCount: number | undefined);
|
9
|
+
get resourceCount(): number | undefined;
|
10
|
+
withStorageUsage(storageUsage: Array<StorageUsage>): ShowStorageUsageResponse;
|
11
|
+
set storageUsage(storageUsage: Array<StorageUsage> | undefined);
|
12
|
+
get storageUsage(): Array<StorageUsage> | undefined;
|
13
|
+
}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
3
|
+
var extendStatics = function (d, b) {
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
+
return extendStatics(d, b);
|
8
|
+
};
|
9
|
+
return function (d, b) {
|
10
|
+
if (typeof b !== "function" && b !== null)
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
+
extendStatics(d, b);
|
13
|
+
function __() { this.constructor = d; }
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
+
};
|
16
|
+
})();
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
+
exports.ShowStorageUsageResponse = void 0;
|
19
|
+
var SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
|
20
|
+
var ShowStorageUsageResponse = /** @class */ (function (_super) {
|
21
|
+
__extends(ShowStorageUsageResponse, _super);
|
22
|
+
function ShowStorageUsageResponse() {
|
23
|
+
return _super.call(this) || this;
|
24
|
+
}
|
25
|
+
ShowStorageUsageResponse.prototype.withResourceCount = function (resourceCount) {
|
26
|
+
this['resource_count'] = resourceCount;
|
27
|
+
return this;
|
28
|
+
};
|
29
|
+
Object.defineProperty(ShowStorageUsageResponse.prototype, "resourceCount", {
|
30
|
+
get: function () {
|
31
|
+
return this['resource_count'];
|
32
|
+
},
|
33
|
+
set: function (resourceCount) {
|
34
|
+
this['resource_count'] = resourceCount;
|
35
|
+
},
|
36
|
+
enumerable: false,
|
37
|
+
configurable: true
|
38
|
+
});
|
39
|
+
ShowStorageUsageResponse.prototype.withStorageUsage = function (storageUsage) {
|
40
|
+
this['storage_usage'] = storageUsage;
|
41
|
+
return this;
|
42
|
+
};
|
43
|
+
Object.defineProperty(ShowStorageUsageResponse.prototype, "storageUsage", {
|
44
|
+
get: function () {
|
45
|
+
return this['storage_usage'];
|
46
|
+
},
|
47
|
+
set: function (storageUsage) {
|
48
|
+
this['storage_usage'] = storageUsage;
|
49
|
+
},
|
50
|
+
enumerable: false,
|
51
|
+
configurable: true
|
52
|
+
});
|
53
|
+
return ShowStorageUsageResponse;
|
54
|
+
}(SdkResponse_1.SdkResponse));
|
55
|
+
exports.ShowStorageUsageResponse = ShowStorageUsageResponse;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
export declare class StorageUsage {
|
2
|
+
private 'backup_count'?;
|
3
|
+
private 'backup_size'?;
|
4
|
+
private 'resource_id';
|
5
|
+
private 'resource_name';
|
6
|
+
private 'resource_type';
|
7
|
+
private 'backup_size_multiaz'?;
|
8
|
+
constructor(resourceId?: any, resourceName?: any, resourceType?: any);
|
9
|
+
withBackupCount(backupCount: number): StorageUsage;
|
10
|
+
set backupCount(backupCount: number | undefined);
|
11
|
+
get backupCount(): number | undefined;
|
12
|
+
withBackupSize(backupSize: number): StorageUsage;
|
13
|
+
set backupSize(backupSize: number | undefined);
|
14
|
+
get backupSize(): number | undefined;
|
15
|
+
withResourceId(resourceId: string): StorageUsage;
|
16
|
+
set resourceId(resourceId: string | undefined);
|
17
|
+
get resourceId(): string | undefined;
|
18
|
+
withResourceName(resourceName: string): StorageUsage;
|
19
|
+
set resourceName(resourceName: string | undefined);
|
20
|
+
get resourceName(): string | undefined;
|
21
|
+
withResourceType(resourceType: string): StorageUsage;
|
22
|
+
set resourceType(resourceType: string | undefined);
|
23
|
+
get resourceType(): string | undefined;
|
24
|
+
withBackupSizeMultiaz(backupSizeMultiaz: number): StorageUsage;
|
25
|
+
set backupSizeMultiaz(backupSizeMultiaz: number | undefined);
|
26
|
+
get backupSizeMultiaz(): number | undefined;
|
27
|
+
}
|
@@ -0,0 +1,96 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.StorageUsage = void 0;
|
4
|
+
var StorageUsage = /** @class */ (function () {
|
5
|
+
function StorageUsage(resourceId, resourceName, resourceType) {
|
6
|
+
this['resource_id'] = resourceId;
|
7
|
+
this['resource_name'] = resourceName;
|
8
|
+
this['resource_type'] = resourceType;
|
9
|
+
}
|
10
|
+
StorageUsage.prototype.withBackupCount = function (backupCount) {
|
11
|
+
this['backup_count'] = backupCount;
|
12
|
+
return this;
|
13
|
+
};
|
14
|
+
Object.defineProperty(StorageUsage.prototype, "backupCount", {
|
15
|
+
get: function () {
|
16
|
+
return this['backup_count'];
|
17
|
+
},
|
18
|
+
set: function (backupCount) {
|
19
|
+
this['backup_count'] = backupCount;
|
20
|
+
},
|
21
|
+
enumerable: false,
|
22
|
+
configurable: true
|
23
|
+
});
|
24
|
+
StorageUsage.prototype.withBackupSize = function (backupSize) {
|
25
|
+
this['backup_size'] = backupSize;
|
26
|
+
return this;
|
27
|
+
};
|
28
|
+
Object.defineProperty(StorageUsage.prototype, "backupSize", {
|
29
|
+
get: function () {
|
30
|
+
return this['backup_size'];
|
31
|
+
},
|
32
|
+
set: function (backupSize) {
|
33
|
+
this['backup_size'] = backupSize;
|
34
|
+
},
|
35
|
+
enumerable: false,
|
36
|
+
configurable: true
|
37
|
+
});
|
38
|
+
StorageUsage.prototype.withResourceId = function (resourceId) {
|
39
|
+
this['resource_id'] = resourceId;
|
40
|
+
return this;
|
41
|
+
};
|
42
|
+
Object.defineProperty(StorageUsage.prototype, "resourceId", {
|
43
|
+
get: function () {
|
44
|
+
return this['resource_id'];
|
45
|
+
},
|
46
|
+
set: function (resourceId) {
|
47
|
+
this['resource_id'] = resourceId;
|
48
|
+
},
|
49
|
+
enumerable: false,
|
50
|
+
configurable: true
|
51
|
+
});
|
52
|
+
StorageUsage.prototype.withResourceName = function (resourceName) {
|
53
|
+
this['resource_name'] = resourceName;
|
54
|
+
return this;
|
55
|
+
};
|
56
|
+
Object.defineProperty(StorageUsage.prototype, "resourceName", {
|
57
|
+
get: function () {
|
58
|
+
return this['resource_name'];
|
59
|
+
},
|
60
|
+
set: function (resourceName) {
|
61
|
+
this['resource_name'] = resourceName;
|
62
|
+
},
|
63
|
+
enumerable: false,
|
64
|
+
configurable: true
|
65
|
+
});
|
66
|
+
StorageUsage.prototype.withResourceType = function (resourceType) {
|
67
|
+
this['resource_type'] = resourceType;
|
68
|
+
return this;
|
69
|
+
};
|
70
|
+
Object.defineProperty(StorageUsage.prototype, "resourceType", {
|
71
|
+
get: function () {
|
72
|
+
return this['resource_type'];
|
73
|
+
},
|
74
|
+
set: function (resourceType) {
|
75
|
+
this['resource_type'] = resourceType;
|
76
|
+
},
|
77
|
+
enumerable: false,
|
78
|
+
configurable: true
|
79
|
+
});
|
80
|
+
StorageUsage.prototype.withBackupSizeMultiaz = function (backupSizeMultiaz) {
|
81
|
+
this['backup_size_multiaz'] = backupSizeMultiaz;
|
82
|
+
return this;
|
83
|
+
};
|
84
|
+
Object.defineProperty(StorageUsage.prototype, "backupSizeMultiaz", {
|
85
|
+
get: function () {
|
86
|
+
return this['backup_size_multiaz'];
|
87
|
+
},
|
88
|
+
set: function (backupSizeMultiaz) {
|
89
|
+
this['backup_size_multiaz'] = backupSizeMultiaz;
|
90
|
+
},
|
91
|
+
enumerable: false,
|
92
|
+
configurable: true
|
93
|
+
});
|
94
|
+
return StorageUsage;
|
95
|
+
}());
|
96
|
+
exports.StorageUsage = StorageUsage;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export declare class SyncParam {
|
2
|
+
private 'auto_trigger';
|
3
|
+
private 'vault_id';
|
4
|
+
constructor(autoTrigger?: any, vaultId?: any);
|
5
|
+
withAutoTrigger(autoTrigger: boolean): SyncParam;
|
6
|
+
set autoTrigger(autoTrigger: boolean | undefined);
|
7
|
+
get autoTrigger(): boolean | undefined;
|
8
|
+
withVaultId(vaultId: string): SyncParam;
|
9
|
+
set vaultId(vaultId: string | undefined);
|
10
|
+
get vaultId(): string | undefined;
|
11
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SyncParam = void 0;
|
4
|
+
var SyncParam = /** @class */ (function () {
|
5
|
+
function SyncParam(autoTrigger, vaultId) {
|
6
|
+
this['auto_trigger'] = autoTrigger;
|
7
|
+
this['vault_id'] = vaultId;
|
8
|
+
}
|
9
|
+
SyncParam.prototype.withAutoTrigger = function (autoTrigger) {
|
10
|
+
this['auto_trigger'] = autoTrigger;
|
11
|
+
return this;
|
12
|
+
};
|
13
|
+
Object.defineProperty(SyncParam.prototype, "autoTrigger", {
|
14
|
+
get: function () {
|
15
|
+
return this['auto_trigger'];
|
16
|
+
},
|
17
|
+
set: function (autoTrigger) {
|
18
|
+
this['auto_trigger'] = autoTrigger;
|
19
|
+
},
|
20
|
+
enumerable: false,
|
21
|
+
configurable: true
|
22
|
+
});
|
23
|
+
SyncParam.prototype.withVaultId = function (vaultId) {
|
24
|
+
this['vault_id'] = vaultId;
|
25
|
+
return this;
|
26
|
+
};
|
27
|
+
Object.defineProperty(SyncParam.prototype, "vaultId", {
|
28
|
+
get: function () {
|
29
|
+
return this['vault_id'];
|
30
|
+
},
|
31
|
+
set: function (vaultId) {
|
32
|
+
this['vault_id'] = vaultId;
|
33
|
+
},
|
34
|
+
enumerable: false,
|
35
|
+
configurable: true
|
36
|
+
});
|
37
|
+
return SyncParam;
|
38
|
+
}());
|
39
|
+
exports.SyncParam = SyncParam;
|