@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
@@ -43,6 +43,11 @@ import {
43
43
  ClusterRequirementsStoredInputFromJSON,
44
44
  ClusterRequirementsStoredInputToJSON,
45
45
  } from '../models/ClusterRequirementsStoredInput.js';
46
+ import {
47
+ type EnhancementData,
48
+ EnhancementDataFromJSON,
49
+ EnhancementDataToJSON,
50
+ } from '../models/EnhancementData.js';
46
51
  import {
47
52
  type MigrationComplexityRequest,
48
53
  MigrationComplexityRequestFromJSON,
@@ -150,6 +155,13 @@ export interface GetAssessmentClusterRequirementsStoredInputRequest {
150
155
  clusterId: string;
151
156
  }
152
157
 
158
+ export interface GetAssessmentEnhancementDataRequest {
159
+ /**
160
+ * ID of the assessment
161
+ */
162
+ id: string;
163
+ }
164
+
153
165
  export interface ListAssessmentsRequest {
154
166
  /**
155
167
  * Filter assessments by source ID
@@ -157,6 +169,17 @@ export interface ListAssessmentsRequest {
157
169
  sourceId?: string;
158
170
  }
159
171
 
172
+ export interface SaveAssessmentEnhancementDataRequest {
173
+ /**
174
+ * ID of the assessment
175
+ */
176
+ id: string;
177
+ /**
178
+ *
179
+ */
180
+ enhancementData: EnhancementData;
181
+ }
182
+
160
183
  export interface ShareAssessmentRequest {
161
184
  /**
162
185
  * ID of the assessment
@@ -375,6 +398,28 @@ export interface AssessmentApiInterface {
375
398
  */
376
399
  getAssessmentClusterRequirementsStoredInput(requestParameters: GetAssessmentClusterRequirementsStoredInputRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClusterRequirementsStoredInput>;
377
400
 
401
+ /**
402
+ * Creates request options for getAssessmentEnhancementData without sending the request
403
+ * @param {string} id ID of the assessment
404
+ * @throws {RequiredError}
405
+ * @memberof AssessmentApiInterface
406
+ */
407
+ getAssessmentEnhancementDataRequestOpts(requestParameters: GetAssessmentEnhancementDataRequest): Promise<runtime.RequestOpts>;
408
+
409
+ /**
410
+ * Get stored enhancement data for an assessment
411
+ * @param {string} id ID of the assessment
412
+ * @param {*} [options] Override http request option.
413
+ * @throws {RequiredError}
414
+ * @memberof AssessmentApiInterface
415
+ */
416
+ getAssessmentEnhancementDataRaw(requestParameters: GetAssessmentEnhancementDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EnhancementData>>;
417
+
418
+ /**
419
+ * Get stored enhancement data for an assessment
420
+ */
421
+ getAssessmentEnhancementData(requestParameters: GetAssessmentEnhancementDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EnhancementData>;
422
+
378
423
  /**
379
424
  * Creates request options for listAssessments without sending the request
380
425
  * @param {string} [sourceId] Filter assessments by source ID
@@ -397,6 +442,30 @@ export interface AssessmentApiInterface {
397
442
  */
398
443
  listAssessments(requestParameters: ListAssessmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Assessment>>;
399
444
 
445
+ /**
446
+ * Creates request options for saveAssessmentEnhancementData without sending the request
447
+ * @param {string} id ID of the assessment
448
+ * @param {EnhancementData} enhancementData
449
+ * @throws {RequiredError}
450
+ * @memberof AssessmentApiInterface
451
+ */
452
+ saveAssessmentEnhancementDataRequestOpts(requestParameters: SaveAssessmentEnhancementDataRequest): Promise<runtime.RequestOpts>;
453
+
454
+ /**
455
+ * Save enhancement data for an assessment
456
+ * @param {string} id ID of the assessment
457
+ * @param {EnhancementData} enhancementData
458
+ * @param {*} [options] Override http request option.
459
+ * @throws {RequiredError}
460
+ * @memberof AssessmentApiInterface
461
+ */
462
+ saveAssessmentEnhancementDataRaw(requestParameters: SaveAssessmentEnhancementDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EnhancementData>>;
463
+
464
+ /**
465
+ * Save enhancement data for an assessment
466
+ */
467
+ saveAssessmentEnhancementData(requestParameters: SaveAssessmentEnhancementDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EnhancementData>;
468
+
400
469
  /**
401
470
  * Creates request options for shareAssessment without sending the request
402
471
  * @param {string} id ID of the assessment
@@ -885,6 +954,51 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
885
954
  return await response.value();
886
955
  }
887
956
 
957
+ /**
958
+ * Creates request options for getAssessmentEnhancementData without sending the request
959
+ */
960
+ async getAssessmentEnhancementDataRequestOpts(requestParameters: GetAssessmentEnhancementDataRequest): Promise<runtime.RequestOpts> {
961
+ if (requestParameters['id'] == null) {
962
+ throw new runtime.RequiredError(
963
+ 'id',
964
+ 'Required parameter "id" was null or undefined when calling getAssessmentEnhancementData().'
965
+ );
966
+ }
967
+
968
+ const queryParameters: any = {};
969
+
970
+ const headerParameters: runtime.HTTPHeaders = {};
971
+
972
+
973
+ let urlPath = `/api/v1/assessments/{id}/enhancement-data`;
974
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
975
+
976
+ return {
977
+ path: urlPath,
978
+ method: 'GET',
979
+ headers: headerParameters,
980
+ query: queryParameters,
981
+ };
982
+ }
983
+
984
+ /**
985
+ * Get stored enhancement data for an assessment
986
+ */
987
+ async getAssessmentEnhancementDataRaw(requestParameters: GetAssessmentEnhancementDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EnhancementData>> {
988
+ const requestOptions = await this.getAssessmentEnhancementDataRequestOpts(requestParameters);
989
+ const response = await this.request(requestOptions, initOverrides);
990
+
991
+ return new runtime.JSONApiResponse(response, (jsonValue) => EnhancementDataFromJSON(jsonValue));
992
+ }
993
+
994
+ /**
995
+ * Get stored enhancement data for an assessment
996
+ */
997
+ async getAssessmentEnhancementData(requestParameters: GetAssessmentEnhancementDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EnhancementData> {
998
+ const response = await this.getAssessmentEnhancementDataRaw(requestParameters, initOverrides);
999
+ return await response.value();
1000
+ }
1001
+
888
1002
  /**
889
1003
  * Creates request options for listAssessments without sending the request
890
1004
  */
@@ -926,6 +1040,61 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
926
1040
  return await response.value();
927
1041
  }
928
1042
 
1043
+ /**
1044
+ * Creates request options for saveAssessmentEnhancementData without sending the request
1045
+ */
1046
+ async saveAssessmentEnhancementDataRequestOpts(requestParameters: SaveAssessmentEnhancementDataRequest): Promise<runtime.RequestOpts> {
1047
+ if (requestParameters['id'] == null) {
1048
+ throw new runtime.RequiredError(
1049
+ 'id',
1050
+ 'Required parameter "id" was null or undefined when calling saveAssessmentEnhancementData().'
1051
+ );
1052
+ }
1053
+
1054
+ if (requestParameters['enhancementData'] == null) {
1055
+ throw new runtime.RequiredError(
1056
+ 'enhancementData',
1057
+ 'Required parameter "enhancementData" was null or undefined when calling saveAssessmentEnhancementData().'
1058
+ );
1059
+ }
1060
+
1061
+ const queryParameters: any = {};
1062
+
1063
+ const headerParameters: runtime.HTTPHeaders = {};
1064
+
1065
+ headerParameters['Content-Type'] = 'application/json';
1066
+
1067
+
1068
+ let urlPath = `/api/v1/assessments/{id}/enhancement-data`;
1069
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1070
+
1071
+ return {
1072
+ path: urlPath,
1073
+ method: 'POST',
1074
+ headers: headerParameters,
1075
+ query: queryParameters,
1076
+ body: EnhancementDataToJSON(requestParameters['enhancementData']),
1077
+ };
1078
+ }
1079
+
1080
+ /**
1081
+ * Save enhancement data for an assessment
1082
+ */
1083
+ async saveAssessmentEnhancementDataRaw(requestParameters: SaveAssessmentEnhancementDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EnhancementData>> {
1084
+ const requestOptions = await this.saveAssessmentEnhancementDataRequestOpts(requestParameters);
1085
+ const response = await this.request(requestOptions, initOverrides);
1086
+
1087
+ return new runtime.JSONApiResponse(response, (jsonValue) => EnhancementDataFromJSON(jsonValue));
1088
+ }
1089
+
1090
+ /**
1091
+ * Save enhancement data for an assessment
1092
+ */
1093
+ async saveAssessmentEnhancementData(requestParameters: SaveAssessmentEnhancementDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EnhancementData> {
1094
+ const response = await this.saveAssessmentEnhancementDataRaw(requestParameters, initOverrides);
1095
+ return await response.value();
1096
+ }
1097
+
929
1098
  /**
930
1099
  * Creates request options for shareAssessment without sending the request
931
1100
  */
@@ -0,0 +1,77 @@
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 ActiveEnvironmentsInput
20
+ */
21
+ export interface ActiveEnvironmentsInput {
22
+ /**
23
+ *
24
+ */
25
+ environments?: Set<ActiveEnvironmentsInputEnvironmentsEnum>;
26
+ }
27
+
28
+
29
+ /**
30
+ * @export
31
+ */
32
+ export const ActiveEnvironmentsInputEnvironmentsEnum = {
33
+ Production: 'production',
34
+ Qa: 'qa',
35
+ Dev: 'dev',
36
+ Other: 'other',
37
+ NotAssessed: 'not_assessed',
38
+ } as const;
39
+ export type ActiveEnvironmentsInputEnvironmentsEnum = typeof ActiveEnvironmentsInputEnvironmentsEnum[keyof typeof ActiveEnvironmentsInputEnvironmentsEnum];
40
+
41
+
42
+ /**
43
+ * Check if a given object implements the ActiveEnvironmentsInput interface.
44
+ */
45
+ export function instanceOfActiveEnvironmentsInput(value: object): value is ActiveEnvironmentsInput {
46
+ return true;
47
+ }
48
+
49
+ export function ActiveEnvironmentsInputFromJSON(json: any): ActiveEnvironmentsInput {
50
+ return ActiveEnvironmentsInputFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function ActiveEnvironmentsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActiveEnvironmentsInput {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'environments': json['environments'] == null ? undefined : new Set(json['environments']),
60
+ };
61
+ }
62
+
63
+ export function ActiveEnvironmentsInputToJSON(json: any): ActiveEnvironmentsInput {
64
+ return ActiveEnvironmentsInputToJSONTyped(json, false);
65
+ }
66
+
67
+ export function ActiveEnvironmentsInputToJSONTyped(value?: ActiveEnvironmentsInput | null, ignoreDiscriminator: boolean = false): any {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+
72
+ return {
73
+
74
+ 'environments': value['environments'] == null ? undefined : Array.from(value['environments'] as Set<any>),
75
+ };
76
+ }
77
+
@@ -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
@@ -59,7 +59,7 @@ export const AgentStatusEnum = {
59
59
  Error: 'error',
60
60
  GatheringInitialInventory: 'gathering-initial-inventory',
61
61
  UpToDate: 'up-to-date',
62
- SourceGone: 'source-gone'
62
+ SourceGone: 'source-gone',
63
63
  } as const;
64
64
  export type AgentStatusEnum = typeof AgentStatusEnum[keyof typeof AgentStatusEnum];
65
65
 
@@ -92,8 +92,8 @@ export function AgentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Age
92
92
  'status': json['status'],
93
93
  'statusInfo': json['statusInfo'],
94
94
  'credentialUrl': json['credentialUrl'],
95
- 'createdAt': (new Date(json['createdAt'])),
96
- 'updatedAt': (new Date(json['updatedAt'])),
95
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
96
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : parseDateTime(json['updatedAt'])),
97
97
  'version': json['version'],
98
98
  };
99
99
  }
@@ -113,8 +113,8 @@ export function AgentToJSONTyped(value?: Agent | null, ignoreDiscriminator: bool
113
113
  'status': value['status'],
114
114
  'statusInfo': value['statusInfo'],
115
115
  'credentialUrl': value['credentialUrl'],
116
- 'createdAt': value['createdAt'].toISOString(),
117
- 'updatedAt': value['updatedAt'].toISOString(),
116
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
117
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : serializeDateTime(value['updatedAt']),
118
118
  'version': value['version'],
119
119
  };
120
120
  }
@@ -0,0 +1,87 @@
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 AriaAutomationInput
20
+ */
21
+ export interface AriaAutomationInput {
22
+ /**
23
+ *
24
+ */
25
+ features?: Set<AriaAutomationInputFeaturesEnum>;
26
+ }
27
+
28
+
29
+ /**
30
+ * @export
31
+ */
32
+ export const AriaAutomationInputFeaturesEnum = {
33
+ InfraProvisioning: 'infra_provisioning',
34
+ CloudAssembly: 'cloud_assembly',
35
+ ServiceCatalog: 'service_catalog',
36
+ Blueprints: 'blueprints',
37
+ ConfigMgmt: 'config_mgmt',
38
+ Hcx: 'hcx',
39
+ Orchestrator: 'orchestrator',
40
+ Terraform: 'terraform',
41
+ Dsm: 'dsm',
42
+ TanzuK8s: 'tanzu_k8s',
43
+ TanzuApp: 'tanzu_app',
44
+ K8sNamespaces: 'k8s_namespaces',
45
+ NotAssessed: 'not_assessed',
46
+ NotAvailable: 'not_available',
47
+ NotInUse: 'not_in_use',
48
+ } as const;
49
+ export type AriaAutomationInputFeaturesEnum = typeof AriaAutomationInputFeaturesEnum[keyof typeof AriaAutomationInputFeaturesEnum];
50
+
51
+
52
+ /**
53
+ * Check if a given object implements the AriaAutomationInput interface.
54
+ */
55
+ export function instanceOfAriaAutomationInput(value: object): value is AriaAutomationInput {
56
+ return true;
57
+ }
58
+
59
+ export function AriaAutomationInputFromJSON(json: any): AriaAutomationInput {
60
+ return AriaAutomationInputFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function AriaAutomationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AriaAutomationInput {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'features': json['features'] == null ? undefined : new Set(json['features']),
70
+ };
71
+ }
72
+
73
+ export function AriaAutomationInputToJSON(json: any): AriaAutomationInput {
74
+ return AriaAutomationInputToJSONTyped(json, false);
75
+ }
76
+
77
+ export function AriaAutomationInputToJSONTyped(value?: AriaAutomationInput | null, ignoreDiscriminator: boolean = false): any {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+
82
+ return {
83
+
84
+ 'features': value['features'] == null ? undefined : Array.from(value['features'] as Set<any>),
85
+ };
86
+ }
87
+
@@ -0,0 +1,85 @@
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 AriaOpsInput
20
+ */
21
+ export interface AriaOpsInput {
22
+ /**
23
+ *
24
+ */
25
+ features?: Set<AriaOpsInputFeaturesEnum>;
26
+ }
27
+
28
+
29
+ /**
30
+ * @export
31
+ */
32
+ export const AriaOpsInputFeaturesEnum = {
33
+ PerformanceAnalytics: 'performance_analytics',
34
+ HealthScore: 'health_score',
35
+ Alerting: 'alerting',
36
+ LogInsight: 'log_insight',
37
+ ItsmIntegration: 'itsm_integration',
38
+ Rightsizing: 'rightsizing',
39
+ AutoOptimization: 'auto_optimization',
40
+ TrueVisibility: 'true_visibility',
41
+ CapacityPlanning: 'capacity_planning',
42
+ AnomalyDetection: 'anomaly_detection',
43
+ NotAssessed: 'not_assessed',
44
+ NotAvailable: 'not_available',
45
+ NotInUse: 'not_in_use',
46
+ } as const;
47
+ export type AriaOpsInputFeaturesEnum = typeof AriaOpsInputFeaturesEnum[keyof typeof AriaOpsInputFeaturesEnum];
48
+
49
+
50
+ /**
51
+ * Check if a given object implements the AriaOpsInput interface.
52
+ */
53
+ export function instanceOfAriaOpsInput(value: object): value is AriaOpsInput {
54
+ return true;
55
+ }
56
+
57
+ export function AriaOpsInputFromJSON(json: any): AriaOpsInput {
58
+ return AriaOpsInputFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function AriaOpsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AriaOpsInput {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'features': json['features'] == null ? undefined : new Set(json['features']),
68
+ };
69
+ }
70
+
71
+ export function AriaOpsInputToJSON(json: any): AriaOpsInput {
72
+ return AriaOpsInputToJSONTyped(json, false);
73
+ }
74
+
75
+ export function AriaOpsInputToJSONTyped(value?: AriaOpsInput | null, ignoreDiscriminator: boolean = false): any {
76
+ if (value == null) {
77
+ return value;
78
+ }
79
+
80
+ return {
81
+
82
+ 'features': value['features'] == null ? undefined : Array.from(value['features'] as Set<any>),
83
+ };
84
+ }
85
+
@@ -0,0 +1,77 @@
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 AriaSecureInput
20
+ */
21
+ export interface AriaSecureInput {
22
+ /**
23
+ *
24
+ */
25
+ features?: Set<AriaSecureInputFeaturesEnum>;
26
+ }
27
+
28
+
29
+ /**
30
+ * @export
31
+ */
32
+ export const AriaSecureInputFeaturesEnum = {
33
+ PolicyGovernance: 'policy_governance',
34
+ ComplianceMonitoring: 'compliance_monitoring',
35
+ NotAssessed: 'not_assessed',
36
+ NotAvailable: 'not_available',
37
+ NotInUse: 'not_in_use',
38
+ } as const;
39
+ export type AriaSecureInputFeaturesEnum = typeof AriaSecureInputFeaturesEnum[keyof typeof AriaSecureInputFeaturesEnum];
40
+
41
+
42
+ /**
43
+ * Check if a given object implements the AriaSecureInput interface.
44
+ */
45
+ export function instanceOfAriaSecureInput(value: object): value is AriaSecureInput {
46
+ return true;
47
+ }
48
+
49
+ export function AriaSecureInputFromJSON(json: any): AriaSecureInput {
50
+ return AriaSecureInputFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function AriaSecureInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AriaSecureInput {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'features': json['features'] == null ? undefined : new Set(json['features']),
60
+ };
61
+ }
62
+
63
+ export function AriaSecureInputToJSON(json: any): AriaSecureInput {
64
+ return AriaSecureInputToJSONTyped(json, false);
65
+ }
66
+
67
+ export function AriaSecureInputToJSONTyped(value?: AriaSecureInput | null, ignoreDiscriminator: boolean = false): any {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+
72
+ return {
73
+
74
+ 'features': value['features'] == null ? undefined : Array.from(value['features'] as Set<any>),
75
+ };
76
+ }
77
+
@@ -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 { Snapshot } from './Snapshot.js';
17
17
  import {
18
18
  SnapshotFromJSON,
@@ -83,7 +83,7 @@ export interface Assessment {
83
83
  export const AssessmentSourceTypeEnum = {
84
84
  Inventory: 'inventory',
85
85
  Rvtools: 'rvtools',
86
- Source: 'source'
86
+ Source: 'source',
87
87
  } as const;
88
88
  export type AssessmentSourceTypeEnum = typeof AssessmentSourceTypeEnum[keyof typeof AssessmentSourceTypeEnum];
89
89
 
@@ -93,7 +93,7 @@ export type AssessmentSourceTypeEnum = typeof AssessmentSourceTypeEnum[keyof typ
93
93
  export const AssessmentPermissionsEnum = {
94
94
  Read: 'read',
95
95
  Share: 'share',
96
- Delete: 'delete'
96
+ Delete: 'delete',
97
97
  } as const;
98
98
  export type AssessmentPermissionsEnum = typeof AssessmentPermissionsEnum[keyof typeof AssessmentPermissionsEnum];
99
99
 
@@ -126,7 +126,7 @@ export function AssessmentFromJSONTyped(json: any, ignoreDiscriminator: boolean)
126
126
  'ownerLastName': json['ownerLastName'] == null ? undefined : json['ownerLastName'],
127
127
  'sourceType': json['sourceType'],
128
128
  'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
129
- 'createdAt': (new Date(json['createdAt'])),
129
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
130
130
  'snapshots': ((json['snapshots'] as Array<any>).map(SnapshotFromJSON)),
131
131
  'permissions': json['permissions'] == null ? undefined : json['permissions'],
132
132
  'sharing': json['sharing'] == null ? undefined : AssessmentSharingFromJSON(json['sharing']),
@@ -150,7 +150,7 @@ export function AssessmentToJSONTyped(value?: Assessment | null, ignoreDiscrimin
150
150
  'ownerLastName': value['ownerLastName'],
151
151
  'sourceType': value['sourceType'],
152
152
  'sourceId': value['sourceId'],
153
- 'createdAt': value['createdAt'].toISOString(),
153
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
154
154
  'snapshots': ((value['snapshots'] as Array<any>).map(SnapshotToJSON)),
155
155
  'permissions': value['permissions'],
156
156
  'sharing': AssessmentSharingToJSON(value['sharing']),
@@ -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 { Inventory } from './Inventory.js';
17
17
  import {
18
18
  InventoryFromJSON,
@@ -81,7 +81,7 @@ export function AssessmentSubsetInventoryFromJSONTyped(json: any, ignoreDiscrimi
81
81
  'vcenterId': json['vcenterId'],
82
82
  'vmsCount': json['vmsCount'],
83
83
  'inventory': InventoryFromJSON(json['inventory']),
84
- 'createdAt': (new Date(json['createdAt'])),
84
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
85
85
  };
86
86
  }
87
87
 
@@ -101,7 +101,7 @@ export function AssessmentSubsetInventoryToJSONTyped(value?: AssessmentSubsetInv
101
101
  'vcenterId': value['vcenterId'],
102
102
  'vmsCount': value['vmsCount'],
103
103
  'inventory': InventoryToJSON(value['inventory']),
104
- 'createdAt': value['createdAt'].toISOString(),
104
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
105
105
  };
106
106
  }
107
107
 
@@ -31,6 +31,10 @@ export interface ClusterFeatures {
31
31
  * Whether Storage DRS is enabled for this cluster
32
32
  */
33
33
  storageDrsEnabled?: boolean;
34
+ /**
35
+ * Whether vSphere HA (High Availability) is enabled for this cluster - automatically restarts VMs on surviving hosts after a host failure
36
+ */
37
+ haEnabled?: boolean;
34
38
  }
35
39
 
36
40
 
@@ -41,7 +45,7 @@ export const ClusterFeaturesDrsModeEnum = {
41
45
  FullyAutomated: 'Fully Automated',
42
46
  PartiallyAutomated: 'Partially Automated',
43
47
  Manual: 'Manual',
44
- None: 'None'
48
+ None: 'None',
45
49
  } as const;
46
50
  export type ClusterFeaturesDrsModeEnum = typeof ClusterFeaturesDrsModeEnum[keyof typeof ClusterFeaturesDrsModeEnum];
47
51
 
@@ -66,6 +70,7 @@ export function ClusterFeaturesFromJSONTyped(json: any, ignoreDiscriminator: boo
66
70
  'drsEnabled': json['drsEnabled'] == null ? undefined : json['drsEnabled'],
67
71
  'drsMode': json['drsMode'] == null ? undefined : json['drsMode'],
68
72
  'storageDrsEnabled': json['storageDrsEnabled'] == null ? undefined : json['storageDrsEnabled'],
73
+ 'haEnabled': json['haEnabled'] == null ? undefined : json['haEnabled'],
69
74
  };
70
75
  }
71
76
 
@@ -83,6 +88,7 @@ export function ClusterFeaturesToJSONTyped(value?: ClusterFeatures | null, ignor
83
88
  'drsEnabled': value['drsEnabled'],
84
89
  'drsMode': value['drsMode'],
85
90
  'storageDrsEnabled': value['storageDrsEnabled'],
91
+ 'haEnabled': value['haEnabled'],
86
92
  };
87
93
  }
88
94