@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,54 @@
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.instanceOfStorageArray = instanceOfStorageArray;
17
+ exports.StorageArrayFromJSON = StorageArrayFromJSON;
18
+ exports.StorageArrayFromJSONTyped = StorageArrayFromJSONTyped;
19
+ exports.StorageArrayToJSON = StorageArrayToJSON;
20
+ exports.StorageArrayToJSONTyped = StorageArrayToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the StorageArray interface.
23
+ */
24
+ function instanceOfStorageArray(value) {
25
+ return true;
26
+ }
27
+ function StorageArrayFromJSON(json) {
28
+ return StorageArrayFromJSONTyped(json, false);
29
+ }
30
+ function StorageArrayFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'uuid': json['uuid'] == null ? undefined : json['uuid'],
36
+ 'name': json['name'] == null ? undefined : json['name'],
37
+ 'vendorId': json['vendorId'] == null ? undefined : json['vendorId'],
38
+ 'modelId': json['modelId'] == null ? undefined : json['modelId'],
39
+ };
40
+ }
41
+ function StorageArrayToJSON(json) {
42
+ return StorageArrayToJSONTyped(json, false);
43
+ }
44
+ function StorageArrayToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'uuid': value['uuid'],
50
+ 'name': value['name'],
51
+ 'vendorId': value['vendorId'],
52
+ 'modelId': value['modelId'],
53
+ };
54
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { StorageArray } from './StorageArray.js';
12
13
  /**
13
14
  * Datastore backing this virtual disk
14
15
  * @export
@@ -55,6 +56,14 @@ export interface VirtualMachineDatastore {
55
56
  * Model reported by matching backing devices when available
56
57
  */
57
58
  model?: string;
59
+ /**
60
+ * Source-reported VASA arrays associated with this datastore, when available
61
+ */
62
+ storageArrays?: Array<StorageArray>;
63
+ /**
64
+ * Source-reported storage container identifier, when available
65
+ */
66
+ storageContainerId?: string;
58
67
  }
59
68
  /**
60
69
  * Check if a given object implements the VirtualMachineDatastore interface.
@@ -18,6 +18,7 @@ exports.VirtualMachineDatastoreFromJSON = VirtualMachineDatastoreFromJSON;
18
18
  exports.VirtualMachineDatastoreFromJSONTyped = VirtualMachineDatastoreFromJSONTyped;
19
19
  exports.VirtualMachineDatastoreToJSON = VirtualMachineDatastoreToJSON;
20
20
  exports.VirtualMachineDatastoreToJSONTyped = VirtualMachineDatastoreToJSONTyped;
21
+ const StorageArray_js_1 = require("./StorageArray.js");
21
22
  /**
22
23
  * Check if a given object implements the VirtualMachineDatastore interface.
23
24
  */
@@ -42,6 +43,8 @@ function VirtualMachineDatastoreFromJSONTyped(json, ignoreDiscriminator) {
42
43
  'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
43
44
  'vendor': json['vendor'] == null ? undefined : json['vendor'],
44
45
  'model': json['model'] == null ? undefined : json['model'],
46
+ 'storageArrays': json['storageArrays'] == null ? undefined : (json['storageArrays'].map(StorageArray_js_1.StorageArrayFromJSON)),
47
+ 'storageContainerId': json['storageContainerId'] == null ? undefined : json['storageContainerId'],
45
48
  };
46
49
  }
47
50
  function VirtualMachineDatastoreToJSON(json) {
@@ -62,5 +65,7 @@ function VirtualMachineDatastoreToJSONTyped(value, ignoreDiscriminator = false)
62
65
  'backingDeviceIds': value['backingDeviceIds'],
63
66
  'vendor': value['vendor'],
64
67
  'model': value['model'],
68
+ 'storageArrays': value['storageArrays'] == null ? undefined : (value['storageArrays'].map(StorageArray_js_1.StorageArrayToJSON)),
69
+ 'storageContainerId': value['storageContainerId'],
65
70
  };
66
71
  }
@@ -3,6 +3,11 @@ export * from './AgentStatus.js';
3
3
  export * from './AgentStatusConsoleConnection.js';
4
4
  export * from './Appliance.js';
5
5
  export * from './ApplianceListResponse.js';
6
+ export * from './ApplianceRule.js';
7
+ export * from './ApplianceRuleCondition.js';
8
+ export * from './ApplianceRuleFunction.js';
9
+ export * from './ApplianceRuleListResponse.js';
10
+ export * from './ApplianceRuleRequest.js';
6
11
  export * from './ApplicationListResponse.js';
7
12
  export * from './ApplicationOverview.js';
8
13
  export * from './ApplicationVM.js';
@@ -22,12 +27,16 @@ export * from './CollectionListResponse.js';
22
27
  export * from './CollectorStatus.js';
23
28
  export * from './ComparisonDiffEntry.js';
24
29
  export * from './ComparisonDiffPage.js';
30
+ export * from './ComplexityDiskScoreEntry.js';
31
+ export * from './ComplexityOSNameEntry.js';
32
+ export * from './ComplexityOSScoreEntry.js';
25
33
  export * from './CreateGroupRequest.js';
26
34
  export * from './CredentialStatus.js';
27
35
  export * from './Datastore.js';
28
36
  export * from './DatastoreDetail.js';
29
37
  export * from './DatastorePairRequest.js';
30
38
  export * from './DeleteLabelGloballyResponse.js';
39
+ export * from './DiskGeometryCondition.js';
31
40
  export * from './DiskSizeTierSummary.js';
32
41
  export * from './DiskTypeSummary.js';
33
42
  export * from './EstimateRange.js';
@@ -53,6 +62,8 @@ export * from './InspectorStatus.js';
53
62
  export * from './Inventory.js';
54
63
  export * from './InventoryData.js';
55
64
  export * from './IssuesBreakdown.js';
65
+ export * from './MigrationComplexityRequest.js';
66
+ export * from './MigrationComplexityResponse.js';
56
67
  export * from './MigrationIssue.js';
57
68
  export * from './Network.js';
58
69
  export * from './OperationCapability.js';
@@ -68,6 +79,7 @@ export * from './RightsizingClusterUtilization.js';
68
79
  export * from './StartForecasterRequest.js';
69
80
  export * from './StartInspectionRequest.js';
70
81
  export * from './StopForecasterPair202Response.js';
82
+ export * from './StorageArray.js';
71
83
  export * from './StorageIoConfiguration.js';
72
84
  export * from './SuccessfulImageUpgrade.js';
73
85
  export * from './UpdateGroupRequest.js';
@@ -21,6 +21,11 @@ __exportStar(require("./AgentStatus.js"), exports);
21
21
  __exportStar(require("./AgentStatusConsoleConnection.js"), exports);
22
22
  __exportStar(require("./Appliance.js"), exports);
23
23
  __exportStar(require("./ApplianceListResponse.js"), exports);
24
+ __exportStar(require("./ApplianceRule.js"), exports);
25
+ __exportStar(require("./ApplianceRuleCondition.js"), exports);
26
+ __exportStar(require("./ApplianceRuleFunction.js"), exports);
27
+ __exportStar(require("./ApplianceRuleListResponse.js"), exports);
28
+ __exportStar(require("./ApplianceRuleRequest.js"), exports);
24
29
  __exportStar(require("./ApplicationListResponse.js"), exports);
25
30
  __exportStar(require("./ApplicationOverview.js"), exports);
26
31
  __exportStar(require("./ApplicationVM.js"), exports);
@@ -40,12 +45,16 @@ __exportStar(require("./CollectionListResponse.js"), exports);
40
45
  __exportStar(require("./CollectorStatus.js"), exports);
41
46
  __exportStar(require("./ComparisonDiffEntry.js"), exports);
42
47
  __exportStar(require("./ComparisonDiffPage.js"), exports);
48
+ __exportStar(require("./ComplexityDiskScoreEntry.js"), exports);
49
+ __exportStar(require("./ComplexityOSNameEntry.js"), exports);
50
+ __exportStar(require("./ComplexityOSScoreEntry.js"), exports);
43
51
  __exportStar(require("./CreateGroupRequest.js"), exports);
44
52
  __exportStar(require("./CredentialStatus.js"), exports);
45
53
  __exportStar(require("./Datastore.js"), exports);
46
54
  __exportStar(require("./DatastoreDetail.js"), exports);
47
55
  __exportStar(require("./DatastorePairRequest.js"), exports);
48
56
  __exportStar(require("./DeleteLabelGloballyResponse.js"), exports);
57
+ __exportStar(require("./DiskGeometryCondition.js"), exports);
49
58
  __exportStar(require("./DiskSizeTierSummary.js"), exports);
50
59
  __exportStar(require("./DiskTypeSummary.js"), exports);
51
60
  __exportStar(require("./EstimateRange.js"), exports);
@@ -71,6 +80,8 @@ __exportStar(require("./InspectorStatus.js"), exports);
71
80
  __exportStar(require("./Inventory.js"), exports);
72
81
  __exportStar(require("./InventoryData.js"), exports);
73
82
  __exportStar(require("./IssuesBreakdown.js"), exports);
83
+ __exportStar(require("./MigrationComplexityRequest.js"), exports);
84
+ __exportStar(require("./MigrationComplexityResponse.js"), exports);
74
85
  __exportStar(require("./MigrationIssue.js"), exports);
75
86
  __exportStar(require("./Network.js"), exports);
76
87
  __exportStar(require("./OperationCapability.js"), exports);
@@ -86,6 +97,7 @@ __exportStar(require("./RightsizingClusterUtilization.js"), exports);
86
97
  __exportStar(require("./StartForecasterRequest.js"), exports);
87
98
  __exportStar(require("./StartInspectionRequest.js"), exports);
88
99
  __exportStar(require("./StopForecasterPair202Response.js"), exports);
100
+ __exportStar(require("./StorageArray.js"), exports);
89
101
  __exportStar(require("./StorageIoConfiguration.js"), exports);
90
102
  __exportStar(require("./SuccessfulImageUpgrade.js"), exports);
91
103
  __exportStar(require("./UpdateGroupRequest.js"), exports);
package/dist/runtime.d.ts CHANGED
@@ -75,10 +75,12 @@ export declare class ResponseError extends Error {
75
75
  constructor(response: Response, msg?: string);
76
76
  }
77
77
  export declare class FetchError extends Error {
78
- cause: Error;
79
78
  name: "FetchError";
80
79
  constructor(cause: Error, msg?: string);
81
80
  }
81
+ export interface FetchError {
82
+ cause: Error;
83
+ }
82
84
  export declare class RequiredError extends Error {
83
85
  field: string;
84
86
  name: "RequiredError";
package/dist/runtime.js CHANGED
@@ -249,8 +249,8 @@ exports.ResponseError = ResponseError;
249
249
  class FetchError extends Error {
250
250
  constructor(cause, msg) {
251
251
  super(msg);
252
- this.cause = cause;
253
252
  this.name = "FetchError";
253
+ this.cause = cause;
254
254
  // restore prototype chain
255
255
  const actualProto = new.target.prototype;
256
256
  if (Object.setPrototypeOf) {
@@ -0,0 +1,50 @@
1
+
2
+ # ApplianceRule
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `name` | string
11
+ `vendor` | string
12
+ `category` | string
13
+ `osv_verdict` | string
14
+ `max_confidence` | string
15
+ `kind` | string
16
+ `min_matched` | number
17
+ `conditions` | [Array&lt;ApplianceRuleCondition&gt;](ApplianceRuleCondition.md)
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import type { ApplianceRule } from '@openshift-migration-advisor/agent-sdk'
23
+
24
+ // TODO: Update the object below with actual values
25
+ const example = {
26
+ "id": null,
27
+ "name": null,
28
+ "vendor": null,
29
+ "category": null,
30
+ "osv_verdict": null,
31
+ "max_confidence": null,
32
+ "kind": null,
33
+ "min_matched": null,
34
+ "conditions": null,
35
+ } satisfies ApplianceRule
36
+
37
+ console.log(example)
38
+
39
+ // Convert the instance to a JSON string
40
+ const exampleJSON: string = JSON.stringify(example)
41
+ console.log(exampleJSON)
42
+
43
+ // Parse the JSON string back to an object
44
+ const exampleParsed = JSON.parse(exampleJSON) as ApplianceRule
45
+ console.log(exampleParsed)
46
+ ```
47
+
48
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
49
+
50
+
@@ -0,0 +1,39 @@
1
+
2
+ # ApplianceRuleCondition
3
+
4
+ One condition. Either a filter expression over VM attributes or a call to a registered predicate function carrying its own payload. Exactly one of expression or function must be set. Condition names must be unique within a rule, and min_matched may not exceed the number of conditions.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `name` | string
11
+ `expression` | string
12
+ `_function` | [ApplianceRuleFunction](ApplianceRuleFunction.md)
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { ApplianceRuleCondition } from '@openshift-migration-advisor/agent-sdk'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "name": null,
22
+ "expression": null,
23
+ "_function": null,
24
+ } satisfies ApplianceRuleCondition
25
+
26
+ console.log(example)
27
+
28
+ // Convert the instance to a JSON string
29
+ const exampleJSON: string = JSON.stringify(example)
30
+ console.log(exampleJSON)
31
+
32
+ // Parse the JSON string back to an object
33
+ const exampleParsed = JSON.parse(exampleJSON) as ApplianceRuleCondition
34
+ console.log(exampleParsed)
35
+ ```
36
+
37
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
38
+
39
+
@@ -0,0 +1,37 @@
1
+
2
+ # ApplianceRuleFunction
3
+
4
+ A registered predicate selected by name. Exactly one payload field, the one matching name, must be set; the payload is validated server-side against the predicate the name resolves to.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `name` | string
11
+ `disk_geometry` | [DiskGeometryCondition](DiskGeometryCondition.md)
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { ApplianceRuleFunction } from '@openshift-migration-advisor/agent-sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "name": null,
21
+ "disk_geometry": null,
22
+ } satisfies ApplianceRuleFunction
23
+
24
+ console.log(example)
25
+
26
+ // Convert the instance to a JSON string
27
+ const exampleJSON: string = JSON.stringify(example)
28
+ console.log(exampleJSON)
29
+
30
+ // Parse the JSON string back to an object
31
+ const exampleParsed = JSON.parse(exampleJSON) as ApplianceRuleFunction
32
+ console.log(exampleParsed)
33
+ ```
34
+
35
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
36
+
37
+
@@ -0,0 +1,34 @@
1
+
2
+ # ApplianceRuleListResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `rules` | [Array&lt;ApplianceRule&gt;](ApplianceRule.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ApplianceRuleListResponse } from '@openshift-migration-advisor/agent-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "rules": null,
19
+ } satisfies ApplianceRuleListResponse
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as ApplianceRuleListResponse
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,46 @@
1
+
2
+ # ApplianceRuleRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `vendor` | string
11
+ `category` | string
12
+ `osv_verdict` | string
13
+ `max_confidence` | string
14
+ `min_matched` | number
15
+ `conditions` | [Array&lt;ApplianceRuleCondition&gt;](ApplianceRuleCondition.md)
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { ApplianceRuleRequest } from '@openshift-migration-advisor/agent-sdk'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "name": null,
25
+ "vendor": null,
26
+ "category": null,
27
+ "osv_verdict": null,
28
+ "max_confidence": null,
29
+ "min_matched": null,
30
+ "conditions": null,
31
+ } satisfies ApplianceRuleRequest
32
+
33
+ console.log(example)
34
+
35
+ // Convert the instance to a JSON string
36
+ const exampleJSON: string = JSON.stringify(example)
37
+ console.log(exampleJSON)
38
+
39
+ // Parse the JSON string back to an object
40
+ const exampleParsed = JSON.parse(exampleJSON) as ApplianceRuleRequest
41
+ console.log(exampleParsed)
42
+ ```
43
+
44
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
45
+
46
+