@migration-planner-ui/api-client 0.0.27 → 0.0.28

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.
@@ -12,6 +12,7 @@ src/models/AssessmentForm.ts
12
12
  src/models/AssessmentUpdate.ts
13
13
  src/models/Datastore.ts
14
14
  src/models/DiskSizeTierSummary.ts
15
+ src/models/DiskTypeSummary.ts
15
16
  src/models/Histogram.ts
16
17
  src/models/Host.ts
17
18
  src/models/Info.ts
@@ -0,0 +1,37 @@
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
+ *
14
+ * @export
15
+ * @interface DiskTypeSummary
16
+ */
17
+ export interface DiskTypeSummary {
18
+ /**
19
+ * Number of VMs that have at least one disk of this type
20
+ * @type {number}
21
+ * @memberof DiskTypeSummary
22
+ */
23
+ vmCount: number;
24
+ /**
25
+ * Total disk size in TB for this disk type
26
+ * @type {number}
27
+ * @memberof DiskTypeSummary
28
+ */
29
+ totalSizeTB: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the DiskTypeSummary interface.
33
+ */
34
+ export declare function instanceOfDiskTypeSummary(value: object): value is DiskTypeSummary;
35
+ export declare function DiskTypeSummaryFromJSON(json: any): DiskTypeSummary;
36
+ export declare function DiskTypeSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiskTypeSummary;
37
+ export declare function DiskTypeSummaryToJSON(value?: DiskTypeSummary | null): any;
@@ -0,0 +1,44 @@
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 DiskTypeSummary interface.
16
+ */
17
+ export function instanceOfDiskTypeSummary(value) {
18
+ if (!('vmCount' in value) || value['vmCount'] === undefined)
19
+ return false;
20
+ if (!('totalSizeTB' in value) || value['totalSizeTB'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function DiskTypeSummaryFromJSON(json) {
25
+ return DiskTypeSummaryFromJSONTyped(json, false);
26
+ }
27
+ export function DiskTypeSummaryFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'vmCount': json['vmCount'],
33
+ 'totalSizeTB': json['totalSizeTB'],
34
+ };
35
+ }
36
+ export function DiskTypeSummaryToJSON(value) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'vmCount': value['vmCount'],
42
+ 'totalSizeTB': value['totalSizeTB'],
43
+ };
44
+ }
@@ -27,6 +27,12 @@ export interface OsInfo {
27
27
  * @memberof OsInfo
28
28
  */
29
29
  supported: boolean;
30
+ /**
31
+ * Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
32
+ * @type {string}
33
+ * @memberof OsInfo
34
+ */
35
+ upgradeRecommendation?: string;
30
36
  }
31
37
  /**
32
38
  * Check if a given object implements the OsInfo interface.
@@ -31,6 +31,7 @@ export function OsInfoFromJSONTyped(json, ignoreDiscriminator) {
31
31
  return {
32
32
  'count': json['count'],
33
33
  'supported': json['supported'],
34
+ 'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
34
35
  };
35
36
  }
36
37
  export function OsInfoToJSON(value) {
@@ -40,5 +41,6 @@ export function OsInfoToJSON(value) {
40
41
  return {
41
42
  'count': value['count'],
42
43
  'supported': value['supported'],
44
+ 'upgradeRecommendation': value['upgradeRecommendation'],
43
45
  };
44
46
  }
@@ -12,6 +12,7 @@
12
12
  import type { MigrationIssue } from './MigrationIssue';
13
13
  import type { OsInfo } from './OsInfo';
14
14
  import type { DiskSizeTierSummary } from './DiskSizeTierSummary';
15
+ import type { DiskTypeSummary } from './DiskTypeSummary';
15
16
  import type { VMResourceBreakdown } from './VMResourceBreakdown';
16
17
  /**
17
18
  *
@@ -51,6 +52,14 @@ export interface VMs {
51
52
  diskSizeTier?: {
52
53
  [key: string]: DiskSizeTierSummary;
53
54
  };
55
+ /**
56
+ *
57
+ * @type {{ [key: string]: DiskTypeSummary; }}
58
+ * @memberof VMs
59
+ */
60
+ diskTypes?: {
61
+ [key: string]: DiskTypeSummary;
62
+ };
54
63
  /**
55
64
  *
56
65
  * @type {VMResourceBreakdown}
@@ -15,6 +15,7 @@ import { mapValues } from '../runtime';
15
15
  import { MigrationIssueFromJSON, MigrationIssueToJSON, } from './MigrationIssue';
16
16
  import { OsInfoFromJSON, OsInfoToJSON, } from './OsInfo';
17
17
  import { DiskSizeTierSummaryFromJSON, DiskSizeTierSummaryToJSON, } from './DiskSizeTierSummary';
18
+ import { DiskTypeSummaryFromJSON, DiskTypeSummaryToJSON, } from './DiskTypeSummary';
18
19
  import { VMResourceBreakdownFromJSON, VMResourceBreakdownToJSON, } from './VMResourceBreakdown';
19
20
  /**
20
21
  * Check if a given object implements the VMs interface.
@@ -55,6 +56,7 @@ export function VMsFromJSONTyped(json, ignoreDiscriminator) {
55
56
  'totalMigratableWithWarnings': json['totalMigratableWithWarnings'] == null ? undefined : json['totalMigratableWithWarnings'],
56
57
  'cpuCores': VMResourceBreakdownFromJSON(json['cpuCores']),
57
58
  'diskSizeTier': json['diskSizeTier'] == null ? undefined : (mapValues(json['diskSizeTier'], DiskSizeTierSummaryFromJSON)),
59
+ 'diskTypes': json['diskTypes'] == null ? undefined : (mapValues(json['diskTypes'], DiskTypeSummaryFromJSON)),
58
60
  'ramGB': VMResourceBreakdownFromJSON(json['ramGB']),
59
61
  'diskGB': VMResourceBreakdownFromJSON(json['diskGB']),
60
62
  'diskCount': VMResourceBreakdownFromJSON(json['diskCount']),
@@ -76,6 +78,7 @@ export function VMsToJSON(value) {
76
78
  'totalMigratableWithWarnings': value['totalMigratableWithWarnings'],
77
79
  'cpuCores': VMResourceBreakdownToJSON(value['cpuCores']),
78
80
  'diskSizeTier': value['diskSizeTier'] == null ? undefined : (mapValues(value['diskSizeTier'], DiskSizeTierSummaryToJSON)),
81
+ 'diskTypes': value['diskTypes'] == null ? undefined : (mapValues(value['diskTypes'], DiskTypeSummaryToJSON)),
79
82
  'ramGB': VMResourceBreakdownToJSON(value['ramGB']),
80
83
  'diskGB': VMResourceBreakdownToJSON(value['diskGB']),
81
84
  'diskCount': VMResourceBreakdownToJSON(value['diskCount']),
@@ -5,6 +5,7 @@ export * from './AssessmentForm';
5
5
  export * from './AssessmentUpdate';
6
6
  export * from './Datastore';
7
7
  export * from './DiskSizeTierSummary';
8
+ export * from './DiskTypeSummary';
8
9
  export * from './Histogram';
9
10
  export * from './Host';
10
11
  export * from './Info';
@@ -7,6 +7,7 @@ export * from './AssessmentForm';
7
7
  export * from './AssessmentUpdate';
8
8
  export * from './Datastore';
9
9
  export * from './DiskSizeTierSummary';
10
+ export * from './DiskTypeSummary';
10
11
  export * from './Histogram';
11
12
  export * from './Host';
12
13
  export * from './Info';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@migration-planner-ui/api-client",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "description": "OpenAPI client for the Migration Planner API",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -0,0 +1,70 @@
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';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface DiskTypeSummary
20
+ */
21
+ export interface DiskTypeSummary {
22
+ /**
23
+ * Number of VMs that have at least one disk of this type
24
+ * @type {number}
25
+ * @memberof DiskTypeSummary
26
+ */
27
+ vmCount: number;
28
+ /**
29
+ * Total disk size in TB for this disk type
30
+ * @type {number}
31
+ * @memberof DiskTypeSummary
32
+ */
33
+ totalSizeTB: number;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the DiskTypeSummary interface.
38
+ */
39
+ export function instanceOfDiskTypeSummary(value: object): value is DiskTypeSummary {
40
+ if (!('vmCount' in value) || value['vmCount'] === undefined) return false;
41
+ if (!('totalSizeTB' in value) || value['totalSizeTB'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function DiskTypeSummaryFromJSON(json: any): DiskTypeSummary {
46
+ return DiskTypeSummaryFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function DiskTypeSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiskTypeSummary {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'vmCount': json['vmCount'],
56
+ 'totalSizeTB': json['totalSizeTB'],
57
+ };
58
+ }
59
+
60
+ export function DiskTypeSummaryToJSON(value?: DiskTypeSummary | null): any {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+
66
+ 'vmCount': value['vmCount'],
67
+ 'totalSizeTB': value['totalSizeTB'],
68
+ };
69
+ }
70
+
@@ -31,6 +31,12 @@ export interface OsInfo {
31
31
  * @memberof OsInfo
32
32
  */
33
33
  supported: boolean;
34
+ /**
35
+ * Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
36
+ * @type {string}
37
+ * @memberof OsInfo
38
+ */
39
+ upgradeRecommendation?: string;
34
40
  }
35
41
 
36
42
  /**
@@ -54,6 +60,7 @@ export function OsInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): Os
54
60
 
55
61
  'count': json['count'],
56
62
  'supported': json['supported'],
63
+ 'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
57
64
  };
58
65
  }
59
66
 
@@ -65,6 +72,7 @@ export function OsInfoToJSON(value?: OsInfo | null): any {
65
72
 
66
73
  'count': value['count'],
67
74
  'supported': value['supported'],
75
+ 'upgradeRecommendation': value['upgradeRecommendation'],
68
76
  };
69
77
  }
70
78
 
package/src/models/VMs.ts CHANGED
@@ -28,6 +28,11 @@ import {
28
28
  DiskSizeTierSummaryFromJSON,
29
29
  DiskSizeTierSummaryToJSON,
30
30
  } from './DiskSizeTierSummary';
31
+ import type { DiskTypeSummary } from './DiskTypeSummary';
32
+ import {
33
+ DiskTypeSummaryFromJSON,
34
+ DiskTypeSummaryToJSON,
35
+ } from './DiskTypeSummary';
31
36
  import type { VMResourceBreakdown } from './VMResourceBreakdown';
32
37
  import {
33
38
  VMResourceBreakdownFromJSON,
@@ -70,6 +75,12 @@ export interface VMs {
70
75
  * @memberof VMs
71
76
  */
72
77
  diskSizeTier?: { [key: string]: DiskSizeTierSummary; };
78
+ /**
79
+ *
80
+ * @type {{ [key: string]: DiskTypeSummary; }}
81
+ * @memberof VMs
82
+ */
83
+ diskTypes?: { [key: string]: DiskTypeSummary; };
73
84
  /**
74
85
  *
75
86
  * @type {VMResourceBreakdown}
@@ -159,6 +170,7 @@ export function VMsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMs {
159
170
  'totalMigratableWithWarnings': json['totalMigratableWithWarnings'] == null ? undefined : json['totalMigratableWithWarnings'],
160
171
  'cpuCores': VMResourceBreakdownFromJSON(json['cpuCores']),
161
172
  'diskSizeTier': json['diskSizeTier'] == null ? undefined : (mapValues(json['diskSizeTier'], DiskSizeTierSummaryFromJSON)),
173
+ 'diskTypes': json['diskTypes'] == null ? undefined : (mapValues(json['diskTypes'], DiskTypeSummaryFromJSON)),
162
174
  'ramGB': VMResourceBreakdownFromJSON(json['ramGB']),
163
175
  'diskGB': VMResourceBreakdownFromJSON(json['diskGB']),
164
176
  'diskCount': VMResourceBreakdownFromJSON(json['diskCount']),
@@ -182,6 +194,7 @@ export function VMsToJSON(value?: VMs | null): any {
182
194
  'totalMigratableWithWarnings': value['totalMigratableWithWarnings'],
183
195
  'cpuCores': VMResourceBreakdownToJSON(value['cpuCores']),
184
196
  'diskSizeTier': value['diskSizeTier'] == null ? undefined : (mapValues(value['diskSizeTier'], DiskSizeTierSummaryToJSON)),
197
+ 'diskTypes': value['diskTypes'] == null ? undefined : (mapValues(value['diskTypes'], DiskTypeSummaryToJSON)),
185
198
  'ramGB': VMResourceBreakdownToJSON(value['ramGB']),
186
199
  'diskGB': VMResourceBreakdownToJSON(value['diskGB']),
187
200
  'diskCount': VMResourceBreakdownToJSON(value['diskCount']),
@@ -7,6 +7,7 @@ export * from './AssessmentForm';
7
7
  export * from './AssessmentUpdate';
8
8
  export * from './Datastore';
9
9
  export * from './DiskSizeTierSummary';
10
+ export * from './DiskTypeSummary';
10
11
  export * from './Histogram';
11
12
  export * from './Host';
12
13
  export * from './Info';