@openshift-migration-advisor/agent-sdk 0.32.0 → 0.33.0-e1c90d7b1b79

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 (213) hide show
  1. package/.openapi-generator/FILES +38 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +28 -4
  4. package/dist/apis/AppliancesApi.d.ts +258 -0
  5. package/dist/apis/AppliancesApi.js +273 -0
  6. package/dist/apis/CollectorApi.d.ts +0 -38
  7. package/dist/apis/CollectorApi.js +0 -59
  8. package/dist/apis/GroupsApi.d.ts +45 -6
  9. package/dist/apis/GroupsApi.js +40 -0
  10. package/dist/apis/ImageUpgradeApi.d.ts +66 -0
  11. package/dist/apis/ImageUpgradeApi.js +90 -0
  12. package/dist/apis/VirtualMachinesApi.d.ts +6 -6
  13. package/dist/apis/index.d.ts +2 -0
  14. package/dist/apis/index.js +2 -0
  15. package/dist/esm/apis/AppliancesApi.d.ts +258 -0
  16. package/dist/esm/apis/AppliancesApi.js +269 -0
  17. package/dist/esm/apis/CollectorApi.d.ts +0 -38
  18. package/dist/esm/apis/CollectorApi.js +0 -59
  19. package/dist/esm/apis/GroupsApi.d.ts +45 -6
  20. package/dist/esm/apis/GroupsApi.js +40 -0
  21. package/dist/esm/apis/ImageUpgradeApi.d.ts +66 -0
  22. package/dist/esm/apis/ImageUpgradeApi.js +86 -0
  23. package/dist/esm/apis/VirtualMachinesApi.d.ts +6 -6
  24. package/dist/esm/apis/index.d.ts +2 -0
  25. package/dist/esm/apis/index.js +2 -0
  26. package/dist/esm/models/AgentStatus.d.ts +5 -0
  27. package/dist/esm/models/AgentStatus.js +5 -0
  28. package/dist/esm/models/Appliance.d.ts +51 -0
  29. package/dist/esm/models/Appliance.js +64 -0
  30. package/dist/esm/models/ApplianceListResponse.d.ts +31 -0
  31. package/dist/esm/models/ApplianceListResponse.js +44 -0
  32. package/dist/esm/models/ApplianceRule.d.ts +90 -0
  33. package/dist/esm/models/ApplianceRule.js +98 -0
  34. package/dist/esm/models/ApplianceRuleCondition.d.ts +42 -0
  35. package/dist/esm/models/ApplianceRuleCondition.js +48 -0
  36. package/dist/esm/models/ApplianceRuleFunction.d.ts +37 -0
  37. package/dist/esm/models/ApplianceRuleFunction.js +46 -0
  38. package/dist/esm/models/ApplianceRuleListResponse.d.ts +31 -0
  39. package/dist/esm/models/ApplianceRuleListResponse.js +44 -0
  40. package/dist/esm/models/ApplianceRuleRequest.d.ts +74 -0
  41. package/dist/esm/models/ApplianceRuleRequest.js +85 -0
  42. package/dist/esm/models/ApplicationOverview.d.ts +16 -0
  43. package/dist/esm/models/ApplicationOverview.js +12 -0
  44. package/dist/esm/models/Datastore.d.ts +9 -0
  45. package/dist/esm/models/Datastore.js +5 -0
  46. package/dist/esm/models/DiskGeometryCondition.d.ts +47 -0
  47. package/dist/esm/models/DiskGeometryCondition.js +58 -0
  48. package/dist/esm/models/Host.d.ts +16 -0
  49. package/dist/esm/models/Host.js +8 -0
  50. package/dist/esm/models/ImageUpgradeImage.d.ts +34 -0
  51. package/dist/esm/models/ImageUpgradeImage.js +47 -0
  52. package/dist/esm/models/ImageUpgradeResult.d.ts +66 -0
  53. package/dist/esm/models/ImageUpgradeResult.js +71 -0
  54. package/dist/esm/models/ImageUpgradeStatus.d.ts +44 -0
  55. package/dist/esm/models/ImageUpgradeStatus.js +57 -0
  56. package/dist/esm/models/ImageUploadStatus.d.ts +44 -0
  57. package/dist/esm/models/ImageUploadStatus.js +56 -0
  58. package/dist/esm/models/OsInfo.d.ts +12 -0
  59. package/dist/esm/models/OsInfo.js +9 -0
  60. package/dist/esm/models/Product.d.ts +66 -0
  61. package/dist/esm/models/Product.js +61 -0
  62. package/dist/esm/models/RDMBacking.d.ts +26 -0
  63. package/dist/esm/models/RDMBacking.js +17 -0
  64. package/dist/esm/models/RDMHostLun.d.ts +42 -0
  65. package/dist/esm/models/RDMHostLun.js +49 -0
  66. package/dist/esm/models/StorageArray.d.ts +42 -0
  67. package/dist/esm/models/StorageArray.js +47 -0
  68. package/dist/esm/models/SuccessfulImageUpgrade.d.ts +38 -0
  69. package/dist/esm/models/SuccessfulImageUpgrade.js +52 -0
  70. package/dist/esm/models/VMFilterOptionsResponse.d.ts +8 -0
  71. package/dist/esm/models/VMFilterOptionsResponse.js +8 -0
  72. package/dist/esm/models/VirtualMachine.d.ts +8 -0
  73. package/dist/esm/models/VirtualMachine.js +4 -0
  74. package/dist/esm/models/VirtualMachineDatastore.d.ts +9 -0
  75. package/dist/esm/models/VirtualMachineDatastore.js +5 -0
  76. package/dist/esm/models/VirtualMachineDetail.d.ts +5 -0
  77. package/dist/esm/models/VirtualMachineDetail.js +3 -0
  78. package/dist/esm/models/VirtualMachineDisk.d.ts +8 -0
  79. package/dist/esm/models/VirtualMachineDisk.js +4 -0
  80. package/dist/esm/models/VirtualMachineIdentity.d.ts +34 -0
  81. package/dist/esm/models/VirtualMachineIdentity.js +47 -0
  82. package/dist/esm/models/index.d.ts +17 -0
  83. package/dist/esm/models/index.js +17 -0
  84. package/dist/esm/runtime.js +4 -3
  85. package/dist/models/AgentStatus.d.ts +5 -0
  86. package/dist/models/AgentStatus.js +5 -0
  87. package/dist/models/Appliance.d.ts +51 -0
  88. package/dist/models/Appliance.js +71 -0
  89. package/dist/models/ApplianceListResponse.d.ts +31 -0
  90. package/dist/models/ApplianceListResponse.js +51 -0
  91. package/dist/models/ApplianceRule.d.ts +90 -0
  92. package/dist/models/ApplianceRule.js +106 -0
  93. package/dist/models/ApplianceRuleCondition.d.ts +42 -0
  94. package/dist/models/ApplianceRuleCondition.js +55 -0
  95. package/dist/models/ApplianceRuleFunction.d.ts +37 -0
  96. package/dist/models/ApplianceRuleFunction.js +53 -0
  97. package/dist/models/ApplianceRuleListResponse.d.ts +31 -0
  98. package/dist/models/ApplianceRuleListResponse.js +51 -0
  99. package/dist/models/ApplianceRuleRequest.d.ts +74 -0
  100. package/dist/models/ApplianceRuleRequest.js +93 -0
  101. package/dist/models/ApplicationOverview.d.ts +16 -0
  102. package/dist/models/ApplicationOverview.js +12 -0
  103. package/dist/models/Datastore.d.ts +9 -0
  104. package/dist/models/Datastore.js +5 -0
  105. package/dist/models/DiskGeometryCondition.d.ts +47 -0
  106. package/dist/models/DiskGeometryCondition.js +66 -0
  107. package/dist/models/Host.d.ts +16 -0
  108. package/dist/models/Host.js +8 -0
  109. package/dist/models/ImageUpgradeImage.d.ts +34 -0
  110. package/dist/models/ImageUpgradeImage.js +54 -0
  111. package/dist/models/ImageUpgradeResult.d.ts +66 -0
  112. package/dist/models/ImageUpgradeResult.js +79 -0
  113. package/dist/models/ImageUpgradeStatus.d.ts +44 -0
  114. package/dist/models/ImageUpgradeStatus.js +64 -0
  115. package/dist/models/ImageUploadStatus.d.ts +44 -0
  116. package/dist/models/ImageUploadStatus.js +64 -0
  117. package/dist/models/OsInfo.d.ts +12 -0
  118. package/dist/models/OsInfo.js +10 -1
  119. package/dist/models/Product.d.ts +66 -0
  120. package/dist/models/Product.js +68 -0
  121. package/dist/models/RDMBacking.d.ts +26 -0
  122. package/dist/models/RDMBacking.js +18 -0
  123. package/dist/models/RDMHostLun.d.ts +42 -0
  124. package/dist/models/RDMHostLun.js +56 -0
  125. package/dist/models/StorageArray.d.ts +42 -0
  126. package/dist/models/StorageArray.js +54 -0
  127. package/dist/models/SuccessfulImageUpgrade.d.ts +38 -0
  128. package/dist/models/SuccessfulImageUpgrade.js +59 -0
  129. package/dist/models/VMFilterOptionsResponse.d.ts +8 -0
  130. package/dist/models/VMFilterOptionsResponse.js +8 -0
  131. package/dist/models/VirtualMachine.d.ts +8 -0
  132. package/dist/models/VirtualMachine.js +4 -0
  133. package/dist/models/VirtualMachineDatastore.d.ts +9 -0
  134. package/dist/models/VirtualMachineDatastore.js +5 -0
  135. package/dist/models/VirtualMachineDetail.d.ts +5 -0
  136. package/dist/models/VirtualMachineDetail.js +3 -0
  137. package/dist/models/VirtualMachineDisk.d.ts +8 -0
  138. package/dist/models/VirtualMachineDisk.js +4 -0
  139. package/dist/models/VirtualMachineIdentity.d.ts +34 -0
  140. package/dist/models/VirtualMachineIdentity.js +54 -0
  141. package/dist/models/index.d.ts +17 -0
  142. package/dist/models/index.js +17 -0
  143. package/dist/runtime.js +4 -3
  144. package/docs/AgentStatus.md +2 -0
  145. package/docs/Appliance.md +44 -0
  146. package/docs/ApplianceListResponse.md +34 -0
  147. package/docs/ApplianceRule.md +50 -0
  148. package/docs/ApplianceRuleCondition.md +39 -0
  149. package/docs/ApplianceRuleFunction.md +37 -0
  150. package/docs/ApplianceRuleListResponse.md +34 -0
  151. package/docs/ApplianceRuleRequest.md +46 -0
  152. package/docs/AppliancesApi.md +414 -0
  153. package/docs/ApplicationOverview.md +8 -0
  154. package/docs/CollectorApi.md +0 -70
  155. package/docs/Datastore.md +4 -0
  156. package/docs/DiskGeometryCondition.md +38 -0
  157. package/docs/GroupsApi.md +72 -4
  158. package/docs/Host.md +8 -0
  159. package/docs/ImageUpgradeApi.md +82 -0
  160. package/docs/ImageUpgradeImage.md +36 -0
  161. package/docs/ImageUpgradeResult.md +46 -0
  162. package/docs/ImageUpgradeStatus.md +40 -0
  163. package/docs/ImageUploadStatus.md +36 -0
  164. package/docs/OsInfo.md +2 -0
  165. package/docs/Product.md +52 -0
  166. package/docs/RDMBacking.md +8 -0
  167. package/docs/RDMHostLun.md +41 -0
  168. package/docs/StorageArray.md +41 -0
  169. package/docs/SuccessfulImageUpgrade.md +38 -0
  170. package/docs/VMFilterOptionsResponse.md +4 -0
  171. package/docs/VirtualMachine.md +4 -0
  172. package/docs/VirtualMachineDatastore.md +4 -0
  173. package/docs/VirtualMachineDetail.md +2 -0
  174. package/docs/VirtualMachineDisk.md +4 -0
  175. package/docs/VirtualMachineIdentity.md +36 -0
  176. package/docs/VirtualMachinesApi.md +4 -4
  177. package/package.json +1 -1
  178. package/src/apis/AppliancesApi.ts +504 -0
  179. package/src/apis/CollectorApi.ts +0 -97
  180. package/src/apis/GroupsApi.ts +86 -6
  181. package/src/apis/ImageUpgradeApi.ts +128 -0
  182. package/src/apis/VirtualMachinesApi.ts +6 -6
  183. package/src/apis/index.ts +2 -0
  184. package/src/models/AgentStatus.ts +14 -0
  185. package/src/models/Appliance.ts +107 -0
  186. package/src/models/ApplianceListResponse.ts +72 -0
  187. package/src/models/ApplianceRule.ts +159 -0
  188. package/src/models/ApplianceRuleCondition.ts +87 -0
  189. package/src/models/ApplianceRuleFunction.ts +80 -0
  190. package/src/models/ApplianceRuleListResponse.ts +72 -0
  191. package/src/models/ApplianceRuleRequest.ts +137 -0
  192. package/src/models/ApplicationOverview.ts +26 -0
  193. package/src/models/Datastore.ts +19 -0
  194. package/src/models/DiskGeometryCondition.ts +90 -0
  195. package/src/models/Host.ts +24 -0
  196. package/src/models/ImageUpgradeImage.ts +71 -0
  197. package/src/models/ImageUpgradeResult.ts +130 -0
  198. package/src/models/ImageUpgradeStatus.ts +100 -0
  199. package/src/models/ImageUploadStatus.ts +84 -0
  200. package/src/models/OsInfo.ts +15 -0
  201. package/src/models/Product.ts +118 -0
  202. package/src/models/RDMBacking.ts +44 -0
  203. package/src/models/RDMHostLun.ts +82 -0
  204. package/src/models/StorageArray.ts +81 -0
  205. package/src/models/SuccessfulImageUpgrade.ts +78 -0
  206. package/src/models/VMFilterOptionsResponse.ts +14 -0
  207. package/src/models/VirtualMachine.ts +12 -0
  208. package/src/models/VirtualMachineDatastore.ts +20 -0
  209. package/src/models/VirtualMachineDetail.ts +13 -0
  210. package/src/models/VirtualMachineDisk.ts +12 -0
  211. package/src/models/VirtualMachineIdentity.ts +71 -0
  212. package/src/models/index.ts +17 -0
  213. package/src/runtime.ts +3 -3
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
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.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface DiskGeometryCondition
20
+ */
21
+ export interface DiskGeometryCondition {
22
+ /**
23
+ *
24
+ */
25
+ disks: Array<number>;
26
+ /**
27
+ *
28
+ */
29
+ mode: DiskGeometryConditionModeEnum;
30
+ /**
31
+ * Largest difference in MiB allowed between a required disk size and the size of a VM disk. Zero requires the sizes to match exactly.
32
+ *
33
+ */
34
+ tolerance_mib: number;
35
+ }
36
+
37
+
38
+ /**
39
+ * @export
40
+ */
41
+ export const DiskGeometryConditionModeEnum = {
42
+ Exact: 'exact',
43
+ Superset: 'superset',
44
+ } as const;
45
+ export type DiskGeometryConditionModeEnum = typeof DiskGeometryConditionModeEnum[keyof typeof DiskGeometryConditionModeEnum];
46
+
47
+
48
+ /**
49
+ * Check if a given object implements the DiskGeometryCondition interface.
50
+ */
51
+ export function instanceOfDiskGeometryCondition(value: object): value is DiskGeometryCondition {
52
+ if (!('disks' in value) || value['disks'] === undefined) return false;
53
+ if (!('mode' in value) || value['mode'] === undefined) return false;
54
+ if (!('tolerance_mib' in value) || value['tolerance_mib'] === undefined) return false;
55
+ return true;
56
+ }
57
+
58
+ export function DiskGeometryConditionFromJSON(json: any): DiskGeometryCondition {
59
+ return DiskGeometryConditionFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function DiskGeometryConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiskGeometryCondition {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'disks': json['disks'],
69
+ 'mode': json['mode'],
70
+ 'tolerance_mib': json['tolerance_mib'],
71
+ };
72
+ }
73
+
74
+ export function DiskGeometryConditionToJSON(json: any): DiskGeometryCondition {
75
+ return DiskGeometryConditionToJSONTyped(json, false);
76
+ }
77
+
78
+ export function DiskGeometryConditionToJSONTyped(value?: DiskGeometryCondition | null, ignoreDiscriminator: boolean = false): any {
79
+ if (value == null) {
80
+ return value;
81
+ }
82
+
83
+ return {
84
+
85
+ 'disks': value['disks'],
86
+ 'mode': value['mode'],
87
+ 'tolerance_mib': value['tolerance_mib'],
88
+ };
89
+ }
90
+
@@ -46,6 +46,22 @@ export interface Host {
46
46
  *
47
47
  */
48
48
  model: string;
49
+ /**
50
+ * Source datacenter name, when available.
51
+ */
52
+ datacenter?: string;
53
+ /**
54
+ * Source cluster name; omitted for standalone hosts.
55
+ */
56
+ cluster?: string;
57
+ /**
58
+ * Source-reported CPU model, when available.
59
+ */
60
+ cpuModel?: string;
61
+ /**
62
+ * Source-reported host hardware serial or service tag, when available.
63
+ */
64
+ serialNumber?: string;
49
65
  /**
50
66
  * Number of CPU cores
51
67
  */
@@ -98,6 +114,10 @@ export function HostFromJSONTyped(json: any, ignoreDiscriminator: boolean): Host
98
114
  'id': json['id'] == null ? undefined : json['id'],
99
115
  'vendor': json['vendor'],
100
116
  'model': json['model'],
117
+ 'datacenter': json['datacenter'] == null ? undefined : json['datacenter'],
118
+ 'cluster': json['cluster'] == null ? undefined : json['cluster'],
119
+ 'cpuModel': json['cpuModel'] == null ? undefined : json['cpuModel'],
120
+ 'serialNumber': json['serialNumber'] == null ? undefined : json['serialNumber'],
101
121
  'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
102
122
  'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
103
123
  'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
@@ -122,6 +142,10 @@ export function HostToJSONTyped(value?: Host | null, ignoreDiscriminator: boolea
122
142
  'id': value['id'],
123
143
  'vendor': value['vendor'],
124
144
  'model': value['model'],
145
+ 'datacenter': value['datacenter'],
146
+ 'cluster': value['cluster'],
147
+ 'cpuModel': value['cpuModel'],
148
+ 'serialNumber': value['serialNumber'],
125
149
  'cpuCores': value['cpuCores'],
126
150
  'cpuSockets': value['cpuSockets'],
127
151
  'memoryMB': value['memoryMB'],
@@ -0,0 +1,71 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
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.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ImageUpgradeImage
20
+ */
21
+ export interface ImageUpgradeImage {
22
+ /**
23
+ *
24
+ */
25
+ version: string;
26
+ /**
27
+ *
28
+ */
29
+ digest: string;
30
+ }
31
+
32
+ /**
33
+ * Check if a given object implements the ImageUpgradeImage interface.
34
+ */
35
+ export function instanceOfImageUpgradeImage(value: object): value is ImageUpgradeImage {
36
+ if (!('version' in value) || value['version'] === undefined) return false;
37
+ if (!('digest' in value) || value['digest'] === undefined) return false;
38
+ return true;
39
+ }
40
+
41
+ export function ImageUpgradeImageFromJSON(json: any): ImageUpgradeImage {
42
+ return ImageUpgradeImageFromJSONTyped(json, false);
43
+ }
44
+
45
+ export function ImageUpgradeImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageUpgradeImage {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+
51
+ 'version': json['version'],
52
+ 'digest': json['digest'],
53
+ };
54
+ }
55
+
56
+ export function ImageUpgradeImageToJSON(json: any): ImageUpgradeImage {
57
+ return ImageUpgradeImageToJSONTyped(json, false);
58
+ }
59
+
60
+ export function ImageUpgradeImageToJSONTyped(value?: ImageUpgradeImage | null, ignoreDiscriminator: boolean = false): any {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+
65
+ return {
66
+
67
+ 'version': value['version'],
68
+ 'digest': value['digest'],
69
+ };
70
+ }
71
+
@@ -0,0 +1,130 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
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, parseDate, parseDateTime, serializeDate, serializeDateTime } from '../runtime.js';
16
+ import type { ImageUpgradeImage } from './ImageUpgradeImage.js';
17
+ import {
18
+ ImageUpgradeImageFromJSON,
19
+ ImageUpgradeImageFromJSONTyped,
20
+ ImageUpgradeImageToJSON,
21
+ ImageUpgradeImageToJSONTyped,
22
+ } from './ImageUpgradeImage.js';
23
+ import type { SuccessfulImageUpgrade } from './SuccessfulImageUpgrade.js';
24
+ import {
25
+ SuccessfulImageUpgradeFromJSON,
26
+ SuccessfulImageUpgradeFromJSONTyped,
27
+ SuccessfulImageUpgradeToJSON,
28
+ SuccessfulImageUpgradeToJSONTyped,
29
+ } from './SuccessfulImageUpgrade.js';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface ImageUpgradeResult
35
+ */
36
+ export interface ImageUpgradeResult {
37
+ /**
38
+ *
39
+ */
40
+ file: string;
41
+ /**
42
+ *
43
+ */
44
+ outcome: ImageUpgradeResultOutcomeEnum;
45
+ /**
46
+ *
47
+ */
48
+ time: Date;
49
+ /**
50
+ *
51
+ */
52
+ error?: string;
53
+ /**
54
+ *
55
+ */
56
+ errorStage?: string;
57
+ /**
58
+ *
59
+ */
60
+ runningImage?: ImageUpgradeImage;
61
+ /**
62
+ *
63
+ */
64
+ lastSuccessfulUpdate?: SuccessfulImageUpgrade;
65
+ }
66
+
67
+
68
+ /**
69
+ * @export
70
+ */
71
+ export const ImageUpgradeResultOutcomeEnum = {
72
+ Applied: 'applied',
73
+ RolledBack: 'rolled-back',
74
+ Failed: 'failed',
75
+ Unchanged: 'unchanged',
76
+ } as const;
77
+ export type ImageUpgradeResultOutcomeEnum = typeof ImageUpgradeResultOutcomeEnum[keyof typeof ImageUpgradeResultOutcomeEnum];
78
+
79
+
80
+ /**
81
+ * Check if a given object implements the ImageUpgradeResult interface.
82
+ */
83
+ export function instanceOfImageUpgradeResult(value: object): value is ImageUpgradeResult {
84
+ if (!('file' in value) || value['file'] === undefined) return false;
85
+ if (!('outcome' in value) || value['outcome'] === undefined) return false;
86
+ if (!('time' in value) || value['time'] === undefined) return false;
87
+ return true;
88
+ }
89
+
90
+ export function ImageUpgradeResultFromJSON(json: any): ImageUpgradeResult {
91
+ return ImageUpgradeResultFromJSONTyped(json, false);
92
+ }
93
+
94
+ export function ImageUpgradeResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageUpgradeResult {
95
+ if (json == null) {
96
+ return json;
97
+ }
98
+ return {
99
+
100
+ 'file': json['file'],
101
+ 'outcome': json['outcome'],
102
+ 'time': (json['time'] == null ? json['time'] : parseDateTime(json['time'])),
103
+ 'error': json['error'] == null ? undefined : json['error'],
104
+ 'errorStage': json['errorStage'] == null ? undefined : json['errorStage'],
105
+ 'runningImage': json['runningImage'] == null ? undefined : ImageUpgradeImageFromJSON(json['runningImage']),
106
+ 'lastSuccessfulUpdate': json['lastSuccessfulUpdate'] == null ? undefined : SuccessfulImageUpgradeFromJSON(json['lastSuccessfulUpdate']),
107
+ };
108
+ }
109
+
110
+ export function ImageUpgradeResultToJSON(json: any): ImageUpgradeResult {
111
+ return ImageUpgradeResultToJSONTyped(json, false);
112
+ }
113
+
114
+ export function ImageUpgradeResultToJSONTyped(value?: ImageUpgradeResult | null, ignoreDiscriminator: boolean = false): any {
115
+ if (value == null) {
116
+ return value;
117
+ }
118
+
119
+ return {
120
+
121
+ 'file': value['file'],
122
+ 'outcome': value['outcome'],
123
+ 'time': value['time'] == null ? value['time'] : serializeDateTime(value['time']),
124
+ 'error': value['error'],
125
+ 'errorStage': value['errorStage'],
126
+ 'runningImage': ImageUpgradeImageToJSON(value['runningImage']),
127
+ 'lastSuccessfulUpdate': SuccessfulImageUpgradeToJSON(value['lastSuccessfulUpdate']),
128
+ };
129
+ }
130
+
@@ -0,0 +1,100 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
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.js';
16
+ import type { ImageUpgradeResult } from './ImageUpgradeResult.js';
17
+ import {
18
+ ImageUpgradeResultFromJSON,
19
+ ImageUpgradeResultFromJSONTyped,
20
+ ImageUpgradeResultToJSON,
21
+ ImageUpgradeResultToJSONTyped,
22
+ } from './ImageUpgradeResult.js';
23
+ import type { ImageUploadStatus } from './ImageUploadStatus.js';
24
+ import {
25
+ ImageUploadStatusFromJSON,
26
+ ImageUploadStatusFromJSONTyped,
27
+ ImageUploadStatusToJSON,
28
+ ImageUploadStatusToJSONTyped,
29
+ } from './ImageUploadStatus.js';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface ImageUpgradeStatus
35
+ */
36
+ export interface ImageUpgradeStatus {
37
+ /**
38
+ *
39
+ */
40
+ currentVersion: string;
41
+ /**
42
+ *
43
+ */
44
+ upload: ImageUploadStatus;
45
+ /**
46
+ * Last host upgrade result, or null if it is missing or cannot be read.
47
+ */
48
+ upgrade: ImageUpgradeResult | null;
49
+ /**
50
+ * Error reading the host upgrade result, independent of upload errors. Null when there is no read error.
51
+ */
52
+ upgradeError: string | null;
53
+ }
54
+
55
+ /**
56
+ * Check if a given object implements the ImageUpgradeStatus interface.
57
+ */
58
+ export function instanceOfImageUpgradeStatus(value: object): value is ImageUpgradeStatus {
59
+ if (!('currentVersion' in value) || value['currentVersion'] === undefined) return false;
60
+ if (!('upload' in value) || value['upload'] === undefined) return false;
61
+ if (!('upgrade' in value) || value['upgrade'] === undefined) return false;
62
+ if (!('upgradeError' in value) || value['upgradeError'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function ImageUpgradeStatusFromJSON(json: any): ImageUpgradeStatus {
67
+ return ImageUpgradeStatusFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function ImageUpgradeStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageUpgradeStatus {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'currentVersion': json['currentVersion'],
77
+ 'upload': ImageUploadStatusFromJSON(json['upload']),
78
+ 'upgrade': ImageUpgradeResultFromJSON(json['upgrade']),
79
+ 'upgradeError': json['upgradeError'],
80
+ };
81
+ }
82
+
83
+ export function ImageUpgradeStatusToJSON(json: any): ImageUpgradeStatus {
84
+ return ImageUpgradeStatusToJSONTyped(json, false);
85
+ }
86
+
87
+ export function ImageUpgradeStatusToJSONTyped(value?: ImageUpgradeStatus | null, ignoreDiscriminator: boolean = false): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+
92
+ return {
93
+
94
+ 'currentVersion': value['currentVersion'],
95
+ 'upload': ImageUploadStatusToJSON(value['upload']),
96
+ 'upgrade': ImageUpgradeResultToJSON(value['upgrade']),
97
+ 'upgradeError': value['upgradeError'],
98
+ };
99
+ }
100
+
@@ -0,0 +1,84 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
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.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ImageUploadStatus
20
+ */
21
+ export interface ImageUploadStatus {
22
+ /**
23
+ * Agent upload activity only; idle does not indicate whether the host is running an upgrade. Unknown means the upload state is unavailable. An unreadable host result does not change this state.
24
+ */
25
+ state: ImageUploadStatusStateEnum;
26
+ /**
27
+ * Last upload error, or an upload-state availability error when state is unknown. Host result read errors are reported in upgradeError.
28
+ */
29
+ lastError: string | null;
30
+ }
31
+
32
+
33
+ /**
34
+ * @export
35
+ */
36
+ export const ImageUploadStatusStateEnum = {
37
+ Idle: 'idle',
38
+ Uploading: 'uploading',
39
+ Validating: 'validating',
40
+ Unknown: 'unknown',
41
+ } as const;
42
+ export type ImageUploadStatusStateEnum = typeof ImageUploadStatusStateEnum[keyof typeof ImageUploadStatusStateEnum];
43
+
44
+
45
+ /**
46
+ * Check if a given object implements the ImageUploadStatus interface.
47
+ */
48
+ export function instanceOfImageUploadStatus(value: object): value is ImageUploadStatus {
49
+ if (!('state' in value) || value['state'] === undefined) return false;
50
+ if (!('lastError' in value) || value['lastError'] === undefined) return false;
51
+ return true;
52
+ }
53
+
54
+ export function ImageUploadStatusFromJSON(json: any): ImageUploadStatus {
55
+ return ImageUploadStatusFromJSONTyped(json, false);
56
+ }
57
+
58
+ export function ImageUploadStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageUploadStatus {
59
+ if (json == null) {
60
+ return json;
61
+ }
62
+ return {
63
+
64
+ 'state': json['state'],
65
+ 'lastError': json['lastError'],
66
+ };
67
+ }
68
+
69
+ export function ImageUploadStatusToJSON(json: any): ImageUploadStatus {
70
+ return ImageUploadStatusToJSONTyped(json, false);
71
+ }
72
+
73
+ export function ImageUploadStatusToJSONTyped(value?: ImageUploadStatus | null, ignoreDiscriminator: boolean = false): any {
74
+ if (value == null) {
75
+ return value;
76
+ }
77
+
78
+ return {
79
+
80
+ 'state': value['state'],
81
+ 'lastError': value['lastError'],
82
+ };
83
+ }
84
+
@@ -31,6 +31,10 @@ export interface OsInfo {
31
31
  * OS support tier per Red Hat KCS article 4234591
32
32
  */
33
33
  supportTier?: OsInfoSupportTierEnum;
34
+ /**
35
+ * MTV verification per Red Hat KCS article 4234591. Green means tested and verified; blue means successfully running on the target cluster. Omitted when the OS/architecture has no listed status.
36
+ */
37
+ mtvStatus?: OsInfoMtvStatusEnum;
34
38
  /**
35
39
  * Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
36
40
  */
@@ -49,6 +53,15 @@ export const OsInfoSupportTierEnum = {
49
53
  } as const;
50
54
  export type OsInfoSupportTierEnum = typeof OsInfoSupportTierEnum[keyof typeof OsInfoSupportTierEnum];
51
55
 
56
+ /**
57
+ * @export
58
+ */
59
+ export const OsInfoMtvStatusEnum = {
60
+ Green: 'green',
61
+ Blue: 'blue',
62
+ } as const;
63
+ export type OsInfoMtvStatusEnum = typeof OsInfoMtvStatusEnum[keyof typeof OsInfoMtvStatusEnum];
64
+
52
65
 
53
66
  /**
54
67
  * Check if a given object implements the OsInfo interface.
@@ -72,6 +85,7 @@ export function OsInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): Os
72
85
  'count': json['count'],
73
86
  'supported': json['supported'],
74
87
  'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
88
+ 'mtvStatus': json['mtvStatus'] == null ? undefined : json['mtvStatus'],
75
89
  'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
76
90
  };
77
91
  }
@@ -90,6 +104,7 @@ export function OsInfoToJSONTyped(value?: OsInfo | null, ignoreDiscriminator: bo
90
104
  'count': value['count'],
91
105
  'supported': value['supported'],
92
106
  'supportTier': value['supportTier'],
107
+ 'mtvStatus': value['mtvStatus'],
93
108
  'upgradeRecommendation': value['upgradeRecommendation'],
94
109
  };
95
110
  }
@@ -0,0 +1,118 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
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.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface Product
20
+ */
21
+ export interface Product {
22
+ /**
23
+ * Product key
24
+ */
25
+ key: number;
26
+ /**
27
+ * Product class identifier
28
+ */
29
+ classId?: string;
30
+ /**
31
+ * Product instance identifier
32
+ */
33
+ instanceId?: string;
34
+ /**
35
+ * Product name
36
+ */
37
+ name?: string;
38
+ /**
39
+ * Product vendor
40
+ */
41
+ vendor?: string;
42
+ /**
43
+ * Product version
44
+ */
45
+ version?: string;
46
+ /**
47
+ * Full product version
48
+ */
49
+ fullVersion?: string;
50
+ /**
51
+ * Product vendor URL
52
+ */
53
+ vendorUrl?: string;
54
+ /**
55
+ * Product URL
56
+ */
57
+ productUrl?: string;
58
+ /**
59
+ * Application URL
60
+ */
61
+ appUrl?: string;
62
+ }
63
+
64
+ /**
65
+ * Check if a given object implements the Product interface.
66
+ */
67
+ export function instanceOfProduct(value: object): value is Product {
68
+ if (!('key' in value) || value['key'] === undefined) return false;
69
+ return true;
70
+ }
71
+
72
+ export function ProductFromJSON(json: any): Product {
73
+ return ProductFromJSONTyped(json, false);
74
+ }
75
+
76
+ export function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): Product {
77
+ if (json == null) {
78
+ return json;
79
+ }
80
+ return {
81
+
82
+ 'key': json['key'],
83
+ 'classId': json['classId'] == null ? undefined : json['classId'],
84
+ 'instanceId': json['instanceId'] == null ? undefined : json['instanceId'],
85
+ 'name': json['name'] == null ? undefined : json['name'],
86
+ 'vendor': json['vendor'] == null ? undefined : json['vendor'],
87
+ 'version': json['version'] == null ? undefined : json['version'],
88
+ 'fullVersion': json['fullVersion'] == null ? undefined : json['fullVersion'],
89
+ 'vendorUrl': json['vendorUrl'] == null ? undefined : json['vendorUrl'],
90
+ 'productUrl': json['productUrl'] == null ? undefined : json['productUrl'],
91
+ 'appUrl': json['appUrl'] == null ? undefined : json['appUrl'],
92
+ };
93
+ }
94
+
95
+ export function ProductToJSON(json: any): Product {
96
+ return ProductToJSONTyped(json, false);
97
+ }
98
+
99
+ export function ProductToJSONTyped(value?: Product | null, ignoreDiscriminator: boolean = false): any {
100
+ if (value == null) {
101
+ return value;
102
+ }
103
+
104
+ return {
105
+
106
+ 'key': value['key'],
107
+ 'classId': value['classId'],
108
+ 'instanceId': value['instanceId'],
109
+ 'name': value['name'],
110
+ 'vendor': value['vendor'],
111
+ 'version': value['version'],
112
+ 'fullVersion': value['fullVersion'],
113
+ 'vendorUrl': value['vendorUrl'],
114
+ 'productUrl': value['productUrl'],
115
+ 'appUrl': value['appUrl'],
116
+ };
117
+ }
118
+