@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,79 @@
1
+ # RecommendationsApi
2
+
3
+ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**calculateMigrationComplexity**](RecommendationsApi.md#calculatemigrationcomplexity) | **POST** /complexity-estimation | |
8
+
9
+
10
+
11
+ ## calculateMigrationComplexity
12
+
13
+ > MigrationComplexityResponse calculateMigrationComplexity(migrationComplexityRequest)
14
+
15
+
16
+
17
+ Calculate migration complexity estimation for the latest collection
18
+
19
+ ### Example
20
+
21
+ ```ts
22
+ import {
23
+ Configuration,
24
+ RecommendationsApi,
25
+ } from '@openshift-migration-advisor/agent-sdk';
26
+ import type { CalculateMigrationComplexityRequest } from '@openshift-migration-advisor/agent-sdk';
27
+
28
+ async function example() {
29
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
30
+ const api = new RecommendationsApi();
31
+
32
+ const body = {
33
+ // MigrationComplexityRequest
34
+ migrationComplexityRequest: ...,
35
+ } satisfies CalculateMigrationComplexityRequest;
36
+
37
+ try {
38
+ const data = await api.calculateMigrationComplexity(body);
39
+ console.log(data);
40
+ } catch (error) {
41
+ console.error(error);
42
+ }
43
+ }
44
+
45
+ // Run the test
46
+ example().catch(console.error);
47
+ ```
48
+
49
+ ### Parameters
50
+
51
+
52
+ | Name | Type | Description | Notes |
53
+ |------------- | ------------- | ------------- | -------------|
54
+ | **migrationComplexityRequest** | [MigrationComplexityRequest](MigrationComplexityRequest.md) | | |
55
+
56
+ ### Return type
57
+
58
+ [**MigrationComplexityResponse**](MigrationComplexityResponse.md)
59
+
60
+ ### Authorization
61
+
62
+ No authorization required
63
+
64
+ ### HTTP request headers
65
+
66
+ - **Content-Type**: `application/json`
67
+ - **Accept**: `application/json`
68
+
69
+
70
+ ### HTTP response details
71
+ | Status code | Description | Response headers |
72
+ |-------------|-------------|------------------|
73
+ | **200** | Migration complexity estimation successful | - |
74
+ | **400** | Bad Request | - |
75
+ | **404** | Not found | - |
76
+ | **500** | Internal error | - |
77
+
78
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
79
+
@@ -0,0 +1,41 @@
1
+
2
+ # StorageArray
3
+
4
+ Authoritative source VASA array identity associated with this datastore; distinct from LUN inquiry metadata and storage-container identity
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `uuid` | string
11
+ `name` | string
12
+ `vendorId` | string
13
+ `modelId` | string
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { StorageArray } from '@openshift-migration-advisor/agent-sdk'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "uuid": null,
23
+ "name": null,
24
+ "vendorId": null,
25
+ "modelId": null,
26
+ } satisfies StorageArray
27
+
28
+ console.log(example)
29
+
30
+ // Convert the instance to a JSON string
31
+ const exampleJSON: string = JSON.stringify(example)
32
+ console.log(exampleJSON)
33
+
34
+ // Parse the JSON string back to an object
35
+ const exampleParsed = JSON.parse(exampleJSON) as StorageArray
36
+ console.log(exampleParsed)
37
+ ```
38
+
39
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
40
+
41
+
@@ -17,6 +17,8 @@ Name | Type
17
17
  `backingDeviceIds` | Array<string>
18
18
  `vendor` | string
19
19
  `model` | string
20
+ `storageArrays` | [Array<StorageArray>](StorageArray.md)
21
+ `storageContainerId` | string
20
22
 
21
23
  ## Example
22
24
 
@@ -35,6 +37,8 @@ const example = {
35
37
  "backingDeviceIds": null,
36
38
  "vendor": null,
37
39
  "model": null,
40
+ "storageArrays": null,
41
+ "storageContainerId": null,
38
42
  } satisfies VirtualMachineDatastore
39
43
 
40
44
  console.log(example)
@@ -706,7 +706,7 @@ async function example() {
706
706
  const body = {
707
707
  // string | Filter by expression (optional)
708
708
  byExpression: byExpression_example,
709
- // Array<string> | Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. (optional)
709
+ // Array<string> | Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs. (optional)
710
710
  sort: ["cluster:asc","name:desc"],
711
711
  // number | Page number for pagination (optional)
712
712
  page: 56,
@@ -732,7 +732,7 @@ example().catch(console.error);
732
732
  | Name | Type | Description | Notes |
733
733
  |------------- | ------------- | ------------- | -------------|
734
734
  | **byExpression** | `string` | Filter by expression | [Optional] [Defaults to `undefined`] |
735
- | **sort** | `Array<string>` | Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. | [Optional] |
735
+ | **sort** | `Array<string>` | Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs. | [Optional] |
736
736
  | **page** | `number` | Page number for pagination | [Optional] [Defaults to `1`] |
737
737
  | **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `undefined`] |
738
738
 
@@ -785,7 +785,7 @@ async function example() {
785
785
  id: id_example,
786
786
  // string | Filter by expression (optional)
787
787
  byExpression: byExpression_example,
788
- // Array<string> | Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. (optional)
788
+ // Array<string> | Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs. (optional)
789
789
  sort: ["cluster:asc","name:desc"],
790
790
  // number | Page number for pagination (optional)
791
791
  page: 56,
@@ -812,7 +812,7 @@ example().catch(console.error);
812
812
  |------------- | ------------- | ------------- | -------------|
813
813
  | **id** | `string` | Collection ID | [Defaults to `undefined`] |
814
814
  | **byExpression** | `string` | Filter by expression | [Optional] [Defaults to `undefined`] |
815
- | **sort** | `Array<string>` | Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. | [Optional] |
815
+ | **sort** | `Array<string>` | Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs. | [Optional] |
816
816
  | **page** | `number` | Page number for pagination | [Optional] [Defaults to `1`] |
817
817
  | **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `undefined`] |
818
818
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/agent-sdk",
3
- "version": "0.33.1-84c734aba511",
3
+ "version": "0.33.1-d086ee06be70",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/agent-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -18,6 +18,42 @@ import {
18
18
  ApplianceListResponseFromJSON,
19
19
  ApplianceListResponseToJSON,
20
20
  } from '../models/ApplianceListResponse.js';
21
+ import {
22
+ type ApplianceRule,
23
+ ApplianceRuleFromJSON,
24
+ ApplianceRuleToJSON,
25
+ } from '../models/ApplianceRule.js';
26
+ import {
27
+ type ApplianceRuleListResponse,
28
+ ApplianceRuleListResponseFromJSON,
29
+ ApplianceRuleListResponseToJSON,
30
+ } from '../models/ApplianceRuleListResponse.js';
31
+ import {
32
+ type ApplianceRuleRequest,
33
+ ApplianceRuleRequestFromJSON,
34
+ ApplianceRuleRequestToJSON,
35
+ } from '../models/ApplianceRuleRequest.js';
36
+
37
+ export interface CreateApplianceRuleRequest {
38
+ /**
39
+ *
40
+ */
41
+ applianceRuleRequest: ApplianceRuleRequest;
42
+ }
43
+
44
+ export interface DeleteApplianceRuleRequest {
45
+ /**
46
+ * Rule ID
47
+ */
48
+ ruleId: string;
49
+ }
50
+
51
+ export interface GetApplianceRuleRequest {
52
+ /**
53
+ * Rule ID
54
+ */
55
+ ruleId: string;
56
+ }
21
57
 
22
58
  export interface ListAppliancesRequest {
23
59
  /**
@@ -26,6 +62,17 @@ export interface ListAppliancesRequest {
26
62
  id: string;
27
63
  }
28
64
 
65
+ export interface UpdateApplianceRuleRequest {
66
+ /**
67
+ * Rule ID
68
+ */
69
+ ruleId: string;
70
+ /**
71
+ *
72
+ */
73
+ applianceRuleRequest: ApplianceRuleRequest;
74
+ }
75
+
29
76
  /**
30
77
  * AppliancesApi - interface
31
78
  *
@@ -33,6 +80,96 @@ export interface ListAppliancesRequest {
33
80
  * @interface AppliancesApiInterface
34
81
  */
35
82
  export interface AppliancesApiInterface {
83
+ /**
84
+ * Creates request options for createApplianceRule without sending the request
85
+ * @param {ApplianceRuleRequest} applianceRuleRequest
86
+ * @throws {RequiredError}
87
+ * @memberof AppliancesApiInterface
88
+ */
89
+ createApplianceRuleRequestOpts(requestParameters: CreateApplianceRuleRequest): Promise<runtime.RequestOpts>;
90
+
91
+ /**
92
+ *
93
+ * @summary Create an appliance rule
94
+ * @param {ApplianceRuleRequest} applianceRuleRequest
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ * @memberof AppliancesApiInterface
98
+ */
99
+ createApplianceRuleRaw(requestParameters: CreateApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceRule>>;
100
+
101
+ /**
102
+ * Create an appliance rule
103
+ */
104
+ createApplianceRule(requestParameters: CreateApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceRule>;
105
+
106
+ /**
107
+ * Creates request options for deleteApplianceRule without sending the request
108
+ * @param {string} ruleId Rule ID
109
+ * @throws {RequiredError}
110
+ * @memberof AppliancesApiInterface
111
+ */
112
+ deleteApplianceRuleRequestOpts(requestParameters: DeleteApplianceRuleRequest): Promise<runtime.RequestOpts>;
113
+
114
+ /**
115
+ *
116
+ * @summary Delete an appliance rule
117
+ * @param {string} ruleId Rule ID
118
+ * @param {*} [options] Override http request option.
119
+ * @throws {RequiredError}
120
+ * @memberof AppliancesApiInterface
121
+ */
122
+ deleteApplianceRuleRaw(requestParameters: DeleteApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
123
+
124
+ /**
125
+ * Delete an appliance rule
126
+ */
127
+ deleteApplianceRule(requestParameters: DeleteApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
128
+
129
+ /**
130
+ * Creates request options for getApplianceRule without sending the request
131
+ * @param {string} ruleId Rule ID
132
+ * @throws {RequiredError}
133
+ * @memberof AppliancesApiInterface
134
+ */
135
+ getApplianceRuleRequestOpts(requestParameters: GetApplianceRuleRequest): Promise<runtime.RequestOpts>;
136
+
137
+ /**
138
+ *
139
+ * @summary Get an appliance rule
140
+ * @param {string} ruleId Rule ID
141
+ * @param {*} [options] Override http request option.
142
+ * @throws {RequiredError}
143
+ * @memberof AppliancesApiInterface
144
+ */
145
+ getApplianceRuleRaw(requestParameters: GetApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceRule>>;
146
+
147
+ /**
148
+ * Get an appliance rule
149
+ */
150
+ getApplianceRule(requestParameters: GetApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceRule>;
151
+
152
+ /**
153
+ * Creates request options for listApplianceRules without sending the request
154
+ * @throws {RequiredError}
155
+ * @memberof AppliancesApiInterface
156
+ */
157
+ listApplianceRulesRequestOpts(): Promise<runtime.RequestOpts>;
158
+
159
+ /**
160
+ *
161
+ * @summary List appliance rules
162
+ * @param {*} [options] Override http request option.
163
+ * @throws {RequiredError}
164
+ * @memberof AppliancesApiInterface
165
+ */
166
+ listApplianceRulesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceRuleListResponse>>;
167
+
168
+ /**
169
+ * List appliance rules
170
+ */
171
+ listApplianceRules(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceRuleListResponse>;
172
+
36
173
  /**
37
174
  * Creates request options for listAppliances without sending the request
38
175
  * @param {string} id Collection ID
@@ -56,6 +193,32 @@ export interface AppliancesApiInterface {
56
193
  */
57
194
  listAppliances(requestParameters: ListAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceListResponse>;
58
195
 
196
+ /**
197
+ * Creates request options for updateApplianceRule without sending the request
198
+ * @param {string} ruleId Rule ID
199
+ * @param {ApplianceRuleRequest} applianceRuleRequest
200
+ * @throws {RequiredError}
201
+ * @memberof AppliancesApiInterface
202
+ */
203
+ updateApplianceRuleRequestOpts(requestParameters: UpdateApplianceRuleRequest): Promise<runtime.RequestOpts>;
204
+
205
+ /**
206
+ * 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.
207
+ * @summary Replace an appliance rule
208
+ * @param {string} ruleId Rule ID
209
+ * @param {ApplianceRuleRequest} applianceRuleRequest
210
+ * @param {*} [options] Override http request option.
211
+ * @throws {RequiredError}
212
+ * @memberof AppliancesApiInterface
213
+ */
214
+ updateApplianceRuleRaw(requestParameters: UpdateApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceRule>>;
215
+
216
+ /**
217
+ * 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.
218
+ * Replace an appliance rule
219
+ */
220
+ updateApplianceRule(requestParameters: UpdateApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceRule>;
221
+
59
222
  }
60
223
 
61
224
  /**
@@ -63,6 +226,179 @@ export interface AppliancesApiInterface {
63
226
  */
64
227
  export class AppliancesApi extends runtime.BaseAPI implements AppliancesApiInterface {
65
228
 
229
+ /**
230
+ * Creates request options for createApplianceRule without sending the request
231
+ */
232
+ async createApplianceRuleRequestOpts(requestParameters: CreateApplianceRuleRequest): Promise<runtime.RequestOpts> {
233
+ if (requestParameters['applianceRuleRequest'] == null) {
234
+ throw new runtime.RequiredError(
235
+ 'applianceRuleRequest',
236
+ 'Required parameter "applianceRuleRequest" was null or undefined when calling createApplianceRule().'
237
+ );
238
+ }
239
+
240
+ const queryParameters: any = {};
241
+
242
+ const headerParameters: runtime.HTTPHeaders = {};
243
+
244
+ headerParameters['Content-Type'] = 'application/json';
245
+
246
+
247
+ let urlPath = `/appliances/rules`;
248
+
249
+ return {
250
+ path: urlPath,
251
+ method: 'POST',
252
+ headers: headerParameters,
253
+ query: queryParameters,
254
+ body: ApplianceRuleRequestToJSON(requestParameters['applianceRuleRequest']),
255
+ };
256
+ }
257
+
258
+ /**
259
+ * Create an appliance rule
260
+ */
261
+ async createApplianceRuleRaw(requestParameters: CreateApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceRule>> {
262
+ const requestOptions = await this.createApplianceRuleRequestOpts(requestParameters);
263
+ const response = await this.request(requestOptions, initOverrides);
264
+
265
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApplianceRuleFromJSON(jsonValue));
266
+ }
267
+
268
+ /**
269
+ * Create an appliance rule
270
+ */
271
+ async createApplianceRule(requestParameters: CreateApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceRule> {
272
+ const response = await this.createApplianceRuleRaw(requestParameters, initOverrides);
273
+ return await response.value();
274
+ }
275
+
276
+ /**
277
+ * Creates request options for deleteApplianceRule without sending the request
278
+ */
279
+ async deleteApplianceRuleRequestOpts(requestParameters: DeleteApplianceRuleRequest): Promise<runtime.RequestOpts> {
280
+ if (requestParameters['ruleId'] == null) {
281
+ throw new runtime.RequiredError(
282
+ 'ruleId',
283
+ 'Required parameter "ruleId" was null or undefined when calling deleteApplianceRule().'
284
+ );
285
+ }
286
+
287
+ const queryParameters: any = {};
288
+
289
+ const headerParameters: runtime.HTTPHeaders = {};
290
+
291
+
292
+ let urlPath = `/appliances/rules/{ruleId}`;
293
+ urlPath = urlPath.replace('{ruleId}', encodeURIComponent(String(requestParameters['ruleId'])));
294
+
295
+ return {
296
+ path: urlPath,
297
+ method: 'DELETE',
298
+ headers: headerParameters,
299
+ query: queryParameters,
300
+ };
301
+ }
302
+
303
+ /**
304
+ * Delete an appliance rule
305
+ */
306
+ async deleteApplianceRuleRaw(requestParameters: DeleteApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
307
+ const requestOptions = await this.deleteApplianceRuleRequestOpts(requestParameters);
308
+ const response = await this.request(requestOptions, initOverrides);
309
+
310
+ return new runtime.VoidApiResponse(response);
311
+ }
312
+
313
+ /**
314
+ * Delete an appliance rule
315
+ */
316
+ async deleteApplianceRule(requestParameters: DeleteApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
317
+ await this.deleteApplianceRuleRaw(requestParameters, initOverrides);
318
+ }
319
+
320
+ /**
321
+ * Creates request options for getApplianceRule without sending the request
322
+ */
323
+ async getApplianceRuleRequestOpts(requestParameters: GetApplianceRuleRequest): Promise<runtime.RequestOpts> {
324
+ if (requestParameters['ruleId'] == null) {
325
+ throw new runtime.RequiredError(
326
+ 'ruleId',
327
+ 'Required parameter "ruleId" was null or undefined when calling getApplianceRule().'
328
+ );
329
+ }
330
+
331
+ const queryParameters: any = {};
332
+
333
+ const headerParameters: runtime.HTTPHeaders = {};
334
+
335
+
336
+ let urlPath = `/appliances/rules/{ruleId}`;
337
+ urlPath = urlPath.replace('{ruleId}', encodeURIComponent(String(requestParameters['ruleId'])));
338
+
339
+ return {
340
+ path: urlPath,
341
+ method: 'GET',
342
+ headers: headerParameters,
343
+ query: queryParameters,
344
+ };
345
+ }
346
+
347
+ /**
348
+ * Get an appliance rule
349
+ */
350
+ async getApplianceRuleRaw(requestParameters: GetApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceRule>> {
351
+ const requestOptions = await this.getApplianceRuleRequestOpts(requestParameters);
352
+ const response = await this.request(requestOptions, initOverrides);
353
+
354
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApplianceRuleFromJSON(jsonValue));
355
+ }
356
+
357
+ /**
358
+ * Get an appliance rule
359
+ */
360
+ async getApplianceRule(requestParameters: GetApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceRule> {
361
+ const response = await this.getApplianceRuleRaw(requestParameters, initOverrides);
362
+ return await response.value();
363
+ }
364
+
365
+ /**
366
+ * Creates request options for listApplianceRules without sending the request
367
+ */
368
+ async listApplianceRulesRequestOpts(): Promise<runtime.RequestOpts> {
369
+ const queryParameters: any = {};
370
+
371
+ const headerParameters: runtime.HTTPHeaders = {};
372
+
373
+
374
+ let urlPath = `/appliances/rules`;
375
+
376
+ return {
377
+ path: urlPath,
378
+ method: 'GET',
379
+ headers: headerParameters,
380
+ query: queryParameters,
381
+ };
382
+ }
383
+
384
+ /**
385
+ * List appliance rules
386
+ */
387
+ async listApplianceRulesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceRuleListResponse>> {
388
+ const requestOptions = await this.listApplianceRulesRequestOpts();
389
+ const response = await this.request(requestOptions, initOverrides);
390
+
391
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApplianceRuleListResponseFromJSON(jsonValue));
392
+ }
393
+
394
+ /**
395
+ * List appliance rules
396
+ */
397
+ async listApplianceRules(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceRuleListResponse> {
398
+ const response = await this.listApplianceRulesRaw(initOverrides);
399
+ return await response.value();
400
+ }
401
+
66
402
  /**
67
403
  * Creates request options for listAppliances without sending the request
68
404
  */
@@ -108,4 +444,61 @@ export class AppliancesApi extends runtime.BaseAPI implements AppliancesApiInter
108
444
  return await response.value();
109
445
  }
110
446
 
447
+ /**
448
+ * Creates request options for updateApplianceRule without sending the request
449
+ */
450
+ async updateApplianceRuleRequestOpts(requestParameters: UpdateApplianceRuleRequest): Promise<runtime.RequestOpts> {
451
+ if (requestParameters['ruleId'] == null) {
452
+ throw new runtime.RequiredError(
453
+ 'ruleId',
454
+ 'Required parameter "ruleId" was null or undefined when calling updateApplianceRule().'
455
+ );
456
+ }
457
+
458
+ if (requestParameters['applianceRuleRequest'] == null) {
459
+ throw new runtime.RequiredError(
460
+ 'applianceRuleRequest',
461
+ 'Required parameter "applianceRuleRequest" was null or undefined when calling updateApplianceRule().'
462
+ );
463
+ }
464
+
465
+ const queryParameters: any = {};
466
+
467
+ const headerParameters: runtime.HTTPHeaders = {};
468
+
469
+ headerParameters['Content-Type'] = 'application/json';
470
+
471
+
472
+ let urlPath = `/appliances/rules/{ruleId}`;
473
+ urlPath = urlPath.replace('{ruleId}', encodeURIComponent(String(requestParameters['ruleId'])));
474
+
475
+ return {
476
+ path: urlPath,
477
+ method: 'PUT',
478
+ headers: headerParameters,
479
+ query: queryParameters,
480
+ body: ApplianceRuleRequestToJSON(requestParameters['applianceRuleRequest']),
481
+ };
482
+ }
483
+
484
+ /**
485
+ * 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.
486
+ * Replace an appliance rule
487
+ */
488
+ async updateApplianceRuleRaw(requestParameters: UpdateApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceRule>> {
489
+ const requestOptions = await this.updateApplianceRuleRequestOpts(requestParameters);
490
+ const response = await this.request(requestOptions, initOverrides);
491
+
492
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApplianceRuleFromJSON(jsonValue));
493
+ }
494
+
495
+ /**
496
+ * 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.
497
+ * Replace an appliance rule
498
+ */
499
+ async updateApplianceRule(requestParameters: UpdateApplianceRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceRule> {
500
+ const response = await this.updateApplianceRuleRaw(requestParameters, initOverrides);
501
+ return await response.value();
502
+ }
503
+
111
504
  }
@@ -73,7 +73,7 @@ export interface GetGroupRequest {
73
73
  */
74
74
  groupId: string;
75
75
  /**
76
- * Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
76
+ * Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
77
77
  */
78
78
  sort?: Array<string>;
79
79
  /**
@@ -92,7 +92,7 @@ export interface GetLatestGroupRequest {
92
92
  */
93
93
  groupId: string;
94
94
  /**
95
- * Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
95
+ * Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
96
96
  */
97
97
  sort?: Array<string>;
98
98
  /**
@@ -221,7 +221,7 @@ export interface GroupsApiInterface {
221
221
  * Creates request options for getGroup without sending the request
222
222
  * @param {string} id Collection ID
223
223
  * @param {string} groupId Group ID
224
- * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
224
+ * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
225
225
  * @param {number} [page] Page number for pagination
226
226
  * @param {number} [pageSize] Number of items per page
227
227
  * @throws {RequiredError}
@@ -234,7 +234,7 @@ export interface GroupsApiInterface {
234
234
  * @summary Get group by ID with its VirtualMachines
235
235
  * @param {string} id Collection ID
236
236
  * @param {string} groupId Group ID
237
- * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
237
+ * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
238
238
  * @param {number} [page] Page number for pagination
239
239
  * @param {number} [pageSize] Number of items per page
240
240
  * @param {*} [options] Override http request option.
@@ -251,7 +251,7 @@ export interface GroupsApiInterface {
251
251
  /**
252
252
  * Creates request options for getLatestGroup without sending the request
253
253
  * @param {string} groupId Group ID
254
- * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
254
+ * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
255
255
  * @param {number} [page] Page number for pagination
256
256
  * @param {number} [pageSize] Number of items per page
257
257
  * @throws {RequiredError}
@@ -263,7 +263,7 @@ export interface GroupsApiInterface {
263
263
  *
264
264
  * @summary Get group by ID from the latest collection
265
265
  * @param {string} groupId Group ID
266
- * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
266
+ * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
267
267
  * @param {number} [page] Page number for pagination
268
268
  * @param {number} [pageSize] Number of items per page
269
269
  * @param {*} [options] Override http request option.