@openshift-migration-advisor/planner-sdk 0.4.0-2926c334319d
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,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: undefined
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { SnapshotFromJSON, SnapshotToJSON, } from './Snapshot.js';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const AssessmentSourceTypeEnum = {
|
|
19
|
+
Inventory: 'inventory',
|
|
20
|
+
Rvtools: 'rvtools',
|
|
21
|
+
Source: 'source'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the Assessment interface.
|
|
25
|
+
*/
|
|
26
|
+
export function instanceOfAssessment(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('sourceType' in value) || value['sourceType'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('snapshots' in value) || value['snapshots'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
export function AssessmentFromJSON(json) {
|
|
40
|
+
return AssessmentFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function AssessmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'],
|
|
48
|
+
'name': json['name'],
|
|
49
|
+
'ownerFirstName': json['ownerFirstName'] == null ? undefined : json['ownerFirstName'],
|
|
50
|
+
'ownerLastName': json['ownerLastName'] == null ? undefined : json['ownerLastName'],
|
|
51
|
+
'sourceType': json['sourceType'],
|
|
52
|
+
'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
|
|
53
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
54
|
+
'snapshots': (json['snapshots'].map(SnapshotFromJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export function AssessmentToJSON(json) {
|
|
58
|
+
return AssessmentToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
export function AssessmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': value['id'],
|
|
66
|
+
'name': value['name'],
|
|
67
|
+
'ownerFirstName': value['ownerFirstName'],
|
|
68
|
+
'ownerLastName': value['ownerLastName'],
|
|
69
|
+
'sourceType': value['sourceType'],
|
|
70
|
+
'sourceId': value['sourceId'],
|
|
71
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
72
|
+
'snapshots': (value['snapshots'].map(SnapshotToJSON)),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -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,52 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: undefined
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the AssessmentForm interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAssessmentForm(value) {
|
|
19
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('sourceType' in value) || value['sourceType'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function AssessmentFormFromJSON(json) {
|
|
26
|
+
return AssessmentFormFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function AssessmentFormFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'name': json['name'],
|
|
34
|
+
'sourceType': json['sourceType'],
|
|
35
|
+
'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
|
|
36
|
+
'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function AssessmentFormToJSON(json) {
|
|
40
|
+
return AssessmentFormToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function AssessmentFormToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'name': value['name'],
|
|
48
|
+
'sourceType': value['sourceType'],
|
|
49
|
+
'sourceId': value['sourceId'],
|
|
50
|
+
'inventory': InventoryToJSON(value['inventory']),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -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,41 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: undefined
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the AssessmentUpdate interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAssessmentUpdate(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function AssessmentUpdateFromJSON(json) {
|
|
21
|
+
return AssessmentUpdateFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function AssessmentUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function AssessmentUpdateToJSON(json) {
|
|
32
|
+
return AssessmentUpdateToJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function AssessmentUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'name': value['name'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -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,80 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: undefined
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const ClusterRequirementsRequestCpuOverCommitRatioEnum = {
|
|
18
|
+
CpuOneToOne: '1:1',
|
|
19
|
+
CpuOneToTwo: '1:2',
|
|
20
|
+
CpuOneToFour: '1:4',
|
|
21
|
+
CpuOneToSix: '1:6'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
export const ClusterRequirementsRequestMemoryOverCommitRatioEnum = {
|
|
27
|
+
MemoryOneToOne: '1:1',
|
|
28
|
+
MemoryOneToTwo: '1:2',
|
|
29
|
+
MemoryOneToFour: '1:4'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ClusterRequirementsRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export function instanceOfClusterRequirementsRequest(value) {
|
|
35
|
+
if (!('clusterId' in value) || value['clusterId'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('cpuOverCommitRatio' in value) || value['cpuOverCommitRatio'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('memoryOverCommitRatio' in value) || value['memoryOverCommitRatio'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('workerNodeCPU' in value) || value['workerNodeCPU'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('workerNodeMemory' in value) || value['workerNodeMemory'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
export function ClusterRequirementsRequestFromJSON(json) {
|
|
48
|
+
return ClusterRequirementsRequestFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
export function ClusterRequirementsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'clusterId': json['clusterId'],
|
|
56
|
+
'cpuOverCommitRatio': json['cpuOverCommitRatio'],
|
|
57
|
+
'memoryOverCommitRatio': json['memoryOverCommitRatio'],
|
|
58
|
+
'workerNodeCPU': json['workerNodeCPU'],
|
|
59
|
+
'workerNodeMemory': json['workerNodeMemory'],
|
|
60
|
+
'workerNodeThreads': json['workerNodeThreads'] == null ? undefined : json['workerNodeThreads'],
|
|
61
|
+
'controlPlaneSchedulable': json['controlPlaneSchedulable'] == null ? undefined : json['controlPlaneSchedulable'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export function ClusterRequirementsRequestToJSON(json) {
|
|
65
|
+
return ClusterRequirementsRequestToJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
export function ClusterRequirementsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
'clusterId': value['clusterId'],
|
|
73
|
+
'cpuOverCommitRatio': value['cpuOverCommitRatio'],
|
|
74
|
+
'memoryOverCommitRatio': value['memoryOverCommitRatio'],
|
|
75
|
+
'workerNodeCPU': value['workerNodeCPU'],
|
|
76
|
+
'workerNodeMemory': value['workerNodeMemory'],
|
|
77
|
+
'workerNodeThreads': value['workerNodeThreads'],
|
|
78
|
+
'controlPlaneSchedulable': value['controlPlaneSchedulable'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
@@ -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,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: undefined
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { SizingResourceConsumptionFromJSON, SizingResourceConsumptionToJSON, } from './SizingResourceConsumption.js';
|
|
15
|
+
import { InventoryTotalsFromJSON, InventoryTotalsToJSON, } from './InventoryTotals.js';
|
|
16
|
+
import { ClusterSizingFromJSON, ClusterSizingToJSON, } from './ClusterSizing.js';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the ClusterRequirementsResponse interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfClusterRequirementsResponse(value) {
|
|
21
|
+
if (!('clusterSizing' in value) || value['clusterSizing'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('resourceConsumption' in value) || value['resourceConsumption'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('inventoryTotals' in value) || value['inventoryTotals'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function ClusterRequirementsResponseFromJSON(json) {
|
|
30
|
+
return ClusterRequirementsResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function ClusterRequirementsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'clusterSizing': ClusterSizingFromJSON(json['clusterSizing']),
|
|
38
|
+
'resourceConsumption': SizingResourceConsumptionFromJSON(json['resourceConsumption']),
|
|
39
|
+
'inventoryTotals': InventoryTotalsFromJSON(json['inventoryTotals']),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function ClusterRequirementsResponseToJSON(json) {
|
|
43
|
+
return ClusterRequirementsResponseToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function ClusterRequirementsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'clusterSizing': ClusterSizingToJSON(value['clusterSizing']),
|
|
51
|
+
'resourceConsumption': SizingResourceConsumptionToJSON(value['resourceConsumption']),
|
|
52
|
+
'inventoryTotals': InventoryTotalsToJSON(value['inventoryTotals']),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
* Overall cluster sizing summary
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ClusterSizing
|
|
16
|
+
*/
|
|
17
|
+
export interface ClusterSizing {
|
|
18
|
+
/**
|
|
19
|
+
* Total number of nodes (worker + control plane)
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ClusterSizing
|
|
22
|
+
*/
|
|
23
|
+
totalNodes: number;
|
|
24
|
+
/**
|
|
25
|
+
* Number of worker nodes
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ClusterSizing
|
|
28
|
+
*/
|
|
29
|
+
workerNodes: number;
|
|
30
|
+
/**
|
|
31
|
+
* Number of control plane nodes
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ClusterSizing
|
|
34
|
+
*/
|
|
35
|
+
controlPlaneNodes: number;
|
|
36
|
+
/**
|
|
37
|
+
* Number of failover nodes added for availability
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ClusterSizing
|
|
40
|
+
*/
|
|
41
|
+
failoverNodes: number;
|
|
42
|
+
/**
|
|
43
|
+
* Total CPU cores across all nodes
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ClusterSizing
|
|
46
|
+
*/
|
|
47
|
+
totalCPU: number;
|
|
48
|
+
/**
|
|
49
|
+
* Total memory (GB) across all nodes
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ClusterSizing
|
|
52
|
+
*/
|
|
53
|
+
totalMemory: number;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the ClusterSizing interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfClusterSizing(value: object): value is ClusterSizing;
|
|
59
|
+
export declare function ClusterSizingFromJSON(json: any): ClusterSizing;
|
|
60
|
+
export declare function ClusterSizingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterSizing;
|
|
61
|
+
export declare function ClusterSizingToJSON(json: any): ClusterSizing;
|
|
62
|
+
export declare function ClusterSizingToJSONTyped(value?: ClusterSizing | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: undefined
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the ClusterSizing interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfClusterSizing(value) {
|
|
18
|
+
if (!('totalNodes' in value) || value['totalNodes'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('workerNodes' in value) || value['workerNodes'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('controlPlaneNodes' in value) || value['controlPlaneNodes'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('failoverNodes' in value) || value['failoverNodes'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('totalCPU' in value) || value['totalCPU'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('totalMemory' in value) || value['totalMemory'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function ClusterSizingFromJSON(json) {
|
|
33
|
+
return ClusterSizingFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function ClusterSizingFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'totalNodes': json['totalNodes'],
|
|
41
|
+
'workerNodes': json['workerNodes'],
|
|
42
|
+
'controlPlaneNodes': json['controlPlaneNodes'],
|
|
43
|
+
'failoverNodes': json['failoverNodes'],
|
|
44
|
+
'totalCPU': json['totalCPU'],
|
|
45
|
+
'totalMemory': json['totalMemory'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export function ClusterSizingToJSON(json) {
|
|
49
|
+
return ClusterSizingToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
export function ClusterSizingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'totalNodes': value['totalNodes'],
|
|
57
|
+
'workerNodes': value['workerNodes'],
|
|
58
|
+
'controlPlaneNodes': value['controlPlaneNodes'],
|
|
59
|
+
'failoverNodes': value['failoverNodes'],
|
|
60
|
+
'totalCPU': value['totalCPU'],
|
|
61
|
+
'totalMemory': value['totalMemory'],
|
|
62
|
+
};
|
|
63
|
+
}
|