@migration-planner-ui/api-client 0.0.19 → 0.0.21

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.
Files changed (40) hide show
  1. package/.openapi-generator/FILES +4 -1
  2. package/dist/apis/SourceApi.d.ts +5 -34
  3. package/dist/apis/SourceApi.js +5 -58
  4. package/dist/apis/index.d.ts +1 -1
  5. package/dist/models/DiskSizeTierSummary.d.ts +37 -0
  6. package/dist/models/DiskSizeTierSummary.js +44 -0
  7. package/dist/models/Ipv4Config.d.ts +49 -0
  8. package/dist/models/Ipv4Config.js +52 -0
  9. package/dist/models/ModelError.d.ts +6 -0
  10. package/dist/models/ModelError.js +2 -0
  11. package/dist/models/Network.d.ts +6 -0
  12. package/dist/models/Network.js +2 -0
  13. package/dist/models/Source.d.ts +7 -0
  14. package/dist/models/Source.js +3 -0
  15. package/dist/models/SourceCreate.d.ts +7 -0
  16. package/dist/models/SourceCreate.js +3 -0
  17. package/dist/models/SourceInfra.d.ts +45 -0
  18. package/dist/models/SourceInfra.js +44 -0
  19. package/dist/models/SourceUpdate.d.ts +7 -0
  20. package/dist/models/SourceUpdate.js +3 -0
  21. package/dist/models/VMs.d.ts +9 -0
  22. package/dist/models/VMs.js +3 -0
  23. package/dist/models/VmNetwork.d.ts +32 -0
  24. package/dist/models/VmNetwork.js +39 -0
  25. package/dist/models/index.d.ts +4 -1
  26. package/dist/models/index.js +4 -1
  27. package/package.json +1 -1
  28. package/src/apis/SourceApi.ts +5 -98
  29. package/src/apis/index.ts +0 -1
  30. package/src/models/DiskSizeTierSummary.ts +70 -0
  31. package/src/models/Ipv4Config.ts +88 -0
  32. package/src/models/ModelError.ts +8 -0
  33. package/src/models/Network.ts +8 -0
  34. package/src/models/Source.ts +14 -0
  35. package/src/models/SourceCreate.ts +14 -0
  36. package/src/models/SourceInfra.ts +89 -0
  37. package/src/models/SourceUpdate.ts +14 -0
  38. package/src/models/VMs.ts +14 -0
  39. package/src/models/VmNetwork.ts +67 -0
  40. package/src/models/index.ts +4 -1
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { VmNetwork } from './VmNetwork';
17
+ import {
18
+ VmNetworkFromJSON,
19
+ VmNetworkFromJSONTyped,
20
+ VmNetworkToJSON,
21
+ } from './VmNetwork';
16
22
  import type { AgentProxy } from './AgentProxy';
17
23
  import {
18
24
  AgentProxyFromJSON,
@@ -56,6 +62,12 @@ export interface SourceCreate {
56
62
  * @memberof SourceCreate
57
63
  */
58
64
  certificateChain?: string | null;
65
+ /**
66
+ *
67
+ * @type {VmNetwork}
68
+ * @memberof SourceCreate
69
+ */
70
+ network?: VmNetwork;
59
71
  /**
60
72
  *
61
73
  * @type {Array<Label>}
@@ -86,6 +98,7 @@ export function SourceCreateFromJSONTyped(json: any, ignoreDiscriminator: boolea
86
98
  'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
87
99
  'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
88
100
  'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
101
+ 'network': json['network'] == null ? undefined : VmNetworkFromJSON(json['network']),
89
102
  'labels': json['labels'] == null ? undefined : ((json['labels'] as Array<any>).map(LabelFromJSON)),
90
103
  };
91
104
  }
@@ -100,6 +113,7 @@ export function SourceCreateToJSON(value?: SourceCreate | null): any {
100
113
  'sshPublicKey': value['sshPublicKey'],
101
114
  'proxy': AgentProxyToJSON(value['proxy']),
102
115
  'certificateChain': value['certificateChain'],
116
+ 'network': VmNetworkToJSON(value['network']),
103
117
  'labels': value['labels'] == null ? undefined : ((value['labels'] as Array<any>).map(LabelToJSON)),
104
118
  };
105
119
  }
@@ -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
+
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { VmNetwork } from './VmNetwork';
17
+ import {
18
+ VmNetworkFromJSON,
19
+ VmNetworkFromJSONTyped,
20
+ VmNetworkToJSON,
21
+ } from './VmNetwork';
16
22
  import type { AgentProxy } from './AgentProxy';
17
23
  import {
18
24
  AgentProxyFromJSON,
@@ -62,6 +68,12 @@ export interface SourceUpdate {
62
68
  * @memberof SourceUpdate
63
69
  */
64
70
  proxy?: AgentProxy;
71
+ /**
72
+ *
73
+ * @type {VmNetwork}
74
+ * @memberof SourceUpdate
75
+ */
76
+ network?: VmNetwork;
65
77
  }
66
78
 
67
79
  /**
@@ -86,6 +98,7 @@ export function SourceUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolea
86
98
  'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
87
99
  'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
88
100
  'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
101
+ 'network': json['network'] == null ? undefined : VmNetworkFromJSON(json['network']),
89
102
  };
90
103
  }
91
104
 
@@ -100,6 +113,7 @@ export function SourceUpdateToJSON(value?: SourceUpdate | null): any {
100
113
  'sshPublicKey': value['sshPublicKey'],
101
114
  'certificateChain': value['certificateChain'],
102
115
  'proxy': AgentProxyToJSON(value['proxy']),
116
+ 'network': VmNetworkToJSON(value['network']),
103
117
  };
104
118
  }
105
119
 
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']),
@@ -0,0 +1,67 @@
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 { Ipv4Config } from './Ipv4Config';
17
+ import {
18
+ Ipv4ConfigFromJSON,
19
+ Ipv4ConfigFromJSONTyped,
20
+ Ipv4ConfigToJSON,
21
+ } from './Ipv4Config';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface VmNetwork
27
+ */
28
+ export interface VmNetwork {
29
+ /**
30
+ *
31
+ * @type {Ipv4Config}
32
+ * @memberof VmNetwork
33
+ */
34
+ ipv4?: Ipv4Config;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the VmNetwork interface.
39
+ */
40
+ export function instanceOfVmNetwork(value: object): value is VmNetwork {
41
+ return true;
42
+ }
43
+
44
+ export function VmNetworkFromJSON(json: any): VmNetwork {
45
+ return VmNetworkFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function VmNetworkFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmNetwork {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'ipv4': json['ipv4'] == null ? undefined : Ipv4ConfigFromJSON(json['ipv4']),
55
+ };
56
+ }
57
+
58
+ export function VmNetworkToJSON(value?: VmNetwork | null): any {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+
64
+ 'ipv4': Ipv4ConfigToJSON(value['ipv4']),
65
+ };
66
+ }
67
+
@@ -6,11 +6,13 @@ 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';
12
13
  export * from './Infra';
13
14
  export * from './Inventory';
15
+ export * from './Ipv4Config';
14
16
  export * from './Label';
15
17
  export * from './MigrationIssue';
16
18
  export * from './ModelError';
@@ -20,10 +22,11 @@ export * from './PresignedUrl';
20
22
  export * from './Snapshot';
21
23
  export * from './Source';
22
24
  export * from './SourceCreate';
25
+ export * from './SourceInfra';
23
26
  export * from './SourceUpdate';
24
27
  export * from './Status';
25
28
  export * from './UpdateInventory';
26
- export * from './UploadRvtoolsFile200Response';
27
29
  export * from './VCenter';
28
30
  export * from './VMResourceBreakdown';
29
31
  export * from './VMs';
32
+ export * from './VmNetwork';