@openshift-migration-advisor/planner-sdk 0.20.3 → 0.21.0-515d930cc594

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 (191) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +16 -3
  4. package/dist/apis/AccountApi.js +1 -1
  5. package/dist/apis/AssessmentApi.d.ts +81 -0
  6. package/dist/apis/AssessmentApi.js +84 -0
  7. package/dist/esm/apis/AccountApi.js +1 -1
  8. package/dist/esm/apis/AssessmentApi.d.ts +81 -0
  9. package/dist/esm/apis/AssessmentApi.js +84 -0
  10. package/dist/esm/models/ActiveEnvironmentsInput.d.ts +41 -0
  11. package/dist/esm/models/ActiveEnvironmentsInput.js +51 -0
  12. package/dist/esm/models/Agent.js +6 -5
  13. package/dist/esm/models/AriaAutomationInput.d.ts +51 -0
  14. package/dist/esm/models/AriaAutomationInput.js +61 -0
  15. package/dist/esm/models/AriaOpsInput.d.ts +49 -0
  16. package/dist/esm/models/AriaOpsInput.js +59 -0
  17. package/dist/esm/models/AriaSecureInput.d.ts +41 -0
  18. package/dist/esm/models/AriaSecureInput.js +51 -0
  19. package/dist/esm/models/Assessment.js +5 -4
  20. package/dist/esm/models/AssessmentSubsetInventory.js +3 -2
  21. package/dist/esm/models/ClusterFeatures.d.ts +2 -2
  22. package/dist/esm/models/ClusterFeatures.js +3 -3
  23. package/dist/esm/models/ClusterRequirementsRequest.js +1 -1
  24. package/dist/esm/models/ClusterRequirementsStoredInput.js +3 -3
  25. package/dist/esm/models/CpuOverCommitRatio.js +1 -1
  26. package/dist/esm/models/CustomerDetailsInput.d.ts +34 -0
  27. package/dist/esm/models/CustomerDetailsInput.js +43 -0
  28. package/dist/esm/models/DeployedEnvironmentInput.d.ts +40 -0
  29. package/dist/esm/models/DeployedEnvironmentInput.js +50 -0
  30. package/dist/esm/models/EnhancementData.d.ts +76 -0
  31. package/dist/esm/models/EnhancementData.js +69 -0
  32. package/dist/esm/models/Group.js +6 -5
  33. package/dist/esm/models/GroupCreate.js +1 -1
  34. package/dist/esm/models/Host.d.ts +8 -0
  35. package/dist/esm/models/Host.js +4 -0
  36. package/dist/esm/models/Identity.js +1 -1
  37. package/dist/esm/models/Infra.d.ts +4 -0
  38. package/dist/esm/models/Infra.js +2 -0
  39. package/dist/esm/models/Inventory.d.ts +4 -0
  40. package/dist/esm/models/Inventory.js +3 -1
  41. package/dist/esm/models/JobStatus.js +1 -1
  42. package/dist/esm/models/Member.js +5 -4
  43. package/dist/esm/models/MemoryOverCommitRatio.js +1 -1
  44. package/dist/esm/models/Network.js +1 -1
  45. package/dist/esm/models/NsxInput.d.ts +46 -0
  46. package/dist/esm/models/NsxInput.js +56 -0
  47. package/dist/esm/models/OptimizationStatus.js +1 -1
  48. package/dist/esm/models/OsInfo.js +1 -1
  49. package/dist/esm/models/PartnerRequest.js +7 -6
  50. package/dist/esm/models/PartnerRequestStatus.js +1 -1
  51. package/dist/esm/models/PresignedUrl.js +3 -2
  52. package/dist/esm/models/Snapshot.js +3 -2
  53. package/dist/esm/models/Source.js +6 -5
  54. package/dist/esm/models/SourceCreate.js +1 -1
  55. package/dist/esm/models/SourceUpdate.js +1 -1
  56. package/dist/esm/models/StandaloneClusterRequirementsRequest.js +1 -1
  57. package/dist/esm/models/StorageIoConfiguration.js +1 -1
  58. package/dist/esm/models/VMs.d.ts +4 -0
  59. package/dist/esm/models/VMs.js +2 -0
  60. package/dist/esm/models/VMwareSubscriptionInput.d.ts +42 -0
  61. package/dist/esm/models/VMwareSubscriptionInput.js +52 -0
  62. package/dist/esm/models/VMwareVersionCountsInput.d.ts +42 -0
  63. package/dist/esm/models/VMwareVersionCountsInput.js +47 -0
  64. package/dist/esm/models/VsphereCoreInput.d.ts +38 -0
  65. package/dist/esm/models/VsphereCoreInput.js +45 -0
  66. package/dist/esm/models/index.d.ts +11 -0
  67. package/dist/esm/models/index.js +11 -0
  68. package/dist/esm/runtime.d.ts +11 -0
  69. package/dist/esm/runtime.js +47 -1
  70. package/dist/models/ActiveEnvironmentsInput.d.ts +41 -0
  71. package/dist/models/ActiveEnvironmentsInput.js +59 -0
  72. package/dist/models/Agent.js +6 -5
  73. package/dist/models/AriaAutomationInput.d.ts +51 -0
  74. package/dist/models/AriaAutomationInput.js +69 -0
  75. package/dist/models/AriaOpsInput.d.ts +49 -0
  76. package/dist/models/AriaOpsInput.js +67 -0
  77. package/dist/models/AriaSecureInput.d.ts +41 -0
  78. package/dist/models/AriaSecureInput.js +59 -0
  79. package/dist/models/Assessment.js +5 -4
  80. package/dist/models/AssessmentSubsetInventory.js +3 -2
  81. package/dist/models/ClusterFeatures.d.ts +2 -2
  82. package/dist/models/ClusterFeatures.js +3 -3
  83. package/dist/models/ClusterRequirementsRequest.js +1 -1
  84. package/dist/models/ClusterRequirementsStoredInput.js +3 -3
  85. package/dist/models/CpuOverCommitRatio.js +1 -1
  86. package/dist/models/CustomerDetailsInput.d.ts +34 -0
  87. package/dist/models/CustomerDetailsInput.js +50 -0
  88. package/dist/models/DeployedEnvironmentInput.d.ts +40 -0
  89. package/dist/models/DeployedEnvironmentInput.js +58 -0
  90. package/dist/models/EnhancementData.d.ts +76 -0
  91. package/dist/models/EnhancementData.js +76 -0
  92. package/dist/models/Group.js +6 -5
  93. package/dist/models/GroupCreate.js +1 -1
  94. package/dist/models/Host.d.ts +8 -0
  95. package/dist/models/Host.js +4 -0
  96. package/dist/models/Identity.js +1 -1
  97. package/dist/models/Infra.d.ts +4 -0
  98. package/dist/models/Infra.js +2 -0
  99. package/dist/models/Inventory.d.ts +4 -0
  100. package/dist/models/Inventory.js +2 -0
  101. package/dist/models/JobStatus.js +1 -1
  102. package/dist/models/Member.js +5 -4
  103. package/dist/models/MemoryOverCommitRatio.js +1 -1
  104. package/dist/models/Network.js +1 -1
  105. package/dist/models/NsxInput.d.ts +46 -0
  106. package/dist/models/NsxInput.js +64 -0
  107. package/dist/models/OptimizationStatus.js +1 -1
  108. package/dist/models/OsInfo.js +1 -1
  109. package/dist/models/PartnerRequest.js +7 -6
  110. package/dist/models/PartnerRequestStatus.js +1 -1
  111. package/dist/models/PresignedUrl.js +3 -2
  112. package/dist/models/Snapshot.js +3 -2
  113. package/dist/models/Source.js +6 -5
  114. package/dist/models/SourceCreate.js +1 -1
  115. package/dist/models/SourceUpdate.js +1 -1
  116. package/dist/models/StandaloneClusterRequirementsRequest.js +1 -1
  117. package/dist/models/StorageIoConfiguration.js +1 -1
  118. package/dist/models/VMs.d.ts +4 -0
  119. package/dist/models/VMs.js +2 -0
  120. package/dist/models/VMwareSubscriptionInput.d.ts +42 -0
  121. package/dist/models/VMwareSubscriptionInput.js +60 -0
  122. package/dist/models/VMwareVersionCountsInput.d.ts +42 -0
  123. package/dist/models/VMwareVersionCountsInput.js +54 -0
  124. package/dist/models/VsphereCoreInput.d.ts +38 -0
  125. package/dist/models/VsphereCoreInput.js +52 -0
  126. package/dist/models/index.d.ts +11 -0
  127. package/dist/models/index.js +11 -0
  128. package/dist/runtime.d.ts +11 -0
  129. package/dist/runtime.js +51 -1
  130. package/docs/ActiveEnvironmentsInput.md +34 -0
  131. package/docs/AriaAutomationInput.md +34 -0
  132. package/docs/AriaOpsInput.md +34 -0
  133. package/docs/AriaSecureInput.md +34 -0
  134. package/docs/AssessmentApi.md +148 -0
  135. package/docs/ClusterFeatures.md +2 -2
  136. package/docs/CustomerDetailsInput.md +36 -0
  137. package/docs/DeployedEnvironmentInput.md +34 -0
  138. package/docs/EnhancementData.md +53 -0
  139. package/docs/Host.md +4 -0
  140. package/docs/Infra.md +2 -0
  141. package/docs/Inventory.md +2 -0
  142. package/docs/NsxInput.md +34 -0
  143. package/docs/VMs.md +2 -0
  144. package/docs/VMwareSubscriptionInput.md +34 -0
  145. package/docs/VMwareVersionCountsInput.md +40 -0
  146. package/docs/VsphereCoreInput.md +38 -0
  147. package/package.json +1 -1
  148. package/src/apis/AccountApi.ts +1 -1
  149. package/src/apis/AssessmentApi.ts +169 -0
  150. package/src/models/ActiveEnvironmentsInput.ts +77 -0
  151. package/src/models/Agent.ts +6 -6
  152. package/src/models/AriaAutomationInput.ts +87 -0
  153. package/src/models/AriaOpsInput.ts +85 -0
  154. package/src/models/AriaSecureInput.ts +77 -0
  155. package/src/models/Assessment.ts +5 -5
  156. package/src/models/AssessmentSubsetInventory.ts +3 -3
  157. package/src/models/ClusterFeatures.ts +5 -5
  158. package/src/models/ClusterRequirementsRequest.ts +1 -1
  159. package/src/models/ClusterRequirementsStoredInput.ts +3 -3
  160. package/src/models/CpuOverCommitRatio.ts +1 -1
  161. package/src/models/CustomerDetailsInput.ts +69 -0
  162. package/src/models/DeployedEnvironmentInput.ts +76 -0
  163. package/src/models/EnhancementData.ts +188 -0
  164. package/src/models/Group.ts +6 -6
  165. package/src/models/GroupCreate.ts +1 -1
  166. package/src/models/Host.ts +12 -0
  167. package/src/models/Identity.ts +1 -1
  168. package/src/models/Infra.ts +6 -0
  169. package/src/models/Inventory.ts +7 -1
  170. package/src/models/JobStatus.ts +1 -1
  171. package/src/models/Member.ts +5 -5
  172. package/src/models/MemoryOverCommitRatio.ts +1 -1
  173. package/src/models/Network.ts +1 -1
  174. package/src/models/NsxInput.ts +82 -0
  175. package/src/models/OptimizationStatus.ts +1 -1
  176. package/src/models/OsInfo.ts +1 -1
  177. package/src/models/PartnerRequest.ts +7 -7
  178. package/src/models/PartnerRequestStatus.ts +1 -1
  179. package/src/models/PresignedUrl.ts +3 -3
  180. package/src/models/Snapshot.ts +3 -3
  181. package/src/models/Source.ts +6 -6
  182. package/src/models/SourceCreate.ts +1 -1
  183. package/src/models/SourceUpdate.ts +1 -1
  184. package/src/models/StandaloneClusterRequirementsRequest.ts +1 -1
  185. package/src/models/StorageIoConfiguration.ts +1 -1
  186. package/src/models/VMs.ts +6 -0
  187. package/src/models/VMwareSubscriptionInput.ts +78 -0
  188. package/src/models/VMwareVersionCountsInput.ts +81 -0
  189. package/src/models/VsphereCoreInput.ts +75 -0
  190. package/src/models/index.ts +11 -0
  191. package/src/runtime.ts +52 -1
@@ -19,7 +19,7 @@ export const PartnerRequestStatus = {
19
19
  Pending: 'pending',
20
20
  Accepted: 'accepted',
21
21
  Rejected: 'rejected',
22
- Cancelled: 'cancelled'
22
+ Cancelled: 'cancelled',
23
23
  };
24
24
  export function instanceOfPartnerRequestStatus(value) {
25
25
  for (const key in PartnerRequestStatus) {
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
14
15
  /**
15
16
  * Check if a given object implements the PresignedUrl interface.
16
17
  */
@@ -28,7 +29,7 @@ export function PresignedUrlFromJSONTyped(json, ignoreDiscriminator) {
28
29
  }
29
30
  return {
30
31
  'url': json['url'],
31
- 'expiresAt': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
32
+ 'expiresAt': json['expires_at'] == null ? undefined : (parseDateTime(json['expires_at'])),
32
33
  };
33
34
  }
34
35
  export function PresignedUrlToJSON(json) {
@@ -40,6 +41,6 @@ export function PresignedUrlToJSONTyped(value, ignoreDiscriminator = false) {
40
41
  }
41
42
  return {
42
43
  'url': value['url'],
43
- 'expires_at': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
44
+ 'expires_at': value['expiresAt'] == null ? value['expiresAt'] : serializeDateTime(value['expiresAt']),
44
45
  };
45
46
  }
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
14
15
  import { AssessmentSubsetInventoryFromJSON, AssessmentSubsetInventoryToJSON, } from './AssessmentSubsetInventory.js';
15
16
  import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
16
17
  /**
@@ -32,7 +33,7 @@ export function SnapshotFromJSONTyped(json, ignoreDiscriminator) {
32
33
  }
33
34
  return {
34
35
  'inventory': InventoryFromJSON(json['inventory']),
35
- 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
36
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
36
37
  'subsetInventories': json['subsetInventories'] === undefined ? undefined : json['subsetInventories'] === null ? null : (json['subsetInventories'].map(AssessmentSubsetInventoryFromJSON)),
37
38
  };
38
39
  }
@@ -45,7 +46,7 @@ export function SnapshotToJSONTyped(value, ignoreDiscriminator = false) {
45
46
  }
46
47
  return {
47
48
  'inventory': InventoryToJSON(value['inventory']),
48
- 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
49
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
49
50
  'subsetInventories': value['subsetInventories'] == null ? undefined : (value['subsetInventories'].map(AssessmentSubsetInventoryToJSON)),
50
51
  };
51
52
  }
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
14
15
  import { SourceInfraFromJSON, SourceInfraToJSON, } from './SourceInfra.js';
15
16
  import { AgentFromJSON, AgentToJSON, } from './Agent.js';
16
17
  import { LabelFromJSON, LabelToJSON, } from './Label.js';
@@ -20,7 +21,7 @@ import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
20
21
  */
21
22
  export const SourceUpdateTypeEnum = {
22
23
  Auto: 'auto',
23
- Manual: 'manual'
24
+ Manual: 'manual',
24
25
  };
25
26
  /**
26
27
  * Check if a given object implements the Source interface.
@@ -49,8 +50,8 @@ export function SourceFromJSONTyped(json, ignoreDiscriminator) {
49
50
  'id': json['id'],
50
51
  'name': json['name'],
51
52
  'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
52
- 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
53
- 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
53
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
54
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : parseDateTime(json['updatedAt'])),
54
55
  'onPremises': json['onPremises'],
55
56
  'agent': json['agent'] == null ? undefined : AgentFromJSON(json['agent']),
56
57
  'labels': json['labels'] == null ? undefined : (json['labels'].map(LabelFromJSON)),
@@ -71,8 +72,8 @@ export function SourceToJSONTyped(value, ignoreDiscriminator = false) {
71
72
  'id': value['id'],
72
73
  'name': value['name'],
73
74
  'inventory': InventoryToJSON(value['inventory']),
74
- 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
75
- 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
75
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
76
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : serializeDateTime(value['updatedAt']),
76
77
  'onPremises': value['onPremises'],
77
78
  'agent': AgentToJSON(value['agent']),
78
79
  'labels': value['labels'] == null ? undefined : (value['labels'].map(LabelToJSON)),
@@ -19,7 +19,7 @@ import { LabelFromJSON, LabelToJSON, } from './Label.js';
19
19
  */
20
20
  export const SourceCreateNetworkConfigTypeEnum = {
21
21
  Dhcp: 'dhcp',
22
- Static: 'static'
22
+ Static: 'static',
23
23
  };
24
24
  /**
25
25
  * Check if a given object implements the SourceCreate interface.
@@ -19,7 +19,7 @@ import { LabelFromJSON, LabelToJSON, } from './Label.js';
19
19
  */
20
20
  export const SourceUpdateNetworkConfigTypeEnum = {
21
21
  Dhcp: 'dhcp',
22
- Static: 'static'
22
+ Static: 'static',
23
23
  };
24
24
  /**
25
25
  * Check if a given object implements the SourceUpdate interface.
@@ -18,7 +18,7 @@ import { MemoryOverCommitRatioFromJSON, MemoryOverCommitRatioToJSON, } from './M
18
18
  */
19
19
  export const StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum = {
20
20
  NUMBER_1: 1,
21
- NUMBER_3: 3
21
+ NUMBER_3: 3,
22
22
  };
23
23
  /**
24
24
  * Check if a given object implements the StandaloneClusterRequirementsRequest interface.
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export const StorageIoConfigurationCongestionThresholdModeEnum = {
18
18
  Automatic: 'automatic',
19
- Manual: 'manual'
19
+ Manual: 'manual',
20
20
  };
21
21
  /**
22
22
  * Check if a given object implements the StorageIoConfiguration interface.
@@ -37,6 +37,10 @@ export interface VMs {
37
37
  * Number of VMs that have at least one shared disk
38
38
  */
39
39
  totalWithSharedDisks?: number;
40
+ /**
41
+ * Number of VMs that have at least one raw device mapping (RDM) disk
42
+ */
43
+ totalWithRDM?: number;
40
44
  /**
41
45
  *
42
46
  */
@@ -54,6 +54,7 @@ export function VMsFromJSONTyped(json, ignoreDiscriminator) {
54
54
  'totalMigratable': json['totalMigratable'],
55
55
  'totalMigratableWithWarnings': json['totalMigratableWithWarnings'] == null ? undefined : json['totalMigratableWithWarnings'],
56
56
  'totalWithSharedDisks': json['totalWithSharedDisks'] == null ? undefined : json['totalWithSharedDisks'],
57
+ 'totalWithRDM': json['totalWithRDM'] == null ? undefined : json['totalWithRDM'],
57
58
  'cpuCores': VMResourceBreakdownFromJSON(json['cpuCores']),
58
59
  'diskSizeTier': json['diskSizeTier'] == null ? undefined : (mapValues(json['diskSizeTier'], DiskSizeTierSummaryFromJSON)),
59
60
  'diskComplexityTier': json['diskComplexityTier'] == null ? undefined : (mapValues(json['diskComplexityTier'], DiskSizeTierSummaryFromJSON)),
@@ -87,6 +88,7 @@ export function VMsToJSONTyped(value, ignoreDiscriminator = false) {
87
88
  'totalMigratable': value['totalMigratable'],
88
89
  'totalMigratableWithWarnings': value['totalMigratableWithWarnings'],
89
90
  'totalWithSharedDisks': value['totalWithSharedDisks'],
91
+ 'totalWithRDM': value['totalWithRDM'],
90
92
  'cpuCores': VMResourceBreakdownToJSON(value['cpuCores']),
91
93
  'diskSizeTier': value['diskSizeTier'] == null ? undefined : (mapValues(value['diskSizeTier'], DiskSizeTierSummaryToJSON)),
92
94
  'diskComplexityTier': value['diskComplexityTier'] == null ? undefined : (mapValues(value['diskComplexityTier'], DiskSizeTierSummaryToJSON)),
@@ -0,0 +1,42 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1alpha1
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface VMwareSubscriptionInput
16
+ */
17
+ export interface VMwareSubscriptionInput {
18
+ /**
19
+ *
20
+ */
21
+ level?: Set<VMwareSubscriptionInputLevelEnum>;
22
+ }
23
+ /**
24
+ * @export
25
+ */
26
+ export declare const VMwareSubscriptionInputLevelEnum: {
27
+ readonly Vcf: "vcf";
28
+ readonly Vvf: "vvf";
29
+ readonly Vvs: "vvs";
30
+ readonly Vvep: "vvep";
31
+ readonly Vsphere: "vsphere";
32
+ readonly NotAssessed: "not_assessed";
33
+ };
34
+ export type VMwareSubscriptionInputLevelEnum = typeof VMwareSubscriptionInputLevelEnum[keyof typeof VMwareSubscriptionInputLevelEnum];
35
+ /**
36
+ * Check if a given object implements the VMwareSubscriptionInput interface.
37
+ */
38
+ export declare function instanceOfVMwareSubscriptionInput(value: object): value is VMwareSubscriptionInput;
39
+ export declare function VMwareSubscriptionInputFromJSON(json: any): VMwareSubscriptionInput;
40
+ export declare function VMwareSubscriptionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMwareSubscriptionInput;
41
+ export declare function VMwareSubscriptionInputToJSON(json: any): VMwareSubscriptionInput;
42
+ export declare function VMwareSubscriptionInputToJSONTyped(value?: VMwareSubscriptionInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * OpenShift Migration Advisor API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1alpha1
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
+ * @export
16
+ */
17
+ export const VMwareSubscriptionInputLevelEnum = {
18
+ Vcf: 'vcf',
19
+ Vvf: 'vvf',
20
+ Vvs: 'vvs',
21
+ Vvep: 'vvep',
22
+ Vsphere: 'vsphere',
23
+ NotAssessed: 'not_assessed',
24
+ };
25
+ /**
26
+ * Check if a given object implements the VMwareSubscriptionInput interface.
27
+ */
28
+ export function instanceOfVMwareSubscriptionInput(value) {
29
+ return true;
30
+ }
31
+ export function VMwareSubscriptionInputFromJSON(json) {
32
+ return VMwareSubscriptionInputFromJSONTyped(json, false);
33
+ }
34
+ export function VMwareSubscriptionInputFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'level': json['level'] == null ? undefined : new Set(json['level']),
40
+ };
41
+ }
42
+ export function VMwareSubscriptionInputToJSON(json) {
43
+ return VMwareSubscriptionInputToJSONTyped(json, false);
44
+ }
45
+ export function VMwareSubscriptionInputToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'level': value['level'] == null ? undefined : Array.from(value['level']),
51
+ };
52
+ }
@@ -0,0 +1,42 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1alpha1
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface VMwareVersionCountsInput
16
+ */
17
+ export interface VMwareVersionCountsInput {
18
+ /**
19
+ *
20
+ */
21
+ perpetualLicensesCount?: number;
22
+ /**
23
+ *
24
+ */
25
+ coresLicensingCount?: number;
26
+ /**
27
+ *
28
+ */
29
+ environmentCount?: number;
30
+ /**
31
+ *
32
+ */
33
+ otherNodesCount?: number;
34
+ }
35
+ /**
36
+ * Check if a given object implements the VMwareVersionCountsInput interface.
37
+ */
38
+ export declare function instanceOfVMwareVersionCountsInput(value: object): value is VMwareVersionCountsInput;
39
+ export declare function VMwareVersionCountsInputFromJSON(json: any): VMwareVersionCountsInput;
40
+ export declare function VMwareVersionCountsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMwareVersionCountsInput;
41
+ export declare function VMwareVersionCountsInputToJSON(json: any): VMwareVersionCountsInput;
42
+ export declare function VMwareVersionCountsInputToJSONTyped(value?: VMwareVersionCountsInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * OpenShift Migration Advisor API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1alpha1
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
+ * Check if a given object implements the VMwareVersionCountsInput interface.
16
+ */
17
+ export function instanceOfVMwareVersionCountsInput(value) {
18
+ return true;
19
+ }
20
+ export function VMwareVersionCountsInputFromJSON(json) {
21
+ return VMwareVersionCountsInputFromJSONTyped(json, false);
22
+ }
23
+ export function VMwareVersionCountsInputFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'perpetualLicensesCount': json['perpetualLicensesCount'] == null ? undefined : json['perpetualLicensesCount'],
29
+ 'coresLicensingCount': json['coresLicensingCount'] == null ? undefined : json['coresLicensingCount'],
30
+ 'environmentCount': json['environmentCount'] == null ? undefined : json['environmentCount'],
31
+ 'otherNodesCount': json['otherNodesCount'] == null ? undefined : json['otherNodesCount'],
32
+ };
33
+ }
34
+ export function VMwareVersionCountsInputToJSON(json) {
35
+ return VMwareVersionCountsInputToJSONTyped(json, false);
36
+ }
37
+ export function VMwareVersionCountsInputToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'perpetualLicensesCount': value['perpetualLicensesCount'],
43
+ 'coresLicensingCount': value['coresLicensingCount'],
44
+ 'environmentCount': value['environmentCount'],
45
+ 'otherNodesCount': value['otherNodesCount'],
46
+ };
47
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1alpha1
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface VsphereCoreInput
16
+ */
17
+ export interface VsphereCoreInput {
18
+ /**
19
+ *
20
+ */
21
+ vmEncryptionEnabled?: boolean;
22
+ /**
23
+ *
24
+ */
25
+ vmEncryptionPolicy?: string;
26
+ /**
27
+ *
28
+ */
29
+ srmEnabled?: boolean;
30
+ }
31
+ /**
32
+ * Check if a given object implements the VsphereCoreInput interface.
33
+ */
34
+ export declare function instanceOfVsphereCoreInput(value: object): value is VsphereCoreInput;
35
+ export declare function VsphereCoreInputFromJSON(json: any): VsphereCoreInput;
36
+ export declare function VsphereCoreInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): VsphereCoreInput;
37
+ export declare function VsphereCoreInputToJSON(json: any): VsphereCoreInput;
38
+ export declare function VsphereCoreInputToJSONTyped(value?: VsphereCoreInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,45 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * OpenShift Migration Advisor API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1alpha1
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
+ * Check if a given object implements the VsphereCoreInput interface.
16
+ */
17
+ export function instanceOfVsphereCoreInput(value) {
18
+ return true;
19
+ }
20
+ export function VsphereCoreInputFromJSON(json) {
21
+ return VsphereCoreInputFromJSONTyped(json, false);
22
+ }
23
+ export function VsphereCoreInputFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'vmEncryptionEnabled': json['vmEncryptionEnabled'] == null ? undefined : json['vmEncryptionEnabled'],
29
+ 'vmEncryptionPolicy': json['vmEncryptionPolicy'] == null ? undefined : json['vmEncryptionPolicy'],
30
+ 'srmEnabled': json['srmEnabled'] == null ? undefined : json['srmEnabled'],
31
+ };
32
+ }
33
+ export function VsphereCoreInputToJSON(json) {
34
+ return VsphereCoreInputToJSONTyped(json, false);
35
+ }
36
+ export function VsphereCoreInputToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'vmEncryptionEnabled': value['vmEncryptionEnabled'],
42
+ 'vmEncryptionPolicy': value['vmEncryptionPolicy'],
43
+ 'srmEnabled': value['srmEnabled'],
44
+ };
45
+ }
@@ -1,5 +1,9 @@
1
+ export * from './ActiveEnvironmentsInput.js';
1
2
  export * from './Agent.js';
2
3
  export * from './AgentProxy.js';
4
+ export * from './AriaAutomationInput.js';
5
+ export * from './AriaOpsInput.js';
6
+ export * from './AriaSecureInput.js';
3
7
  export * from './Assessment.js';
4
8
  export * from './AssessmentForm.js';
5
9
  export * from './AssessmentSharing.js';
@@ -16,9 +20,12 @@ export * from './ComplexityOSNameEntry.js';
16
20
  export * from './ComplexityOSScoreEntry.js';
17
21
  export * from './CpuOverCommitRatio.js';
18
22
  export * from './Customer.js';
23
+ export * from './CustomerDetailsInput.js';
19
24
  export * from './Datastore.js';
25
+ export * from './DeployedEnvironmentInput.js';
20
26
  export * from './DiskSizeTierSummary.js';
21
27
  export * from './DiskTypeSummary.js';
28
+ export * from './EnhancementData.js';
22
29
  export * from './EstimationContext.js';
23
30
  export * from './EstimationDetail.js';
24
31
  export * from './Group.js';
@@ -49,6 +56,7 @@ export * from './MigrationEstimationResponse.js';
49
56
  export * from './MigrationIssue.js';
50
57
  export * from './ModelError.js';
51
58
  export * from './Network.js';
59
+ export * from './NsxInput.js';
52
60
  export * from './OptimizationStatus.js';
53
61
  export * from './OsDiskEstimationEntry.js';
54
62
  export * from './OsInfo.js';
@@ -77,4 +85,7 @@ export * from './UpdateInventory.js';
77
85
  export * from './VCenter.js';
78
86
  export * from './VMResourceBreakdown.js';
79
87
  export * from './VMs.js';
88
+ export * from './VMwareSubscriptionInput.js';
89
+ export * from './VMwareVersionCountsInput.js';
80
90
  export * from './VmNetwork.js';
91
+ export * from './VsphereCoreInput.js';
@@ -1,7 +1,11 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './ActiveEnvironmentsInput.js';
3
4
  export * from './Agent.js';
4
5
  export * from './AgentProxy.js';
6
+ export * from './AriaAutomationInput.js';
7
+ export * from './AriaOpsInput.js';
8
+ export * from './AriaSecureInput.js';
5
9
  export * from './Assessment.js';
6
10
  export * from './AssessmentForm.js';
7
11
  export * from './AssessmentSharing.js';
@@ -18,9 +22,12 @@ export * from './ComplexityOSNameEntry.js';
18
22
  export * from './ComplexityOSScoreEntry.js';
19
23
  export * from './CpuOverCommitRatio.js';
20
24
  export * from './Customer.js';
25
+ export * from './CustomerDetailsInput.js';
21
26
  export * from './Datastore.js';
27
+ export * from './DeployedEnvironmentInput.js';
22
28
  export * from './DiskSizeTierSummary.js';
23
29
  export * from './DiskTypeSummary.js';
30
+ export * from './EnhancementData.js';
24
31
  export * from './EstimationContext.js';
25
32
  export * from './EstimationDetail.js';
26
33
  export * from './Group.js';
@@ -51,6 +58,7 @@ export * from './MigrationEstimationResponse.js';
51
58
  export * from './MigrationIssue.js';
52
59
  export * from './ModelError.js';
53
60
  export * from './Network.js';
61
+ export * from './NsxInput.js';
54
62
  export * from './OptimizationStatus.js';
55
63
  export * from './OsDiskEstimationEntry.js';
56
64
  export * from './OsInfo.js';
@@ -79,4 +87,7 @@ export * from './UpdateInventory.js';
79
87
  export * from './VCenter.js';
80
88
  export * from './VMResourceBreakdown.js';
81
89
  export * from './VMs.js';
90
+ export * from './VMwareSubscriptionInput.js';
91
+ export * from './VMwareVersionCountsInput.js';
82
92
  export * from './VmNetwork.js';
93
+ export * from './VsphereCoreInput.js';
@@ -124,6 +124,17 @@ export interface RequestOpts {
124
124
  }
125
125
  export declare function querystring(params: HTTPQuery, prefix?: string): string;
126
126
  export declare function exists(json: any, key: string): boolean;
127
+ /**
128
+ * Every generated date call site routes through these.
129
+ *
130
+ * `format: date` is a calendar date, with no time and no offset, so it is converted
131
+ * against the local calendar on both ends: they have to agree or the date shifts by
132
+ * a day. `format: date-time` is an instant and uses UTC.
133
+ */
134
+ export declare function serializeDateTime(value: Date): string;
135
+ export declare function serializeDate(value: Date): string;
136
+ export declare function parseDate(value: Date | string): Date;
137
+ export declare function parseDateTime(value: any): Date;
127
138
  export declare function mapValues(data: any, fn: (item: any) => any): {
128
139
  [key: string]: any;
129
140
  };
@@ -278,7 +278,7 @@ function querystringSingleKey(key, value, keyPrefix = '') {
278
278
  return querystringSingleKey(key, valueAsArray, keyPrefix);
279
279
  }
280
280
  if (value instanceof Date) {
281
- return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
281
+ return `${encodeURIComponent(fullKey)}=${encodeURIComponent(serializeDateTime(value))}`;
282
282
  }
283
283
  if (value instanceof Object) {
284
284
  return querystring(value, fullKey);
@@ -289,6 +289,52 @@ export function exists(json, key) {
289
289
  const value = json[key];
290
290
  return value !== null && value !== undefined;
291
291
  }
292
+ /**
293
+ * Every generated date call site routes through these.
294
+ *
295
+ * `format: date` is a calendar date, with no time and no offset, so it is converted
296
+ * against the local calendar on both ends: they have to agree or the date shifts by
297
+ * a day. `format: date-time` is an instant and uses UTC.
298
+ */
299
+ export function serializeDateTime(value) {
300
+ return value.toISOString();
301
+ }
302
+ export function serializeDate(value) {
303
+ if (isNaN(value.getTime())) {
304
+ throw new RangeError('Invalid time value');
305
+ }
306
+ const year = ('000' + value.getFullYear()).slice(-4);
307
+ const month = ('0' + (value.getMonth() + 1)).slice(-2);
308
+ const day = ('0' + value.getDate()).slice(-2);
309
+ return `${year}-${month}-${day}`;
310
+ }
311
+ export function parseDate(value) {
312
+ if (value instanceof Date) {
313
+ return value;
314
+ }
315
+ // `new Date("2026-08-05")` would parse as UTC midnight: a different day west of UTC.
316
+ // Local midnight is the stated day everywhere. setFullYear avoids the 1900 offset the
317
+ // multi-argument constructor applies to years 0-99.
318
+ const fullDate = /^(\d{4})-(\d{2})-(\d{2})$/.exec(String(value));
319
+ if (fullDate) {
320
+ const year = Number(fullDate[1]);
321
+ const month = Number(fullDate[2]) - 1;
322
+ const day = Number(fullDate[3]);
323
+ const date = new Date(0);
324
+ date.setFullYear(year, month, day);
325
+ date.setHours(0, 0, 0, 0);
326
+ // Out-of-range components (or a day the local zone skipped) silently roll over,
327
+ // which would hand back a date the server never sent.
328
+ if (date.getFullYear() !== year || date.getMonth() !== month || date.getDate() !== day) {
329
+ return new Date(NaN);
330
+ }
331
+ return date;
332
+ }
333
+ return new Date(value);
334
+ }
335
+ export function parseDateTime(value) {
336
+ return new Date(value);
337
+ }
292
338
  export function mapValues(data, fn) {
293
339
  const result = {};
294
340
  for (const key of Object.keys(data)) {
@@ -0,0 +1,41 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1alpha1
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface ActiveEnvironmentsInput
16
+ */
17
+ export interface ActiveEnvironmentsInput {
18
+ /**
19
+ *
20
+ */
21
+ environments?: Set<ActiveEnvironmentsInputEnvironmentsEnum>;
22
+ }
23
+ /**
24
+ * @export
25
+ */
26
+ export declare const ActiveEnvironmentsInputEnvironmentsEnum: {
27
+ readonly Production: "production";
28
+ readonly Qa: "qa";
29
+ readonly Dev: "dev";
30
+ readonly Other: "other";
31
+ readonly NotAssessed: "not_assessed";
32
+ };
33
+ export type ActiveEnvironmentsInputEnvironmentsEnum = typeof ActiveEnvironmentsInputEnvironmentsEnum[keyof typeof ActiveEnvironmentsInputEnvironmentsEnum];
34
+ /**
35
+ * Check if a given object implements the ActiveEnvironmentsInput interface.
36
+ */
37
+ export declare function instanceOfActiveEnvironmentsInput(value: object): value is ActiveEnvironmentsInput;
38
+ export declare function ActiveEnvironmentsInputFromJSON(json: any): ActiveEnvironmentsInput;
39
+ export declare function ActiveEnvironmentsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActiveEnvironmentsInput;
40
+ export declare function ActiveEnvironmentsInputToJSON(json: any): ActiveEnvironmentsInput;
41
+ export declare function ActiveEnvironmentsInputToJSONTyped(value?: ActiveEnvironmentsInput | null, ignoreDiscriminator?: boolean): any;