@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
|
@@ -0,0 +1,101 @@
|
|
|
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 { ApplicationVM } from './ApplicationVM.js';
|
|
17
|
+
import {
|
|
18
|
+
ApplicationVMFromJSON,
|
|
19
|
+
ApplicationVMFromJSONTyped,
|
|
20
|
+
ApplicationVMToJSON,
|
|
21
|
+
ApplicationVMToJSONTyped,
|
|
22
|
+
} from './ApplicationVM.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApplicationOverview
|
|
28
|
+
*/
|
|
29
|
+
export interface ApplicationOverview {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApplicationOverview
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApplicationOverview
|
|
40
|
+
*/
|
|
41
|
+
description: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ApplicationOverview
|
|
46
|
+
*/
|
|
47
|
+
vmCount: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<ApplicationVM>}
|
|
51
|
+
* @memberof ApplicationOverview
|
|
52
|
+
*/
|
|
53
|
+
vms: Array<ApplicationVM>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApplicationOverview interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApplicationOverview(value: object): value is ApplicationOverview {
|
|
60
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
61
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
62
|
+
if (!('vmCount' in value) || value['vmCount'] === undefined) return false;
|
|
63
|
+
if (!('vms' in value) || value['vms'] === undefined) return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function ApplicationOverviewFromJSON(json: any): ApplicationOverview {
|
|
68
|
+
return ApplicationOverviewFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function ApplicationOverviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationOverview {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'name': json['name'],
|
|
78
|
+
'description': json['description'],
|
|
79
|
+
'vmCount': json['vmCount'],
|
|
80
|
+
'vms': ((json['vms'] as Array<any>).map(ApplicationVMFromJSON)),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function ApplicationOverviewToJSON(json: any): ApplicationOverview {
|
|
85
|
+
return ApplicationOverviewToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function ApplicationOverviewToJSONTyped(value?: ApplicationOverview | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'name': value['name'],
|
|
96
|
+
'description': value['description'],
|
|
97
|
+
'vmCount': value['vmCount'],
|
|
98
|
+
'vms': ((value['vms'] as Array<any>).map(ApplicationVMToJSON)),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApplicationVM
|
|
20
|
+
*/
|
|
21
|
+
export interface ApplicationVM {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApplicationVM
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApplicationVM
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ApplicationVM interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfApplicationVM(value: object): value is ApplicationVM {
|
|
40
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
41
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ApplicationVMFromJSON(json: any): ApplicationVM {
|
|
46
|
+
return ApplicationVMFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ApplicationVMFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationVM {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'id': json['id'],
|
|
56
|
+
'name': json['name'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ApplicationVMToJSON(json: any): ApplicationVM {
|
|
61
|
+
return ApplicationVMToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ApplicationVMToJSONTyped(value?: ApplicationVM | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'name': value['name'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,120 @@
|
|
|
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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ClusterUtilization
|
|
20
|
+
*/
|
|
21
|
+
export interface ClusterUtilization {
|
|
22
|
+
/**
|
|
23
|
+
* Average CPU utilization percentage (0-100)
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ClusterUtilization
|
|
26
|
+
*/
|
|
27
|
+
cpu_avg: number;
|
|
28
|
+
/**
|
|
29
|
+
* 95th percentile CPU utilization percentage (0-100)
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ClusterUtilization
|
|
32
|
+
*/
|
|
33
|
+
cpu_p95: number;
|
|
34
|
+
/**
|
|
35
|
+
* Maximum CPU utilization percentage (0-100)
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof ClusterUtilization
|
|
38
|
+
*/
|
|
39
|
+
cpu_max: number;
|
|
40
|
+
/**
|
|
41
|
+
* Average memory utilization percentage (0-100)
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof ClusterUtilization
|
|
44
|
+
*/
|
|
45
|
+
mem_avg: number;
|
|
46
|
+
/**
|
|
47
|
+
* 95th percentile memory utilization percentage (0-100)
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof ClusterUtilization
|
|
50
|
+
*/
|
|
51
|
+
mem_p95: number;
|
|
52
|
+
/**
|
|
53
|
+
* Maximum memory utilization percentage (0-100)
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof ClusterUtilization
|
|
56
|
+
*/
|
|
57
|
+
mem_max: number;
|
|
58
|
+
/**
|
|
59
|
+
* Data coverage confidence percentage (0-100), calculated as vCPU-weighted coverage
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof ClusterUtilization
|
|
62
|
+
*/
|
|
63
|
+
confidence: number;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the ClusterUtilization interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfClusterUtilization(value: object): value is ClusterUtilization {
|
|
70
|
+
if (!('cpu_avg' in value) || value['cpu_avg'] === undefined) return false;
|
|
71
|
+
if (!('cpu_p95' in value) || value['cpu_p95'] === undefined) return false;
|
|
72
|
+
if (!('cpu_max' in value) || value['cpu_max'] === undefined) return false;
|
|
73
|
+
if (!('mem_avg' in value) || value['mem_avg'] === undefined) return false;
|
|
74
|
+
if (!('mem_p95' in value) || value['mem_p95'] === undefined) return false;
|
|
75
|
+
if (!('mem_max' in value) || value['mem_max'] === undefined) return false;
|
|
76
|
+
if (!('confidence' in value) || value['confidence'] === undefined) return false;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function ClusterUtilizationFromJSON(json: any): ClusterUtilization {
|
|
81
|
+
return ClusterUtilizationFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function ClusterUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterUtilization {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'cpu_avg': json['cpu_avg'],
|
|
91
|
+
'cpu_p95': json['cpu_p95'],
|
|
92
|
+
'cpu_max': json['cpu_max'],
|
|
93
|
+
'mem_avg': json['mem_avg'],
|
|
94
|
+
'mem_p95': json['mem_p95'],
|
|
95
|
+
'mem_max': json['mem_max'],
|
|
96
|
+
'confidence': json['confidence'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function ClusterUtilizationToJSON(json: any): ClusterUtilization {
|
|
101
|
+
return ClusterUtilizationToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function ClusterUtilizationToJSONTyped(value?: ClusterUtilization | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'cpu_avg': value['cpu_avg'],
|
|
112
|
+
'cpu_p95': value['cpu_p95'],
|
|
113
|
+
'cpu_max': value['cpu_max'],
|
|
114
|
+
'mem_avg': value['mem_avg'],
|
|
115
|
+
'mem_p95': value['mem_p95'],
|
|
116
|
+
'mem_max': value['mem_max'],
|
|
117
|
+
'confidence': value['confidence'],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
@@ -37,6 +37,18 @@ export interface CollectorStartRequest {
|
|
|
37
37
|
* @memberof CollectorStartRequest
|
|
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 CollectorStartRequest
|
|
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 CollectorStartRequest
|
|
50
|
+
*/
|
|
51
|
+
skipTls?: boolean;
|
|
40
52
|
}
|
|
41
53
|
|
|
42
54
|
/**
|
|
@@ -62,6 +74,8 @@ export function CollectorStartRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
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 CollectorStartRequestToJSONTyped(value?: CollectorStartRequest |
|
|
|
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
|
|
|
@@ -37,12 +37,6 @@ export interface CreateGroupRequest {
|
|
|
37
37
|
* @memberof CreateGroupRequest
|
|
38
38
|
*/
|
|
39
39
|
filter: string;
|
|
40
|
-
/**
|
|
41
|
-
* Tags to apply to matching VMs (only alphanumeric, underscore, and dot allowed)
|
|
42
|
-
* @type {Array<string>}
|
|
43
|
-
* @memberof CreateGroupRequest
|
|
44
|
-
*/
|
|
45
|
-
tags?: Array<string>;
|
|
46
40
|
}
|
|
47
41
|
|
|
48
42
|
/**
|
|
@@ -67,7 +61,6 @@ export function CreateGroupRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
67
61
|
'name': json['name'],
|
|
68
62
|
'description': json['description'] == null ? undefined : json['description'],
|
|
69
63
|
'filter': json['filter'],
|
|
70
|
-
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
71
64
|
};
|
|
72
65
|
}
|
|
73
66
|
|
|
@@ -85,7 +78,6 @@ export function CreateGroupRequestToJSONTyped(value?: CreateGroupRequest | null,
|
|
|
85
78
|
'name': value['name'],
|
|
86
79
|
'description': value['description'],
|
|
87
80
|
'filter': value['filter'],
|
|
88
|
-
'tags': value['tags'],
|
|
89
81
|
};
|
|
90
82
|
}
|
|
91
83
|
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CredentialStatus
|
|
20
|
+
*/
|
|
21
|
+
export interface CredentialStatus {
|
|
22
|
+
/**
|
|
23
|
+
* vCenter URL the credentials belong to
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CredentialStatus
|
|
26
|
+
*/
|
|
27
|
+
url: string;
|
|
28
|
+
/**
|
|
29
|
+
* Whether credentials are stored for the returned URL.
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof CredentialStatus
|
|
32
|
+
*/
|
|
33
|
+
valid: boolean;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the CredentialStatus interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfCredentialStatus(value: object): value is CredentialStatus {
|
|
40
|
+
if (!('url' in value) || value['url'] === undefined) return false;
|
|
41
|
+
if (!('valid' in value) || value['valid'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function CredentialStatusFromJSON(json: any): CredentialStatus {
|
|
46
|
+
return CredentialStatusFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function CredentialStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): CredentialStatus {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'url': json['url'],
|
|
56
|
+
'valid': json['valid'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function CredentialStatusToJSON(json: any): CredentialStatus {
|
|
61
|
+
return CredentialStatusToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function CredentialStatusToJSONTyped(value?: CredentialStatus | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'url': value['url'],
|
|
72
|
+
'valid': value['valid'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
package/src/models/Group.ts
CHANGED
|
@@ -43,12 +43,6 @@ export interface Group {
|
|
|
43
43
|
* @memberof Group
|
|
44
44
|
*/
|
|
45
45
|
filter: string;
|
|
46
|
-
/**
|
|
47
|
-
* Tags associated with this group (applied to matching VMs)
|
|
48
|
-
* @type {Array<string>}
|
|
49
|
-
* @memberof Group
|
|
50
|
-
*/
|
|
51
|
-
tags?: Array<string>;
|
|
52
46
|
/**
|
|
53
47
|
* Timestamp when the group was created
|
|
54
48
|
* @type {Date}
|
|
@@ -87,7 +81,6 @@ export function GroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): Gro
|
|
|
87
81
|
'name': json['name'],
|
|
88
82
|
'description': json['description'] == null ? undefined : json['description'],
|
|
89
83
|
'filter': json['filter'],
|
|
90
|
-
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
91
84
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
92
85
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
93
86
|
};
|
|
@@ -108,7 +101,6 @@ export function GroupToJSONTyped(value?: Group | null, ignoreDiscriminator: bool
|
|
|
108
101
|
'name': value['name'],
|
|
109
102
|
'description': value['description'],
|
|
110
103
|
'filter': value['filter'],
|
|
111
|
-
'tags': value['tags'],
|
|
112
104
|
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
113
105
|
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
114
106
|
};
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
GroupToJSON,
|
|
21
21
|
GroupToJSONTyped,
|
|
22
22
|
} from './Group.js';
|
|
23
|
+
import type { Inventory } from './Inventory.js';
|
|
24
|
+
import {
|
|
25
|
+
InventoryFromJSON,
|
|
26
|
+
InventoryFromJSONTyped,
|
|
27
|
+
InventoryToJSON,
|
|
28
|
+
InventoryToJSONTyped,
|
|
29
|
+
} from './Inventory.js';
|
|
23
30
|
import type { VirtualMachine } from './VirtualMachine.js';
|
|
24
31
|
import {
|
|
25
32
|
VirtualMachineFromJSON,
|
|
@@ -40,6 +47,12 @@ export interface GroupResponse {
|
|
|
40
47
|
* @memberof GroupResponse
|
|
41
48
|
*/
|
|
42
49
|
group: Group;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Inventory}
|
|
53
|
+
* @memberof GroupResponse
|
|
54
|
+
*/
|
|
55
|
+
inventory?: Inventory;
|
|
43
56
|
/**
|
|
44
57
|
*
|
|
45
58
|
* @type {Array<VirtualMachine>}
|
|
@@ -89,6 +102,7 @@ export function GroupResponseFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
89
102
|
return {
|
|
90
103
|
|
|
91
104
|
'group': GroupFromJSON(json['group']),
|
|
105
|
+
'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
|
|
92
106
|
'vms': ((json['vms'] as Array<any>).map(VirtualMachineFromJSON)),
|
|
93
107
|
'total': json['total'],
|
|
94
108
|
'page': json['page'],
|
|
@@ -108,6 +122,7 @@ export function GroupResponseToJSONTyped(value?: GroupResponse | null, ignoreDis
|
|
|
108
122
|
return {
|
|
109
123
|
|
|
110
124
|
'group': GroupToJSON(value['group']),
|
|
125
|
+
'inventory': InventoryToJSON(value['inventory']),
|
|
111
126
|
'vms': ((value['vms'] as Array<any>).map(VirtualMachineToJSON)),
|
|
112
127
|
'total': value['total'],
|
|
113
128
|
'page': value['page'],
|
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
InfraToJSON,
|
|
28
28
|
InfraToJSONTyped,
|
|
29
29
|
} from './Infra.js';
|
|
30
|
+
import type { ClusterUtilization } from './ClusterUtilization.js';
|
|
31
|
+
import {
|
|
32
|
+
ClusterUtilizationFromJSON,
|
|
33
|
+
ClusterUtilizationFromJSONTyped,
|
|
34
|
+
ClusterUtilizationToJSON,
|
|
35
|
+
ClusterUtilizationToJSONTyped,
|
|
36
|
+
} from './ClusterUtilization.js';
|
|
30
37
|
import type { VMs } from './VMs.js';
|
|
31
38
|
import {
|
|
32
39
|
VMsFromJSON,
|
|
@@ -60,6 +67,12 @@ export interface InventoryData {
|
|
|
60
67
|
* @memberof InventoryData
|
|
61
68
|
*/
|
|
62
69
|
clusterFeatures?: ClusterFeatures;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {ClusterUtilization}
|
|
73
|
+
* @memberof InventoryData
|
|
74
|
+
*/
|
|
75
|
+
clusterUtilization?: ClusterUtilization;
|
|
63
76
|
/**
|
|
64
77
|
*
|
|
65
78
|
* @type {VMs}
|
|
@@ -95,6 +108,7 @@ export function InventoryDataFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
95
108
|
|
|
96
109
|
'vcenter': json['vcenter'] == null ? undefined : VCenterFromJSON(json['vcenter']),
|
|
97
110
|
'clusterFeatures': json['clusterFeatures'] == null ? undefined : ClusterFeaturesFromJSON(json['clusterFeatures']),
|
|
111
|
+
'clusterUtilization': json['clusterUtilization'] == null ? undefined : ClusterUtilizationFromJSON(json['clusterUtilization']),
|
|
98
112
|
'vms': VMsFromJSON(json['vms']),
|
|
99
113
|
'infra': InfraFromJSON(json['infra']),
|
|
100
114
|
};
|
|
@@ -113,6 +127,7 @@ export function InventoryDataToJSONTyped(value?: InventoryData | null, ignoreDis
|
|
|
113
127
|
|
|
114
128
|
'vcenter': VCenterToJSON(value['vcenter']),
|
|
115
129
|
'clusterFeatures': ClusterFeaturesToJSON(value['clusterFeatures']),
|
|
130
|
+
'clusterUtilization': ClusterUtilizationToJSON(value['clusterUtilization']),
|
|
116
131
|
'vms': VMsToJSON(value['vms']),
|
|
117
132
|
'infra': InfraToJSON(value['infra']),
|
|
118
133
|
};
|
|
@@ -37,12 +37,6 @@ export interface UpdateGroupRequest {
|
|
|
37
37
|
* @memberof UpdateGroupRequest
|
|
38
38
|
*/
|
|
39
39
|
filter?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Tags to apply to matching VMs (only alphanumeric, underscore, and dot allowed)
|
|
42
|
-
* @type {Array<string>}
|
|
43
|
-
* @memberof UpdateGroupRequest
|
|
44
|
-
*/
|
|
45
|
-
tags?: Array<string>;
|
|
46
40
|
}
|
|
47
41
|
|
|
48
42
|
/**
|
|
@@ -65,7 +59,6 @@ export function UpdateGroupRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
65
59
|
'name': json['name'] == null ? undefined : json['name'],
|
|
66
60
|
'description': json['description'] == null ? undefined : json['description'],
|
|
67
61
|
'filter': json['filter'] == null ? undefined : json['filter'],
|
|
68
|
-
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
69
62
|
};
|
|
70
63
|
}
|
|
71
64
|
|
|
@@ -83,7 +76,6 @@ export function UpdateGroupRequestToJSONTyped(value?: UpdateGroupRequest | null,
|
|
|
83
76
|
'name': value['name'],
|
|
84
77
|
'description': value['description'],
|
|
85
78
|
'filter': value['filter'],
|
|
86
|
-
'tags': value['tags'],
|
|
87
79
|
};
|
|
88
80
|
}
|
|
89
81
|
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface VMFilterOptionsResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface VMFilterOptionsResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Distinct cluster names
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof VMFilterOptionsResponse
|
|
26
|
+
*/
|
|
27
|
+
clusters: Array<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Distinct datacenter names
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof VMFilterOptionsResponse
|
|
32
|
+
*/
|
|
33
|
+
datacenters: Array<string>;
|
|
34
|
+
/**
|
|
35
|
+
* Distinct concern labels
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof VMFilterOptionsResponse
|
|
38
|
+
*/
|
|
39
|
+
concernLabels: Array<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Distinct concern categories
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof VMFilterOptionsResponse
|
|
44
|
+
*/
|
|
45
|
+
concernCategories: Array<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Distinct detected application names
|
|
48
|
+
* @type {Array<string>}
|
|
49
|
+
* @memberof VMFilterOptionsResponse
|
|
50
|
+
*/
|
|
51
|
+
applications: Array<string>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the VMFilterOptionsResponse interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfVMFilterOptionsResponse(value: object): value is VMFilterOptionsResponse {
|
|
58
|
+
if (!('clusters' in value) || value['clusters'] === undefined) return false;
|
|
59
|
+
if (!('datacenters' in value) || value['datacenters'] === undefined) return false;
|
|
60
|
+
if (!('concernLabels' in value) || value['concernLabels'] === undefined) return false;
|
|
61
|
+
if (!('concernCategories' in value) || value['concernCategories'] === undefined) return false;
|
|
62
|
+
if (!('applications' in value) || value['applications'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function VMFilterOptionsResponseFromJSON(json: any): VMFilterOptionsResponse {
|
|
67
|
+
return VMFilterOptionsResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function VMFilterOptionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMFilterOptionsResponse {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'clusters': json['clusters'],
|
|
77
|
+
'datacenters': json['datacenters'],
|
|
78
|
+
'concernLabels': json['concernLabels'],
|
|
79
|
+
'concernCategories': json['concernCategories'],
|
|
80
|
+
'applications': json['applications'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function VMFilterOptionsResponseToJSON(json: any): VMFilterOptionsResponse {
|
|
85
|
+
return VMFilterOptionsResponseToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function VMFilterOptionsResponseToJSONTyped(value?: VMFilterOptionsResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'clusters': value['clusters'],
|
|
96
|
+
'datacenters': value['datacenters'],
|
|
97
|
+
'concernLabels': value['concernLabels'],
|
|
98
|
+
'concernCategories': value['concernCategories'],
|
|
99
|
+
'applications': value['applications'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|