@openshift-migration-advisor/agent-sdk 0.32.0 → 0.33.0-e1c90d7b1b79
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 +38 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +28 -4
- package/dist/apis/AppliancesApi.d.ts +258 -0
- package/dist/apis/AppliancesApi.js +273 -0
- package/dist/apis/CollectorApi.d.ts +0 -38
- package/dist/apis/CollectorApi.js +0 -59
- package/dist/apis/GroupsApi.d.ts +45 -6
- 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/VirtualMachinesApi.d.ts +6 -6
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/AppliancesApi.d.ts +258 -0
- package/dist/esm/apis/AppliancesApi.js +269 -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 +45 -6
- 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/VirtualMachinesApi.d.ts +6 -6
- 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/ApplianceRule.d.ts +90 -0
- package/dist/esm/models/ApplianceRule.js +98 -0
- package/dist/esm/models/ApplianceRuleCondition.d.ts +42 -0
- package/dist/esm/models/ApplianceRuleCondition.js +48 -0
- package/dist/esm/models/ApplianceRuleFunction.d.ts +37 -0
- package/dist/esm/models/ApplianceRuleFunction.js +46 -0
- package/dist/esm/models/ApplianceRuleListResponse.d.ts +31 -0
- package/dist/esm/models/ApplianceRuleListResponse.js +44 -0
- package/dist/esm/models/ApplianceRuleRequest.d.ts +74 -0
- package/dist/esm/models/ApplianceRuleRequest.js +85 -0
- package/dist/esm/models/ApplicationOverview.d.ts +16 -0
- package/dist/esm/models/ApplicationOverview.js +12 -0
- package/dist/esm/models/Datastore.d.ts +9 -0
- package/dist/esm/models/Datastore.js +5 -0
- package/dist/esm/models/DiskGeometryCondition.d.ts +47 -0
- package/dist/esm/models/DiskGeometryCondition.js +58 -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/StorageArray.d.ts +42 -0
- package/dist/esm/models/StorageArray.js +47 -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/VirtualMachineDatastore.d.ts +9 -0
- package/dist/esm/models/VirtualMachineDatastore.js +5 -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 +17 -0
- package/dist/esm/models/index.js +17 -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/ApplianceRule.d.ts +90 -0
- package/dist/models/ApplianceRule.js +106 -0
- package/dist/models/ApplianceRuleCondition.d.ts +42 -0
- package/dist/models/ApplianceRuleCondition.js +55 -0
- package/dist/models/ApplianceRuleFunction.d.ts +37 -0
- package/dist/models/ApplianceRuleFunction.js +53 -0
- package/dist/models/ApplianceRuleListResponse.d.ts +31 -0
- package/dist/models/ApplianceRuleListResponse.js +51 -0
- package/dist/models/ApplianceRuleRequest.d.ts +74 -0
- package/dist/models/ApplianceRuleRequest.js +93 -0
- package/dist/models/ApplicationOverview.d.ts +16 -0
- package/dist/models/ApplicationOverview.js +12 -0
- package/dist/models/Datastore.d.ts +9 -0
- package/dist/models/Datastore.js +5 -0
- package/dist/models/DiskGeometryCondition.d.ts +47 -0
- package/dist/models/DiskGeometryCondition.js +66 -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/StorageArray.d.ts +42 -0
- package/dist/models/StorageArray.js +54 -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/VirtualMachineDatastore.d.ts +9 -0
- package/dist/models/VirtualMachineDatastore.js +5 -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 +17 -0
- package/dist/models/index.js +17 -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/ApplianceRule.md +50 -0
- package/docs/ApplianceRuleCondition.md +39 -0
- package/docs/ApplianceRuleFunction.md +37 -0
- package/docs/ApplianceRuleListResponse.md +34 -0
- package/docs/ApplianceRuleRequest.md +46 -0
- package/docs/AppliancesApi.md +414 -0
- package/docs/ApplicationOverview.md +8 -0
- package/docs/CollectorApi.md +0 -70
- package/docs/Datastore.md +4 -0
- package/docs/DiskGeometryCondition.md +38 -0
- package/docs/GroupsApi.md +72 -4
- 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/StorageArray.md +41 -0
- package/docs/SuccessfulImageUpgrade.md +38 -0
- package/docs/VMFilterOptionsResponse.md +4 -0
- package/docs/VirtualMachine.md +4 -0
- package/docs/VirtualMachineDatastore.md +4 -0
- package/docs/VirtualMachineDetail.md +2 -0
- package/docs/VirtualMachineDisk.md +4 -0
- package/docs/VirtualMachineIdentity.md +36 -0
- package/docs/VirtualMachinesApi.md +4 -4
- package/package.json +1 -1
- package/src/apis/AppliancesApi.ts +504 -0
- package/src/apis/CollectorApi.ts +0 -97
- package/src/apis/GroupsApi.ts +86 -6
- package/src/apis/ImageUpgradeApi.ts +128 -0
- package/src/apis/VirtualMachinesApi.ts +6 -6
- 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/ApplianceRule.ts +159 -0
- package/src/models/ApplianceRuleCondition.ts +87 -0
- package/src/models/ApplianceRuleFunction.ts +80 -0
- package/src/models/ApplianceRuleListResponse.ts +72 -0
- package/src/models/ApplianceRuleRequest.ts +137 -0
- package/src/models/ApplicationOverview.ts +26 -0
- package/src/models/Datastore.ts +19 -0
- package/src/models/DiskGeometryCondition.ts +90 -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/StorageArray.ts +81 -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/VirtualMachineDatastore.ts +20 -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 +17 -0
- package/src/runtime.ts +3 -3
package/src/models/RDMBacking.ts
CHANGED
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { RDMHostLun } from './RDMHostLun.js';
|
|
17
|
+
import {
|
|
18
|
+
RDMHostLunFromJSON,
|
|
19
|
+
RDMHostLunFromJSONTyped,
|
|
20
|
+
RDMHostLunToJSON,
|
|
21
|
+
RDMHostLunToJSONTyped,
|
|
22
|
+
} from './RDMHostLun.js';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
* Source-provided backing identity for an RDM disk; omitted when unavailable
|
|
18
26
|
* @export
|
|
@@ -23,8 +31,36 @@ export interface RDMBacking {
|
|
|
23
31
|
* LUN UUID reported directly by the RDM disk backing, when available
|
|
24
32
|
*/
|
|
25
33
|
lunUuid?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Device name reported directly by the RDM disk backing
|
|
36
|
+
*/
|
|
37
|
+
deviceName?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Source-normalized RDM compatibility mode
|
|
40
|
+
*/
|
|
41
|
+
compatibilityMode?: RDMBackingCompatibilityModeEnum;
|
|
42
|
+
/**
|
|
43
|
+
* UUID explicitly identifying the RDM backing, when available
|
|
44
|
+
*/
|
|
45
|
+
backingUuid?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
hostLun?: RDMHostLun;
|
|
26
50
|
}
|
|
27
51
|
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @export
|
|
55
|
+
*/
|
|
56
|
+
export const RDMBackingCompatibilityModeEnum = {
|
|
57
|
+
Physical: 'physical',
|
|
58
|
+
Virtual: 'virtual',
|
|
59
|
+
Unknown: 'unknown',
|
|
60
|
+
} as const;
|
|
61
|
+
export type RDMBackingCompatibilityModeEnum = typeof RDMBackingCompatibilityModeEnum[keyof typeof RDMBackingCompatibilityModeEnum];
|
|
62
|
+
|
|
63
|
+
|
|
28
64
|
/**
|
|
29
65
|
* Check if a given object implements the RDMBacking interface.
|
|
30
66
|
*/
|
|
@@ -43,6 +79,10 @@ export function RDMBackingFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
43
79
|
return {
|
|
44
80
|
|
|
45
81
|
'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
|
|
82
|
+
'deviceName': json['deviceName'] == null ? undefined : json['deviceName'],
|
|
83
|
+
'compatibilityMode': json['compatibilityMode'] == null ? undefined : json['compatibilityMode'],
|
|
84
|
+
'backingUuid': json['backingUuid'] == null ? undefined : json['backingUuid'],
|
|
85
|
+
'hostLun': json['hostLun'] == null ? undefined : RDMHostLunFromJSON(json['hostLun']),
|
|
46
86
|
};
|
|
47
87
|
}
|
|
48
88
|
|
|
@@ -58,6 +98,10 @@ export function RDMBackingToJSONTyped(value?: RDMBacking | null, ignoreDiscrimin
|
|
|
58
98
|
return {
|
|
59
99
|
|
|
60
100
|
'lunUuid': value['lunUuid'],
|
|
101
|
+
'deviceName': value['deviceName'],
|
|
102
|
+
'compatibilityMode': value['compatibilityMode'],
|
|
103
|
+
'backingUuid': value['backingUuid'],
|
|
104
|
+
'hostLun': RDMHostLunToJSON(value['hostLun']),
|
|
61
105
|
};
|
|
62
106
|
}
|
|
63
107
|
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
* Host LUN matched to the RDM disk backing through a verified identifier relationship and the VM's running host
|
|
18
|
+
* @export
|
|
19
|
+
* @interface RDMHostLun
|
|
20
|
+
*/
|
|
21
|
+
export interface RDMHostLun {
|
|
22
|
+
/**
|
|
23
|
+
* Object ID of the uniquely resolved running host that owns the matched LUN
|
|
24
|
+
*/
|
|
25
|
+
hostId: string;
|
|
26
|
+
/**
|
|
27
|
+
* SCSI disk key of the matched host LUN, when available
|
|
28
|
+
*/
|
|
29
|
+
key?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Canonical name (e.g. NAA) of the matched host LUN, when available
|
|
32
|
+
*/
|
|
33
|
+
canonicalName?: string;
|
|
34
|
+
/**
|
|
35
|
+
* LUN UUID of the matched host LUN, when available
|
|
36
|
+
*/
|
|
37
|
+
lunUuid?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the RDMHostLun interface.
|
|
42
|
+
*/
|
|
43
|
+
export function instanceOfRDMHostLun(value: object): value is RDMHostLun {
|
|
44
|
+
if (!('hostId' in value) || value['hostId'] === undefined) return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function RDMHostLunFromJSON(json: any): RDMHostLun {
|
|
49
|
+
return RDMHostLunFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function RDMHostLunFromJSONTyped(json: any, ignoreDiscriminator: boolean): RDMHostLun {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
'hostId': json['hostId'],
|
|
59
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
60
|
+
'canonicalName': json['canonicalName'] == null ? undefined : json['canonicalName'],
|
|
61
|
+
'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function RDMHostLunToJSON(json: any): RDMHostLun {
|
|
66
|
+
return RDMHostLunToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function RDMHostLunToJSONTyped(value?: RDMHostLun | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'hostId': value['hostId'],
|
|
77
|
+
'key': value['key'],
|
|
78
|
+
'canonicalName': value['canonicalName'],
|
|
79
|
+
'lunUuid': value['lunUuid'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
* Authoritative source VASA array identity associated with this datastore; distinct from LUN inquiry metadata and storage-container identity
|
|
18
|
+
* @export
|
|
19
|
+
* @interface StorageArray
|
|
20
|
+
*/
|
|
21
|
+
export interface StorageArray {
|
|
22
|
+
/**
|
|
23
|
+
* Array UUID reported by the source, when available
|
|
24
|
+
*/
|
|
25
|
+
uuid?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
* VASA vendor ID, not a SCSI inquiry vendor
|
|
32
|
+
*/
|
|
33
|
+
vendorId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* VASA model ID, not a SCSI inquiry model
|
|
36
|
+
*/
|
|
37
|
+
modelId?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the StorageArray interface.
|
|
42
|
+
*/
|
|
43
|
+
export function instanceOfStorageArray(value: object): value is StorageArray {
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function StorageArrayFromJSON(json: any): StorageArray {
|
|
48
|
+
return StorageArrayFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function StorageArrayFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageArray {
|
|
52
|
+
if (json == null) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'uuid': json['uuid'] == null ? undefined : json['uuid'],
|
|
58
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
59
|
+
'vendorId': json['vendorId'] == null ? undefined : json['vendorId'],
|
|
60
|
+
'modelId': json['modelId'] == null ? undefined : json['modelId'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function StorageArrayToJSON(json: any): StorageArray {
|
|
65
|
+
return StorageArrayToJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function StorageArrayToJSONTyped(value?: StorageArray | null, ignoreDiscriminator: boolean = false): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'uuid': value['uuid'],
|
|
76
|
+
'name': value['name'],
|
|
77
|
+
'vendorId': value['vendorId'],
|
|
78
|
+
'modelId': value['modelId'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
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, parseDate, parseDateTime, serializeDate, serializeDateTime } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SuccessfulImageUpgrade
|
|
20
|
+
*/
|
|
21
|
+
export interface SuccessfulImageUpgrade {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
version: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
digest: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
time: Date;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the SuccessfulImageUpgrade interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfSuccessfulImageUpgrade(value: object): value is SuccessfulImageUpgrade {
|
|
40
|
+
if (!('version' in value) || value['version'] === undefined) return false;
|
|
41
|
+
if (!('digest' in value) || value['digest'] === undefined) return false;
|
|
42
|
+
if (!('time' in value) || value['time'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function SuccessfulImageUpgradeFromJSON(json: any): SuccessfulImageUpgrade {
|
|
47
|
+
return SuccessfulImageUpgradeFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function SuccessfulImageUpgradeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessfulImageUpgrade {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'version': json['version'],
|
|
57
|
+
'digest': json['digest'],
|
|
58
|
+
'time': (json['time'] == null ? json['time'] : parseDateTime(json['time'])),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function SuccessfulImageUpgradeToJSON(json: any): SuccessfulImageUpgrade {
|
|
63
|
+
return SuccessfulImageUpgradeToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function SuccessfulImageUpgradeToJSONTyped(value?: SuccessfulImageUpgrade | null, ignoreDiscriminator: boolean = false): any {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'version': value['version'],
|
|
74
|
+
'digest': value['digest'],
|
|
75
|
+
'time': value['time'] == null ? value['time'] : serializeDateTime(value['time']),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
@@ -43,6 +43,14 @@ export interface VMFilterOptionsResponse {
|
|
|
43
43
|
* Distinct detected application names
|
|
44
44
|
*/
|
|
45
45
|
applications: Array<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Distinct guest OS values from VM configuration (os_config)
|
|
48
|
+
*/
|
|
49
|
+
osConfigs: Array<string>;
|
|
50
|
+
/**
|
|
51
|
+
* Distinct guest OS values reported by VMware Tools (os_tools)
|
|
52
|
+
*/
|
|
53
|
+
osTools: Array<string>;
|
|
46
54
|
}
|
|
47
55
|
|
|
48
56
|
/**
|
|
@@ -55,6 +63,8 @@ export function instanceOfVMFilterOptionsResponse(value: object): value is VMFil
|
|
|
55
63
|
if (!('concernLabels' in value) || value['concernLabels'] === undefined) return false;
|
|
56
64
|
if (!('concernCategories' in value) || value['concernCategories'] === undefined) return false;
|
|
57
65
|
if (!('applications' in value) || value['applications'] === undefined) return false;
|
|
66
|
+
if (!('osConfigs' in value) || value['osConfigs'] === undefined) return false;
|
|
67
|
+
if (!('osTools' in value) || value['osTools'] === undefined) return false;
|
|
58
68
|
return true;
|
|
59
69
|
}
|
|
60
70
|
|
|
@@ -74,6 +84,8 @@ export function VMFilterOptionsResponseFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
74
84
|
'concernLabels': json['concernLabels'],
|
|
75
85
|
'concernCategories': json['concernCategories'],
|
|
76
86
|
'applications': json['applications'],
|
|
87
|
+
'osConfigs': json['osConfigs'],
|
|
88
|
+
'osTools': json['osTools'],
|
|
77
89
|
};
|
|
78
90
|
}
|
|
79
91
|
|
|
@@ -94,6 +106,8 @@ export function VMFilterOptionsResponseToJSONTyped(value?: VMFilterOptionsRespon
|
|
|
94
106
|
'concernLabels': value['concernLabels'],
|
|
95
107
|
'concernCategories': value['concernCategories'],
|
|
96
108
|
'applications': value['applications'],
|
|
109
|
+
'osConfigs': value['osConfigs'],
|
|
110
|
+
'osTools': value['osTools'],
|
|
97
111
|
};
|
|
98
112
|
}
|
|
99
113
|
|
|
@@ -91,6 +91,14 @@ export interface VirtualMachine {
|
|
|
91
91
|
* User-defined labels for this VM
|
|
92
92
|
*/
|
|
93
93
|
labels?: Array<string>;
|
|
94
|
+
/**
|
|
95
|
+
* Guest OS according to the VM configuration file (inventory os_config)
|
|
96
|
+
*/
|
|
97
|
+
guestName?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Guest OS reported by VMware Tools (inventory os_tools)
|
|
100
|
+
*/
|
|
101
|
+
guestNameFromVmwareTools?: string;
|
|
94
102
|
/**
|
|
95
103
|
* CPU utilization at p95 (%); absent when no utilization data
|
|
96
104
|
*/
|
|
@@ -159,6 +167,8 @@ export function VirtualMachineFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
159
167
|
'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
|
|
160
168
|
'groups': json['groups'] == null ? undefined : json['groups'],
|
|
161
169
|
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
170
|
+
'guestName': json['guestName'] == null ? undefined : json['guestName'],
|
|
171
|
+
'guestNameFromVmwareTools': json['guestNameFromVmwareTools'] == null ? undefined : json['guestNameFromVmwareTools'],
|
|
162
172
|
'utilization_cpu_p95': json['utilization_cpu_p95'] == null ? undefined : json['utilization_cpu_p95'],
|
|
163
173
|
'utilization_mem_p95': json['utilization_mem_p95'] == null ? undefined : json['utilization_mem_p95'],
|
|
164
174
|
'utilization_cpu_max': json['utilization_cpu_max'] == null ? undefined : json['utilization_cpu_max'],
|
|
@@ -195,6 +205,8 @@ export function VirtualMachineToJSONTyped(value?: VirtualMachine | null, ignoreD
|
|
|
195
205
|
'migrationExcluded': value['migrationExcluded'],
|
|
196
206
|
'groups': value['groups'],
|
|
197
207
|
'labels': value['labels'],
|
|
208
|
+
'guestName': value['guestName'],
|
|
209
|
+
'guestNameFromVmwareTools': value['guestNameFromVmwareTools'],
|
|
198
210
|
'utilization_cpu_p95': value['utilization_cpu_p95'],
|
|
199
211
|
'utilization_mem_p95': value['utilization_mem_p95'],
|
|
200
212
|
'utilization_cpu_max': value['utilization_cpu_max'],
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { StorageArray } from './StorageArray.js';
|
|
17
|
+
import {
|
|
18
|
+
StorageArrayFromJSON,
|
|
19
|
+
StorageArrayFromJSONTyped,
|
|
20
|
+
StorageArrayToJSON,
|
|
21
|
+
StorageArrayToJSONTyped,
|
|
22
|
+
} from './StorageArray.js';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
* Datastore backing this virtual disk
|
|
18
26
|
* @export
|
|
@@ -59,6 +67,14 @@ export interface VirtualMachineDatastore {
|
|
|
59
67
|
* Model reported by matching backing devices when available
|
|
60
68
|
*/
|
|
61
69
|
model?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Source-reported VASA arrays associated with this datastore, when available
|
|
72
|
+
*/
|
|
73
|
+
storageArrays?: Array<StorageArray>;
|
|
74
|
+
/**
|
|
75
|
+
* Source-reported storage container identifier, when available
|
|
76
|
+
*/
|
|
77
|
+
storageContainerId?: string;
|
|
62
78
|
}
|
|
63
79
|
|
|
64
80
|
/**
|
|
@@ -88,6 +104,8 @@ export function VirtualMachineDatastoreFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
88
104
|
'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
|
|
89
105
|
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
90
106
|
'model': json['model'] == null ? undefined : json['model'],
|
|
107
|
+
'storageArrays': json['storageArrays'] == null ? undefined : ((json['storageArrays'] as Array<any>).map(StorageArrayFromJSON)),
|
|
108
|
+
'storageContainerId': json['storageContainerId'] == null ? undefined : json['storageContainerId'],
|
|
91
109
|
};
|
|
92
110
|
}
|
|
93
111
|
|
|
@@ -112,6 +130,8 @@ export function VirtualMachineDatastoreToJSONTyped(value?: VirtualMachineDatasto
|
|
|
112
130
|
'backingDeviceIds': value['backingDeviceIds'],
|
|
113
131
|
'vendor': value['vendor'],
|
|
114
132
|
'model': value['model'],
|
|
133
|
+
'storageArrays': value['storageArrays'] == null ? undefined : ((value['storageArrays'] as Array<any>).map(StorageArrayToJSON)),
|
|
134
|
+
'storageContainerId': value['storageContainerId'],
|
|
115
135
|
};
|
|
116
136
|
}
|
|
117
137
|
|
|
@@ -55,6 +55,13 @@ import {
|
|
|
55
55
|
HostPhysicalNICToJSON,
|
|
56
56
|
HostPhysicalNICToJSONTyped,
|
|
57
57
|
} from './HostPhysicalNIC.js';
|
|
58
|
+
import type { Product } from './Product.js';
|
|
59
|
+
import {
|
|
60
|
+
ProductFromJSON,
|
|
61
|
+
ProductFromJSONTyped,
|
|
62
|
+
ProductToJSON,
|
|
63
|
+
ProductToJSONTyped,
|
|
64
|
+
} from './Product.js';
|
|
58
65
|
import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
|
|
59
66
|
import {
|
|
60
67
|
VmUtilizationDetailsFromJSON,
|
|
@@ -254,6 +261,10 @@ export interface VirtualMachineDetail {
|
|
|
254
261
|
* List of processes detected on this VM
|
|
255
262
|
*/
|
|
256
263
|
processes?: Array<Process>;
|
|
264
|
+
/**
|
|
265
|
+
* Products configured in the VM's vApp settings
|
|
266
|
+
*/
|
|
267
|
+
products?: Array<Product>;
|
|
257
268
|
}
|
|
258
269
|
|
|
259
270
|
/**
|
|
@@ -325,6 +336,7 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
325
336
|
'inspection': json['inspection'] == null ? undefined : VirtualMachineInspectionResultsFromJSON(json['inspection']),
|
|
326
337
|
'utilization': json['utilization'] == null ? undefined : VmUtilizationDetailsFromJSON(json['utilization']),
|
|
327
338
|
'processes': json['processes'] == null ? undefined : ((json['processes'] as Array<any>).map(ProcessFromJSON)),
|
|
339
|
+
'products': json['products'] == null ? undefined : ((json['products'] as Array<any>).map(ProductFromJSON)),
|
|
328
340
|
};
|
|
329
341
|
}
|
|
330
342
|
|
|
@@ -379,6 +391,7 @@ export function VirtualMachineDetailToJSONTyped(value?: Omit<VirtualMachineDetai
|
|
|
379
391
|
'inspection': VirtualMachineInspectionResultsToJSON(value['inspection']),
|
|
380
392
|
'utilization': VmUtilizationDetailsToJSON(value['utilization']),
|
|
381
393
|
'processes': value['processes'] == null ? undefined : ((value['processes'] as Array<any>).map(ProcessToJSON)),
|
|
394
|
+
'products': value['products'] == null ? undefined : ((value['products'] as Array<any>).map(ProductToJSON)),
|
|
382
395
|
};
|
|
383
396
|
}
|
|
384
397
|
|
|
@@ -58,6 +58,14 @@ export interface VirtualMachineDisk {
|
|
|
58
58
|
*
|
|
59
59
|
*/
|
|
60
60
|
rdmBacking?: RDMBacking;
|
|
61
|
+
/**
|
|
62
|
+
* Source-reported thin provisioning; omitted when unavailable
|
|
63
|
+
*/
|
|
64
|
+
thinProvisioned?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Source-reported eager scrubbing; omitted when unavailable
|
|
67
|
+
*/
|
|
68
|
+
eagerlyScrubbed?: boolean;
|
|
61
69
|
/**
|
|
62
70
|
* Bus type (scsi, ide, sata, nvme)
|
|
63
71
|
*/
|
|
@@ -95,6 +103,8 @@ export function VirtualMachineDiskFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
95
103
|
'shared': json['shared'] == null ? undefined : json['shared'],
|
|
96
104
|
'rdm': json['rdm'] == null ? undefined : json['rdm'],
|
|
97
105
|
'rdmBacking': json['rdmBacking'] == null ? undefined : RDMBackingFromJSON(json['rdmBacking']),
|
|
106
|
+
'thinProvisioned': json['thinProvisioned'] == null ? undefined : json['thinProvisioned'],
|
|
107
|
+
'eagerlyScrubbed': json['eagerlyScrubbed'] == null ? undefined : json['eagerlyScrubbed'],
|
|
98
108
|
'bus': json['bus'] == null ? undefined : json['bus'],
|
|
99
109
|
'mode': json['mode'] == null ? undefined : json['mode'],
|
|
100
110
|
'datastore': json['datastore'] == null ? undefined : VirtualMachineDatastoreFromJSON(json['datastore']),
|
|
@@ -118,6 +128,8 @@ export function VirtualMachineDiskToJSONTyped(value?: VirtualMachineDisk | null,
|
|
|
118
128
|
'shared': value['shared'],
|
|
119
129
|
'rdm': value['rdm'],
|
|
120
130
|
'rdmBacking': RDMBackingToJSON(value['rdmBacking']),
|
|
131
|
+
'thinProvisioned': value['thinProvisioned'],
|
|
132
|
+
'eagerlyScrubbed': value['eagerlyScrubbed'],
|
|
121
133
|
'bus': value['bus'],
|
|
122
134
|
'mode': value['mode'],
|
|
123
135
|
'datastore': VirtualMachineDatastoreToJSON(value['datastore']),
|
|
@@ -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,13 @@
|
|
|
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';
|
|
8
|
+
export * from './ApplianceRule.js';
|
|
9
|
+
export * from './ApplianceRuleCondition.js';
|
|
10
|
+
export * from './ApplianceRuleFunction.js';
|
|
11
|
+
export * from './ApplianceRuleListResponse.js';
|
|
12
|
+
export * from './ApplianceRuleRequest.js';
|
|
6
13
|
export * from './ApplicationListResponse.js';
|
|
7
14
|
export * from './ApplicationOverview.js';
|
|
8
15
|
export * from './ApplicationVM.js';
|
|
@@ -28,6 +35,7 @@ export * from './Datastore.js';
|
|
|
28
35
|
export * from './DatastoreDetail.js';
|
|
29
36
|
export * from './DatastorePairRequest.js';
|
|
30
37
|
export * from './DeleteLabelGloballyResponse.js';
|
|
38
|
+
export * from './DiskGeometryCondition.js';
|
|
31
39
|
export * from './DiskSizeTierSummary.js';
|
|
32
40
|
export * from './DiskTypeSummary.js';
|
|
33
41
|
export * from './EstimateRange.js';
|
|
@@ -43,6 +51,10 @@ export * from './Host.js';
|
|
|
43
51
|
export * from './HostPhysicalNIC.js';
|
|
44
52
|
export * from './HostStorageAdapter.js';
|
|
45
53
|
export * from './HostStorageLun.js';
|
|
54
|
+
export * from './ImageUpgradeImage.js';
|
|
55
|
+
export * from './ImageUpgradeResult.js';
|
|
56
|
+
export * from './ImageUpgradeStatus.js';
|
|
57
|
+
export * from './ImageUploadStatus.js';
|
|
46
58
|
export * from './Infra.js';
|
|
47
59
|
export * from './InspectionStatus.js';
|
|
48
60
|
export * from './InspectorStatus.js';
|
|
@@ -56,13 +68,17 @@ export * from './OsInfo.js';
|
|
|
56
68
|
export * from './PairCapability.js';
|
|
57
69
|
export * from './PairCapabilityRequest.js';
|
|
58
70
|
export * from './Process.js';
|
|
71
|
+
export * from './Product.js';
|
|
59
72
|
export * from './RDMBacking.js';
|
|
73
|
+
export * from './RDMHostLun.js';
|
|
60
74
|
export * from './RightsizingClusterResponse.js';
|
|
61
75
|
export * from './RightsizingClusterUtilization.js';
|
|
62
76
|
export * from './StartForecasterRequest.js';
|
|
63
77
|
export * from './StartInspectionRequest.js';
|
|
64
78
|
export * from './StopForecasterPair202Response.js';
|
|
79
|
+
export * from './StorageArray.js';
|
|
65
80
|
export * from './StorageIoConfiguration.js';
|
|
81
|
+
export * from './SuccessfulImageUpgrade.js';
|
|
66
82
|
export * from './UpdateGroupRequest.js';
|
|
67
83
|
export * from './UpdateInventory.js';
|
|
68
84
|
export * from './UpdateLabelVMsRequest.js';
|
|
@@ -79,6 +95,7 @@ export * from './VirtualMachineDatastore.js';
|
|
|
79
95
|
export * from './VirtualMachineDetail.js';
|
|
80
96
|
export * from './VirtualMachineDevice.js';
|
|
81
97
|
export * from './VirtualMachineDisk.js';
|
|
98
|
+
export * from './VirtualMachineIdentity.js';
|
|
82
99
|
export * from './VirtualMachineInspectionConcern.js';
|
|
83
100
|
export * from './VirtualMachineInspectionResults.js';
|
|
84
101
|
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;
|