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

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.
@@ -64,6 +64,7 @@ docs/OsInfo.md
64
64
  docs/PairCapability.md
65
65
  docs/PairCapabilityRequest.md
66
66
  docs/Process.md
67
+ docs/RDMBacking.md
67
68
  docs/RightsizingApi.md
68
69
  docs/RightsizingClusterResponse.md
69
70
  docs/RightsizingClusterUtilization.md
@@ -84,6 +85,7 @@ docs/VddkProperties.md
84
85
  docs/VersionApi.md
85
86
  docs/VersionInfo.md
86
87
  docs/VirtualMachine.md
88
+ docs/VirtualMachineDatastore.md
87
89
  docs/VirtualMachineDetail.md
88
90
  docs/VirtualMachineDevice.md
89
91
  docs/VirtualMachineDisk.md
@@ -163,6 +165,7 @@ src/models/OsInfo.ts
163
165
  src/models/PairCapability.ts
164
166
  src/models/PairCapabilityRequest.ts
165
167
  src/models/Process.ts
168
+ src/models/RDMBacking.ts
166
169
  src/models/RightsizingClusterResponse.ts
167
170
  src/models/RightsizingClusterUtilization.ts
168
171
  src/models/StartForecasterRequest.ts
@@ -181,6 +184,7 @@ src/models/VcenterCredentials.ts
181
184
  src/models/VddkProperties.ts
182
185
  src/models/VersionInfo.ts
183
186
  src/models/VirtualMachine.ts
187
+ src/models/VirtualMachineDatastore.ts
184
188
  src/models/VirtualMachineDetail.ts
185
189
  src/models/VirtualMachineDevice.ts
186
190
  src/models/VirtualMachineDisk.ts
@@ -1 +1 @@
1
- 7.27.0-SNAPSHOT
1
+ 7.28.0-SNAPSHOT
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/agent-sdk@0.30.0-1fc8fff32c6c
1
+ # @openshift-migration-advisor/agent-sdk@0.30.0-a29d6d3b2ee2
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -159,6 +159,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
159
159
  - [PairCapability](docs/PairCapability.md)
160
160
  - [PairCapabilityRequest](docs/PairCapabilityRequest.md)
161
161
  - [Process](docs/Process.md)
162
+ - [RDMBacking](docs/RDMBacking.md)
162
163
  - [RightsizingClusterResponse](docs/RightsizingClusterResponse.md)
163
164
  - [RightsizingClusterUtilization](docs/RightsizingClusterUtilization.md)
164
165
  - [StartForecasterRequest](docs/StartForecasterRequest.md)
@@ -177,6 +178,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
177
178
  - [VddkProperties](docs/VddkProperties.md)
178
179
  - [VersionInfo](docs/VersionInfo.md)
179
180
  - [VirtualMachine](docs/VirtualMachine.md)
181
+ - [VirtualMachineDatastore](docs/VirtualMachineDatastore.md)
180
182
  - [VirtualMachineDetail](docs/VirtualMachineDetail.md)
181
183
  - [VirtualMachineDevice](docs/VirtualMachineDevice.md)
182
184
  - [VirtualMachineDisk](docs/VirtualMachineDisk.md)
@@ -200,8 +202,8 @@ and is automatically generated by the
200
202
  [OpenAPI Generator](https://openapi-generator.tech) project:
201
203
 
202
204
  - API version: `v2`
203
- - Package version: `0.30.0-1fc8fff32c6c`
204
- - Generator version: `7.27.0-SNAPSHOT`
205
+ - Package version: `0.30.0-a29d6d3b2ee2`
206
+ - Generator version: `7.28.0-SNAPSHOT`
205
207
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
206
208
 
207
209
  The generated npm module supports the following:
@@ -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
+ }
@@ -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
+ }
@@ -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.
@@ -11,6 +11,8 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { RDMBackingFromJSON, RDMBackingToJSON, } from './RDMBacking.js';
15
+ import { VirtualMachineDatastoreFromJSON, VirtualMachineDatastoreToJSON, } from './VirtualMachineDatastore.js';
14
16
  /**
15
17
  * Check if a given object implements the VirtualMachineDisk interface.
16
18
  */
@@ -30,8 +32,10 @@ export function VirtualMachineDiskFromJSONTyped(json, ignoreDiscriminator) {
30
32
  'capacity': json['capacity'] == null ? undefined : json['capacity'],
31
33
  'shared': json['shared'] == null ? undefined : json['shared'],
32
34
  'rdm': json['rdm'] == null ? undefined : json['rdm'],
35
+ 'rdmBacking': json['rdmBacking'] == null ? undefined : RDMBackingFromJSON(json['rdmBacking']),
33
36
  'bus': json['bus'] == null ? undefined : json['bus'],
34
37
  'mode': json['mode'] == null ? undefined : json['mode'],
38
+ 'datastore': json['datastore'] == null ? undefined : VirtualMachineDatastoreFromJSON(json['datastore']),
35
39
  };
36
40
  }
37
41
  export function VirtualMachineDiskToJSON(json) {
@@ -47,7 +51,9 @@ export function VirtualMachineDiskToJSONTyped(value, ignoreDiscriminator = false
47
51
  'capacity': value['capacity'],
48
52
  'shared': value['shared'],
49
53
  'rdm': value['rdm'],
54
+ 'rdmBacking': RDMBackingToJSON(value['rdmBacking']),
50
55
  'bus': value['bus'],
51
56
  'mode': value['mode'],
57
+ 'datastore': VirtualMachineDatastoreToJSON(value['datastore']),
52
58
  };
53
59
  }
@@ -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';
@@ -53,6 +53,7 @@ export * from './OsInfo.js';
53
53
  export * from './PairCapability.js';
54
54
  export * from './PairCapabilityRequest.js';
55
55
  export * from './Process.js';
56
+ export * from './RDMBacking.js';
56
57
  export * from './RightsizingClusterResponse.js';
57
58
  export * from './RightsizingClusterUtilization.js';
58
59
  export * from './StartForecasterRequest.js';
@@ -71,6 +72,7 @@ export * from './VcenterCredentials.js';
71
72
  export * from './VddkProperties.js';
72
73
  export * from './VersionInfo.js';
73
74
  export * from './VirtualMachine.js';
75
+ export * from './VirtualMachineDatastore.js';
74
76
  export * from './VirtualMachineDetail.js';
75
77
  export * from './VirtualMachineDevice.js';
76
78
  export * from './VirtualMachineDisk.js';
@@ -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,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
+ }
@@ -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
  }
@@ -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);
@@ -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
+
@@ -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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/agent-sdk",
3
- "version": "0.30.0-1fc8fff32c6c",
3
+ "version": "0.30.0-a29d6d3b2ee2",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/agent-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -0,0 +1,63 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ * Source-provided backing identity for an RDM disk; omitted when unavailable
18
+ * @export
19
+ * @interface RDMBacking
20
+ */
21
+ export interface RDMBacking {
22
+ /**
23
+ * LUN UUID reported directly by the RDM disk backing, when available
24
+ */
25
+ lunUuid?: string;
26
+ }
27
+
28
+ /**
29
+ * Check if a given object implements the RDMBacking interface.
30
+ */
31
+ export function instanceOfRDMBacking(value: object): value is RDMBacking {
32
+ return true;
33
+ }
34
+
35
+ export function RDMBackingFromJSON(json: any): RDMBacking {
36
+ return RDMBackingFromJSONTyped(json, false);
37
+ }
38
+
39
+ export function RDMBackingFromJSONTyped(json: any, ignoreDiscriminator: boolean): RDMBacking {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+
45
+ 'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
46
+ };
47
+ }
48
+
49
+ export function RDMBackingToJSON(json: any): RDMBacking {
50
+ return RDMBackingToJSONTyped(json, false);
51
+ }
52
+
53
+ export function RDMBackingToJSONTyped(value?: RDMBacking | null, ignoreDiscriminator: boolean = false): any {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+
58
+ return {
59
+
60
+ 'lunUuid': value['lunUuid'],
61
+ };
62
+ }
63
+
@@ -0,0 +1,117 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ * Datastore backing this virtual disk
18
+ * @export
19
+ * @interface VirtualMachineDatastore
20
+ */
21
+ export interface VirtualMachineDatastore {
22
+ /**
23
+ * Datastore object ID
24
+ */
25
+ id?: string;
26
+ /**
27
+ * Datastore name
28
+ */
29
+ name?: string;
30
+ /**
31
+ * Datastore type (VMFS, NFS, vSAN, vVol)
32
+ */
33
+ type?: string;
34
+ /**
35
+ * Datastore filesystem type
36
+ */
37
+ filesystemType?: string;
38
+ /**
39
+ * Datastore filesystem major version when available
40
+ */
41
+ filesystemMajorVersion?: number;
42
+ /**
43
+ * Backing storage transport protocol when available (for example FC, iSCSI, or NFS)
44
+ */
45
+ protocolType?: string;
46
+ /**
47
+ * Datastore storage access category when available (Block, File, or Object)
48
+ */
49
+ storageProtocol?: string;
50
+ /**
51
+ * Canonical identifiers for devices backing the datastore (for example, an NAA identifier for a SCSI LUN); may be unavailable for some datastore types
52
+ */
53
+ backingDeviceIds?: Array<string>;
54
+ /**
55
+ * Vendor reported by matching backing devices when available
56
+ */
57
+ vendor?: string;
58
+ /**
59
+ * Model reported by matching backing devices when available
60
+ */
61
+ model?: string;
62
+ }
63
+
64
+ /**
65
+ * Check if a given object implements the VirtualMachineDatastore interface.
66
+ */
67
+ export function instanceOfVirtualMachineDatastore(value: object): value is VirtualMachineDatastore {
68
+ return true;
69
+ }
70
+
71
+ export function VirtualMachineDatastoreFromJSON(json: any): VirtualMachineDatastore {
72
+ return VirtualMachineDatastoreFromJSONTyped(json, false);
73
+ }
74
+
75
+ export function VirtualMachineDatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineDatastore {
76
+ if (json == null) {
77
+ return json;
78
+ }
79
+ return {
80
+
81
+ 'id': json['id'] == null ? undefined : json['id'],
82
+ 'name': json['name'] == null ? undefined : json['name'],
83
+ 'type': json['type'] == null ? undefined : json['type'],
84
+ 'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
85
+ 'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
86
+ 'protocolType': json['protocolType'] == null ? undefined : json['protocolType'],
87
+ 'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
88
+ 'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
89
+ 'vendor': json['vendor'] == null ? undefined : json['vendor'],
90
+ 'model': json['model'] == null ? undefined : json['model'],
91
+ };
92
+ }
93
+
94
+ export function VirtualMachineDatastoreToJSON(json: any): VirtualMachineDatastore {
95
+ return VirtualMachineDatastoreToJSONTyped(json, false);
96
+ }
97
+
98
+ export function VirtualMachineDatastoreToJSONTyped(value?: VirtualMachineDatastore | null, ignoreDiscriminator: boolean = false): any {
99
+ if (value == null) {
100
+ return value;
101
+ }
102
+
103
+ return {
104
+
105
+ 'id': value['id'],
106
+ 'name': value['name'],
107
+ 'type': value['type'],
108
+ 'filesystemType': value['filesystemType'],
109
+ 'filesystemMajorVersion': value['filesystemMajorVersion'],
110
+ 'protocolType': value['protocolType'],
111
+ 'storageProtocol': value['storageProtocol'],
112
+ 'backingDeviceIds': value['backingDeviceIds'],
113
+ 'vendor': value['vendor'],
114
+ 'model': value['model'],
115
+ };
116
+ }
117
+
@@ -13,6 +13,21 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime.js';
16
+ import type { RDMBacking } from './RDMBacking.js';
17
+ import {
18
+ RDMBackingFromJSON,
19
+ RDMBackingFromJSONTyped,
20
+ RDMBackingToJSON,
21
+ RDMBackingToJSONTyped,
22
+ } from './RDMBacking.js';
23
+ import type { VirtualMachineDatastore } from './VirtualMachineDatastore.js';
24
+ import {
25
+ VirtualMachineDatastoreFromJSON,
26
+ VirtualMachineDatastoreFromJSONTyped,
27
+ VirtualMachineDatastoreToJSON,
28
+ VirtualMachineDatastoreToJSONTyped,
29
+ } from './VirtualMachineDatastore.js';
30
+
16
31
  /**
17
32
  *
18
33
  * @export
@@ -39,6 +54,10 @@ export interface VirtualMachineDisk {
39
54
  * Whether this is a Raw Device Mapping
40
55
  */
41
56
  rdm?: boolean;
57
+ /**
58
+ *
59
+ */
60
+ rdmBacking?: RDMBacking;
42
61
  /**
43
62
  * Bus type (scsi, ide, sata, nvme)
44
63
  */
@@ -47,6 +66,10 @@ export interface VirtualMachineDisk {
47
66
  * Disk mode (persistent, independent_persistent, independent_nonpersistent)
48
67
  */
49
68
  mode?: string;
69
+ /**
70
+ *
71
+ */
72
+ datastore?: VirtualMachineDatastore;
50
73
  }
51
74
 
52
75
  /**
@@ -71,8 +94,10 @@ export function VirtualMachineDiskFromJSONTyped(json: any, ignoreDiscriminator:
71
94
  'capacity': json['capacity'] == null ? undefined : json['capacity'],
72
95
  'shared': json['shared'] == null ? undefined : json['shared'],
73
96
  'rdm': json['rdm'] == null ? undefined : json['rdm'],
97
+ 'rdmBacking': json['rdmBacking'] == null ? undefined : RDMBackingFromJSON(json['rdmBacking']),
74
98
  'bus': json['bus'] == null ? undefined : json['bus'],
75
99
  'mode': json['mode'] == null ? undefined : json['mode'],
100
+ 'datastore': json['datastore'] == null ? undefined : VirtualMachineDatastoreFromJSON(json['datastore']),
76
101
  };
77
102
  }
78
103
 
@@ -92,8 +117,10 @@ export function VirtualMachineDiskToJSONTyped(value?: VirtualMachineDisk | null,
92
117
  'capacity': value['capacity'],
93
118
  'shared': value['shared'],
94
119
  'rdm': value['rdm'],
120
+ 'rdmBacking': RDMBackingToJSON(value['rdmBacking']),
95
121
  'bus': value['bus'],
96
122
  'mode': value['mode'],
123
+ 'datastore': VirtualMachineDatastoreToJSON(value['datastore']),
97
124
  };
98
125
  }
99
126
 
@@ -53,6 +53,7 @@ export * from './OsInfo.js';
53
53
  export * from './PairCapability.js';
54
54
  export * from './PairCapabilityRequest.js';
55
55
  export * from './Process.js';
56
+ export * from './RDMBacking.js';
56
57
  export * from './RightsizingClusterResponse.js';
57
58
  export * from './RightsizingClusterUtilization.js';
58
59
  export * from './StartForecasterRequest.js';
@@ -71,6 +72,7 @@ export * from './VcenterCredentials.js';
71
72
  export * from './VddkProperties.js';
72
73
  export * from './VersionInfo.js';
73
74
  export * from './VirtualMachine.js';
75
+ export * from './VirtualMachineDatastore.js';
74
76
  export * from './VirtualMachineDetail.js';
75
77
  export * from './VirtualMachineDevice.js';
76
78
  export * from './VirtualMachineDisk.js';