@openshift-migration-advisor/agent-sdk 0.8.0 → 0.12.0-d4bdc4301890
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 +20 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +29 -17
- package/dist/apis/DefaultApi.d.ts +260 -130
- package/dist/apis/DefaultApi.js +313 -172
- package/dist/esm/apis/DefaultApi.d.ts +260 -130
- package/dist/esm/apis/DefaultApi.js +295 -154
- package/dist/esm/models/InspectorStatus.d.ts +20 -7
- package/dist/esm/models/InspectorStatus.js +12 -7
- package/dist/esm/models/RightsizingCollectRequest.d.ts +70 -0
- package/dist/esm/models/RightsizingCollectRequest.js +56 -0
- package/dist/esm/models/RightsizingMetricStats.d.ts +62 -0
- package/dist/esm/models/RightsizingMetricStats.js +63 -0
- package/dist/esm/models/RightsizingReport.d.ts +81 -0
- package/dist/esm/models/RightsizingReport.js +76 -0
- package/dist/esm/models/RightsizingReportListResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingReportListResponse.js +48 -0
- package/dist/esm/models/RightsizingReportSummary.d.ts +74 -0
- package/dist/esm/models/RightsizingReportSummary.js +71 -0
- package/dist/esm/models/RightsizingVMReport.d.ts +53 -0
- package/dist/esm/models/RightsizingVMReport.js +57 -0
- package/dist/esm/models/StartInspectionRequest.d.ts +32 -0
- package/dist/esm/models/StartInspectionRequest.js +43 -0
- package/dist/esm/models/VMs.d.ts +18 -0
- package/dist/esm/models/VMs.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +31 -1
- package/dist/esm/models/VirtualMachine.js +12 -4
- package/dist/esm/models/VirtualMachineDetail.d.ts +3 -3
- package/dist/esm/models/VirtualMachineDetail.js +3 -3
- package/dist/esm/models/VmInspectionConcern.d.ts +44 -0
- package/dist/esm/models/VmInspectionConcern.js +51 -0
- package/dist/esm/models/VmInspectionResults.d.ts +33 -0
- package/dist/esm/models/VmInspectionResults.js +42 -0
- package/dist/esm/models/VmInspectionStatus.d.ts +0 -1
- package/dist/esm/models/VmInspectionStatus.js +1 -2
- package/dist/esm/models/VmUtilizationDetails.d.ts +98 -0
- package/dist/esm/models/VmUtilizationDetails.js +87 -0
- package/dist/esm/models/index.d.ts +10 -1
- package/dist/esm/models/index.js +10 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/InspectorStatus.d.ts +20 -7
- package/dist/models/InspectorStatus.js +12 -7
- package/dist/models/RightsizingCollectRequest.d.ts +70 -0
- package/dist/models/RightsizingCollectRequest.js +63 -0
- package/dist/models/RightsizingMetricStats.d.ts +62 -0
- package/dist/models/RightsizingMetricStats.js +70 -0
- package/dist/models/RightsizingReport.d.ts +81 -0
- package/dist/models/RightsizingReport.js +83 -0
- package/dist/models/RightsizingReportListResponse.d.ts +39 -0
- package/dist/models/RightsizingReportListResponse.js +55 -0
- package/dist/models/RightsizingReportSummary.d.ts +74 -0
- package/dist/models/RightsizingReportSummary.js +78 -0
- package/dist/models/RightsizingVMReport.d.ts +53 -0
- package/dist/models/RightsizingVMReport.js +64 -0
- package/dist/models/StartInspectionRequest.d.ts +32 -0
- package/dist/models/StartInspectionRequest.js +50 -0
- package/dist/models/VMs.d.ts +18 -0
- package/dist/models/VMs.js +4 -0
- package/dist/models/VirtualMachine.d.ts +31 -1
- package/dist/models/VirtualMachine.js +12 -4
- package/dist/models/VirtualMachineDetail.d.ts +3 -3
- package/dist/models/VirtualMachineDetail.js +3 -3
- package/dist/models/VmInspectionConcern.d.ts +44 -0
- package/dist/models/VmInspectionConcern.js +58 -0
- package/dist/models/VmInspectionResults.d.ts +33 -0
- package/dist/models/VmInspectionResults.js +49 -0
- package/dist/models/VmInspectionStatus.d.ts +0 -1
- package/dist/models/VmInspectionStatus.js +1 -2
- package/dist/models/VmUtilizationDetails.d.ts +98 -0
- package/dist/models/VmUtilizationDetails.js +94 -0
- package/dist/models/index.d.ts +10 -1
- package/dist/models/index.js +10 -1
- package/dist/runtime.js +1 -1
- package/docs/DefaultApi.md +368 -163
- package/docs/InspectorStatus.md +4 -0
- package/docs/RightsizingCollectRequest.md +46 -0
- package/docs/RightsizingMetricStats.md +44 -0
- package/docs/RightsizingReport.md +50 -0
- package/docs/RightsizingReportListResponse.md +36 -0
- package/docs/RightsizingReportSummary.md +49 -0
- package/docs/RightsizingVMReport.md +40 -0
- package/docs/{InspectorStartRequest.md → StartInspectionRequest.md} +5 -6
- package/docs/VMs.md +4 -0
- package/docs/VirtualMachine.md +12 -2
- package/docs/VirtualMachineDetail.md +1 -1
- package/docs/VmInspectionConcern.md +39 -0
- package/docs/VmInspectionResults.md +35 -0
- package/docs/VmUtilizationDetails.md +56 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +564 -285
- package/src/models/InspectorStatus.ts +37 -7
- package/src/models/RightsizingCollectRequest.ts +123 -0
- package/src/models/RightsizingMetricStats.ts +111 -0
- package/src/models/RightsizingReport.ts +146 -0
- package/src/models/RightsizingReportListResponse.ts +83 -0
- package/src/models/RightsizingReportSummary.ts +129 -0
- package/src/models/RightsizingVMReport.ts +101 -0
- package/src/models/StartInspectionRequest.ts +66 -0
- package/src/models/VMs.ts +18 -0
- package/src/models/VirtualMachine.ts +43 -4
- package/src/models/VirtualMachineDetail.ts +11 -11
- package/src/models/VmInspectionConcern.ts +84 -0
- package/src/models/VmInspectionResults.ts +73 -0
- package/src/models/VmInspectionStatus.ts +1 -2
- package/src/models/VmUtilizationDetails.ts +165 -0
- package/src/models/index.ts +10 -1
- package/src/runtime.ts +1 -2
- package/dist/esm/models/InspectorStartRequest.d.ts +0 -39
- package/dist/esm/models/InspectorStartRequest.js +0 -48
- package/dist/models/InspectorStartRequest.d.ts +0 -39
- package/dist/models/InspectorStartRequest.js +0 -55
- package/src/models/InspectorStartRequest.ts +0 -83
|
@@ -0,0 +1,165 @@
|
|
|
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 VmUtilizationDetails
|
|
20
|
+
*/
|
|
21
|
+
export interface VmUtilizationDetails {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof VmUtilizationDetails
|
|
26
|
+
*/
|
|
27
|
+
moid: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof VmUtilizationDetails
|
|
32
|
+
*/
|
|
33
|
+
vmName: string;
|
|
34
|
+
/**
|
|
35
|
+
* CPU utilization average (%)
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof VmUtilizationDetails
|
|
38
|
+
*/
|
|
39
|
+
cpuAvg: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof VmUtilizationDetails
|
|
44
|
+
*/
|
|
45
|
+
cpuP95: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof VmUtilizationDetails
|
|
50
|
+
*/
|
|
51
|
+
cpuMax: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof VmUtilizationDetails
|
|
56
|
+
*/
|
|
57
|
+
cpuLatest: number;
|
|
58
|
+
/**
|
|
59
|
+
* Memory utilization average (%)
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof VmUtilizationDetails
|
|
62
|
+
*/
|
|
63
|
+
memAvg: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof VmUtilizationDetails
|
|
68
|
+
*/
|
|
69
|
+
memP95: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof VmUtilizationDetails
|
|
74
|
+
*/
|
|
75
|
+
memMax: number;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof VmUtilizationDetails
|
|
80
|
+
*/
|
|
81
|
+
memLatest: number;
|
|
82
|
+
/**
|
|
83
|
+
* Disk utilization (%)
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof VmUtilizationDetails
|
|
86
|
+
*/
|
|
87
|
+
disk: number;
|
|
88
|
+
/**
|
|
89
|
+
* Data confidence — sample_count / expected_sample_count × 100
|
|
90
|
+
* @type {number}
|
|
91
|
+
* @memberof VmUtilizationDetails
|
|
92
|
+
*/
|
|
93
|
+
confidence: number;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Check if a given object implements the VmUtilizationDetails interface.
|
|
98
|
+
*/
|
|
99
|
+
export function instanceOfVmUtilizationDetails(value: object): value is VmUtilizationDetails {
|
|
100
|
+
if (!('moid' in value) || value['moid'] === undefined) return false;
|
|
101
|
+
if (!('vmName' in value) || value['vmName'] === undefined) return false;
|
|
102
|
+
if (!('cpuAvg' in value) || value['cpuAvg'] === undefined) return false;
|
|
103
|
+
if (!('cpuP95' in value) || value['cpuP95'] === undefined) return false;
|
|
104
|
+
if (!('cpuMax' in value) || value['cpuMax'] === undefined) return false;
|
|
105
|
+
if (!('cpuLatest' in value) || value['cpuLatest'] === undefined) return false;
|
|
106
|
+
if (!('memAvg' in value) || value['memAvg'] === undefined) return false;
|
|
107
|
+
if (!('memP95' in value) || value['memP95'] === undefined) return false;
|
|
108
|
+
if (!('memMax' in value) || value['memMax'] === undefined) return false;
|
|
109
|
+
if (!('memLatest' in value) || value['memLatest'] === undefined) return false;
|
|
110
|
+
if (!('disk' in value) || value['disk'] === undefined) return false;
|
|
111
|
+
if (!('confidence' in value) || value['confidence'] === undefined) return false;
|
|
112
|
+
return true;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function VmUtilizationDetailsFromJSON(json: any): VmUtilizationDetails {
|
|
116
|
+
return VmUtilizationDetailsFromJSONTyped(json, false);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function VmUtilizationDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmUtilizationDetails {
|
|
120
|
+
if (json == null) {
|
|
121
|
+
return json;
|
|
122
|
+
}
|
|
123
|
+
return {
|
|
124
|
+
|
|
125
|
+
'moid': json['moid'],
|
|
126
|
+
'vmName': json['vm_name'],
|
|
127
|
+
'cpuAvg': json['cpu_avg'],
|
|
128
|
+
'cpuP95': json['cpu_p95'],
|
|
129
|
+
'cpuMax': json['cpu_max'],
|
|
130
|
+
'cpuLatest': json['cpu_latest'],
|
|
131
|
+
'memAvg': json['mem_avg'],
|
|
132
|
+
'memP95': json['mem_p95'],
|
|
133
|
+
'memMax': json['mem_max'],
|
|
134
|
+
'memLatest': json['mem_latest'],
|
|
135
|
+
'disk': json['disk'],
|
|
136
|
+
'confidence': json['confidence'],
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function VmUtilizationDetailsToJSON(json: any): VmUtilizationDetails {
|
|
141
|
+
return VmUtilizationDetailsToJSONTyped(json, false);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function VmUtilizationDetailsToJSONTyped(value?: VmUtilizationDetails | null, ignoreDiscriminator: boolean = false): any {
|
|
145
|
+
if (value == null) {
|
|
146
|
+
return value;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
return {
|
|
150
|
+
|
|
151
|
+
'moid': value['moid'],
|
|
152
|
+
'vm_name': value['vmName'],
|
|
153
|
+
'cpu_avg': value['cpuAvg'],
|
|
154
|
+
'cpu_p95': value['cpuP95'],
|
|
155
|
+
'cpu_max': value['cpuMax'],
|
|
156
|
+
'cpu_latest': value['cpuLatest'],
|
|
157
|
+
'mem_avg': value['memAvg'],
|
|
158
|
+
'mem_p95': value['memP95'],
|
|
159
|
+
'mem_max': value['memMax'],
|
|
160
|
+
'mem_latest': value['memLatest'],
|
|
161
|
+
'disk': value['disk'],
|
|
162
|
+
'confidence': value['confidence'],
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -16,13 +16,19 @@ export * from './GuestNetwork.js';
|
|
|
16
16
|
export * from './Histogram.js';
|
|
17
17
|
export * from './Host.js';
|
|
18
18
|
export * from './Infra.js';
|
|
19
|
-
export * from './InspectorStartRequest.js';
|
|
20
19
|
export * from './InspectorStatus.js';
|
|
21
20
|
export * from './Inventory.js';
|
|
22
21
|
export * from './InventoryData.js';
|
|
23
22
|
export * from './MigrationIssue.js';
|
|
24
23
|
export * from './Network.js';
|
|
25
24
|
export * from './OsInfo.js';
|
|
25
|
+
export * from './RightsizingCollectRequest.js';
|
|
26
|
+
export * from './RightsizingMetricStats.js';
|
|
27
|
+
export * from './RightsizingReport.js';
|
|
28
|
+
export * from './RightsizingReportListResponse.js';
|
|
29
|
+
export * from './RightsizingReportSummary.js';
|
|
30
|
+
export * from './RightsizingVMReport.js';
|
|
31
|
+
export * from './StartInspectionRequest.js';
|
|
26
32
|
export * from './UpdateGroupRequest.js';
|
|
27
33
|
export * from './UpdateInventory.js';
|
|
28
34
|
export * from './VCenter.js';
|
|
@@ -38,4 +44,7 @@ export * from './VersionInfo.js';
|
|
|
38
44
|
export * from './VirtualMachine.js';
|
|
39
45
|
export * from './VirtualMachineDetail.js';
|
|
40
46
|
export * from './VirtualMachineListResponse.js';
|
|
47
|
+
export * from './VmInspectionConcern.js';
|
|
48
|
+
export * from './VmInspectionResults.js';
|
|
41
49
|
export * from './VmInspectionStatus.js';
|
|
50
|
+
export * from './VmUtilizationDetails.js';
|
package/src/runtime.ts
CHANGED
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
export const BASE_PATH = "https://raw.githubusercontent.com/api/v1".replace(/\/+$/, "");
|
|
17
16
|
|
|
18
17
|
export interface ConfigurationParameters {
|
|
@@ -91,7 +90,7 @@ export const DefaultConfig = new Configuration();
|
|
|
91
90
|
*/
|
|
92
91
|
export class BaseAPI {
|
|
93
92
|
|
|
94
|
-
private static readonly jsonRegex =
|
|
93
|
+
private static readonly jsonRegex = /^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$/i;
|
|
95
94
|
private middleware: Middleware[];
|
|
96
95
|
|
|
97
96
|
constructor(protected configuration = DefaultConfig) {
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Assisted Migration Agent API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: v1
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface InspectorStartRequest
|
|
17
|
-
*/
|
|
18
|
-
export interface InspectorStartRequest {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {VcenterCredentials}
|
|
22
|
-
* @memberof InspectorStartRequest
|
|
23
|
-
*/
|
|
24
|
-
vcenterCredentials: VcenterCredentials;
|
|
25
|
-
/**
|
|
26
|
-
* Array of VirtualMachine id
|
|
27
|
-
* @type {Array<string>}
|
|
28
|
-
* @memberof InspectorStartRequest
|
|
29
|
-
*/
|
|
30
|
-
vmIds: Array<string>;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Check if a given object implements the InspectorStartRequest interface.
|
|
34
|
-
*/
|
|
35
|
-
export declare function instanceOfInspectorStartRequest(value: object): value is InspectorStartRequest;
|
|
36
|
-
export declare function InspectorStartRequestFromJSON(json: any): InspectorStartRequest;
|
|
37
|
-
export declare function InspectorStartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InspectorStartRequest;
|
|
38
|
-
export declare function InspectorStartRequestToJSON(json: any): InspectorStartRequest;
|
|
39
|
-
export declare function InspectorStartRequestToJSONTyped(value?: InspectorStartRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Assisted Migration Agent API
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
import { VcenterCredentialsFromJSON, VcenterCredentialsToJSON, } from './VcenterCredentials.js';
|
|
15
|
-
/**
|
|
16
|
-
* Check if a given object implements the InspectorStartRequest interface.
|
|
17
|
-
*/
|
|
18
|
-
export function instanceOfInspectorStartRequest(value) {
|
|
19
|
-
if (!('vcenterCredentials' in value) || value['vcenterCredentials'] === undefined)
|
|
20
|
-
return false;
|
|
21
|
-
if (!('vmIds' in value) || value['vmIds'] === undefined)
|
|
22
|
-
return false;
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
export function InspectorStartRequestFromJSON(json) {
|
|
26
|
-
return InspectorStartRequestFromJSONTyped(json, false);
|
|
27
|
-
}
|
|
28
|
-
export function InspectorStartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
-
if (json == null) {
|
|
30
|
-
return json;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'vcenterCredentials': VcenterCredentialsFromJSON(json['VcenterCredentials']),
|
|
34
|
-
'vmIds': json['vmIds'],
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
export function InspectorStartRequestToJSON(json) {
|
|
38
|
-
return InspectorStartRequestToJSONTyped(json, false);
|
|
39
|
-
}
|
|
40
|
-
export function InspectorStartRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
-
if (value == null) {
|
|
42
|
-
return value;
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
'VcenterCredentials': VcenterCredentialsToJSON(value['vcenterCredentials']),
|
|
46
|
-
'vmIds': value['vmIds'],
|
|
47
|
-
};
|
|
48
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Assisted Migration Agent API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: v1
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface InspectorStartRequest
|
|
17
|
-
*/
|
|
18
|
-
export interface InspectorStartRequest {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {VcenterCredentials}
|
|
22
|
-
* @memberof InspectorStartRequest
|
|
23
|
-
*/
|
|
24
|
-
vcenterCredentials: VcenterCredentials;
|
|
25
|
-
/**
|
|
26
|
-
* Array of VirtualMachine id
|
|
27
|
-
* @type {Array<string>}
|
|
28
|
-
* @memberof InspectorStartRequest
|
|
29
|
-
*/
|
|
30
|
-
vmIds: Array<string>;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Check if a given object implements the InspectorStartRequest interface.
|
|
34
|
-
*/
|
|
35
|
-
export declare function instanceOfInspectorStartRequest(value: object): value is InspectorStartRequest;
|
|
36
|
-
export declare function InspectorStartRequestFromJSON(json: any): InspectorStartRequest;
|
|
37
|
-
export declare function InspectorStartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InspectorStartRequest;
|
|
38
|
-
export declare function InspectorStartRequestToJSON(json: any): InspectorStartRequest;
|
|
39
|
-
export declare function InspectorStartRequestToJSONTyped(value?: InspectorStartRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,55 +0,0 @@
|
|
|
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.instanceOfInspectorStartRequest = instanceOfInspectorStartRequest;
|
|
17
|
-
exports.InspectorStartRequestFromJSON = InspectorStartRequestFromJSON;
|
|
18
|
-
exports.InspectorStartRequestFromJSONTyped = InspectorStartRequestFromJSONTyped;
|
|
19
|
-
exports.InspectorStartRequestToJSON = InspectorStartRequestToJSON;
|
|
20
|
-
exports.InspectorStartRequestToJSONTyped = InspectorStartRequestToJSONTyped;
|
|
21
|
-
const VcenterCredentials_js_1 = require("./VcenterCredentials.js");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the InspectorStartRequest interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfInspectorStartRequest(value) {
|
|
26
|
-
if (!('vcenterCredentials' in value) || value['vcenterCredentials'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
if (!('vmIds' in value) || value['vmIds'] === undefined)
|
|
29
|
-
return false;
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
|
-
function InspectorStartRequestFromJSON(json) {
|
|
33
|
-
return InspectorStartRequestFromJSONTyped(json, false);
|
|
34
|
-
}
|
|
35
|
-
function InspectorStartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
-
if (json == null) {
|
|
37
|
-
return json;
|
|
38
|
-
}
|
|
39
|
-
return {
|
|
40
|
-
'vcenterCredentials': (0, VcenterCredentials_js_1.VcenterCredentialsFromJSON)(json['VcenterCredentials']),
|
|
41
|
-
'vmIds': json['vmIds'],
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function InspectorStartRequestToJSON(json) {
|
|
45
|
-
return InspectorStartRequestToJSONTyped(json, false);
|
|
46
|
-
}
|
|
47
|
-
function InspectorStartRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
-
if (value == null) {
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
'VcenterCredentials': (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(value['vcenterCredentials']),
|
|
53
|
-
'vmIds': value['vmIds'],
|
|
54
|
-
};
|
|
55
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Assisted Migration Agent API
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime.js';
|
|
16
|
-
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
17
|
-
import {
|
|
18
|
-
VcenterCredentialsFromJSON,
|
|
19
|
-
VcenterCredentialsFromJSONTyped,
|
|
20
|
-
VcenterCredentialsToJSON,
|
|
21
|
-
VcenterCredentialsToJSONTyped,
|
|
22
|
-
} from './VcenterCredentials.js';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface InspectorStartRequest
|
|
28
|
-
*/
|
|
29
|
-
export interface InspectorStartRequest {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {VcenterCredentials}
|
|
33
|
-
* @memberof InspectorStartRequest
|
|
34
|
-
*/
|
|
35
|
-
vcenterCredentials: VcenterCredentials;
|
|
36
|
-
/**
|
|
37
|
-
* Array of VirtualMachine id
|
|
38
|
-
* @type {Array<string>}
|
|
39
|
-
* @memberof InspectorStartRequest
|
|
40
|
-
*/
|
|
41
|
-
vmIds: Array<string>;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Check if a given object implements the InspectorStartRequest interface.
|
|
46
|
-
*/
|
|
47
|
-
export function instanceOfInspectorStartRequest(value: object): value is InspectorStartRequest {
|
|
48
|
-
if (!('vcenterCredentials' in value) || value['vcenterCredentials'] === undefined) return false;
|
|
49
|
-
if (!('vmIds' in value) || value['vmIds'] === undefined) return false;
|
|
50
|
-
return true;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function InspectorStartRequestFromJSON(json: any): InspectorStartRequest {
|
|
54
|
-
return InspectorStartRequestFromJSONTyped(json, false);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export function InspectorStartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InspectorStartRequest {
|
|
58
|
-
if (json == null) {
|
|
59
|
-
return json;
|
|
60
|
-
}
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'vcenterCredentials': VcenterCredentialsFromJSON(json['VcenterCredentials']),
|
|
64
|
-
'vmIds': json['vmIds'],
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function InspectorStartRequestToJSON(json: any): InspectorStartRequest {
|
|
69
|
-
return InspectorStartRequestToJSONTyped(json, false);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function InspectorStartRequestToJSONTyped(value?: InspectorStartRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
-
if (value == null) {
|
|
74
|
-
return value;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return {
|
|
78
|
-
|
|
79
|
-
'VcenterCredentials': VcenterCredentialsToJSON(value['vcenterCredentials']),
|
|
80
|
-
'vmIds': value['vmIds'],
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
|