@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
@@ -3,6 +3,13 @@
3
3
  export * from './AgentModeRequest.js';
4
4
  export * from './AgentStatus.js';
5
5
  export * from './AgentStatusConsoleConnection.js';
6
+ export * from './Appliance.js';
7
+ export * from './ApplianceListResponse.js';
8
+ export * from './ApplianceRule.js';
9
+ export * from './ApplianceRuleCondition.js';
10
+ export * from './ApplianceRuleFunction.js';
11
+ export * from './ApplianceRuleListResponse.js';
12
+ export * from './ApplianceRuleRequest.js';
6
13
  export * from './ApplicationListResponse.js';
7
14
  export * from './ApplicationOverview.js';
8
15
  export * from './ApplicationVM.js';
@@ -28,6 +35,7 @@ export * from './Datastore.js';
28
35
  export * from './DatastoreDetail.js';
29
36
  export * from './DatastorePairRequest.js';
30
37
  export * from './DeleteLabelGloballyResponse.js';
38
+ export * from './DiskGeometryCondition.js';
31
39
  export * from './DiskSizeTierSummary.js';
32
40
  export * from './DiskTypeSummary.js';
33
41
  export * from './EstimateRange.js';
@@ -43,6 +51,10 @@ export * from './Host.js';
43
51
  export * from './HostPhysicalNIC.js';
44
52
  export * from './HostStorageAdapter.js';
45
53
  export * from './HostStorageLun.js';
54
+ export * from './ImageUpgradeImage.js';
55
+ export * from './ImageUpgradeResult.js';
56
+ export * from './ImageUpgradeStatus.js';
57
+ export * from './ImageUploadStatus.js';
46
58
  export * from './Infra.js';
47
59
  export * from './InspectionStatus.js';
48
60
  export * from './InspectorStatus.js';
@@ -56,13 +68,17 @@ export * from './OsInfo.js';
56
68
  export * from './PairCapability.js';
57
69
  export * from './PairCapabilityRequest.js';
58
70
  export * from './Process.js';
71
+ export * from './Product.js';
59
72
  export * from './RDMBacking.js';
73
+ export * from './RDMHostLun.js';
60
74
  export * from './RightsizingClusterResponse.js';
61
75
  export * from './RightsizingClusterUtilization.js';
62
76
  export * from './StartForecasterRequest.js';
63
77
  export * from './StartInspectionRequest.js';
64
78
  export * from './StopForecasterPair202Response.js';
79
+ export * from './StorageArray.js';
65
80
  export * from './StorageIoConfiguration.js';
81
+ export * from './SuccessfulImageUpgrade.js';
66
82
  export * from './UpdateGroupRequest.js';
67
83
  export * from './UpdateInventory.js';
68
84
  export * from './UpdateLabelVMsRequest.js';
@@ -79,6 +95,7 @@ export * from './VirtualMachineDatastore.js';
79
95
  export * from './VirtualMachineDetail.js';
80
96
  export * from './VirtualMachineDevice.js';
81
97
  export * from './VirtualMachineDisk.js';
98
+ export * from './VirtualMachineIdentity.js';
82
99
  export * from './VirtualMachineInspectionConcern.js';
83
100
  export * from './VirtualMachineInspectionResults.js';
84
101
  export * from './VirtualMachineIssue.js';
@@ -419,7 +419,7 @@ export function parseContentDispositionFilename(headers) {
419
419
  function decodeExtValue(value) {
420
420
  const match = value === undefined ? null : /^utf-8'[^']*'(.*)$/i.exec(value);
421
421
  try {
422
- return match ? decodeURIComponent(match[1]) : undefined;
422
+ return (match === null || match === void 0 ? void 0 : match[1]) !== undefined ? decodeURIComponent(match[1]) : undefined;
423
423
  }
424
424
  catch (_a) {
425
425
  return undefined;
@@ -431,13 +431,14 @@ function decodeExtValue(value) {
431
431
  * backslash escapes resolved, and the first occurrence of a name wins.
432
432
  */
433
433
  function parseHeaderParameters(value) {
434
+ var _a, _b;
434
435
  const params = new Map();
435
436
  const parameter = /(?:^|;)\s*([^=;]+?)\s*=\s*(?:"((?:[^"\\]|\\.)*)"?|([^;]*))/g;
436
437
  let match;
437
438
  while ((match = parameter.exec(value)) !== null) {
438
- const name = match[1].toLowerCase();
439
+ const name = ((_a = match[1]) !== null && _a !== void 0 ? _a : '').toLowerCase();
439
440
  if (!params.has(name)) {
440
- params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : match[3].trim());
441
+ params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : ((_b = match[3]) !== null && _b !== void 0 ? _b : '').trim());
441
442
  }
442
443
  }
443
444
  return params;
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ImageUpgradeStatus } from './ImageUpgradeStatus.js';
12
13
  import type { AgentStatusConsoleConnection } from './AgentStatusConsoleConnection.js';
13
14
  /**
14
15
  *
@@ -28,6 +29,10 @@ export interface AgentStatus {
28
29
  * RVTool mode enabled
29
30
  */
30
31
  rvtoolsModeEnabled?: boolean;
32
+ /**
33
+ * Always present in both connected and disconnected modes, including while the console is unreachable. Includes upload activity and the last host image upgrade result. Image upgrade status errors do not fail the agent-status response.
34
+ */
35
+ imageUpgradeStatus: ImageUpgradeStatus;
31
36
  }
32
37
  /**
33
38
  * @export
@@ -19,6 +19,7 @@ exports.AgentStatusFromJSON = AgentStatusFromJSON;
19
19
  exports.AgentStatusFromJSONTyped = AgentStatusFromJSONTyped;
20
20
  exports.AgentStatusToJSON = AgentStatusToJSON;
21
21
  exports.AgentStatusToJSONTyped = AgentStatusToJSONTyped;
22
+ const ImageUpgradeStatus_js_1 = require("./ImageUpgradeStatus.js");
22
23
  const AgentStatusConsoleConnection_js_1 = require("./AgentStatusConsoleConnection.js");
23
24
  /**
24
25
  * @export
@@ -35,6 +36,8 @@ function instanceOfAgentStatus(value) {
35
36
  return false;
36
37
  if (!('consoleConnection' in value) || value['consoleConnection'] === undefined)
37
38
  return false;
39
+ if (!('imageUpgradeStatus' in value) || value['imageUpgradeStatus'] === undefined)
40
+ return false;
38
41
  return true;
39
42
  }
40
43
  function AgentStatusFromJSON(json) {
@@ -48,6 +51,7 @@ function AgentStatusFromJSONTyped(json, ignoreDiscriminator) {
48
51
  'mode': json['mode'],
49
52
  'consoleConnection': (0, AgentStatusConsoleConnection_js_1.AgentStatusConsoleConnectionFromJSON)(json['consoleConnection']),
50
53
  'rvtoolsModeEnabled': json['rvtoolsModeEnabled'] == null ? undefined : json['rvtoolsModeEnabled'],
54
+ 'imageUpgradeStatus': (0, ImageUpgradeStatus_js_1.ImageUpgradeStatusFromJSON)(json['imageUpgradeStatus']),
51
55
  };
52
56
  }
53
57
  function AgentStatusToJSON(json) {
@@ -61,5 +65,6 @@ function AgentStatusToJSONTyped(value, ignoreDiscriminator = false) {
61
65
  'mode': value['mode'],
62
66
  'consoleConnection': (0, AgentStatusConsoleConnection_js_1.AgentStatusConsoleConnectionToJSON)(value['consoleConnection']),
63
67
  'rvtoolsModeEnabled': value['rvtoolsModeEnabled'],
68
+ 'imageUpgradeStatus': (0, ImageUpgradeStatus_js_1.ImageUpgradeStatusToJSON)(value['imageUpgradeStatus']),
64
69
  };
65
70
  }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { VirtualMachineIdentity } from './VirtualMachineIdentity.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface Appliance
17
+ */
18
+ export interface Appliance {
19
+ /**
20
+ * Appliance product name
21
+ */
22
+ name: string;
23
+ /**
24
+ * Appliance vendor; defaults to Unknown when not reported
25
+ */
26
+ vendor: string;
27
+ /**
28
+ * Appliance product version; defaults to empty when not reported
29
+ */
30
+ version: string;
31
+ /**
32
+ *
33
+ */
34
+ confidence: number;
35
+ /**
36
+ * Number of VMs running this appliance
37
+ */
38
+ vmCount: number;
39
+ /**
40
+ *
41
+ */
42
+ vms: Array<VirtualMachineIdentity>;
43
+ }
44
+ /**
45
+ * Check if a given object implements the Appliance interface.
46
+ */
47
+ export declare function instanceOfAppliance(value: object): value is Appliance;
48
+ export declare function ApplianceFromJSON(json: any): Appliance;
49
+ export declare function ApplianceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Appliance;
50
+ export declare function ApplianceToJSON(json: any): Appliance;
51
+ export declare function ApplianceToJSONTyped(value?: Appliance | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v2
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAppliance = instanceOfAppliance;
17
+ exports.ApplianceFromJSON = ApplianceFromJSON;
18
+ exports.ApplianceFromJSONTyped = ApplianceFromJSONTyped;
19
+ exports.ApplianceToJSON = ApplianceToJSON;
20
+ exports.ApplianceToJSONTyped = ApplianceToJSONTyped;
21
+ const VirtualMachineIdentity_js_1 = require("./VirtualMachineIdentity.js");
22
+ /**
23
+ * Check if a given object implements the Appliance interface.
24
+ */
25
+ function instanceOfAppliance(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ if (!('vendor' in value) || value['vendor'] === undefined)
29
+ return false;
30
+ if (!('version' in value) || value['version'] === undefined)
31
+ return false;
32
+ if (!('confidence' in value) || value['confidence'] === undefined)
33
+ return false;
34
+ if (!('vmCount' in value) || value['vmCount'] === undefined)
35
+ return false;
36
+ if (!('vms' in value) || value['vms'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function ApplianceFromJSON(json) {
41
+ return ApplianceFromJSONTyped(json, false);
42
+ }
43
+ function ApplianceFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'name': json['name'],
49
+ 'vendor': json['vendor'],
50
+ 'version': json['version'],
51
+ 'confidence': json['confidence'],
52
+ 'vmCount': json['vmCount'],
53
+ 'vms': (json['vms'].map(VirtualMachineIdentity_js_1.VirtualMachineIdentityFromJSON)),
54
+ };
55
+ }
56
+ function ApplianceToJSON(json) {
57
+ return ApplianceToJSONTyped(json, false);
58
+ }
59
+ function ApplianceToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'name': value['name'],
65
+ 'vendor': value['vendor'],
66
+ 'version': value['version'],
67
+ 'confidence': value['confidence'],
68
+ 'vmCount': value['vmCount'],
69
+ 'vms': (value['vms'].map(VirtualMachineIdentity_js_1.VirtualMachineIdentityToJSON)),
70
+ };
71
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Appliance } from './Appliance.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApplianceListResponse
17
+ */
18
+ export interface ApplianceListResponse {
19
+ /**
20
+ *
21
+ */
22
+ appliances: Array<Appliance>;
23
+ }
24
+ /**
25
+ * Check if a given object implements the ApplianceListResponse interface.
26
+ */
27
+ export declare function instanceOfApplianceListResponse(value: object): value is ApplianceListResponse;
28
+ export declare function ApplianceListResponseFromJSON(json: any): ApplianceListResponse;
29
+ export declare function ApplianceListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceListResponse;
30
+ export declare function ApplianceListResponseToJSON(json: any): ApplianceListResponse;
31
+ export declare function ApplianceListResponseToJSONTyped(value?: ApplianceListResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v2
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfApplianceListResponse = instanceOfApplianceListResponse;
17
+ exports.ApplianceListResponseFromJSON = ApplianceListResponseFromJSON;
18
+ exports.ApplianceListResponseFromJSONTyped = ApplianceListResponseFromJSONTyped;
19
+ exports.ApplianceListResponseToJSON = ApplianceListResponseToJSON;
20
+ exports.ApplianceListResponseToJSONTyped = ApplianceListResponseToJSONTyped;
21
+ const Appliance_js_1 = require("./Appliance.js");
22
+ /**
23
+ * Check if a given object implements the ApplianceListResponse interface.
24
+ */
25
+ function instanceOfApplianceListResponse(value) {
26
+ if (!('appliances' in value) || value['appliances'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function ApplianceListResponseFromJSON(json) {
31
+ return ApplianceListResponseFromJSONTyped(json, false);
32
+ }
33
+ function ApplianceListResponseFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'appliances': (json['appliances'].map(Appliance_js_1.ApplianceFromJSON)),
39
+ };
40
+ }
41
+ function ApplianceListResponseToJSON(json) {
42
+ return ApplianceListResponseToJSONTyped(json, false);
43
+ }
44
+ function ApplianceListResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'appliances': (value['appliances'].map(Appliance_js_1.ApplianceToJSON)),
50
+ };
51
+ }
@@ -0,0 +1,90 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ApplianceRuleCondition } from './ApplianceRuleCondition.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApplianceRule
17
+ */
18
+ export interface ApplianceRule {
19
+ /**
20
+ * Rule ID
21
+ */
22
+ id?: string;
23
+ /**
24
+ * Appliance product name
25
+ */
26
+ name: string;
27
+ /**
28
+ * Appliance vendor
29
+ */
30
+ vendor: string;
31
+ /**
32
+ * Appliance category
33
+ */
34
+ category: string;
35
+ /**
36
+ * OSV migration verdict
37
+ */
38
+ osv_verdict: ApplianceRuleOsvVerdictEnum;
39
+ /**
40
+ * Confidence ceiling for this rule
41
+ */
42
+ max_confidence: ApplianceRuleMaxConfidenceEnum;
43
+ /**
44
+ * Kind of rules either default or custom
45
+ */
46
+ kind: ApplianceRuleKindEnum;
47
+ /**
48
+ * Number of conditions that must match before the rule fires
49
+ */
50
+ min_matched: number;
51
+ /**
52
+ *
53
+ */
54
+ conditions: Array<ApplianceRuleCondition>;
55
+ }
56
+ /**
57
+ * @export
58
+ */
59
+ export declare const ApplianceRuleOsvVerdictEnum: {
60
+ readonly Blocked: "blocked";
61
+ readonly Conditional: "conditional";
62
+ readonly Supported: "supported";
63
+ readonly Unknown: "unknown";
64
+ };
65
+ export type ApplianceRuleOsvVerdictEnum = typeof ApplianceRuleOsvVerdictEnum[keyof typeof ApplianceRuleOsvVerdictEnum];
66
+ /**
67
+ * @export
68
+ */
69
+ export declare const ApplianceRuleMaxConfidenceEnum: {
70
+ readonly High: "high";
71
+ readonly Medium: "medium";
72
+ readonly Low: "low";
73
+ };
74
+ export type ApplianceRuleMaxConfidenceEnum = typeof ApplianceRuleMaxConfidenceEnum[keyof typeof ApplianceRuleMaxConfidenceEnum];
75
+ /**
76
+ * @export
77
+ */
78
+ export declare const ApplianceRuleKindEnum: {
79
+ readonly Default: "default";
80
+ readonly Custom: "custom";
81
+ };
82
+ export type ApplianceRuleKindEnum = typeof ApplianceRuleKindEnum[keyof typeof ApplianceRuleKindEnum];
83
+ /**
84
+ * Check if a given object implements the ApplianceRule interface.
85
+ */
86
+ export declare function instanceOfApplianceRule(value: object): value is ApplianceRule;
87
+ export declare function ApplianceRuleFromJSON(json: any): ApplianceRule;
88
+ export declare function ApplianceRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceRule;
89
+ export declare function ApplianceRuleToJSON(json: any): ApplianceRule;
90
+ export declare function ApplianceRuleToJSONTyped(value?: ApplianceRule | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v2
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ApplianceRuleKindEnum = exports.ApplianceRuleMaxConfidenceEnum = exports.ApplianceRuleOsvVerdictEnum = void 0;
17
+ exports.instanceOfApplianceRule = instanceOfApplianceRule;
18
+ exports.ApplianceRuleFromJSON = ApplianceRuleFromJSON;
19
+ exports.ApplianceRuleFromJSONTyped = ApplianceRuleFromJSONTyped;
20
+ exports.ApplianceRuleToJSON = ApplianceRuleToJSON;
21
+ exports.ApplianceRuleToJSONTyped = ApplianceRuleToJSONTyped;
22
+ const ApplianceRuleCondition_js_1 = require("./ApplianceRuleCondition.js");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.ApplianceRuleOsvVerdictEnum = {
27
+ Blocked: 'blocked',
28
+ Conditional: 'conditional',
29
+ Supported: 'supported',
30
+ Unknown: 'unknown',
31
+ };
32
+ /**
33
+ * @export
34
+ */
35
+ exports.ApplianceRuleMaxConfidenceEnum = {
36
+ High: 'high',
37
+ Medium: 'medium',
38
+ Low: 'low',
39
+ };
40
+ /**
41
+ * @export
42
+ */
43
+ exports.ApplianceRuleKindEnum = {
44
+ Default: 'default',
45
+ Custom: 'custom',
46
+ };
47
+ /**
48
+ * Check if a given object implements the ApplianceRule interface.
49
+ */
50
+ function instanceOfApplianceRule(value) {
51
+ if (!('name' in value) || value['name'] === undefined)
52
+ return false;
53
+ if (!('vendor' in value) || value['vendor'] === undefined)
54
+ return false;
55
+ if (!('category' in value) || value['category'] === undefined)
56
+ return false;
57
+ if (!('osv_verdict' in value) || value['osv_verdict'] === undefined)
58
+ return false;
59
+ if (!('max_confidence' in value) || value['max_confidence'] === undefined)
60
+ return false;
61
+ if (!('kind' in value) || value['kind'] === undefined)
62
+ return false;
63
+ if (!('min_matched' in value) || value['min_matched'] === undefined)
64
+ return false;
65
+ if (!('conditions' in value) || value['conditions'] === undefined)
66
+ return false;
67
+ return true;
68
+ }
69
+ function ApplianceRuleFromJSON(json) {
70
+ return ApplianceRuleFromJSONTyped(json, false);
71
+ }
72
+ function ApplianceRuleFromJSONTyped(json, ignoreDiscriminator) {
73
+ if (json == null) {
74
+ return json;
75
+ }
76
+ return {
77
+ 'id': json['id'] == null ? undefined : json['id'],
78
+ 'name': json['name'],
79
+ 'vendor': json['vendor'],
80
+ 'category': json['category'],
81
+ 'osv_verdict': json['osv_verdict'],
82
+ 'max_confidence': json['max_confidence'],
83
+ 'kind': json['kind'],
84
+ 'min_matched': json['min_matched'],
85
+ 'conditions': (json['conditions'].map(ApplianceRuleCondition_js_1.ApplianceRuleConditionFromJSON)),
86
+ };
87
+ }
88
+ function ApplianceRuleToJSON(json) {
89
+ return ApplianceRuleToJSONTyped(json, false);
90
+ }
91
+ function ApplianceRuleToJSONTyped(value, ignoreDiscriminator = false) {
92
+ if (value == null) {
93
+ return value;
94
+ }
95
+ return {
96
+ 'id': value['id'],
97
+ 'name': value['name'],
98
+ 'vendor': value['vendor'],
99
+ 'category': value['category'],
100
+ 'osv_verdict': value['osv_verdict'],
101
+ 'max_confidence': value['max_confidence'],
102
+ 'kind': value['kind'],
103
+ 'min_matched': value['min_matched'],
104
+ 'conditions': (value['conditions'].map(ApplianceRuleCondition_js_1.ApplianceRuleConditionToJSON)),
105
+ };
106
+ }
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ApplianceRuleFunction } from './ApplianceRuleFunction.js';
13
+ /**
14
+ * One condition. Either a filter expression over VM attributes or a call to a registered predicate function carrying its own payload. Exactly one of expression or function must be set. Condition names must be unique within a rule, and min_matched may not exceed the number of conditions.
15
+ *
16
+ * @export
17
+ * @interface ApplianceRuleCondition
18
+ */
19
+ export interface ApplianceRuleCondition {
20
+ /**
21
+ * Condition name, unique within the rule. The name decides how much a match contributes: vapp_product and annotation weigh high, guest_id and mount_preffix medium, nic_count, disk_geometry and nested_hv low, and name weighs so little that matching it alone is not a detection. Any other name is rejected.
22
+ *
23
+ */
24
+ name: string;
25
+ /**
26
+ * Filter DSL expression over the VM attributes appliance rules can match on, e.g. Name ~ /^ORA-/ or NICCount > 3.
27
+ *
28
+ */
29
+ expression?: string;
30
+ /**
31
+ *
32
+ */
33
+ _function?: ApplianceRuleFunction;
34
+ }
35
+ /**
36
+ * Check if a given object implements the ApplianceRuleCondition interface.
37
+ */
38
+ export declare function instanceOfApplianceRuleCondition(value: object): value is ApplianceRuleCondition;
39
+ export declare function ApplianceRuleConditionFromJSON(json: any): ApplianceRuleCondition;
40
+ export declare function ApplianceRuleConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceRuleCondition;
41
+ export declare function ApplianceRuleConditionToJSON(json: any): ApplianceRuleCondition;
42
+ export declare function ApplianceRuleConditionToJSONTyped(value?: ApplianceRuleCondition | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v2
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfApplianceRuleCondition = instanceOfApplianceRuleCondition;
17
+ exports.ApplianceRuleConditionFromJSON = ApplianceRuleConditionFromJSON;
18
+ exports.ApplianceRuleConditionFromJSONTyped = ApplianceRuleConditionFromJSONTyped;
19
+ exports.ApplianceRuleConditionToJSON = ApplianceRuleConditionToJSON;
20
+ exports.ApplianceRuleConditionToJSONTyped = ApplianceRuleConditionToJSONTyped;
21
+ const ApplianceRuleFunction_js_1 = require("./ApplianceRuleFunction.js");
22
+ /**
23
+ * Check if a given object implements the ApplianceRuleCondition interface.
24
+ */
25
+ function instanceOfApplianceRuleCondition(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function ApplianceRuleConditionFromJSON(json) {
31
+ return ApplianceRuleConditionFromJSONTyped(json, false);
32
+ }
33
+ function ApplianceRuleConditionFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'name': json['name'],
39
+ 'expression': json['expression'] == null ? undefined : json['expression'],
40
+ '_function': json['function'] == null ? undefined : (0, ApplianceRuleFunction_js_1.ApplianceRuleFunctionFromJSON)(json['function']),
41
+ };
42
+ }
43
+ function ApplianceRuleConditionToJSON(json) {
44
+ return ApplianceRuleConditionToJSONTyped(json, false);
45
+ }
46
+ function ApplianceRuleConditionToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'name': value['name'],
52
+ 'expression': value['expression'],
53
+ 'function': (0, ApplianceRuleFunction_js_1.ApplianceRuleFunctionToJSON)(value['_function']),
54
+ };
55
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { DiskGeometryCondition } from './DiskGeometryCondition.js';
13
+ /**
14
+ * A registered predicate selected by name. Exactly one payload field, the one matching name, must be set; the payload is validated server-side against the predicate the name resolves to.
15
+ *
16
+ * @export
17
+ * @interface ApplianceRuleFunction
18
+ */
19
+ export interface ApplianceRuleFunction {
20
+ /**
21
+ * Predicate name. disk_geometry is the only one defined; any other name is rejected.
22
+ *
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ */
28
+ disk_geometry?: DiskGeometryCondition;
29
+ }
30
+ /**
31
+ * Check if a given object implements the ApplianceRuleFunction interface.
32
+ */
33
+ export declare function instanceOfApplianceRuleFunction(value: object): value is ApplianceRuleFunction;
34
+ export declare function ApplianceRuleFunctionFromJSON(json: any): ApplianceRuleFunction;
35
+ export declare function ApplianceRuleFunctionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceRuleFunction;
36
+ export declare function ApplianceRuleFunctionToJSON(json: any): ApplianceRuleFunction;
37
+ export declare function ApplianceRuleFunctionToJSONTyped(value?: ApplianceRuleFunction | null, ignoreDiscriminator?: boolean): any;