@openshift-migration-advisor/agent-sdk 0.8.0 → 0.12.0

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 (70) hide show
  1. package/.openapi-generator/FILES +6 -2
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +19 -17
  4. package/dist/apis/DefaultApi.d.ts +141 -133
  5. package/dist/apis/DefaultApi.js +168 -163
  6. package/dist/esm/apis/DefaultApi.d.ts +141 -133
  7. package/dist/esm/apis/DefaultApi.js +169 -164
  8. package/dist/esm/models/InspectorStatus.d.ts +20 -7
  9. package/dist/esm/models/InspectorStatus.js +12 -7
  10. package/dist/esm/models/StartInspectionRequest.d.ts +32 -0
  11. package/dist/esm/models/StartInspectionRequest.js +43 -0
  12. package/dist/esm/models/VMs.d.ts +18 -0
  13. package/dist/esm/models/VMs.js +4 -0
  14. package/dist/esm/models/VirtualMachine.d.ts +7 -1
  15. package/dist/esm/models/VirtualMachine.js +4 -4
  16. package/dist/esm/models/VirtualMachineDetail.d.ts +3 -3
  17. package/dist/esm/models/VirtualMachineDetail.js +3 -3
  18. package/dist/esm/models/VmInspectionConcern.d.ts +44 -0
  19. package/dist/esm/models/VmInspectionConcern.js +51 -0
  20. package/dist/esm/models/VmInspectionResults.d.ts +33 -0
  21. package/dist/esm/models/VmInspectionResults.js +42 -0
  22. package/dist/esm/models/VmInspectionStatus.d.ts +0 -1
  23. package/dist/esm/models/VmInspectionStatus.js +1 -2
  24. package/dist/esm/models/index.d.ts +3 -1
  25. package/dist/esm/models/index.js +3 -1
  26. package/dist/esm/runtime.js +1 -1
  27. package/dist/models/InspectorStatus.d.ts +20 -7
  28. package/dist/models/InspectorStatus.js +12 -7
  29. package/dist/models/StartInspectionRequest.d.ts +32 -0
  30. package/dist/models/StartInspectionRequest.js +50 -0
  31. package/dist/models/VMs.d.ts +18 -0
  32. package/dist/models/VMs.js +4 -0
  33. package/dist/models/VirtualMachine.d.ts +7 -1
  34. package/dist/models/VirtualMachine.js +4 -4
  35. package/dist/models/VirtualMachineDetail.d.ts +3 -3
  36. package/dist/models/VirtualMachineDetail.js +3 -3
  37. package/dist/models/VmInspectionConcern.d.ts +44 -0
  38. package/dist/models/VmInspectionConcern.js +58 -0
  39. package/dist/models/VmInspectionResults.d.ts +33 -0
  40. package/dist/models/VmInspectionResults.js +49 -0
  41. package/dist/models/VmInspectionStatus.d.ts +0 -1
  42. package/dist/models/VmInspectionStatus.js +1 -2
  43. package/dist/models/index.d.ts +3 -1
  44. package/dist/models/index.js +3 -1
  45. package/dist/runtime.js +1 -1
  46. package/docs/DefaultApi.md +191 -179
  47. package/docs/InspectorStatus.md +4 -0
  48. package/docs/{InspectorStartRequest.md → StartInspectionRequest.md} +5 -6
  49. package/docs/VMs.md +4 -0
  50. package/docs/VirtualMachine.md +4 -2
  51. package/docs/VirtualMachineDetail.md +1 -1
  52. package/docs/VmInspectionConcern.md +39 -0
  53. package/docs/VmInspectionResults.md +35 -0
  54. package/package.json +1 -1
  55. package/src/apis/DefaultApi.ts +302 -283
  56. package/src/models/InspectorStatus.ts +37 -7
  57. package/src/models/StartInspectionRequest.ts +66 -0
  58. package/src/models/VMs.ts +18 -0
  59. package/src/models/VirtualMachine.ts +11 -4
  60. package/src/models/VirtualMachineDetail.ts +11 -11
  61. package/src/models/VmInspectionConcern.ts +84 -0
  62. package/src/models/VmInspectionResults.ts +73 -0
  63. package/src/models/VmInspectionStatus.ts +1 -2
  64. package/src/models/index.ts +3 -1
  65. package/src/runtime.ts +1 -1
  66. package/dist/esm/models/InspectorStartRequest.d.ts +0 -39
  67. package/dist/esm/models/InspectorStartRequest.js +0 -48
  68. package/dist/models/InspectorStartRequest.d.ts +0 -39
  69. package/dist/models/InspectorStartRequest.js +0 -55
  70. package/src/models/InspectorStartRequest.ts +0 -83
@@ -13,6 +13,21 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime.js';
16
+ import type { VddkProperties } from './VddkProperties.js';
17
+ import {
18
+ VddkPropertiesFromJSON,
19
+ VddkPropertiesFromJSONTyped,
20
+ VddkPropertiesToJSON,
21
+ VddkPropertiesToJSONTyped,
22
+ } from './VddkProperties.js';
23
+ import type { VcenterCredentials } from './VcenterCredentials.js';
24
+ import {
25
+ VcenterCredentialsFromJSON,
26
+ VcenterCredentialsFromJSONTyped,
27
+ VcenterCredentialsToJSON,
28
+ VcenterCredentialsToJSONTyped,
29
+ } from './VcenterCredentials.js';
30
+
16
31
  /**
17
32
  *
18
33
  * @export
@@ -25,6 +40,18 @@ export interface InspectorStatus {
25
40
  * @memberof InspectorStatus
26
41
  */
27
42
  state: InspectorStatusStateEnum;
43
+ /**
44
+ *
45
+ * @type {VcenterCredentials}
46
+ * @memberof InspectorStatus
47
+ */
48
+ credentials?: VcenterCredentials;
49
+ /**
50
+ *
51
+ * @type {VddkProperties}
52
+ * @memberof InspectorStatus
53
+ */
54
+ vddk?: VddkProperties;
28
55
  /**
29
56
  * Error message when state is error
30
57
  * @type {string}
@@ -38,13 +65,12 @@ export interface InspectorStatus {
38
65
  * @export
39
66
  */
40
67
  export const InspectorStatusStateEnum = {
41
- InspectorStatusStateCanceled: 'ready',
42
- InspectorStatusStateCanceling: 'Initiating',
43
- InspectorStatusStateCompleted: 'running',
44
- InspectorStatusStateError: 'canceling',
45
- InspectorStatusStateInitiating: 'canceled',
46
- InspectorStatusStateReady: 'completed',
47
- InspectorStatusStateRunning: 'error'
68
+ InspectorStatusStateReady: 'ready',
69
+ InspectorStatusStateInitiating: 'Initiating',
70
+ InspectorStatusStateRunning: 'running',
71
+ InspectorStatusStateCanceled: 'canceled',
72
+ InspectorStatusStateCompleted: 'completed',
73
+ InspectorStatusStateError: 'error'
48
74
  } as const;
49
75
  export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
50
76
 
@@ -68,6 +94,8 @@ export function InspectorStatusFromJSONTyped(json: any, ignoreDiscriminator: boo
68
94
  return {
69
95
 
70
96
  'state': json['state'],
97
+ 'credentials': json['credentials'] == null ? undefined : VcenterCredentialsFromJSON(json['credentials']),
98
+ 'vddk': json['vddk'] == null ? undefined : VddkPropertiesFromJSON(json['vddk']),
71
99
  'error': json['error'] == null ? undefined : json['error'],
72
100
  };
73
101
  }
@@ -84,6 +112,8 @@ export function InspectorStatusToJSONTyped(value?: InspectorStatus | null, ignor
84
112
  return {
85
113
 
86
114
  'state': value['state'],
115
+ 'credentials': VcenterCredentialsToJSON(value['credentials']),
116
+ 'vddk': VddkPropertiesToJSON(value['vddk']),
87
117
  'error': value['error'],
88
118
  };
89
119
  }
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
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
+ * Array of VirtualMachine id
18
+ * @export
19
+ * @interface StartInspectionRequest
20
+ */
21
+ export interface StartInspectionRequest {
22
+ /**
23
+ *
24
+ * @type {Array<string>}
25
+ * @memberof StartInspectionRequest
26
+ */
27
+ vmIds: Array<string>;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the StartInspectionRequest interface.
32
+ */
33
+ export function instanceOfStartInspectionRequest(value: object): value is StartInspectionRequest {
34
+ if (!('vmIds' in value) || value['vmIds'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function StartInspectionRequestFromJSON(json: any): StartInspectionRequest {
39
+ return StartInspectionRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function StartInspectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartInspectionRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'vmIds': json['vmIds'],
49
+ };
50
+ }
51
+
52
+ export function StartInspectionRequestToJSON(json: any): StartInspectionRequest {
53
+ return StartInspectionRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function StartInspectionRequestToJSONTyped(value?: StartInspectionRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'vmIds': value['vmIds'],
64
+ };
65
+ }
66
+
package/src/models/VMs.ts CHANGED
@@ -91,6 +91,13 @@ export interface VMs {
91
91
  * @memberof VMs
92
92
  */
93
93
  diskSizeTier?: { [key: string]: DiskSizeTierSummary; };
94
+ /**
95
+ * Distribution of VMs across disk-complexity tiers used by the estimation engine (0-10TiB, 10-20TiB, 20-50TiB, 50+TiB).
96
+ *
97
+ * @type {{ [key: string]: DiskSizeTierSummary; }}
98
+ * @memberof VMs
99
+ */
100
+ diskComplexityTier?: { [key: string]: DiskSizeTierSummary; };
94
101
  /**
95
102
  *
96
103
  * @type {{ [key: string]: DiskTypeSummary; }}
@@ -119,8 +126,15 @@ export interface VMs {
119
126
  * Distribution of VMs by migration complexity level (0=Unsupported, 1=Easy, 2=Medium, 3=Hard, 4=WhiteGlove)
120
127
  * @type {{ [key: string]: number; }}
121
128
  * @memberof VMs
129
+ * @deprecated
122
130
  */
123
131
  distributionByComplexity?: { [key: string]: number; };
132
+ /**
133
+ * Distribution of VMs by migration complexity level, enriched with total disk size per level. Supersedes distributionByComplexity.
134
+ * @type {{ [key: string]: DiskSizeTierSummary; }}
135
+ * @memberof VMs
136
+ */
137
+ complexityDistribution?: { [key: string]: DiskSizeTierSummary; };
124
138
  /**
125
139
  *
126
140
  * @type {VMResourceBreakdown}
@@ -210,11 +224,13 @@ export function VMsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMs {
210
224
  'totalWithSharedDisks': json['totalWithSharedDisks'] == null ? undefined : json['totalWithSharedDisks'],
211
225
  'cpuCores': VMResourceBreakdownFromJSON(json['cpuCores']),
212
226
  'diskSizeTier': json['diskSizeTier'] == null ? undefined : (mapValues(json['diskSizeTier'], DiskSizeTierSummaryFromJSON)),
227
+ 'diskComplexityTier': json['diskComplexityTier'] == null ? undefined : (mapValues(json['diskComplexityTier'], DiskSizeTierSummaryFromJSON)),
213
228
  'diskTypes': json['diskTypes'] == null ? undefined : (mapValues(json['diskTypes'], DiskTypeSummaryFromJSON)),
214
229
  'distributionByCpuTier': json['distributionByCpuTier'] == null ? undefined : json['distributionByCpuTier'],
215
230
  'distributionByMemoryTier': json['distributionByMemoryTier'] == null ? undefined : json['distributionByMemoryTier'],
216
231
  'distributionByNicCount': json['distributionByNicCount'] == null ? undefined : json['distributionByNicCount'],
217
232
  'distributionByComplexity': json['distributionByComplexity'] == null ? undefined : json['distributionByComplexity'],
233
+ 'complexityDistribution': json['complexityDistribution'] == null ? undefined : (mapValues(json['complexityDistribution'], DiskSizeTierSummaryFromJSON)),
218
234
  'ramGB': VMResourceBreakdownFromJSON(json['ramGB']),
219
235
  'diskGB': VMResourceBreakdownFromJSON(json['diskGB']),
220
236
  'diskCount': VMResourceBreakdownFromJSON(json['diskCount']),
@@ -244,11 +260,13 @@ export function VMsToJSONTyped(value?: VMs | null, ignoreDiscriminator: boolean
244
260
  'totalWithSharedDisks': value['totalWithSharedDisks'],
245
261
  'cpuCores': VMResourceBreakdownToJSON(value['cpuCores']),
246
262
  'diskSizeTier': value['diskSizeTier'] == null ? undefined : (mapValues(value['diskSizeTier'], DiskSizeTierSummaryToJSON)),
263
+ 'diskComplexityTier': value['diskComplexityTier'] == null ? undefined : (mapValues(value['diskComplexityTier'], DiskSizeTierSummaryToJSON)),
247
264
  'diskTypes': value['diskTypes'] == null ? undefined : (mapValues(value['diskTypes'], DiskTypeSummaryToJSON)),
248
265
  'distributionByCpuTier': value['distributionByCpuTier'],
249
266
  'distributionByMemoryTier': value['distributionByMemoryTier'],
250
267
  'distributionByNicCount': value['distributionByNicCount'],
251
268
  'distributionByComplexity': value['distributionByComplexity'],
269
+ 'complexityDistribution': value['complexityDistribution'] == null ? undefined : (mapValues(value['complexityDistribution'], DiskSizeTierSummaryToJSON)),
252
270
  'ramGB': VMResourceBreakdownToJSON(value['ramGB']),
253
271
  'diskGB': VMResourceBreakdownToJSON(value['diskGB']),
254
272
  'diskCount': VMResourceBreakdownToJSON(value['diskCount']),
@@ -92,7 +92,13 @@ export interface VirtualMachine {
92
92
  * @type {VmInspectionStatus}
93
93
  * @memberof VirtualMachine
94
94
  */
95
- inspection: VmInspectionStatus;
95
+ inspectionStatus?: VmInspectionStatus;
96
+ /**
97
+ * Number of inspection concerns recorded for the latest persisted inspection result
98
+ * @type {number}
99
+ * @memberof VirtualMachine
100
+ */
101
+ inspectionConcernCount?: number;
96
102
  /**
97
103
  * Tags aggregated from matching groups
98
104
  * @type {Array<string>}
@@ -113,7 +119,6 @@ export function instanceOfVirtualMachine(value: object): value is VirtualMachine
113
119
  if (!('diskSize' in value) || value['diskSize'] === undefined) return false;
114
120
  if (!('memory' in value) || value['memory'] === undefined) return false;
115
121
  if (!('issueCount' in value) || value['issueCount'] === undefined) return false;
116
- if (!('inspection' in value) || value['inspection'] === undefined) return false;
117
122
  return true;
118
123
  }
119
124
 
@@ -137,7 +142,8 @@ export function VirtualMachineFromJSONTyped(json: any, ignoreDiscriminator: bool
137
142
  'issueCount': json['issueCount'],
138
143
  'migratable': json['migratable'] == null ? undefined : json['migratable'],
139
144
  'template': json['template'] == null ? undefined : json['template'],
140
- 'inspection': VmInspectionStatusFromJSON(json['inspection']),
145
+ 'inspectionStatus': json['inspectionStatus'] == null ? undefined : VmInspectionStatusFromJSON(json['inspectionStatus']),
146
+ 'inspectionConcernCount': json['inspectionConcernCount'] == null ? undefined : json['inspectionConcernCount'],
141
147
  'tags': json['tags'] == null ? undefined : json['tags'],
142
148
  };
143
149
  }
@@ -163,7 +169,8 @@ export function VirtualMachineToJSONTyped(value?: VirtualMachine | null, ignoreD
163
169
  'issueCount': value['issueCount'],
164
170
  'migratable': value['migratable'],
165
171
  'template': value['template'],
166
- 'inspection': VmInspectionStatusToJSON(value['inspection']),
172
+ 'inspectionStatus': VmInspectionStatusToJSON(value['inspectionStatus']),
173
+ 'inspectionConcernCount': value['inspectionConcernCount'],
167
174
  'tags': value['tags'],
168
175
  };
169
176
  }
@@ -20,13 +20,6 @@ import {
20
20
  VMNICToJSON,
21
21
  VMNICToJSONTyped,
22
22
  } from './VMNIC.js';
23
- import type { VmInspectionStatus } from './VmInspectionStatus.js';
24
- import {
25
- VmInspectionStatusFromJSON,
26
- VmInspectionStatusFromJSONTyped,
27
- VmInspectionStatusToJSON,
28
- VmInspectionStatusToJSONTyped,
29
- } from './VmInspectionStatus.js';
30
23
  import type { GuestNetwork } from './GuestNetwork.js';
31
24
  import {
32
25
  GuestNetworkFromJSON,
@@ -55,6 +48,13 @@ import {
55
48
  VMDiskToJSON,
56
49
  VMDiskToJSONTyped,
57
50
  } from './VMDisk.js';
51
+ import type { VmInspectionResults } from './VmInspectionResults.js';
52
+ import {
53
+ VmInspectionResultsFromJSON,
54
+ VmInspectionResultsFromJSONTyped,
55
+ VmInspectionResultsToJSON,
56
+ VmInspectionResultsToJSONTyped,
57
+ } from './VmInspectionResults.js';
58
58
 
59
59
  /**
60
60
  *
@@ -244,10 +244,10 @@ export interface VirtualMachineDetail {
244
244
  issues?: Array<VMIssue>;
245
245
  /**
246
246
  *
247
- * @type {VmInspectionStatus}
247
+ * @type {VmInspectionResults}
248
248
  * @memberof VirtualMachineDetail
249
249
  */
250
- inspection?: VmInspectionStatus;
250
+ inspection?: VmInspectionResults;
251
251
  }
252
252
 
253
253
  /**
@@ -306,7 +306,7 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
306
306
  'devices': json['devices'] == null ? undefined : ((json['devices'] as Array<any>).map(VMDeviceFromJSON)),
307
307
  'guestNetworks': json['guestNetworks'] == null ? undefined : ((json['guestNetworks'] as Array<any>).map(GuestNetworkFromJSON)),
308
308
  'issues': json['issues'] == null ? undefined : ((json['issues'] as Array<any>).map(VMIssueFromJSON)),
309
- 'inspection': json['inspection'] == null ? undefined : VmInspectionStatusFromJSON(json['inspection']),
309
+ 'inspection': json['inspection'] == null ? undefined : VmInspectionResultsFromJSON(json['inspection']),
310
310
  };
311
311
  }
312
312
 
@@ -351,7 +351,7 @@ export function VirtualMachineDetailToJSONTyped(value?: VirtualMachineDetail | n
351
351
  'devices': value['devices'] == null ? undefined : ((value['devices'] as Array<any>).map(VMDeviceToJSON)),
352
352
  'guestNetworks': value['guestNetworks'] == null ? undefined : ((value['guestNetworks'] as Array<any>).map(GuestNetworkToJSON)),
353
353
  'issues': value['issues'] == null ? undefined : ((value['issues'] as Array<any>).map(VMIssueToJSON)),
354
- 'inspection': VmInspectionStatusToJSON(value['inspection']),
354
+ 'inspection': VmInspectionResultsToJSON(value['inspection']),
355
355
  };
356
356
  }
357
357
 
@@ -0,0 +1,84 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
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
+ * Represents the structure of vm-migration-detective library inspection concerns
18
+ * @export
19
+ * @interface VmInspectionConcern
20
+ */
21
+ export interface VmInspectionConcern {
22
+ /**
23
+ * Short label identifying the concern
24
+ * @type {string}
25
+ * @memberof VmInspectionConcern
26
+ */
27
+ label: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof VmInspectionConcern
32
+ */
33
+ message: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof VmInspectionConcern
38
+ */
39
+ category: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the VmInspectionConcern interface.
44
+ */
45
+ export function instanceOfVmInspectionConcern(value: object): value is VmInspectionConcern {
46
+ if (!('label' in value) || value['label'] === undefined) return false;
47
+ if (!('message' in value) || value['message'] === undefined) return false;
48
+ if (!('category' in value) || value['category'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function VmInspectionConcernFromJSON(json: any): VmInspectionConcern {
53
+ return VmInspectionConcernFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function VmInspectionConcernFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmInspectionConcern {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'label': json['label'],
63
+ 'message': json['message'],
64
+ 'category': json['category'],
65
+ };
66
+ }
67
+
68
+ export function VmInspectionConcernToJSON(json: any): VmInspectionConcern {
69
+ return VmInspectionConcernToJSONTyped(json, false);
70
+ }
71
+
72
+ export function VmInspectionConcernToJSONTyped(value?: VmInspectionConcern | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'label': value['label'],
80
+ 'message': value['message'],
81
+ 'category': value['category'],
82
+ };
83
+ }
84
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
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 { VmInspectionConcern } from './VmInspectionConcern.js';
17
+ import {
18
+ VmInspectionConcernFromJSON,
19
+ VmInspectionConcernFromJSONTyped,
20
+ VmInspectionConcernToJSON,
21
+ VmInspectionConcernToJSONTyped,
22
+ } from './VmInspectionConcern.js';
23
+
24
+ /**
25
+ * VirtualMachine Inspection results
26
+ * @export
27
+ * @interface VmInspectionResults
28
+ */
29
+ export interface VmInspectionResults {
30
+ /**
31
+ *
32
+ * @type {Array<VmInspectionConcern>}
33
+ * @memberof VmInspectionResults
34
+ */
35
+ concerns?: Array<VmInspectionConcern>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the VmInspectionResults interface.
40
+ */
41
+ export function instanceOfVmInspectionResults(value: object): value is VmInspectionResults {
42
+ return true;
43
+ }
44
+
45
+ export function VmInspectionResultsFromJSON(json: any): VmInspectionResults {
46
+ return VmInspectionResultsFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function VmInspectionResultsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmInspectionResults {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'concerns': json['concerns'] == null ? undefined : ((json['concerns'] as Array<any>).map(VmInspectionConcernFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function VmInspectionResultsToJSON(json: any): VmInspectionResults {
60
+ return VmInspectionResultsToJSONTyped(json, false);
61
+ }
62
+
63
+ export function VmInspectionResultsToJSONTyped(value?: VmInspectionResults | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'concerns': value['concerns'] == null ? undefined : ((value['concerns'] as Array<any>).map(VmInspectionConcernToJSON)),
71
+ };
72
+ }
73
+
@@ -48,8 +48,7 @@ export const VmInspectionStatusStateEnum = {
48
48
  VmInspectionStatusStateRunning: 'running',
49
49
  VmInspectionStatusStateCompleted: 'completed',
50
50
  VmInspectionStatusStateCanceled: 'canceled',
51
- VmInspectionStatusStateError: 'error',
52
- VmInspectionStatusStateNotFound: 'not_found'
51
+ VmInspectionStatusStateError: 'error'
53
52
  } as const;
54
53
  export type VmInspectionStatusStateEnum = typeof VmInspectionStatusStateEnum[keyof typeof VmInspectionStatusStateEnum];
55
54
 
@@ -16,13 +16,13 @@ export * from './GuestNetwork.js';
16
16
  export * from './Histogram.js';
17
17
  export * from './Host.js';
18
18
  export * from './Infra.js';
19
- export * from './InspectorStartRequest.js';
20
19
  export * from './InspectorStatus.js';
21
20
  export * from './Inventory.js';
22
21
  export * from './InventoryData.js';
23
22
  export * from './MigrationIssue.js';
24
23
  export * from './Network.js';
25
24
  export * from './OsInfo.js';
25
+ export * from './StartInspectionRequest.js';
26
26
  export * from './UpdateGroupRequest.js';
27
27
  export * from './UpdateInventory.js';
28
28
  export * from './VCenter.js';
@@ -38,4 +38,6 @@ export * from './VersionInfo.js';
38
38
  export * from './VirtualMachine.js';
39
39
  export * from './VirtualMachineDetail.js';
40
40
  export * from './VirtualMachineListResponse.js';
41
+ export * from './VmInspectionConcern.js';
42
+ export * from './VmInspectionResults.js';
41
43
  export * from './VmInspectionStatus.js';
package/src/runtime.ts CHANGED
@@ -91,7 +91,7 @@ export const DefaultConfig = new Configuration();
91
91
  */
92
92
  export class BaseAPI {
93
93
 
94
- private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
94
+ private static readonly jsonRegex = /^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$/i;
95
95
  private middleware: Middleware[];
96
96
 
97
97
  constructor(protected configuration = DefaultConfig) {
@@ -1,39 +0,0 @@
1
- /**
2
- * Assisted Migration Agent API
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: v1
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { VcenterCredentials } from './VcenterCredentials.js';
13
- /**
14
- *
15
- * @export
16
- * @interface InspectorStartRequest
17
- */
18
- export interface InspectorStartRequest {
19
- /**
20
- *
21
- * @type {VcenterCredentials}
22
- * @memberof InspectorStartRequest
23
- */
24
- vcenterCredentials: VcenterCredentials;
25
- /**
26
- * Array of VirtualMachine id
27
- * @type {Array<string>}
28
- * @memberof InspectorStartRequest
29
- */
30
- vmIds: Array<string>;
31
- }
32
- /**
33
- * Check if a given object implements the InspectorStartRequest interface.
34
- */
35
- export declare function instanceOfInspectorStartRequest(value: object): value is InspectorStartRequest;
36
- export declare function InspectorStartRequestFromJSON(json: any): InspectorStartRequest;
37
- export declare function InspectorStartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InspectorStartRequest;
38
- export declare function InspectorStartRequestToJSON(json: any): InspectorStartRequest;
39
- export declare function InspectorStartRequestToJSONTyped(value?: InspectorStartRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,48 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Assisted Migration Agent API
5
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
- *
7
- * The version of the OpenAPI document: v1
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
- import { VcenterCredentialsFromJSON, VcenterCredentialsToJSON, } from './VcenterCredentials.js';
15
- /**
16
- * Check if a given object implements the InspectorStartRequest interface.
17
- */
18
- export function instanceOfInspectorStartRequest(value) {
19
- if (!('vcenterCredentials' in value) || value['vcenterCredentials'] === undefined)
20
- return false;
21
- if (!('vmIds' in value) || value['vmIds'] === undefined)
22
- return false;
23
- return true;
24
- }
25
- export function InspectorStartRequestFromJSON(json) {
26
- return InspectorStartRequestFromJSONTyped(json, false);
27
- }
28
- export function InspectorStartRequestFromJSONTyped(json, ignoreDiscriminator) {
29
- if (json == null) {
30
- return json;
31
- }
32
- return {
33
- 'vcenterCredentials': VcenterCredentialsFromJSON(json['VcenterCredentials']),
34
- 'vmIds': json['vmIds'],
35
- };
36
- }
37
- export function InspectorStartRequestToJSON(json) {
38
- return InspectorStartRequestToJSONTyped(json, false);
39
- }
40
- export function InspectorStartRequestToJSONTyped(value, ignoreDiscriminator = false) {
41
- if (value == null) {
42
- return value;
43
- }
44
- return {
45
- 'VcenterCredentials': VcenterCredentialsToJSON(value['vcenterCredentials']),
46
- 'vmIds': value['vmIds'],
47
- };
48
- }
@@ -1,39 +0,0 @@
1
- /**
2
- * Assisted Migration Agent API
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: v1
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { VcenterCredentials } from './VcenterCredentials.js';
13
- /**
14
- *
15
- * @export
16
- * @interface InspectorStartRequest
17
- */
18
- export interface InspectorStartRequest {
19
- /**
20
- *
21
- * @type {VcenterCredentials}
22
- * @memberof InspectorStartRequest
23
- */
24
- vcenterCredentials: VcenterCredentials;
25
- /**
26
- * Array of VirtualMachine id
27
- * @type {Array<string>}
28
- * @memberof InspectorStartRequest
29
- */
30
- vmIds: Array<string>;
31
- }
32
- /**
33
- * Check if a given object implements the InspectorStartRequest interface.
34
- */
35
- export declare function instanceOfInspectorStartRequest(value: object): value is InspectorStartRequest;
36
- export declare function InspectorStartRequestFromJSON(json: any): InspectorStartRequest;
37
- export declare function InspectorStartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InspectorStartRequest;
38
- export declare function InspectorStartRequestToJSON(json: any): InspectorStartRequest;
39
- export declare function InspectorStartRequestToJSONTyped(value?: InspectorStartRequest | null, ignoreDiscriminator?: boolean): any;