@openshift-migration-advisor/agent-sdk 0.30.0 → 0.31.0

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.
Files changed (51) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +5 -3
  4. package/dist/esm/models/Datastore.d.ts +14 -2
  5. package/dist/esm/models/Datastore.js +6 -0
  6. package/dist/esm/models/Inventory1.d.ts +5 -1
  7. package/dist/esm/models/Inventory1.js +2 -0
  8. package/dist/esm/models/RDMBacking.d.ts +30 -0
  9. package/dist/esm/models/RDMBacking.js +41 -0
  10. package/dist/esm/models/VirtualMachineDatastore.d.ts +66 -0
  11. package/dist/esm/models/VirtualMachineDatastore.js +59 -0
  12. package/dist/esm/models/VirtualMachineDetail.d.ts +4 -0
  13. package/dist/esm/models/VirtualMachineDetail.js +4 -0
  14. package/dist/esm/models/VirtualMachineDisk.d.ts +10 -0
  15. package/dist/esm/models/VirtualMachineDisk.js +6 -0
  16. package/dist/esm/models/VirtualMachineNIC.d.ts +4 -0
  17. package/dist/esm/models/VirtualMachineNIC.js +2 -0
  18. package/dist/esm/models/index.d.ts +2 -0
  19. package/dist/esm/models/index.js +2 -0
  20. package/dist/models/Datastore.d.ts +14 -2
  21. package/dist/models/Datastore.js +6 -0
  22. package/dist/models/Inventory1.d.ts +5 -1
  23. package/dist/models/Inventory1.js +2 -0
  24. package/dist/models/RDMBacking.d.ts +30 -0
  25. package/dist/models/RDMBacking.js +48 -0
  26. package/dist/models/VirtualMachineDatastore.d.ts +66 -0
  27. package/dist/models/VirtualMachineDatastore.js +66 -0
  28. package/dist/models/VirtualMachineDetail.d.ts +4 -0
  29. package/dist/models/VirtualMachineDetail.js +4 -0
  30. package/dist/models/VirtualMachineDisk.d.ts +10 -0
  31. package/dist/models/VirtualMachineDisk.js +6 -0
  32. package/dist/models/VirtualMachineNIC.d.ts +4 -0
  33. package/dist/models/VirtualMachineNIC.js +2 -0
  34. package/dist/models/index.d.ts +2 -0
  35. package/dist/models/index.js +2 -0
  36. package/docs/Datastore.md +6 -0
  37. package/docs/Inventory1.md +2 -0
  38. package/docs/RDMBacking.md +35 -0
  39. package/docs/VirtualMachineDatastore.md +53 -0
  40. package/docs/VirtualMachineDetail.md +2 -0
  41. package/docs/VirtualMachineDisk.md +4 -0
  42. package/docs/VirtualMachineNIC.md +2 -0
  43. package/package.json +1 -1
  44. package/src/models/Datastore.ts +20 -2
  45. package/src/models/Inventory1.ts +7 -1
  46. package/src/models/RDMBacking.ts +63 -0
  47. package/src/models/VirtualMachineDatastore.ts +117 -0
  48. package/src/models/VirtualMachineDetail.ts +7 -0
  49. package/src/models/VirtualMachineDisk.ts +27 -0
  50. package/src/models/VirtualMachineNIC.ts +6 -0
  51. package/src/models/index.ts +2 -0
@@ -0,0 +1,48 @@
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.instanceOfRDMBacking = instanceOfRDMBacking;
17
+ exports.RDMBackingFromJSON = RDMBackingFromJSON;
18
+ exports.RDMBackingFromJSONTyped = RDMBackingFromJSONTyped;
19
+ exports.RDMBackingToJSON = RDMBackingToJSON;
20
+ exports.RDMBackingToJSONTyped = RDMBackingToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the RDMBacking interface.
23
+ */
24
+ function instanceOfRDMBacking(value) {
25
+ return true;
26
+ }
27
+ function RDMBackingFromJSON(json) {
28
+ return RDMBackingFromJSONTyped(json, false);
29
+ }
30
+ function RDMBackingFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
36
+ };
37
+ }
38
+ function RDMBackingToJSON(json) {
39
+ return RDMBackingToJSONTyped(json, false);
40
+ }
41
+ function RDMBackingToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'lunUuid': value['lunUuid'],
47
+ };
48
+ }
@@ -0,0 +1,66 @@
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
+ /**
13
+ * Datastore backing this virtual disk
14
+ * @export
15
+ * @interface VirtualMachineDatastore
16
+ */
17
+ export interface VirtualMachineDatastore {
18
+ /**
19
+ * Datastore object ID
20
+ */
21
+ id?: string;
22
+ /**
23
+ * Datastore name
24
+ */
25
+ name?: string;
26
+ /**
27
+ * Datastore type (VMFS, NFS, vSAN, vVol)
28
+ */
29
+ type?: string;
30
+ /**
31
+ * Datastore filesystem type
32
+ */
33
+ filesystemType?: string;
34
+ /**
35
+ * Datastore filesystem major version when available
36
+ */
37
+ filesystemMajorVersion?: number;
38
+ /**
39
+ * Backing storage transport protocol when available (for example FC, iSCSI, or NFS)
40
+ */
41
+ protocolType?: string;
42
+ /**
43
+ * Datastore storage access category when available (Block, File, or Object)
44
+ */
45
+ storageProtocol?: string;
46
+ /**
47
+ * Canonical identifiers for devices backing the datastore (for example, an NAA identifier for a SCSI LUN); may be unavailable for some datastore types
48
+ */
49
+ backingDeviceIds?: Array<string>;
50
+ /**
51
+ * Vendor reported by matching backing devices when available
52
+ */
53
+ vendor?: string;
54
+ /**
55
+ * Model reported by matching backing devices when available
56
+ */
57
+ model?: string;
58
+ }
59
+ /**
60
+ * Check if a given object implements the VirtualMachineDatastore interface.
61
+ */
62
+ export declare function instanceOfVirtualMachineDatastore(value: object): value is VirtualMachineDatastore;
63
+ export declare function VirtualMachineDatastoreFromJSON(json: any): VirtualMachineDatastore;
64
+ export declare function VirtualMachineDatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineDatastore;
65
+ export declare function VirtualMachineDatastoreToJSON(json: any): VirtualMachineDatastore;
66
+ export declare function VirtualMachineDatastoreToJSONTyped(value?: VirtualMachineDatastore | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
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.instanceOfVirtualMachineDatastore = instanceOfVirtualMachineDatastore;
17
+ exports.VirtualMachineDatastoreFromJSON = VirtualMachineDatastoreFromJSON;
18
+ exports.VirtualMachineDatastoreFromJSONTyped = VirtualMachineDatastoreFromJSONTyped;
19
+ exports.VirtualMachineDatastoreToJSON = VirtualMachineDatastoreToJSON;
20
+ exports.VirtualMachineDatastoreToJSONTyped = VirtualMachineDatastoreToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the VirtualMachineDatastore interface.
23
+ */
24
+ function instanceOfVirtualMachineDatastore(value) {
25
+ return true;
26
+ }
27
+ function VirtualMachineDatastoreFromJSON(json) {
28
+ return VirtualMachineDatastoreFromJSONTyped(json, false);
29
+ }
30
+ function VirtualMachineDatastoreFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'id': json['id'] == null ? undefined : json['id'],
36
+ 'name': json['name'] == null ? undefined : json['name'],
37
+ 'type': json['type'] == null ? undefined : json['type'],
38
+ 'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
39
+ 'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
40
+ 'protocolType': json['protocolType'] == null ? undefined : json['protocolType'],
41
+ 'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
42
+ 'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
43
+ 'vendor': json['vendor'] == null ? undefined : json['vendor'],
44
+ 'model': json['model'] == null ? undefined : json['model'],
45
+ };
46
+ }
47
+ function VirtualMachineDatastoreToJSON(json) {
48
+ return VirtualMachineDatastoreToJSONTyped(json, false);
49
+ }
50
+ function VirtualMachineDatastoreToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'id': value['id'],
56
+ 'name': value['name'],
57
+ 'type': value['type'],
58
+ 'filesystemType': value['filesystemType'],
59
+ 'filesystemMajorVersion': value['filesystemMajorVersion'],
60
+ 'protocolType': value['protocolType'],
61
+ 'storageProtocol': value['storageProtocol'],
62
+ 'backingDeviceIds': value['backingDeviceIds'],
63
+ 'vendor': value['vendor'],
64
+ 'model': value['model'],
65
+ };
66
+ }
@@ -150,6 +150,10 @@ export interface VirtualMachineDetail {
150
150
  *
151
151
  */
152
152
  disks: Array<VirtualMachineDisk>;
153
+ /**
154
+ * Adapter count reported by the source; 0 when unavailable
155
+ */
156
+ nicCount: number;
153
157
  /**
154
158
  *
155
159
  */
@@ -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;
@@ -92,6 +94,7 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
92
94
  'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
93
95
  'toolsRunningStatus': json['toolsRunningStatus'] == null ? undefined : json['toolsRunningStatus'],
94
96
  'disks': (json['disks'].map(VirtualMachineDisk_js_1.VirtualMachineDiskFromJSON)),
97
+ 'nicCount': json['nicCount'],
95
98
  'nics': (json['nics'].map(VirtualMachineNIC_js_1.VirtualMachineNICFromJSON)),
96
99
  'devices': json['devices'] == null ? undefined : (json['devices'].map(VirtualMachineDevice_js_1.VirtualMachineDeviceFromJSON)),
97
100
  'guestNetworks': json['guestNetworks'] == null ? undefined : (json['guestNetworks'].map(GuestNetwork_js_1.GuestNetworkFromJSON)),
@@ -139,6 +142,7 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
139
142
  'toolsStatus': value['toolsStatus'],
140
143
  'toolsRunningStatus': value['toolsRunningStatus'],
141
144
  'disks': (value['disks'].map(VirtualMachineDisk_js_1.VirtualMachineDiskToJSON)),
145
+ 'nicCount': value['nicCount'],
142
146
  'nics': (value['nics'].map(VirtualMachineNIC_js_1.VirtualMachineNICToJSON)),
143
147
  'devices': value['devices'] == null ? undefined : (value['devices'].map(VirtualMachineDevice_js_1.VirtualMachineDeviceToJSON)),
144
148
  'guestNetworks': value['guestNetworks'] == null ? undefined : (value['guestNetworks'].map(GuestNetwork_js_1.GuestNetworkToJSON)),
@@ -9,6 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { RDMBacking } from './RDMBacking.js';
13
+ import type { VirtualMachineDatastore } from './VirtualMachineDatastore.js';
12
14
  /**
13
15
  *
14
16
  * @export
@@ -35,6 +37,10 @@ export interface VirtualMachineDisk {
35
37
  * Whether this is a Raw Device Mapping
36
38
  */
37
39
  rdm?: boolean;
40
+ /**
41
+ *
42
+ */
43
+ rdmBacking?: RDMBacking;
38
44
  /**
39
45
  * Bus type (scsi, ide, sata, nvme)
40
46
  */
@@ -43,6 +49,10 @@ export interface VirtualMachineDisk {
43
49
  * Disk mode (persistent, independent_persistent, independent_nonpersistent)
44
50
  */
45
51
  mode?: string;
52
+ /**
53
+ *
54
+ */
55
+ datastore?: VirtualMachineDatastore;
46
56
  }
47
57
  /**
48
58
  * Check if a given object implements the VirtualMachineDisk interface.
@@ -18,6 +18,8 @@ exports.VirtualMachineDiskFromJSON = VirtualMachineDiskFromJSON;
18
18
  exports.VirtualMachineDiskFromJSONTyped = VirtualMachineDiskFromJSONTyped;
19
19
  exports.VirtualMachineDiskToJSON = VirtualMachineDiskToJSON;
20
20
  exports.VirtualMachineDiskToJSONTyped = VirtualMachineDiskToJSONTyped;
21
+ const RDMBacking_js_1 = require("./RDMBacking.js");
22
+ const VirtualMachineDatastore_js_1 = require("./VirtualMachineDatastore.js");
21
23
  /**
22
24
  * Check if a given object implements the VirtualMachineDisk interface.
23
25
  */
@@ -37,8 +39,10 @@ function VirtualMachineDiskFromJSONTyped(json, ignoreDiscriminator) {
37
39
  'capacity': json['capacity'] == null ? undefined : json['capacity'],
38
40
  'shared': json['shared'] == null ? undefined : json['shared'],
39
41
  'rdm': json['rdm'] == null ? undefined : json['rdm'],
42
+ 'rdmBacking': json['rdmBacking'] == null ? undefined : (0, RDMBacking_js_1.RDMBackingFromJSON)(json['rdmBacking']),
40
43
  'bus': json['bus'] == null ? undefined : json['bus'],
41
44
  'mode': json['mode'] == null ? undefined : json['mode'],
45
+ 'datastore': json['datastore'] == null ? undefined : (0, VirtualMachineDatastore_js_1.VirtualMachineDatastoreFromJSON)(json['datastore']),
42
46
  };
43
47
  }
44
48
  function VirtualMachineDiskToJSON(json) {
@@ -54,7 +58,9 @@ function VirtualMachineDiskToJSONTyped(value, ignoreDiscriminator = false) {
54
58
  'capacity': value['capacity'],
55
59
  'shared': value['shared'],
56
60
  'rdm': value['rdm'],
61
+ 'rdmBacking': (0, RDMBacking_js_1.RDMBackingToJSON)(value['rdmBacking']),
57
62
  'bus': value['bus'],
58
63
  'mode': value['mode'],
64
+ 'datastore': (0, VirtualMachineDatastore_js_1.VirtualMachineDatastoreToJSON)(value['datastore']),
59
65
  };
60
66
  }
@@ -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'],
@@ -51,6 +51,7 @@ export * from './OsInfo.js';
51
51
  export * from './PairCapability.js';
52
52
  export * from './PairCapabilityRequest.js';
53
53
  export * from './Process.js';
54
+ export * from './RDMBacking.js';
54
55
  export * from './RightsizingClusterResponse.js';
55
56
  export * from './RightsizingClusterUtilization.js';
56
57
  export * from './StartForecasterRequest.js';
@@ -69,6 +70,7 @@ export * from './VcenterCredentials.js';
69
70
  export * from './VddkProperties.js';
70
71
  export * from './VersionInfo.js';
71
72
  export * from './VirtualMachine.js';
73
+ export * from './VirtualMachineDatastore.js';
72
74
  export * from './VirtualMachineDetail.js';
73
75
  export * from './VirtualMachineDevice.js';
74
76
  export * from './VirtualMachineDisk.js';
@@ -69,6 +69,7 @@ __exportStar(require("./OsInfo.js"), exports);
69
69
  __exportStar(require("./PairCapability.js"), exports);
70
70
  __exportStar(require("./PairCapabilityRequest.js"), exports);
71
71
  __exportStar(require("./Process.js"), exports);
72
+ __exportStar(require("./RDMBacking.js"), exports);
72
73
  __exportStar(require("./RightsizingClusterResponse.js"), exports);
73
74
  __exportStar(require("./RightsizingClusterUtilization.js"), exports);
74
75
  __exportStar(require("./StartForecasterRequest.js"), exports);
@@ -87,6 +88,7 @@ __exportStar(require("./VcenterCredentials.js"), exports);
87
88
  __exportStar(require("./VddkProperties.js"), exports);
88
89
  __exportStar(require("./VersionInfo.js"), exports);
89
90
  __exportStar(require("./VirtualMachine.js"), exports);
91
+ __exportStar(require("./VirtualMachineDatastore.js"), exports);
90
92
  __exportStar(require("./VirtualMachineDetail.js"), exports);
91
93
  __exportStar(require("./VirtualMachineDevice.js"), exports);
92
94
  __exportStar(require("./VirtualMachineDisk.js"), exports);
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)
@@ -0,0 +1,35 @@
1
+
2
+ # RDMBacking
3
+
4
+ Source-provided backing identity for an RDM disk; omitted when unavailable
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `lunUuid` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { RDMBacking } from '@openshift-migration-advisor/agent-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "lunUuid": null,
20
+ } satisfies RDMBacking
21
+
22
+ console.log(example)
23
+
24
+ // Convert the instance to a JSON string
25
+ const exampleJSON: string = JSON.stringify(example)
26
+ console.log(exampleJSON)
27
+
28
+ // Parse the JSON string back to an object
29
+ const exampleParsed = JSON.parse(exampleJSON) as RDMBacking
30
+ console.log(exampleParsed)
31
+ ```
32
+
33
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
34
+
35
+
@@ -0,0 +1,53 @@
1
+
2
+ # VirtualMachineDatastore
3
+
4
+ Datastore backing this virtual disk
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `id` | string
11
+ `name` | string
12
+ `type` | string
13
+ `filesystemType` | string
14
+ `filesystemMajorVersion` | number
15
+ `protocolType` | string
16
+ `storageProtocol` | string
17
+ `backingDeviceIds` | Array&lt;string&gt;
18
+ `vendor` | string
19
+ `model` | string
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import type { VirtualMachineDatastore } from '@openshift-migration-advisor/agent-sdk'
25
+
26
+ // TODO: Update the object below with actual values
27
+ const example = {
28
+ "id": null,
29
+ "name": null,
30
+ "type": null,
31
+ "filesystemType": null,
32
+ "filesystemMajorVersion": null,
33
+ "protocolType": null,
34
+ "storageProtocol": null,
35
+ "backingDeviceIds": null,
36
+ "vendor": null,
37
+ "model": null,
38
+ } satisfies VirtualMachineDatastore
39
+
40
+ console.log(example)
41
+
42
+ // Convert the instance to a JSON string
43
+ const exampleJSON: string = JSON.stringify(example)
44
+ console.log(exampleJSON)
45
+
46
+ // Parse the JSON string back to an object
47
+ const exampleParsed = JSON.parse(exampleJSON) as VirtualMachineDatastore
48
+ console.log(exampleParsed)
49
+ ```
50
+
51
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
52
+
53
+
@@ -37,6 +37,7 @@ Name | Type
37
37
  `toolsStatus` | string
38
38
  `toolsRunningStatus` | string
39
39
  `disks` | [Array&lt;VirtualMachineDisk&gt;](VirtualMachineDisk.md)
40
+ `nicCount` | number
40
41
  `nics` | [Array&lt;VirtualMachineNIC&gt;](VirtualMachineNIC.md)
41
42
  `devices` | [Array&lt;VirtualMachineDevice&gt;](VirtualMachineDevice.md)
42
43
  `guestNetworks` | [Array&lt;GuestNetwork&gt;](GuestNetwork.md)
@@ -83,6 +84,7 @@ const example = {
83
84
  "toolsStatus": null,
84
85
  "toolsRunningStatus": null,
85
86
  "disks": null,
87
+ "nicCount": null,
86
88
  "nics": null,
87
89
  "devices": null,
88
90
  "guestNetworks": null,
@@ -11,8 +11,10 @@ Name | Type
11
11
  `capacity` | number
12
12
  `shared` | boolean
13
13
  `rdm` | boolean
14
+ `rdmBacking` | [RDMBacking](RDMBacking.md)
14
15
  `bus` | string
15
16
  `mode` | string
17
+ `datastore` | [VirtualMachineDatastore](VirtualMachineDatastore.md)
16
18
 
17
19
  ## Example
18
20
 
@@ -26,8 +28,10 @@ const example = {
26
28
  "capacity": null,
27
29
  "shared": null,
28
30
  "rdm": null,
31
+ "rdmBacking": null,
29
32
  "bus": null,
30
33
  "mode": null,
34
+ "datastore": null,
31
35
  } satisfies VirtualMachineDisk
32
36
 
33
37
  console.log(example)
@@ -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.30.0",
3
+ "version": "0.31.0",
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