@migration-planner-ui/api-client 0.0.20 → 0.0.22

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.
@@ -0,0 +1,89 @@
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
+ import type { VmNetwork } from './VmNetwork';
17
+ import {
18
+ VmNetworkFromJSON,
19
+ VmNetworkFromJSONTyped,
20
+ VmNetworkToJSON,
21
+ } from './VmNetwork';
22
+ import type { AgentProxy } from './AgentProxy';
23
+ import {
24
+ AgentProxyFromJSON,
25
+ AgentProxyFromJSONTyped,
26
+ AgentProxyToJSON,
27
+ } from './AgentProxy';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface SourceInfra
33
+ */
34
+ export interface SourceInfra {
35
+ /**
36
+ *
37
+ * @type {AgentProxy}
38
+ * @memberof SourceInfra
39
+ */
40
+ proxy?: AgentProxy;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof SourceInfra
45
+ */
46
+ sshPublicKey?: string | null;
47
+ /**
48
+ *
49
+ * @type {VmNetwork}
50
+ * @memberof SourceInfra
51
+ */
52
+ vmNetwork?: VmNetwork;
53
+ }
54
+
55
+ /**
56
+ * Check if a given object implements the SourceInfra interface.
57
+ */
58
+ export function instanceOfSourceInfra(value: object): value is SourceInfra {
59
+ return true;
60
+ }
61
+
62
+ export function SourceInfraFromJSON(json: any): SourceInfra {
63
+ return SourceInfraFromJSONTyped(json, false);
64
+ }
65
+
66
+ export function SourceInfraFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceInfra {
67
+ if (json == null) {
68
+ return json;
69
+ }
70
+ return {
71
+
72
+ 'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
73
+ 'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
74
+ 'vmNetwork': json['vmNetwork'] == null ? undefined : VmNetworkFromJSON(json['vmNetwork']),
75
+ };
76
+ }
77
+
78
+ export function SourceInfraToJSON(value?: SourceInfra | null): any {
79
+ if (value == null) {
80
+ return value;
81
+ }
82
+ return {
83
+
84
+ 'proxy': AgentProxyToJSON(value['proxy']),
85
+ 'sshPublicKey': value['sshPublicKey'],
86
+ 'vmNetwork': VmNetworkToJSON(value['vmNetwork']),
87
+ };
88
+ }
89
+
package/src/models/VMs.ts CHANGED
@@ -25,6 +25,12 @@ import {
25
25
  OsInfoFromJSONTyped,
26
26
  OsInfoToJSON,
27
27
  } from './OsInfo';
28
+ import type { DiskSizeTierSummary } from './DiskSizeTierSummary';
29
+ import {
30
+ DiskSizeTierSummaryFromJSON,
31
+ DiskSizeTierSummaryFromJSONTyped,
32
+ DiskSizeTierSummaryToJSON,
33
+ } from './DiskSizeTierSummary';
28
34
  import type { VMResourceBreakdown } from './VMResourceBreakdown';
29
35
  import {
30
36
  VMResourceBreakdownFromJSON,
@@ -62,6 +68,12 @@ export interface VMs {
62
68
  * @memberof VMs
63
69
  */
64
70
  cpuCores: VMResourceBreakdown;
71
+ /**
72
+ *
73
+ * @type {{ [key: string]: DiskSizeTierSummary; }}
74
+ * @memberof VMs
75
+ */
76
+ diskSizeTier?: { [key: string]: DiskSizeTierSummary; };
65
77
  /**
66
78
  *
67
79
  * @type {VMResourceBreakdown}
@@ -150,6 +162,7 @@ export function VMsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMs {
150
162
  'totalMigratable': json['totalMigratable'],
151
163
  'totalMigratableWithWarnings': json['totalMigratableWithWarnings'] == null ? undefined : json['totalMigratableWithWarnings'],
152
164
  'cpuCores': VMResourceBreakdownFromJSON(json['cpuCores']),
165
+ 'diskSizeTier': json['diskSizeTier'] == null ? undefined : (mapValues(json['diskSizeTier'], DiskSizeTierSummaryFromJSON)),
153
166
  'ramGB': VMResourceBreakdownFromJSON(json['ramGB']),
154
167
  'diskGB': VMResourceBreakdownFromJSON(json['diskGB']),
155
168
  'diskCount': VMResourceBreakdownFromJSON(json['diskCount']),
@@ -172,6 +185,7 @@ export function VMsToJSON(value?: VMs | null): any {
172
185
  'totalMigratable': value['totalMigratable'],
173
186
  'totalMigratableWithWarnings': value['totalMigratableWithWarnings'],
174
187
  'cpuCores': VMResourceBreakdownToJSON(value['cpuCores']),
188
+ 'diskSizeTier': value['diskSizeTier'] == null ? undefined : (mapValues(value['diskSizeTier'], DiskSizeTierSummaryToJSON)),
175
189
  'ramGB': VMResourceBreakdownToJSON(value['ramGB']),
176
190
  'diskGB': VMResourceBreakdownToJSON(value['diskGB']),
177
191
  'diskCount': VMResourceBreakdownToJSON(value['diskCount']),
@@ -6,6 +6,7 @@ export * from './Assessment';
6
6
  export * from './AssessmentForm';
7
7
  export * from './AssessmentUpdate';
8
8
  export * from './Datastore';
9
+ export * from './DiskSizeTierSummary';
9
10
  export * from './Histogram';
10
11
  export * from './Host';
11
12
  export * from './Info';
@@ -21,11 +22,11 @@ export * from './PresignedUrl';
21
22
  export * from './Snapshot';
22
23
  export * from './Source';
23
24
  export * from './SourceCreate';
25
+ export * from './SourceInfra';
24
26
  export * from './SourceUpdate';
25
27
  export * from './Status';
26
28
  export * from './UpdateInventory';
27
- export * from './UploadRvtoolsFile200Response';
28
29
  export * from './VCenter';
29
30
  export * from './VMResourceBreakdown';
30
31
  export * from './VMs';
31
- export * from './VmNetwork';
32
+ export * from './VmNetwork';