@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.
- package/.openapi-generator/FILES +26 -0
- package/README.md +20 -2
- package/dist/apis/AppliancesApi.d.ts +194 -0
- package/dist/apis/AppliancesApi.js +201 -0
- package/dist/apis/GroupsApi.d.ts +6 -6
- package/dist/apis/RecommendationsApi.d.ts +64 -0
- package/dist/apis/RecommendationsApi.js +74 -0
- package/dist/apis/VirtualMachinesApi.d.ts +6 -6
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AppliancesApi.d.ts +194 -0
- package/dist/esm/apis/AppliancesApi.js +201 -0
- package/dist/esm/apis/GroupsApi.d.ts +6 -6
- package/dist/esm/apis/RecommendationsApi.d.ts +64 -0
- package/dist/esm/apis/RecommendationsApi.js +70 -0
- package/dist/esm/apis/VirtualMachinesApi.d.ts +6 -6
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/ApplianceRule.d.ts +90 -0
- package/dist/esm/models/ApplianceRule.js +98 -0
- package/dist/esm/models/ApplianceRuleCondition.d.ts +42 -0
- package/dist/esm/models/ApplianceRuleCondition.js +48 -0
- package/dist/esm/models/ApplianceRuleFunction.d.ts +37 -0
- package/dist/esm/models/ApplianceRuleFunction.js +46 -0
- package/dist/esm/models/ApplianceRuleListResponse.d.ts +31 -0
- package/dist/esm/models/ApplianceRuleListResponse.js +44 -0
- package/dist/esm/models/ApplianceRuleRequest.d.ts +74 -0
- package/dist/esm/models/ApplianceRuleRequest.js +85 -0
- package/dist/esm/models/ComplexityDiskScoreEntry.d.ts +39 -0
- package/dist/esm/models/ComplexityDiskScoreEntry.js +51 -0
- package/dist/esm/models/ComplexityOSNameEntry.d.ts +40 -0
- package/dist/esm/models/ComplexityOSNameEntry.js +51 -0
- package/dist/esm/models/ComplexityOSScoreEntry.d.ts +35 -0
- package/dist/esm/models/ComplexityOSScoreEntry.js +47 -0
- package/dist/esm/models/Datastore.d.ts +9 -0
- package/dist/esm/models/Datastore.js +5 -0
- package/dist/esm/models/DiskGeometryCondition.d.ts +47 -0
- package/dist/esm/models/DiskGeometryCondition.js +58 -0
- package/dist/esm/models/MigrationComplexityRequest.d.ts +30 -0
- package/dist/esm/models/MigrationComplexityRequest.js +41 -0
- package/dist/esm/models/MigrationComplexityResponse.d.ts +58 -0
- package/dist/esm/models/MigrationComplexityResponse.js +62 -0
- package/dist/esm/models/StorageArray.d.ts +42 -0
- package/dist/esm/models/StorageArray.js +47 -0
- package/dist/esm/models/VirtualMachineDatastore.d.ts +9 -0
- package/dist/esm/models/VirtualMachineDatastore.js +5 -0
- package/dist/esm/models/index.d.ts +12 -0
- package/dist/esm/models/index.js +12 -0
- package/dist/esm/runtime.d.ts +3 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/ApplianceRule.d.ts +90 -0
- package/dist/models/ApplianceRule.js +106 -0
- package/dist/models/ApplianceRuleCondition.d.ts +42 -0
- package/dist/models/ApplianceRuleCondition.js +55 -0
- package/dist/models/ApplianceRuleFunction.d.ts +37 -0
- package/dist/models/ApplianceRuleFunction.js +53 -0
- package/dist/models/ApplianceRuleListResponse.d.ts +31 -0
- package/dist/models/ApplianceRuleListResponse.js +51 -0
- package/dist/models/ApplianceRuleRequest.d.ts +74 -0
- package/dist/models/ApplianceRuleRequest.js +93 -0
- package/dist/models/ComplexityDiskScoreEntry.d.ts +39 -0
- package/dist/models/ComplexityDiskScoreEntry.js +58 -0
- package/dist/models/ComplexityOSNameEntry.d.ts +40 -0
- package/dist/models/ComplexityOSNameEntry.js +58 -0
- package/dist/models/ComplexityOSScoreEntry.d.ts +35 -0
- package/dist/models/ComplexityOSScoreEntry.js +54 -0
- package/dist/models/Datastore.d.ts +9 -0
- package/dist/models/Datastore.js +5 -0
- package/dist/models/DiskGeometryCondition.d.ts +47 -0
- package/dist/models/DiskGeometryCondition.js +66 -0
- package/dist/models/MigrationComplexityRequest.d.ts +30 -0
- package/dist/models/MigrationComplexityRequest.js +48 -0
- package/dist/models/MigrationComplexityResponse.d.ts +58 -0
- package/dist/models/MigrationComplexityResponse.js +69 -0
- package/dist/models/StorageArray.d.ts +42 -0
- package/dist/models/StorageArray.js +54 -0
- package/dist/models/VirtualMachineDatastore.d.ts +9 -0
- package/dist/models/VirtualMachineDatastore.js +5 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/dist/runtime.d.ts +3 -1
- package/dist/runtime.js +1 -1
- package/docs/ApplianceRule.md +50 -0
- package/docs/ApplianceRuleCondition.md +39 -0
- package/docs/ApplianceRuleFunction.md +37 -0
- package/docs/ApplianceRuleListResponse.md +34 -0
- package/docs/ApplianceRuleRequest.md +46 -0
- package/docs/AppliancesApi.md +338 -0
- package/docs/ComplexityDiskScoreEntry.md +39 -0
- package/docs/ComplexityOSNameEntry.md +39 -0
- package/docs/ComplexityOSScoreEntry.md +37 -0
- package/docs/Datastore.md +4 -0
- package/docs/DiskGeometryCondition.md +38 -0
- package/docs/GroupsApi.md +4 -4
- package/docs/MigrationComplexityRequest.md +35 -0
- package/docs/MigrationComplexityResponse.md +43 -0
- package/docs/RecommendationsApi.md +79 -0
- package/docs/StorageArray.md +41 -0
- package/docs/VirtualMachineDatastore.md +4 -0
- package/docs/VirtualMachinesApi.md +4 -4
- package/package.json +1 -1
- package/src/apis/AppliancesApi.ts +393 -0
- package/src/apis/GroupsApi.ts +6 -6
- package/src/apis/RecommendationsApi.ts +117 -0
- package/src/apis/VirtualMachinesApi.ts +6 -6
- package/src/apis/index.ts +1 -0
- package/src/models/ApplianceRule.ts +159 -0
- package/src/models/ApplianceRuleCondition.ts +87 -0
- package/src/models/ApplianceRuleFunction.ts +80 -0
- package/src/models/ApplianceRuleListResponse.ts +72 -0
- package/src/models/ApplianceRuleRequest.ts +137 -0
- package/src/models/ComplexityDiskScoreEntry.ts +79 -0
- package/src/models/ComplexityOSNameEntry.ts +80 -0
- package/src/models/ComplexityOSScoreEntry.ts +72 -0
- package/src/models/Datastore.ts +19 -0
- package/src/models/DiskGeometryCondition.ts +90 -0
- package/src/models/MigrationComplexityRequest.ts +63 -0
- package/src/models/MigrationComplexityResponse.ts +119 -0
- package/src/models/StorageArray.ts +81 -0
- package/src/models/VirtualMachineDatastore.ts +20 -0
- package/src/models/index.ts +12 -0
- package/src/runtime.ts +8 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -8,6 +8,11 @@ docs/AgentStatus.md
|
|
|
8
8
|
docs/AgentStatusConsoleConnection.md
|
|
9
9
|
docs/Appliance.md
|
|
10
10
|
docs/ApplianceListResponse.md
|
|
11
|
+
docs/ApplianceRule.md
|
|
12
|
+
docs/ApplianceRuleCondition.md
|
|
13
|
+
docs/ApplianceRuleFunction.md
|
|
14
|
+
docs/ApplianceRuleListResponse.md
|
|
15
|
+
docs/ApplianceRuleRequest.md
|
|
11
16
|
docs/AppliancesApi.md
|
|
12
17
|
docs/ApplicationListResponse.md
|
|
13
18
|
docs/ApplicationOverview.md
|
|
@@ -31,6 +36,9 @@ docs/CollectorApi.md
|
|
|
31
36
|
docs/CollectorStatus.md
|
|
32
37
|
docs/ComparisonDiffEntry.md
|
|
33
38
|
docs/ComparisonDiffPage.md
|
|
39
|
+
docs/ComplexityDiskScoreEntry.md
|
|
40
|
+
docs/ComplexityOSNameEntry.md
|
|
41
|
+
docs/ComplexityOSScoreEntry.md
|
|
34
42
|
docs/CreateGroupRequest.md
|
|
35
43
|
docs/CredentialStatus.md
|
|
36
44
|
docs/CredentialsApi.md
|
|
@@ -38,6 +46,7 @@ docs/Datastore.md
|
|
|
38
46
|
docs/DatastoreDetail.md
|
|
39
47
|
docs/DatastorePairRequest.md
|
|
40
48
|
docs/DeleteLabelGloballyResponse.md
|
|
49
|
+
docs/DiskGeometryCondition.md
|
|
41
50
|
docs/DiskSizeTierSummary.md
|
|
42
51
|
docs/DiskTypeSummary.md
|
|
43
52
|
docs/EstimateRange.md
|
|
@@ -68,6 +77,8 @@ docs/InventoriesApi.md
|
|
|
68
77
|
docs/Inventory.md
|
|
69
78
|
docs/InventoryData.md
|
|
70
79
|
docs/IssuesBreakdown.md
|
|
80
|
+
docs/MigrationComplexityRequest.md
|
|
81
|
+
docs/MigrationComplexityResponse.md
|
|
71
82
|
docs/MigrationIssue.md
|
|
72
83
|
docs/Network.md
|
|
73
84
|
docs/OperationCapability.md
|
|
@@ -78,12 +89,14 @@ docs/Process.md
|
|
|
78
89
|
docs/Product.md
|
|
79
90
|
docs/RDMBacking.md
|
|
80
91
|
docs/RDMHostLun.md
|
|
92
|
+
docs/RecommendationsApi.md
|
|
81
93
|
docs/RightsizingApi.md
|
|
82
94
|
docs/RightsizingClusterResponse.md
|
|
83
95
|
docs/RightsizingClusterUtilization.md
|
|
84
96
|
docs/StartForecasterRequest.md
|
|
85
97
|
docs/StartInspectionRequest.md
|
|
86
98
|
docs/StopForecasterPair202Response.md
|
|
99
|
+
docs/StorageArray.md
|
|
87
100
|
docs/StorageIoConfiguration.md
|
|
88
101
|
docs/SuccessfulImageUpgrade.md
|
|
89
102
|
docs/UpdateGroupRequest.md
|
|
@@ -124,6 +137,7 @@ src/apis/GroupsApi.ts
|
|
|
124
137
|
src/apis/ImageUpgradeApi.ts
|
|
125
138
|
src/apis/InspectorApi.ts
|
|
126
139
|
src/apis/InventoriesApi.ts
|
|
140
|
+
src/apis/RecommendationsApi.ts
|
|
127
141
|
src/apis/RightsizingApi.ts
|
|
128
142
|
src/apis/VersionApi.ts
|
|
129
143
|
src/apis/VirtualMachinesApi.ts
|
|
@@ -134,6 +148,11 @@ src/models/AgentStatus.ts
|
|
|
134
148
|
src/models/AgentStatusConsoleConnection.ts
|
|
135
149
|
src/models/Appliance.ts
|
|
136
150
|
src/models/ApplianceListResponse.ts
|
|
151
|
+
src/models/ApplianceRule.ts
|
|
152
|
+
src/models/ApplianceRuleCondition.ts
|
|
153
|
+
src/models/ApplianceRuleFunction.ts
|
|
154
|
+
src/models/ApplianceRuleListResponse.ts
|
|
155
|
+
src/models/ApplianceRuleRequest.ts
|
|
137
156
|
src/models/ApplicationListResponse.ts
|
|
138
157
|
src/models/ApplicationOverview.ts
|
|
139
158
|
src/models/ApplicationVM.ts
|
|
@@ -153,12 +172,16 @@ src/models/CollectionListResponse.ts
|
|
|
153
172
|
src/models/CollectorStatus.ts
|
|
154
173
|
src/models/ComparisonDiffEntry.ts
|
|
155
174
|
src/models/ComparisonDiffPage.ts
|
|
175
|
+
src/models/ComplexityDiskScoreEntry.ts
|
|
176
|
+
src/models/ComplexityOSNameEntry.ts
|
|
177
|
+
src/models/ComplexityOSScoreEntry.ts
|
|
156
178
|
src/models/CreateGroupRequest.ts
|
|
157
179
|
src/models/CredentialStatus.ts
|
|
158
180
|
src/models/Datastore.ts
|
|
159
181
|
src/models/DatastoreDetail.ts
|
|
160
182
|
src/models/DatastorePairRequest.ts
|
|
161
183
|
src/models/DeleteLabelGloballyResponse.ts
|
|
184
|
+
src/models/DiskGeometryCondition.ts
|
|
162
185
|
src/models/DiskSizeTierSummary.ts
|
|
163
186
|
src/models/DiskTypeSummary.ts
|
|
164
187
|
src/models/EstimateRange.ts
|
|
@@ -184,6 +207,8 @@ src/models/InspectorStatus.ts
|
|
|
184
207
|
src/models/Inventory.ts
|
|
185
208
|
src/models/InventoryData.ts
|
|
186
209
|
src/models/IssuesBreakdown.ts
|
|
210
|
+
src/models/MigrationComplexityRequest.ts
|
|
211
|
+
src/models/MigrationComplexityResponse.ts
|
|
187
212
|
src/models/MigrationIssue.ts
|
|
188
213
|
src/models/Network.ts
|
|
189
214
|
src/models/OperationCapability.ts
|
|
@@ -199,6 +224,7 @@ src/models/RightsizingClusterUtilization.ts
|
|
|
199
224
|
src/models/StartForecasterRequest.ts
|
|
200
225
|
src/models/StartInspectionRequest.ts
|
|
201
226
|
src/models/StopForecasterPair202Response.ts
|
|
227
|
+
src/models/StorageArray.ts
|
|
202
228
|
src/models/StorageIoConfiguration.ts
|
|
203
229
|
src/models/SuccessfulImageUpgrade.ts
|
|
204
230
|
src/models/UpdateGroupRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/agent-sdk@0.33.1-
|
|
1
|
+
# @openshift-migration-advisor/agent-sdk@0.33.1-d086ee06be70
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -47,7 +47,12 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
47
47
|
| ----- | ------ | ------------ | -------------
|
|
48
48
|
*AgentApi* | [**getAgentStatus**](docs/AgentApi.md#getagentstatus) | **GET** /agent | Get agent status
|
|
49
49
|
*AgentApi* | [**setAgentMode**](docs/AgentApi.md#setagentmode) | **POST** /agent | Change agent mode
|
|
50
|
+
*AppliancesApi* | [**createApplianceRule**](docs/AppliancesApi.md#createappliancerule) | **POST** /appliances/rules | Create an appliance rule
|
|
51
|
+
*AppliancesApi* | [**deleteApplianceRule**](docs/AppliancesApi.md#deleteappliancerule) | **DELETE** /appliances/rules/{ruleId} | Delete an appliance rule
|
|
52
|
+
*AppliancesApi* | [**getApplianceRule**](docs/AppliancesApi.md#getappliancerule) | **GET** /appliances/rules/{ruleId} | Get an appliance rule
|
|
53
|
+
*AppliancesApi* | [**listApplianceRules**](docs/AppliancesApi.md#listappliancerules) | **GET** /appliances/rules | List appliance rules
|
|
50
54
|
*AppliancesApi* | [**listAppliances**](docs/AppliancesApi.md#listappliances) | **GET** /collections/{id}/appliances | List detected appliances in a collection
|
|
55
|
+
*AppliancesApi* | [**updateApplianceRule**](docs/AppliancesApi.md#updateappliancerule) | **PUT** /appliances/rules/{ruleId} | Replace an appliance rule
|
|
51
56
|
*ApplicationsApi* | [**listApplications**](docs/ApplicationsApi.md#listapplications) | **GET** /collections/{id}/applications | List detected applications in a collection
|
|
52
57
|
*CollectionsApi* | [**compareCollections**](docs/CollectionsApi.md#comparecollections) | **GET** /collections/compare/{aId}/{bId} | Compare two collections — returns aggregates and diffs
|
|
53
58
|
*CollectionsApi* | [**compareCollectionsDiff**](docs/CollectionsApi.md#comparecollectionsdiff) | **GET** /collections/compare/{aId}/{bId}/{dimension} | Drill down — VM IDs that differ between two collections for a given dimension
|
|
@@ -87,6 +92,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
87
92
|
*InspectorApi* | [**stopInspection**](docs/InspectorApi.md#stopinspection) | **DELETE** /inspector | Stop inspector
|
|
88
93
|
*InventoriesApi* | [**getInventory**](docs/InventoriesApi.md#getinventory) | **GET** /collections/{id}/inventory | Get collected inventory for a collection
|
|
89
94
|
*InventoriesApi* | [**getLatestInventory**](docs/InventoriesApi.md#getlatestinventory) | **GET** /inventory | Get inventory from the latest collection
|
|
95
|
+
*RecommendationsApi* | [**calculateMigrationComplexity**](docs/RecommendationsApi.md#calculatemigrationcomplexity) | **POST** /complexity-estimation |
|
|
90
96
|
*RightsizingApi* | [**getClusterUtilization**](docs/RightsizingApi.md#getclusterutilization) | **GET** /collections/{id}/clusters/{clusterId}/utilization | Get latest cluster utilization by cluster ID
|
|
91
97
|
*RightsizingApi* | [**getLatestVMUtilization**](docs/RightsizingApi.md#getlatestvmutilization) | **GET** /virtualmachines/{vmId}/utilization | Get utilization breakdown for a specific VM from the latest collection
|
|
92
98
|
*VersionApi* | [**getVersion**](docs/VersionApi.md#getversion) | **GET** /version | Get agent version information
|
|
@@ -113,6 +119,11 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
113
119
|
- [AgentStatusConsoleConnection](docs/AgentStatusConsoleConnection.md)
|
|
114
120
|
- [Appliance](docs/Appliance.md)
|
|
115
121
|
- [ApplianceListResponse](docs/ApplianceListResponse.md)
|
|
122
|
+
- [ApplianceRule](docs/ApplianceRule.md)
|
|
123
|
+
- [ApplianceRuleCondition](docs/ApplianceRuleCondition.md)
|
|
124
|
+
- [ApplianceRuleFunction](docs/ApplianceRuleFunction.md)
|
|
125
|
+
- [ApplianceRuleListResponse](docs/ApplianceRuleListResponse.md)
|
|
126
|
+
- [ApplianceRuleRequest](docs/ApplianceRuleRequest.md)
|
|
116
127
|
- [ApplicationListResponse](docs/ApplicationListResponse.md)
|
|
117
128
|
- [ApplicationOverview](docs/ApplicationOverview.md)
|
|
118
129
|
- [ApplicationVM](docs/ApplicationVM.md)
|
|
@@ -132,12 +143,16 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
132
143
|
- [CollectorStatus](docs/CollectorStatus.md)
|
|
133
144
|
- [ComparisonDiffEntry](docs/ComparisonDiffEntry.md)
|
|
134
145
|
- [ComparisonDiffPage](docs/ComparisonDiffPage.md)
|
|
146
|
+
- [ComplexityDiskScoreEntry](docs/ComplexityDiskScoreEntry.md)
|
|
147
|
+
- [ComplexityOSNameEntry](docs/ComplexityOSNameEntry.md)
|
|
148
|
+
- [ComplexityOSScoreEntry](docs/ComplexityOSScoreEntry.md)
|
|
135
149
|
- [CreateGroupRequest](docs/CreateGroupRequest.md)
|
|
136
150
|
- [CredentialStatus](docs/CredentialStatus.md)
|
|
137
151
|
- [Datastore](docs/Datastore.md)
|
|
138
152
|
- [DatastoreDetail](docs/DatastoreDetail.md)
|
|
139
153
|
- [DatastorePairRequest](docs/DatastorePairRequest.md)
|
|
140
154
|
- [DeleteLabelGloballyResponse](docs/DeleteLabelGloballyResponse.md)
|
|
155
|
+
- [DiskGeometryCondition](docs/DiskGeometryCondition.md)
|
|
141
156
|
- [DiskSizeTierSummary](docs/DiskSizeTierSummary.md)
|
|
142
157
|
- [DiskTypeSummary](docs/DiskTypeSummary.md)
|
|
143
158
|
- [EstimateRange](docs/EstimateRange.md)
|
|
@@ -163,6 +178,8 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
163
178
|
- [Inventory](docs/Inventory.md)
|
|
164
179
|
- [InventoryData](docs/InventoryData.md)
|
|
165
180
|
- [IssuesBreakdown](docs/IssuesBreakdown.md)
|
|
181
|
+
- [MigrationComplexityRequest](docs/MigrationComplexityRequest.md)
|
|
182
|
+
- [MigrationComplexityResponse](docs/MigrationComplexityResponse.md)
|
|
166
183
|
- [MigrationIssue](docs/MigrationIssue.md)
|
|
167
184
|
- [Network](docs/Network.md)
|
|
168
185
|
- [OperationCapability](docs/OperationCapability.md)
|
|
@@ -178,6 +195,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
178
195
|
- [StartForecasterRequest](docs/StartForecasterRequest.md)
|
|
179
196
|
- [StartInspectionRequest](docs/StartInspectionRequest.md)
|
|
180
197
|
- [StopForecasterPair202Response](docs/StopForecasterPair202Response.md)
|
|
198
|
+
- [StorageArray](docs/StorageArray.md)
|
|
181
199
|
- [StorageIoConfiguration](docs/StorageIoConfiguration.md)
|
|
182
200
|
- [SuccessfulImageUpgrade](docs/SuccessfulImageUpgrade.md)
|
|
183
201
|
- [UpdateGroupRequest](docs/UpdateGroupRequest.md)
|
|
@@ -217,7 +235,7 @@ and is automatically generated by the
|
|
|
217
235
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
218
236
|
|
|
219
237
|
- API version: `v2`
|
|
220
|
-
- Package version: `0.33.1-
|
|
238
|
+
- Package version: `0.33.1-d086ee06be70`
|
|
221
239
|
- Generator version: `7.29.0-SNAPSHOT`
|
|
222
240
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
223
241
|
|
|
@@ -11,12 +11,43 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
13
|
import { type ApplianceListResponse } from '../models/ApplianceListResponse.js';
|
|
14
|
+
import { type ApplianceRule } from '../models/ApplianceRule.js';
|
|
15
|
+
import { type ApplianceRuleListResponse } from '../models/ApplianceRuleListResponse.js';
|
|
16
|
+
import { type ApplianceRuleRequest } from '../models/ApplianceRuleRequest.js';
|
|
17
|
+
export interface CreateApplianceRuleRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
applianceRuleRequest: ApplianceRuleRequest;
|
|
22
|
+
}
|
|
23
|
+
export interface DeleteApplianceRuleRequest {
|
|
24
|
+
/**
|
|
25
|
+
* Rule ID
|
|
26
|
+
*/
|
|
27
|
+
ruleId: string;
|
|
28
|
+
}
|
|
29
|
+
export interface GetApplianceRuleRequest {
|
|
30
|
+
/**
|
|
31
|
+
* Rule ID
|
|
32
|
+
*/
|
|
33
|
+
ruleId: string;
|
|
34
|
+
}
|
|
14
35
|
export interface ListAppliancesRequest {
|
|
15
36
|
/**
|
|
16
37
|
* Collection ID
|
|
17
38
|
*/
|
|
18
39
|
id: string;
|
|
19
40
|
}
|
|
41
|
+
export interface UpdateApplianceRuleRequest {
|
|
42
|
+
/**
|
|
43
|
+
* Rule ID
|
|
44
|
+
*/
|
|
45
|
+
ruleId: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
applianceRuleRequest: ApplianceRuleRequest;
|
|
50
|
+
}
|
|
20
51
|
/**
|
|
21
52
|
* AppliancesApi - interface
|
|
22
53
|
*
|
|
@@ -24,6 +55,84 @@ export interface ListAppliancesRequest {
|
|
|
24
55
|
* @interface AppliancesApiInterface
|
|
25
56
|
*/
|
|
26
57
|
export interface AppliancesApiInterface {
|
|
58
|
+
/**
|
|
59
|
+
* Creates request options for createApplianceRule without sending the request
|
|
60
|
+
* @param {ApplianceRuleRequest} applianceRuleRequest
|
|
61
|
+
* @throws {RequiredError}
|
|
62
|
+
* @memberof AppliancesApiInterface
|
|
63
|
+
*/
|
|
64
|
+
createApplianceRuleRequestOpts(requestParameters: CreateApplianceRuleRequest): Promise<runtime.RequestOpts>;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @summary Create an appliance rule
|
|
68
|
+
* @param {ApplianceRuleRequest} applianceRuleRequest
|
|
69
|
+
* @param {*} [options] Override http request option.
|
|
70
|
+
* @throws {RequiredError}
|
|
71
|
+
* @memberof AppliancesApiInterface
|
|
72
|
+
*/
|
|
73
|
+
createApplianceRuleRaw(requestParameters: CreateApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceRule>>;
|
|
74
|
+
/**
|
|
75
|
+
* Create an appliance rule
|
|
76
|
+
*/
|
|
77
|
+
createApplianceRule(requestParameters: CreateApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceRule>;
|
|
78
|
+
/**
|
|
79
|
+
* Creates request options for deleteApplianceRule without sending the request
|
|
80
|
+
* @param {string} ruleId Rule ID
|
|
81
|
+
* @throws {RequiredError}
|
|
82
|
+
* @memberof AppliancesApiInterface
|
|
83
|
+
*/
|
|
84
|
+
deleteApplianceRuleRequestOpts(requestParameters: DeleteApplianceRuleRequest): Promise<runtime.RequestOpts>;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @summary Delete an appliance rule
|
|
88
|
+
* @param {string} ruleId Rule ID
|
|
89
|
+
* @param {*} [options] Override http request option.
|
|
90
|
+
* @throws {RequiredError}
|
|
91
|
+
* @memberof AppliancesApiInterface
|
|
92
|
+
*/
|
|
93
|
+
deleteApplianceRuleRaw(requestParameters: DeleteApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
94
|
+
/**
|
|
95
|
+
* Delete an appliance rule
|
|
96
|
+
*/
|
|
97
|
+
deleteApplianceRule(requestParameters: DeleteApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
98
|
+
/**
|
|
99
|
+
* Creates request options for getApplianceRule without sending the request
|
|
100
|
+
* @param {string} ruleId Rule ID
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
* @memberof AppliancesApiInterface
|
|
103
|
+
*/
|
|
104
|
+
getApplianceRuleRequestOpts(requestParameters: GetApplianceRuleRequest): Promise<runtime.RequestOpts>;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @summary Get an appliance rule
|
|
108
|
+
* @param {string} ruleId Rule ID
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
* @memberof AppliancesApiInterface
|
|
112
|
+
*/
|
|
113
|
+
getApplianceRuleRaw(requestParameters: GetApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceRule>>;
|
|
114
|
+
/**
|
|
115
|
+
* Get an appliance rule
|
|
116
|
+
*/
|
|
117
|
+
getApplianceRule(requestParameters: GetApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceRule>;
|
|
118
|
+
/**
|
|
119
|
+
* Creates request options for listApplianceRules without sending the request
|
|
120
|
+
* @throws {RequiredError}
|
|
121
|
+
* @memberof AppliancesApiInterface
|
|
122
|
+
*/
|
|
123
|
+
listApplianceRulesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @summary List appliance rules
|
|
127
|
+
* @param {*} [options] Override http request option.
|
|
128
|
+
* @throws {RequiredError}
|
|
129
|
+
* @memberof AppliancesApiInterface
|
|
130
|
+
*/
|
|
131
|
+
listApplianceRulesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceRuleListResponse>>;
|
|
132
|
+
/**
|
|
133
|
+
* List appliance rules
|
|
134
|
+
*/
|
|
135
|
+
listApplianceRules(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceRuleListResponse>;
|
|
27
136
|
/**
|
|
28
137
|
* Creates request options for listAppliances without sending the request
|
|
29
138
|
* @param {string} id Collection ID
|
|
@@ -44,11 +153,82 @@ export interface AppliancesApiInterface {
|
|
|
44
153
|
* List detected appliances in a collection
|
|
45
154
|
*/
|
|
46
155
|
listAppliances(requestParameters: ListAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceListResponse>;
|
|
156
|
+
/**
|
|
157
|
+
* Creates request options for updateApplianceRule without sending the request
|
|
158
|
+
* @param {string} ruleId Rule ID
|
|
159
|
+
* @param {ApplianceRuleRequest} applianceRuleRequest
|
|
160
|
+
* @throws {RequiredError}
|
|
161
|
+
* @memberof AppliancesApiInterface
|
|
162
|
+
*/
|
|
163
|
+
updateApplianceRuleRequestOpts(requestParameters: UpdateApplianceRuleRequest): Promise<runtime.RequestOpts>;
|
|
164
|
+
/**
|
|
165
|
+
* Full replacement of the rule with this id, including its conditions. When no rule has this id a new rule is created and the response carries the server assigned id, which differs from the id in the path.
|
|
166
|
+
* @summary Replace an appliance rule
|
|
167
|
+
* @param {string} ruleId Rule ID
|
|
168
|
+
* @param {ApplianceRuleRequest} applianceRuleRequest
|
|
169
|
+
* @param {*} [options] Override http request option.
|
|
170
|
+
* @throws {RequiredError}
|
|
171
|
+
* @memberof AppliancesApiInterface
|
|
172
|
+
*/
|
|
173
|
+
updateApplianceRuleRaw(requestParameters: UpdateApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceRule>>;
|
|
174
|
+
/**
|
|
175
|
+
* Full replacement of the rule with this id, including its conditions. When no rule has this id a new rule is created and the response carries the server assigned id, which differs from the id in the path.
|
|
176
|
+
* Replace an appliance rule
|
|
177
|
+
*/
|
|
178
|
+
updateApplianceRule(requestParameters: UpdateApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceRule>;
|
|
47
179
|
}
|
|
48
180
|
/**
|
|
49
181
|
*
|
|
50
182
|
*/
|
|
51
183
|
export declare class AppliancesApi extends runtime.BaseAPI implements AppliancesApiInterface {
|
|
184
|
+
/**
|
|
185
|
+
* Creates request options for createApplianceRule without sending the request
|
|
186
|
+
*/
|
|
187
|
+
createApplianceRuleRequestOpts(requestParameters: CreateApplianceRuleRequest): Promise<runtime.RequestOpts>;
|
|
188
|
+
/**
|
|
189
|
+
* Create an appliance rule
|
|
190
|
+
*/
|
|
191
|
+
createApplianceRuleRaw(requestParameters: CreateApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceRule>>;
|
|
192
|
+
/**
|
|
193
|
+
* Create an appliance rule
|
|
194
|
+
*/
|
|
195
|
+
createApplianceRule(requestParameters: CreateApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceRule>;
|
|
196
|
+
/**
|
|
197
|
+
* Creates request options for deleteApplianceRule without sending the request
|
|
198
|
+
*/
|
|
199
|
+
deleteApplianceRuleRequestOpts(requestParameters: DeleteApplianceRuleRequest): Promise<runtime.RequestOpts>;
|
|
200
|
+
/**
|
|
201
|
+
* Delete an appliance rule
|
|
202
|
+
*/
|
|
203
|
+
deleteApplianceRuleRaw(requestParameters: DeleteApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
204
|
+
/**
|
|
205
|
+
* Delete an appliance rule
|
|
206
|
+
*/
|
|
207
|
+
deleteApplianceRule(requestParameters: DeleteApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
208
|
+
/**
|
|
209
|
+
* Creates request options for getApplianceRule without sending the request
|
|
210
|
+
*/
|
|
211
|
+
getApplianceRuleRequestOpts(requestParameters: GetApplianceRuleRequest): Promise<runtime.RequestOpts>;
|
|
212
|
+
/**
|
|
213
|
+
* Get an appliance rule
|
|
214
|
+
*/
|
|
215
|
+
getApplianceRuleRaw(requestParameters: GetApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceRule>>;
|
|
216
|
+
/**
|
|
217
|
+
* Get an appliance rule
|
|
218
|
+
*/
|
|
219
|
+
getApplianceRule(requestParameters: GetApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceRule>;
|
|
220
|
+
/**
|
|
221
|
+
* Creates request options for listApplianceRules without sending the request
|
|
222
|
+
*/
|
|
223
|
+
listApplianceRulesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
224
|
+
/**
|
|
225
|
+
* List appliance rules
|
|
226
|
+
*/
|
|
227
|
+
listApplianceRulesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceRuleListResponse>>;
|
|
228
|
+
/**
|
|
229
|
+
* List appliance rules
|
|
230
|
+
*/
|
|
231
|
+
listApplianceRules(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceRuleListResponse>;
|
|
52
232
|
/**
|
|
53
233
|
* Creates request options for listAppliances without sending the request
|
|
54
234
|
*/
|
|
@@ -61,4 +241,18 @@ export declare class AppliancesApi extends runtime.BaseAPI implements Appliances
|
|
|
61
241
|
* List detected appliances in a collection
|
|
62
242
|
*/
|
|
63
243
|
listAppliances(requestParameters: ListAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceListResponse>;
|
|
244
|
+
/**
|
|
245
|
+
* Creates request options for updateApplianceRule without sending the request
|
|
246
|
+
*/
|
|
247
|
+
updateApplianceRuleRequestOpts(requestParameters: UpdateApplianceRuleRequest): Promise<runtime.RequestOpts>;
|
|
248
|
+
/**
|
|
249
|
+
* Full replacement of the rule with this id, including its conditions. When no rule has this id a new rule is created and the response carries the server assigned id, which differs from the id in the path.
|
|
250
|
+
* Replace an appliance rule
|
|
251
|
+
*/
|
|
252
|
+
updateApplianceRuleRaw(requestParameters: UpdateApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceRule>>;
|
|
253
|
+
/**
|
|
254
|
+
* Full replacement of the rule with this id, including its conditions. When no rule has this id a new rule is created and the response carries the server assigned id, which differs from the id in the path.
|
|
255
|
+
* Replace an appliance rule
|
|
256
|
+
*/
|
|
257
|
+
updateApplianceRule(requestParameters: UpdateApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceRule>;
|
|
64
258
|
}
|
|
@@ -25,10 +25,165 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
25
25
|
exports.AppliancesApi = void 0;
|
|
26
26
|
const runtime = require("../runtime.js");
|
|
27
27
|
const ApplianceListResponse_js_1 = require("../models/ApplianceListResponse.js");
|
|
28
|
+
const ApplianceRule_js_1 = require("../models/ApplianceRule.js");
|
|
29
|
+
const ApplianceRuleListResponse_js_1 = require("../models/ApplianceRuleListResponse.js");
|
|
30
|
+
const ApplianceRuleRequest_js_1 = require("../models/ApplianceRuleRequest.js");
|
|
28
31
|
/**
|
|
29
32
|
*
|
|
30
33
|
*/
|
|
31
34
|
class AppliancesApi extends runtime.BaseAPI {
|
|
35
|
+
/**
|
|
36
|
+
* Creates request options for createApplianceRule without sending the request
|
|
37
|
+
*/
|
|
38
|
+
createApplianceRuleRequestOpts(requestParameters) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (requestParameters['applianceRuleRequest'] == null) {
|
|
41
|
+
throw new runtime.RequiredError('applianceRuleRequest', 'Required parameter "applianceRuleRequest" was null or undefined when calling createApplianceRule().');
|
|
42
|
+
}
|
|
43
|
+
const queryParameters = {};
|
|
44
|
+
const headerParameters = {};
|
|
45
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
46
|
+
let urlPath = `/appliances/rules`;
|
|
47
|
+
return {
|
|
48
|
+
path: urlPath,
|
|
49
|
+
method: 'POST',
|
|
50
|
+
headers: headerParameters,
|
|
51
|
+
query: queryParameters,
|
|
52
|
+
body: (0, ApplianceRuleRequest_js_1.ApplianceRuleRequestToJSON)(requestParameters['applianceRuleRequest']),
|
|
53
|
+
};
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Create an appliance rule
|
|
58
|
+
*/
|
|
59
|
+
createApplianceRuleRaw(requestParameters, initOverrides) {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
const requestOptions = yield this.createApplianceRuleRequestOpts(requestParameters);
|
|
62
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
63
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplianceRule_js_1.ApplianceRuleFromJSON)(jsonValue));
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Create an appliance rule
|
|
68
|
+
*/
|
|
69
|
+
createApplianceRule(requestParameters, initOverrides) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
const response = yield this.createApplianceRuleRaw(requestParameters, initOverrides);
|
|
72
|
+
return yield response.value();
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Creates request options for deleteApplianceRule without sending the request
|
|
77
|
+
*/
|
|
78
|
+
deleteApplianceRuleRequestOpts(requestParameters) {
|
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
if (requestParameters['ruleId'] == null) {
|
|
81
|
+
throw new runtime.RequiredError('ruleId', 'Required parameter "ruleId" was null or undefined when calling deleteApplianceRule().');
|
|
82
|
+
}
|
|
83
|
+
const queryParameters = {};
|
|
84
|
+
const headerParameters = {};
|
|
85
|
+
let urlPath = `/appliances/rules/{ruleId}`;
|
|
86
|
+
urlPath = urlPath.replace('{ruleId}', encodeURIComponent(String(requestParameters['ruleId'])));
|
|
87
|
+
return {
|
|
88
|
+
path: urlPath,
|
|
89
|
+
method: 'DELETE',
|
|
90
|
+
headers: headerParameters,
|
|
91
|
+
query: queryParameters,
|
|
92
|
+
};
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Delete an appliance rule
|
|
97
|
+
*/
|
|
98
|
+
deleteApplianceRuleRaw(requestParameters, initOverrides) {
|
|
99
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
+
const requestOptions = yield this.deleteApplianceRuleRequestOpts(requestParameters);
|
|
101
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
102
|
+
return new runtime.VoidApiResponse(response);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Delete an appliance rule
|
|
107
|
+
*/
|
|
108
|
+
deleteApplianceRule(requestParameters, initOverrides) {
|
|
109
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
+
yield this.deleteApplianceRuleRaw(requestParameters, initOverrides);
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Creates request options for getApplianceRule without sending the request
|
|
115
|
+
*/
|
|
116
|
+
getApplianceRuleRequestOpts(requestParameters) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
if (requestParameters['ruleId'] == null) {
|
|
119
|
+
throw new runtime.RequiredError('ruleId', 'Required parameter "ruleId" was null or undefined when calling getApplianceRule().');
|
|
120
|
+
}
|
|
121
|
+
const queryParameters = {};
|
|
122
|
+
const headerParameters = {};
|
|
123
|
+
let urlPath = `/appliances/rules/{ruleId}`;
|
|
124
|
+
urlPath = urlPath.replace('{ruleId}', encodeURIComponent(String(requestParameters['ruleId'])));
|
|
125
|
+
return {
|
|
126
|
+
path: urlPath,
|
|
127
|
+
method: 'GET',
|
|
128
|
+
headers: headerParameters,
|
|
129
|
+
query: queryParameters,
|
|
130
|
+
};
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Get an appliance rule
|
|
135
|
+
*/
|
|
136
|
+
getApplianceRuleRaw(requestParameters, initOverrides) {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
const requestOptions = yield this.getApplianceRuleRequestOpts(requestParameters);
|
|
139
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
140
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplianceRule_js_1.ApplianceRuleFromJSON)(jsonValue));
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Get an appliance rule
|
|
145
|
+
*/
|
|
146
|
+
getApplianceRule(requestParameters, initOverrides) {
|
|
147
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
148
|
+
const response = yield this.getApplianceRuleRaw(requestParameters, initOverrides);
|
|
149
|
+
return yield response.value();
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Creates request options for listApplianceRules without sending the request
|
|
154
|
+
*/
|
|
155
|
+
listApplianceRulesRequestOpts() {
|
|
156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
+
const queryParameters = {};
|
|
158
|
+
const headerParameters = {};
|
|
159
|
+
let urlPath = `/appliances/rules`;
|
|
160
|
+
return {
|
|
161
|
+
path: urlPath,
|
|
162
|
+
method: 'GET',
|
|
163
|
+
headers: headerParameters,
|
|
164
|
+
query: queryParameters,
|
|
165
|
+
};
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* List appliance rules
|
|
170
|
+
*/
|
|
171
|
+
listApplianceRulesRaw(initOverrides) {
|
|
172
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
173
|
+
const requestOptions = yield this.listApplianceRulesRequestOpts();
|
|
174
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
175
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplianceRuleListResponse_js_1.ApplianceRuleListResponseFromJSON)(jsonValue));
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* List appliance rules
|
|
180
|
+
*/
|
|
181
|
+
listApplianceRules(initOverrides) {
|
|
182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
183
|
+
const response = yield this.listApplianceRulesRaw(initOverrides);
|
|
184
|
+
return yield response.value();
|
|
185
|
+
});
|
|
186
|
+
}
|
|
32
187
|
/**
|
|
33
188
|
* Creates request options for listAppliances without sending the request
|
|
34
189
|
*/
|
|
@@ -68,5 +223,51 @@ class AppliancesApi extends runtime.BaseAPI {
|
|
|
68
223
|
return yield response.value();
|
|
69
224
|
});
|
|
70
225
|
}
|
|
226
|
+
/**
|
|
227
|
+
* Creates request options for updateApplianceRule without sending the request
|
|
228
|
+
*/
|
|
229
|
+
updateApplianceRuleRequestOpts(requestParameters) {
|
|
230
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
231
|
+
if (requestParameters['ruleId'] == null) {
|
|
232
|
+
throw new runtime.RequiredError('ruleId', 'Required parameter "ruleId" was null or undefined when calling updateApplianceRule().');
|
|
233
|
+
}
|
|
234
|
+
if (requestParameters['applianceRuleRequest'] == null) {
|
|
235
|
+
throw new runtime.RequiredError('applianceRuleRequest', 'Required parameter "applianceRuleRequest" was null or undefined when calling updateApplianceRule().');
|
|
236
|
+
}
|
|
237
|
+
const queryParameters = {};
|
|
238
|
+
const headerParameters = {};
|
|
239
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
240
|
+
let urlPath = `/appliances/rules/{ruleId}`;
|
|
241
|
+
urlPath = urlPath.replace('{ruleId}', encodeURIComponent(String(requestParameters['ruleId'])));
|
|
242
|
+
return {
|
|
243
|
+
path: urlPath,
|
|
244
|
+
method: 'PUT',
|
|
245
|
+
headers: headerParameters,
|
|
246
|
+
query: queryParameters,
|
|
247
|
+
body: (0, ApplianceRuleRequest_js_1.ApplianceRuleRequestToJSON)(requestParameters['applianceRuleRequest']),
|
|
248
|
+
};
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Full replacement of the rule with this id, including its conditions. When no rule has this id a new rule is created and the response carries the server assigned id, which differs from the id in the path.
|
|
253
|
+
* Replace an appliance rule
|
|
254
|
+
*/
|
|
255
|
+
updateApplianceRuleRaw(requestParameters, initOverrides) {
|
|
256
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
257
|
+
const requestOptions = yield this.updateApplianceRuleRequestOpts(requestParameters);
|
|
258
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
259
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplianceRule_js_1.ApplianceRuleFromJSON)(jsonValue));
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Full replacement of the rule with this id, including its conditions. When no rule has this id a new rule is created and the response carries the server assigned id, which differs from the id in the path.
|
|
264
|
+
* Replace an appliance rule
|
|
265
|
+
*/
|
|
266
|
+
updateApplianceRule(requestParameters, initOverrides) {
|
|
267
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
268
|
+
const response = yield this.updateApplianceRuleRaw(requestParameters, initOverrides);
|
|
269
|
+
return yield response.value();
|
|
270
|
+
});
|
|
271
|
+
}
|
|
71
272
|
}
|
|
72
273
|
exports.AppliancesApi = AppliancesApi;
|