@openshift-migration-advisor/agent-sdk 0.32.0 → 0.33.1-edd914e78442

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 (143) hide show
  1. package/.openapi-generator/FILES +24 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +16 -4
  4. package/dist/apis/AppliancesApi.d.ts +64 -0
  5. package/dist/apis/AppliancesApi.js +72 -0
  6. package/dist/apis/CollectorApi.d.ts +0 -38
  7. package/dist/apis/CollectorApi.js +0 -59
  8. package/dist/apis/GroupsApi.d.ts +39 -0
  9. package/dist/apis/GroupsApi.js +40 -0
  10. package/dist/apis/ImageUpgradeApi.d.ts +66 -0
  11. package/dist/apis/ImageUpgradeApi.js +90 -0
  12. package/dist/apis/index.d.ts +2 -0
  13. package/dist/apis/index.js +2 -0
  14. package/dist/esm/apis/AppliancesApi.d.ts +64 -0
  15. package/dist/esm/apis/AppliancesApi.js +68 -0
  16. package/dist/esm/apis/CollectorApi.d.ts +0 -38
  17. package/dist/esm/apis/CollectorApi.js +0 -59
  18. package/dist/esm/apis/GroupsApi.d.ts +39 -0
  19. package/dist/esm/apis/GroupsApi.js +40 -0
  20. package/dist/esm/apis/ImageUpgradeApi.d.ts +66 -0
  21. package/dist/esm/apis/ImageUpgradeApi.js +86 -0
  22. package/dist/esm/apis/index.d.ts +2 -0
  23. package/dist/esm/apis/index.js +2 -0
  24. package/dist/esm/models/AgentStatus.d.ts +5 -0
  25. package/dist/esm/models/AgentStatus.js +5 -0
  26. package/dist/esm/models/Appliance.d.ts +51 -0
  27. package/dist/esm/models/Appliance.js +64 -0
  28. package/dist/esm/models/ApplianceListResponse.d.ts +31 -0
  29. package/dist/esm/models/ApplianceListResponse.js +44 -0
  30. package/dist/esm/models/ApplicationOverview.d.ts +16 -0
  31. package/dist/esm/models/ApplicationOverview.js +12 -0
  32. package/dist/esm/models/Host.d.ts +16 -0
  33. package/dist/esm/models/Host.js +8 -0
  34. package/dist/esm/models/ImageUpgradeImage.d.ts +34 -0
  35. package/dist/esm/models/ImageUpgradeImage.js +47 -0
  36. package/dist/esm/models/ImageUpgradeResult.d.ts +66 -0
  37. package/dist/esm/models/ImageUpgradeResult.js +71 -0
  38. package/dist/esm/models/ImageUpgradeStatus.d.ts +44 -0
  39. package/dist/esm/models/ImageUpgradeStatus.js +57 -0
  40. package/dist/esm/models/ImageUploadStatus.d.ts +44 -0
  41. package/dist/esm/models/ImageUploadStatus.js +56 -0
  42. package/dist/esm/models/OsInfo.d.ts +12 -0
  43. package/dist/esm/models/OsInfo.js +9 -0
  44. package/dist/esm/models/Product.d.ts +66 -0
  45. package/dist/esm/models/Product.js +61 -0
  46. package/dist/esm/models/RDMBacking.d.ts +26 -0
  47. package/dist/esm/models/RDMBacking.js +17 -0
  48. package/dist/esm/models/RDMHostLun.d.ts +42 -0
  49. package/dist/esm/models/RDMHostLun.js +49 -0
  50. package/dist/esm/models/SuccessfulImageUpgrade.d.ts +38 -0
  51. package/dist/esm/models/SuccessfulImageUpgrade.js +52 -0
  52. package/dist/esm/models/VirtualMachineDetail.d.ts +5 -0
  53. package/dist/esm/models/VirtualMachineDetail.js +3 -0
  54. package/dist/esm/models/VirtualMachineDisk.d.ts +8 -0
  55. package/dist/esm/models/VirtualMachineDisk.js +4 -0
  56. package/dist/esm/models/VirtualMachineIdentity.d.ts +34 -0
  57. package/dist/esm/models/VirtualMachineIdentity.js +47 -0
  58. package/dist/esm/models/index.d.ts +10 -0
  59. package/dist/esm/models/index.js +10 -0
  60. package/dist/esm/runtime.js +4 -3
  61. package/dist/models/AgentStatus.d.ts +5 -0
  62. package/dist/models/AgentStatus.js +5 -0
  63. package/dist/models/Appliance.d.ts +51 -0
  64. package/dist/models/Appliance.js +71 -0
  65. package/dist/models/ApplianceListResponse.d.ts +31 -0
  66. package/dist/models/ApplianceListResponse.js +51 -0
  67. package/dist/models/ApplicationOverview.d.ts +16 -0
  68. package/dist/models/ApplicationOverview.js +12 -0
  69. package/dist/models/Host.d.ts +16 -0
  70. package/dist/models/Host.js +8 -0
  71. package/dist/models/ImageUpgradeImage.d.ts +34 -0
  72. package/dist/models/ImageUpgradeImage.js +54 -0
  73. package/dist/models/ImageUpgradeResult.d.ts +66 -0
  74. package/dist/models/ImageUpgradeResult.js +79 -0
  75. package/dist/models/ImageUpgradeStatus.d.ts +44 -0
  76. package/dist/models/ImageUpgradeStatus.js +64 -0
  77. package/dist/models/ImageUploadStatus.d.ts +44 -0
  78. package/dist/models/ImageUploadStatus.js +64 -0
  79. package/dist/models/OsInfo.d.ts +12 -0
  80. package/dist/models/OsInfo.js +10 -1
  81. package/dist/models/Product.d.ts +66 -0
  82. package/dist/models/Product.js +68 -0
  83. package/dist/models/RDMBacking.d.ts +26 -0
  84. package/dist/models/RDMBacking.js +18 -0
  85. package/dist/models/RDMHostLun.d.ts +42 -0
  86. package/dist/models/RDMHostLun.js +56 -0
  87. package/dist/models/SuccessfulImageUpgrade.d.ts +38 -0
  88. package/dist/models/SuccessfulImageUpgrade.js +59 -0
  89. package/dist/models/VirtualMachineDetail.d.ts +5 -0
  90. package/dist/models/VirtualMachineDetail.js +3 -0
  91. package/dist/models/VirtualMachineDisk.d.ts +8 -0
  92. package/dist/models/VirtualMachineDisk.js +4 -0
  93. package/dist/models/VirtualMachineIdentity.d.ts +34 -0
  94. package/dist/models/VirtualMachineIdentity.js +54 -0
  95. package/dist/models/index.d.ts +10 -0
  96. package/dist/models/index.js +10 -0
  97. package/dist/runtime.js +4 -3
  98. package/docs/AgentStatus.md +2 -0
  99. package/docs/Appliance.md +44 -0
  100. package/docs/ApplianceListResponse.md +34 -0
  101. package/docs/AppliancesApi.md +76 -0
  102. package/docs/ApplicationOverview.md +8 -0
  103. package/docs/CollectorApi.md +0 -70
  104. package/docs/GroupsApi.md +68 -0
  105. package/docs/Host.md +8 -0
  106. package/docs/ImageUpgradeApi.md +82 -0
  107. package/docs/ImageUpgradeImage.md +36 -0
  108. package/docs/ImageUpgradeResult.md +46 -0
  109. package/docs/ImageUpgradeStatus.md +40 -0
  110. package/docs/ImageUploadStatus.md +36 -0
  111. package/docs/OsInfo.md +2 -0
  112. package/docs/Product.md +52 -0
  113. package/docs/RDMBacking.md +8 -0
  114. package/docs/RDMHostLun.md +41 -0
  115. package/docs/SuccessfulImageUpgrade.md +38 -0
  116. package/docs/VirtualMachineDetail.md +2 -0
  117. package/docs/VirtualMachineDisk.md +4 -0
  118. package/docs/VirtualMachineIdentity.md +36 -0
  119. package/package.json +1 -1
  120. package/src/apis/AppliancesApi.ts +111 -0
  121. package/src/apis/CollectorApi.ts +0 -97
  122. package/src/apis/GroupsApi.ts +80 -0
  123. package/src/apis/ImageUpgradeApi.ts +128 -0
  124. package/src/apis/index.ts +2 -0
  125. package/src/models/AgentStatus.ts +14 -0
  126. package/src/models/Appliance.ts +107 -0
  127. package/src/models/ApplianceListResponse.ts +72 -0
  128. package/src/models/ApplicationOverview.ts +26 -0
  129. package/src/models/Host.ts +24 -0
  130. package/src/models/ImageUpgradeImage.ts +71 -0
  131. package/src/models/ImageUpgradeResult.ts +130 -0
  132. package/src/models/ImageUpgradeStatus.ts +100 -0
  133. package/src/models/ImageUploadStatus.ts +84 -0
  134. package/src/models/OsInfo.ts +15 -0
  135. package/src/models/Product.ts +118 -0
  136. package/src/models/RDMBacking.ts +44 -0
  137. package/src/models/RDMHostLun.ts +82 -0
  138. package/src/models/SuccessfulImageUpgrade.ts +78 -0
  139. package/src/models/VirtualMachineDetail.ts +13 -0
  140. package/src/models/VirtualMachineDisk.ts +12 -0
  141. package/src/models/VirtualMachineIdentity.ts +71 -0
  142. package/src/models/index.ts +10 -0
  143. package/src/runtime.ts +3 -3
@@ -0,0 +1,118 @@
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
+ *
18
+ * @export
19
+ * @interface Product
20
+ */
21
+ export interface Product {
22
+ /**
23
+ * Product key
24
+ */
25
+ key: number;
26
+ /**
27
+ * Product class identifier
28
+ */
29
+ classId?: string;
30
+ /**
31
+ * Product instance identifier
32
+ */
33
+ instanceId?: string;
34
+ /**
35
+ * Product name
36
+ */
37
+ name?: string;
38
+ /**
39
+ * Product vendor
40
+ */
41
+ vendor?: string;
42
+ /**
43
+ * Product version
44
+ */
45
+ version?: string;
46
+ /**
47
+ * Full product version
48
+ */
49
+ fullVersion?: string;
50
+ /**
51
+ * Product vendor URL
52
+ */
53
+ vendorUrl?: string;
54
+ /**
55
+ * Product URL
56
+ */
57
+ productUrl?: string;
58
+ /**
59
+ * Application URL
60
+ */
61
+ appUrl?: string;
62
+ }
63
+
64
+ /**
65
+ * Check if a given object implements the Product interface.
66
+ */
67
+ export function instanceOfProduct(value: object): value is Product {
68
+ if (!('key' in value) || value['key'] === undefined) return false;
69
+ return true;
70
+ }
71
+
72
+ export function ProductFromJSON(json: any): Product {
73
+ return ProductFromJSONTyped(json, false);
74
+ }
75
+
76
+ export function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): Product {
77
+ if (json == null) {
78
+ return json;
79
+ }
80
+ return {
81
+
82
+ 'key': json['key'],
83
+ 'classId': json['classId'] == null ? undefined : json['classId'],
84
+ 'instanceId': json['instanceId'] == null ? undefined : json['instanceId'],
85
+ 'name': json['name'] == null ? undefined : json['name'],
86
+ 'vendor': json['vendor'] == null ? undefined : json['vendor'],
87
+ 'version': json['version'] == null ? undefined : json['version'],
88
+ 'fullVersion': json['fullVersion'] == null ? undefined : json['fullVersion'],
89
+ 'vendorUrl': json['vendorUrl'] == null ? undefined : json['vendorUrl'],
90
+ 'productUrl': json['productUrl'] == null ? undefined : json['productUrl'],
91
+ 'appUrl': json['appUrl'] == null ? undefined : json['appUrl'],
92
+ };
93
+ }
94
+
95
+ export function ProductToJSON(json: any): Product {
96
+ return ProductToJSONTyped(json, false);
97
+ }
98
+
99
+ export function ProductToJSONTyped(value?: Product | null, ignoreDiscriminator: boolean = false): any {
100
+ if (value == null) {
101
+ return value;
102
+ }
103
+
104
+ return {
105
+
106
+ 'key': value['key'],
107
+ 'classId': value['classId'],
108
+ 'instanceId': value['instanceId'],
109
+ 'name': value['name'],
110
+ 'vendor': value['vendor'],
111
+ 'version': value['version'],
112
+ 'fullVersion': value['fullVersion'],
113
+ 'vendorUrl': value['vendorUrl'],
114
+ 'productUrl': value['productUrl'],
115
+ 'appUrl': value['appUrl'],
116
+ };
117
+ }
118
+
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime.js';
16
+ import type { RDMHostLun } from './RDMHostLun.js';
17
+ import {
18
+ RDMHostLunFromJSON,
19
+ RDMHostLunFromJSONTyped,
20
+ RDMHostLunToJSON,
21
+ RDMHostLunToJSONTyped,
22
+ } from './RDMHostLun.js';
23
+
16
24
  /**
17
25
  * Source-provided backing identity for an RDM disk; omitted when unavailable
18
26
  * @export
@@ -23,8 +31,36 @@ export interface RDMBacking {
23
31
  * LUN UUID reported directly by the RDM disk backing, when available
24
32
  */
25
33
  lunUuid?: string;
34
+ /**
35
+ * Device name reported directly by the RDM disk backing
36
+ */
37
+ deviceName?: string;
38
+ /**
39
+ * Source-normalized RDM compatibility mode
40
+ */
41
+ compatibilityMode?: RDMBackingCompatibilityModeEnum;
42
+ /**
43
+ * UUID explicitly identifying the RDM backing, when available
44
+ */
45
+ backingUuid?: string;
46
+ /**
47
+ *
48
+ */
49
+ hostLun?: RDMHostLun;
26
50
  }
27
51
 
52
+
53
+ /**
54
+ * @export
55
+ */
56
+ export const RDMBackingCompatibilityModeEnum = {
57
+ Physical: 'physical',
58
+ Virtual: 'virtual',
59
+ Unknown: 'unknown',
60
+ } as const;
61
+ export type RDMBackingCompatibilityModeEnum = typeof RDMBackingCompatibilityModeEnum[keyof typeof RDMBackingCompatibilityModeEnum];
62
+
63
+
28
64
  /**
29
65
  * Check if a given object implements the RDMBacking interface.
30
66
  */
@@ -43,6 +79,10 @@ export function RDMBackingFromJSONTyped(json: any, ignoreDiscriminator: boolean)
43
79
  return {
44
80
 
45
81
  'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
82
+ 'deviceName': json['deviceName'] == null ? undefined : json['deviceName'],
83
+ 'compatibilityMode': json['compatibilityMode'] == null ? undefined : json['compatibilityMode'],
84
+ 'backingUuid': json['backingUuid'] == null ? undefined : json['backingUuid'],
85
+ 'hostLun': json['hostLun'] == null ? undefined : RDMHostLunFromJSON(json['hostLun']),
46
86
  };
47
87
  }
48
88
 
@@ -58,6 +98,10 @@ export function RDMBackingToJSONTyped(value?: RDMBacking | null, ignoreDiscrimin
58
98
  return {
59
99
 
60
100
  'lunUuid': value['lunUuid'],
101
+ 'deviceName': value['deviceName'],
102
+ 'compatibilityMode': value['compatibilityMode'],
103
+ 'backingUuid': value['backingUuid'],
104
+ 'hostLun': RDMHostLunToJSON(value['hostLun']),
61
105
  };
62
106
  }
63
107
 
@@ -0,0 +1,82 @@
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
+ * Host LUN matched to the RDM disk backing through a verified identifier relationship and the VM's running host
18
+ * @export
19
+ * @interface RDMHostLun
20
+ */
21
+ export interface RDMHostLun {
22
+ /**
23
+ * Object ID of the uniquely resolved running host that owns the matched LUN
24
+ */
25
+ hostId: string;
26
+ /**
27
+ * SCSI disk key of the matched host LUN, when available
28
+ */
29
+ key?: string;
30
+ /**
31
+ * Canonical name (e.g. NAA) of the matched host LUN, when available
32
+ */
33
+ canonicalName?: string;
34
+ /**
35
+ * LUN UUID of the matched host LUN, when available
36
+ */
37
+ lunUuid?: string;
38
+ }
39
+
40
+ /**
41
+ * Check if a given object implements the RDMHostLun interface.
42
+ */
43
+ export function instanceOfRDMHostLun(value: object): value is RDMHostLun {
44
+ if (!('hostId' in value) || value['hostId'] === undefined) return false;
45
+ return true;
46
+ }
47
+
48
+ export function RDMHostLunFromJSON(json: any): RDMHostLun {
49
+ return RDMHostLunFromJSONTyped(json, false);
50
+ }
51
+
52
+ export function RDMHostLunFromJSONTyped(json: any, ignoreDiscriminator: boolean): RDMHostLun {
53
+ if (json == null) {
54
+ return json;
55
+ }
56
+ return {
57
+
58
+ 'hostId': json['hostId'],
59
+ 'key': json['key'] == null ? undefined : json['key'],
60
+ 'canonicalName': json['canonicalName'] == null ? undefined : json['canonicalName'],
61
+ 'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
62
+ };
63
+ }
64
+
65
+ export function RDMHostLunToJSON(json: any): RDMHostLun {
66
+ return RDMHostLunToJSONTyped(json, false);
67
+ }
68
+
69
+ export function RDMHostLunToJSONTyped(value?: RDMHostLun | null, ignoreDiscriminator: boolean = false): any {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+
74
+ return {
75
+
76
+ 'hostId': value['hostId'],
77
+ 'key': value['key'],
78
+ 'canonicalName': value['canonicalName'],
79
+ 'lunUuid': value['lunUuid'],
80
+ };
81
+ }
82
+
@@ -0,0 +1,78 @@
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, parseDate, parseDateTime, serializeDate, serializeDateTime } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SuccessfulImageUpgrade
20
+ */
21
+ export interface SuccessfulImageUpgrade {
22
+ /**
23
+ *
24
+ */
25
+ version: string;
26
+ /**
27
+ *
28
+ */
29
+ digest: string;
30
+ /**
31
+ *
32
+ */
33
+ time: Date;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the SuccessfulImageUpgrade interface.
38
+ */
39
+ export function instanceOfSuccessfulImageUpgrade(value: object): value is SuccessfulImageUpgrade {
40
+ if (!('version' in value) || value['version'] === undefined) return false;
41
+ if (!('digest' in value) || value['digest'] === undefined) return false;
42
+ if (!('time' in value) || value['time'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function SuccessfulImageUpgradeFromJSON(json: any): SuccessfulImageUpgrade {
47
+ return SuccessfulImageUpgradeFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function SuccessfulImageUpgradeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessfulImageUpgrade {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'version': json['version'],
57
+ 'digest': json['digest'],
58
+ 'time': (json['time'] == null ? json['time'] : parseDateTime(json['time'])),
59
+ };
60
+ }
61
+
62
+ export function SuccessfulImageUpgradeToJSON(json: any): SuccessfulImageUpgrade {
63
+ return SuccessfulImageUpgradeToJSONTyped(json, false);
64
+ }
65
+
66
+ export function SuccessfulImageUpgradeToJSONTyped(value?: SuccessfulImageUpgrade | null, ignoreDiscriminator: boolean = false): any {
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+
71
+ return {
72
+
73
+ 'version': value['version'],
74
+ 'digest': value['digest'],
75
+ 'time': value['time'] == null ? value['time'] : serializeDateTime(value['time']),
76
+ };
77
+ }
78
+
@@ -55,6 +55,13 @@ import {
55
55
  HostPhysicalNICToJSON,
56
56
  HostPhysicalNICToJSONTyped,
57
57
  } from './HostPhysicalNIC.js';
58
+ import type { Product } from './Product.js';
59
+ import {
60
+ ProductFromJSON,
61
+ ProductFromJSONTyped,
62
+ ProductToJSON,
63
+ ProductToJSONTyped,
64
+ } from './Product.js';
58
65
  import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
59
66
  import {
60
67
  VmUtilizationDetailsFromJSON,
@@ -254,6 +261,10 @@ export interface VirtualMachineDetail {
254
261
  * List of processes detected on this VM
255
262
  */
256
263
  processes?: Array<Process>;
264
+ /**
265
+ * Products configured in the VM's vApp settings
266
+ */
267
+ products?: Array<Product>;
257
268
  }
258
269
 
259
270
  /**
@@ -325,6 +336,7 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
325
336
  'inspection': json['inspection'] == null ? undefined : VirtualMachineInspectionResultsFromJSON(json['inspection']),
326
337
  'utilization': json['utilization'] == null ? undefined : VmUtilizationDetailsFromJSON(json['utilization']),
327
338
  'processes': json['processes'] == null ? undefined : ((json['processes'] as Array<any>).map(ProcessFromJSON)),
339
+ 'products': json['products'] == null ? undefined : ((json['products'] as Array<any>).map(ProductFromJSON)),
328
340
  };
329
341
  }
330
342
 
@@ -379,6 +391,7 @@ export function VirtualMachineDetailToJSONTyped(value?: Omit<VirtualMachineDetai
379
391
  'inspection': VirtualMachineInspectionResultsToJSON(value['inspection']),
380
392
  'utilization': VmUtilizationDetailsToJSON(value['utilization']),
381
393
  'processes': value['processes'] == null ? undefined : ((value['processes'] as Array<any>).map(ProcessToJSON)),
394
+ 'products': value['products'] == null ? undefined : ((value['products'] as Array<any>).map(ProductToJSON)),
382
395
  };
383
396
  }
384
397
 
@@ -58,6 +58,14 @@ export interface VirtualMachineDisk {
58
58
  *
59
59
  */
60
60
  rdmBacking?: RDMBacking;
61
+ /**
62
+ * Source-reported thin provisioning; omitted when unavailable
63
+ */
64
+ thinProvisioned?: boolean;
65
+ /**
66
+ * Source-reported eager scrubbing; omitted when unavailable
67
+ */
68
+ eagerlyScrubbed?: boolean;
61
69
  /**
62
70
  * Bus type (scsi, ide, sata, nvme)
63
71
  */
@@ -95,6 +103,8 @@ export function VirtualMachineDiskFromJSONTyped(json: any, ignoreDiscriminator:
95
103
  'shared': json['shared'] == null ? undefined : json['shared'],
96
104
  'rdm': json['rdm'] == null ? undefined : json['rdm'],
97
105
  'rdmBacking': json['rdmBacking'] == null ? undefined : RDMBackingFromJSON(json['rdmBacking']),
106
+ 'thinProvisioned': json['thinProvisioned'] == null ? undefined : json['thinProvisioned'],
107
+ 'eagerlyScrubbed': json['eagerlyScrubbed'] == null ? undefined : json['eagerlyScrubbed'],
98
108
  'bus': json['bus'] == null ? undefined : json['bus'],
99
109
  'mode': json['mode'] == null ? undefined : json['mode'],
100
110
  'datastore': json['datastore'] == null ? undefined : VirtualMachineDatastoreFromJSON(json['datastore']),
@@ -118,6 +128,8 @@ export function VirtualMachineDiskToJSONTyped(value?: VirtualMachineDisk | null,
118
128
  'shared': value['shared'],
119
129
  'rdm': value['rdm'],
120
130
  'rdmBacking': RDMBackingToJSON(value['rdmBacking']),
131
+ 'thinProvisioned': value['thinProvisioned'],
132
+ 'eagerlyScrubbed': value['eagerlyScrubbed'],
121
133
  'bus': value['bus'],
122
134
  'mode': value['mode'],
123
135
  'datastore': VirtualMachineDatastoreToJSON(value['datastore']),
@@ -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
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface VirtualMachineIdentity
20
+ */
21
+ export interface VirtualMachineIdentity {
22
+ /**
23
+ * VM ID
24
+ */
25
+ id: string;
26
+ /**
27
+ * VM name
28
+ */
29
+ name: string;
30
+ }
31
+
32
+ /**
33
+ * Check if a given object implements the VirtualMachineIdentity interface.
34
+ */
35
+ export function instanceOfVirtualMachineIdentity(value: object): value is VirtualMachineIdentity {
36
+ if (!('id' in value) || value['id'] === undefined) return false;
37
+ if (!('name' in value) || value['name'] === undefined) return false;
38
+ return true;
39
+ }
40
+
41
+ export function VirtualMachineIdentityFromJSON(json: any): VirtualMachineIdentity {
42
+ return VirtualMachineIdentityFromJSONTyped(json, false);
43
+ }
44
+
45
+ export function VirtualMachineIdentityFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineIdentity {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+
51
+ 'id': json['id'],
52
+ 'name': json['name'],
53
+ };
54
+ }
55
+
56
+ export function VirtualMachineIdentityToJSON(json: any): VirtualMachineIdentity {
57
+ return VirtualMachineIdentityToJSONTyped(json, false);
58
+ }
59
+
60
+ export function VirtualMachineIdentityToJSONTyped(value?: VirtualMachineIdentity | null, ignoreDiscriminator: boolean = false): any {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+
65
+ return {
66
+
67
+ 'id': value['id'],
68
+ 'name': value['name'],
69
+ };
70
+ }
71
+
@@ -3,6 +3,8 @@
3
3
  export * from './AgentModeRequest.js';
4
4
  export * from './AgentStatus.js';
5
5
  export * from './AgentStatusConsoleConnection.js';
6
+ export * from './Appliance.js';
7
+ export * from './ApplianceListResponse.js';
6
8
  export * from './ApplicationListResponse.js';
7
9
  export * from './ApplicationOverview.js';
8
10
  export * from './ApplicationVM.js';
@@ -43,6 +45,10 @@ export * from './Host.js';
43
45
  export * from './HostPhysicalNIC.js';
44
46
  export * from './HostStorageAdapter.js';
45
47
  export * from './HostStorageLun.js';
48
+ export * from './ImageUpgradeImage.js';
49
+ export * from './ImageUpgradeResult.js';
50
+ export * from './ImageUpgradeStatus.js';
51
+ export * from './ImageUploadStatus.js';
46
52
  export * from './Infra.js';
47
53
  export * from './InspectionStatus.js';
48
54
  export * from './InspectorStatus.js';
@@ -56,13 +62,16 @@ export * from './OsInfo.js';
56
62
  export * from './PairCapability.js';
57
63
  export * from './PairCapabilityRequest.js';
58
64
  export * from './Process.js';
65
+ export * from './Product.js';
59
66
  export * from './RDMBacking.js';
67
+ export * from './RDMHostLun.js';
60
68
  export * from './RightsizingClusterResponse.js';
61
69
  export * from './RightsizingClusterUtilization.js';
62
70
  export * from './StartForecasterRequest.js';
63
71
  export * from './StartInspectionRequest.js';
64
72
  export * from './StopForecasterPair202Response.js';
65
73
  export * from './StorageIoConfiguration.js';
74
+ export * from './SuccessfulImageUpgrade.js';
66
75
  export * from './UpdateGroupRequest.js';
67
76
  export * from './UpdateInventory.js';
68
77
  export * from './UpdateLabelVMsRequest.js';
@@ -79,6 +88,7 @@ export * from './VirtualMachineDatastore.js';
79
88
  export * from './VirtualMachineDetail.js';
80
89
  export * from './VirtualMachineDevice.js';
81
90
  export * from './VirtualMachineDisk.js';
91
+ export * from './VirtualMachineIdentity.js';
82
92
  export * from './VirtualMachineInspectionConcern.js';
83
93
  export * from './VirtualMachineInspectionResults.js';
84
94
  export * from './VirtualMachineIssue.js';
package/src/runtime.ts CHANGED
@@ -533,7 +533,7 @@ export function parseContentDispositionFilename(headers: Headers): string | unde
533
533
  function decodeExtValue(value: string | undefined): string | undefined {
534
534
  const match = value === undefined ? null : /^utf-8'[^']*'(.*)$/i.exec(value);
535
535
  try {
536
- return match ? decodeURIComponent(match[1]) : undefined;
536
+ return match?.[1] !== undefined ? decodeURIComponent(match[1]) : undefined;
537
537
  } catch {
538
538
  return undefined;
539
539
  }
@@ -549,9 +549,9 @@ function parseHeaderParameters(value: string): Map<string, string> {
549
549
  const parameter = /(?:^|;)\s*([^=;]+?)\s*=\s*(?:"((?:[^"\\]|\\.)*)"?|([^;]*))/g;
550
550
  let match: RegExpExecArray | null;
551
551
  while ((match = parameter.exec(value)) !== null) {
552
- const name = match[1].toLowerCase();
552
+ const name = (match[1] ?? '').toLowerCase();
553
553
  if (!params.has(name)) {
554
- params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : match[3].trim());
554
+ params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : (match[3] ?? '').trim());
555
555
  }
556
556
  }
557
557
  return params;