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

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.
@@ -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
 
@@ -11,9 +11,12 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+
15
+ import { mapValues } from '../runtime';
14
16
  import type { Inventory } from './Inventory';
15
17
  import {
16
18
  InventoryFromJSON,
19
+ InventoryFromJSONTyped,
17
20
  InventoryToJSON,
18
21
  } from './Inventory';
19
22
 
package/src/models/VMs.ts CHANGED
@@ -16,21 +16,31 @@ import { mapValues } from '../runtime';
16
16
  import type { MigrationIssue } from './MigrationIssue';
17
17
  import {
18
18
  MigrationIssueFromJSON,
19
+ MigrationIssueFromJSONTyped,
19
20
  MigrationIssueToJSON,
20
21
  } from './MigrationIssue';
21
22
  import type { OsInfo } from './OsInfo';
22
23
  import {
23
24
  OsInfoFromJSON,
25
+ OsInfoFromJSONTyped,
24
26
  OsInfoToJSON,
25
27
  } from './OsInfo';
26
28
  import type { DiskSizeTierSummary } from './DiskSizeTierSummary';
27
29
  import {
28
30
  DiskSizeTierSummaryFromJSON,
31
+ DiskSizeTierSummaryFromJSONTyped,
29
32
  DiskSizeTierSummaryToJSON,
30
33
  } from './DiskSizeTierSummary';
34
+ import type { DiskTypeSummary } from './DiskTypeSummary';
35
+ import {
36
+ DiskTypeSummaryFromJSON,
37
+ DiskTypeSummaryFromJSONTyped,
38
+ DiskTypeSummaryToJSON,
39
+ } from './DiskTypeSummary';
31
40
  import type { VMResourceBreakdown } from './VMResourceBreakdown';
32
41
  import {
33
42
  VMResourceBreakdownFromJSON,
43
+ VMResourceBreakdownFromJSONTyped,
34
44
  VMResourceBreakdownToJSON,
35
45
  } from './VMResourceBreakdown';
36
46
 
@@ -70,6 +80,12 @@ export interface VMs {
70
80
  * @memberof VMs
71
81
  */
72
82
  diskSizeTier?: { [key: string]: DiskSizeTierSummary; };
83
+ /**
84
+ *
85
+ * @type {{ [key: string]: DiskTypeSummary; }}
86
+ * @memberof VMs
87
+ */
88
+ diskTypes?: { [key: string]: DiskTypeSummary; };
73
89
  /**
74
90
  *
75
91
  * @type {VMResourceBreakdown}
@@ -106,7 +122,7 @@ export interface VMs {
106
122
  * @memberof VMs
107
123
  * @deprecated
108
124
  */
109
- os: { [key: string]: number; };
125
+ os?: { [key: string]: number; };
110
126
  /**
111
127
  *
112
128
  * @type {{ [key: string]: OsInfo; }}
@@ -138,7 +154,6 @@ export function instanceOfVMs(value: object): value is VMs {
138
154
  if (!('diskGB' in value) || value['diskGB'] === undefined) return false;
139
155
  if (!('diskCount' in value) || value['diskCount'] === undefined) return false;
140
156
  if (!('powerStates' in value) || value['powerStates'] === undefined) return false;
141
- if (!('os' in value) || value['os'] === undefined) return false;
142
157
  if (!('notMigratableReasons' in value) || value['notMigratableReasons'] === undefined) return false;
143
158
  if (!('migrationWarnings' in value) || value['migrationWarnings'] === undefined) return false;
144
159
  return true;
@@ -159,16 +174,17 @@ export function VMsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMs {
159
174
  'totalMigratableWithWarnings': json['totalMigratableWithWarnings'] == null ? undefined : json['totalMigratableWithWarnings'],
160
175
  'cpuCores': VMResourceBreakdownFromJSON(json['cpuCores']),
161
176
  'diskSizeTier': json['diskSizeTier'] == null ? undefined : (mapValues(json['diskSizeTier'], DiskSizeTierSummaryFromJSON)),
177
+ 'diskTypes': json['diskTypes'] == null ? undefined : (mapValues(json['diskTypes'], DiskTypeSummaryFromJSON)),
162
178
  'ramGB': VMResourceBreakdownFromJSON(json['ramGB']),
163
179
  'diskGB': VMResourceBreakdownFromJSON(json['diskGB']),
164
180
  'diskCount': VMResourceBreakdownFromJSON(json['diskCount']),
165
181
  'nicCount': json['nicCount'] == null ? undefined : VMResourceBreakdownFromJSON(json['nicCount']),
166
182
  'powerStates': json['powerStates'],
167
- 'os': json['os'],
183
+ 'os': json['os'] == null ? undefined : json['os'],
168
184
  'osInfo': json['osInfo'] == null ? undefined : (mapValues(json['osInfo'], OsInfoFromJSON)),
169
185
  'notMigratableReasons': json['notMigratableReasons'] == null ? undefined : ((json['notMigratableReasons'] as Array<any>).map(MigrationIssueFromJSON)),
170
186
  'migrationWarnings': json['migrationWarnings'] == null ? undefined : ((json['migrationWarnings'] as Array<any>).map(MigrationIssueFromJSON)),
171
- };
187
+ };
172
188
  }
173
189
 
174
190
  export function VMsToJSON(value?: VMs | null): any {
@@ -182,6 +198,7 @@ export function VMsToJSON(value?: VMs | null): any {
182
198
  'totalMigratableWithWarnings': value['totalMigratableWithWarnings'],
183
199
  'cpuCores': VMResourceBreakdownToJSON(value['cpuCores']),
184
200
  'diskSizeTier': value['diskSizeTier'] == null ? undefined : (mapValues(value['diskSizeTier'], DiskSizeTierSummaryToJSON)),
201
+ 'diskTypes': value['diskTypes'] == null ? undefined : (mapValues(value['diskTypes'], DiskTypeSummaryToJSON)),
185
202
  'ramGB': VMResourceBreakdownToJSON(value['ramGB']),
186
203
  'diskGB': VMResourceBreakdownToJSON(value['diskGB']),
187
204
  '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';
@@ -14,6 +15,8 @@ export * from './Infra';
14
15
  export * from './Inventory';
15
16
  export * from './InventoryData';
16
17
  export * from './Ipv4Config';
18
+ export * from './Job';
19
+ export * from './JobStatus';
17
20
  export * from './Label';
18
21
  export * from './MigrationIssue';
19
22
  export * from './ModelError';
package/src/runtime.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
- export const BASE_PATH = "https://raw.githubusercontent.com".replace(/\/+$/, "");
16
+ export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
17
17
 
18
18
  export interface ConfigurationParameters {
19
19
  basePath?: string; // override base path