@migration-planner-ui/api-client 0.0.1

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 (93) hide show
  1. package/.openapi-generator/FILES +27 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +30 -0
  4. package/README.md +46 -0
  5. package/dist/apis/AgentApi.d.ts +69 -0
  6. package/dist/apis/AgentApi.js +82 -0
  7. package/dist/apis/HealthApi.d.ts +44 -0
  8. package/dist/apis/HealthApi.js +52 -0
  9. package/dist/apis/ImageApi.d.ts +95 -0
  10. package/dist/apis/ImageApi.js +112 -0
  11. package/dist/apis/SourceApi.d.ts +162 -0
  12. package/dist/apis/SourceApi.js +201 -0
  13. package/dist/apis/UiEventsApi.d.ts +49 -0
  14. package/dist/apis/UiEventsApi.js +59 -0
  15. package/dist/apis/index.d.ts +4 -0
  16. package/dist/apis/index.js +6 -0
  17. package/dist/index.d.ts +3 -0
  18. package/dist/index.js +5 -0
  19. package/dist/models/Agent.d.ts +79 -0
  20. package/dist/models/Agent.js +75 -0
  21. package/dist/models/AgentProxy.d.ts +43 -0
  22. package/dist/models/AgentProxy.js +42 -0
  23. package/dist/models/Event.d.ts +38 -0
  24. package/dist/models/Event.js +45 -0
  25. package/dist/models/EventData.d.ts +37 -0
  26. package/dist/models/EventData.js +44 -0
  27. package/dist/models/Infra.d.ts +65 -0
  28. package/dist/models/Infra.js +62 -0
  29. package/dist/models/InfraDatastoresInner.d.ts +43 -0
  30. package/dist/models/InfraDatastoresInner.js +48 -0
  31. package/dist/models/InfraNetworksInner.d.ts +59 -0
  32. package/dist/models/InfraNetworksInner.js +57 -0
  33. package/dist/models/Inventory.d.ts +46 -0
  34. package/dist/models/Inventory.js +48 -0
  35. package/dist/models/MigrationIssuesInner.d.ts +43 -0
  36. package/dist/models/MigrationIssuesInner.js +48 -0
  37. package/dist/models/ModelError.d.ts +31 -0
  38. package/dist/models/ModelError.js +40 -0
  39. package/dist/models/PresignedUrl.d.ts +37 -0
  40. package/dist/models/PresignedUrl.js +42 -0
  41. package/dist/models/Source.d.ts +69 -0
  42. package/dist/models/Source.js +62 -0
  43. package/dist/models/SourceAgentItem.d.ts +37 -0
  44. package/dist/models/SourceAgentItem.js +44 -0
  45. package/dist/models/SourceCreate.d.ts +50 -0
  46. package/dist/models/SourceCreate.js +47 -0
  47. package/dist/models/SourceUpdateOnPrem.d.ts +38 -0
  48. package/dist/models/SourceUpdateOnPrem.js +45 -0
  49. package/dist/models/Status.d.ts +43 -0
  50. package/dist/models/Status.js +42 -0
  51. package/dist/models/VCenter.d.ts +31 -0
  52. package/dist/models/VCenter.js +40 -0
  53. package/dist/models/VMResourceBreakdown.d.ts +56 -0
  54. package/dist/models/VMResourceBreakdown.js +57 -0
  55. package/dist/models/VMResourceBreakdownHistogram.d.ts +43 -0
  56. package/dist/models/VMResourceBreakdownHistogram.js +48 -0
  57. package/dist/models/VMs.d.ts +97 -0
  58. package/dist/models/VMs.js +79 -0
  59. package/dist/models/index.d.ts +19 -0
  60. package/dist/models/index.js +21 -0
  61. package/dist/runtime.d.ts +181 -0
  62. package/dist/runtime.js +326 -0
  63. package/package.json +61 -0
  64. package/src/apis/AgentApi.ts +131 -0
  65. package/src/apis/HealthApi.ts +70 -0
  66. package/src/apis/ImageApi.ts +191 -0
  67. package/src/apis/SourceApi.ts +354 -0
  68. package/src/apis/UiEventsApi.ts +96 -0
  69. package/src/apis/index.ts +27 -0
  70. package/src/index.ts +5 -0
  71. package/src/models/Agent.ts +130 -0
  72. package/src/models/AgentProxy.ts +76 -0
  73. package/src/models/Event.ts +77 -0
  74. package/src/models/EventData.ts +70 -0
  75. package/src/models/Infra.ts +119 -0
  76. package/src/models/InfraDatastoresInner.ts +79 -0
  77. package/src/models/InfraNetworksInner.ts +99 -0
  78. package/src/models/Inventory.ts +98 -0
  79. package/src/models/MigrationIssuesInner.ts +79 -0
  80. package/src/models/ModelError.ts +61 -0
  81. package/src/models/PresignedUrl.ts +69 -0
  82. package/src/models/Source.ts +126 -0
  83. package/src/models/SourceAgentItem.ts +70 -0
  84. package/src/models/SourceCreate.ts +92 -0
  85. package/src/models/SourceUpdateOnPrem.ts +77 -0
  86. package/src/models/Status.ts +76 -0
  87. package/src/models/VCenter.ts +61 -0
  88. package/src/models/VMResourceBreakdown.ts +104 -0
  89. package/src/models/VMResourceBreakdownHistogram.ts +79 -0
  90. package/src/models/VMs.ts +163 -0
  91. package/src/models/index.ts +21 -0
  92. package/src/runtime.ts +426 -0
  93. package/tsconfig.json +14 -0
@@ -0,0 +1,77 @@
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 { Inventory } from './Inventory';
17
+ import {
18
+ InventoryFromJSON,
19
+ InventoryFromJSONTyped,
20
+ InventoryToJSON,
21
+ } from './Inventory';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface SourceUpdateOnPrem
27
+ */
28
+ export interface SourceUpdateOnPrem {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof SourceUpdateOnPrem
33
+ */
34
+ agentId: string;
35
+ /**
36
+ *
37
+ * @type {Inventory}
38
+ * @memberof SourceUpdateOnPrem
39
+ */
40
+ inventory: Inventory;
41
+ }
42
+
43
+ /**
44
+ * Check if a given object implements the SourceUpdateOnPrem interface.
45
+ */
46
+ export function instanceOfSourceUpdateOnPrem(value: object): value is SourceUpdateOnPrem {
47
+ if (!('agentId' in value) || value['agentId'] === undefined) return false;
48
+ if (!('inventory' in value) || value['inventory'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function SourceUpdateOnPremFromJSON(json: any): SourceUpdateOnPrem {
53
+ return SourceUpdateOnPremFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function SourceUpdateOnPremFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceUpdateOnPrem {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'agentId': json['agentId'],
63
+ 'inventory': InventoryFromJSON(json['inventory']),
64
+ };
65
+ }
66
+
67
+ export function SourceUpdateOnPremToJSON(value?: SourceUpdateOnPrem | null): any {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+
73
+ 'agentId': value['agentId'],
74
+ 'inventory': InventoryToJSON(value['inventory']),
75
+ };
76
+ }
77
+
@@ -0,0 +1,76 @@
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
+ * Status is a return value for calls that don't return other objects.
18
+ * @export
19
+ * @interface Status
20
+ */
21
+ export interface Status {
22
+ /**
23
+ * A human-readable description of the status of this operation.
24
+ * @type {string}
25
+ * @memberof Status
26
+ */
27
+ message?: string;
28
+ /**
29
+ * A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.
30
+ * @type {string}
31
+ * @memberof Status
32
+ */
33
+ reason?: string;
34
+ /**
35
+ * Status of the operation. One of: "Success" or "Failure". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
36
+ * @type {string}
37
+ * @memberof Status
38
+ */
39
+ status?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the Status interface.
44
+ */
45
+ export function instanceOfStatus(value: object): value is Status {
46
+ return true;
47
+ }
48
+
49
+ export function StatusFromJSON(json: any): Status {
50
+ return StatusFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function StatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): Status {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'message': json['message'] == null ? undefined : json['message'],
60
+ 'reason': json['reason'] == null ? undefined : json['reason'],
61
+ 'status': json['status'] == null ? undefined : json['status'],
62
+ };
63
+ }
64
+
65
+ export function StatusToJSON(value?: Status | null): any {
66
+ if (value == null) {
67
+ return value;
68
+ }
69
+ return {
70
+
71
+ 'message': value['message'],
72
+ 'reason': value['reason'],
73
+ 'status': value['status'],
74
+ };
75
+ }
76
+
@@ -0,0 +1,61 @@
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 VCenter
20
+ */
21
+ export interface VCenter {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof VCenter
26
+ */
27
+ id: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the VCenter interface.
32
+ */
33
+ export function instanceOfVCenter(value: object): value is VCenter {
34
+ if (!('id' in value) || value['id'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function VCenterFromJSON(json: any): VCenter {
39
+ return VCenterFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function VCenterFromJSONTyped(json: any, ignoreDiscriminator: boolean): VCenter {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'id': json['id'],
49
+ };
50
+ }
51
+
52
+ export function VCenterToJSON(value?: VCenter | null): any {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+
58
+ 'id': value['id'],
59
+ };
60
+ }
61
+
@@ -0,0 +1,104 @@
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 { VMResourceBreakdownHistogram } from './VMResourceBreakdownHistogram';
17
+ import {
18
+ VMResourceBreakdownHistogramFromJSON,
19
+ VMResourceBreakdownHistogramFromJSONTyped,
20
+ VMResourceBreakdownHistogramToJSON,
21
+ } from './VMResourceBreakdownHistogram';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface VMResourceBreakdown
27
+ */
28
+ export interface VMResourceBreakdown {
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof VMResourceBreakdown
33
+ */
34
+ total: number;
35
+ /**
36
+ *
37
+ * @type {number}
38
+ * @memberof VMResourceBreakdown
39
+ */
40
+ totalForMigratable: number;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof VMResourceBreakdown
45
+ */
46
+ totalForMigratableWithWarnings: number;
47
+ /**
48
+ *
49
+ * @type {number}
50
+ * @memberof VMResourceBreakdown
51
+ */
52
+ totalForNotMigratable: number;
53
+ /**
54
+ *
55
+ * @type {VMResourceBreakdownHistogram}
56
+ * @memberof VMResourceBreakdown
57
+ */
58
+ histogram: VMResourceBreakdownHistogram;
59
+ }
60
+
61
+ /**
62
+ * Check if a given object implements the VMResourceBreakdown interface.
63
+ */
64
+ export function instanceOfVMResourceBreakdown(value: object): value is VMResourceBreakdown {
65
+ if (!('total' in value) || value['total'] === undefined) return false;
66
+ if (!('totalForMigratable' in value) || value['totalForMigratable'] === undefined) return false;
67
+ if (!('totalForMigratableWithWarnings' in value) || value['totalForMigratableWithWarnings'] === undefined) return false;
68
+ if (!('totalForNotMigratable' in value) || value['totalForNotMigratable'] === undefined) return false;
69
+ if (!('histogram' in value) || value['histogram'] === undefined) return false;
70
+ return true;
71
+ }
72
+
73
+ export function VMResourceBreakdownFromJSON(json: any): VMResourceBreakdown {
74
+ return VMResourceBreakdownFromJSONTyped(json, false);
75
+ }
76
+
77
+ export function VMResourceBreakdownFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMResourceBreakdown {
78
+ if (json == null) {
79
+ return json;
80
+ }
81
+ return {
82
+
83
+ 'total': json['total'],
84
+ 'totalForMigratable': json['totalForMigratable'],
85
+ 'totalForMigratableWithWarnings': json['totalForMigratableWithWarnings'],
86
+ 'totalForNotMigratable': json['totalForNotMigratable'],
87
+ 'histogram': VMResourceBreakdownHistogramFromJSON(json['histogram']),
88
+ };
89
+ }
90
+
91
+ export function VMResourceBreakdownToJSON(value?: VMResourceBreakdown | null): any {
92
+ if (value == null) {
93
+ return value;
94
+ }
95
+ return {
96
+
97
+ 'total': value['total'],
98
+ 'totalForMigratable': value['totalForMigratable'],
99
+ 'totalForMigratableWithWarnings': value['totalForMigratableWithWarnings'],
100
+ 'totalForNotMigratable': value['totalForNotMigratable'],
101
+ 'histogram': VMResourceBreakdownHistogramToJSON(value['histogram']),
102
+ };
103
+ }
104
+
@@ -0,0 +1,79 @@
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 VMResourceBreakdownHistogram
20
+ */
21
+ export interface VMResourceBreakdownHistogram {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof VMResourceBreakdownHistogram
26
+ */
27
+ minValue: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof VMResourceBreakdownHistogram
32
+ */
33
+ step: number;
34
+ /**
35
+ *
36
+ * @type {Array<number>}
37
+ * @memberof VMResourceBreakdownHistogram
38
+ */
39
+ data: Array<number>;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the VMResourceBreakdownHistogram interface.
44
+ */
45
+ export function instanceOfVMResourceBreakdownHistogram(value: object): value is VMResourceBreakdownHistogram {
46
+ if (!('minValue' in value) || value['minValue'] === undefined) return false;
47
+ if (!('step' in value) || value['step'] === undefined) return false;
48
+ if (!('data' in value) || value['data'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function VMResourceBreakdownHistogramFromJSON(json: any): VMResourceBreakdownHistogram {
53
+ return VMResourceBreakdownHistogramFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function VMResourceBreakdownHistogramFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMResourceBreakdownHistogram {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'minValue': json['minValue'],
63
+ 'step': json['step'],
64
+ 'data': json['data'],
65
+ };
66
+ }
67
+
68
+ export function VMResourceBreakdownHistogramToJSON(value?: VMResourceBreakdownHistogram | null): any {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+ return {
73
+
74
+ 'minValue': value['minValue'],
75
+ 'step': value['step'],
76
+ 'data': value['data'],
77
+ };
78
+ }
79
+
@@ -0,0 +1,163 @@
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 { MigrationIssuesInner } from './MigrationIssuesInner';
17
+ import {
18
+ MigrationIssuesInnerFromJSON,
19
+ MigrationIssuesInnerFromJSONTyped,
20
+ MigrationIssuesInnerToJSON,
21
+ } from './MigrationIssuesInner';
22
+ import type { VMResourceBreakdown } from './VMResourceBreakdown';
23
+ import {
24
+ VMResourceBreakdownFromJSON,
25
+ VMResourceBreakdownFromJSONTyped,
26
+ VMResourceBreakdownToJSON,
27
+ } from './VMResourceBreakdown';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface VMs
33
+ */
34
+ export interface VMs {
35
+ /**
36
+ *
37
+ * @type {number}
38
+ * @memberof VMs
39
+ */
40
+ total: number;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof VMs
45
+ */
46
+ totalMigratable: number;
47
+ /**
48
+ *
49
+ * @type {number}
50
+ * @memberof VMs
51
+ */
52
+ totalMigratableWithWarnings?: number;
53
+ /**
54
+ *
55
+ * @type {VMResourceBreakdown}
56
+ * @memberof VMs
57
+ */
58
+ cpuCores: VMResourceBreakdown;
59
+ /**
60
+ *
61
+ * @type {VMResourceBreakdown}
62
+ * @memberof VMs
63
+ */
64
+ ramGB: VMResourceBreakdown;
65
+ /**
66
+ *
67
+ * @type {VMResourceBreakdown}
68
+ * @memberof VMs
69
+ */
70
+ diskGB: VMResourceBreakdown;
71
+ /**
72
+ *
73
+ * @type {VMResourceBreakdown}
74
+ * @memberof VMs
75
+ */
76
+ diskCount: VMResourceBreakdown;
77
+ /**
78
+ *
79
+ * @type {{ [key: string]: number; }}
80
+ * @memberof VMs
81
+ */
82
+ powerStates: { [key: string]: number; };
83
+ /**
84
+ *
85
+ * @type {{ [key: string]: number; }}
86
+ * @memberof VMs
87
+ */
88
+ os: { [key: string]: number; };
89
+ /**
90
+ *
91
+ * @type {Array<MigrationIssuesInner>}
92
+ * @memberof VMs
93
+ */
94
+ notMigratableReasons: Array<MigrationIssuesInner>;
95
+ /**
96
+ *
97
+ * @type {Array<MigrationIssuesInner>}
98
+ * @memberof VMs
99
+ */
100
+ migrationWarnings: Array<MigrationIssuesInner>;
101
+ }
102
+
103
+ /**
104
+ * Check if a given object implements the VMs interface.
105
+ */
106
+ export function instanceOfVMs(value: object): value is VMs {
107
+ if (!('total' in value) || value['total'] === undefined) return false;
108
+ if (!('totalMigratable' in value) || value['totalMigratable'] === undefined) return false;
109
+ if (!('cpuCores' in value) || value['cpuCores'] === undefined) return false;
110
+ if (!('ramGB' in value) || value['ramGB'] === undefined) return false;
111
+ if (!('diskGB' in value) || value['diskGB'] === undefined) return false;
112
+ if (!('diskCount' in value) || value['diskCount'] === undefined) return false;
113
+ if (!('powerStates' in value) || value['powerStates'] === undefined) return false;
114
+ if (!('os' in value) || value['os'] === undefined) return false;
115
+ if (!('notMigratableReasons' in value) || value['notMigratableReasons'] === undefined) return false;
116
+ if (!('migrationWarnings' in value) || value['migrationWarnings'] === undefined) return false;
117
+ return true;
118
+ }
119
+
120
+ export function VMsFromJSON(json: any): VMs {
121
+ return VMsFromJSONTyped(json, false);
122
+ }
123
+
124
+ export function VMsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMs {
125
+ if (json == null) {
126
+ return json;
127
+ }
128
+ return {
129
+
130
+ 'total': json['total'],
131
+ 'totalMigratable': json['totalMigratable'],
132
+ 'totalMigratableWithWarnings': json['totalMigratableWithWarnings'] == null ? undefined : json['totalMigratableWithWarnings'],
133
+ 'cpuCores': json['cpuCores'],
134
+ 'ramGB': json['ramGB'],
135
+ 'diskGB': json['diskGB'],
136
+ 'diskCount': json['diskCount'],
137
+ 'powerStates': json['powerStates'],
138
+ 'os': json['os'],
139
+ 'notMigratableReasons': ((json['notMigratableReasons'] as Array<any>).map(MigrationIssuesInnerFromJSON)),
140
+ 'migrationWarnings': ((json['migrationWarnings'] as Array<any>).map(MigrationIssuesInnerFromJSON)),
141
+ };
142
+ }
143
+
144
+ export function VMsToJSON(value?: VMs | null): any {
145
+ if (value == null) {
146
+ return value;
147
+ }
148
+ return {
149
+
150
+ 'total': value['total'],
151
+ 'totalMigratable': value['totalMigratable'],
152
+ 'totalMigratableWithWarnings': value['totalMigratableWithWarnings'],
153
+ 'cpuCores': value['cpuCores'],
154
+ 'ramGB': value['ramGB'],
155
+ 'diskGB': value['diskGB'],
156
+ 'diskCount': value['diskCount'],
157
+ 'powerStates': value['powerStates'],
158
+ 'os': value['os'],
159
+ 'notMigratableReasons': ((value['notMigratableReasons'] as Array<any>).map(MigrationIssuesInnerToJSON)),
160
+ 'migrationWarnings': ((value['migrationWarnings'] as Array<any>).map(MigrationIssuesInnerToJSON)),
161
+ };
162
+ }
163
+
@@ -0,0 +1,21 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './Agent';
4
+ export * from './AgentProxy';
5
+ export * from './Event';
6
+ export * from './EventData';
7
+ export * from './Infra';
8
+ export * from './InfraDatastoresInner';
9
+ export * from './InfraNetworksInner';
10
+ export * from './Inventory';
11
+ export * from './MigrationIssuesInner';
12
+ export * from './ModelError';
13
+ export * from './PresignedUrl';
14
+ export * from './Source';
15
+ export * from './SourceCreate';
16
+ export * from './SourceUpdateOnPrem';
17
+ export * from './Status';
18
+ export * from './VCenter';
19
+ export * from './VMResourceBreakdown';
20
+ export * from './VMResourceBreakdownHistogram';
21
+ export * from './VMs';