@openshift-migration-advisor/agent-sdk 0.33.0 → 0.33.1-d63d5073ca08

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 (94) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +10 -3
  4. package/dist/apis/GroupsApi.d.ts +6 -6
  5. package/dist/apis/ImageUpgradeApi.d.ts +66 -0
  6. package/dist/apis/ImageUpgradeApi.js +90 -0
  7. package/dist/apis/VirtualMachinesApi.d.ts +6 -6
  8. package/dist/apis/index.d.ts +1 -0
  9. package/dist/apis/index.js +1 -0
  10. package/dist/esm/apis/GroupsApi.d.ts +6 -6
  11. package/dist/esm/apis/ImageUpgradeApi.d.ts +66 -0
  12. package/dist/esm/apis/ImageUpgradeApi.js +86 -0
  13. package/dist/esm/apis/VirtualMachinesApi.d.ts +6 -6
  14. package/dist/esm/apis/index.d.ts +1 -0
  15. package/dist/esm/apis/index.js +1 -0
  16. package/dist/esm/models/AgentStatus.d.ts +5 -0
  17. package/dist/esm/models/AgentStatus.js +5 -0
  18. package/dist/esm/models/ImageUpgradeImage.d.ts +34 -0
  19. package/dist/esm/models/ImageUpgradeImage.js +47 -0
  20. package/dist/esm/models/ImageUpgradeResult.d.ts +66 -0
  21. package/dist/esm/models/ImageUpgradeResult.js +71 -0
  22. package/dist/esm/models/ImageUpgradeStatus.d.ts +44 -0
  23. package/dist/esm/models/ImageUpgradeStatus.js +57 -0
  24. package/dist/esm/models/ImageUploadStatus.d.ts +44 -0
  25. package/dist/esm/models/ImageUploadStatus.js +56 -0
  26. package/dist/esm/models/RDMBacking.d.ts +26 -0
  27. package/dist/esm/models/RDMBacking.js +17 -0
  28. package/dist/esm/models/RDMHostLun.d.ts +42 -0
  29. package/dist/esm/models/RDMHostLun.js +49 -0
  30. package/dist/esm/models/SuccessfulImageUpgrade.d.ts +38 -0
  31. package/dist/esm/models/SuccessfulImageUpgrade.js +52 -0
  32. package/dist/esm/models/VMFilterOptionsResponse.d.ts +8 -0
  33. package/dist/esm/models/VMFilterOptionsResponse.js +8 -0
  34. package/dist/esm/models/VirtualMachine.d.ts +8 -0
  35. package/dist/esm/models/VirtualMachine.js +4 -0
  36. package/dist/esm/models/VirtualMachineDisk.d.ts +8 -0
  37. package/dist/esm/models/VirtualMachineDisk.js +4 -0
  38. package/dist/esm/models/index.d.ts +6 -0
  39. package/dist/esm/models/index.js +6 -0
  40. package/dist/models/AgentStatus.d.ts +5 -0
  41. package/dist/models/AgentStatus.js +5 -0
  42. package/dist/models/ImageUpgradeImage.d.ts +34 -0
  43. package/dist/models/ImageUpgradeImage.js +54 -0
  44. package/dist/models/ImageUpgradeResult.d.ts +66 -0
  45. package/dist/models/ImageUpgradeResult.js +79 -0
  46. package/dist/models/ImageUpgradeStatus.d.ts +44 -0
  47. package/dist/models/ImageUpgradeStatus.js +64 -0
  48. package/dist/models/ImageUploadStatus.d.ts +44 -0
  49. package/dist/models/ImageUploadStatus.js +64 -0
  50. package/dist/models/RDMBacking.d.ts +26 -0
  51. package/dist/models/RDMBacking.js +18 -0
  52. package/dist/models/RDMHostLun.d.ts +42 -0
  53. package/dist/models/RDMHostLun.js +56 -0
  54. package/dist/models/SuccessfulImageUpgrade.d.ts +38 -0
  55. package/dist/models/SuccessfulImageUpgrade.js +59 -0
  56. package/dist/models/VMFilterOptionsResponse.d.ts +8 -0
  57. package/dist/models/VMFilterOptionsResponse.js +8 -0
  58. package/dist/models/VirtualMachine.d.ts +8 -0
  59. package/dist/models/VirtualMachine.js +4 -0
  60. package/dist/models/VirtualMachineDisk.d.ts +8 -0
  61. package/dist/models/VirtualMachineDisk.js +4 -0
  62. package/dist/models/index.d.ts +6 -0
  63. package/dist/models/index.js +6 -0
  64. package/docs/AgentStatus.md +2 -0
  65. package/docs/GroupsApi.md +4 -4
  66. package/docs/ImageUpgradeApi.md +82 -0
  67. package/docs/ImageUpgradeImage.md +36 -0
  68. package/docs/ImageUpgradeResult.md +46 -0
  69. package/docs/ImageUpgradeStatus.md +40 -0
  70. package/docs/ImageUploadStatus.md +36 -0
  71. package/docs/RDMBacking.md +8 -0
  72. package/docs/RDMHostLun.md +41 -0
  73. package/docs/SuccessfulImageUpgrade.md +38 -0
  74. package/docs/VMFilterOptionsResponse.md +4 -0
  75. package/docs/VirtualMachine.md +4 -0
  76. package/docs/VirtualMachineDisk.md +4 -0
  77. package/docs/VirtualMachinesApi.md +4 -4
  78. package/package.json +1 -1
  79. package/src/apis/GroupsApi.ts +6 -6
  80. package/src/apis/ImageUpgradeApi.ts +128 -0
  81. package/src/apis/VirtualMachinesApi.ts +6 -6
  82. package/src/apis/index.ts +1 -0
  83. package/src/models/AgentStatus.ts +14 -0
  84. package/src/models/ImageUpgradeImage.ts +71 -0
  85. package/src/models/ImageUpgradeResult.ts +130 -0
  86. package/src/models/ImageUpgradeStatus.ts +100 -0
  87. package/src/models/ImageUploadStatus.ts +84 -0
  88. package/src/models/RDMBacking.ts +44 -0
  89. package/src/models/RDMHostLun.ts +82 -0
  90. package/src/models/SuccessfulImageUpgrade.ts +78 -0
  91. package/src/models/VMFilterOptionsResponse.ts +14 -0
  92. package/src/models/VirtualMachine.ts +12 -0
  93. package/src/models/VirtualMachineDisk.ts +12 -0
  94. package/src/models/index.ts +6 -0
@@ -81,7 +81,7 @@ export interface ListLatestVirtualMachinesRequest {
81
81
  */
82
82
  byExpression?: string;
83
83
  /**
84
- * Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
84
+ * Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
85
85
  */
86
86
  sort?: Array<string>;
87
87
  /**
@@ -103,7 +103,7 @@ export interface ListVirtualMachinesRequest {
103
103
  */
104
104
  byExpression?: string;
105
105
  /**
106
- * Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
106
+ * Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
107
107
  */
108
108
  sort?: Array<string>;
109
109
  /**
@@ -345,7 +345,7 @@ export interface VirtualMachinesApiInterface {
345
345
  /**
346
346
  * Creates request options for listLatestVirtualMachines without sending the request
347
347
  * @param {string} [byExpression] Filter by expression
348
- * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
348
+ * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
349
349
  * @param {number} [page] Page number for pagination
350
350
  * @param {number} [pageSize] Number of items per page
351
351
  * @throws {RequiredError}
@@ -356,7 +356,7 @@ export interface VirtualMachinesApiInterface {
356
356
  *
357
357
  * @summary List VirtualMachines from the latest collection
358
358
  * @param {string} [byExpression] Filter by expression
359
- * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
359
+ * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
360
360
  * @param {number} [page] Page number for pagination
361
361
  * @param {number} [pageSize] Number of items per page
362
362
  * @param {*} [options] Override http request option.
@@ -372,7 +372,7 @@ export interface VirtualMachinesApiInterface {
372
372
  * Creates request options for listVirtualMachines without sending the request
373
373
  * @param {string} id Collection ID
374
374
  * @param {string} [byExpression] Filter by expression
375
- * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
375
+ * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
376
376
  * @param {number} [page] Page number for pagination
377
377
  * @param {number} [pageSize] Number of items per page
378
378
  * @throws {RequiredError}
@@ -384,7 +384,7 @@ export interface VirtualMachinesApiInterface {
384
384
  * @summary List VirtualMachines in a collection
385
385
  * @param {string} id Collection ID
386
386
  * @param {string} [byExpression] Filter by expression
387
- * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
387
+ * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
388
388
  * @param {number} [page] Page number for pagination
389
389
  * @param {number} [pageSize] Number of items per page
390
390
  * @param {*} [options] Override http request option.
@@ -6,6 +6,7 @@ export * from './CollectorApi.js';
6
6
  export * from './CredentialsApi.js';
7
7
  export * from './ForecasterApi.js';
8
8
  export * from './GroupsApi.js';
9
+ export * from './ImageUpgradeApi.js';
9
10
  export * from './InspectorApi.js';
10
11
  export * from './InventoriesApi.js';
11
12
  export * from './RightsizingApi.js';
@@ -8,6 +8,7 @@ export * from './CollectorApi.js';
8
8
  export * from './CredentialsApi.js';
9
9
  export * from './ForecasterApi.js';
10
10
  export * from './GroupsApi.js';
11
+ export * from './ImageUpgradeApi.js';
11
12
  export * from './InspectorApi.js';
12
13
  export * from './InventoriesApi.js';
13
14
  export * from './RightsizingApi.js';
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ImageUpgradeStatus } from './ImageUpgradeStatus.js';
12
13
  import type { AgentStatusConsoleConnection } from './AgentStatusConsoleConnection.js';
13
14
  /**
14
15
  *
@@ -28,6 +29,10 @@ export interface AgentStatus {
28
29
  * RVTool mode enabled
29
30
  */
30
31
  rvtoolsModeEnabled?: boolean;
32
+ /**
33
+ * Always present in both connected and disconnected modes, including while the console is unreachable. Includes upload activity and the last host image upgrade result. Image upgrade status errors do not fail the agent-status response.
34
+ */
35
+ imageUpgradeStatus: ImageUpgradeStatus;
31
36
  }
32
37
  /**
33
38
  * @export
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { ImageUpgradeStatusFromJSON, ImageUpgradeStatusToJSON, } from './ImageUpgradeStatus.js';
14
15
  import { AgentStatusConsoleConnectionFromJSON, AgentStatusConsoleConnectionToJSON, } from './AgentStatusConsoleConnection.js';
15
16
  /**
16
17
  * @export
@@ -27,6 +28,8 @@ export function instanceOfAgentStatus(value) {
27
28
  return false;
28
29
  if (!('consoleConnection' in value) || value['consoleConnection'] === undefined)
29
30
  return false;
31
+ if (!('imageUpgradeStatus' in value) || value['imageUpgradeStatus'] === undefined)
32
+ return false;
30
33
  return true;
31
34
  }
32
35
  export function AgentStatusFromJSON(json) {
@@ -40,6 +43,7 @@ export function AgentStatusFromJSONTyped(json, ignoreDiscriminator) {
40
43
  'mode': json['mode'],
41
44
  'consoleConnection': AgentStatusConsoleConnectionFromJSON(json['consoleConnection']),
42
45
  'rvtoolsModeEnabled': json['rvtoolsModeEnabled'] == null ? undefined : json['rvtoolsModeEnabled'],
46
+ 'imageUpgradeStatus': ImageUpgradeStatusFromJSON(json['imageUpgradeStatus']),
43
47
  };
44
48
  }
45
49
  export function AgentStatusToJSON(json) {
@@ -53,5 +57,6 @@ export function AgentStatusToJSONTyped(value, ignoreDiscriminator = false) {
53
57
  'mode': value['mode'],
54
58
  'consoleConnection': AgentStatusConsoleConnectionToJSON(value['consoleConnection']),
55
59
  'rvtoolsModeEnabled': value['rvtoolsModeEnabled'],
60
+ 'imageUpgradeStatus': ImageUpgradeStatusToJSON(value['imageUpgradeStatus']),
56
61
  };
57
62
  }
@@ -0,0 +1,34 @@
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
+ *
14
+ * @export
15
+ * @interface ImageUpgradeImage
16
+ */
17
+ export interface ImageUpgradeImage {
18
+ /**
19
+ *
20
+ */
21
+ version: string;
22
+ /**
23
+ *
24
+ */
25
+ digest: string;
26
+ }
27
+ /**
28
+ * Check if a given object implements the ImageUpgradeImage interface.
29
+ */
30
+ export declare function instanceOfImageUpgradeImage(value: object): value is ImageUpgradeImage;
31
+ export declare function ImageUpgradeImageFromJSON(json: any): ImageUpgradeImage;
32
+ export declare function ImageUpgradeImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageUpgradeImage;
33
+ export declare function ImageUpgradeImageToJSON(json: any): ImageUpgradeImage;
34
+ export declare function ImageUpgradeImageToJSONTyped(value?: ImageUpgradeImage | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
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 ImageUpgradeImage interface.
16
+ */
17
+ export function instanceOfImageUpgradeImage(value) {
18
+ if (!('version' in value) || value['version'] === undefined)
19
+ return false;
20
+ if (!('digest' in value) || value['digest'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function ImageUpgradeImageFromJSON(json) {
25
+ return ImageUpgradeImageFromJSONTyped(json, false);
26
+ }
27
+ export function ImageUpgradeImageFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'version': json['version'],
33
+ 'digest': json['digest'],
34
+ };
35
+ }
36
+ export function ImageUpgradeImageToJSON(json) {
37
+ return ImageUpgradeImageToJSONTyped(json, false);
38
+ }
39
+ export function ImageUpgradeImageToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'version': value['version'],
45
+ 'digest': value['digest'],
46
+ };
47
+ }
@@ -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
+ import type { ImageUpgradeImage } from './ImageUpgradeImage.js';
13
+ import type { SuccessfulImageUpgrade } from './SuccessfulImageUpgrade.js';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ImageUpgradeResult
18
+ */
19
+ export interface ImageUpgradeResult {
20
+ /**
21
+ *
22
+ */
23
+ file: string;
24
+ /**
25
+ *
26
+ */
27
+ outcome: ImageUpgradeResultOutcomeEnum;
28
+ /**
29
+ *
30
+ */
31
+ time: Date;
32
+ /**
33
+ *
34
+ */
35
+ error?: string;
36
+ /**
37
+ *
38
+ */
39
+ errorStage?: string;
40
+ /**
41
+ *
42
+ */
43
+ runningImage?: ImageUpgradeImage;
44
+ /**
45
+ *
46
+ */
47
+ lastSuccessfulUpdate?: SuccessfulImageUpgrade;
48
+ }
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const ImageUpgradeResultOutcomeEnum: {
53
+ readonly Applied: "applied";
54
+ readonly RolledBack: "rolled-back";
55
+ readonly Failed: "failed";
56
+ readonly Unchanged: "unchanged";
57
+ };
58
+ export type ImageUpgradeResultOutcomeEnum = typeof ImageUpgradeResultOutcomeEnum[keyof typeof ImageUpgradeResultOutcomeEnum];
59
+ /**
60
+ * Check if a given object implements the ImageUpgradeResult interface.
61
+ */
62
+ export declare function instanceOfImageUpgradeResult(value: object): value is ImageUpgradeResult;
63
+ export declare function ImageUpgradeResultFromJSON(json: any): ImageUpgradeResult;
64
+ export declare function ImageUpgradeResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageUpgradeResult;
65
+ export declare function ImageUpgradeResultToJSON(json: any): ImageUpgradeResult;
66
+ export declare function ImageUpgradeResultToJSONTyped(value?: ImageUpgradeResult | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,71 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
15
+ import { ImageUpgradeImageFromJSON, ImageUpgradeImageToJSON, } from './ImageUpgradeImage.js';
16
+ import { SuccessfulImageUpgradeFromJSON, SuccessfulImageUpgradeToJSON, } from './SuccessfulImageUpgrade.js';
17
+ /**
18
+ * @export
19
+ */
20
+ export const ImageUpgradeResultOutcomeEnum = {
21
+ Applied: 'applied',
22
+ RolledBack: 'rolled-back',
23
+ Failed: 'failed',
24
+ Unchanged: 'unchanged',
25
+ };
26
+ /**
27
+ * Check if a given object implements the ImageUpgradeResult interface.
28
+ */
29
+ export function instanceOfImageUpgradeResult(value) {
30
+ if (!('file' in value) || value['file'] === undefined)
31
+ return false;
32
+ if (!('outcome' in value) || value['outcome'] === undefined)
33
+ return false;
34
+ if (!('time' in value) || value['time'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ export function ImageUpgradeResultFromJSON(json) {
39
+ return ImageUpgradeResultFromJSONTyped(json, false);
40
+ }
41
+ export function ImageUpgradeResultFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'file': json['file'],
47
+ 'outcome': json['outcome'],
48
+ 'time': (json['time'] == null ? json['time'] : parseDateTime(json['time'])),
49
+ 'error': json['error'] == null ? undefined : json['error'],
50
+ 'errorStage': json['errorStage'] == null ? undefined : json['errorStage'],
51
+ 'runningImage': json['runningImage'] == null ? undefined : ImageUpgradeImageFromJSON(json['runningImage']),
52
+ 'lastSuccessfulUpdate': json['lastSuccessfulUpdate'] == null ? undefined : SuccessfulImageUpgradeFromJSON(json['lastSuccessfulUpdate']),
53
+ };
54
+ }
55
+ export function ImageUpgradeResultToJSON(json) {
56
+ return ImageUpgradeResultToJSONTyped(json, false);
57
+ }
58
+ export function ImageUpgradeResultToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'file': value['file'],
64
+ 'outcome': value['outcome'],
65
+ 'time': value['time'] == null ? value['time'] : serializeDateTime(value['time']),
66
+ 'error': value['error'],
67
+ 'errorStage': value['errorStage'],
68
+ 'runningImage': ImageUpgradeImageToJSON(value['runningImage']),
69
+ 'lastSuccessfulUpdate': SuccessfulImageUpgradeToJSON(value['lastSuccessfulUpdate']),
70
+ };
71
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ImageUpgradeResult } from './ImageUpgradeResult.js';
13
+ import type { ImageUploadStatus } from './ImageUploadStatus.js';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ImageUpgradeStatus
18
+ */
19
+ export interface ImageUpgradeStatus {
20
+ /**
21
+ *
22
+ */
23
+ currentVersion: string;
24
+ /**
25
+ *
26
+ */
27
+ upload: ImageUploadStatus;
28
+ /**
29
+ * Last host upgrade result, or null if it is missing or cannot be read.
30
+ */
31
+ upgrade: ImageUpgradeResult | null;
32
+ /**
33
+ * Error reading the host upgrade result, independent of upload errors. Null when there is no read error.
34
+ */
35
+ upgradeError: string | null;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ImageUpgradeStatus interface.
39
+ */
40
+ export declare function instanceOfImageUpgradeStatus(value: object): value is ImageUpgradeStatus;
41
+ export declare function ImageUpgradeStatusFromJSON(json: any): ImageUpgradeStatus;
42
+ export declare function ImageUpgradeStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageUpgradeStatus;
43
+ export declare function ImageUpgradeStatusToJSON(json: any): ImageUpgradeStatus;
44
+ export declare function ImageUpgradeStatusToJSONTyped(value?: ImageUpgradeStatus | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { ImageUpgradeResultFromJSON, ImageUpgradeResultToJSON, } from './ImageUpgradeResult.js';
15
+ import { ImageUploadStatusFromJSON, ImageUploadStatusToJSON, } from './ImageUploadStatus.js';
16
+ /**
17
+ * Check if a given object implements the ImageUpgradeStatus interface.
18
+ */
19
+ export function instanceOfImageUpgradeStatus(value) {
20
+ if (!('currentVersion' in value) || value['currentVersion'] === undefined)
21
+ return false;
22
+ if (!('upload' in value) || value['upload'] === undefined)
23
+ return false;
24
+ if (!('upgrade' in value) || value['upgrade'] === undefined)
25
+ return false;
26
+ if (!('upgradeError' in value) || value['upgradeError'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function ImageUpgradeStatusFromJSON(json) {
31
+ return ImageUpgradeStatusFromJSONTyped(json, false);
32
+ }
33
+ export function ImageUpgradeStatusFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'currentVersion': json['currentVersion'],
39
+ 'upload': ImageUploadStatusFromJSON(json['upload']),
40
+ 'upgrade': ImageUpgradeResultFromJSON(json['upgrade']),
41
+ 'upgradeError': json['upgradeError'],
42
+ };
43
+ }
44
+ export function ImageUpgradeStatusToJSON(json) {
45
+ return ImageUpgradeStatusToJSONTyped(json, false);
46
+ }
47
+ export function ImageUpgradeStatusToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'currentVersion': value['currentVersion'],
53
+ 'upload': ImageUploadStatusToJSON(value['upload']),
54
+ 'upgrade': ImageUpgradeResultToJSON(value['upgrade']),
55
+ 'upgradeError': value['upgradeError'],
56
+ };
57
+ }
@@ -0,0 +1,44 @@
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
+ *
14
+ * @export
15
+ * @interface ImageUploadStatus
16
+ */
17
+ export interface ImageUploadStatus {
18
+ /**
19
+ * Agent upload activity only; idle does not indicate whether the host is running an upgrade. Unknown means the upload state is unavailable. An unreadable host result does not change this state.
20
+ */
21
+ state: ImageUploadStatusStateEnum;
22
+ /**
23
+ * Last upload error, or an upload-state availability error when state is unknown. Host result read errors are reported in upgradeError.
24
+ */
25
+ lastError: string | null;
26
+ }
27
+ /**
28
+ * @export
29
+ */
30
+ export declare const ImageUploadStatusStateEnum: {
31
+ readonly Idle: "idle";
32
+ readonly Uploading: "uploading";
33
+ readonly Validating: "validating";
34
+ readonly Unknown: "unknown";
35
+ };
36
+ export type ImageUploadStatusStateEnum = typeof ImageUploadStatusStateEnum[keyof typeof ImageUploadStatusStateEnum];
37
+ /**
38
+ * Check if a given object implements the ImageUploadStatus interface.
39
+ */
40
+ export declare function instanceOfImageUploadStatus(value: object): value is ImageUploadStatus;
41
+ export declare function ImageUploadStatusFromJSON(json: any): ImageUploadStatus;
42
+ export declare function ImageUploadStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageUploadStatus;
43
+ export declare function ImageUploadStatusToJSON(json: any): ImageUploadStatus;
44
+ export declare function ImageUploadStatusToJSONTyped(value?: ImageUploadStatus | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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
+ * @export
16
+ */
17
+ export const ImageUploadStatusStateEnum = {
18
+ Idle: 'idle',
19
+ Uploading: 'uploading',
20
+ Validating: 'validating',
21
+ Unknown: 'unknown',
22
+ };
23
+ /**
24
+ * Check if a given object implements the ImageUploadStatus interface.
25
+ */
26
+ export function instanceOfImageUploadStatus(value) {
27
+ if (!('state' in value) || value['state'] === undefined)
28
+ return false;
29
+ if (!('lastError' in value) || value['lastError'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ export function ImageUploadStatusFromJSON(json) {
34
+ return ImageUploadStatusFromJSONTyped(json, false);
35
+ }
36
+ export function ImageUploadStatusFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'state': json['state'],
42
+ 'lastError': json['lastError'],
43
+ };
44
+ }
45
+ export function ImageUploadStatusToJSON(json) {
46
+ return ImageUploadStatusToJSONTyped(json, false);
47
+ }
48
+ export function ImageUploadStatusToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'state': value['state'],
54
+ 'lastError': value['lastError'],
55
+ };
56
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { RDMHostLun } from './RDMHostLun.js';
12
13
  /**
13
14
  * Source-provided backing identity for an RDM disk; omitted when unavailable
14
15
  * @export
@@ -19,7 +20,32 @@ export interface RDMBacking {
19
20
  * LUN UUID reported directly by the RDM disk backing, when available
20
21
  */
21
22
  lunUuid?: string;
23
+ /**
24
+ * Device name reported directly by the RDM disk backing
25
+ */
26
+ deviceName?: string;
27
+ /**
28
+ * Source-normalized RDM compatibility mode
29
+ */
30
+ compatibilityMode?: RDMBackingCompatibilityModeEnum;
31
+ /**
32
+ * UUID explicitly identifying the RDM backing, when available
33
+ */
34
+ backingUuid?: string;
35
+ /**
36
+ *
37
+ */
38
+ hostLun?: RDMHostLun;
22
39
  }
40
+ /**
41
+ * @export
42
+ */
43
+ export declare const RDMBackingCompatibilityModeEnum: {
44
+ readonly Physical: "physical";
45
+ readonly Virtual: "virtual";
46
+ readonly Unknown: "unknown";
47
+ };
48
+ export type RDMBackingCompatibilityModeEnum = typeof RDMBackingCompatibilityModeEnum[keyof typeof RDMBackingCompatibilityModeEnum];
23
49
  /**
24
50
  * Check if a given object implements the RDMBacking interface.
25
51
  */
@@ -11,6 +11,15 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { RDMHostLunFromJSON, RDMHostLunToJSON, } from './RDMHostLun.js';
15
+ /**
16
+ * @export
17
+ */
18
+ export const RDMBackingCompatibilityModeEnum = {
19
+ Physical: 'physical',
20
+ Virtual: 'virtual',
21
+ Unknown: 'unknown',
22
+ };
14
23
  /**
15
24
  * Check if a given object implements the RDMBacking interface.
16
25
  */
@@ -26,6 +35,10 @@ export function RDMBackingFromJSONTyped(json, ignoreDiscriminator) {
26
35
  }
27
36
  return {
28
37
  'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
38
+ 'deviceName': json['deviceName'] == null ? undefined : json['deviceName'],
39
+ 'compatibilityMode': json['compatibilityMode'] == null ? undefined : json['compatibilityMode'],
40
+ 'backingUuid': json['backingUuid'] == null ? undefined : json['backingUuid'],
41
+ 'hostLun': json['hostLun'] == null ? undefined : RDMHostLunFromJSON(json['hostLun']),
29
42
  };
30
43
  }
31
44
  export function RDMBackingToJSON(json) {
@@ -37,5 +50,9 @@ export function RDMBackingToJSONTyped(value, ignoreDiscriminator = false) {
37
50
  }
38
51
  return {
39
52
  'lunUuid': value['lunUuid'],
53
+ 'deviceName': value['deviceName'],
54
+ 'compatibilityMode': value['compatibilityMode'],
55
+ 'backingUuid': value['backingUuid'],
56
+ 'hostLun': RDMHostLunToJSON(value['hostLun']),
40
57
  };
41
58
  }
@@ -0,0 +1,42 @@
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
+ * Host LUN matched to the RDM disk backing through a verified identifier relationship and the VM's running host
14
+ * @export
15
+ * @interface RDMHostLun
16
+ */
17
+ export interface RDMHostLun {
18
+ /**
19
+ * Object ID of the uniquely resolved running host that owns the matched LUN
20
+ */
21
+ hostId: string;
22
+ /**
23
+ * SCSI disk key of the matched host LUN, when available
24
+ */
25
+ key?: string;
26
+ /**
27
+ * Canonical name (e.g. NAA) of the matched host LUN, when available
28
+ */
29
+ canonicalName?: string;
30
+ /**
31
+ * LUN UUID of the matched host LUN, when available
32
+ */
33
+ lunUuid?: string;
34
+ }
35
+ /**
36
+ * Check if a given object implements the RDMHostLun interface.
37
+ */
38
+ export declare function instanceOfRDMHostLun(value: object): value is RDMHostLun;
39
+ export declare function RDMHostLunFromJSON(json: any): RDMHostLun;
40
+ export declare function RDMHostLunFromJSONTyped(json: any, ignoreDiscriminator: boolean): RDMHostLun;
41
+ export declare function RDMHostLunToJSON(json: any): RDMHostLun;
42
+ export declare function RDMHostLunToJSONTyped(value?: RDMHostLun | null, ignoreDiscriminator?: boolean): any;