@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,33 @@
|
|
|
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 { ApplicationOverview } from './ApplicationOverview.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApplicationListResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ApplicationListResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ApplicationOverview>}
|
|
22
|
+
* @memberof ApplicationListResponse
|
|
23
|
+
*/
|
|
24
|
+
applications: Array<ApplicationOverview>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ApplicationListResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfApplicationListResponse(value: object): value is ApplicationListResponse;
|
|
30
|
+
export declare function ApplicationListResponseFromJSON(json: any): ApplicationListResponse;
|
|
31
|
+
export declare function ApplicationListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationListResponse;
|
|
32
|
+
export declare function ApplicationListResponseToJSON(json: any): ApplicationListResponse;
|
|
33
|
+
export declare function ApplicationListResponseToJSONTyped(value?: ApplicationListResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfApplicationListResponse = instanceOfApplicationListResponse;
|
|
17
|
+
exports.ApplicationListResponseFromJSON = ApplicationListResponseFromJSON;
|
|
18
|
+
exports.ApplicationListResponseFromJSONTyped = ApplicationListResponseFromJSONTyped;
|
|
19
|
+
exports.ApplicationListResponseToJSON = ApplicationListResponseToJSON;
|
|
20
|
+
exports.ApplicationListResponseToJSONTyped = ApplicationListResponseToJSONTyped;
|
|
21
|
+
const ApplicationOverview_js_1 = require("./ApplicationOverview.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApplicationListResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApplicationListResponse(value) {
|
|
26
|
+
if (!('applications' in value) || value['applications'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function ApplicationListResponseFromJSON(json) {
|
|
31
|
+
return ApplicationListResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function ApplicationListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'applications': (json['applications'].map(ApplicationOverview_js_1.ApplicationOverviewFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ApplicationListResponseToJSON(json) {
|
|
42
|
+
return ApplicationListResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ApplicationListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'applications': (value['applications'].map(ApplicationOverview_js_1.ApplicationOverviewToJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { ApplicationVM } from './ApplicationVM.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApplicationOverview
|
|
17
|
+
*/
|
|
18
|
+
export interface ApplicationOverview {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ApplicationOverview
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApplicationOverview
|
|
29
|
+
*/
|
|
30
|
+
description: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ApplicationOverview
|
|
35
|
+
*/
|
|
36
|
+
vmCount: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<ApplicationVM>}
|
|
40
|
+
* @memberof ApplicationOverview
|
|
41
|
+
*/
|
|
42
|
+
vms: Array<ApplicationVM>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApplicationOverview interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApplicationOverview(value: object): value is ApplicationOverview;
|
|
48
|
+
export declare function ApplicationOverviewFromJSON(json: any): ApplicationOverview;
|
|
49
|
+
export declare function ApplicationOverviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationOverview;
|
|
50
|
+
export declare function ApplicationOverviewToJSON(json: any): ApplicationOverview;
|
|
51
|
+
export declare function ApplicationOverviewToJSONTyped(value?: ApplicationOverview | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfApplicationOverview = instanceOfApplicationOverview;
|
|
17
|
+
exports.ApplicationOverviewFromJSON = ApplicationOverviewFromJSON;
|
|
18
|
+
exports.ApplicationOverviewFromJSONTyped = ApplicationOverviewFromJSONTyped;
|
|
19
|
+
exports.ApplicationOverviewToJSON = ApplicationOverviewToJSON;
|
|
20
|
+
exports.ApplicationOverviewToJSONTyped = ApplicationOverviewToJSONTyped;
|
|
21
|
+
const ApplicationVM_js_1 = require("./ApplicationVM.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApplicationOverview interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApplicationOverview(value) {
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('vmCount' in value) || value['vmCount'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('vms' in value) || value['vms'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function ApplicationOverviewFromJSON(json) {
|
|
37
|
+
return ApplicationOverviewFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function ApplicationOverviewFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'name': json['name'],
|
|
45
|
+
'description': json['description'],
|
|
46
|
+
'vmCount': json['vmCount'],
|
|
47
|
+
'vms': (json['vms'].map(ApplicationVM_js_1.ApplicationVMFromJSON)),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function ApplicationOverviewToJSON(json) {
|
|
51
|
+
return ApplicationOverviewToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function ApplicationOverviewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'name': value['name'],
|
|
59
|
+
'description': value['description'],
|
|
60
|
+
'vmCount': value['vmCount'],
|
|
61
|
+
'vms': (value['vms'].map(ApplicationVM_js_1.ApplicationVMToJSON)),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApplicationVM
|
|
16
|
+
*/
|
|
17
|
+
export interface ApplicationVM {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApplicationVM
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApplicationVM
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ApplicationVM interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfApplicationVM(value: object): value is ApplicationVM;
|
|
35
|
+
export declare function ApplicationVMFromJSON(json: any): ApplicationVM;
|
|
36
|
+
export declare function ApplicationVMFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationVM;
|
|
37
|
+
export declare function ApplicationVMToJSON(json: any): ApplicationVM;
|
|
38
|
+
export declare function ApplicationVMToJSONTyped(value?: ApplicationVM | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfApplicationVM = instanceOfApplicationVM;
|
|
17
|
+
exports.ApplicationVMFromJSON = ApplicationVMFromJSON;
|
|
18
|
+
exports.ApplicationVMFromJSONTyped = ApplicationVMFromJSONTyped;
|
|
19
|
+
exports.ApplicationVMToJSON = ApplicationVMToJSON;
|
|
20
|
+
exports.ApplicationVMToJSONTyped = ApplicationVMToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApplicationVM interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApplicationVM(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ApplicationVMFromJSON(json) {
|
|
32
|
+
return ApplicationVMFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ApplicationVMFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'],
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ApplicationVMToJSON(json) {
|
|
44
|
+
return ApplicationVMToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ApplicationVMToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': value['id'],
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ClusterUtilization
|
|
16
|
+
*/
|
|
17
|
+
export interface ClusterUtilization {
|
|
18
|
+
/**
|
|
19
|
+
* Average CPU utilization percentage (0-100)
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ClusterUtilization
|
|
22
|
+
*/
|
|
23
|
+
cpu_avg: number;
|
|
24
|
+
/**
|
|
25
|
+
* 95th percentile CPU utilization percentage (0-100)
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ClusterUtilization
|
|
28
|
+
*/
|
|
29
|
+
cpu_p95: number;
|
|
30
|
+
/**
|
|
31
|
+
* Maximum CPU utilization percentage (0-100)
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ClusterUtilization
|
|
34
|
+
*/
|
|
35
|
+
cpu_max: number;
|
|
36
|
+
/**
|
|
37
|
+
* Average memory utilization percentage (0-100)
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ClusterUtilization
|
|
40
|
+
*/
|
|
41
|
+
mem_avg: number;
|
|
42
|
+
/**
|
|
43
|
+
* 95th percentile memory utilization percentage (0-100)
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ClusterUtilization
|
|
46
|
+
*/
|
|
47
|
+
mem_p95: number;
|
|
48
|
+
/**
|
|
49
|
+
* Maximum memory utilization percentage (0-100)
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ClusterUtilization
|
|
52
|
+
*/
|
|
53
|
+
mem_max: number;
|
|
54
|
+
/**
|
|
55
|
+
* Data coverage confidence percentage (0-100), calculated as vCPU-weighted coverage
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof ClusterUtilization
|
|
58
|
+
*/
|
|
59
|
+
confidence: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the ClusterUtilization interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfClusterUtilization(value: object): value is ClusterUtilization;
|
|
65
|
+
export declare function ClusterUtilizationFromJSON(json: any): ClusterUtilization;
|
|
66
|
+
export declare function ClusterUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterUtilization;
|
|
67
|
+
export declare function ClusterUtilizationToJSON(json: any): ClusterUtilization;
|
|
68
|
+
export declare function ClusterUtilizationToJSONTyped(value?: ClusterUtilization | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfClusterUtilization = instanceOfClusterUtilization;
|
|
17
|
+
exports.ClusterUtilizationFromJSON = ClusterUtilizationFromJSON;
|
|
18
|
+
exports.ClusterUtilizationFromJSONTyped = ClusterUtilizationFromJSONTyped;
|
|
19
|
+
exports.ClusterUtilizationToJSON = ClusterUtilizationToJSON;
|
|
20
|
+
exports.ClusterUtilizationToJSONTyped = ClusterUtilizationToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ClusterUtilization interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfClusterUtilization(value) {
|
|
25
|
+
if (!('cpu_avg' in value) || value['cpu_avg'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('cpu_p95' in value) || value['cpu_p95'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('cpu_max' in value) || value['cpu_max'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('mem_avg' in value) || value['mem_avg'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('mem_p95' in value) || value['mem_p95'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('mem_max' in value) || value['mem_max'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('confidence' in value) || value['confidence'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function ClusterUtilizationFromJSON(json) {
|
|
42
|
+
return ClusterUtilizationFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ClusterUtilizationFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'cpu_avg': json['cpu_avg'],
|
|
50
|
+
'cpu_p95': json['cpu_p95'],
|
|
51
|
+
'cpu_max': json['cpu_max'],
|
|
52
|
+
'mem_avg': json['mem_avg'],
|
|
53
|
+
'mem_p95': json['mem_p95'],
|
|
54
|
+
'mem_max': json['mem_max'],
|
|
55
|
+
'confidence': json['confidence'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function ClusterUtilizationToJSON(json) {
|
|
59
|
+
return ClusterUtilizationToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function ClusterUtilizationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'cpu_avg': value['cpu_avg'],
|
|
67
|
+
'cpu_p95': value['cpu_p95'],
|
|
68
|
+
'cpu_max': value['cpu_max'],
|
|
69
|
+
'mem_avg': value['mem_avg'],
|
|
70
|
+
'mem_p95': value['mem_p95'],
|
|
71
|
+
'mem_max': value['mem_max'],
|
|
72
|
+
'confidence': value['confidence'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -33,6 +33,18 @@ export interface CollectorStartRequest {
|
|
|
33
33
|
* @memberof CollectorStartRequest
|
|
34
34
|
*/
|
|
35
35
|
password: string;
|
|
36
|
+
/**
|
|
37
|
+
* PEM-encoded CA certificate bundle for verifying the vCenter TLS certificate. Mutually exclusive with skipTls.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CollectorStartRequest
|
|
40
|
+
*/
|
|
41
|
+
cacert?: string;
|
|
42
|
+
/**
|
|
43
|
+
* 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.
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof CollectorStartRequest
|
|
46
|
+
*/
|
|
47
|
+
skipTls?: boolean;
|
|
36
48
|
}
|
|
37
49
|
/**
|
|
38
50
|
* Check if a given object implements the CollectorStartRequest interface.
|
|
@@ -41,6 +41,8 @@ function CollectorStartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
'url': json['url'],
|
|
42
42
|
'username': json['username'],
|
|
43
43
|
'password': json['password'],
|
|
44
|
+
'cacert': json['cacert'] == null ? undefined : json['cacert'],
|
|
45
|
+
'skipTls': json['skipTls'] == null ? undefined : json['skipTls'],
|
|
44
46
|
};
|
|
45
47
|
}
|
|
46
48
|
function CollectorStartRequestToJSON(json) {
|
|
@@ -54,5 +56,7 @@ function CollectorStartRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
54
56
|
'url': value['url'],
|
|
55
57
|
'username': value['username'],
|
|
56
58
|
'password': value['password'],
|
|
59
|
+
'cacert': value['cacert'],
|
|
60
|
+
'skipTls': value['skipTls'],
|
|
57
61
|
};
|
|
58
62
|
}
|
|
@@ -33,12 +33,6 @@ export interface CreateGroupRequest {
|
|
|
33
33
|
* @memberof CreateGroupRequest
|
|
34
34
|
*/
|
|
35
35
|
filter: string;
|
|
36
|
-
/**
|
|
37
|
-
* Tags to apply to matching VMs (only alphanumeric, underscore, and dot allowed)
|
|
38
|
-
* @type {Array<string>}
|
|
39
|
-
* @memberof CreateGroupRequest
|
|
40
|
-
*/
|
|
41
|
-
tags?: Array<string>;
|
|
42
36
|
}
|
|
43
37
|
/**
|
|
44
38
|
* Check if a given object implements the CreateGroupRequest interface.
|
|
@@ -39,7 +39,6 @@ function CreateGroupRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
'name': json['name'],
|
|
40
40
|
'description': json['description'] == null ? undefined : json['description'],
|
|
41
41
|
'filter': json['filter'],
|
|
42
|
-
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
43
42
|
};
|
|
44
43
|
}
|
|
45
44
|
function CreateGroupRequestToJSON(json) {
|
|
@@ -53,6 +52,5 @@ function CreateGroupRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
53
52
|
'name': value['name'],
|
|
54
53
|
'description': value['description'],
|
|
55
54
|
'filter': value['filter'],
|
|
56
|
-
'tags': value['tags'],
|
|
57
55
|
};
|
|
58
56
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CredentialStatus
|
|
16
|
+
*/
|
|
17
|
+
export interface CredentialStatus {
|
|
18
|
+
/**
|
|
19
|
+
* vCenter URL the credentials belong to
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CredentialStatus
|
|
22
|
+
*/
|
|
23
|
+
url: string;
|
|
24
|
+
/**
|
|
25
|
+
* Whether credentials are stored for the returned URL.
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof CredentialStatus
|
|
28
|
+
*/
|
|
29
|
+
valid: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CredentialStatus interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCredentialStatus(value: object): value is CredentialStatus;
|
|
35
|
+
export declare function CredentialStatusFromJSON(json: any): CredentialStatus;
|
|
36
|
+
export declare function CredentialStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): CredentialStatus;
|
|
37
|
+
export declare function CredentialStatusToJSON(json: any): CredentialStatus;
|
|
38
|
+
export declare function CredentialStatusToJSONTyped(value?: CredentialStatus | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCredentialStatus = instanceOfCredentialStatus;
|
|
17
|
+
exports.CredentialStatusFromJSON = CredentialStatusFromJSON;
|
|
18
|
+
exports.CredentialStatusFromJSONTyped = CredentialStatusFromJSONTyped;
|
|
19
|
+
exports.CredentialStatusToJSON = CredentialStatusToJSON;
|
|
20
|
+
exports.CredentialStatusToJSONTyped = CredentialStatusToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CredentialStatus interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCredentialStatus(value) {
|
|
25
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('valid' in value) || value['valid'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function CredentialStatusFromJSON(json) {
|
|
32
|
+
return CredentialStatusFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function CredentialStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'url': json['url'],
|
|
40
|
+
'valid': json['valid'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function CredentialStatusToJSON(json) {
|
|
44
|
+
return CredentialStatusToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function CredentialStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'url': value['url'],
|
|
52
|
+
'valid': value['valid'],
|
|
53
|
+
};
|
|
54
|
+
}
|
package/dist/models/Group.d.ts
CHANGED
|
@@ -39,12 +39,6 @@ export interface Group {
|
|
|
39
39
|
* @memberof Group
|
|
40
40
|
*/
|
|
41
41
|
filter: string;
|
|
42
|
-
/**
|
|
43
|
-
* Tags associated with this group (applied to matching VMs)
|
|
44
|
-
* @type {Array<string>}
|
|
45
|
-
* @memberof Group
|
|
46
|
-
*/
|
|
47
|
-
tags?: Array<string>;
|
|
48
42
|
/**
|
|
49
43
|
* Timestamp when the group was created
|
|
50
44
|
* @type {Date}
|
package/dist/models/Group.js
CHANGED
|
@@ -42,7 +42,6 @@ function GroupFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'name': json['name'],
|
|
43
43
|
'description': json['description'] == null ? undefined : json['description'],
|
|
44
44
|
'filter': json['filter'],
|
|
45
|
-
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
46
45
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
47
46
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
48
47
|
};
|
|
@@ -59,7 +58,6 @@ function GroupToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
59
58
|
'name': value['name'],
|
|
60
59
|
'description': value['description'],
|
|
61
60
|
'filter': value['filter'],
|
|
62
|
-
'tags': value['tags'],
|
|
63
61
|
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
64
62
|
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
65
63
|
};
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Group } from './Group.js';
|
|
13
|
+
import type { Inventory } from './Inventory.js';
|
|
13
14
|
import type { VirtualMachine } from './VirtualMachine.js';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -23,6 +24,12 @@ export interface GroupResponse {
|
|
|
23
24
|
* @memberof GroupResponse
|
|
24
25
|
*/
|
|
25
26
|
group: Group;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {Inventory}
|
|
30
|
+
* @memberof GroupResponse
|
|
31
|
+
*/
|
|
32
|
+
inventory?: Inventory;
|
|
26
33
|
/**
|
|
27
34
|
*
|
|
28
35
|
* @type {Array<VirtualMachine>}
|
|
@@ -19,6 +19,7 @@ exports.GroupResponseFromJSONTyped = GroupResponseFromJSONTyped;
|
|
|
19
19
|
exports.GroupResponseToJSON = GroupResponseToJSON;
|
|
20
20
|
exports.GroupResponseToJSONTyped = GroupResponseToJSONTyped;
|
|
21
21
|
const Group_js_1 = require("./Group.js");
|
|
22
|
+
const Inventory_js_1 = require("./Inventory.js");
|
|
22
23
|
const VirtualMachine_js_1 = require("./VirtualMachine.js");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the GroupResponse interface.
|
|
@@ -45,6 +46,7 @@ function GroupResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
46
|
}
|
|
46
47
|
return {
|
|
47
48
|
'group': (0, Group_js_1.GroupFromJSON)(json['group']),
|
|
49
|
+
'inventory': json['inventory'] == null ? undefined : (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
|
|
48
50
|
'vms': (json['vms'].map(VirtualMachine_js_1.VirtualMachineFromJSON)),
|
|
49
51
|
'total': json['total'],
|
|
50
52
|
'page': json['page'],
|
|
@@ -60,6 +62,7 @@ function GroupResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
60
62
|
}
|
|
61
63
|
return {
|
|
62
64
|
'group': (0, Group_js_1.GroupToJSON)(value['group']),
|
|
65
|
+
'inventory': (0, Inventory_js_1.InventoryToJSON)(value['inventory']),
|
|
63
66
|
'vms': (value['vms'].map(VirtualMachine_js_1.VirtualMachineToJSON)),
|
|
64
67
|
'total': value['total'],
|
|
65
68
|
'page': value['page'],
|