@openshift-migration-advisor/planner-sdk 0.20.2 → 0.20.3-6d374cf5ab88

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 (178) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/README.md +15 -2
  3. package/dist/apis/AccountApi.js +1 -1
  4. package/dist/apis/AssessmentApi.d.ts +81 -0
  5. package/dist/apis/AssessmentApi.js +84 -0
  6. package/dist/esm/apis/AccountApi.js +1 -1
  7. package/dist/esm/apis/AssessmentApi.d.ts +81 -0
  8. package/dist/esm/apis/AssessmentApi.js +84 -0
  9. package/dist/esm/models/ActiveEnvironmentsInput.d.ts +41 -0
  10. package/dist/esm/models/ActiveEnvironmentsInput.js +51 -0
  11. package/dist/esm/models/Agent.js +6 -5
  12. package/dist/esm/models/AriaAutomationInput.d.ts +51 -0
  13. package/dist/esm/models/AriaAutomationInput.js +61 -0
  14. package/dist/esm/models/AriaOpsInput.d.ts +49 -0
  15. package/dist/esm/models/AriaOpsInput.js +59 -0
  16. package/dist/esm/models/AriaSecureInput.d.ts +41 -0
  17. package/dist/esm/models/AriaSecureInput.js +51 -0
  18. package/dist/esm/models/Assessment.js +5 -4
  19. package/dist/esm/models/AssessmentSubsetInventory.js +3 -2
  20. package/dist/esm/models/ClusterFeatures.d.ts +4 -0
  21. package/dist/esm/models/ClusterFeatures.js +3 -1
  22. package/dist/esm/models/ClusterRequirementsRequest.js +1 -1
  23. package/dist/esm/models/ClusterRequirementsStoredInput.js +3 -3
  24. package/dist/esm/models/CpuOverCommitRatio.js +1 -1
  25. package/dist/esm/models/CustomerDetailsInput.d.ts +34 -0
  26. package/dist/esm/models/CustomerDetailsInput.js +43 -0
  27. package/dist/esm/models/DeployedEnvironmentInput.d.ts +40 -0
  28. package/dist/esm/models/DeployedEnvironmentInput.js +50 -0
  29. package/dist/esm/models/EnhancementData.d.ts +76 -0
  30. package/dist/esm/models/EnhancementData.js +69 -0
  31. package/dist/esm/models/Group.js +6 -5
  32. package/dist/esm/models/GroupCreate.js +1 -1
  33. package/dist/esm/models/Host.d.ts +8 -0
  34. package/dist/esm/models/Host.js +4 -0
  35. package/dist/esm/models/Identity.js +1 -1
  36. package/dist/esm/models/Inventory.d.ts +4 -0
  37. package/dist/esm/models/Inventory.js +3 -1
  38. package/dist/esm/models/JobStatus.js +1 -1
  39. package/dist/esm/models/Member.js +5 -4
  40. package/dist/esm/models/MemoryOverCommitRatio.js +1 -1
  41. package/dist/esm/models/Network.js +1 -1
  42. package/dist/esm/models/NsxInput.d.ts +46 -0
  43. package/dist/esm/models/NsxInput.js +56 -0
  44. package/dist/esm/models/OptimizationStatus.js +1 -1
  45. package/dist/esm/models/OsInfo.js +1 -1
  46. package/dist/esm/models/PartnerRequest.js +7 -6
  47. package/dist/esm/models/PartnerRequestStatus.js +1 -1
  48. package/dist/esm/models/PresignedUrl.js +3 -2
  49. package/dist/esm/models/Snapshot.js +3 -2
  50. package/dist/esm/models/Source.js +6 -5
  51. package/dist/esm/models/SourceCreate.js +1 -1
  52. package/dist/esm/models/SourceUpdate.js +1 -1
  53. package/dist/esm/models/StandaloneClusterRequirementsRequest.js +1 -1
  54. package/dist/esm/models/StorageIoConfiguration.js +1 -1
  55. package/dist/esm/models/VMwareSubscriptionInput.d.ts +42 -0
  56. package/dist/esm/models/VMwareSubscriptionInput.js +52 -0
  57. package/dist/esm/models/VMwareVersionCountsInput.d.ts +42 -0
  58. package/dist/esm/models/VMwareVersionCountsInput.js +47 -0
  59. package/dist/esm/models/VsphereCoreInput.d.ts +38 -0
  60. package/dist/esm/models/VsphereCoreInput.js +45 -0
  61. package/dist/esm/models/index.d.ts +11 -0
  62. package/dist/esm/models/index.js +11 -0
  63. package/dist/esm/runtime.d.ts +11 -0
  64. package/dist/esm/runtime.js +47 -1
  65. package/dist/models/ActiveEnvironmentsInput.d.ts +41 -0
  66. package/dist/models/ActiveEnvironmentsInput.js +59 -0
  67. package/dist/models/Agent.js +6 -5
  68. package/dist/models/AriaAutomationInput.d.ts +51 -0
  69. package/dist/models/AriaAutomationInput.js +69 -0
  70. package/dist/models/AriaOpsInput.d.ts +49 -0
  71. package/dist/models/AriaOpsInput.js +67 -0
  72. package/dist/models/AriaSecureInput.d.ts +41 -0
  73. package/dist/models/AriaSecureInput.js +59 -0
  74. package/dist/models/Assessment.js +5 -4
  75. package/dist/models/AssessmentSubsetInventory.js +3 -2
  76. package/dist/models/ClusterFeatures.d.ts +4 -0
  77. package/dist/models/ClusterFeatures.js +3 -1
  78. package/dist/models/ClusterRequirementsRequest.js +1 -1
  79. package/dist/models/ClusterRequirementsStoredInput.js +3 -3
  80. package/dist/models/CpuOverCommitRatio.js +1 -1
  81. package/dist/models/CustomerDetailsInput.d.ts +34 -0
  82. package/dist/models/CustomerDetailsInput.js +50 -0
  83. package/dist/models/DeployedEnvironmentInput.d.ts +40 -0
  84. package/dist/models/DeployedEnvironmentInput.js +58 -0
  85. package/dist/models/EnhancementData.d.ts +76 -0
  86. package/dist/models/EnhancementData.js +76 -0
  87. package/dist/models/Group.js +6 -5
  88. package/dist/models/GroupCreate.js +1 -1
  89. package/dist/models/Host.d.ts +8 -0
  90. package/dist/models/Host.js +4 -0
  91. package/dist/models/Identity.js +1 -1
  92. package/dist/models/Inventory.d.ts +4 -0
  93. package/dist/models/Inventory.js +2 -0
  94. package/dist/models/JobStatus.js +1 -1
  95. package/dist/models/Member.js +5 -4
  96. package/dist/models/MemoryOverCommitRatio.js +1 -1
  97. package/dist/models/Network.js +1 -1
  98. package/dist/models/NsxInput.d.ts +46 -0
  99. package/dist/models/NsxInput.js +64 -0
  100. package/dist/models/OptimizationStatus.js +1 -1
  101. package/dist/models/OsInfo.js +1 -1
  102. package/dist/models/PartnerRequest.js +7 -6
  103. package/dist/models/PartnerRequestStatus.js +1 -1
  104. package/dist/models/PresignedUrl.js +3 -2
  105. package/dist/models/Snapshot.js +3 -2
  106. package/dist/models/Source.js +6 -5
  107. package/dist/models/SourceCreate.js +1 -1
  108. package/dist/models/SourceUpdate.js +1 -1
  109. package/dist/models/StandaloneClusterRequirementsRequest.js +1 -1
  110. package/dist/models/StorageIoConfiguration.js +1 -1
  111. package/dist/models/VMwareSubscriptionInput.d.ts +42 -0
  112. package/dist/models/VMwareSubscriptionInput.js +60 -0
  113. package/dist/models/VMwareVersionCountsInput.d.ts +42 -0
  114. package/dist/models/VMwareVersionCountsInput.js +54 -0
  115. package/dist/models/VsphereCoreInput.d.ts +38 -0
  116. package/dist/models/VsphereCoreInput.js +52 -0
  117. package/dist/models/index.d.ts +11 -0
  118. package/dist/models/index.js +11 -0
  119. package/dist/runtime.d.ts +11 -0
  120. package/dist/runtime.js +51 -1
  121. package/docs/ActiveEnvironmentsInput.md +34 -0
  122. package/docs/AriaAutomationInput.md +34 -0
  123. package/docs/AriaOpsInput.md +34 -0
  124. package/docs/AriaSecureInput.md +34 -0
  125. package/docs/AssessmentApi.md +148 -0
  126. package/docs/ClusterFeatures.md +2 -0
  127. package/docs/CustomerDetailsInput.md +36 -0
  128. package/docs/DeployedEnvironmentInput.md +34 -0
  129. package/docs/EnhancementData.md +53 -0
  130. package/docs/Host.md +4 -0
  131. package/docs/Inventory.md +2 -0
  132. package/docs/NsxInput.md +34 -0
  133. package/docs/VMwareSubscriptionInput.md +34 -0
  134. package/docs/VMwareVersionCountsInput.md +40 -0
  135. package/docs/VsphereCoreInput.md +38 -0
  136. package/package.json +1 -1
  137. package/src/apis/AccountApi.ts +1 -1
  138. package/src/apis/AssessmentApi.ts +169 -0
  139. package/src/models/ActiveEnvironmentsInput.ts +77 -0
  140. package/src/models/Agent.ts +6 -6
  141. package/src/models/AriaAutomationInput.ts +87 -0
  142. package/src/models/AriaOpsInput.ts +85 -0
  143. package/src/models/AriaSecureInput.ts +77 -0
  144. package/src/models/Assessment.ts +5 -5
  145. package/src/models/AssessmentSubsetInventory.ts +3 -3
  146. package/src/models/ClusterFeatures.ts +7 -1
  147. package/src/models/ClusterRequirementsRequest.ts +1 -1
  148. package/src/models/ClusterRequirementsStoredInput.ts +3 -3
  149. package/src/models/CpuOverCommitRatio.ts +1 -1
  150. package/src/models/CustomerDetailsInput.ts +69 -0
  151. package/src/models/DeployedEnvironmentInput.ts +76 -0
  152. package/src/models/EnhancementData.ts +188 -0
  153. package/src/models/Group.ts +6 -6
  154. package/src/models/GroupCreate.ts +1 -1
  155. package/src/models/Host.ts +12 -0
  156. package/src/models/Identity.ts +1 -1
  157. package/src/models/Inventory.ts +7 -1
  158. package/src/models/JobStatus.ts +1 -1
  159. package/src/models/Member.ts +5 -5
  160. package/src/models/MemoryOverCommitRatio.ts +1 -1
  161. package/src/models/Network.ts +1 -1
  162. package/src/models/NsxInput.ts +82 -0
  163. package/src/models/OptimizationStatus.ts +1 -1
  164. package/src/models/OsInfo.ts +1 -1
  165. package/src/models/PartnerRequest.ts +7 -7
  166. package/src/models/PartnerRequestStatus.ts +1 -1
  167. package/src/models/PresignedUrl.ts +3 -3
  168. package/src/models/Snapshot.ts +3 -3
  169. package/src/models/Source.ts +6 -6
  170. package/src/models/SourceCreate.ts +1 -1
  171. package/src/models/SourceUpdate.ts +1 -1
  172. package/src/models/StandaloneClusterRequirementsRequest.ts +1 -1
  173. package/src/models/StorageIoConfiguration.ts +1 -1
  174. package/src/models/VMwareSubscriptionInput.ts +78 -0
  175. package/src/models/VMwareVersionCountsInput.ts +81 -0
  176. package/src/models/VsphereCoreInput.ts +75 -0
  177. package/src/models/index.ts +11 -0
  178. package/src/runtime.ts +52 -1
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { mapValues } from '../runtime.js';
15
+ import { mapValues, parseDate, parseDateTime, serializeDate, serializeDateTime } from '../runtime.js';
16
16
  import type { PartnerRequestStatus } from './PartnerRequestStatus.js';
17
17
  import {
18
18
  PartnerRequestStatusFromJSON,
@@ -127,9 +127,9 @@ export function PartnerRequestFromJSONTyped(json: any, ignoreDiscriminator: bool
127
127
  'email': json['email'],
128
128
  'location': json['location'],
129
129
  'reason': json['reason'] === undefined ? undefined : json['reason'] === null ? null : json['reason'],
130
- 'acceptedAt': json['acceptedAt'] === undefined ? undefined : json['acceptedAt'] === null ? null : (new Date(json['acceptedAt'])),
131
- 'terminatedAt': json['terminatedAt'] === undefined ? undefined : json['terminatedAt'] === null ? null : (new Date(json['terminatedAt'])),
132
- 'createdAt': (new Date(json['createdAt'])),
130
+ 'acceptedAt': json['acceptedAt'] === undefined ? undefined : json['acceptedAt'] === null ? null : (parseDateTime(json['acceptedAt'])),
131
+ 'terminatedAt': json['terminatedAt'] === undefined ? undefined : json['terminatedAt'] === null ? null : (parseDateTime(json['terminatedAt'])),
132
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
133
133
  };
134
134
  }
135
135
 
@@ -154,9 +154,9 @@ export function PartnerRequestToJSONTyped(value?: PartnerRequest | null, ignoreD
154
154
  'email': value['email'],
155
155
  'location': value['location'],
156
156
  'reason': value['reason'],
157
- 'acceptedAt': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt'].toISOString(),
158
- 'terminatedAt': value['terminatedAt'] == null ? value['terminatedAt'] : value['terminatedAt'].toISOString(),
159
- 'createdAt': value['createdAt'].toISOString(),
157
+ 'acceptedAt': value['acceptedAt'] == null ? value['acceptedAt'] : serializeDateTime(value['acceptedAt']),
158
+ 'terminatedAt': value['terminatedAt'] == null ? value['terminatedAt'] : serializeDateTime(value['terminatedAt']),
159
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
160
160
  };
161
161
  }
162
162
 
@@ -21,7 +21,7 @@ export const PartnerRequestStatus = {
21
21
  Pending: 'pending',
22
22
  Accepted: 'accepted',
23
23
  Rejected: 'rejected',
24
- Cancelled: 'cancelled'
24
+ Cancelled: 'cancelled',
25
25
  } as const;
26
26
  export type PartnerRequestStatus = typeof PartnerRequestStatus[keyof typeof PartnerRequestStatus];
27
27
 
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { mapValues } from '../runtime.js';
15
+ import { mapValues, parseDate, parseDateTime, serializeDate, serializeDateTime } from '../runtime.js';
16
16
  /**
17
17
  *
18
18
  * @export
@@ -48,7 +48,7 @@ export function PresignedUrlFromJSONTyped(json: any, ignoreDiscriminator: boolea
48
48
  return {
49
49
 
50
50
  'url': json['url'],
51
- 'expiresAt': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
51
+ 'expiresAt': json['expires_at'] == null ? undefined : (parseDateTime(json['expires_at'])),
52
52
  };
53
53
  }
54
54
 
@@ -64,7 +64,7 @@ export function PresignedUrlToJSONTyped(value?: PresignedUrl | null, ignoreDiscr
64
64
  return {
65
65
 
66
66
  'url': value['url'],
67
- 'expires_at': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
67
+ 'expires_at': value['expiresAt'] == null ? value['expiresAt'] : serializeDateTime(value['expiresAt']),
68
68
  };
69
69
  }
70
70
 
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { mapValues } from '../runtime.js';
15
+ import { mapValues, parseDate, parseDateTime, serializeDate, serializeDateTime } from '../runtime.js';
16
16
  import type { AssessmentSubsetInventory } from './AssessmentSubsetInventory.js';
17
17
  import {
18
18
  AssessmentSubsetInventoryFromJSON,
@@ -68,7 +68,7 @@ export function SnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean):
68
68
  return {
69
69
 
70
70
  'inventory': InventoryFromJSON(json['inventory']),
71
- 'createdAt': (new Date(json['createdAt'])),
71
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
72
72
  'subsetInventories': json['subsetInventories'] === undefined ? undefined : json['subsetInventories'] === null ? null : ((json['subsetInventories'] as Array<any>).map(AssessmentSubsetInventoryFromJSON)),
73
73
  };
74
74
  }
@@ -85,7 +85,7 @@ export function SnapshotToJSONTyped(value?: Snapshot | null, ignoreDiscriminator
85
85
  return {
86
86
 
87
87
  'inventory': InventoryToJSON(value['inventory']),
88
- 'createdAt': value['createdAt'].toISOString(),
88
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
89
89
  'subsetInventories': value['subsetInventories'] == null ? undefined : ((value['subsetInventories'] as Array<any>).map(AssessmentSubsetInventoryToJSON)),
90
90
  };
91
91
  }
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { mapValues } from '../runtime.js';
15
+ import { mapValues, parseDate, parseDateTime, serializeDate, serializeDateTime } from '../runtime.js';
16
16
  import type { SourceInfra } from './SourceInfra.js';
17
17
  import {
18
18
  SourceInfraFromJSON,
@@ -104,7 +104,7 @@ export interface Source {
104
104
  */
105
105
  export const SourceUpdateTypeEnum = {
106
106
  Auto: 'auto',
107
- Manual: 'manual'
107
+ Manual: 'manual',
108
108
  } as const;
109
109
  export type SourceUpdateTypeEnum = typeof SourceUpdateTypeEnum[keyof typeof SourceUpdateTypeEnum];
110
110
 
@@ -134,8 +134,8 @@ export function SourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): So
134
134
  'id': json['id'],
135
135
  'name': json['name'],
136
136
  'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
137
- 'createdAt': (new Date(json['createdAt'])),
138
- 'updatedAt': (new Date(json['updatedAt'])),
137
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
138
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : parseDateTime(json['updatedAt'])),
139
139
  'onPremises': json['onPremises'],
140
140
  'agent': json['agent'] == null ? undefined : AgentFromJSON(json['agent']),
141
141
  'labels': json['labels'] == null ? undefined : ((json['labels'] as Array<any>).map(LabelFromJSON)),
@@ -160,8 +160,8 @@ export function SourceToJSONTyped(value?: Source | null, ignoreDiscriminator: bo
160
160
  'id': value['id'],
161
161
  'name': value['name'],
162
162
  'inventory': InventoryToJSON(value['inventory']),
163
- 'createdAt': value['createdAt'].toISOString(),
164
- 'updatedAt': value['updatedAt'].toISOString(),
163
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
164
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : serializeDateTime(value['updatedAt']),
165
165
  'onPremises': value['onPremises'],
166
166
  'agent': AgentToJSON(value['agent']),
167
167
  'labels': value['labels'] == null ? undefined : ((value['labels'] as Array<any>).map(LabelToJSON)),
@@ -85,7 +85,7 @@ export interface SourceCreate {
85
85
  */
86
86
  export const SourceCreateNetworkConfigTypeEnum = {
87
87
  Dhcp: 'dhcp',
88
- Static: 'static'
88
+ Static: 'static',
89
89
  } as const;
90
90
  export type SourceCreateNetworkConfigTypeEnum = typeof SourceCreateNetworkConfigTypeEnum[keyof typeof SourceCreateNetworkConfigTypeEnum];
91
91
 
@@ -85,7 +85,7 @@ export interface SourceUpdate {
85
85
  */
86
86
  export const SourceUpdateNetworkConfigTypeEnum = {
87
87
  Dhcp: 'dhcp',
88
- Static: 'static'
88
+ Static: 'static',
89
89
  } as const;
90
90
  export type SourceUpdateNetworkConfigTypeEnum = typeof SourceUpdateNetworkConfigTypeEnum[keyof typeof SourceUpdateNetworkConfigTypeEnum];
91
91
 
@@ -98,7 +98,7 @@ export interface StandaloneClusterRequirementsRequest {
98
98
  */
99
99
  export const StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum = {
100
100
  NUMBER_1: 1,
101
- NUMBER_3: 3
101
+ NUMBER_3: 3,
102
102
  } as const;
103
103
  export type StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum = typeof StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum[keyof typeof StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum];
104
104
 
@@ -43,7 +43,7 @@ export interface StorageIoConfiguration {
43
43
  */
44
44
  export const StorageIoConfigurationCongestionThresholdModeEnum = {
45
45
  Automatic: 'automatic',
46
- Manual: 'manual'
46
+ Manual: 'manual',
47
47
  } as const;
48
48
  export type StorageIoConfigurationCongestionThresholdModeEnum = typeof StorageIoConfigurationCongestionThresholdModeEnum[keyof typeof StorageIoConfigurationCongestionThresholdModeEnum];
49
49
 
@@ -0,0 +1,78 @@
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
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface VMwareSubscriptionInput
20
+ */
21
+ export interface VMwareSubscriptionInput {
22
+ /**
23
+ *
24
+ */
25
+ level?: Set<VMwareSubscriptionInputLevelEnum>;
26
+ }
27
+
28
+
29
+ /**
30
+ * @export
31
+ */
32
+ export const VMwareSubscriptionInputLevelEnum = {
33
+ Vcf: 'vcf',
34
+ Vvf: 'vvf',
35
+ Vvs: 'vvs',
36
+ Vvep: 'vvep',
37
+ Vsphere: 'vsphere',
38
+ NotAssessed: 'not_assessed',
39
+ } as const;
40
+ export type VMwareSubscriptionInputLevelEnum = typeof VMwareSubscriptionInputLevelEnum[keyof typeof VMwareSubscriptionInputLevelEnum];
41
+
42
+
43
+ /**
44
+ * Check if a given object implements the VMwareSubscriptionInput interface.
45
+ */
46
+ export function instanceOfVMwareSubscriptionInput(value: object): value is VMwareSubscriptionInput {
47
+ return true;
48
+ }
49
+
50
+ export function VMwareSubscriptionInputFromJSON(json: any): VMwareSubscriptionInput {
51
+ return VMwareSubscriptionInputFromJSONTyped(json, false);
52
+ }
53
+
54
+ export function VMwareSubscriptionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMwareSubscriptionInput {
55
+ if (json == null) {
56
+ return json;
57
+ }
58
+ return {
59
+
60
+ 'level': json['level'] == null ? undefined : new Set(json['level']),
61
+ };
62
+ }
63
+
64
+ export function VMwareSubscriptionInputToJSON(json: any): VMwareSubscriptionInput {
65
+ return VMwareSubscriptionInputToJSONTyped(json, false);
66
+ }
67
+
68
+ export function VMwareSubscriptionInputToJSONTyped(value?: VMwareSubscriptionInput | null, ignoreDiscriminator: boolean = false): any {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+
73
+ return {
74
+
75
+ 'level': value['level'] == null ? undefined : Array.from(value['level'] as Set<any>),
76
+ };
77
+ }
78
+
@@ -0,0 +1,81 @@
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
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface VMwareVersionCountsInput
20
+ */
21
+ export interface VMwareVersionCountsInput {
22
+ /**
23
+ *
24
+ */
25
+ perpetualLicensesCount?: number;
26
+ /**
27
+ *
28
+ */
29
+ coresLicensingCount?: number;
30
+ /**
31
+ *
32
+ */
33
+ environmentCount?: number;
34
+ /**
35
+ *
36
+ */
37
+ otherNodesCount?: number;
38
+ }
39
+
40
+ /**
41
+ * Check if a given object implements the VMwareVersionCountsInput interface.
42
+ */
43
+ export function instanceOfVMwareVersionCountsInput(value: object): value is VMwareVersionCountsInput {
44
+ return true;
45
+ }
46
+
47
+ export function VMwareVersionCountsInputFromJSON(json: any): VMwareVersionCountsInput {
48
+ return VMwareVersionCountsInputFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function VMwareVersionCountsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMwareVersionCountsInput {
52
+ if (json == null) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'perpetualLicensesCount': json['perpetualLicensesCount'] == null ? undefined : json['perpetualLicensesCount'],
58
+ 'coresLicensingCount': json['coresLicensingCount'] == null ? undefined : json['coresLicensingCount'],
59
+ 'environmentCount': json['environmentCount'] == null ? undefined : json['environmentCount'],
60
+ 'otherNodesCount': json['otherNodesCount'] == null ? undefined : json['otherNodesCount'],
61
+ };
62
+ }
63
+
64
+ export function VMwareVersionCountsInputToJSON(json: any): VMwareVersionCountsInput {
65
+ return VMwareVersionCountsInputToJSONTyped(json, false);
66
+ }
67
+
68
+ export function VMwareVersionCountsInputToJSONTyped(value?: VMwareVersionCountsInput | null, ignoreDiscriminator: boolean = false): any {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+
73
+ return {
74
+
75
+ 'perpetualLicensesCount': value['perpetualLicensesCount'],
76
+ 'coresLicensingCount': value['coresLicensingCount'],
77
+ 'environmentCount': value['environmentCount'],
78
+ 'otherNodesCount': value['otherNodesCount'],
79
+ };
80
+ }
81
+
@@ -0,0 +1,75 @@
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
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface VsphereCoreInput
20
+ */
21
+ export interface VsphereCoreInput {
22
+ /**
23
+ *
24
+ */
25
+ vmEncryptionEnabled?: boolean;
26
+ /**
27
+ *
28
+ */
29
+ vmEncryptionPolicy?: string;
30
+ /**
31
+ *
32
+ */
33
+ srmEnabled?: boolean;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the VsphereCoreInput interface.
38
+ */
39
+ export function instanceOfVsphereCoreInput(value: object): value is VsphereCoreInput {
40
+ return true;
41
+ }
42
+
43
+ export function VsphereCoreInputFromJSON(json: any): VsphereCoreInput {
44
+ return VsphereCoreInputFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function VsphereCoreInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): VsphereCoreInput {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'vmEncryptionEnabled': json['vmEncryptionEnabled'] == null ? undefined : json['vmEncryptionEnabled'],
54
+ 'vmEncryptionPolicy': json['vmEncryptionPolicy'] == null ? undefined : json['vmEncryptionPolicy'],
55
+ 'srmEnabled': json['srmEnabled'] == null ? undefined : json['srmEnabled'],
56
+ };
57
+ }
58
+
59
+ export function VsphereCoreInputToJSON(json: any): VsphereCoreInput {
60
+ return VsphereCoreInputToJSONTyped(json, false);
61
+ }
62
+
63
+ export function VsphereCoreInputToJSONTyped(value?: VsphereCoreInput | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'vmEncryptionEnabled': value['vmEncryptionEnabled'],
71
+ 'vmEncryptionPolicy': value['vmEncryptionPolicy'],
72
+ 'srmEnabled': value['srmEnabled'],
73
+ };
74
+ }
75
+
@@ -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';
package/src/runtime.ts CHANGED
@@ -346,7 +346,7 @@ function querystringSingleKey(key: string, value: string | number | null | undef
346
346
  return querystringSingleKey(key, valueAsArray, keyPrefix);
347
347
  }
348
348
  if (value instanceof Date) {
349
- return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
349
+ return `${encodeURIComponent(fullKey)}=${encodeURIComponent(serializeDateTime(value))}`;
350
350
  }
351
351
  if (value instanceof Object) {
352
352
  return querystring(value as HTTPQuery, fullKey);
@@ -359,6 +359,57 @@ export function exists(json: any, key: string) {
359
359
  return value !== null && value !== undefined;
360
360
  }
361
361
 
362
+ /**
363
+ * Every generated date call site routes through these.
364
+ *
365
+ * `format: date` is a calendar date, with no time and no offset, so it is converted
366
+ * against the local calendar on both ends: they have to agree or the date shifts by
367
+ * a day. `format: date-time` is an instant and uses UTC.
368
+ */
369
+ export function serializeDateTime(value: Date): string {
370
+ return value.toISOString();
371
+ }
372
+
373
+ export function serializeDate(value: Date): string {
374
+ if (isNaN(value.getTime())) {
375
+ throw new RangeError('Invalid time value');
376
+ }
377
+ const year = ('000' + value.getFullYear()).slice(-4);
378
+ const month = ('0' + (value.getMonth() + 1)).slice(-2);
379
+ const day = ('0' + value.getDate()).slice(-2);
380
+ return `${year}-${month}-${day}`;
381
+ }
382
+
383
+
384
+ export function parseDate(value: Date | string): Date {
385
+ if (value instanceof Date) {
386
+ return value;
387
+ }
388
+ // `new Date("2026-08-05")` would parse as UTC midnight: a different day west of UTC.
389
+ // Local midnight is the stated day everywhere. setFullYear avoids the 1900 offset the
390
+ // multi-argument constructor applies to years 0-99.
391
+ const fullDate = /^(\d{4})-(\d{2})-(\d{2})$/.exec(String(value));
392
+ if (fullDate) {
393
+ const year = Number(fullDate[1]);
394
+ const month = Number(fullDate[2]) - 1;
395
+ const day = Number(fullDate[3]);
396
+ const date = new Date(0);
397
+ date.setFullYear(year, month, day);
398
+ date.setHours(0, 0, 0, 0);
399
+ // Out-of-range components (or a day the local zone skipped) silently roll over,
400
+ // which would hand back a date the server never sent.
401
+ if (date.getFullYear() !== year || date.getMonth() !== month || date.getDate() !== day) {
402
+ return new Date(NaN);
403
+ }
404
+ return date;
405
+ }
406
+ return new Date(value);
407
+ }
408
+
409
+ export function parseDateTime(value: any): Date {
410
+ return new Date(value);
411
+ }
412
+
362
413
  export function mapValues(data: any, fn: (item: any) => any) {
363
414
  const result: { [key: string]: any } = {};
364
415
  for (const key of Object.keys(data)) {