@openshift-migration-advisor/agent-sdk 0.29.0 → 0.30.0-1fc8fff32c6c

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/agent-sdk@0.29.0
1
+ # @openshift-migration-advisor/agent-sdk@0.30.0-1fc8fff32c6c
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -200,7 +200,7 @@ and is automatically generated by the
200
200
  [OpenAPI Generator](https://openapi-generator.tech) project:
201
201
 
202
202
  - API version: `v2`
203
- - Package version: `0.29.0`
203
+ - Package version: `0.30.0-1fc8fff32c6c`
204
204
  - Generator version: `7.27.0-SNAPSHOT`
205
205
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
206
206
 
@@ -20,6 +20,18 @@ export interface Datastore {
20
20
  *
21
21
  */
22
22
  type: string;
23
+ /**
24
+ * Canonical identifiers for devices backing the datastore (for example, an NAA identifier for a SCSI LUN); may be unavailable for some datastore types
25
+ */
26
+ backingDeviceIds?: Array<string>;
27
+ /**
28
+ * Filesystem type reported by the datastore, such as VMFS, NFS, or NFS41
29
+ */
30
+ filesystemType?: string;
31
+ /**
32
+ * VMFS major version when reported; omitted when unknown or not applicable
33
+ */
34
+ filesystemMajorVersion?: number;
23
35
  /**
24
36
  * Storage access category derived from Datastore.Type
25
37
  */
@@ -37,7 +49,7 @@ export interface Datastore {
37
49
  */
38
50
  freeCapacityGB: number;
39
51
  /**
40
- *
52
+ * Vendor reported by matching backing devices when available
41
53
  */
42
54
  vendor: string;
43
55
  /**
@@ -53,7 +65,7 @@ export interface Datastore {
53
65
  */
54
66
  protocolType: string;
55
67
  /**
56
- *
68
+ * Model reported by matching backing devices when available
57
69
  */
58
70
  model: string;
59
71
  /**
@@ -51,6 +51,9 @@ export function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
51
51
  }
52
52
  return {
53
53
  'type': json['type'],
54
+ 'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
55
+ 'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
56
+ 'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
54
57
  'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
55
58
  'vsanSnapshotSupport': json['vsanSnapshotSupport'] == null ? undefined : json['vsanSnapshotSupport'],
56
59
  'totalCapacityGB': json['totalCapacityGB'],
@@ -73,6 +76,9 @@ export function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
73
76
  }
74
77
  return {
75
78
  'type': value['type'],
79
+ 'backingDeviceIds': value['backingDeviceIds'],
80
+ 'filesystemType': value['filesystemType'],
81
+ 'filesystemMajorVersion': value['filesystemMajorVersion'],
76
82
  'storageProtocol': value['storageProtocol'],
77
83
  'vsanSnapshotSupport': value['vsanSnapshotSupport'],
78
84
  'totalCapacityGB': value['totalCapacityGB'],
@@ -35,9 +35,13 @@ export interface Inventory1 {
35
35
  */
36
36
  vcenter?: InventoryData;
37
37
  /**
38
- * Timestamp when the inventory data was created or collected
38
+ * Timestamp when the inventory document was built
39
39
  */
40
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;
41
45
  }
42
46
  /**
43
47
  * Check if a given object implements the Inventory1 interface.
@@ -36,6 +36,7 @@ export function Inventory1FromJSONTyped(json, ignoreDiscriminator) {
36
36
  'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
37
37
  'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
38
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'])),
39
40
  };
40
41
  }
41
42
  export function Inventory1ToJSON(json) {
@@ -51,5 +52,6 @@ export function Inventory1ToJSONTyped(value, ignoreDiscriminator = false) {
51
52
  'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
52
53
  'vcenter': InventoryDataToJSON(value['vcenter']),
53
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']),
54
56
  };
55
57
  }
@@ -15,6 +15,12 @@
15
15
  * @interface VMFilterOptionsResponse
16
16
  */
17
17
  export interface VMFilterOptionsResponse {
18
+ /**
19
+ * Distinct metadata values grouped by key, available for VM filtering.
20
+ */
21
+ metadata: {
22
+ [key: string]: Array<string>;
23
+ };
18
24
  /**
19
25
  * Distinct cluster names
20
26
  */
@@ -15,6 +15,8 @@
15
15
  * Check if a given object implements the VMFilterOptionsResponse interface.
16
16
  */
17
17
  export function instanceOfVMFilterOptionsResponse(value) {
18
+ if (!('metadata' in value) || value['metadata'] === undefined)
19
+ return false;
18
20
  if (!('clusters' in value) || value['clusters'] === undefined)
19
21
  return false;
20
22
  if (!('datacenters' in value) || value['datacenters'] === undefined)
@@ -35,6 +37,7 @@ export function VMFilterOptionsResponseFromJSONTyped(json, ignoreDiscriminator)
35
37
  return json;
36
38
  }
37
39
  return {
40
+ 'metadata': json['metadata'],
38
41
  'clusters': json['clusters'],
39
42
  'datacenters': json['datacenters'],
40
43
  'concernLabels': json['concernLabels'],
@@ -50,6 +53,7 @@ export function VMFilterOptionsResponseToJSONTyped(value, ignoreDiscriminator =
50
53
  return value;
51
54
  }
52
55
  return {
56
+ 'metadata': value['metadata'],
53
57
  'clusters': value['clusters'],
54
58
  'datacenters': value['datacenters'],
55
59
  'concernLabels': value['concernLabels'],
@@ -128,6 +128,12 @@ export interface VirtualMachineDetail {
128
128
  * Whether Fault Tolerance is enabled
129
129
  */
130
130
  faultToleranceEnabled?: boolean;
131
+ /**
132
+ * Tags and custom attributes collected from vCenter or RVTools, grouped by tag category name, custom attribute name, or RVTools column header. Empty object when absent. vCenter tags with unresolved category names are omitted.
133
+ */
134
+ readonly metadata?: {
135
+ [key: string]: Array<string>;
136
+ };
131
137
  /**
132
138
  * Whether nested virtualization is enabled
133
139
  */
@@ -144,6 +150,10 @@ export interface VirtualMachineDetail {
144
150
  *
145
151
  */
146
152
  disks: Array<VirtualMachineDisk>;
153
+ /**
154
+ * Adapter count reported by the source; 0 when unavailable
155
+ */
156
+ nicCount: number;
147
157
  /**
148
158
  *
149
159
  */
@@ -180,4 +190,4 @@ export declare function instanceOfVirtualMachineDetail(value: object): value is
180
190
  export declare function VirtualMachineDetailFromJSON(json: any): VirtualMachineDetail;
181
191
  export declare function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineDetail;
182
192
  export declare function VirtualMachineDetailToJSON(json: any): VirtualMachineDetail;
183
- export declare function VirtualMachineDetailToJSONTyped(value?: VirtualMachineDetail | null, ignoreDiscriminator?: boolean): any;
193
+ export declare function VirtualMachineDetailToJSONTyped(value?: Omit<VirtualMachineDetail, 'metadata'> | null, ignoreDiscriminator?: boolean): any;
@@ -42,6 +42,8 @@ export function instanceOfVirtualMachineDetail(value) {
42
42
  return false;
43
43
  if (!('disks' in value) || value['disks'] === undefined)
44
44
  return false;
45
+ if (!('nicCount' in value) || value['nicCount'] === undefined)
46
+ return false;
45
47
  if (!('nics' in value) || value['nics'] === undefined)
46
48
  return false;
47
49
  return true;
@@ -80,10 +82,12 @@ export function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
80
82
  'inspectionStatus': json['inspectionStatus'] == null ? undefined : InspectionStatusFromJSON(json['inspectionStatus']),
81
83
  'labels': json['labels'] == null ? undefined : json['labels'],
82
84
  'faultToleranceEnabled': json['faultToleranceEnabled'] == null ? undefined : json['faultToleranceEnabled'],
85
+ 'metadata': json['metadata'] == null ? undefined : json['metadata'],
83
86
  'nestedHVEnabled': json['nestedHVEnabled'] == null ? undefined : json['nestedHVEnabled'],
84
87
  'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
85
88
  'toolsRunningStatus': json['toolsRunningStatus'] == null ? undefined : json['toolsRunningStatus'],
86
89
  'disks': (json['disks'].map(VirtualMachineDiskFromJSON)),
90
+ 'nicCount': json['nicCount'],
87
91
  'nics': (json['nics'].map(VirtualMachineNICFromJSON)),
88
92
  'devices': json['devices'] == null ? undefined : (json['devices'].map(VirtualMachineDeviceFromJSON)),
89
93
  'guestNetworks': json['guestNetworks'] == null ? undefined : (json['guestNetworks'].map(GuestNetworkFromJSON)),
@@ -131,6 +135,7 @@ export function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = fal
131
135
  'toolsStatus': value['toolsStatus'],
132
136
  'toolsRunningStatus': value['toolsRunningStatus'],
133
137
  'disks': (value['disks'].map(VirtualMachineDiskToJSON)),
138
+ 'nicCount': value['nicCount'],
134
139
  'nics': (value['nics'].map(VirtualMachineNICToJSON)),
135
140
  'devices': value['devices'] == null ? undefined : (value['devices'].map(VirtualMachineDeviceToJSON)),
136
141
  'guestNetworks': value['guestNetworks'] == null ? undefined : (value['guestNetworks'].map(GuestNetworkToJSON)),
@@ -15,6 +15,10 @@
15
15
  * @interface VirtualMachineNIC
16
16
  */
17
17
  export interface VirtualMachineNIC {
18
+ /**
19
+ * Virtual adapter model, such as Vmxnet3 or E1000
20
+ */
21
+ adapter?: string;
18
22
  /**
19
23
  * MAC address
20
24
  */
@@ -25,6 +25,7 @@ export function VirtualMachineNICFromJSONTyped(json, ignoreDiscriminator) {
25
25
  return json;
26
26
  }
27
27
  return {
28
+ 'adapter': json['adapter'] == null ? undefined : json['adapter'],
28
29
  'mac': json['mac'] == null ? undefined : json['mac'],
29
30
  'network': json['network'] == null ? undefined : json['network'],
30
31
  'index': json['index'] == null ? undefined : json['index'],
@@ -38,6 +39,7 @@ export function VirtualMachineNICToJSONTyped(value, ignoreDiscriminator = false)
38
39
  return value;
39
40
  }
40
41
  return {
42
+ 'adapter': value['adapter'],
41
43
  'mac': value['mac'],
42
44
  'network': value['network'],
43
45
  'index': value['index'],
@@ -20,6 +20,18 @@ export interface Datastore {
20
20
  *
21
21
  */
22
22
  type: string;
23
+ /**
24
+ * Canonical identifiers for devices backing the datastore (for example, an NAA identifier for a SCSI LUN); may be unavailable for some datastore types
25
+ */
26
+ backingDeviceIds?: Array<string>;
27
+ /**
28
+ * Filesystem type reported by the datastore, such as VMFS, NFS, or NFS41
29
+ */
30
+ filesystemType?: string;
31
+ /**
32
+ * VMFS major version when reported; omitted when unknown or not applicable
33
+ */
34
+ filesystemMajorVersion?: number;
23
35
  /**
24
36
  * Storage access category derived from Datastore.Type
25
37
  */
@@ -37,7 +49,7 @@ export interface Datastore {
37
49
  */
38
50
  freeCapacityGB: number;
39
51
  /**
40
- *
52
+ * Vendor reported by matching backing devices when available
41
53
  */
42
54
  vendor: string;
43
55
  /**
@@ -53,7 +65,7 @@ export interface Datastore {
53
65
  */
54
66
  protocolType: string;
55
67
  /**
56
- *
68
+ * Model reported by matching backing devices when available
57
69
  */
58
70
  model: string;
59
71
  /**
@@ -59,6 +59,9 @@ function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
59
59
  }
60
60
  return {
61
61
  'type': json['type'],
62
+ 'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
63
+ 'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
64
+ 'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
62
65
  'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
63
66
  'vsanSnapshotSupport': json['vsanSnapshotSupport'] == null ? undefined : json['vsanSnapshotSupport'],
64
67
  'totalCapacityGB': json['totalCapacityGB'],
@@ -81,6 +84,9 @@ function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
81
84
  }
82
85
  return {
83
86
  'type': value['type'],
87
+ 'backingDeviceIds': value['backingDeviceIds'],
88
+ 'filesystemType': value['filesystemType'],
89
+ 'filesystemMajorVersion': value['filesystemMajorVersion'],
84
90
  'storageProtocol': value['storageProtocol'],
85
91
  'vsanSnapshotSupport': value['vsanSnapshotSupport'],
86
92
  'totalCapacityGB': value['totalCapacityGB'],
@@ -35,9 +35,13 @@ export interface Inventory1 {
35
35
  */
36
36
  vcenter?: InventoryData;
37
37
  /**
38
- * Timestamp when the inventory data was created or collected
38
+ * Timestamp when the inventory document was built
39
39
  */
40
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;
41
45
  }
42
46
  /**
43
47
  * Check if a given object implements the Inventory1 interface.
@@ -43,6 +43,7 @@ function Inventory1FromJSONTyped(json, ignoreDiscriminator) {
43
43
  'clusters': ((0, runtime_js_1.mapValues)(json['clusters'], InventoryData_js_1.InventoryDataFromJSON)),
44
44
  'vcenter': json['vcenter'] == null ? undefined : (0, InventoryData_js_1.InventoryDataFromJSON)(json['vcenter']),
45
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'])),
46
47
  };
47
48
  }
48
49
  function Inventory1ToJSON(json) {
@@ -58,5 +59,6 @@ function Inventory1ToJSONTyped(value, ignoreDiscriminator = false) {
58
59
  'clusters': ((0, runtime_js_1.mapValues)(value['clusters'], InventoryData_js_1.InventoryDataToJSON)),
59
60
  'vcenter': (0, InventoryData_js_1.InventoryDataToJSON)(value['vcenter']),
60
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']),
61
63
  };
62
64
  }
@@ -15,6 +15,12 @@
15
15
  * @interface VMFilterOptionsResponse
16
16
  */
17
17
  export interface VMFilterOptionsResponse {
18
+ /**
19
+ * Distinct metadata values grouped by key, available for VM filtering.
20
+ */
21
+ metadata: {
22
+ [key: string]: Array<string>;
23
+ };
18
24
  /**
19
25
  * Distinct cluster names
20
26
  */
@@ -22,6 +22,8 @@ exports.VMFilterOptionsResponseToJSONTyped = VMFilterOptionsResponseToJSONTyped;
22
22
  * Check if a given object implements the VMFilterOptionsResponse interface.
23
23
  */
24
24
  function instanceOfVMFilterOptionsResponse(value) {
25
+ if (!('metadata' in value) || value['metadata'] === undefined)
26
+ return false;
25
27
  if (!('clusters' in value) || value['clusters'] === undefined)
26
28
  return false;
27
29
  if (!('datacenters' in value) || value['datacenters'] === undefined)
@@ -42,6 +44,7 @@ function VMFilterOptionsResponseFromJSONTyped(json, ignoreDiscriminator) {
42
44
  return json;
43
45
  }
44
46
  return {
47
+ 'metadata': json['metadata'],
45
48
  'clusters': json['clusters'],
46
49
  'datacenters': json['datacenters'],
47
50
  'concernLabels': json['concernLabels'],
@@ -57,6 +60,7 @@ function VMFilterOptionsResponseToJSONTyped(value, ignoreDiscriminator = false)
57
60
  return value;
58
61
  }
59
62
  return {
63
+ 'metadata': value['metadata'],
60
64
  'clusters': value['clusters'],
61
65
  'datacenters': value['datacenters'],
62
66
  'concernLabels': value['concernLabels'],
@@ -128,6 +128,12 @@ export interface VirtualMachineDetail {
128
128
  * Whether Fault Tolerance is enabled
129
129
  */
130
130
  faultToleranceEnabled?: boolean;
131
+ /**
132
+ * Tags and custom attributes collected from vCenter or RVTools, grouped by tag category name, custom attribute name, or RVTools column header. Empty object when absent. vCenter tags with unresolved category names are omitted.
133
+ */
134
+ readonly metadata?: {
135
+ [key: string]: Array<string>;
136
+ };
131
137
  /**
132
138
  * Whether nested virtualization is enabled
133
139
  */
@@ -144,6 +150,10 @@ export interface VirtualMachineDetail {
144
150
  *
145
151
  */
146
152
  disks: Array<VirtualMachineDisk>;
153
+ /**
154
+ * Adapter count reported by the source; 0 when unavailable
155
+ */
156
+ nicCount: number;
147
157
  /**
148
158
  *
149
159
  */
@@ -180,4 +190,4 @@ export declare function instanceOfVirtualMachineDetail(value: object): value is
180
190
  export declare function VirtualMachineDetailFromJSON(json: any): VirtualMachineDetail;
181
191
  export declare function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineDetail;
182
192
  export declare function VirtualMachineDetailToJSON(json: any): VirtualMachineDetail;
183
- export declare function VirtualMachineDetailToJSONTyped(value?: VirtualMachineDetail | null, ignoreDiscriminator?: boolean): any;
193
+ export declare function VirtualMachineDetailToJSONTyped(value?: Omit<VirtualMachineDetail, 'metadata'> | null, ignoreDiscriminator?: boolean): any;
@@ -49,6 +49,8 @@ function instanceOfVirtualMachineDetail(value) {
49
49
  return false;
50
50
  if (!('disks' in value) || value['disks'] === undefined)
51
51
  return false;
52
+ if (!('nicCount' in value) || value['nicCount'] === undefined)
53
+ return false;
52
54
  if (!('nics' in value) || value['nics'] === undefined)
53
55
  return false;
54
56
  return true;
@@ -87,10 +89,12 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
87
89
  'inspectionStatus': json['inspectionStatus'] == null ? undefined : (0, InspectionStatus_js_1.InspectionStatusFromJSON)(json['inspectionStatus']),
88
90
  'labels': json['labels'] == null ? undefined : json['labels'],
89
91
  'faultToleranceEnabled': json['faultToleranceEnabled'] == null ? undefined : json['faultToleranceEnabled'],
92
+ 'metadata': json['metadata'] == null ? undefined : json['metadata'],
90
93
  'nestedHVEnabled': json['nestedHVEnabled'] == null ? undefined : json['nestedHVEnabled'],
91
94
  'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
92
95
  'toolsRunningStatus': json['toolsRunningStatus'] == null ? undefined : json['toolsRunningStatus'],
93
96
  'disks': (json['disks'].map(VirtualMachineDisk_js_1.VirtualMachineDiskFromJSON)),
97
+ 'nicCount': json['nicCount'],
94
98
  'nics': (json['nics'].map(VirtualMachineNIC_js_1.VirtualMachineNICFromJSON)),
95
99
  'devices': json['devices'] == null ? undefined : (json['devices'].map(VirtualMachineDevice_js_1.VirtualMachineDeviceFromJSON)),
96
100
  'guestNetworks': json['guestNetworks'] == null ? undefined : (json['guestNetworks'].map(GuestNetwork_js_1.GuestNetworkFromJSON)),
@@ -138,6 +142,7 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
138
142
  'toolsStatus': value['toolsStatus'],
139
143
  'toolsRunningStatus': value['toolsRunningStatus'],
140
144
  'disks': (value['disks'].map(VirtualMachineDisk_js_1.VirtualMachineDiskToJSON)),
145
+ 'nicCount': value['nicCount'],
141
146
  'nics': (value['nics'].map(VirtualMachineNIC_js_1.VirtualMachineNICToJSON)),
142
147
  'devices': value['devices'] == null ? undefined : (value['devices'].map(VirtualMachineDevice_js_1.VirtualMachineDeviceToJSON)),
143
148
  'guestNetworks': value['guestNetworks'] == null ? undefined : (value['guestNetworks'].map(GuestNetwork_js_1.GuestNetworkToJSON)),
@@ -15,6 +15,10 @@
15
15
  * @interface VirtualMachineNIC
16
16
  */
17
17
  export interface VirtualMachineNIC {
18
+ /**
19
+ * Virtual adapter model, such as Vmxnet3 or E1000
20
+ */
21
+ adapter?: string;
18
22
  /**
19
23
  * MAC address
20
24
  */
@@ -32,6 +32,7 @@ function VirtualMachineNICFromJSONTyped(json, ignoreDiscriminator) {
32
32
  return json;
33
33
  }
34
34
  return {
35
+ 'adapter': json['adapter'] == null ? undefined : json['adapter'],
35
36
  'mac': json['mac'] == null ? undefined : json['mac'],
36
37
  'network': json['network'] == null ? undefined : json['network'],
37
38
  'index': json['index'] == null ? undefined : json['index'],
@@ -45,6 +46,7 @@ function VirtualMachineNICToJSONTyped(value, ignoreDiscriminator = false) {
45
46
  return value;
46
47
  }
47
48
  return {
49
+ 'adapter': value['adapter'],
48
50
  'mac': value['mac'],
49
51
  'network': value['network'],
50
52
  'index': value['index'],
package/docs/Datastore.md CHANGED
@@ -7,6 +7,9 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `type` | string
10
+ `backingDeviceIds` | Array&lt;string&gt;
11
+ `filesystemType` | string
12
+ `filesystemMajorVersion` | number
10
13
  `storageProtocol` | string
11
14
  `vsanSnapshotSupport` | boolean
12
15
  `totalCapacityGB` | number
@@ -27,6 +30,9 @@ import type { Datastore } from '@openshift-migration-advisor/agent-sdk'
27
30
  // TODO: Update the object below with actual values
28
31
  const example = {
29
32
  "type": null,
33
+ "backingDeviceIds": null,
34
+ "filesystemType": null,
35
+ "filesystemMajorVersion": null,
30
36
  "storageProtocol": null,
31
37
  "vsanSnapshotSupport": null,
32
38
  "totalCapacityGB": null,
@@ -11,6 +11,7 @@ Name | Type
11
11
  `clusters` | [{ [key: string]: InventoryData; }](InventoryData.md)
12
12
  `vcenter` | [InventoryData](InventoryData.md)
13
13
  `created_at` | Date
14
+ `collection_time` | Date
14
15
 
15
16
  ## Example
16
17
 
@@ -24,6 +25,7 @@ const example = {
24
25
  "clusters": null,
25
26
  "vcenter": null,
26
27
  "created_at": null,
28
+ "collection_time": null,
27
29
  } satisfies Inventory1
28
30
 
29
31
  console.log(example)
@@ -6,6 +6,7 @@
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
+ `metadata` | { [key: string]: Array&lt;string&gt;; }
9
10
  `clusters` | Array&lt;string&gt;
10
11
  `datacenters` | Array&lt;string&gt;
11
12
  `concernLabels` | Array&lt;string&gt;
@@ -19,6 +20,7 @@ import type { VMFilterOptionsResponse } from '@openshift-migration-advisor/agent
19
20
 
20
21
  // TODO: Update the object below with actual values
21
22
  const example = {
23
+ "metadata": null,
22
24
  "clusters": null,
23
25
  "datacenters": null,
24
26
  "concernLabels": null,
@@ -32,10 +32,12 @@ Name | Type
32
32
  `inspectionStatus` | [InspectionStatus](InspectionStatus.md)
33
33
  `labels` | Array&lt;string&gt;
34
34
  `faultToleranceEnabled` | boolean
35
+ `metadata` | { [key: string]: Array&lt;string&gt;; }
35
36
  `nestedHVEnabled` | boolean
36
37
  `toolsStatus` | string
37
38
  `toolsRunningStatus` | string
38
39
  `disks` | [Array&lt;VirtualMachineDisk&gt;](VirtualMachineDisk.md)
40
+ `nicCount` | number
39
41
  `nics` | [Array&lt;VirtualMachineNIC&gt;](VirtualMachineNIC.md)
40
42
  `devices` | [Array&lt;VirtualMachineDevice&gt;](VirtualMachineDevice.md)
41
43
  `guestNetworks` | [Array&lt;GuestNetwork&gt;](GuestNetwork.md)
@@ -77,10 +79,12 @@ const example = {
77
79
  "inspectionStatus": null,
78
80
  "labels": null,
79
81
  "faultToleranceEnabled": null,
82
+ "metadata": null,
80
83
  "nestedHVEnabled": null,
81
84
  "toolsStatus": null,
82
85
  "toolsRunningStatus": null,
83
86
  "disks": null,
87
+ "nicCount": null,
84
88
  "nics": null,
85
89
  "devices": null,
86
90
  "guestNetworks": null,
@@ -6,6 +6,7 @@
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
+ `adapter` | string
9
10
  `mac` | string
10
11
  `network` | string
11
12
  `index` | number
@@ -17,6 +18,7 @@ import type { VirtualMachineNIC } from '@openshift-migration-advisor/agent-sdk'
17
18
 
18
19
  // TODO: Update the object below with actual values
19
20
  const example = {
21
+ "adapter": null,
20
22
  "mac": null,
21
23
  "network": null,
22
24
  "index": null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/agent-sdk",
3
- "version": "0.29.0",
3
+ "version": "0.30.0-1fc8fff32c6c",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/agent-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -31,6 +31,18 @@ export interface Datastore {
31
31
  *
32
32
  */
33
33
  type: string;
34
+ /**
35
+ * Canonical identifiers for devices backing the datastore (for example, an NAA identifier for a SCSI LUN); may be unavailable for some datastore types
36
+ */
37
+ backingDeviceIds?: Array<string>;
38
+ /**
39
+ * Filesystem type reported by the datastore, such as VMFS, NFS, or NFS41
40
+ */
41
+ filesystemType?: string;
42
+ /**
43
+ * VMFS major version when reported; omitted when unknown or not applicable
44
+ */
45
+ filesystemMajorVersion?: number;
34
46
  /**
35
47
  * Storage access category derived from Datastore.Type
36
48
  */
@@ -48,7 +60,7 @@ export interface Datastore {
48
60
  */
49
61
  freeCapacityGB: number;
50
62
  /**
51
- *
63
+ * Vendor reported by matching backing devices when available
52
64
  */
53
65
  vendor: string;
54
66
  /**
@@ -64,7 +76,7 @@ export interface Datastore {
64
76
  */
65
77
  protocolType: string;
66
78
  /**
67
- *
79
+ * Model reported by matching backing devices when available
68
80
  */
69
81
  model: string;
70
82
  /**
@@ -115,6 +127,9 @@ export function DatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean):
115
127
  return {
116
128
 
117
129
  'type': json['type'],
130
+ 'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
131
+ 'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
132
+ 'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
118
133
  'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
119
134
  'vsanSnapshotSupport': json['vsanSnapshotSupport'] == null ? undefined : json['vsanSnapshotSupport'],
120
135
  'totalCapacityGB': json['totalCapacityGB'],
@@ -141,6 +156,9 @@ export function DatastoreToJSONTyped(value?: Datastore | null, ignoreDiscriminat
141
156
  return {
142
157
 
143
158
  'type': value['type'],
159
+ 'backingDeviceIds': value['backingDeviceIds'],
160
+ 'filesystemType': value['filesystemType'],
161
+ 'filesystemMajorVersion': value['filesystemMajorVersion'],
144
162
  'storageProtocol': value['storageProtocol'],
145
163
  'vsanSnapshotSupport': value['vsanSnapshotSupport'],
146
164
  'totalCapacityGB': value['totalCapacityGB'],
@@ -44,9 +44,13 @@ export interface Inventory1 {
44
44
  */
45
45
  vcenter?: InventoryData;
46
46
  /**
47
- * Timestamp when the inventory data was created or collected
47
+ * Timestamp when the inventory document was built
48
48
  */
49
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;
50
54
  }
51
55
 
52
56
  /**
@@ -73,6 +77,7 @@ export function Inventory1FromJSONTyped(json: any, ignoreDiscriminator: boolean)
73
77
  'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
74
78
  'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
75
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'])),
76
81
  };
77
82
  }
78
83
 
@@ -92,6 +97,7 @@ export function Inventory1ToJSONTyped(value?: Inventory1 | null, ignoreDiscrimin
92
97
  'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
93
98
  'vcenter': InventoryDataToJSON(value['vcenter']),
94
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']),
95
101
  };
96
102
  }
97
103
 
@@ -19,6 +19,10 @@ import { mapValues } from '../runtime.js';
19
19
  * @interface VMFilterOptionsResponse
20
20
  */
21
21
  export interface VMFilterOptionsResponse {
22
+ /**
23
+ * Distinct metadata values grouped by key, available for VM filtering.
24
+ */
25
+ metadata: { [key: string]: Array<string>; };
22
26
  /**
23
27
  * Distinct cluster names
24
28
  */
@@ -45,6 +49,7 @@ export interface VMFilterOptionsResponse {
45
49
  * Check if a given object implements the VMFilterOptionsResponse interface.
46
50
  */
47
51
  export function instanceOfVMFilterOptionsResponse(value: object): value is VMFilterOptionsResponse {
52
+ if (!('metadata' in value) || value['metadata'] === undefined) return false;
48
53
  if (!('clusters' in value) || value['clusters'] === undefined) return false;
49
54
  if (!('datacenters' in value) || value['datacenters'] === undefined) return false;
50
55
  if (!('concernLabels' in value) || value['concernLabels'] === undefined) return false;
@@ -63,6 +68,7 @@ export function VMFilterOptionsResponseFromJSONTyped(json: any, ignoreDiscrimina
63
68
  }
64
69
  return {
65
70
 
71
+ 'metadata': json['metadata'],
66
72
  'clusters': json['clusters'],
67
73
  'datacenters': json['datacenters'],
68
74
  'concernLabels': json['concernLabels'],
@@ -82,6 +88,7 @@ export function VMFilterOptionsResponseToJSONTyped(value?: VMFilterOptionsRespon
82
88
 
83
89
  return {
84
90
 
91
+ 'metadata': value['metadata'],
85
92
  'clusters': value['clusters'],
86
93
  'datacenters': value['datacenters'],
87
94
  'concernLabels': value['concernLabels'],
@@ -187,6 +187,10 @@ export interface VirtualMachineDetail {
187
187
  * Whether Fault Tolerance is enabled
188
188
  */
189
189
  faultToleranceEnabled?: boolean;
190
+ /**
191
+ * Tags and custom attributes collected from vCenter or RVTools, grouped by tag category name, custom attribute name, or RVTools column header. Empty object when absent. vCenter tags with unresolved category names are omitted.
192
+ */
193
+ readonly metadata?: { [key: string]: Array<string>; };
190
194
  /**
191
195
  * Whether nested virtualization is enabled
192
196
  */
@@ -203,6 +207,10 @@ export interface VirtualMachineDetail {
203
207
  *
204
208
  */
205
209
  disks: Array<VirtualMachineDisk>;
210
+ /**
211
+ * Adapter count reported by the source; 0 when unavailable
212
+ */
213
+ nicCount: number;
206
214
  /**
207
215
  *
208
216
  */
@@ -246,6 +254,7 @@ export function instanceOfVirtualMachineDetail(value: object): value is VirtualM
246
254
  if (!('coresPerSocket' in value) || value['coresPerSocket'] === undefined) return false;
247
255
  if (!('memoryMB' in value) || value['memoryMB'] === undefined) return false;
248
256
  if (!('disks' in value) || value['disks'] === undefined) return false;
257
+ if (!('nicCount' in value) || value['nicCount'] === undefined) return false;
249
258
  if (!('nics' in value) || value['nics'] === undefined) return false;
250
259
  return true;
251
260
  }
@@ -286,10 +295,12 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
286
295
  'inspectionStatus': json['inspectionStatus'] == null ? undefined : InspectionStatusFromJSON(json['inspectionStatus']),
287
296
  'labels': json['labels'] == null ? undefined : json['labels'],
288
297
  'faultToleranceEnabled': json['faultToleranceEnabled'] == null ? undefined : json['faultToleranceEnabled'],
298
+ 'metadata': json['metadata'] == null ? undefined : json['metadata'],
289
299
  'nestedHVEnabled': json['nestedHVEnabled'] == null ? undefined : json['nestedHVEnabled'],
290
300
  'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
291
301
  'toolsRunningStatus': json['toolsRunningStatus'] == null ? undefined : json['toolsRunningStatus'],
292
302
  'disks': ((json['disks'] as Array<any>).map(VirtualMachineDiskFromJSON)),
303
+ 'nicCount': json['nicCount'],
293
304
  'nics': ((json['nics'] as Array<any>).map(VirtualMachineNICFromJSON)),
294
305
  'devices': json['devices'] == null ? undefined : ((json['devices'] as Array<any>).map(VirtualMachineDeviceFromJSON)),
295
306
  'guestNetworks': json['guestNetworks'] == null ? undefined : ((json['guestNetworks'] as Array<any>).map(GuestNetworkFromJSON)),
@@ -304,7 +315,7 @@ export function VirtualMachineDetailToJSON(json: any): VirtualMachineDetail {
304
315
  return VirtualMachineDetailToJSONTyped(json, false);
305
316
  }
306
317
 
307
- export function VirtualMachineDetailToJSONTyped(value?: VirtualMachineDetail | null, ignoreDiscriminator: boolean = false): any {
318
+ export function VirtualMachineDetailToJSONTyped(value?: Omit<VirtualMachineDetail, 'metadata'> | null, ignoreDiscriminator: boolean = false): any {
308
319
  if (value == null) {
309
320
  return value;
310
321
  }
@@ -341,6 +352,7 @@ export function VirtualMachineDetailToJSONTyped(value?: VirtualMachineDetail | n
341
352
  'toolsStatus': value['toolsStatus'],
342
353
  'toolsRunningStatus': value['toolsRunningStatus'],
343
354
  'disks': ((value['disks'] as Array<any>).map(VirtualMachineDiskToJSON)),
355
+ 'nicCount': value['nicCount'],
344
356
  'nics': ((value['nics'] as Array<any>).map(VirtualMachineNICToJSON)),
345
357
  'devices': value['devices'] == null ? undefined : ((value['devices'] as Array<any>).map(VirtualMachineDeviceToJSON)),
346
358
  'guestNetworks': value['guestNetworks'] == null ? undefined : ((value['guestNetworks'] as Array<any>).map(GuestNetworkToJSON)),
@@ -19,6 +19,10 @@ import { mapValues } from '../runtime.js';
19
19
  * @interface VirtualMachineNIC
20
20
  */
21
21
  export interface VirtualMachineNIC {
22
+ /**
23
+ * Virtual adapter model, such as Vmxnet3 or E1000
24
+ */
25
+ adapter?: string;
22
26
  /**
23
27
  * MAC address
24
28
  */
@@ -50,6 +54,7 @@ export function VirtualMachineNICFromJSONTyped(json: any, ignoreDiscriminator: b
50
54
  }
51
55
  return {
52
56
 
57
+ 'adapter': json['adapter'] == null ? undefined : json['adapter'],
53
58
  'mac': json['mac'] == null ? undefined : json['mac'],
54
59
  'network': json['network'] == null ? undefined : json['network'],
55
60
  'index': json['index'] == null ? undefined : json['index'],
@@ -67,6 +72,7 @@ export function VirtualMachineNICToJSONTyped(value?: VirtualMachineNIC | null, i
67
72
 
68
73
  return {
69
74
 
75
+ 'adapter': value['adapter'],
70
76
  'mac': value['mac'],
71
77
  'network': value['network'],
72
78
  'index': value['index'],