@openshift-migration-advisor/agent-sdk 0.30.0-d689d7b6eb5f → 0.31.0-8fbde84d9594
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 +6 -2
- package/README.md +5 -3
- package/dist/apis/InventoriesApi.d.ts +9 -9
- package/dist/apis/InventoriesApi.js +3 -3
- package/dist/esm/apis/InventoriesApi.d.ts +9 -9
- package/dist/esm/apis/InventoriesApi.js +3 -3
- package/dist/esm/models/CollectedInventory.d.ts +31 -0
- package/dist/esm/models/CollectedInventory.js +44 -0
- package/dist/esm/models/GroupResponse.d.ts +2 -2
- package/dist/esm/models/GroupResponse.js +3 -3
- package/dist/esm/models/Host.d.ts +10 -0
- package/dist/esm/models/Host.js +6 -0
- package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
- package/dist/esm/models/HostStorageAdapter.js +55 -0
- package/dist/esm/models/HostStorageLun.d.ts +50 -0
- package/dist/esm/models/HostStorageLun.js +51 -0
- package/dist/esm/models/Inventory.d.ts +24 -2
- package/dist/esm/models/Inventory.js +17 -4
- package/dist/esm/models/UpdateInventory.d.ts +2 -2
- package/dist/esm/models/UpdateInventory.js +3 -3
- package/dist/esm/models/index.d.ts +3 -1
- package/dist/esm/models/index.js +3 -1
- package/dist/models/CollectedInventory.d.ts +31 -0
- package/dist/models/CollectedInventory.js +51 -0
- package/dist/models/GroupResponse.d.ts +2 -2
- package/dist/models/GroupResponse.js +3 -3
- package/dist/models/Host.d.ts +10 -0
- package/dist/models/Host.js +6 -0
- package/dist/models/HostStorageAdapter.d.ts +58 -0
- package/dist/models/HostStorageAdapter.js +62 -0
- package/dist/models/HostStorageLun.d.ts +50 -0
- package/dist/models/HostStorageLun.js +58 -0
- package/dist/models/Inventory.d.ts +24 -2
- package/dist/models/Inventory.js +17 -4
- package/dist/models/UpdateInventory.d.ts +2 -2
- package/dist/models/UpdateInventory.js +3 -3
- package/dist/models/index.d.ts +3 -1
- package/dist/models/index.js +3 -1
- package/docs/{Inventory1.md → CollectedInventory.md} +6 -16
- package/docs/GroupResponse.md +1 -1
- package/docs/Host.md +4 -0
- package/docs/HostStorageAdapter.md +49 -0
- package/docs/HostStorageLun.md +45 -0
- package/docs/InventoriesApi.md +4 -4
- package/docs/Inventory.md +12 -2
- package/docs/UpdateInventory.md +1 -1
- package/package.json +1 -1
- package/src/apis/InventoriesApi.ts +14 -14
- package/src/models/CollectedInventory.ts +72 -0
- package/src/models/GroupResponse.ts +9 -9
- package/src/models/Host.ts +27 -0
- package/src/models/HostStorageAdapter.ts +105 -0
- package/src/models/HostStorageLun.ts +93 -0
- package/src/models/Inventory.ts +42 -11
- package/src/models/UpdateInventory.ts +9 -9
- package/src/models/index.ts +3 -1
- package/dist/esm/models/Inventory1.d.ts +0 -53
- package/dist/esm/models/Inventory1.js +0 -57
- package/dist/models/Inventory1.d.ts +0 -53
- package/dist/models/Inventory1.js +0 -64
- package/src/models/Inventory1.ts +0 -103
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
* Source-provided adapter facts. Missing or conflicting values are omitted.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface HostStorageAdapter
|
|
20
|
+
*/
|
|
21
|
+
export interface HostStorageAdapter {
|
|
22
|
+
/**
|
|
23
|
+
* Host-local adapter device name.
|
|
24
|
+
*/
|
|
25
|
+
device?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Source adapter key; distinct from device name.
|
|
28
|
+
*/
|
|
29
|
+
key?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Adapter type as supplied by the source.
|
|
32
|
+
*/
|
|
33
|
+
type?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Adapter protocol as supplied by the source.
|
|
36
|
+
*/
|
|
37
|
+
protocol?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Adapter model.
|
|
40
|
+
*/
|
|
41
|
+
model?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Adapter driver.
|
|
44
|
+
*/
|
|
45
|
+
driver?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Node WWN as identifier text, preserving leading zeros.
|
|
48
|
+
*/
|
|
49
|
+
nodeWwn?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Port WWN as identifier text, preserving leading zeros.
|
|
52
|
+
*/
|
|
53
|
+
portWwn?: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the HostStorageAdapter interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfHostStorageAdapter(value: object): value is HostStorageAdapter {
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function HostStorageAdapterFromJSON(json: any): HostStorageAdapter {
|
|
64
|
+
return HostStorageAdapterFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function HostStorageAdapterFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostStorageAdapter {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'device': json['device'] == null ? undefined : json['device'],
|
|
74
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
75
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
76
|
+
'protocol': json['protocol'] == null ? undefined : json['protocol'],
|
|
77
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
78
|
+
'driver': json['driver'] == null ? undefined : json['driver'],
|
|
79
|
+
'nodeWwn': json['nodeWwn'] == null ? undefined : json['nodeWwn'],
|
|
80
|
+
'portWwn': json['portWwn'] == null ? undefined : json['portWwn'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function HostStorageAdapterToJSON(json: any): HostStorageAdapter {
|
|
85
|
+
return HostStorageAdapterToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function HostStorageAdapterToJSONTyped(value?: HostStorageAdapter | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'device': value['device'],
|
|
96
|
+
'key': value['key'],
|
|
97
|
+
'type': value['type'],
|
|
98
|
+
'protocol': value['protocol'],
|
|
99
|
+
'model': value['model'],
|
|
100
|
+
'driver': value['driver'],
|
|
101
|
+
'nodeWwn': value['nodeWwn'],
|
|
102
|
+
'portWwn': value['portWwn'],
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
* A host-visible LUN; missing or conflicting identity/metadata fields are omitted.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface HostStorageLun
|
|
20
|
+
*/
|
|
21
|
+
export interface HostStorageLun {
|
|
22
|
+
/**
|
|
23
|
+
* Canonical device name, distinct from the LUN UUID.
|
|
24
|
+
*/
|
|
25
|
+
canonicalName?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Source SCSI disk key.
|
|
28
|
+
*/
|
|
29
|
+
key?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Source-provided LUN UUID; never inferred from the device name or key.
|
|
32
|
+
*/
|
|
33
|
+
lunUuid?: string;
|
|
34
|
+
/**
|
|
35
|
+
* LUN vendor.
|
|
36
|
+
*/
|
|
37
|
+
vendor?: string;
|
|
38
|
+
/**
|
|
39
|
+
* LUN model.
|
|
40
|
+
*/
|
|
41
|
+
model?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Distinct sorted adapter device names associated with this LUN, including names whose adapter metadata is unavailable.
|
|
44
|
+
*/
|
|
45
|
+
adapterDevices?: Array<string>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the HostStorageLun interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfHostStorageLun(value: object): value is HostStorageLun {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function HostStorageLunFromJSON(json: any): HostStorageLun {
|
|
56
|
+
return HostStorageLunFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function HostStorageLunFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostStorageLun {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'canonicalName': json['canonicalName'] == null ? undefined : json['canonicalName'],
|
|
66
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
67
|
+
'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
|
|
68
|
+
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
69
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
70
|
+
'adapterDevices': json['adapterDevices'] == null ? undefined : json['adapterDevices'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function HostStorageLunToJSON(json: any): HostStorageLun {
|
|
75
|
+
return HostStorageLunToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function HostStorageLunToJSONTyped(value?: HostStorageLun | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'canonicalName': value['canonicalName'],
|
|
86
|
+
'key': value['key'],
|
|
87
|
+
'lunUuid': value['lunUuid'],
|
|
88
|
+
'vendor': value['vendor'],
|
|
89
|
+
'model': value['model'],
|
|
90
|
+
'adapterDevices': value['adapterDevices'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
package/src/models/Inventory.ts
CHANGED
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { mapValues } from '../runtime.js';
|
|
16
|
-
import type {
|
|
15
|
+
import { mapValues, parseDate, parseDateTime, serializeDate, serializeDateTime } from '../runtime.js';
|
|
16
|
+
import type { InventoryData } from './InventoryData.js';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
InventoryDataFromJSON,
|
|
19
|
+
InventoryDataFromJSONTyped,
|
|
20
|
+
InventoryDataToJSON,
|
|
21
|
+
InventoryDataToJSONTyped,
|
|
22
|
+
} from './InventoryData.js';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -27,17 +27,38 @@ import {
|
|
|
27
27
|
* @interface Inventory
|
|
28
28
|
*/
|
|
29
29
|
export interface Inventory {
|
|
30
|
+
/**
|
|
31
|
+
* ID of the vCenter
|
|
32
|
+
*/
|
|
33
|
+
vcenter_id: string;
|
|
34
|
+
/**
|
|
35
|
+
* Version of the vCenter api. For example "8.0.3.0"
|
|
36
|
+
*/
|
|
37
|
+
vcenter_version?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Map of cluster names to their inventory data
|
|
40
|
+
*/
|
|
41
|
+
clusters: { [key: string]: InventoryData; };
|
|
30
42
|
/**
|
|
31
43
|
*
|
|
32
44
|
*/
|
|
33
|
-
|
|
45
|
+
vcenter?: InventoryData;
|
|
46
|
+
/**
|
|
47
|
+
* Timestamp when the inventory document was built
|
|
48
|
+
*/
|
|
49
|
+
created_at?: Date;
|
|
50
|
+
/**
|
|
51
|
+
* Oldest known source collection time. Agent data uses collection database creation time; RVTools uses export metadata, assuming UTC when no timezone is specified. Null when unknown.
|
|
52
|
+
*/
|
|
53
|
+
collection_time?: Date | null;
|
|
34
54
|
}
|
|
35
55
|
|
|
36
56
|
/**
|
|
37
57
|
* Check if a given object implements the Inventory interface.
|
|
38
58
|
*/
|
|
39
59
|
export function instanceOfInventory(value: object): value is Inventory {
|
|
40
|
-
if (!('
|
|
60
|
+
if (!('vcenter_id' in value) || value['vcenter_id'] === undefined) return false;
|
|
61
|
+
if (!('clusters' in value) || value['clusters'] === undefined) return false;
|
|
41
62
|
return true;
|
|
42
63
|
}
|
|
43
64
|
|
|
@@ -51,7 +72,12 @@ export function InventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
51
72
|
}
|
|
52
73
|
return {
|
|
53
74
|
|
|
54
|
-
'
|
|
75
|
+
'vcenter_id': json['vcenter_id'],
|
|
76
|
+
'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
77
|
+
'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
|
|
78
|
+
'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
|
|
79
|
+
'created_at': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
|
|
80
|
+
'collection_time': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : (parseDateTime(json['collection_time'])),
|
|
55
81
|
};
|
|
56
82
|
}
|
|
57
83
|
|
|
@@ -66,7 +92,12 @@ export function InventoryToJSONTyped(value?: Inventory | null, ignoreDiscriminat
|
|
|
66
92
|
|
|
67
93
|
return {
|
|
68
94
|
|
|
69
|
-
'
|
|
95
|
+
'vcenter_id': value['vcenter_id'],
|
|
96
|
+
'vcenter_version': value['vcenter_version'],
|
|
97
|
+
'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
|
|
98
|
+
'vcenter': InventoryDataToJSON(value['vcenter']),
|
|
99
|
+
'created_at': value['created_at'] == null ? value['created_at'] : serializeDateTime(value['created_at']),
|
|
100
|
+
'collection_time': value['collection_time'] == null ? value['collection_time'] : serializeDateTime(value['collection_time']),
|
|
70
101
|
};
|
|
71
102
|
}
|
|
72
103
|
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime.js';
|
|
16
|
-
import type {
|
|
16
|
+
import type { Inventory } from './Inventory.js';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
InventoryFromJSON,
|
|
19
|
+
InventoryFromJSONTyped,
|
|
20
|
+
InventoryToJSON,
|
|
21
|
+
InventoryToJSONTyped,
|
|
22
|
+
} from './Inventory.js';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -34,7 +34,7 @@ export interface UpdateInventory {
|
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
*/
|
|
37
|
-
inventory:
|
|
37
|
+
inventory: Inventory;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
/**
|
|
@@ -57,7 +57,7 @@ export function UpdateInventoryFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
57
57
|
return {
|
|
58
58
|
|
|
59
59
|
'agentId': json['agentId'],
|
|
60
|
-
'inventory':
|
|
60
|
+
'inventory': InventoryFromJSON(json['inventory']),
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -73,7 +73,7 @@ export function UpdateInventoryToJSONTyped(value?: UpdateInventory | null, ignor
|
|
|
73
73
|
return {
|
|
74
74
|
|
|
75
75
|
'agentId': value['agentId'],
|
|
76
|
-
'inventory':
|
|
76
|
+
'inventory': InventoryToJSON(value['inventory']),
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
|
package/src/models/index.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './CapabilityStatus.js';
|
|
|
12
12
|
export * from './CapabilityStatusCapabilities.js';
|
|
13
13
|
export * from './ClusterFeatures.js';
|
|
14
14
|
export * from './ClusterUtilization.js';
|
|
15
|
+
export * from './CollectedInventory.js';
|
|
15
16
|
export * from './Collection.js';
|
|
16
17
|
export * from './CollectionAggregate.js';
|
|
17
18
|
export * from './CollectionComparisonDiff.js';
|
|
@@ -39,11 +40,12 @@ export * from './GroupResponse.js';
|
|
|
39
40
|
export * from './GuestNetwork.js';
|
|
40
41
|
export * from './Histogram.js';
|
|
41
42
|
export * from './Host.js';
|
|
43
|
+
export * from './HostStorageAdapter.js';
|
|
44
|
+
export * from './HostStorageLun.js';
|
|
42
45
|
export * from './Infra.js';
|
|
43
46
|
export * from './InspectionStatus.js';
|
|
44
47
|
export * from './InspectorStatus.js';
|
|
45
48
|
export * from './Inventory.js';
|
|
46
|
-
export * from './Inventory1.js';
|
|
47
49
|
export * from './InventoryData.js';
|
|
48
50
|
export * from './IssuesBreakdown.js';
|
|
49
51
|
export * from './MigrationIssue.js';
|
|
@@ -1,53 +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: v2
|
|
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 { InventoryData } from './InventoryData.js';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface Inventory1
|
|
17
|
-
*/
|
|
18
|
-
export interface Inventory1 {
|
|
19
|
-
/**
|
|
20
|
-
* ID of the vCenter
|
|
21
|
-
*/
|
|
22
|
-
vcenter_id: string;
|
|
23
|
-
/**
|
|
24
|
-
* Version of the vCenter api. For example "8.0.3.0"
|
|
25
|
-
*/
|
|
26
|
-
vcenter_version?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Map of cluster names to their inventory data
|
|
29
|
-
*/
|
|
30
|
-
clusters: {
|
|
31
|
-
[key: string]: InventoryData;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
*/
|
|
36
|
-
vcenter?: InventoryData;
|
|
37
|
-
/**
|
|
38
|
-
* Timestamp when the inventory document was built
|
|
39
|
-
*/
|
|
40
|
-
created_at?: Date;
|
|
41
|
-
/**
|
|
42
|
-
* Oldest known source collection time. Agent data uses collection database creation time; RVTools uses export metadata, assuming UTC when no timezone is specified. Null when unknown.
|
|
43
|
-
*/
|
|
44
|
-
collection_time?: Date | null;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Check if a given object implements the Inventory1 interface.
|
|
48
|
-
*/
|
|
49
|
-
export declare function instanceOfInventory1(value: object): value is Inventory1;
|
|
50
|
-
export declare function Inventory1FromJSON(json: any): Inventory1;
|
|
51
|
-
export declare function Inventory1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Inventory1;
|
|
52
|
-
export declare function Inventory1ToJSON(json: any): Inventory1;
|
|
53
|
-
export declare function Inventory1ToJSONTyped(value?: Inventory1 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,57 +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: 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
|
-
import { mapValues, parseDateTime, serializeDateTime } from '../runtime.js';
|
|
15
|
-
import { InventoryDataFromJSON, InventoryDataToJSON, } from './InventoryData.js';
|
|
16
|
-
/**
|
|
17
|
-
* Check if a given object implements the Inventory1 interface.
|
|
18
|
-
*/
|
|
19
|
-
export function instanceOfInventory1(value) {
|
|
20
|
-
if (!('vcenter_id' in value) || value['vcenter_id'] === undefined)
|
|
21
|
-
return false;
|
|
22
|
-
if (!('clusters' in value) || value['clusters'] === undefined)
|
|
23
|
-
return false;
|
|
24
|
-
return true;
|
|
25
|
-
}
|
|
26
|
-
export function Inventory1FromJSON(json) {
|
|
27
|
-
return Inventory1FromJSONTyped(json, false);
|
|
28
|
-
}
|
|
29
|
-
export function Inventory1FromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
-
if (json == null) {
|
|
31
|
-
return json;
|
|
32
|
-
}
|
|
33
|
-
return {
|
|
34
|
-
'vcenter_id': json['vcenter_id'],
|
|
35
|
-
'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
36
|
-
'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
|
|
37
|
-
'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
|
|
38
|
-
'created_at': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
|
|
39
|
-
'collection_time': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : (parseDateTime(json['collection_time'])),
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
export function Inventory1ToJSON(json) {
|
|
43
|
-
return Inventory1ToJSONTyped(json, false);
|
|
44
|
-
}
|
|
45
|
-
export function Inventory1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
-
if (value == null) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
return {
|
|
50
|
-
'vcenter_id': value['vcenter_id'],
|
|
51
|
-
'vcenter_version': value['vcenter_version'],
|
|
52
|
-
'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
|
|
53
|
-
'vcenter': InventoryDataToJSON(value['vcenter']),
|
|
54
|
-
'created_at': value['created_at'] == null ? value['created_at'] : serializeDateTime(value['created_at']),
|
|
55
|
-
'collection_time': value['collection_time'] == null ? value['collection_time'] : serializeDateTime(value['collection_time']),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
@@ -1,53 +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: v2
|
|
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 { InventoryData } from './InventoryData.js';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface Inventory1
|
|
17
|
-
*/
|
|
18
|
-
export interface Inventory1 {
|
|
19
|
-
/**
|
|
20
|
-
* ID of the vCenter
|
|
21
|
-
*/
|
|
22
|
-
vcenter_id: string;
|
|
23
|
-
/**
|
|
24
|
-
* Version of the vCenter api. For example "8.0.3.0"
|
|
25
|
-
*/
|
|
26
|
-
vcenter_version?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Map of cluster names to their inventory data
|
|
29
|
-
*/
|
|
30
|
-
clusters: {
|
|
31
|
-
[key: string]: InventoryData;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
*/
|
|
36
|
-
vcenter?: InventoryData;
|
|
37
|
-
/**
|
|
38
|
-
* Timestamp when the inventory document was built
|
|
39
|
-
*/
|
|
40
|
-
created_at?: Date;
|
|
41
|
-
/**
|
|
42
|
-
* Oldest known source collection time. Agent data uses collection database creation time; RVTools uses export metadata, assuming UTC when no timezone is specified. Null when unknown.
|
|
43
|
-
*/
|
|
44
|
-
collection_time?: Date | null;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Check if a given object implements the Inventory1 interface.
|
|
48
|
-
*/
|
|
49
|
-
export declare function instanceOfInventory1(value: object): value is Inventory1;
|
|
50
|
-
export declare function Inventory1FromJSON(json: any): Inventory1;
|
|
51
|
-
export declare function Inventory1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Inventory1;
|
|
52
|
-
export declare function Inventory1ToJSON(json: any): Inventory1;
|
|
53
|
-
export declare function Inventory1ToJSONTyped(value?: Inventory1 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,64 +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: v2
|
|
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.instanceOfInventory1 = instanceOfInventory1;
|
|
17
|
-
exports.Inventory1FromJSON = Inventory1FromJSON;
|
|
18
|
-
exports.Inventory1FromJSONTyped = Inventory1FromJSONTyped;
|
|
19
|
-
exports.Inventory1ToJSON = Inventory1ToJSON;
|
|
20
|
-
exports.Inventory1ToJSONTyped = Inventory1ToJSONTyped;
|
|
21
|
-
const runtime_js_1 = require("../runtime.js");
|
|
22
|
-
const InventoryData_js_1 = require("./InventoryData.js");
|
|
23
|
-
/**
|
|
24
|
-
* Check if a given object implements the Inventory1 interface.
|
|
25
|
-
*/
|
|
26
|
-
function instanceOfInventory1(value) {
|
|
27
|
-
if (!('vcenter_id' in value) || value['vcenter_id'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('clusters' in value) || value['clusters'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
function Inventory1FromJSON(json) {
|
|
34
|
-
return Inventory1FromJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
function Inventory1FromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'vcenter_id': json['vcenter_id'],
|
|
42
|
-
'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
43
|
-
'clusters': ((0, runtime_js_1.mapValues)(json['clusters'], InventoryData_js_1.InventoryDataFromJSON)),
|
|
44
|
-
'vcenter': json['vcenter'] == null ? undefined : (0, InventoryData_js_1.InventoryDataFromJSON)(json['vcenter']),
|
|
45
|
-
'created_at': json['created_at'] == null ? undefined : ((0, runtime_js_1.parseDateTime)(json['created_at'])),
|
|
46
|
-
'collection_time': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : ((0, runtime_js_1.parseDateTime)(json['collection_time'])),
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
function Inventory1ToJSON(json) {
|
|
50
|
-
return Inventory1ToJSONTyped(json, false);
|
|
51
|
-
}
|
|
52
|
-
function Inventory1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
-
if (value == null) {
|
|
54
|
-
return value;
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
'vcenter_id': value['vcenter_id'],
|
|
58
|
-
'vcenter_version': value['vcenter_version'],
|
|
59
|
-
'clusters': ((0, runtime_js_1.mapValues)(value['clusters'], InventoryData_js_1.InventoryDataToJSON)),
|
|
60
|
-
'vcenter': (0, InventoryData_js_1.InventoryDataToJSON)(value['vcenter']),
|
|
61
|
-
'created_at': value['created_at'] == null ? value['created_at'] : (0, runtime_js_1.serializeDateTime)(value['created_at']),
|
|
62
|
-
'collection_time': value['collection_time'] == null ? value['collection_time'] : (0, runtime_js_1.serializeDateTime)(value['collection_time']),
|
|
63
|
-
};
|
|
64
|
-
}
|