@openshift-migration-advisor/agent-sdk 0.32.0 → 0.33.1-84c734aba511
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 +24 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +16 -4
- package/dist/apis/AppliancesApi.d.ts +64 -0
- package/dist/apis/AppliancesApi.js +72 -0
- package/dist/apis/CollectorApi.d.ts +0 -38
- package/dist/apis/CollectorApi.js +0 -59
- package/dist/apis/GroupsApi.d.ts +39 -0
- package/dist/apis/GroupsApi.js +40 -0
- package/dist/apis/ImageUpgradeApi.d.ts +66 -0
- package/dist/apis/ImageUpgradeApi.js +90 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/AppliancesApi.d.ts +64 -0
- package/dist/esm/apis/AppliancesApi.js +68 -0
- package/dist/esm/apis/CollectorApi.d.ts +0 -38
- package/dist/esm/apis/CollectorApi.js +0 -59
- package/dist/esm/apis/GroupsApi.d.ts +39 -0
- package/dist/esm/apis/GroupsApi.js +40 -0
- package/dist/esm/apis/ImageUpgradeApi.d.ts +66 -0
- package/dist/esm/apis/ImageUpgradeApi.js +86 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/AgentStatus.d.ts +5 -0
- package/dist/esm/models/AgentStatus.js +5 -0
- package/dist/esm/models/Appliance.d.ts +51 -0
- package/dist/esm/models/Appliance.js +64 -0
- package/dist/esm/models/ApplianceListResponse.d.ts +31 -0
- package/dist/esm/models/ApplianceListResponse.js +44 -0
- package/dist/esm/models/ApplicationOverview.d.ts +16 -0
- package/dist/esm/models/ApplicationOverview.js +12 -0
- package/dist/esm/models/Host.d.ts +16 -0
- package/dist/esm/models/Host.js +8 -0
- package/dist/esm/models/ImageUpgradeImage.d.ts +34 -0
- package/dist/esm/models/ImageUpgradeImage.js +47 -0
- package/dist/esm/models/ImageUpgradeResult.d.ts +66 -0
- package/dist/esm/models/ImageUpgradeResult.js +71 -0
- package/dist/esm/models/ImageUpgradeStatus.d.ts +44 -0
- package/dist/esm/models/ImageUpgradeStatus.js +57 -0
- package/dist/esm/models/ImageUploadStatus.d.ts +44 -0
- package/dist/esm/models/ImageUploadStatus.js +56 -0
- package/dist/esm/models/OsInfo.d.ts +12 -0
- package/dist/esm/models/OsInfo.js +9 -0
- package/dist/esm/models/Product.d.ts +66 -0
- package/dist/esm/models/Product.js +61 -0
- package/dist/esm/models/RDMBacking.d.ts +26 -0
- package/dist/esm/models/RDMBacking.js +17 -0
- package/dist/esm/models/RDMHostLun.d.ts +42 -0
- package/dist/esm/models/RDMHostLun.js +49 -0
- package/dist/esm/models/SuccessfulImageUpgrade.d.ts +38 -0
- package/dist/esm/models/SuccessfulImageUpgrade.js +52 -0
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +8 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +8 -0
- package/dist/esm/models/VirtualMachine.d.ts +8 -0
- package/dist/esm/models/VirtualMachine.js +4 -0
- package/dist/esm/models/VirtualMachineDetail.d.ts +5 -0
- package/dist/esm/models/VirtualMachineDetail.js +3 -0
- package/dist/esm/models/VirtualMachineDisk.d.ts +8 -0
- package/dist/esm/models/VirtualMachineDisk.js +4 -0
- package/dist/esm/models/VirtualMachineIdentity.d.ts +34 -0
- package/dist/esm/models/VirtualMachineIdentity.js +47 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/esm/runtime.js +4 -3
- package/dist/models/AgentStatus.d.ts +5 -0
- package/dist/models/AgentStatus.js +5 -0
- package/dist/models/Appliance.d.ts +51 -0
- package/dist/models/Appliance.js +71 -0
- package/dist/models/ApplianceListResponse.d.ts +31 -0
- package/dist/models/ApplianceListResponse.js +51 -0
- package/dist/models/ApplicationOverview.d.ts +16 -0
- package/dist/models/ApplicationOverview.js +12 -0
- package/dist/models/Host.d.ts +16 -0
- package/dist/models/Host.js +8 -0
- package/dist/models/ImageUpgradeImage.d.ts +34 -0
- package/dist/models/ImageUpgradeImage.js +54 -0
- package/dist/models/ImageUpgradeResult.d.ts +66 -0
- package/dist/models/ImageUpgradeResult.js +79 -0
- package/dist/models/ImageUpgradeStatus.d.ts +44 -0
- package/dist/models/ImageUpgradeStatus.js +64 -0
- package/dist/models/ImageUploadStatus.d.ts +44 -0
- package/dist/models/ImageUploadStatus.js +64 -0
- package/dist/models/OsInfo.d.ts +12 -0
- package/dist/models/OsInfo.js +10 -1
- package/dist/models/Product.d.ts +66 -0
- package/dist/models/Product.js +68 -0
- package/dist/models/RDMBacking.d.ts +26 -0
- package/dist/models/RDMBacking.js +18 -0
- package/dist/models/RDMHostLun.d.ts +42 -0
- package/dist/models/RDMHostLun.js +56 -0
- package/dist/models/SuccessfulImageUpgrade.d.ts +38 -0
- package/dist/models/SuccessfulImageUpgrade.js +59 -0
- package/dist/models/VMFilterOptionsResponse.d.ts +8 -0
- package/dist/models/VMFilterOptionsResponse.js +8 -0
- package/dist/models/VirtualMachine.d.ts +8 -0
- package/dist/models/VirtualMachine.js +4 -0
- package/dist/models/VirtualMachineDetail.d.ts +5 -0
- package/dist/models/VirtualMachineDetail.js +3 -0
- package/dist/models/VirtualMachineDisk.d.ts +8 -0
- package/dist/models/VirtualMachineDisk.js +4 -0
- package/dist/models/VirtualMachineIdentity.d.ts +34 -0
- package/dist/models/VirtualMachineIdentity.js +54 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/dist/runtime.js +4 -3
- package/docs/AgentStatus.md +2 -0
- package/docs/Appliance.md +44 -0
- package/docs/ApplianceListResponse.md +34 -0
- package/docs/AppliancesApi.md +76 -0
- package/docs/ApplicationOverview.md +8 -0
- package/docs/CollectorApi.md +0 -70
- package/docs/GroupsApi.md +68 -0
- package/docs/Host.md +8 -0
- package/docs/ImageUpgradeApi.md +82 -0
- package/docs/ImageUpgradeImage.md +36 -0
- package/docs/ImageUpgradeResult.md +46 -0
- package/docs/ImageUpgradeStatus.md +40 -0
- package/docs/ImageUploadStatus.md +36 -0
- package/docs/OsInfo.md +2 -0
- package/docs/Product.md +52 -0
- package/docs/RDMBacking.md +8 -0
- package/docs/RDMHostLun.md +41 -0
- package/docs/SuccessfulImageUpgrade.md +38 -0
- package/docs/VMFilterOptionsResponse.md +4 -0
- package/docs/VirtualMachine.md +4 -0
- package/docs/VirtualMachineDetail.md +2 -0
- package/docs/VirtualMachineDisk.md +4 -0
- package/docs/VirtualMachineIdentity.md +36 -0
- package/package.json +1 -1
- package/src/apis/AppliancesApi.ts +111 -0
- package/src/apis/CollectorApi.ts +0 -97
- package/src/apis/GroupsApi.ts +80 -0
- package/src/apis/ImageUpgradeApi.ts +128 -0
- package/src/apis/index.ts +2 -0
- package/src/models/AgentStatus.ts +14 -0
- package/src/models/Appliance.ts +107 -0
- package/src/models/ApplianceListResponse.ts +72 -0
- package/src/models/ApplicationOverview.ts +26 -0
- package/src/models/Host.ts +24 -0
- package/src/models/ImageUpgradeImage.ts +71 -0
- package/src/models/ImageUpgradeResult.ts +130 -0
- package/src/models/ImageUpgradeStatus.ts +100 -0
- package/src/models/ImageUploadStatus.ts +84 -0
- package/src/models/OsInfo.ts +15 -0
- package/src/models/Product.ts +118 -0
- package/src/models/RDMBacking.ts +44 -0
- package/src/models/RDMHostLun.ts +82 -0
- package/src/models/SuccessfulImageUpgrade.ts +78 -0
- package/src/models/VMFilterOptionsResponse.ts +14 -0
- package/src/models/VirtualMachine.ts +12 -0
- package/src/models/VirtualMachineDetail.ts +13 -0
- package/src/models/VirtualMachineDisk.ts +12 -0
- package/src/models/VirtualMachineIdentity.ts +71 -0
- package/src/models/index.ts +10 -0
- package/src/runtime.ts +3 -3
|
@@ -0,0 +1,71 @@
|
|
|
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: v2
|
|
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 VirtualMachineIdentity
|
|
20
|
+
*/
|
|
21
|
+
export interface VirtualMachineIdentity {
|
|
22
|
+
/**
|
|
23
|
+
* VM ID
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* VM name
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the VirtualMachineIdentity interface.
|
|
34
|
+
*/
|
|
35
|
+
export function instanceOfVirtualMachineIdentity(value: object): value is VirtualMachineIdentity {
|
|
36
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
37
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function VirtualMachineIdentityFromJSON(json: any): VirtualMachineIdentity {
|
|
42
|
+
return VirtualMachineIdentityFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function VirtualMachineIdentityFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineIdentity {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
|
|
51
|
+
'id': json['id'],
|
|
52
|
+
'name': json['name'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function VirtualMachineIdentityToJSON(json: any): VirtualMachineIdentity {
|
|
57
|
+
return VirtualMachineIdentityToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function VirtualMachineIdentityToJSONTyped(value?: VirtualMachineIdentity | null, ignoreDiscriminator: boolean = false): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'id': value['id'],
|
|
68
|
+
'name': value['name'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
export * from './AgentModeRequest.js';
|
|
4
4
|
export * from './AgentStatus.js';
|
|
5
5
|
export * from './AgentStatusConsoleConnection.js';
|
|
6
|
+
export * from './Appliance.js';
|
|
7
|
+
export * from './ApplianceListResponse.js';
|
|
6
8
|
export * from './ApplicationListResponse.js';
|
|
7
9
|
export * from './ApplicationOverview.js';
|
|
8
10
|
export * from './ApplicationVM.js';
|
|
@@ -43,6 +45,10 @@ export * from './Host.js';
|
|
|
43
45
|
export * from './HostPhysicalNIC.js';
|
|
44
46
|
export * from './HostStorageAdapter.js';
|
|
45
47
|
export * from './HostStorageLun.js';
|
|
48
|
+
export * from './ImageUpgradeImage.js';
|
|
49
|
+
export * from './ImageUpgradeResult.js';
|
|
50
|
+
export * from './ImageUpgradeStatus.js';
|
|
51
|
+
export * from './ImageUploadStatus.js';
|
|
46
52
|
export * from './Infra.js';
|
|
47
53
|
export * from './InspectionStatus.js';
|
|
48
54
|
export * from './InspectorStatus.js';
|
|
@@ -56,13 +62,16 @@ export * from './OsInfo.js';
|
|
|
56
62
|
export * from './PairCapability.js';
|
|
57
63
|
export * from './PairCapabilityRequest.js';
|
|
58
64
|
export * from './Process.js';
|
|
65
|
+
export * from './Product.js';
|
|
59
66
|
export * from './RDMBacking.js';
|
|
67
|
+
export * from './RDMHostLun.js';
|
|
60
68
|
export * from './RightsizingClusterResponse.js';
|
|
61
69
|
export * from './RightsizingClusterUtilization.js';
|
|
62
70
|
export * from './StartForecasterRequest.js';
|
|
63
71
|
export * from './StartInspectionRequest.js';
|
|
64
72
|
export * from './StopForecasterPair202Response.js';
|
|
65
73
|
export * from './StorageIoConfiguration.js';
|
|
74
|
+
export * from './SuccessfulImageUpgrade.js';
|
|
66
75
|
export * from './UpdateGroupRequest.js';
|
|
67
76
|
export * from './UpdateInventory.js';
|
|
68
77
|
export * from './UpdateLabelVMsRequest.js';
|
|
@@ -79,6 +88,7 @@ export * from './VirtualMachineDatastore.js';
|
|
|
79
88
|
export * from './VirtualMachineDetail.js';
|
|
80
89
|
export * from './VirtualMachineDevice.js';
|
|
81
90
|
export * from './VirtualMachineDisk.js';
|
|
91
|
+
export * from './VirtualMachineIdentity.js';
|
|
82
92
|
export * from './VirtualMachineInspectionConcern.js';
|
|
83
93
|
export * from './VirtualMachineInspectionResults.js';
|
|
84
94
|
export * from './VirtualMachineIssue.js';
|
package/src/runtime.ts
CHANGED
|
@@ -533,7 +533,7 @@ export function parseContentDispositionFilename(headers: Headers): string | unde
|
|
|
533
533
|
function decodeExtValue(value: string | undefined): string | undefined {
|
|
534
534
|
const match = value === undefined ? null : /^utf-8'[^']*'(.*)$/i.exec(value);
|
|
535
535
|
try {
|
|
536
|
-
return match ? decodeURIComponent(match[1]) : undefined;
|
|
536
|
+
return match?.[1] !== undefined ? decodeURIComponent(match[1]) : undefined;
|
|
537
537
|
} catch {
|
|
538
538
|
return undefined;
|
|
539
539
|
}
|
|
@@ -549,9 +549,9 @@ function parseHeaderParameters(value: string): Map<string, string> {
|
|
|
549
549
|
const parameter = /(?:^|;)\s*([^=;]+?)\s*=\s*(?:"((?:[^"\\]|\\.)*)"?|([^;]*))/g;
|
|
550
550
|
let match: RegExpExecArray | null;
|
|
551
551
|
while ((match = parameter.exec(value)) !== null) {
|
|
552
|
-
const name = match[1].toLowerCase();
|
|
552
|
+
const name = (match[1] ?? '').toLowerCase();
|
|
553
553
|
if (!params.has(name)) {
|
|
554
|
-
params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : match[3].trim());
|
|
554
|
+
params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : (match[3] ?? '').trim());
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
return params;
|