@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
@@ -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
+
@@ -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'] : new Date(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'] : value['createdAt'].toISOString(),
154
154
  'snapshots': ((value['snapshots'] as Array<any>).map(SnapshotToJSON)),
155
155
  'permissions': value['permissions'],
156
156
  'sharing': AssessmentSharingToJSON(value['sharing']),
@@ -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'] : new Date(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'] : value['createdAt'].toISOString(),
105
105
  };
106
106
  }
107
107
 
@@ -0,0 +1,69 @@
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 CustomerDetailsInput
20
+ */
21
+ export interface CustomerDetailsInput {
22
+ /**
23
+ *
24
+ */
25
+ physicalLocationsCount?: number;
26
+ /**
27
+ *
28
+ */
29
+ targetHardware?: string;
30
+ }
31
+
32
+ /**
33
+ * Check if a given object implements the CustomerDetailsInput interface.
34
+ */
35
+ export function instanceOfCustomerDetailsInput(value: object): value is CustomerDetailsInput {
36
+ return true;
37
+ }
38
+
39
+ export function CustomerDetailsInputFromJSON(json: any): CustomerDetailsInput {
40
+ return CustomerDetailsInputFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function CustomerDetailsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerDetailsInput {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+
49
+ 'physicalLocationsCount': json['physicalLocationsCount'] == null ? undefined : json['physicalLocationsCount'],
50
+ 'targetHardware': json['targetHardware'] == null ? undefined : json['targetHardware'],
51
+ };
52
+ }
53
+
54
+ export function CustomerDetailsInputToJSON(json: any): CustomerDetailsInput {
55
+ return CustomerDetailsInputToJSONTyped(json, false);
56
+ }
57
+
58
+ export function CustomerDetailsInputToJSONTyped(value?: CustomerDetailsInput | null, ignoreDiscriminator: boolean = false): any {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+
63
+ return {
64
+
65
+ 'physicalLocationsCount': value['physicalLocationsCount'],
66
+ 'targetHardware': value['targetHardware'],
67
+ };
68
+ }
69
+
@@ -0,0 +1,76 @@
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 DeployedEnvironmentInput
20
+ */
21
+ export interface DeployedEnvironmentInput {
22
+ /**
23
+ *
24
+ */
25
+ environment?: DeployedEnvironmentInputEnvironmentEnum;
26
+ }
27
+
28
+
29
+ /**
30
+ * @export
31
+ */
32
+ export const DeployedEnvironmentInputEnvironmentEnum = {
33
+ OnPremises: 'on_premises',
34
+ OnCloud: 'on_cloud',
35
+ ManagedServices: 'managed_services',
36
+ NotAssessed: 'not_assessed'
37
+ } as const;
38
+ export type DeployedEnvironmentInputEnvironmentEnum = typeof DeployedEnvironmentInputEnvironmentEnum[keyof typeof DeployedEnvironmentInputEnvironmentEnum];
39
+
40
+
41
+ /**
42
+ * Check if a given object implements the DeployedEnvironmentInput interface.
43
+ */
44
+ export function instanceOfDeployedEnvironmentInput(value: object): value is DeployedEnvironmentInput {
45
+ return true;
46
+ }
47
+
48
+ export function DeployedEnvironmentInputFromJSON(json: any): DeployedEnvironmentInput {
49
+ return DeployedEnvironmentInputFromJSONTyped(json, false);
50
+ }
51
+
52
+ export function DeployedEnvironmentInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeployedEnvironmentInput {
53
+ if (json == null) {
54
+ return json;
55
+ }
56
+ return {
57
+
58
+ 'environment': json['environment'] == null ? undefined : json['environment'],
59
+ };
60
+ }
61
+
62
+ export function DeployedEnvironmentInputToJSON(json: any): DeployedEnvironmentInput {
63
+ return DeployedEnvironmentInputToJSONTyped(json, false);
64
+ }
65
+
66
+ export function DeployedEnvironmentInputToJSONTyped(value?: DeployedEnvironmentInput | null, ignoreDiscriminator: boolean = false): any {
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+
71
+ return {
72
+
73
+ 'environment': value['environment'],
74
+ };
75
+ }
76
+
@@ -0,0 +1,188 @@
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
+ import type { NsxInput } from './NsxInput.js';
17
+ import {
18
+ NsxInputFromJSON,
19
+ NsxInputFromJSONTyped,
20
+ NsxInputToJSON,
21
+ NsxInputToJSONTyped,
22
+ } from './NsxInput.js';
23
+ import type { AriaSecureInput } from './AriaSecureInput.js';
24
+ import {
25
+ AriaSecureInputFromJSON,
26
+ AriaSecureInputFromJSONTyped,
27
+ AriaSecureInputToJSON,
28
+ AriaSecureInputToJSONTyped,
29
+ } from './AriaSecureInput.js';
30
+ import type { DeployedEnvironmentInput } from './DeployedEnvironmentInput.js';
31
+ import {
32
+ DeployedEnvironmentInputFromJSON,
33
+ DeployedEnvironmentInputFromJSONTyped,
34
+ DeployedEnvironmentInputToJSON,
35
+ DeployedEnvironmentInputToJSONTyped,
36
+ } from './DeployedEnvironmentInput.js';
37
+ import type { VMwareSubscriptionInput } from './VMwareSubscriptionInput.js';
38
+ import {
39
+ VMwareSubscriptionInputFromJSON,
40
+ VMwareSubscriptionInputFromJSONTyped,
41
+ VMwareSubscriptionInputToJSON,
42
+ VMwareSubscriptionInputToJSONTyped,
43
+ } from './VMwareSubscriptionInput.js';
44
+ import type { CustomerDetailsInput } from './CustomerDetailsInput.js';
45
+ import {
46
+ CustomerDetailsInputFromJSON,
47
+ CustomerDetailsInputFromJSONTyped,
48
+ CustomerDetailsInputToJSON,
49
+ CustomerDetailsInputToJSONTyped,
50
+ } from './CustomerDetailsInput.js';
51
+ import type { VMwareVersionCountsInput } from './VMwareVersionCountsInput.js';
52
+ import {
53
+ VMwareVersionCountsInputFromJSON,
54
+ VMwareVersionCountsInputFromJSONTyped,
55
+ VMwareVersionCountsInputToJSON,
56
+ VMwareVersionCountsInputToJSONTyped,
57
+ } from './VMwareVersionCountsInput.js';
58
+ import type { VsphereCoreInput } from './VsphereCoreInput.js';
59
+ import {
60
+ VsphereCoreInputFromJSON,
61
+ VsphereCoreInputFromJSONTyped,
62
+ VsphereCoreInputToJSON,
63
+ VsphereCoreInputToJSONTyped,
64
+ } from './VsphereCoreInput.js';
65
+ import type { AriaAutomationInput } from './AriaAutomationInput.js';
66
+ import {
67
+ AriaAutomationInputFromJSON,
68
+ AriaAutomationInputFromJSONTyped,
69
+ AriaAutomationInputToJSON,
70
+ AriaAutomationInputToJSONTyped,
71
+ } from './AriaAutomationInput.js';
72
+ import type { AriaOpsInput } from './AriaOpsInput.js';
73
+ import {
74
+ AriaOpsInputFromJSON,
75
+ AriaOpsInputFromJSONTyped,
76
+ AriaOpsInputToJSON,
77
+ AriaOpsInputToJSONTyped,
78
+ } from './AriaOpsInput.js';
79
+ import type { ActiveEnvironmentsInput } from './ActiveEnvironmentsInput.js';
80
+ import {
81
+ ActiveEnvironmentsInputFromJSON,
82
+ ActiveEnvironmentsInputFromJSONTyped,
83
+ ActiveEnvironmentsInputToJSON,
84
+ ActiveEnvironmentsInputToJSONTyped,
85
+ } from './ActiveEnvironmentsInput.js';
86
+
87
+ /**
88
+ * VMA enhancement data — fields that cannot be auto-collected by Agent or RVTools
89
+ * @export
90
+ * @interface EnhancementData
91
+ */
92
+ export interface EnhancementData {
93
+ /**
94
+ *
95
+ */
96
+ deployedEnvironment?: DeployedEnvironmentInput;
97
+ /**
98
+ *
99
+ */
100
+ vmwareVersionCounts?: VMwareVersionCountsInput;
101
+ /**
102
+ *
103
+ */
104
+ activeEnvironments?: ActiveEnvironmentsInput;
105
+ /**
106
+ *
107
+ */
108
+ vmwareSubscription?: VMwareSubscriptionInput;
109
+ /**
110
+ *
111
+ */
112
+ vsphereCore?: VsphereCoreInput;
113
+ /**
114
+ *
115
+ */
116
+ nsx?: NsxInput;
117
+ /**
118
+ *
119
+ */
120
+ ariaOps?: AriaOpsInput;
121
+ /**
122
+ *
123
+ */
124
+ ariaAutomation?: AriaAutomationInput;
125
+ /**
126
+ *
127
+ */
128
+ ariaSecure?: AriaSecureInput;
129
+ /**
130
+ *
131
+ */
132
+ customerDetails?: CustomerDetailsInput;
133
+ }
134
+
135
+ /**
136
+ * Check if a given object implements the EnhancementData interface.
137
+ */
138
+ export function instanceOfEnhancementData(value: object): value is EnhancementData {
139
+ return true;
140
+ }
141
+
142
+ export function EnhancementDataFromJSON(json: any): EnhancementData {
143
+ return EnhancementDataFromJSONTyped(json, false);
144
+ }
145
+
146
+ export function EnhancementDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): EnhancementData {
147
+ if (json == null) {
148
+ return json;
149
+ }
150
+ return {
151
+
152
+ 'deployedEnvironment': json['deployedEnvironment'] == null ? undefined : DeployedEnvironmentInputFromJSON(json['deployedEnvironment']),
153
+ 'vmwareVersionCounts': json['vmwareVersionCounts'] == null ? undefined : VMwareVersionCountsInputFromJSON(json['vmwareVersionCounts']),
154
+ 'activeEnvironments': json['activeEnvironments'] == null ? undefined : ActiveEnvironmentsInputFromJSON(json['activeEnvironments']),
155
+ 'vmwareSubscription': json['vmwareSubscription'] == null ? undefined : VMwareSubscriptionInputFromJSON(json['vmwareSubscription']),
156
+ 'vsphereCore': json['vsphereCore'] == null ? undefined : VsphereCoreInputFromJSON(json['vsphereCore']),
157
+ 'nsx': json['nsx'] == null ? undefined : NsxInputFromJSON(json['nsx']),
158
+ 'ariaOps': json['ariaOps'] == null ? undefined : AriaOpsInputFromJSON(json['ariaOps']),
159
+ 'ariaAutomation': json['ariaAutomation'] == null ? undefined : AriaAutomationInputFromJSON(json['ariaAutomation']),
160
+ 'ariaSecure': json['ariaSecure'] == null ? undefined : AriaSecureInputFromJSON(json['ariaSecure']),
161
+ 'customerDetails': json['customerDetails'] == null ? undefined : CustomerDetailsInputFromJSON(json['customerDetails']),
162
+ };
163
+ }
164
+
165
+ export function EnhancementDataToJSON(json: any): EnhancementData {
166
+ return EnhancementDataToJSONTyped(json, false);
167
+ }
168
+
169
+ export function EnhancementDataToJSONTyped(value?: EnhancementData | null, ignoreDiscriminator: boolean = false): any {
170
+ if (value == null) {
171
+ return value;
172
+ }
173
+
174
+ return {
175
+
176
+ 'deployedEnvironment': DeployedEnvironmentInputToJSON(value['deployedEnvironment']),
177
+ 'vmwareVersionCounts': VMwareVersionCountsInputToJSON(value['vmwareVersionCounts']),
178
+ 'activeEnvironments': ActiveEnvironmentsInputToJSON(value['activeEnvironments']),
179
+ 'vmwareSubscription': VMwareSubscriptionInputToJSON(value['vmwareSubscription']),
180
+ 'vsphereCore': VsphereCoreInputToJSON(value['vsphereCore']),
181
+ 'nsx': NsxInputToJSON(value['nsx']),
182
+ 'ariaOps': AriaOpsInputToJSON(value['ariaOps']),
183
+ 'ariaAutomation': AriaAutomationInputToJSON(value['ariaAutomation']),
184
+ 'ariaSecure': AriaSecureInputToJSON(value['ariaSecure']),
185
+ 'customerDetails': CustomerDetailsInputToJSON(value['customerDetails']),
186
+ };
187
+ }
188
+
@@ -94,8 +94,8 @@ export function GroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): Gro
94
94
  'kind': json['kind'],
95
95
  'icon': json['icon'],
96
96
  'company': json['company'],
97
- 'createdAt': (new Date(json['createdAt'])),
98
- 'updatedAt': (new Date(json['updatedAt'])),
97
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
98
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
99
99
  };
100
100
  }
101
101
 
@@ -116,8 +116,8 @@ export function GroupToJSONTyped(value?: Group | null, ignoreDiscriminator: bool
116
116
  'kind': value['kind'],
117
117
  'icon': value['icon'],
118
118
  'company': value['company'],
119
- 'createdAt': value['createdAt'].toISOString(),
120
- 'updatedAt': value['updatedAt'].toISOString(),
119
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
120
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
121
121
  };
122
122
  }
123
123
 
@@ -43,6 +43,14 @@ export interface Host {
43
43
  * Host memory in MB
44
44
  */
45
45
  memoryMB?: number | null;
46
+ /**
47
+ * Whether vMotion is supported on this host (HostSystem.capability.vmotionSupported)
48
+ */
49
+ vmotionSupported?: boolean;
50
+ /**
51
+ * Whether Storage vMotion is supported on this host (HostSystem.capability.storageVMotionSupported)
52
+ */
53
+ storageVmotionSupported?: boolean;
46
54
  }
47
55
 
48
56
  /**
@@ -70,6 +78,8 @@ export function HostFromJSONTyped(json: any, ignoreDiscriminator: boolean): Host
70
78
  'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
71
79
  'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
72
80
  'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
81
+ 'vmotionSupported': json['vmotionSupported'] == null ? undefined : json['vmotionSupported'],
82
+ 'storageVmotionSupported': json['storageVmotionSupported'] == null ? undefined : json['storageVmotionSupported'],
73
83
  };
74
84
  }
75
85
 
@@ -90,6 +100,8 @@ export function HostToJSONTyped(value?: Host | null, ignoreDiscriminator: boolea
90
100
  'cpuCores': value['cpuCores'],
91
101
  'cpuSockets': value['cpuSockets'],
92
102
  'memoryMB': value['memoryMB'],
103
+ 'vmotionSupported': value['vmotionSupported'],
104
+ 'storageVmotionSupported': value['storageVmotionSupported'],
93
105
  };
94
106
  }
95
107
 
@@ -43,6 +43,10 @@ export interface Inventory {
43
43
  *
44
44
  */
45
45
  vcenter?: InventoryData;
46
+ /**
47
+ * Timestamp when the inventory data was created or collected
48
+ */
49
+ createdAt?: Date;
46
50
  }
47
51
 
48
52
  /**
@@ -68,6 +72,7 @@ export function InventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
68
72
  'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
69
73
  'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
70
74
  'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
75
+ 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
71
76
  };
72
77
  }
73
78
 
@@ -86,6 +91,7 @@ export function InventoryToJSONTyped(value?: Inventory | null, ignoreDiscriminat
86
91
  'vcenter_version': value['vcenterVersion'],
87
92
  'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
88
93
  'vcenter': InventoryDataToJSON(value['vcenter']),
94
+ 'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
89
95
  };
90
96
  }
91
97
 
@@ -65,7 +65,7 @@ export function MemberFromJSONTyped(json: any, ignoreDiscriminator: boolean): Me
65
65
  'username': json['username'],
66
66
  'email': json['email'],
67
67
  'groupId': json['groupId'],
68
- 'createdAt': (new Date(json['createdAt'])),
68
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
69
69
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
70
70
  };
71
71
  }
@@ -84,7 +84,7 @@ export function MemberToJSONTyped(value?: Member | null, ignoreDiscriminator: bo
84
84
  'username': value['username'],
85
85
  'email': value['email'],
86
86
  'groupId': value['groupId'],
87
- 'createdAt': value['createdAt'].toISOString(),
87
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
88
88
  'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
89
89
  };
90
90
  }
@@ -0,0 +1,82 @@
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 NsxInput
20
+ */
21
+ export interface NsxInput {
22
+ /**
23
+ *
24
+ */
25
+ features?: Set<NsxInputFeaturesEnum>;
26
+ }
27
+
28
+
29
+ /**
30
+ * @export
31
+ */
32
+ export const NsxInputFeaturesEnum = {
33
+ Microsegmentation: 'microsegmentation',
34
+ MultiCloud: 'multi_cloud',
35
+ Tunnels: 'tunnels',
36
+ DynamicRouting: 'dynamic_routing',
37
+ CentralMgmt: 'central_mgmt',
38
+ Mpls: 'mpls',
39
+ Qos: 'qos',
40
+ NotAssessed: 'not_assessed',
41
+ NotAvailable: 'not_available',
42
+ NotInUse: 'not_in_use'
43
+ } as const;
44
+ export type NsxInputFeaturesEnum = typeof NsxInputFeaturesEnum[keyof typeof NsxInputFeaturesEnum];
45
+
46
+
47
+ /**
48
+ * Check if a given object implements the NsxInput interface.
49
+ */
50
+ export function instanceOfNsxInput(value: object): value is NsxInput {
51
+ return true;
52
+ }
53
+
54
+ export function NsxInputFromJSON(json: any): NsxInput {
55
+ return NsxInputFromJSONTyped(json, false);
56
+ }
57
+
58
+ export function NsxInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): NsxInput {
59
+ if (json == null) {
60
+ return json;
61
+ }
62
+ return {
63
+
64
+ 'features': json['features'] == null ? undefined : new Set(json['features']),
65
+ };
66
+ }
67
+
68
+ export function NsxInputToJSON(json: any): NsxInput {
69
+ return NsxInputToJSONTyped(json, false);
70
+ }
71
+
72
+ export function NsxInputToJSONTyped(value?: NsxInput | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'features': value['features'] == null ? undefined : Array.from(value['features'] as Set<any>),
80
+ };
81
+ }
82
+
@@ -129,7 +129,7 @@ export function PartnerRequestFromJSONTyped(json: any, ignoreDiscriminator: bool
129
129
  'reason': json['reason'] === undefined ? undefined : json['reason'] === null ? null : json['reason'],
130
130
  'acceptedAt': json['acceptedAt'] === undefined ? undefined : json['acceptedAt'] === null ? null : (new Date(json['acceptedAt'])),
131
131
  'terminatedAt': json['terminatedAt'] === undefined ? undefined : json['terminatedAt'] === null ? null : (new Date(json['terminatedAt'])),
132
- 'createdAt': (new Date(json['createdAt'])),
132
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
133
133
  };
134
134
  }
135
135
 
@@ -156,7 +156,7 @@ export function PartnerRequestToJSONTyped(value?: PartnerRequest | null, ignoreD
156
156
  'reason': value['reason'],
157
157
  'acceptedAt': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt'].toISOString(),
158
158
  'terminatedAt': value['terminatedAt'] == null ? value['terminatedAt'] : value['terminatedAt'].toISOString(),
159
- 'createdAt': value['createdAt'].toISOString(),
159
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
160
160
  };
161
161
  }
162
162
 
@@ -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'] : new Date(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'] : value['createdAt'].toISOString(),
89
89
  'subsetInventories': value['subsetInventories'] == null ? undefined : ((value['subsetInventories'] as Array<any>).map(AssessmentSubsetInventoryToJSON)),
90
90
  };
91
91
  }