@openshift-migration-advisor/agent-sdk 0.12.0-f90a4cad59fa → 0.16.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.
- package/.openapi-generator/FILES +14 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +16 -3
- package/dist/apis/DefaultApi.d.ts +209 -4
- package/dist/apis/DefaultApi.js +229 -0
- package/dist/esm/apis/DefaultApi.d.ts +209 -4
- package/dist/esm/apis/DefaultApi.js +229 -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/CapabilityStatus.d.ts +33 -0
- package/dist/esm/models/CapabilityStatus.js +44 -0
- package/dist/esm/models/CapabilityStatusCapabilities.d.ts +45 -0
- package/dist/esm/models/CapabilityStatusCapabilities.js +52 -0
- package/dist/esm/models/CollectorStartRequest.d.ts +12 -0
- package/dist/esm/models/CollectorStartRequest.js +4 -0
- package/dist/esm/models/CredentialStatus.d.ts +44 -0
- package/dist/esm/models/CredentialStatus.js +51 -0
- package/dist/esm/models/OperationCapability.d.ts +38 -0
- package/dist/esm/models/OperationCapability.js +45 -0
- package/dist/esm/models/StartInspectionRequest.d.ts +1 -1
- package/dist/esm/models/StartInspectionRequest.js +1 -3
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +6 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +4 -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/VmInspectionStatus.d.ts +6 -0
- package/dist/esm/models/VmInspectionStatus.js +4 -0
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -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/CapabilityStatus.d.ts +33 -0
- package/dist/models/CapabilityStatus.js +51 -0
- package/dist/models/CapabilityStatusCapabilities.d.ts +45 -0
- package/dist/models/CapabilityStatusCapabilities.js +59 -0
- package/dist/models/CollectorStartRequest.d.ts +12 -0
- package/dist/models/CollectorStartRequest.js +4 -0
- package/dist/models/CredentialStatus.d.ts +44 -0
- package/dist/models/CredentialStatus.js +58 -0
- package/dist/models/OperationCapability.d.ts +38 -0
- package/dist/models/OperationCapability.js +52 -0
- package/dist/models/StartInspectionRequest.d.ts +1 -1
- package/dist/models/StartInspectionRequest.js +1 -3
- package/dist/models/VMFilterOptionsResponse.d.ts +6 -0
- package/dist/models/VMFilterOptionsResponse.js +4 -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/VmInspectionStatus.d.ts +6 -0
- package/dist/models/VmInspectionStatus.js +4 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -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/CapabilityStatus.md +34 -0
- package/docs/CapabilityStatusCapabilities.md +38 -0
- package/docs/CollectorStartRequest.md +4 -0
- package/docs/CredentialStatus.md +38 -0
- package/docs/DefaultApi.md +391 -7
- package/docs/OperationCapability.md +36 -0
- package/docs/VMFilterOptionsResponse.md +2 -0
- package/docs/VMNIC.md +4 -0
- package/docs/VcenterCredentials.md +4 -0
- package/docs/VmInspectionStatus.md +2 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +408 -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/CapabilityStatus.ts +74 -0
- package/src/models/CapabilityStatusCapabilities.ts +92 -0
- package/src/models/CollectorStartRequest.ts +16 -0
- package/src/models/CredentialStatus.ts +84 -0
- package/src/models/OperationCapability.ts +74 -0
- package/src/models/StartInspectionRequest.ts +2 -3
- package/src/models/VMFilterOptionsResponse.ts +9 -0
- package/src/models/VMNIC.ts +16 -0
- package/src/models/VcenterCredentials.ts +16 -0
- package/src/models/VmInspectionStatus.ts +9 -0
- package/src/models/index.ts +7 -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,74 @@
|
|
|
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 { CapabilityStatusCapabilities } from './CapabilityStatusCapabilities.js';
|
|
17
|
+
import {
|
|
18
|
+
CapabilityStatusCapabilitiesFromJSON,
|
|
19
|
+
CapabilityStatusCapabilitiesFromJSONTyped,
|
|
20
|
+
CapabilityStatusCapabilitiesToJSON,
|
|
21
|
+
CapabilityStatusCapabilitiesToJSONTyped,
|
|
22
|
+
} from './CapabilityStatusCapabilities.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CapabilityStatus
|
|
28
|
+
*/
|
|
29
|
+
export interface CapabilityStatus {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {CapabilityStatusCapabilities}
|
|
33
|
+
* @memberof CapabilityStatus
|
|
34
|
+
*/
|
|
35
|
+
capabilities: CapabilityStatusCapabilities;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the CapabilityStatus interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfCapabilityStatus(value: object): value is CapabilityStatus {
|
|
42
|
+
if (!('capabilities' in value) || value['capabilities'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function CapabilityStatusFromJSON(json: any): CapabilityStatus {
|
|
47
|
+
return CapabilityStatusFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function CapabilityStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): CapabilityStatus {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'capabilities': CapabilityStatusCapabilitiesFromJSON(json['capabilities']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function CapabilityStatusToJSON(json: any): CapabilityStatus {
|
|
61
|
+
return CapabilityStatusToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function CapabilityStatusToJSONTyped(value?: CapabilityStatus | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'capabilities': CapabilityStatusCapabilitiesToJSON(value['capabilities']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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 { OperationCapability } from './OperationCapability.js';
|
|
17
|
+
import {
|
|
18
|
+
OperationCapabilityFromJSON,
|
|
19
|
+
OperationCapabilityFromJSONTyped,
|
|
20
|
+
OperationCapabilityToJSON,
|
|
21
|
+
OperationCapabilityToJSONTyped,
|
|
22
|
+
} from './OperationCapability.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CapabilityStatusCapabilities
|
|
28
|
+
*/
|
|
29
|
+
export interface CapabilityStatusCapabilities {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {OperationCapability}
|
|
33
|
+
* @memberof CapabilityStatusCapabilities
|
|
34
|
+
*/
|
|
35
|
+
collector: OperationCapability;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {OperationCapability}
|
|
39
|
+
* @memberof CapabilityStatusCapabilities
|
|
40
|
+
*/
|
|
41
|
+
inspector: OperationCapability;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {OperationCapability}
|
|
45
|
+
* @memberof CapabilityStatusCapabilities
|
|
46
|
+
*/
|
|
47
|
+
forecaster: OperationCapability;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the CapabilityStatusCapabilities interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfCapabilityStatusCapabilities(value: object): value is CapabilityStatusCapabilities {
|
|
54
|
+
if (!('collector' in value) || value['collector'] === undefined) return false;
|
|
55
|
+
if (!('inspector' in value) || value['inspector'] === undefined) return false;
|
|
56
|
+
if (!('forecaster' in value) || value['forecaster'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function CapabilityStatusCapabilitiesFromJSON(json: any): CapabilityStatusCapabilities {
|
|
61
|
+
return CapabilityStatusCapabilitiesFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function CapabilityStatusCapabilitiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CapabilityStatusCapabilities {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'collector': OperationCapabilityFromJSON(json['collector']),
|
|
71
|
+
'inspector': OperationCapabilityFromJSON(json['inspector']),
|
|
72
|
+
'forecaster': OperationCapabilityFromJSON(json['forecaster']),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function CapabilityStatusCapabilitiesToJSON(json: any): CapabilityStatusCapabilities {
|
|
77
|
+
return CapabilityStatusCapabilitiesToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function CapabilityStatusCapabilitiesToJSONTyped(value?: CapabilityStatusCapabilities | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'collector': OperationCapabilityToJSON(value['collector']),
|
|
88
|
+
'inspector': OperationCapabilityToJSON(value['inspector']),
|
|
89
|
+
'forecaster': OperationCapabilityToJSON(value['forecaster']),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -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
|
|
|
@@ -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
|
+
*
|
|
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
|
+
* vCenter username
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CredentialStatus
|
|
32
|
+
*/
|
|
33
|
+
username: string;
|
|
34
|
+
/**
|
|
35
|
+
* Whether credentials are stored for the returned URL.
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof CredentialStatus
|
|
38
|
+
*/
|
|
39
|
+
valid: boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the CredentialStatus interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfCredentialStatus(value: object): value is CredentialStatus {
|
|
46
|
+
if (!('url' in value) || value['url'] === undefined) return false;
|
|
47
|
+
if (!('username' in value) || value['username'] === undefined) return false;
|
|
48
|
+
if (!('valid' in value) || value['valid'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function CredentialStatusFromJSON(json: any): CredentialStatus {
|
|
53
|
+
return CredentialStatusFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function CredentialStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): CredentialStatus {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'url': json['url'],
|
|
63
|
+
'username': json['username'],
|
|
64
|
+
'valid': json['valid'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function CredentialStatusToJSON(json: any): CredentialStatus {
|
|
69
|
+
return CredentialStatusToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function CredentialStatusToJSONTyped(value?: CredentialStatus | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'url': value['url'],
|
|
80
|
+
'username': value['username'],
|
|
81
|
+
'valid': value['valid'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
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 OperationCapability
|
|
20
|
+
*/
|
|
21
|
+
export interface OperationCapability {
|
|
22
|
+
/**
|
|
23
|
+
* Whether stored credentials have sufficient privileges
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof OperationCapability
|
|
26
|
+
*/
|
|
27
|
+
enabled: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Specific vSphere privileges that are missing
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof OperationCapability
|
|
32
|
+
*/
|
|
33
|
+
missingPrivileges?: Array<string>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the OperationCapability interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfOperationCapability(value: object): value is OperationCapability {
|
|
40
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function OperationCapabilityFromJSON(json: any): OperationCapability {
|
|
45
|
+
return OperationCapabilityFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function OperationCapabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationCapability {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'enabled': json['enabled'],
|
|
55
|
+
'missingPrivileges': json['missingPrivileges'] == null ? undefined : json['missingPrivileges'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function OperationCapabilityToJSON(json: any): OperationCapability {
|
|
60
|
+
return OperationCapabilityToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function OperationCapabilityToJSONTyped(value?: OperationCapability | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'enabled': value['enabled'],
|
|
71
|
+
'missingPrivileges': value['missingPrivileges'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -38,7 +38,7 @@ export interface StartInspectionRequest {
|
|
|
38
38
|
* @type {VcenterCredentials}
|
|
39
39
|
* @memberof StartInspectionRequest
|
|
40
40
|
*/
|
|
41
|
-
credentials
|
|
41
|
+
credentials?: VcenterCredentials;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/**
|
|
@@ -46,7 +46,6 @@ export interface StartInspectionRequest {
|
|
|
46
46
|
*/
|
|
47
47
|
export function instanceOfStartInspectionRequest(value: object): value is StartInspectionRequest {
|
|
48
48
|
if (!('vmIds' in value) || value['vmIds'] === undefined) return false;
|
|
49
|
-
if (!('credentials' in value) || value['credentials'] === undefined) return false;
|
|
50
49
|
return true;
|
|
51
50
|
}
|
|
52
51
|
|
|
@@ -61,7 +60,7 @@ export function StartInspectionRequestFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
61
60
|
return {
|
|
62
61
|
|
|
63
62
|
'vmIds': json['vmIds'],
|
|
64
|
-
'credentials': VcenterCredentialsFromJSON(json['credentials']),
|
|
63
|
+
'credentials': json['credentials'] == null ? undefined : VcenterCredentialsFromJSON(json['credentials']),
|
|
65
64
|
};
|
|
66
65
|
}
|
|
67
66
|
|
|
@@ -43,6 +43,12 @@ export interface VMFilterOptionsResponse {
|
|
|
43
43
|
* @memberof VMFilterOptionsResponse
|
|
44
44
|
*/
|
|
45
45
|
concernCategories: Array<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Distinct detected application names
|
|
48
|
+
* @type {Array<string>}
|
|
49
|
+
* @memberof VMFilterOptionsResponse
|
|
50
|
+
*/
|
|
51
|
+
applications: Array<string>;
|
|
46
52
|
}
|
|
47
53
|
|
|
48
54
|
/**
|
|
@@ -53,6 +59,7 @@ export function instanceOfVMFilterOptionsResponse(value: object): value is VMFil
|
|
|
53
59
|
if (!('datacenters' in value) || value['datacenters'] === undefined) return false;
|
|
54
60
|
if (!('concernLabels' in value) || value['concernLabels'] === undefined) return false;
|
|
55
61
|
if (!('concernCategories' in value) || value['concernCategories'] === undefined) return false;
|
|
62
|
+
if (!('applications' in value) || value['applications'] === undefined) return false;
|
|
56
63
|
return true;
|
|
57
64
|
}
|
|
58
65
|
|
|
@@ -70,6 +77,7 @@ export function VMFilterOptionsResponseFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
70
77
|
'datacenters': json['datacenters'],
|
|
71
78
|
'concernLabels': json['concernLabels'],
|
|
72
79
|
'concernCategories': json['concernCategories'],
|
|
80
|
+
'applications': json['applications'],
|
|
73
81
|
};
|
|
74
82
|
}
|
|
75
83
|
|
|
@@ -88,6 +96,7 @@ export function VMFilterOptionsResponseToJSONTyped(value?: VMFilterOptionsRespon
|
|
|
88
96
|
'datacenters': value['datacenters'],
|
|
89
97
|
'concernLabels': value['concernLabels'],
|
|
90
98
|
'concernCategories': value['concernCategories'],
|
|
99
|
+
'applications': value['applications'],
|
|
91
100
|
};
|
|
92
101
|
}
|
|
93
102
|
|
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
|
|