@openshift-migration-advisor/agent-sdk 0.12.0-645d2fae3eee → 0.12.0-73dd4924f11b
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.
- package/.openapi-generator/FILES +12 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +15 -3
- package/dist/apis/DefaultApi.d.ts +206 -4
- package/dist/apis/DefaultApi.js +227 -0
- package/dist/esm/apis/DefaultApi.d.ts +206 -4
- package/dist/esm/apis/DefaultApi.js +227 -0
- package/dist/esm/models/ApplicationListResponse.d.ts +33 -0
- package/dist/esm/models/ApplicationListResponse.js +44 -0
- package/dist/esm/models/ApplicationOverview.d.ts +51 -0
- package/dist/esm/models/ApplicationOverview.js +56 -0
- package/dist/esm/models/ApplicationVM.d.ts +38 -0
- package/dist/esm/models/ApplicationVM.js +47 -0
- package/dist/esm/models/ClusterUtilization.d.ts +68 -0
- package/dist/esm/models/ClusterUtilization.js +67 -0
- package/dist/esm/models/CollectorStartRequest.d.ts +12 -0
- package/dist/esm/models/CollectorStartRequest.js +4 -0
- package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
- package/dist/esm/models/CreateGroupRequest.js +0 -2
- package/dist/esm/models/CredentialStatus.d.ts +38 -0
- package/dist/esm/models/CredentialStatus.js +47 -0
- package/dist/esm/models/Group.d.ts +0 -6
- package/dist/esm/models/Group.js +0 -2
- package/dist/esm/models/GroupResponse.d.ts +7 -0
- package/dist/esm/models/GroupResponse.js +3 -0
- package/dist/esm/models/InventoryData.d.ts +7 -0
- package/dist/esm/models/InventoryData.js +3 -0
- package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/esm/models/UpdateGroupRequest.js +0 -2
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +59 -0
- package/dist/esm/models/VMNIC.d.ts +12 -0
- package/dist/esm/models/VMNIC.js +4 -0
- package/dist/esm/models/VcenterCredentials.d.ts +12 -0
- package/dist/esm/models/VcenterCredentials.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +14 -2
- package/dist/esm/models/VirtualMachine.js +6 -2
- package/dist/esm/models/VmInspectionStatus.d.ts +6 -0
- package/dist/esm/models/VmInspectionStatus.js +4 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/esm/runtime.js +2 -1
- package/dist/models/ApplicationListResponse.d.ts +33 -0
- package/dist/models/ApplicationListResponse.js +51 -0
- package/dist/models/ApplicationOverview.d.ts +51 -0
- package/dist/models/ApplicationOverview.js +63 -0
- package/dist/models/ApplicationVM.d.ts +38 -0
- package/dist/models/ApplicationVM.js +54 -0
- package/dist/models/ClusterUtilization.d.ts +68 -0
- package/dist/models/ClusterUtilization.js +74 -0
- package/dist/models/CollectorStartRequest.d.ts +12 -0
- package/dist/models/CollectorStartRequest.js +4 -0
- package/dist/models/CreateGroupRequest.d.ts +0 -6
- package/dist/models/CreateGroupRequest.js +0 -2
- package/dist/models/CredentialStatus.d.ts +38 -0
- package/dist/models/CredentialStatus.js +54 -0
- package/dist/models/Group.d.ts +0 -6
- package/dist/models/Group.js +0 -2
- package/dist/models/GroupResponse.d.ts +7 -0
- package/dist/models/GroupResponse.js +3 -0
- package/dist/models/InventoryData.d.ts +7 -0
- package/dist/models/InventoryData.js +3 -0
- package/dist/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/models/UpdateGroupRequest.js +0 -2
- package/dist/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/models/VMFilterOptionsResponse.js +66 -0
- package/dist/models/VMNIC.d.ts +12 -0
- package/dist/models/VMNIC.js +4 -0
- package/dist/models/VcenterCredentials.d.ts +12 -0
- package/dist/models/VcenterCredentials.js +4 -0
- package/dist/models/VirtualMachine.d.ts +14 -2
- package/dist/models/VirtualMachine.js +6 -2
- package/dist/models/VmInspectionStatus.d.ts +6 -0
- package/dist/models/VmInspectionStatus.js +4 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/runtime.js +2 -1
- package/docs/ApplicationListResponse.md +34 -0
- package/docs/ApplicationOverview.md +40 -0
- package/docs/ApplicationVM.md +36 -0
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CollectorStartRequest.md +4 -0
- package/docs/CreateGroupRequest.md +0 -2
- package/docs/CredentialStatus.md +36 -0
- package/docs/DefaultApi.md +385 -4
- package/docs/Group.md +0 -2
- package/docs/GroupResponse.md +2 -0
- package/docs/InventoryData.md +2 -0
- package/docs/UpdateGroupRequest.md +0 -2
- package/docs/VMFilterOptionsResponse.md +42 -0
- package/docs/VMNIC.md +4 -0
- package/docs/VcenterCredentials.md +4 -0
- package/docs/VirtualMachine.md +6 -2
- package/docs/VmInspectionStatus.md +2 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +405 -4
- package/src/models/ApplicationListResponse.ts +74 -0
- package/src/models/ApplicationOverview.ts +101 -0
- package/src/models/ApplicationVM.ts +75 -0
- package/src/models/ClusterUtilization.ts +120 -0
- package/src/models/CollectorStartRequest.ts +16 -0
- package/src/models/CreateGroupRequest.ts +0 -8
- package/src/models/CredentialStatus.ts +75 -0
- package/src/models/Group.ts +0 -8
- package/src/models/GroupResponse.ts +15 -0
- package/src/models/InventoryData.ts +15 -0
- package/src/models/UpdateGroupRequest.ts +0 -8
- package/src/models/VMFilterOptionsResponse.ts +102 -0
- package/src/models/VMNIC.ts +16 -0
- package/src/models/VcenterCredentials.ts +16 -0
- package/src/models/VirtualMachine.ts +20 -4
- package/src/models/VmInspectionStatus.ts +9 -0
- package/src/models/index.ts +6 -0
- package/src/runtime.ts +1 -1
package/src/models/VMNIC.ts
CHANGED
|
@@ -37,6 +37,18 @@ export interface VMNIC {
|
|
|
37
37
|
* @memberof VMNIC
|
|
38
38
|
*/
|
|
39
39
|
index?: number;
|
|
40
|
+
/**
|
|
41
|
+
* IPv4 address of this NIC as reported by VMware Tools
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof VMNIC
|
|
44
|
+
*/
|
|
45
|
+
ipv4Address?: string;
|
|
46
|
+
/**
|
|
47
|
+
* IPv6 address of this NIC as reported by VMware Tools
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof VMNIC
|
|
50
|
+
*/
|
|
51
|
+
ipv6Address?: string;
|
|
40
52
|
}
|
|
41
53
|
|
|
42
54
|
/**
|
|
@@ -59,6 +71,8 @@ export function VMNICFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMN
|
|
|
59
71
|
'mac': json['mac'] == null ? undefined : json['mac'],
|
|
60
72
|
'network': json['network'] == null ? undefined : json['network'],
|
|
61
73
|
'index': json['index'] == null ? undefined : json['index'],
|
|
74
|
+
'ipv4Address': json['ipv4Address'] == null ? undefined : json['ipv4Address'],
|
|
75
|
+
'ipv6Address': json['ipv6Address'] == null ? undefined : json['ipv6Address'],
|
|
62
76
|
};
|
|
63
77
|
}
|
|
64
78
|
|
|
@@ -76,6 +90,8 @@ export function VMNICToJSONTyped(value?: VMNIC | null, ignoreDiscriminator: bool
|
|
|
76
90
|
'mac': value['mac'],
|
|
77
91
|
'network': value['network'],
|
|
78
92
|
'index': value['index'],
|
|
93
|
+
'ipv4Address': value['ipv4Address'],
|
|
94
|
+
'ipv6Address': value['ipv6Address'],
|
|
79
95
|
};
|
|
80
96
|
}
|
|
81
97
|
|
|
@@ -37,6 +37,18 @@ export interface VcenterCredentials {
|
|
|
37
37
|
* @memberof VcenterCredentials
|
|
38
38
|
*/
|
|
39
39
|
password: string;
|
|
40
|
+
/**
|
|
41
|
+
* PEM-encoded CA certificate bundle for verifying the vCenter TLS certificate. Mutually exclusive with skipTls.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof VcenterCredentials
|
|
44
|
+
*/
|
|
45
|
+
cacert?: string;
|
|
46
|
+
/**
|
|
47
|
+
* When true, TLS certificate verification is skipped. Must not be set to true alongside cacert — that combination returns 400. When omitted: if cacert is absent the connection skips TLS verification (backwards compatibility); if cacert is provided the connection verifies TLS using that certificate — skipTls need not be sent.
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof VcenterCredentials
|
|
50
|
+
*/
|
|
51
|
+
skipTls?: boolean;
|
|
40
52
|
}
|
|
41
53
|
|
|
42
54
|
/**
|
|
@@ -62,6 +74,8 @@ export function VcenterCredentialsFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
62
74
|
'url': json['url'],
|
|
63
75
|
'username': json['username'],
|
|
64
76
|
'password': json['password'],
|
|
77
|
+
'cacert': json['cacert'] == null ? undefined : json['cacert'],
|
|
78
|
+
'skipTls': json['skipTls'] == null ? undefined : json['skipTls'],
|
|
65
79
|
};
|
|
66
80
|
}
|
|
67
81
|
|
|
@@ -79,6 +93,8 @@ export function VcenterCredentialsToJSONTyped(value?: VcenterCredentials | null,
|
|
|
79
93
|
'url': value['url'],
|
|
80
94
|
'username': value['username'],
|
|
81
95
|
'password': value['password'],
|
|
96
|
+
'cacert': value['cacert'],
|
|
97
|
+
'skipTls': value['skipTls'],
|
|
82
98
|
};
|
|
83
99
|
}
|
|
84
100
|
|
|
@@ -106,11 +106,11 @@ export interface VirtualMachine {
|
|
|
106
106
|
*/
|
|
107
107
|
inspectionConcernCount?: number;
|
|
108
108
|
/**
|
|
109
|
-
*
|
|
109
|
+
* Names of groups this VM matches
|
|
110
110
|
* @type {Array<string>}
|
|
111
111
|
* @memberof VirtualMachine
|
|
112
112
|
*/
|
|
113
|
-
|
|
113
|
+
groups?: Array<string>;
|
|
114
114
|
/**
|
|
115
115
|
* User-defined labels for this VM
|
|
116
116
|
* @type {Array<string>}
|
|
@@ -129,6 +129,18 @@ export interface VirtualMachine {
|
|
|
129
129
|
* @memberof VirtualMachine
|
|
130
130
|
*/
|
|
131
131
|
utilization_mem_p95?: number;
|
|
132
|
+
/**
|
|
133
|
+
* CPU utilization at max (%); absent when no utilization data
|
|
134
|
+
* @type {number}
|
|
135
|
+
* @memberof VirtualMachine
|
|
136
|
+
*/
|
|
137
|
+
utilization_cpu_max?: number;
|
|
138
|
+
/**
|
|
139
|
+
* Memory utilization at max (%); absent when no utilization data
|
|
140
|
+
* @type {number}
|
|
141
|
+
* @memberof VirtualMachine
|
|
142
|
+
*/
|
|
143
|
+
utilization_mem_max?: number;
|
|
132
144
|
/**
|
|
133
145
|
* Disk utilization (%); absent when no utilization data
|
|
134
146
|
* @type {number}
|
|
@@ -181,10 +193,12 @@ export function VirtualMachineFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
181
193
|
'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
|
|
182
194
|
'inspectionStatus': json['inspectionStatus'] == null ? undefined : VmInspectionStatusFromJSON(json['inspectionStatus']),
|
|
183
195
|
'inspectionConcernCount': json['inspectionConcernCount'] == null ? undefined : json['inspectionConcernCount'],
|
|
184
|
-
'
|
|
196
|
+
'groups': json['groups'] == null ? undefined : json['groups'],
|
|
185
197
|
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
186
198
|
'utilization_cpu_p95': json['utilization_cpu_p95'] == null ? undefined : json['utilization_cpu_p95'],
|
|
187
199
|
'utilization_mem_p95': json['utilization_mem_p95'] == null ? undefined : json['utilization_mem_p95'],
|
|
200
|
+
'utilization_cpu_max': json['utilization_cpu_max'] == null ? undefined : json['utilization_cpu_max'],
|
|
201
|
+
'utilization_mem_max': json['utilization_mem_max'] == null ? undefined : json['utilization_mem_max'],
|
|
188
202
|
'utilization_disk': json['utilization_disk'] == null ? undefined : json['utilization_disk'],
|
|
189
203
|
'utilization_confidence': json['utilization_confidence'] == null ? undefined : json['utilization_confidence'],
|
|
190
204
|
};
|
|
@@ -214,10 +228,12 @@ export function VirtualMachineToJSONTyped(value?: VirtualMachine | null, ignoreD
|
|
|
214
228
|
'migrationExcluded': value['migrationExcluded'],
|
|
215
229
|
'inspectionStatus': VmInspectionStatusToJSON(value['inspectionStatus']),
|
|
216
230
|
'inspectionConcernCount': value['inspectionConcernCount'],
|
|
217
|
-
'
|
|
231
|
+
'groups': value['groups'],
|
|
218
232
|
'labels': value['labels'],
|
|
219
233
|
'utilization_cpu_p95': value['utilization_cpu_p95'],
|
|
220
234
|
'utilization_mem_p95': value['utilization_mem_p95'],
|
|
235
|
+
'utilization_cpu_max': value['utilization_cpu_max'],
|
|
236
|
+
'utilization_mem_max': value['utilization_mem_max'],
|
|
221
237
|
'utilization_disk': value['utilization_disk'],
|
|
222
238
|
'utilization_confidence': value['utilization_confidence'],
|
|
223
239
|
};
|
|
@@ -25,6 +25,12 @@ export interface VmInspectionStatus {
|
|
|
25
25
|
* @memberof VmInspectionStatus
|
|
26
26
|
*/
|
|
27
27
|
state: VmInspectionStatusStateEnum;
|
|
28
|
+
/**
|
|
29
|
+
* State details
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof VmInspectionStatus
|
|
32
|
+
*/
|
|
33
|
+
message: string;
|
|
28
34
|
/**
|
|
29
35
|
* Error message when state is error
|
|
30
36
|
* @type {string}
|
|
@@ -58,6 +64,7 @@ export type VmInspectionStatusStateEnum = typeof VmInspectionStatusStateEnum[key
|
|
|
58
64
|
*/
|
|
59
65
|
export function instanceOfVmInspectionStatus(value: object): value is VmInspectionStatus {
|
|
60
66
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
67
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
61
68
|
return true;
|
|
62
69
|
}
|
|
63
70
|
|
|
@@ -72,6 +79,7 @@ export function VmInspectionStatusFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
72
79
|
return {
|
|
73
80
|
|
|
74
81
|
'state': json['state'],
|
|
82
|
+
'message': json['message'],
|
|
75
83
|
'error': json['error'] == null ? undefined : json['error'],
|
|
76
84
|
'results': json['results'] == null ? undefined : json['results'],
|
|
77
85
|
};
|
|
@@ -89,6 +97,7 @@ export function VmInspectionStatusToJSONTyped(value?: VmInspectionStatus | null,
|
|
|
89
97
|
return {
|
|
90
98
|
|
|
91
99
|
'state': value['state'],
|
|
100
|
+
'message': value['message'],
|
|
92
101
|
'error': value['error'],
|
|
93
102
|
'results': value['results'],
|
|
94
103
|
};
|
package/src/models/index.ts
CHANGED
|
@@ -2,11 +2,16 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AgentModeRequest.js';
|
|
4
4
|
export * from './AgentStatus.js';
|
|
5
|
+
export * from './ApplicationListResponse.js';
|
|
6
|
+
export * from './ApplicationOverview.js';
|
|
7
|
+
export * from './ApplicationVM.js';
|
|
5
8
|
export * from './BenchmarkRun.js';
|
|
6
9
|
export * from './ClusterFeatures.js';
|
|
10
|
+
export * from './ClusterUtilization.js';
|
|
7
11
|
export * from './CollectorStartRequest.js';
|
|
8
12
|
export * from './CollectorStatus.js';
|
|
9
13
|
export * from './CreateGroupRequest.js';
|
|
14
|
+
export * from './CredentialStatus.js';
|
|
10
15
|
export * from './Datastore.js';
|
|
11
16
|
export * from './DatastoreDetail.js';
|
|
12
17
|
export * from './DatastorePair.js';
|
|
@@ -53,6 +58,7 @@ export * from './UpdateLabelVMsRequest.js';
|
|
|
53
58
|
export * from './VCenter.js';
|
|
54
59
|
export * from './VMDevice.js';
|
|
55
60
|
export * from './VMDisk.js';
|
|
61
|
+
export * from './VMFilterOptionsResponse.js';
|
|
56
62
|
export * from './VMIssue.js';
|
|
57
63
|
export * from './VMLabelsResponse.js';
|
|
58
64
|
export * from './VMNIC.js';
|
package/src/runtime.ts
CHANGED
|
@@ -369,7 +369,7 @@ export function mapValues(data: any, fn: (item: any) => any) {
|
|
|
369
369
|
|
|
370
370
|
export function canConsumeForm(consumes: Consume[]): boolean {
|
|
371
371
|
for (const consume of consumes) {
|
|
372
|
-
if ('multipart/form-data'
|
|
372
|
+
if (consume.contentType?.startsWith('multipart/form-data') == true) {
|
|
373
373
|
return true;
|
|
374
374
|
}
|
|
375
375
|
}
|