@openshift-migration-advisor/planner-sdk 0.20.2 → 0.20.3-7b7fa251be69

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 (116) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/README.md +15 -2
  3. package/dist/apis/AssessmentApi.d.ts +81 -0
  4. package/dist/apis/AssessmentApi.js +84 -0
  5. package/dist/esm/apis/AssessmentApi.d.ts +81 -0
  6. package/dist/esm/apis/AssessmentApi.js +84 -0
  7. package/dist/esm/models/ActiveEnvironmentsInput.d.ts +41 -0
  8. package/dist/esm/models/ActiveEnvironmentsInput.js +51 -0
  9. package/dist/esm/models/Agent.js +4 -4
  10. package/dist/esm/models/AriaAutomationInput.d.ts +51 -0
  11. package/dist/esm/models/AriaAutomationInput.js +61 -0
  12. package/dist/esm/models/AriaOpsInput.d.ts +49 -0
  13. package/dist/esm/models/AriaOpsInput.js +59 -0
  14. package/dist/esm/models/AriaSecureInput.d.ts +41 -0
  15. package/dist/esm/models/AriaSecureInput.js +51 -0
  16. package/dist/esm/models/Assessment.js +2 -2
  17. package/dist/esm/models/AssessmentSubsetInventory.js +2 -2
  18. package/dist/esm/models/CustomerDetailsInput.d.ts +34 -0
  19. package/dist/esm/models/CustomerDetailsInput.js +43 -0
  20. package/dist/esm/models/DeployedEnvironmentInput.d.ts +40 -0
  21. package/dist/esm/models/DeployedEnvironmentInput.js +50 -0
  22. package/dist/esm/models/EnhancementData.d.ts +76 -0
  23. package/dist/esm/models/EnhancementData.js +69 -0
  24. package/dist/esm/models/Group.js +4 -4
  25. package/dist/esm/models/Host.d.ts +8 -0
  26. package/dist/esm/models/Host.js +4 -0
  27. package/dist/esm/models/Inventory.d.ts +4 -0
  28. package/dist/esm/models/Inventory.js +2 -0
  29. package/dist/esm/models/Member.js +2 -2
  30. package/dist/esm/models/NsxInput.d.ts +46 -0
  31. package/dist/esm/models/NsxInput.js +56 -0
  32. package/dist/esm/models/PartnerRequest.js +2 -2
  33. package/dist/esm/models/Snapshot.js +2 -2
  34. package/dist/esm/models/Source.js +4 -4
  35. package/dist/esm/models/VMwareSubscriptionInput.d.ts +42 -0
  36. package/dist/esm/models/VMwareSubscriptionInput.js +52 -0
  37. package/dist/esm/models/VMwareVersionCountsInput.d.ts +42 -0
  38. package/dist/esm/models/VMwareVersionCountsInput.js +47 -0
  39. package/dist/esm/models/VsphereCoreInput.d.ts +38 -0
  40. package/dist/esm/models/VsphereCoreInput.js +45 -0
  41. package/dist/esm/models/index.d.ts +11 -0
  42. package/dist/esm/models/index.js +11 -0
  43. package/dist/models/ActiveEnvironmentsInput.d.ts +41 -0
  44. package/dist/models/ActiveEnvironmentsInput.js +59 -0
  45. package/dist/models/Agent.js +4 -4
  46. package/dist/models/AriaAutomationInput.d.ts +51 -0
  47. package/dist/models/AriaAutomationInput.js +69 -0
  48. package/dist/models/AriaOpsInput.d.ts +49 -0
  49. package/dist/models/AriaOpsInput.js +67 -0
  50. package/dist/models/AriaSecureInput.d.ts +41 -0
  51. package/dist/models/AriaSecureInput.js +59 -0
  52. package/dist/models/Assessment.js +2 -2
  53. package/dist/models/AssessmentSubsetInventory.js +2 -2
  54. package/dist/models/CustomerDetailsInput.d.ts +34 -0
  55. package/dist/models/CustomerDetailsInput.js +50 -0
  56. package/dist/models/DeployedEnvironmentInput.d.ts +40 -0
  57. package/dist/models/DeployedEnvironmentInput.js +58 -0
  58. package/dist/models/EnhancementData.d.ts +76 -0
  59. package/dist/models/EnhancementData.js +76 -0
  60. package/dist/models/Group.js +4 -4
  61. package/dist/models/Host.d.ts +8 -0
  62. package/dist/models/Host.js +4 -0
  63. package/dist/models/Inventory.d.ts +4 -0
  64. package/dist/models/Inventory.js +2 -0
  65. package/dist/models/Member.js +2 -2
  66. package/dist/models/NsxInput.d.ts +46 -0
  67. package/dist/models/NsxInput.js +64 -0
  68. package/dist/models/PartnerRequest.js +2 -2
  69. package/dist/models/Snapshot.js +2 -2
  70. package/dist/models/Source.js +4 -4
  71. package/dist/models/VMwareSubscriptionInput.d.ts +42 -0
  72. package/dist/models/VMwareSubscriptionInput.js +60 -0
  73. package/dist/models/VMwareVersionCountsInput.d.ts +42 -0
  74. package/dist/models/VMwareVersionCountsInput.js +54 -0
  75. package/dist/models/VsphereCoreInput.d.ts +38 -0
  76. package/dist/models/VsphereCoreInput.js +52 -0
  77. package/dist/models/index.d.ts +11 -0
  78. package/dist/models/index.js +11 -0
  79. package/docs/ActiveEnvironmentsInput.md +34 -0
  80. package/docs/AriaAutomationInput.md +34 -0
  81. package/docs/AriaOpsInput.md +34 -0
  82. package/docs/AriaSecureInput.md +34 -0
  83. package/docs/AssessmentApi.md +148 -0
  84. package/docs/CustomerDetailsInput.md +36 -0
  85. package/docs/DeployedEnvironmentInput.md +34 -0
  86. package/docs/EnhancementData.md +53 -0
  87. package/docs/Host.md +4 -0
  88. package/docs/Inventory.md +2 -0
  89. package/docs/NsxInput.md +34 -0
  90. package/docs/VMwareSubscriptionInput.md +34 -0
  91. package/docs/VMwareVersionCountsInput.md +40 -0
  92. package/docs/VsphereCoreInput.md +38 -0
  93. package/package.json +1 -1
  94. package/src/apis/AssessmentApi.ts +169 -0
  95. package/src/models/ActiveEnvironmentsInput.ts +77 -0
  96. package/src/models/Agent.ts +4 -4
  97. package/src/models/AriaAutomationInput.ts +87 -0
  98. package/src/models/AriaOpsInput.ts +85 -0
  99. package/src/models/AriaSecureInput.ts +77 -0
  100. package/src/models/Assessment.ts +2 -2
  101. package/src/models/AssessmentSubsetInventory.ts +2 -2
  102. package/src/models/CustomerDetailsInput.ts +69 -0
  103. package/src/models/DeployedEnvironmentInput.ts +76 -0
  104. package/src/models/EnhancementData.ts +188 -0
  105. package/src/models/Group.ts +4 -4
  106. package/src/models/Host.ts +12 -0
  107. package/src/models/Inventory.ts +6 -0
  108. package/src/models/Member.ts +2 -2
  109. package/src/models/NsxInput.ts +82 -0
  110. package/src/models/PartnerRequest.ts +2 -2
  111. package/src/models/Snapshot.ts +2 -2
  112. package/src/models/Source.ts +4 -4
  113. package/src/models/VMwareSubscriptionInput.ts +78 -0
  114. package/src/models/VMwareVersionCountsInput.ts +81 -0
  115. package/src/models/VsphereCoreInput.ts +75 -0
  116. package/src/models/index.ts +11 -0
package/docs/Inventory.md CHANGED
@@ -10,6 +10,7 @@ Name | Type
10
10
  `vcenterVersion` | string
11
11
  `clusters` | [{ [key: string]: InventoryData; }](InventoryData.md)
12
12
  `vcenter` | [InventoryData](InventoryData.md)
13
+ `createdAt` | Date
13
14
 
14
15
  ## Example
15
16
 
@@ -22,6 +23,7 @@ const example = {
22
23
  "vcenterVersion": null,
23
24
  "clusters": null,
24
25
  "vcenter": null,
26
+ "createdAt": null,
25
27
  } satisfies Inventory
26
28
 
27
29
  console.log(example)
@@ -0,0 +1,34 @@
1
+
2
+ # NsxInput
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `features` | Set<string>
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { NsxInput } from '@openshift-migration-advisor/planner-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "features": null,
19
+ } satisfies NsxInput
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as NsxInput
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,34 @@
1
+
2
+ # VMwareSubscriptionInput
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `level` | Set<string>
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { VMwareSubscriptionInput } from '@openshift-migration-advisor/planner-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "level": null,
19
+ } satisfies VMwareSubscriptionInput
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as VMwareSubscriptionInput
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,40 @@
1
+
2
+ # VMwareVersionCountsInput
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `perpetualLicensesCount` | number
10
+ `coresLicensingCount` | number
11
+ `environmentCount` | number
12
+ `otherNodesCount` | number
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { VMwareVersionCountsInput } from '@openshift-migration-advisor/planner-sdk'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "perpetualLicensesCount": null,
22
+ "coresLicensingCount": null,
23
+ "environmentCount": null,
24
+ "otherNodesCount": null,
25
+ } satisfies VMwareVersionCountsInput
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as VMwareVersionCountsInput
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -0,0 +1,38 @@
1
+
2
+ # VsphereCoreInput
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `vmEncryptionEnabled` | boolean
10
+ `vmEncryptionPolicy` | string
11
+ `srmEnabled` | boolean
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { VsphereCoreInput } from '@openshift-migration-advisor/planner-sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "vmEncryptionEnabled": null,
21
+ "vmEncryptionPolicy": null,
22
+ "srmEnabled": null,
23
+ } satisfies VsphereCoreInput
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as VsphereCoreInput
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/planner-sdk",
3
- "version": "0.20.2",
3
+ "version": "0.20.3-7b7fa251be69",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/planner-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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
+
@@ -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'] : new Date(json['createdAt'])),
96
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(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'] : value['createdAt'].toISOString(),
117
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
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
+