@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,81 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AgentProxy
|
|
20
|
+
*/
|
|
21
|
+
export interface AgentProxy {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AgentProxy
|
|
26
|
+
*/
|
|
27
|
+
httpUrl?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AgentProxy
|
|
32
|
+
*/
|
|
33
|
+
httpsUrl?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AgentProxy
|
|
38
|
+
*/
|
|
39
|
+
noProxy?: string | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the AgentProxy interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfAgentProxy(value: object): value is AgentProxy {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AgentProxyFromJSON(json: any): AgentProxy {
|
|
50
|
+
return AgentProxyFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function AgentProxyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentProxy {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'httpUrl': json['httpUrl'] == null ? undefined : json['httpUrl'],
|
|
60
|
+
'httpsUrl': json['httpsUrl'] == null ? undefined : json['httpsUrl'],
|
|
61
|
+
'noProxy': json['noProxy'] == null ? undefined : json['noProxy'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function AgentProxyToJSON(json: any): AgentProxy {
|
|
66
|
+
return AgentProxyToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function AgentProxyToJSONTyped(value?: AgentProxy | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'httpUrl': value['httpUrl'],
|
|
77
|
+
'httpsUrl': value['httpsUrl'],
|
|
78
|
+
'noProxy': value['noProxy'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,146 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { Snapshot } from './Snapshot.js';
|
|
17
|
+
import {
|
|
18
|
+
SnapshotFromJSON,
|
|
19
|
+
SnapshotFromJSONTyped,
|
|
20
|
+
SnapshotToJSON,
|
|
21
|
+
SnapshotToJSONTyped,
|
|
22
|
+
} from './Snapshot.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface Assessment
|
|
28
|
+
*/
|
|
29
|
+
export interface Assessment {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Assessment
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Assessment
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
* Owner's first name
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof Assessment
|
|
46
|
+
*/
|
|
47
|
+
ownerFirstName?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Owner's last name
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof Assessment
|
|
52
|
+
*/
|
|
53
|
+
ownerLastName?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {AssessmentSourceTypeEnum}
|
|
57
|
+
* @memberof Assessment
|
|
58
|
+
*/
|
|
59
|
+
sourceType: AssessmentSourceTypeEnum;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof Assessment
|
|
64
|
+
*/
|
|
65
|
+
sourceId?: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof Assessment
|
|
70
|
+
*/
|
|
71
|
+
createdAt: Date;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Array<Snapshot>}
|
|
75
|
+
* @memberof Assessment
|
|
76
|
+
*/
|
|
77
|
+
snapshots: Array<Snapshot>;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @export
|
|
83
|
+
*/
|
|
84
|
+
export const AssessmentSourceTypeEnum = {
|
|
85
|
+
Inventory: 'inventory',
|
|
86
|
+
Rvtools: 'rvtools',
|
|
87
|
+
Source: 'source'
|
|
88
|
+
} as const;
|
|
89
|
+
export type AssessmentSourceTypeEnum = typeof AssessmentSourceTypeEnum[keyof typeof AssessmentSourceTypeEnum];
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Check if a given object implements the Assessment interface.
|
|
94
|
+
*/
|
|
95
|
+
export function instanceOfAssessment(value: object): value is Assessment {
|
|
96
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
97
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
98
|
+
if (!('sourceType' in value) || value['sourceType'] === undefined) return false;
|
|
99
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
100
|
+
if (!('snapshots' in value) || value['snapshots'] === undefined) return false;
|
|
101
|
+
return true;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function AssessmentFromJSON(json: any): Assessment {
|
|
105
|
+
return AssessmentFromJSONTyped(json, false);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function AssessmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Assessment {
|
|
109
|
+
if (json == null) {
|
|
110
|
+
return json;
|
|
111
|
+
}
|
|
112
|
+
return {
|
|
113
|
+
|
|
114
|
+
'id': json['id'],
|
|
115
|
+
'name': json['name'],
|
|
116
|
+
'ownerFirstName': json['ownerFirstName'] == null ? undefined : json['ownerFirstName'],
|
|
117
|
+
'ownerLastName': json['ownerLastName'] == null ? undefined : json['ownerLastName'],
|
|
118
|
+
'sourceType': json['sourceType'],
|
|
119
|
+
'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
|
|
120
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
121
|
+
'snapshots': ((json['snapshots'] as Array<any>).map(SnapshotFromJSON)),
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function AssessmentToJSON(json: any): Assessment {
|
|
126
|
+
return AssessmentToJSONTyped(json, false);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function AssessmentToJSONTyped(value?: Assessment | null, ignoreDiscriminator: boolean = false): any {
|
|
130
|
+
if (value == null) {
|
|
131
|
+
return value;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return {
|
|
135
|
+
|
|
136
|
+
'id': value['id'],
|
|
137
|
+
'name': value['name'],
|
|
138
|
+
'ownerFirstName': value['ownerFirstName'],
|
|
139
|
+
'ownerLastName': value['ownerLastName'],
|
|
140
|
+
'sourceType': value['sourceType'],
|
|
141
|
+
'sourceId': value['sourceId'],
|
|
142
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
143
|
+
'snapshots': ((value['snapshots'] as Array<any>).map(SnapshotToJSON)),
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { Inventory } from './Inventory.js';
|
|
17
|
+
import {
|
|
18
|
+
InventoryFromJSON,
|
|
19
|
+
InventoryFromJSONTyped,
|
|
20
|
+
InventoryToJSON,
|
|
21
|
+
InventoryToJSONTyped,
|
|
22
|
+
} from './Inventory.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AssessmentForm
|
|
28
|
+
*/
|
|
29
|
+
export interface AssessmentForm {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AssessmentForm
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* Source of the assessment data:
|
|
38
|
+
* * `inventory` - Manual inventory upload via JSON
|
|
39
|
+
* * `agent` - Collected by migration planner agent
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof AssessmentForm
|
|
43
|
+
*/
|
|
44
|
+
sourceType: string;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof AssessmentForm
|
|
49
|
+
*/
|
|
50
|
+
sourceId?: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {Inventory}
|
|
54
|
+
* @memberof AssessmentForm
|
|
55
|
+
*/
|
|
56
|
+
inventory?: Inventory;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the AssessmentForm interface.
|
|
61
|
+
*/
|
|
62
|
+
export function instanceOfAssessmentForm(value: object): value is AssessmentForm {
|
|
63
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
64
|
+
if (!('sourceType' in value) || value['sourceType'] === undefined) return false;
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function AssessmentFormFromJSON(json: any): AssessmentForm {
|
|
69
|
+
return AssessmentFormFromJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function AssessmentFormFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssessmentForm {
|
|
73
|
+
if (json == null) {
|
|
74
|
+
return json;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'name': json['name'],
|
|
79
|
+
'sourceType': json['sourceType'],
|
|
80
|
+
'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
|
|
81
|
+
'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function AssessmentFormToJSON(json: any): AssessmentForm {
|
|
86
|
+
return AssessmentFormToJSONTyped(json, false);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function AssessmentFormToJSONTyped(value?: AssessmentForm | null, ignoreDiscriminator: boolean = false): any {
|
|
90
|
+
if (value == null) {
|
|
91
|
+
return value;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
'name': value['name'],
|
|
97
|
+
'sourceType': value['sourceType'],
|
|
98
|
+
'sourceId': value['sourceId'],
|
|
99
|
+
'inventory': InventoryToJSON(value['inventory']),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
* Update form of the assessment.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AssessmentUpdate
|
|
20
|
+
*/
|
|
21
|
+
export interface AssessmentUpdate {
|
|
22
|
+
/**
|
|
23
|
+
* Name of the assessment
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AssessmentUpdate
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AssessmentUpdate interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfAssessmentUpdate(value: object): value is AssessmentUpdate {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function AssessmentUpdateFromJSON(json: any): AssessmentUpdate {
|
|
38
|
+
return AssessmentUpdateFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function AssessmentUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssessmentUpdate {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function AssessmentUpdateToJSON(json: any): AssessmentUpdate {
|
|
52
|
+
return AssessmentUpdateToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function AssessmentUpdateToJSONTyped(value?: AssessmentUpdate | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'name': value['name'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,141 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
* Request payload for calculating cluster requirements
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ClusterRequirementsRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ClusterRequirementsRequest {
|
|
22
|
+
/**
|
|
23
|
+
* ID of the cluster to calculate requirements for
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ClusterRequirementsRequest
|
|
26
|
+
*/
|
|
27
|
+
clusterId: string;
|
|
28
|
+
/**
|
|
29
|
+
* CPU over-commit ratio (e.g., "1:4")
|
|
30
|
+
* @type {ClusterRequirementsRequestCpuOverCommitRatioEnum}
|
|
31
|
+
* @memberof ClusterRequirementsRequest
|
|
32
|
+
*/
|
|
33
|
+
cpuOverCommitRatio: ClusterRequirementsRequestCpuOverCommitRatioEnum;
|
|
34
|
+
/**
|
|
35
|
+
* Memory over-commit ratio (e.g., "1:2")
|
|
36
|
+
* @type {ClusterRequirementsRequestMemoryOverCommitRatioEnum}
|
|
37
|
+
* @memberof ClusterRequirementsRequest
|
|
38
|
+
*/
|
|
39
|
+
memoryOverCommitRatio: ClusterRequirementsRequestMemoryOverCommitRatioEnum;
|
|
40
|
+
/**
|
|
41
|
+
* CPU cores per worker node
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof ClusterRequirementsRequest
|
|
44
|
+
*/
|
|
45
|
+
workerNodeCPU: number;
|
|
46
|
+
/**
|
|
47
|
+
* Memory (GB) per worker node
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof ClusterRequirementsRequest
|
|
50
|
+
*/
|
|
51
|
+
workerNodeMemory: number;
|
|
52
|
+
/**
|
|
53
|
+
* Number of CPU threads per worker node (for SMT calculation). If not provided, assumes no SMT (threads = cores). Must be >= workerNodeCPU
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof ClusterRequirementsRequest
|
|
56
|
+
*/
|
|
57
|
+
workerNodeThreads?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Allow workload scheduling on control plane nodes
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @memberof ClusterRequirementsRequest
|
|
62
|
+
*/
|
|
63
|
+
controlPlaneSchedulable?: boolean;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export const ClusterRequirementsRequestCpuOverCommitRatioEnum = {
|
|
71
|
+
CpuOneToOne: '1:1',
|
|
72
|
+
CpuOneToTwo: '1:2',
|
|
73
|
+
CpuOneToFour: '1:4',
|
|
74
|
+
CpuOneToSix: '1:6'
|
|
75
|
+
} as const;
|
|
76
|
+
export type ClusterRequirementsRequestCpuOverCommitRatioEnum = typeof ClusterRequirementsRequestCpuOverCommitRatioEnum[keyof typeof ClusterRequirementsRequestCpuOverCommitRatioEnum];
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @export
|
|
80
|
+
*/
|
|
81
|
+
export const ClusterRequirementsRequestMemoryOverCommitRatioEnum = {
|
|
82
|
+
MemoryOneToOne: '1:1',
|
|
83
|
+
MemoryOneToTwo: '1:2',
|
|
84
|
+
MemoryOneToFour: '1:4'
|
|
85
|
+
} as const;
|
|
86
|
+
export type ClusterRequirementsRequestMemoryOverCommitRatioEnum = typeof ClusterRequirementsRequestMemoryOverCommitRatioEnum[keyof typeof ClusterRequirementsRequestMemoryOverCommitRatioEnum];
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Check if a given object implements the ClusterRequirementsRequest interface.
|
|
91
|
+
*/
|
|
92
|
+
export function instanceOfClusterRequirementsRequest(value: object): value is ClusterRequirementsRequest {
|
|
93
|
+
if (!('clusterId' in value) || value['clusterId'] === undefined) return false;
|
|
94
|
+
if (!('cpuOverCommitRatio' in value) || value['cpuOverCommitRatio'] === undefined) return false;
|
|
95
|
+
if (!('memoryOverCommitRatio' in value) || value['memoryOverCommitRatio'] === undefined) return false;
|
|
96
|
+
if (!('workerNodeCPU' in value) || value['workerNodeCPU'] === undefined) return false;
|
|
97
|
+
if (!('workerNodeMemory' in value) || value['workerNodeMemory'] === undefined) return false;
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function ClusterRequirementsRequestFromJSON(json: any): ClusterRequirementsRequest {
|
|
102
|
+
return ClusterRequirementsRequestFromJSONTyped(json, false);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function ClusterRequirementsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterRequirementsRequest {
|
|
106
|
+
if (json == null) {
|
|
107
|
+
return json;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'clusterId': json['clusterId'],
|
|
112
|
+
'cpuOverCommitRatio': json['cpuOverCommitRatio'],
|
|
113
|
+
'memoryOverCommitRatio': json['memoryOverCommitRatio'],
|
|
114
|
+
'workerNodeCPU': json['workerNodeCPU'],
|
|
115
|
+
'workerNodeMemory': json['workerNodeMemory'],
|
|
116
|
+
'workerNodeThreads': json['workerNodeThreads'] == null ? undefined : json['workerNodeThreads'],
|
|
117
|
+
'controlPlaneSchedulable': json['controlPlaneSchedulable'] == null ? undefined : json['controlPlaneSchedulable'],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function ClusterRequirementsRequestToJSON(json: any): ClusterRequirementsRequest {
|
|
122
|
+
return ClusterRequirementsRequestToJSONTyped(json, false);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function ClusterRequirementsRequestToJSONTyped(value?: ClusterRequirementsRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
126
|
+
if (value == null) {
|
|
127
|
+
return value;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return {
|
|
131
|
+
|
|
132
|
+
'clusterId': value['clusterId'],
|
|
133
|
+
'cpuOverCommitRatio': value['cpuOverCommitRatio'],
|
|
134
|
+
'memoryOverCommitRatio': value['memoryOverCommitRatio'],
|
|
135
|
+
'workerNodeCPU': value['workerNodeCPU'],
|
|
136
|
+
'workerNodeMemory': value['workerNodeMemory'],
|
|
137
|
+
'workerNodeThreads': value['workerNodeThreads'],
|
|
138
|
+
'controlPlaneSchedulable': value['controlPlaneSchedulable'],
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
@@ -0,0 +1,106 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { SizingResourceConsumption } from './SizingResourceConsumption.js';
|
|
17
|
+
import {
|
|
18
|
+
SizingResourceConsumptionFromJSON,
|
|
19
|
+
SizingResourceConsumptionFromJSONTyped,
|
|
20
|
+
SizingResourceConsumptionToJSON,
|
|
21
|
+
SizingResourceConsumptionToJSONTyped,
|
|
22
|
+
} from './SizingResourceConsumption.js';
|
|
23
|
+
import type { InventoryTotals } from './InventoryTotals.js';
|
|
24
|
+
import {
|
|
25
|
+
InventoryTotalsFromJSON,
|
|
26
|
+
InventoryTotalsFromJSONTyped,
|
|
27
|
+
InventoryTotalsToJSON,
|
|
28
|
+
InventoryTotalsToJSONTyped,
|
|
29
|
+
} from './InventoryTotals.js';
|
|
30
|
+
import type { ClusterSizing } from './ClusterSizing.js';
|
|
31
|
+
import {
|
|
32
|
+
ClusterSizingFromJSON,
|
|
33
|
+
ClusterSizingFromJSONTyped,
|
|
34
|
+
ClusterSizingToJSON,
|
|
35
|
+
ClusterSizingToJSONTyped,
|
|
36
|
+
} from './ClusterSizing.js';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Cluster requirements calculation results
|
|
40
|
+
* @export
|
|
41
|
+
* @interface ClusterRequirementsResponse
|
|
42
|
+
*/
|
|
43
|
+
export interface ClusterRequirementsResponse {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {ClusterSizing}
|
|
47
|
+
* @memberof ClusterRequirementsResponse
|
|
48
|
+
*/
|
|
49
|
+
clusterSizing: ClusterSizing;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {SizingResourceConsumption}
|
|
53
|
+
* @memberof ClusterRequirementsResponse
|
|
54
|
+
*/
|
|
55
|
+
resourceConsumption: SizingResourceConsumption;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {InventoryTotals}
|
|
59
|
+
* @memberof ClusterRequirementsResponse
|
|
60
|
+
*/
|
|
61
|
+
inventoryTotals: InventoryTotals;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the ClusterRequirementsResponse interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfClusterRequirementsResponse(value: object): value is ClusterRequirementsResponse {
|
|
68
|
+
if (!('clusterSizing' in value) || value['clusterSizing'] === undefined) return false;
|
|
69
|
+
if (!('resourceConsumption' in value) || value['resourceConsumption'] === undefined) return false;
|
|
70
|
+
if (!('inventoryTotals' in value) || value['inventoryTotals'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ClusterRequirementsResponseFromJSON(json: any): ClusterRequirementsResponse {
|
|
75
|
+
return ClusterRequirementsResponseFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ClusterRequirementsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterRequirementsResponse {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'clusterSizing': ClusterSizingFromJSON(json['clusterSizing']),
|
|
85
|
+
'resourceConsumption': SizingResourceConsumptionFromJSON(json['resourceConsumption']),
|
|
86
|
+
'inventoryTotals': InventoryTotalsFromJSON(json['inventoryTotals']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ClusterRequirementsResponseToJSON(json: any): ClusterRequirementsResponse {
|
|
91
|
+
return ClusterRequirementsResponseToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ClusterRequirementsResponseToJSONTyped(value?: ClusterRequirementsResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'clusterSizing': ClusterSizingToJSON(value['clusterSizing']),
|
|
102
|
+
'resourceConsumption': SizingResourceConsumptionToJSON(value['resourceConsumption']),
|
|
103
|
+
'inventoryTotals': InventoryTotalsToJSON(value['inventoryTotals']),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|