@openshift-migration-advisor/planner-sdk 0.4.0-190ea33a47ea
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +105 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +173 -0
- package/dist/apis/AssessmentApi.d.ts +236 -0
- package/dist/apis/AssessmentApi.js +277 -0
- package/dist/apis/HealthApi.d.ts +54 -0
- package/dist/apis/HealthApi.js +66 -0
- package/dist/apis/ImageApi.d.ts +94 -0
- package/dist/apis/ImageApi.js +110 -0
- package/dist/apis/InfoApi.d.ts +55 -0
- package/dist/apis/InfoApi.js +68 -0
- package/dist/apis/JobApi.d.ts +131 -0
- package/dist/apis/JobApi.js +174 -0
- package/dist/apis/SourceApi.d.ts +260 -0
- package/dist/apis/SourceApi.js +309 -0
- package/dist/apis/index.d.ts +6 -0
- package/dist/apis/index.js +24 -0
- package/dist/esm/apis/AssessmentApi.d.ts +236 -0
- package/dist/esm/apis/AssessmentApi.js +273 -0
- package/dist/esm/apis/HealthApi.d.ts +54 -0
- package/dist/esm/apis/HealthApi.js +62 -0
- package/dist/esm/apis/ImageApi.d.ts +94 -0
- package/dist/esm/apis/ImageApi.js +106 -0
- package/dist/esm/apis/InfoApi.d.ts +55 -0
- package/dist/esm/apis/InfoApi.js +64 -0
- package/dist/esm/apis/JobApi.d.ts +131 -0
- package/dist/esm/apis/JobApi.js +170 -0
- package/dist/esm/apis/SourceApi.d.ts +260 -0
- package/dist/esm/apis/SourceApi.js +305 -0
- package/dist/esm/apis/index.d.ts +6 -0
- package/dist/esm/apis/index.js +8 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/Agent.d.ts +80 -0
- package/dist/esm/models/Agent.js +78 -0
- package/dist/esm/models/AgentProxy.d.ts +44 -0
- package/dist/esm/models/AgentProxy.js +45 -0
- package/dist/esm/models/Assessment.d.ts +84 -0
- package/dist/esm/models/Assessment.js +74 -0
- package/dist/esm/models/AssessmentForm.d.ts +54 -0
- package/dist/esm/models/AssessmentForm.js +52 -0
- package/dist/esm/models/AssessmentUpdate.d.ts +32 -0
- package/dist/esm/models/AssessmentUpdate.js +41 -0
- package/dist/esm/models/ClusterRequirementsRequest.d.ts +87 -0
- package/dist/esm/models/ClusterRequirementsRequest.js +80 -0
- package/dist/esm/models/ClusterRequirementsResponse.d.ts +47 -0
- package/dist/esm/models/ClusterRequirementsResponse.js +54 -0
- package/dist/esm/models/ClusterSizing.d.ts +62 -0
- package/dist/esm/models/ClusterSizing.js +63 -0
- package/dist/esm/models/Datastore.d.ts +80 -0
- package/dist/esm/models/Datastore.js +73 -0
- package/dist/esm/models/DiskSizeTierSummary.d.ts +38 -0
- package/dist/esm/models/DiskSizeTierSummary.js +47 -0
- package/dist/esm/models/DiskTypeSummary.d.ts +38 -0
- package/dist/esm/models/DiskTypeSummary.js +47 -0
- package/dist/esm/models/Histogram.d.ts +44 -0
- package/dist/esm/models/Histogram.js +51 -0
- package/dist/esm/models/Host.d.ts +62 -0
- package/dist/esm/models/Host.js +55 -0
- package/dist/esm/models/Info.d.ts +38 -0
- package/dist/esm/models/Info.js +47 -0
- package/dist/esm/models/Infra.d.ts +106 -0
- package/dist/esm/models/Infra.js +74 -0
- package/dist/esm/models/Inventory.d.ts +47 -0
- package/dist/esm/models/Inventory.js +51 -0
- package/dist/esm/models/InventoryData.d.ts +47 -0
- package/dist/esm/models/InventoryData.js +52 -0
- package/dist/esm/models/InventoryTotals.d.ts +44 -0
- package/dist/esm/models/InventoryTotals.js +51 -0
- package/dist/esm/models/Ipv4Config.d.ts +50 -0
- package/dist/esm/models/Ipv4Config.js +55 -0
- package/dist/esm/models/Job.d.ts +51 -0
- package/dist/esm/models/Job.js +52 -0
- package/dist/esm/models/JobStatus.d.ts +36 -0
- package/dist/esm/models/JobStatus.js +54 -0
- package/dist/esm/models/Label.d.ts +38 -0
- package/dist/esm/models/Label.js +47 -0
- package/dist/esm/models/MigrationIssue.d.ts +50 -0
- package/dist/esm/models/MigrationIssue.js +53 -0
- package/dist/esm/models/ModelError.d.ts +38 -0
- package/dist/esm/models/ModelError.js +45 -0
- package/dist/esm/models/Network.d.ts +66 -0
- package/dist/esm/models/Network.js +62 -0
- package/dist/esm/models/OsInfo.d.ts +44 -0
- package/dist/esm/models/OsInfo.js +49 -0
- package/dist/esm/models/PresignedUrl.d.ts +38 -0
- package/dist/esm/models/PresignedUrl.js +45 -0
- package/dist/esm/models/SizingOverCommitRatio.d.ts +38 -0
- package/dist/esm/models/SizingOverCommitRatio.js +47 -0
- package/dist/esm/models/SizingResourceConsumption.d.ts +52 -0
- package/dist/esm/models/SizingResourceConsumption.js +53 -0
- package/dist/esm/models/SizingResourceLimits.d.ts +38 -0
- package/dist/esm/models/SizingResourceLimits.js +47 -0
- package/dist/esm/models/Snapshot.d.ts +39 -0
- package/dist/esm/models/Snapshot.js +48 -0
- package/dist/esm/models/Source.d.ts +84 -0
- package/dist/esm/models/Source.js +71 -0
- package/dist/esm/models/SourceCreate.d.ts +65 -0
- package/dist/esm/models/SourceCreate.js +56 -0
- package/dist/esm/models/SourceInfra.d.ts +46 -0
- package/dist/esm/models/SourceInfra.js +47 -0
- package/dist/esm/models/SourceUpdate.d.ts +65 -0
- package/dist/esm/models/SourceUpdate.js +54 -0
- package/dist/esm/models/Status.d.ts +44 -0
- package/dist/esm/models/Status.js +45 -0
- package/dist/esm/models/UpdateInventory.d.ts +39 -0
- package/dist/esm/models/UpdateInventory.js +48 -0
- package/dist/esm/models/VCenter.d.ts +32 -0
- package/dist/esm/models/VCenter.js +43 -0
- package/dist/esm/models/VMResourceBreakdown.d.ts +58 -0
- package/dist/esm/models/VMResourceBreakdown.js +58 -0
- package/dist/esm/models/VMs.d.ts +162 -0
- package/dist/esm/models/VMs.js +101 -0
- package/dist/esm/models/VmNetwork.d.ts +33 -0
- package/dist/esm/models/VmNetwork.js +42 -0
- package/dist/esm/models/index.d.ts +41 -0
- package/dist/esm/models/index.js +43 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +334 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/Agent.d.ts +80 -0
- package/dist/models/Agent.js +86 -0
- package/dist/models/AgentProxy.d.ts +44 -0
- package/dist/models/AgentProxy.js +52 -0
- package/dist/models/Assessment.d.ts +84 -0
- package/dist/models/Assessment.js +82 -0
- package/dist/models/AssessmentForm.d.ts +54 -0
- package/dist/models/AssessmentForm.js +59 -0
- package/dist/models/AssessmentUpdate.d.ts +32 -0
- package/dist/models/AssessmentUpdate.js +48 -0
- package/dist/models/ClusterRequirementsRequest.d.ts +87 -0
- package/dist/models/ClusterRequirementsRequest.js +88 -0
- package/dist/models/ClusterRequirementsResponse.d.ts +47 -0
- package/dist/models/ClusterRequirementsResponse.js +61 -0
- package/dist/models/ClusterSizing.d.ts +62 -0
- package/dist/models/ClusterSizing.js +70 -0
- package/dist/models/Datastore.d.ts +80 -0
- package/dist/models/Datastore.js +80 -0
- package/dist/models/DiskSizeTierSummary.d.ts +38 -0
- package/dist/models/DiskSizeTierSummary.js +54 -0
- package/dist/models/DiskTypeSummary.d.ts +38 -0
- package/dist/models/DiskTypeSummary.js +54 -0
- package/dist/models/Histogram.d.ts +44 -0
- package/dist/models/Histogram.js +58 -0
- package/dist/models/Host.d.ts +62 -0
- package/dist/models/Host.js +62 -0
- package/dist/models/Info.d.ts +38 -0
- package/dist/models/Info.js +54 -0
- package/dist/models/Infra.d.ts +106 -0
- package/dist/models/Infra.js +81 -0
- package/dist/models/Inventory.d.ts +47 -0
- package/dist/models/Inventory.js +58 -0
- package/dist/models/InventoryData.d.ts +47 -0
- package/dist/models/InventoryData.js +59 -0
- package/dist/models/InventoryTotals.d.ts +44 -0
- package/dist/models/InventoryTotals.js +58 -0
- package/dist/models/Ipv4Config.d.ts +50 -0
- package/dist/models/Ipv4Config.js +62 -0
- package/dist/models/Job.d.ts +51 -0
- package/dist/models/Job.js +59 -0
- package/dist/models/JobStatus.d.ts +36 -0
- package/dist/models/JobStatus.js +62 -0
- package/dist/models/Label.d.ts +38 -0
- package/dist/models/Label.js +54 -0
- package/dist/models/MigrationIssue.d.ts +50 -0
- package/dist/models/MigrationIssue.js +60 -0
- package/dist/models/ModelError.d.ts +38 -0
- package/dist/models/ModelError.js +52 -0
- package/dist/models/Network.d.ts +66 -0
- package/dist/models/Network.js +70 -0
- package/dist/models/OsInfo.d.ts +44 -0
- package/dist/models/OsInfo.js +56 -0
- package/dist/models/PresignedUrl.d.ts +38 -0
- package/dist/models/PresignedUrl.js +52 -0
- package/dist/models/SizingOverCommitRatio.d.ts +38 -0
- package/dist/models/SizingOverCommitRatio.js +54 -0
- package/dist/models/SizingResourceConsumption.d.ts +52 -0
- package/dist/models/SizingResourceConsumption.js +60 -0
- package/dist/models/SizingResourceLimits.d.ts +38 -0
- package/dist/models/SizingResourceLimits.js +54 -0
- package/dist/models/Snapshot.d.ts +39 -0
- package/dist/models/Snapshot.js +55 -0
- package/dist/models/Source.d.ts +84 -0
- package/dist/models/Source.js +78 -0
- package/dist/models/SourceCreate.d.ts +65 -0
- package/dist/models/SourceCreate.js +63 -0
- package/dist/models/SourceInfra.d.ts +46 -0
- package/dist/models/SourceInfra.js +54 -0
- package/dist/models/SourceUpdate.d.ts +65 -0
- package/dist/models/SourceUpdate.js +61 -0
- package/dist/models/Status.d.ts +44 -0
- package/dist/models/Status.js +52 -0
- package/dist/models/UpdateInventory.d.ts +39 -0
- package/dist/models/UpdateInventory.js +55 -0
- package/dist/models/VCenter.d.ts +32 -0
- package/dist/models/VCenter.js +50 -0
- package/dist/models/VMResourceBreakdown.d.ts +58 -0
- package/dist/models/VMResourceBreakdown.js +65 -0
- package/dist/models/VMs.d.ts +162 -0
- package/dist/models/VMs.js +108 -0
- package/dist/models/VmNetwork.d.ts +33 -0
- package/dist/models/VmNetwork.js +49 -0
- package/dist/models/index.d.ts +41 -0
- package/dist/models/index.js +59 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +350 -0
- package/docs/Agent.md +46 -0
- package/docs/AgentProxy.md +38 -0
- package/docs/Assessment.md +48 -0
- package/docs/AssessmentApi.md +448 -0
- package/docs/AssessmentForm.md +40 -0
- package/docs/AssessmentUpdate.md +35 -0
- package/docs/ClusterRequirementsRequest.md +47 -0
- package/docs/ClusterRequirementsResponse.md +39 -0
- package/docs/ClusterSizing.md +45 -0
- package/docs/Datastore.md +50 -0
- package/docs/DiskSizeTierSummary.md +36 -0
- package/docs/DiskTypeSummary.md +36 -0
- package/docs/HealthApi.md +68 -0
- package/docs/Histogram.md +38 -0
- package/docs/Host.md +44 -0
- package/docs/ImageApi.md +152 -0
- package/docs/Info.md +37 -0
- package/docs/InfoApi.md +69 -0
- package/docs/Infra.md +56 -0
- package/docs/Inventory.md +38 -0
- package/docs/InventoryData.md +38 -0
- package/docs/InventoryTotals.md +39 -0
- package/docs/Ipv4Config.md +40 -0
- package/docs/Job.md +41 -0
- package/docs/JobApi.md +229 -0
- package/docs/JobStatus.md +33 -0
- package/docs/Label.md +36 -0
- package/docs/MigrationIssue.md +40 -0
- package/docs/ModelError.md +36 -0
- package/docs/Network.md +42 -0
- package/docs/OsInfo.md +38 -0
- package/docs/PresignedUrl.md +36 -0
- package/docs/SizingOverCommitRatio.md +37 -0
- package/docs/SizingResourceConsumption.md +41 -0
- package/docs/SizingResourceLimits.md +37 -0
- package/docs/Snapshot.md +36 -0
- package/docs/Source.md +50 -0
- package/docs/SourceApi.md +501 -0
- package/docs/SourceCreate.md +44 -0
- package/docs/SourceInfra.md +38 -0
- package/docs/SourceUpdate.md +44 -0
- package/docs/Status.md +39 -0
- package/docs/UpdateInventory.md +36 -0
- package/docs/VCenter.md +34 -0
- package/docs/VMResourceBreakdown.md +42 -0
- package/docs/VMs.md +70 -0
- package/docs/VmNetwork.md +34 -0
- package/package.json +22 -0
- package/src/apis/AssessmentApi.ts +501 -0
- package/src/apis/HealthApi.ts +88 -0
- package/src/apis/ImageApi.ts +180 -0
- package/src/apis/InfoApi.ts +96 -0
- package/src/apis/JobApi.ts +286 -0
- package/src/apis/SourceApi.ts +548 -0
- package/src/apis/index.ts +8 -0
- package/src/index.ts +5 -0
- package/src/models/Agent.ts +135 -0
- package/src/models/AgentProxy.ts +81 -0
- package/src/models/Assessment.ts +146 -0
- package/src/models/AssessmentForm.ts +102 -0
- package/src/models/AssessmentUpdate.ts +65 -0
- package/src/models/ClusterRequirementsRequest.ts +141 -0
- package/src/models/ClusterRequirementsResponse.ts +106 -0
- package/src/models/ClusterSizing.ts +111 -0
- package/src/models/Datastore.ts +137 -0
- package/src/models/DiskSizeTierSummary.ts +75 -0
- package/src/models/DiskTypeSummary.ts +75 -0
- package/src/models/Histogram.ts +84 -0
- package/src/models/Host.ts +107 -0
- package/src/models/Info.ts +75 -0
- package/src/models/Infra.ts +182 -0
- package/src/models/Inventory.ts +91 -0
- package/src/models/InventoryData.ts +105 -0
- package/src/models/InventoryTotals.ts +84 -0
- package/src/models/Ipv4Config.ts +93 -0
- package/src/models/Job.ts +101 -0
- package/src/models/JobStatus.ts +64 -0
- package/src/models/Label.ts +75 -0
- package/src/models/MigrationIssue.ts +92 -0
- package/src/models/ModelError.ts +74 -0
- package/src/models/Network.ts +112 -0
- package/src/models/OsInfo.ts +83 -0
- package/src/models/PresignedUrl.ts +74 -0
- package/src/models/SizingOverCommitRatio.ts +75 -0
- package/src/models/SizingResourceConsumption.ts +106 -0
- package/src/models/SizingResourceLimits.ts +75 -0
- package/src/models/Snapshot.ts +83 -0
- package/src/models/Source.ts +163 -0
- package/src/models/SourceCreate.ts +128 -0
- package/src/models/SourceInfra.ts +96 -0
- package/src/models/SourceUpdate.ts +127 -0
- package/src/models/Status.ts +81 -0
- package/src/models/UpdateInventory.ts +83 -0
- package/src/models/VCenter.ts +66 -0
- package/src/models/VMResourceBreakdown.ts +110 -0
- package/src/models/VMs.ts +255 -0
- package/src/models/VmNetwork.ts +73 -0
- package/src/models/index.ts +43 -0
- package/src/runtime.ts +432 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration Planner API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: undefined
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Snapshot } from './Snapshot.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Assessment
|
|
17
|
+
*/
|
|
18
|
+
export interface Assessment {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof Assessment
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Assessment
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* Owner's first name
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof Assessment
|
|
35
|
+
*/
|
|
36
|
+
ownerFirstName?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Owner's last name
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof Assessment
|
|
41
|
+
*/
|
|
42
|
+
ownerLastName?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {AssessmentSourceTypeEnum}
|
|
46
|
+
* @memberof Assessment
|
|
47
|
+
*/
|
|
48
|
+
sourceType: AssessmentSourceTypeEnum;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof Assessment
|
|
53
|
+
*/
|
|
54
|
+
sourceId?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof Assessment
|
|
59
|
+
*/
|
|
60
|
+
createdAt: Date;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Array<Snapshot>}
|
|
64
|
+
* @memberof Assessment
|
|
65
|
+
*/
|
|
66
|
+
snapshots: Array<Snapshot>;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export declare const AssessmentSourceTypeEnum: {
|
|
72
|
+
readonly Inventory: "inventory";
|
|
73
|
+
readonly Rvtools: "rvtools";
|
|
74
|
+
readonly Source: "source";
|
|
75
|
+
};
|
|
76
|
+
export type AssessmentSourceTypeEnum = typeof AssessmentSourceTypeEnum[keyof typeof AssessmentSourceTypeEnum];
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the Assessment interface.
|
|
79
|
+
*/
|
|
80
|
+
export declare function instanceOfAssessment(value: object): value is Assessment;
|
|
81
|
+
export declare function AssessmentFromJSON(json: any): Assessment;
|
|
82
|
+
export declare function AssessmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Assessment;
|
|
83
|
+
export declare function AssessmentToJSON(json: any): Assessment;
|
|
84
|
+
export declare function AssessmentToJSONTyped(value?: Assessment | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Migration Planner API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: undefined
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AssessmentSourceTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfAssessment = instanceOfAssessment;
|
|
18
|
+
exports.AssessmentFromJSON = AssessmentFromJSON;
|
|
19
|
+
exports.AssessmentFromJSONTyped = AssessmentFromJSONTyped;
|
|
20
|
+
exports.AssessmentToJSON = AssessmentToJSON;
|
|
21
|
+
exports.AssessmentToJSONTyped = AssessmentToJSONTyped;
|
|
22
|
+
const Snapshot_js_1 = require("./Snapshot.js");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AssessmentSourceTypeEnum = {
|
|
27
|
+
Inventory: 'inventory',
|
|
28
|
+
Rvtools: 'rvtools',
|
|
29
|
+
Source: 'source'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the Assessment interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfAssessment(value) {
|
|
35
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('sourceType' in value) || value['sourceType'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('snapshots' in value) || value['snapshots'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
function AssessmentFromJSON(json) {
|
|
48
|
+
return AssessmentFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function AssessmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': json['id'],
|
|
56
|
+
'name': json['name'],
|
|
57
|
+
'ownerFirstName': json['ownerFirstName'] == null ? undefined : json['ownerFirstName'],
|
|
58
|
+
'ownerLastName': json['ownerLastName'] == null ? undefined : json['ownerLastName'],
|
|
59
|
+
'sourceType': json['sourceType'],
|
|
60
|
+
'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
|
|
61
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
62
|
+
'snapshots': (json['snapshots'].map(Snapshot_js_1.SnapshotFromJSON)),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function AssessmentToJSON(json) {
|
|
66
|
+
return AssessmentToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function AssessmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'id': value['id'],
|
|
74
|
+
'name': value['name'],
|
|
75
|
+
'ownerFirstName': value['ownerFirstName'],
|
|
76
|
+
'ownerLastName': value['ownerLastName'],
|
|
77
|
+
'sourceType': value['sourceType'],
|
|
78
|
+
'sourceId': value['sourceId'],
|
|
79
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
80
|
+
'snapshots': (value['snapshots'].map(Snapshot_js_1.SnapshotToJSON)),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration Planner API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: undefined
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Inventory } from './Inventory.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AssessmentForm
|
|
17
|
+
*/
|
|
18
|
+
export interface AssessmentForm {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AssessmentForm
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* Source of the assessment data:
|
|
27
|
+
* * `inventory` - Manual inventory upload via JSON
|
|
28
|
+
* * `agent` - Collected by migration planner agent
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AssessmentForm
|
|
32
|
+
*/
|
|
33
|
+
sourceType: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AssessmentForm
|
|
38
|
+
*/
|
|
39
|
+
sourceId?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Inventory}
|
|
43
|
+
* @memberof AssessmentForm
|
|
44
|
+
*/
|
|
45
|
+
inventory?: Inventory;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the AssessmentForm interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfAssessmentForm(value: object): value is AssessmentForm;
|
|
51
|
+
export declare function AssessmentFormFromJSON(json: any): AssessmentForm;
|
|
52
|
+
export declare function AssessmentFormFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssessmentForm;
|
|
53
|
+
export declare function AssessmentFormToJSON(json: any): AssessmentForm;
|
|
54
|
+
export declare function AssessmentFormToJSONTyped(value?: AssessmentForm | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Migration Planner API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: undefined
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAssessmentForm = instanceOfAssessmentForm;
|
|
17
|
+
exports.AssessmentFormFromJSON = AssessmentFormFromJSON;
|
|
18
|
+
exports.AssessmentFormFromJSONTyped = AssessmentFormFromJSONTyped;
|
|
19
|
+
exports.AssessmentFormToJSON = AssessmentFormToJSON;
|
|
20
|
+
exports.AssessmentFormToJSONTyped = AssessmentFormToJSONTyped;
|
|
21
|
+
const Inventory_js_1 = require("./Inventory.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AssessmentForm interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAssessmentForm(value) {
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('sourceType' in value) || value['sourceType'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function AssessmentFormFromJSON(json) {
|
|
33
|
+
return AssessmentFormFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function AssessmentFormFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
'sourceType': json['sourceType'],
|
|
42
|
+
'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
|
|
43
|
+
'inventory': json['inventory'] == null ? undefined : (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function AssessmentFormToJSON(json) {
|
|
47
|
+
return AssessmentFormToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function AssessmentFormToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'name': value['name'],
|
|
55
|
+
'sourceType': value['sourceType'],
|
|
56
|
+
'sourceId': value['sourceId'],
|
|
57
|
+
'inventory': (0, Inventory_js_1.InventoryToJSON)(value['inventory']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration Planner API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: undefined
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Update form of the assessment.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AssessmentUpdate
|
|
16
|
+
*/
|
|
17
|
+
export interface AssessmentUpdate {
|
|
18
|
+
/**
|
|
19
|
+
* Name of the assessment
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AssessmentUpdate
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AssessmentUpdate interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAssessmentUpdate(value: object): value is AssessmentUpdate;
|
|
29
|
+
export declare function AssessmentUpdateFromJSON(json: any): AssessmentUpdate;
|
|
30
|
+
export declare function AssessmentUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssessmentUpdate;
|
|
31
|
+
export declare function AssessmentUpdateToJSON(json: any): AssessmentUpdate;
|
|
32
|
+
export declare function AssessmentUpdateToJSONTyped(value?: AssessmentUpdate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Migration Planner API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: undefined
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAssessmentUpdate = instanceOfAssessmentUpdate;
|
|
17
|
+
exports.AssessmentUpdateFromJSON = AssessmentUpdateFromJSON;
|
|
18
|
+
exports.AssessmentUpdateFromJSONTyped = AssessmentUpdateFromJSONTyped;
|
|
19
|
+
exports.AssessmentUpdateToJSON = AssessmentUpdateToJSON;
|
|
20
|
+
exports.AssessmentUpdateToJSONTyped = AssessmentUpdateToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AssessmentUpdate interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAssessmentUpdate(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function AssessmentUpdateFromJSON(json) {
|
|
28
|
+
return AssessmentUpdateFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function AssessmentUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function AssessmentUpdateToJSON(json) {
|
|
39
|
+
return AssessmentUpdateToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function AssessmentUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'name': value['name'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration Planner API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: undefined
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Request payload for calculating cluster requirements
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ClusterRequirementsRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ClusterRequirementsRequest {
|
|
18
|
+
/**
|
|
19
|
+
* ID of the cluster to calculate requirements for
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ClusterRequirementsRequest
|
|
22
|
+
*/
|
|
23
|
+
clusterId: string;
|
|
24
|
+
/**
|
|
25
|
+
* CPU over-commit ratio (e.g., "1:4")
|
|
26
|
+
* @type {ClusterRequirementsRequestCpuOverCommitRatioEnum}
|
|
27
|
+
* @memberof ClusterRequirementsRequest
|
|
28
|
+
*/
|
|
29
|
+
cpuOverCommitRatio: ClusterRequirementsRequestCpuOverCommitRatioEnum;
|
|
30
|
+
/**
|
|
31
|
+
* Memory over-commit ratio (e.g., "1:2")
|
|
32
|
+
* @type {ClusterRequirementsRequestMemoryOverCommitRatioEnum}
|
|
33
|
+
* @memberof ClusterRequirementsRequest
|
|
34
|
+
*/
|
|
35
|
+
memoryOverCommitRatio: ClusterRequirementsRequestMemoryOverCommitRatioEnum;
|
|
36
|
+
/**
|
|
37
|
+
* CPU cores per worker node
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ClusterRequirementsRequest
|
|
40
|
+
*/
|
|
41
|
+
workerNodeCPU: number;
|
|
42
|
+
/**
|
|
43
|
+
* Memory (GB) per worker node
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ClusterRequirementsRequest
|
|
46
|
+
*/
|
|
47
|
+
workerNodeMemory: number;
|
|
48
|
+
/**
|
|
49
|
+
* Number of CPU threads per worker node (for SMT calculation). If not provided, assumes no SMT (threads = cores). Must be >= workerNodeCPU
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ClusterRequirementsRequest
|
|
52
|
+
*/
|
|
53
|
+
workerNodeThreads?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Allow workload scheduling on control plane nodes
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof ClusterRequirementsRequest
|
|
58
|
+
*/
|
|
59
|
+
controlPlaneSchedulable?: boolean;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const ClusterRequirementsRequestCpuOverCommitRatioEnum: {
|
|
65
|
+
readonly CpuOneToOne: "1:1";
|
|
66
|
+
readonly CpuOneToTwo: "1:2";
|
|
67
|
+
readonly CpuOneToFour: "1:4";
|
|
68
|
+
readonly CpuOneToSix: "1:6";
|
|
69
|
+
};
|
|
70
|
+
export type ClusterRequirementsRequestCpuOverCommitRatioEnum = typeof ClusterRequirementsRequestCpuOverCommitRatioEnum[keyof typeof ClusterRequirementsRequestCpuOverCommitRatioEnum];
|
|
71
|
+
/**
|
|
72
|
+
* @export
|
|
73
|
+
*/
|
|
74
|
+
export declare const ClusterRequirementsRequestMemoryOverCommitRatioEnum: {
|
|
75
|
+
readonly MemoryOneToOne: "1:1";
|
|
76
|
+
readonly MemoryOneToTwo: "1:2";
|
|
77
|
+
readonly MemoryOneToFour: "1:4";
|
|
78
|
+
};
|
|
79
|
+
export type ClusterRequirementsRequestMemoryOverCommitRatioEnum = typeof ClusterRequirementsRequestMemoryOverCommitRatioEnum[keyof typeof ClusterRequirementsRequestMemoryOverCommitRatioEnum];
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the ClusterRequirementsRequest interface.
|
|
82
|
+
*/
|
|
83
|
+
export declare function instanceOfClusterRequirementsRequest(value: object): value is ClusterRequirementsRequest;
|
|
84
|
+
export declare function ClusterRequirementsRequestFromJSON(json: any): ClusterRequirementsRequest;
|
|
85
|
+
export declare function ClusterRequirementsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterRequirementsRequest;
|
|
86
|
+
export declare function ClusterRequirementsRequestToJSON(json: any): ClusterRequirementsRequest;
|
|
87
|
+
export declare function ClusterRequirementsRequestToJSONTyped(value?: ClusterRequirementsRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Migration Planner API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: undefined
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ClusterRequirementsRequestMemoryOverCommitRatioEnum = exports.ClusterRequirementsRequestCpuOverCommitRatioEnum = void 0;
|
|
17
|
+
exports.instanceOfClusterRequirementsRequest = instanceOfClusterRequirementsRequest;
|
|
18
|
+
exports.ClusterRequirementsRequestFromJSON = ClusterRequirementsRequestFromJSON;
|
|
19
|
+
exports.ClusterRequirementsRequestFromJSONTyped = ClusterRequirementsRequestFromJSONTyped;
|
|
20
|
+
exports.ClusterRequirementsRequestToJSON = ClusterRequirementsRequestToJSON;
|
|
21
|
+
exports.ClusterRequirementsRequestToJSONTyped = ClusterRequirementsRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ClusterRequirementsRequestCpuOverCommitRatioEnum = {
|
|
26
|
+
CpuOneToOne: '1:1',
|
|
27
|
+
CpuOneToTwo: '1:2',
|
|
28
|
+
CpuOneToFour: '1:4',
|
|
29
|
+
CpuOneToSix: '1:6'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
exports.ClusterRequirementsRequestMemoryOverCommitRatioEnum = {
|
|
35
|
+
MemoryOneToOne: '1:1',
|
|
36
|
+
MemoryOneToTwo: '1:2',
|
|
37
|
+
MemoryOneToFour: '1:4'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the ClusterRequirementsRequest interface.
|
|
41
|
+
*/
|
|
42
|
+
function instanceOfClusterRequirementsRequest(value) {
|
|
43
|
+
if (!('clusterId' in value) || value['clusterId'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('cpuOverCommitRatio' in value) || value['cpuOverCommitRatio'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('memoryOverCommitRatio' in value) || value['memoryOverCommitRatio'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('workerNodeCPU' in value) || value['workerNodeCPU'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('workerNodeMemory' in value) || value['workerNodeMemory'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
function ClusterRequirementsRequestFromJSON(json) {
|
|
56
|
+
return ClusterRequirementsRequestFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function ClusterRequirementsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
59
|
+
if (json == null) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'clusterId': json['clusterId'],
|
|
64
|
+
'cpuOverCommitRatio': json['cpuOverCommitRatio'],
|
|
65
|
+
'memoryOverCommitRatio': json['memoryOverCommitRatio'],
|
|
66
|
+
'workerNodeCPU': json['workerNodeCPU'],
|
|
67
|
+
'workerNodeMemory': json['workerNodeMemory'],
|
|
68
|
+
'workerNodeThreads': json['workerNodeThreads'] == null ? undefined : json['workerNodeThreads'],
|
|
69
|
+
'controlPlaneSchedulable': json['controlPlaneSchedulable'] == null ? undefined : json['controlPlaneSchedulable'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function ClusterRequirementsRequestToJSON(json) {
|
|
73
|
+
return ClusterRequirementsRequestToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
function ClusterRequirementsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
'clusterId': value['clusterId'],
|
|
81
|
+
'cpuOverCommitRatio': value['cpuOverCommitRatio'],
|
|
82
|
+
'memoryOverCommitRatio': value['memoryOverCommitRatio'],
|
|
83
|
+
'workerNodeCPU': value['workerNodeCPU'],
|
|
84
|
+
'workerNodeMemory': value['workerNodeMemory'],
|
|
85
|
+
'workerNodeThreads': value['workerNodeThreads'],
|
|
86
|
+
'controlPlaneSchedulable': value['controlPlaneSchedulable'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration Planner API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: undefined
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SizingResourceConsumption } from './SizingResourceConsumption.js';
|
|
13
|
+
import type { InventoryTotals } from './InventoryTotals.js';
|
|
14
|
+
import type { ClusterSizing } from './ClusterSizing.js';
|
|
15
|
+
/**
|
|
16
|
+
* Cluster requirements calculation results
|
|
17
|
+
* @export
|
|
18
|
+
* @interface ClusterRequirementsResponse
|
|
19
|
+
*/
|
|
20
|
+
export interface ClusterRequirementsResponse {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {ClusterSizing}
|
|
24
|
+
* @memberof ClusterRequirementsResponse
|
|
25
|
+
*/
|
|
26
|
+
clusterSizing: ClusterSizing;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {SizingResourceConsumption}
|
|
30
|
+
* @memberof ClusterRequirementsResponse
|
|
31
|
+
*/
|
|
32
|
+
resourceConsumption: SizingResourceConsumption;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {InventoryTotals}
|
|
36
|
+
* @memberof ClusterRequirementsResponse
|
|
37
|
+
*/
|
|
38
|
+
inventoryTotals: InventoryTotals;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the ClusterRequirementsResponse interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfClusterRequirementsResponse(value: object): value is ClusterRequirementsResponse;
|
|
44
|
+
export declare function ClusterRequirementsResponseFromJSON(json: any): ClusterRequirementsResponse;
|
|
45
|
+
export declare function ClusterRequirementsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterRequirementsResponse;
|
|
46
|
+
export declare function ClusterRequirementsResponseToJSON(json: any): ClusterRequirementsResponse;
|
|
47
|
+
export declare function ClusterRequirementsResponseToJSONTyped(value?: ClusterRequirementsResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Migration Planner API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: undefined
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfClusterRequirementsResponse = instanceOfClusterRequirementsResponse;
|
|
17
|
+
exports.ClusterRequirementsResponseFromJSON = ClusterRequirementsResponseFromJSON;
|
|
18
|
+
exports.ClusterRequirementsResponseFromJSONTyped = ClusterRequirementsResponseFromJSONTyped;
|
|
19
|
+
exports.ClusterRequirementsResponseToJSON = ClusterRequirementsResponseToJSON;
|
|
20
|
+
exports.ClusterRequirementsResponseToJSONTyped = ClusterRequirementsResponseToJSONTyped;
|
|
21
|
+
const SizingResourceConsumption_js_1 = require("./SizingResourceConsumption.js");
|
|
22
|
+
const InventoryTotals_js_1 = require("./InventoryTotals.js");
|
|
23
|
+
const ClusterSizing_js_1 = require("./ClusterSizing.js");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the ClusterRequirementsResponse interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfClusterRequirementsResponse(value) {
|
|
28
|
+
if (!('clusterSizing' in value) || value['clusterSizing'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('resourceConsumption' in value) || value['resourceConsumption'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('inventoryTotals' in value) || value['inventoryTotals'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function ClusterRequirementsResponseFromJSON(json) {
|
|
37
|
+
return ClusterRequirementsResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function ClusterRequirementsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'clusterSizing': (0, ClusterSizing_js_1.ClusterSizingFromJSON)(json['clusterSizing']),
|
|
45
|
+
'resourceConsumption': (0, SizingResourceConsumption_js_1.SizingResourceConsumptionFromJSON)(json['resourceConsumption']),
|
|
46
|
+
'inventoryTotals': (0, InventoryTotals_js_1.InventoryTotalsFromJSON)(json['inventoryTotals']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function ClusterRequirementsResponseToJSON(json) {
|
|
50
|
+
return ClusterRequirementsResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ClusterRequirementsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'clusterSizing': (0, ClusterSizing_js_1.ClusterSizingToJSON)(value['clusterSizing']),
|
|
58
|
+
'resourceConsumption': (0, SizingResourceConsumption_js_1.SizingResourceConsumptionToJSON)(value['resourceConsumption']),
|
|
59
|
+
'inventoryTotals': (0, InventoryTotals_js_1.InventoryTotalsToJSON)(value['inventoryTotals']),
|
|
60
|
+
};
|
|
61
|
+
}
|