@openshift-migration-advisor/agent-sdk 0.33.1-84c734aba511 → 0.33.1-d086ee06be70

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 (122) hide show
  1. package/.openapi-generator/FILES +26 -0
  2. package/README.md +20 -2
  3. package/dist/apis/AppliancesApi.d.ts +194 -0
  4. package/dist/apis/AppliancesApi.js +201 -0
  5. package/dist/apis/GroupsApi.d.ts +6 -6
  6. package/dist/apis/RecommendationsApi.d.ts +64 -0
  7. package/dist/apis/RecommendationsApi.js +74 -0
  8. package/dist/apis/VirtualMachinesApi.d.ts +6 -6
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/esm/apis/AppliancesApi.d.ts +194 -0
  12. package/dist/esm/apis/AppliancesApi.js +201 -0
  13. package/dist/esm/apis/GroupsApi.d.ts +6 -6
  14. package/dist/esm/apis/RecommendationsApi.d.ts +64 -0
  15. package/dist/esm/apis/RecommendationsApi.js +70 -0
  16. package/dist/esm/apis/VirtualMachinesApi.d.ts +6 -6
  17. package/dist/esm/apis/index.d.ts +1 -0
  18. package/dist/esm/apis/index.js +1 -0
  19. package/dist/esm/models/ApplianceRule.d.ts +90 -0
  20. package/dist/esm/models/ApplianceRule.js +98 -0
  21. package/dist/esm/models/ApplianceRuleCondition.d.ts +42 -0
  22. package/dist/esm/models/ApplianceRuleCondition.js +48 -0
  23. package/dist/esm/models/ApplianceRuleFunction.d.ts +37 -0
  24. package/dist/esm/models/ApplianceRuleFunction.js +46 -0
  25. package/dist/esm/models/ApplianceRuleListResponse.d.ts +31 -0
  26. package/dist/esm/models/ApplianceRuleListResponse.js +44 -0
  27. package/dist/esm/models/ApplianceRuleRequest.d.ts +74 -0
  28. package/dist/esm/models/ApplianceRuleRequest.js +85 -0
  29. package/dist/esm/models/ComplexityDiskScoreEntry.d.ts +39 -0
  30. package/dist/esm/models/ComplexityDiskScoreEntry.js +51 -0
  31. package/dist/esm/models/ComplexityOSNameEntry.d.ts +40 -0
  32. package/dist/esm/models/ComplexityOSNameEntry.js +51 -0
  33. package/dist/esm/models/ComplexityOSScoreEntry.d.ts +35 -0
  34. package/dist/esm/models/ComplexityOSScoreEntry.js +47 -0
  35. package/dist/esm/models/Datastore.d.ts +9 -0
  36. package/dist/esm/models/Datastore.js +5 -0
  37. package/dist/esm/models/DiskGeometryCondition.d.ts +47 -0
  38. package/dist/esm/models/DiskGeometryCondition.js +58 -0
  39. package/dist/esm/models/MigrationComplexityRequest.d.ts +30 -0
  40. package/dist/esm/models/MigrationComplexityRequest.js +41 -0
  41. package/dist/esm/models/MigrationComplexityResponse.d.ts +58 -0
  42. package/dist/esm/models/MigrationComplexityResponse.js +62 -0
  43. package/dist/esm/models/StorageArray.d.ts +42 -0
  44. package/dist/esm/models/StorageArray.js +47 -0
  45. package/dist/esm/models/VirtualMachineDatastore.d.ts +9 -0
  46. package/dist/esm/models/VirtualMachineDatastore.js +5 -0
  47. package/dist/esm/models/index.d.ts +12 -0
  48. package/dist/esm/models/index.js +12 -0
  49. package/dist/esm/runtime.d.ts +3 -1
  50. package/dist/esm/runtime.js +1 -1
  51. package/dist/models/ApplianceRule.d.ts +90 -0
  52. package/dist/models/ApplianceRule.js +106 -0
  53. package/dist/models/ApplianceRuleCondition.d.ts +42 -0
  54. package/dist/models/ApplianceRuleCondition.js +55 -0
  55. package/dist/models/ApplianceRuleFunction.d.ts +37 -0
  56. package/dist/models/ApplianceRuleFunction.js +53 -0
  57. package/dist/models/ApplianceRuleListResponse.d.ts +31 -0
  58. package/dist/models/ApplianceRuleListResponse.js +51 -0
  59. package/dist/models/ApplianceRuleRequest.d.ts +74 -0
  60. package/dist/models/ApplianceRuleRequest.js +93 -0
  61. package/dist/models/ComplexityDiskScoreEntry.d.ts +39 -0
  62. package/dist/models/ComplexityDiskScoreEntry.js +58 -0
  63. package/dist/models/ComplexityOSNameEntry.d.ts +40 -0
  64. package/dist/models/ComplexityOSNameEntry.js +58 -0
  65. package/dist/models/ComplexityOSScoreEntry.d.ts +35 -0
  66. package/dist/models/ComplexityOSScoreEntry.js +54 -0
  67. package/dist/models/Datastore.d.ts +9 -0
  68. package/dist/models/Datastore.js +5 -0
  69. package/dist/models/DiskGeometryCondition.d.ts +47 -0
  70. package/dist/models/DiskGeometryCondition.js +66 -0
  71. package/dist/models/MigrationComplexityRequest.d.ts +30 -0
  72. package/dist/models/MigrationComplexityRequest.js +48 -0
  73. package/dist/models/MigrationComplexityResponse.d.ts +58 -0
  74. package/dist/models/MigrationComplexityResponse.js +69 -0
  75. package/dist/models/StorageArray.d.ts +42 -0
  76. package/dist/models/StorageArray.js +54 -0
  77. package/dist/models/VirtualMachineDatastore.d.ts +9 -0
  78. package/dist/models/VirtualMachineDatastore.js +5 -0
  79. package/dist/models/index.d.ts +12 -0
  80. package/dist/models/index.js +12 -0
  81. package/dist/runtime.d.ts +3 -1
  82. package/dist/runtime.js +1 -1
  83. package/docs/ApplianceRule.md +50 -0
  84. package/docs/ApplianceRuleCondition.md +39 -0
  85. package/docs/ApplianceRuleFunction.md +37 -0
  86. package/docs/ApplianceRuleListResponse.md +34 -0
  87. package/docs/ApplianceRuleRequest.md +46 -0
  88. package/docs/AppliancesApi.md +338 -0
  89. package/docs/ComplexityDiskScoreEntry.md +39 -0
  90. package/docs/ComplexityOSNameEntry.md +39 -0
  91. package/docs/ComplexityOSScoreEntry.md +37 -0
  92. package/docs/Datastore.md +4 -0
  93. package/docs/DiskGeometryCondition.md +38 -0
  94. package/docs/GroupsApi.md +4 -4
  95. package/docs/MigrationComplexityRequest.md +35 -0
  96. package/docs/MigrationComplexityResponse.md +43 -0
  97. package/docs/RecommendationsApi.md +79 -0
  98. package/docs/StorageArray.md +41 -0
  99. package/docs/VirtualMachineDatastore.md +4 -0
  100. package/docs/VirtualMachinesApi.md +4 -4
  101. package/package.json +1 -1
  102. package/src/apis/AppliancesApi.ts +393 -0
  103. package/src/apis/GroupsApi.ts +6 -6
  104. package/src/apis/RecommendationsApi.ts +117 -0
  105. package/src/apis/VirtualMachinesApi.ts +6 -6
  106. package/src/apis/index.ts +1 -0
  107. package/src/models/ApplianceRule.ts +159 -0
  108. package/src/models/ApplianceRuleCondition.ts +87 -0
  109. package/src/models/ApplianceRuleFunction.ts +80 -0
  110. package/src/models/ApplianceRuleListResponse.ts +72 -0
  111. package/src/models/ApplianceRuleRequest.ts +137 -0
  112. package/src/models/ComplexityDiskScoreEntry.ts +79 -0
  113. package/src/models/ComplexityOSNameEntry.ts +80 -0
  114. package/src/models/ComplexityOSScoreEntry.ts +72 -0
  115. package/src/models/Datastore.ts +19 -0
  116. package/src/models/DiskGeometryCondition.ts +90 -0
  117. package/src/models/MigrationComplexityRequest.ts +63 -0
  118. package/src/models/MigrationComplexityResponse.ts +119 -0
  119. package/src/models/StorageArray.ts +81 -0
  120. package/src/models/VirtualMachineDatastore.ts +20 -0
  121. package/src/models/index.ts +12 -0
  122. package/src/runtime.ts +8 -1
@@ -0,0 +1,81 @@
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
+ * Authoritative source VASA array identity associated with this datastore; distinct from LUN inquiry metadata and storage-container identity
18
+ * @export
19
+ * @interface StorageArray
20
+ */
21
+ export interface StorageArray {
22
+ /**
23
+ * Array UUID reported by the source, when available
24
+ */
25
+ uuid?: string;
26
+ /**
27
+ *
28
+ */
29
+ name?: string;
30
+ /**
31
+ * VASA vendor ID, not a SCSI inquiry vendor
32
+ */
33
+ vendorId?: string;
34
+ /**
35
+ * VASA model ID, not a SCSI inquiry model
36
+ */
37
+ modelId?: string;
38
+ }
39
+
40
+ /**
41
+ * Check if a given object implements the StorageArray interface.
42
+ */
43
+ export function instanceOfStorageArray(value: object): value is StorageArray {
44
+ return true;
45
+ }
46
+
47
+ export function StorageArrayFromJSON(json: any): StorageArray {
48
+ return StorageArrayFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function StorageArrayFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageArray {
52
+ if (json == null) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'uuid': json['uuid'] == null ? undefined : json['uuid'],
58
+ 'name': json['name'] == null ? undefined : json['name'],
59
+ 'vendorId': json['vendorId'] == null ? undefined : json['vendorId'],
60
+ 'modelId': json['modelId'] == null ? undefined : json['modelId'],
61
+ };
62
+ }
63
+
64
+ export function StorageArrayToJSON(json: any): StorageArray {
65
+ return StorageArrayToJSONTyped(json, false);
66
+ }
67
+
68
+ export function StorageArrayToJSONTyped(value?: StorageArray | null, ignoreDiscriminator: boolean = false): any {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+
73
+ return {
74
+
75
+ 'uuid': value['uuid'],
76
+ 'name': value['name'],
77
+ 'vendorId': value['vendorId'],
78
+ 'modelId': value['modelId'],
79
+ };
80
+ }
81
+
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime.js';
16
+ import type { StorageArray } from './StorageArray.js';
17
+ import {
18
+ StorageArrayFromJSON,
19
+ StorageArrayFromJSONTyped,
20
+ StorageArrayToJSON,
21
+ StorageArrayToJSONTyped,
22
+ } from './StorageArray.js';
23
+
16
24
  /**
17
25
  * Datastore backing this virtual disk
18
26
  * @export
@@ -59,6 +67,14 @@ export interface VirtualMachineDatastore {
59
67
  * Model reported by matching backing devices when available
60
68
  */
61
69
  model?: string;
70
+ /**
71
+ * Source-reported VASA arrays associated with this datastore, when available
72
+ */
73
+ storageArrays?: Array<StorageArray>;
74
+ /**
75
+ * Source-reported storage container identifier, when available
76
+ */
77
+ storageContainerId?: string;
62
78
  }
63
79
 
64
80
  /**
@@ -88,6 +104,8 @@ export function VirtualMachineDatastoreFromJSONTyped(json: any, ignoreDiscrimina
88
104
  'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
89
105
  'vendor': json['vendor'] == null ? undefined : json['vendor'],
90
106
  'model': json['model'] == null ? undefined : json['model'],
107
+ 'storageArrays': json['storageArrays'] == null ? undefined : ((json['storageArrays'] as Array<any>).map(StorageArrayFromJSON)),
108
+ 'storageContainerId': json['storageContainerId'] == null ? undefined : json['storageContainerId'],
91
109
  };
92
110
  }
93
111
 
@@ -112,6 +130,8 @@ export function VirtualMachineDatastoreToJSONTyped(value?: VirtualMachineDatasto
112
130
  'backingDeviceIds': value['backingDeviceIds'],
113
131
  'vendor': value['vendor'],
114
132
  'model': value['model'],
133
+ 'storageArrays': value['storageArrays'] == null ? undefined : ((value['storageArrays'] as Array<any>).map(StorageArrayToJSON)),
134
+ 'storageContainerId': value['storageContainerId'],
115
135
  };
116
136
  }
117
137
 
@@ -5,6 +5,11 @@ export * from './AgentStatus.js';
5
5
  export * from './AgentStatusConsoleConnection.js';
6
6
  export * from './Appliance.js';
7
7
  export * from './ApplianceListResponse.js';
8
+ export * from './ApplianceRule.js';
9
+ export * from './ApplianceRuleCondition.js';
10
+ export * from './ApplianceRuleFunction.js';
11
+ export * from './ApplianceRuleListResponse.js';
12
+ export * from './ApplianceRuleRequest.js';
8
13
  export * from './ApplicationListResponse.js';
9
14
  export * from './ApplicationOverview.js';
10
15
  export * from './ApplicationVM.js';
@@ -24,12 +29,16 @@ export * from './CollectionListResponse.js';
24
29
  export * from './CollectorStatus.js';
25
30
  export * from './ComparisonDiffEntry.js';
26
31
  export * from './ComparisonDiffPage.js';
32
+ export * from './ComplexityDiskScoreEntry.js';
33
+ export * from './ComplexityOSNameEntry.js';
34
+ export * from './ComplexityOSScoreEntry.js';
27
35
  export * from './CreateGroupRequest.js';
28
36
  export * from './CredentialStatus.js';
29
37
  export * from './Datastore.js';
30
38
  export * from './DatastoreDetail.js';
31
39
  export * from './DatastorePairRequest.js';
32
40
  export * from './DeleteLabelGloballyResponse.js';
41
+ export * from './DiskGeometryCondition.js';
33
42
  export * from './DiskSizeTierSummary.js';
34
43
  export * from './DiskTypeSummary.js';
35
44
  export * from './EstimateRange.js';
@@ -55,6 +64,8 @@ export * from './InspectorStatus.js';
55
64
  export * from './Inventory.js';
56
65
  export * from './InventoryData.js';
57
66
  export * from './IssuesBreakdown.js';
67
+ export * from './MigrationComplexityRequest.js';
68
+ export * from './MigrationComplexityResponse.js';
58
69
  export * from './MigrationIssue.js';
59
70
  export * from './Network.js';
60
71
  export * from './OperationCapability.js';
@@ -70,6 +81,7 @@ export * from './RightsizingClusterUtilization.js';
70
81
  export * from './StartForecasterRequest.js';
71
82
  export * from './StartInspectionRequest.js';
72
83
  export * from './StopForecasterPair202Response.js';
84
+ export * from './StorageArray.js';
73
85
  export * from './StorageIoConfiguration.js';
74
86
  export * from './SuccessfulImageUpgrade.js';
75
87
  export * from './UpdateGroupRequest.js';
package/src/runtime.ts CHANGED
@@ -271,8 +271,9 @@ export class ResponseError extends Error {
271
271
 
272
272
  export class FetchError extends Error {
273
273
  override name: "FetchError" = "FetchError";
274
- constructor(public cause: Error, msg?: string) {
274
+ constructor(cause: Error, msg?: string) {
275
275
  super(msg);
276
+ this.cause = cause;
276
277
 
277
278
  // restore prototype chain
278
279
  const actualProto = new.target.prototype;
@@ -282,6 +283,12 @@ export class FetchError extends Error {
282
283
  }
283
284
  }
284
285
 
286
+ // Merged into the class to type `cause`: a class field would need `override` with lib es2022 but must not have it
287
+ // with older libs, and Babel 7 rejects `declare cause` unless allowDeclareFields is set
288
+ export interface FetchError {
289
+ cause: Error;
290
+ }
291
+
285
292
  export class RequiredError extends Error {
286
293
  override name: "RequiredError" = "RequiredError";
287
294
  constructor(public field: string, msg?: string) {