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

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 (104) hide show
  1. package/.openapi-generator/FILES +12 -2
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +9 -4
  4. package/dist/apis/InventoriesApi.d.ts +9 -9
  5. package/dist/apis/InventoriesApi.js +3 -3
  6. package/dist/esm/apis/InventoriesApi.d.ts +9 -9
  7. package/dist/esm/apis/InventoriesApi.js +3 -3
  8. package/dist/esm/models/CollectedInventory.d.ts +31 -0
  9. package/dist/esm/models/CollectedInventory.js +44 -0
  10. package/dist/esm/models/Datastore.d.ts +14 -2
  11. package/dist/esm/models/Datastore.js +6 -0
  12. package/dist/esm/models/GroupResponse.d.ts +2 -2
  13. package/dist/esm/models/GroupResponse.js +3 -3
  14. package/dist/esm/models/Host.d.ts +10 -0
  15. package/dist/esm/models/Host.js +6 -0
  16. package/dist/esm/models/HostPhysicalNIC.d.ts +34 -0
  17. package/dist/esm/models/HostPhysicalNIC.js +45 -0
  18. package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
  19. package/dist/esm/models/HostStorageAdapter.js +55 -0
  20. package/dist/esm/models/HostStorageLun.d.ts +50 -0
  21. package/dist/esm/models/HostStorageLun.js +51 -0
  22. package/dist/esm/models/Inventory.d.ts +24 -2
  23. package/dist/esm/models/Inventory.js +17 -4
  24. package/dist/esm/models/RDMBacking.d.ts +30 -0
  25. package/dist/esm/models/RDMBacking.js +41 -0
  26. package/dist/esm/models/UpdateInventory.d.ts +2 -2
  27. package/dist/esm/models/UpdateInventory.js +3 -3
  28. package/dist/esm/models/VirtualMachineDatastore.d.ts +66 -0
  29. package/dist/esm/models/VirtualMachineDatastore.js +59 -0
  30. package/dist/esm/models/VirtualMachineDetail.d.ts +13 -0
  31. package/dist/esm/models/VirtualMachineDetail.js +9 -0
  32. package/dist/esm/models/VirtualMachineDisk.d.ts +10 -0
  33. package/dist/esm/models/VirtualMachineDisk.js +6 -0
  34. package/dist/esm/models/VirtualMachineNIC.d.ts +16 -0
  35. package/dist/esm/models/VirtualMachineNIC.js +8 -0
  36. package/dist/esm/models/index.d.ts +6 -1
  37. package/dist/esm/models/index.js +6 -1
  38. package/dist/models/CollectedInventory.d.ts +31 -0
  39. package/dist/models/CollectedInventory.js +51 -0
  40. package/dist/models/Datastore.d.ts +14 -2
  41. package/dist/models/Datastore.js +6 -0
  42. package/dist/models/GroupResponse.d.ts +2 -2
  43. package/dist/models/GroupResponse.js +3 -3
  44. package/dist/models/Host.d.ts +10 -0
  45. package/dist/models/Host.js +6 -0
  46. package/dist/models/HostPhysicalNIC.d.ts +34 -0
  47. package/dist/models/HostPhysicalNIC.js +52 -0
  48. package/dist/models/HostStorageAdapter.d.ts +58 -0
  49. package/dist/models/HostStorageAdapter.js +62 -0
  50. package/dist/models/HostStorageLun.d.ts +50 -0
  51. package/dist/models/HostStorageLun.js +58 -0
  52. package/dist/models/Inventory.d.ts +24 -2
  53. package/dist/models/Inventory.js +17 -4
  54. package/dist/models/RDMBacking.d.ts +30 -0
  55. package/dist/models/RDMBacking.js +48 -0
  56. package/dist/models/UpdateInventory.d.ts +2 -2
  57. package/dist/models/UpdateInventory.js +3 -3
  58. package/dist/models/VirtualMachineDatastore.d.ts +66 -0
  59. package/dist/models/VirtualMachineDatastore.js +66 -0
  60. package/dist/models/VirtualMachineDetail.d.ts +13 -0
  61. package/dist/models/VirtualMachineDetail.js +9 -0
  62. package/dist/models/VirtualMachineDisk.d.ts +10 -0
  63. package/dist/models/VirtualMachineDisk.js +6 -0
  64. package/dist/models/VirtualMachineNIC.d.ts +16 -0
  65. package/dist/models/VirtualMachineNIC.js +8 -0
  66. package/dist/models/index.d.ts +6 -1
  67. package/dist/models/index.js +6 -1
  68. package/docs/CollectedInventory.md +34 -0
  69. package/docs/Datastore.md +6 -0
  70. package/docs/GroupResponse.md +1 -1
  71. package/docs/Host.md +4 -0
  72. package/docs/HostPhysicalNIC.md +36 -0
  73. package/docs/HostStorageAdapter.md +49 -0
  74. package/docs/HostStorageLun.md +45 -0
  75. package/docs/InventoriesApi.md +4 -4
  76. package/docs/Inventory.md +12 -2
  77. package/docs/{Inventory1.md → RDMBacking.md} +7 -14
  78. package/docs/UpdateInventory.md +1 -1
  79. package/docs/VirtualMachineDatastore.md +53 -0
  80. package/docs/VirtualMachineDetail.md +6 -0
  81. package/docs/VirtualMachineDisk.md +4 -0
  82. package/docs/VirtualMachineNIC.md +8 -0
  83. package/package.json +1 -1
  84. package/src/apis/InventoriesApi.ts +14 -14
  85. package/src/models/CollectedInventory.ts +72 -0
  86. package/src/models/Datastore.ts +20 -2
  87. package/src/models/GroupResponse.ts +9 -9
  88. package/src/models/Host.ts +27 -0
  89. package/src/models/HostPhysicalNIC.ts +70 -0
  90. package/src/models/HostStorageAdapter.ts +105 -0
  91. package/src/models/HostStorageLun.ts +93 -0
  92. package/src/models/Inventory.ts +42 -11
  93. package/src/models/RDMBacking.ts +63 -0
  94. package/src/models/UpdateInventory.ts +9 -9
  95. package/src/models/VirtualMachineDatastore.ts +117 -0
  96. package/src/models/VirtualMachineDetail.ts +26 -0
  97. package/src/models/VirtualMachineDisk.ts +27 -0
  98. package/src/models/VirtualMachineNIC.ts +24 -0
  99. package/src/models/index.ts +6 -1
  100. package/dist/esm/models/Inventory1.d.ts +0 -49
  101. package/dist/esm/models/Inventory1.js +0 -55
  102. package/dist/models/Inventory1.d.ts +0 -49
  103. package/dist/models/Inventory1.js +0 -62
  104. package/src/models/Inventory1.ts +0 -97
@@ -0,0 +1,58 @@
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
+ * Source-provided adapter facts. Missing or conflicting values are omitted.
14
+ * @export
15
+ * @interface HostStorageAdapter
16
+ */
17
+ export interface HostStorageAdapter {
18
+ /**
19
+ * Host-local adapter device name.
20
+ */
21
+ device?: string;
22
+ /**
23
+ * Source adapter key; distinct from device name.
24
+ */
25
+ key?: string;
26
+ /**
27
+ * Adapter type as supplied by the source.
28
+ */
29
+ type?: string;
30
+ /**
31
+ * Adapter protocol as supplied by the source.
32
+ */
33
+ protocol?: string;
34
+ /**
35
+ * Adapter model.
36
+ */
37
+ model?: string;
38
+ /**
39
+ * Adapter driver.
40
+ */
41
+ driver?: string;
42
+ /**
43
+ * Node WWN as identifier text, preserving leading zeros.
44
+ */
45
+ nodeWwn?: string;
46
+ /**
47
+ * Port WWN as identifier text, preserving leading zeros.
48
+ */
49
+ portWwn?: string;
50
+ }
51
+ /**
52
+ * Check if a given object implements the HostStorageAdapter interface.
53
+ */
54
+ export declare function instanceOfHostStorageAdapter(value: object): value is HostStorageAdapter;
55
+ export declare function HostStorageAdapterFromJSON(json: any): HostStorageAdapter;
56
+ export declare function HostStorageAdapterFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostStorageAdapter;
57
+ export declare function HostStorageAdapterToJSON(json: any): HostStorageAdapter;
58
+ export declare function HostStorageAdapterToJSONTyped(value?: HostStorageAdapter | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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
+ * Check if a given object implements the HostStorageAdapter interface.
16
+ */
17
+ export function instanceOfHostStorageAdapter(value) {
18
+ return true;
19
+ }
20
+ export function HostStorageAdapterFromJSON(json) {
21
+ return HostStorageAdapterFromJSONTyped(json, false);
22
+ }
23
+ export function HostStorageAdapterFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'device': json['device'] == null ? undefined : json['device'],
29
+ 'key': json['key'] == null ? undefined : json['key'],
30
+ 'type': json['type'] == null ? undefined : json['type'],
31
+ 'protocol': json['protocol'] == null ? undefined : json['protocol'],
32
+ 'model': json['model'] == null ? undefined : json['model'],
33
+ 'driver': json['driver'] == null ? undefined : json['driver'],
34
+ 'nodeWwn': json['nodeWwn'] == null ? undefined : json['nodeWwn'],
35
+ 'portWwn': json['portWwn'] == null ? undefined : json['portWwn'],
36
+ };
37
+ }
38
+ export function HostStorageAdapterToJSON(json) {
39
+ return HostStorageAdapterToJSONTyped(json, false);
40
+ }
41
+ export function HostStorageAdapterToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'device': value['device'],
47
+ 'key': value['key'],
48
+ 'type': value['type'],
49
+ 'protocol': value['protocol'],
50
+ 'model': value['model'],
51
+ 'driver': value['driver'],
52
+ 'nodeWwn': value['nodeWwn'],
53
+ 'portWwn': value['portWwn'],
54
+ };
55
+ }
@@ -0,0 +1,50 @@
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
+ * A host-visible LUN; missing or conflicting identity/metadata fields are omitted.
14
+ * @export
15
+ * @interface HostStorageLun
16
+ */
17
+ export interface HostStorageLun {
18
+ /**
19
+ * Canonical device name, distinct from the LUN UUID.
20
+ */
21
+ canonicalName?: string;
22
+ /**
23
+ * Source SCSI disk key.
24
+ */
25
+ key?: string;
26
+ /**
27
+ * Source-provided LUN UUID; never inferred from the device name or key.
28
+ */
29
+ lunUuid?: string;
30
+ /**
31
+ * LUN vendor.
32
+ */
33
+ vendor?: string;
34
+ /**
35
+ * LUN model.
36
+ */
37
+ model?: string;
38
+ /**
39
+ * Distinct sorted adapter device names associated with this LUN, including names whose adapter metadata is unavailable.
40
+ */
41
+ adapterDevices?: Array<string>;
42
+ }
43
+ /**
44
+ * Check if a given object implements the HostStorageLun interface.
45
+ */
46
+ export declare function instanceOfHostStorageLun(value: object): value is HostStorageLun;
47
+ export declare function HostStorageLunFromJSON(json: any): HostStorageLun;
48
+ export declare function HostStorageLunFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostStorageLun;
49
+ export declare function HostStorageLunToJSON(json: any): HostStorageLun;
50
+ export declare function HostStorageLunToJSONTyped(value?: HostStorageLun | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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
+ * Check if a given object implements the HostStorageLun interface.
16
+ */
17
+ export function instanceOfHostStorageLun(value) {
18
+ return true;
19
+ }
20
+ export function HostStorageLunFromJSON(json) {
21
+ return HostStorageLunFromJSONTyped(json, false);
22
+ }
23
+ export function HostStorageLunFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'canonicalName': json['canonicalName'] == null ? undefined : json['canonicalName'],
29
+ 'key': json['key'] == null ? undefined : json['key'],
30
+ 'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
31
+ 'vendor': json['vendor'] == null ? undefined : json['vendor'],
32
+ 'model': json['model'] == null ? undefined : json['model'],
33
+ 'adapterDevices': json['adapterDevices'] == null ? undefined : json['adapterDevices'],
34
+ };
35
+ }
36
+ export function HostStorageLunToJSON(json) {
37
+ return HostStorageLunToJSONTyped(json, false);
38
+ }
39
+ export function HostStorageLunToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'canonicalName': value['canonicalName'],
45
+ 'key': value['key'],
46
+ 'lunUuid': value['lunUuid'],
47
+ 'vendor': value['vendor'],
48
+ 'model': value['model'],
49
+ 'adapterDevices': value['adapterDevices'],
50
+ };
51
+ }
@@ -9,17 +9,39 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { UpdateInventory } from './UpdateInventory.js';
12
+ import type { InventoryData } from './InventoryData.js';
13
13
  /**
14
14
  *
15
15
  * @export
16
16
  * @interface Inventory
17
17
  */
18
18
  export interface Inventory {
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
+ };
19
33
  /**
20
34
  *
21
35
  */
22
- inventory: UpdateInventory;
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;
23
45
  }
24
46
  /**
25
47
  * Check if a given object implements the Inventory interface.
@@ -11,12 +11,15 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { UpdateInventoryFromJSON, UpdateInventoryToJSON, } from './UpdateInventory.js';
14
+ import { mapValues, parseDateTime, serializeDateTime } from '../runtime.js';
15
+ import { InventoryDataFromJSON, InventoryDataToJSON, } from './InventoryData.js';
15
16
  /**
16
17
  * Check if a given object implements the Inventory interface.
17
18
  */
18
19
  export function instanceOfInventory(value) {
19
- if (!('inventory' in value) || value['inventory'] === undefined)
20
+ if (!('vcenter_id' in value) || value['vcenter_id'] === undefined)
21
+ return false;
22
+ if (!('clusters' in value) || value['clusters'] === undefined)
20
23
  return false;
21
24
  return true;
22
25
  }
@@ -28,7 +31,12 @@ export function InventoryFromJSONTyped(json, ignoreDiscriminator) {
28
31
  return json;
29
32
  }
30
33
  return {
31
- 'inventory': UpdateInventoryFromJSON(json['inventory']),
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'])),
32
40
  };
33
41
  }
34
42
  export function InventoryToJSON(json) {
@@ -39,6 +47,11 @@ export function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
39
47
  return value;
40
48
  }
41
49
  return {
42
- 'inventory': UpdateInventoryToJSON(value['inventory']),
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']),
43
56
  };
44
57
  }
@@ -0,0 +1,30 @@
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
+ * Source-provided backing identity for an RDM disk; omitted when unavailable
14
+ * @export
15
+ * @interface RDMBacking
16
+ */
17
+ export interface RDMBacking {
18
+ /**
19
+ * LUN UUID reported directly by the RDM disk backing, when available
20
+ */
21
+ lunUuid?: string;
22
+ }
23
+ /**
24
+ * Check if a given object implements the RDMBacking interface.
25
+ */
26
+ export declare function instanceOfRDMBacking(value: object): value is RDMBacking;
27
+ export declare function RDMBackingFromJSON(json: any): RDMBacking;
28
+ export declare function RDMBackingFromJSONTyped(json: any, ignoreDiscriminator: boolean): RDMBacking;
29
+ export declare function RDMBackingToJSON(json: any): RDMBacking;
30
+ export declare function RDMBackingToJSONTyped(value?: RDMBacking | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,41 @@
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
+ * Check if a given object implements the RDMBacking interface.
16
+ */
17
+ export function instanceOfRDMBacking(value) {
18
+ return true;
19
+ }
20
+ export function RDMBackingFromJSON(json) {
21
+ return RDMBackingFromJSONTyped(json, false);
22
+ }
23
+ export function RDMBackingFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
29
+ };
30
+ }
31
+ export function RDMBackingToJSON(json) {
32
+ return RDMBackingToJSONTyped(json, false);
33
+ }
34
+ export function RDMBackingToJSONTyped(value, ignoreDiscriminator = false) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'lunUuid': value['lunUuid'],
40
+ };
41
+ }
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { Inventory1 } from './Inventory1.js';
12
+ import type { Inventory } from './Inventory.js';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -23,7 +23,7 @@ export interface UpdateInventory {
23
23
  /**
24
24
  *
25
25
  */
26
- inventory: Inventory1;
26
+ inventory: Inventory;
27
27
  }
28
28
  /**
29
29
  * Check if a given object implements the UpdateInventory interface.
@@ -11,7 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { Inventory1FromJSON, Inventory1ToJSON, } from './Inventory1.js';
14
+ import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
15
15
  /**
16
16
  * Check if a given object implements the UpdateInventory interface.
17
17
  */
@@ -31,7 +31,7 @@ export function UpdateInventoryFromJSONTyped(json, ignoreDiscriminator) {
31
31
  }
32
32
  return {
33
33
  'agentId': json['agentId'],
34
- 'inventory': Inventory1FromJSON(json['inventory']),
34
+ 'inventory': InventoryFromJSON(json['inventory']),
35
35
  };
36
36
  }
37
37
  export function UpdateInventoryToJSON(json) {
@@ -43,6 +43,6 @@ export function UpdateInventoryToJSONTyped(value, ignoreDiscriminator = false) {
43
43
  }
44
44
  return {
45
45
  'agentId': value['agentId'],
46
- 'inventory': Inventory1ToJSON(value['inventory']),
46
+ 'inventory': InventoryToJSON(value['inventory']),
47
47
  };
48
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,59 @@
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
+ * Check if a given object implements the VirtualMachineDatastore interface.
16
+ */
17
+ export function instanceOfVirtualMachineDatastore(value) {
18
+ return true;
19
+ }
20
+ export function VirtualMachineDatastoreFromJSON(json) {
21
+ return VirtualMachineDatastoreFromJSONTyped(json, false);
22
+ }
23
+ export function VirtualMachineDatastoreFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'id': json['id'] == null ? undefined : json['id'],
29
+ 'name': json['name'] == null ? undefined : json['name'],
30
+ 'type': json['type'] == null ? undefined : json['type'],
31
+ 'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
32
+ 'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
33
+ 'protocolType': json['protocolType'] == null ? undefined : json['protocolType'],
34
+ 'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
35
+ 'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
36
+ 'vendor': json['vendor'] == null ? undefined : json['vendor'],
37
+ 'model': json['model'] == null ? undefined : json['model'],
38
+ };
39
+ }
40
+ export function VirtualMachineDatastoreToJSON(json) {
41
+ return VirtualMachineDatastoreToJSONTyped(json, false);
42
+ }
43
+ export function VirtualMachineDatastoreToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'id': value['id'],
49
+ 'name': value['name'],
50
+ 'type': value['type'],
51
+ 'filesystemType': value['filesystemType'],
52
+ 'filesystemMajorVersion': value['filesystemMajorVersion'],
53
+ 'protocolType': value['protocolType'],
54
+ 'storageProtocol': value['storageProtocol'],
55
+ 'backingDeviceIds': value['backingDeviceIds'],
56
+ 'vendor': value['vendor'],
57
+ 'model': value['model'],
58
+ };
59
+ }
@@ -14,6 +14,7 @@ import type { InspectionStatus } from './InspectionStatus.js';
14
14
  import type { GuestNetwork } from './GuestNetwork.js';
15
15
  import type { VirtualMachineIssue } from './VirtualMachineIssue.js';
16
16
  import type { VirtualMachineDevice } from './VirtualMachineDevice.js';
17
+ import type { HostPhysicalNIC } from './HostPhysicalNIC.js';
17
18
  import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
18
19
  import type { Process } from './Process.js';
19
20
  import type { VirtualMachineDisk } from './VirtualMachineDisk.js';
@@ -32,6 +33,10 @@ export interface VirtualMachineDetail {
32
33
  * Display name of the VirtualMachine
33
34
  */
34
35
  name: string;
36
+ /**
37
+ * Free-text notes/description for the VirtualMachine in vSphere
38
+ */
39
+ annotation?: string;
35
40
  /**
36
41
  * Identifier of the vCenter this VirtualMachine belongs to
37
42
  */
@@ -150,6 +155,14 @@ export interface VirtualMachineDetail {
150
155
  *
151
156
  */
152
157
  disks: Array<VirtualMachineDisk>;
158
+ /**
159
+ * Physical NICs reported on the VM's host. An empty array means no records were retained.
160
+ */
161
+ hostPhysicalNics?: Array<HostPhysicalNIC>;
162
+ /**
163
+ * Adapter count reported by the source; 0 when unavailable
164
+ */
165
+ nicCount: number;
153
166
  /**
154
167
  *
155
168
  */
@@ -16,6 +16,7 @@ import { InspectionStatusFromJSON, InspectionStatusToJSON, } from './InspectionS
16
16
  import { GuestNetworkFromJSON, GuestNetworkToJSON, } from './GuestNetwork.js';
17
17
  import { VirtualMachineIssueFromJSON, VirtualMachineIssueToJSON, } from './VirtualMachineIssue.js';
18
18
  import { VirtualMachineDeviceFromJSON, VirtualMachineDeviceToJSON, } from './VirtualMachineDevice.js';
19
+ import { HostPhysicalNICFromJSON, HostPhysicalNICToJSON, } from './HostPhysicalNIC.js';
19
20
  import { VmUtilizationDetailsFromJSON, VmUtilizationDetailsToJSON, } from './VmUtilizationDetails.js';
20
21
  import { ProcessFromJSON, ProcessToJSON, } from './Process.js';
21
22
  import { VirtualMachineDiskFromJSON, VirtualMachineDiskToJSON, } from './VirtualMachineDisk.js';
@@ -42,6 +43,8 @@ export function instanceOfVirtualMachineDetail(value) {
42
43
  return false;
43
44
  if (!('disks' in value) || value['disks'] === undefined)
44
45
  return false;
46
+ if (!('nicCount' in value) || value['nicCount'] === undefined)
47
+ return false;
45
48
  if (!('nics' in value) || value['nics'] === undefined)
46
49
  return false;
47
50
  return true;
@@ -56,6 +59,7 @@ export function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
56
59
  return {
57
60
  'id': json['id'],
58
61
  'name': json['name'],
62
+ 'annotation': json['annotation'] == null ? undefined : json['annotation'],
59
63
  'vCenterID': json['vCenterID'],
60
64
  'uuid': json['uuid'] == null ? undefined : json['uuid'],
61
65
  'firmware': json['firmware'] == null ? undefined : json['firmware'],
@@ -85,6 +89,8 @@ export function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
85
89
  'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
86
90
  'toolsRunningStatus': json['toolsRunningStatus'] == null ? undefined : json['toolsRunningStatus'],
87
91
  'disks': (json['disks'].map(VirtualMachineDiskFromJSON)),
92
+ 'hostPhysicalNics': json['hostPhysicalNics'] == null ? undefined : (json['hostPhysicalNics'].map(HostPhysicalNICFromJSON)),
93
+ 'nicCount': json['nicCount'],
88
94
  'nics': (json['nics'].map(VirtualMachineNICFromJSON)),
89
95
  'devices': json['devices'] == null ? undefined : (json['devices'].map(VirtualMachineDeviceFromJSON)),
90
96
  'guestNetworks': json['guestNetworks'] == null ? undefined : (json['guestNetworks'].map(GuestNetworkFromJSON)),
@@ -104,6 +110,7 @@ export function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = fal
104
110
  return {
105
111
  'id': value['id'],
106
112
  'name': value['name'],
113
+ 'annotation': value['annotation'],
107
114
  'vCenterID': value['vCenterID'],
108
115
  'uuid': value['uuid'],
109
116
  'firmware': value['firmware'],
@@ -132,6 +139,8 @@ export function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = fal
132
139
  'toolsStatus': value['toolsStatus'],
133
140
  'toolsRunningStatus': value['toolsRunningStatus'],
134
141
  'disks': (value['disks'].map(VirtualMachineDiskToJSON)),
142
+ 'hostPhysicalNics': value['hostPhysicalNics'] == null ? undefined : (value['hostPhysicalNics'].map(HostPhysicalNICToJSON)),
143
+ 'nicCount': value['nicCount'],
135
144
  'nics': (value['nics'].map(VirtualMachineNICToJSON)),
136
145
  'devices': value['devices'] == null ? undefined : (value['devices'].map(VirtualMachineDeviceToJSON)),
137
146
  'guestNetworks': value['guestNetworks'] == null ? undefined : (value['guestNetworks'].map(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.