@migration-planner-ui/api-client 0.0.35 → 0.0.37
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/LICENSE +13 -0
- package/dist/apis/AssessmentApi.d.ts +28 -3
- package/dist/apis/AssessmentApi.d.ts.map +1 -1
- package/dist/apis/AssessmentApi.js +38 -3
- package/dist/apis/HealthApi.d.ts +2 -2
- package/dist/apis/HealthApi.js +2 -2
- package/dist/apis/ImageApi.d.ts +2 -2
- package/dist/apis/ImageApi.js +2 -2
- package/dist/apis/InfoApi.d.ts +2 -2
- package/dist/apis/InfoApi.js +2 -2
- package/dist/apis/JobApi.d.ts +2 -2
- package/dist/apis/JobApi.js +2 -2
- package/dist/apis/SourceApi.d.ts +2 -2
- package/dist/apis/SourceApi.js +2 -2
- package/dist/models/Agent.d.ts +2 -2
- package/dist/models/Agent.js +2 -2
- package/dist/models/AgentProxy.d.ts +2 -2
- package/dist/models/AgentProxy.js +2 -2
- package/dist/models/Assessment.d.ts +2 -2
- package/dist/models/Assessment.js +2 -2
- package/dist/models/AssessmentForm.d.ts +2 -2
- package/dist/models/AssessmentForm.js +2 -2
- package/dist/models/AssessmentUpdate.d.ts +2 -2
- package/dist/models/AssessmentUpdate.js +2 -2
- package/dist/models/ClusterRequirementsRequest.d.ts +67 -0
- package/dist/models/ClusterRequirementsRequest.d.ts.map +1 -0
- package/dist/models/ClusterRequirementsRequest.js +66 -0
- package/dist/models/ClusterRequirementsResponse.d.ts +48 -0
- package/dist/models/ClusterRequirementsResponse.d.ts.map +1 -0
- package/dist/models/ClusterRequirementsResponse.js +54 -0
- package/dist/models/ClusterSizing.d.ts +57 -0
- package/dist/models/ClusterSizing.d.ts.map +1 -0
- package/dist/models/ClusterSizing.js +59 -0
- package/dist/models/Datastore.d.ts +2 -2
- package/dist/models/Datastore.js +2 -2
- package/dist/models/DiskSizeTierSummary.d.ts +2 -2
- package/dist/models/DiskSizeTierSummary.js +2 -2
- package/dist/models/DiskTypeSummary.d.ts +2 -2
- package/dist/models/DiskTypeSummary.js +2 -2
- package/dist/models/Histogram.d.ts +2 -2
- package/dist/models/Histogram.js +2 -2
- package/dist/models/Host.d.ts +2 -2
- package/dist/models/Host.js +2 -2
- package/dist/models/Info.d.ts +2 -2
- package/dist/models/Info.js +2 -2
- package/dist/models/Infra.d.ts +2 -2
- package/dist/models/Infra.js +2 -2
- package/dist/models/Inventory.d.ts +2 -2
- package/dist/models/Inventory.js +2 -2
- package/dist/models/InventoryData.d.ts +2 -2
- package/dist/models/InventoryData.js +2 -2
- package/dist/models/InventoryTotals.d.ts +45 -0
- package/dist/models/InventoryTotals.d.ts.map +1 -0
- package/dist/models/InventoryTotals.js +51 -0
- package/dist/models/Ipv4Config.d.ts +2 -2
- package/dist/models/Ipv4Config.js +2 -2
- package/dist/models/Job.d.ts +2 -2
- package/dist/models/Job.js +2 -2
- package/dist/models/JobStatus.d.ts +2 -2
- package/dist/models/JobStatus.js +2 -2
- package/dist/models/Label.d.ts +2 -2
- package/dist/models/Label.js +2 -2
- package/dist/models/MigrationIssue.d.ts +2 -2
- package/dist/models/MigrationIssue.js +2 -2
- package/dist/models/ModelError.d.ts +2 -2
- package/dist/models/ModelError.js +2 -2
- package/dist/models/Network.d.ts +2 -2
- package/dist/models/Network.js +2 -2
- package/dist/models/OsInfo.d.ts +2 -2
- package/dist/models/OsInfo.js +2 -2
- package/dist/models/PresignedUrl.d.ts +2 -2
- package/dist/models/PresignedUrl.js +2 -2
- package/dist/models/SizingOverCommitRatio.d.ts +39 -0
- package/dist/models/SizingOverCommitRatio.d.ts.map +1 -0
- package/dist/models/SizingOverCommitRatio.js +47 -0
- package/dist/models/SizingResourceConsumption.d.ts +53 -0
- package/dist/models/SizingResourceConsumption.d.ts.map +1 -0
- package/dist/models/SizingResourceConsumption.js +53 -0
- package/dist/models/SizingResourceLimits.d.ts +39 -0
- package/dist/models/SizingResourceLimits.d.ts.map +1 -0
- package/dist/models/SizingResourceLimits.js +47 -0
- package/dist/models/Snapshot.d.ts +2 -2
- package/dist/models/Snapshot.js +2 -2
- package/dist/models/Source.d.ts +2 -2
- package/dist/models/Source.js +2 -2
- package/dist/models/SourceCreate.d.ts +2 -2
- package/dist/models/SourceCreate.js +2 -2
- package/dist/models/SourceInfra.d.ts +2 -2
- package/dist/models/SourceInfra.js +2 -2
- package/dist/models/SourceUpdate.d.ts +2 -2
- package/dist/models/SourceUpdate.js +2 -2
- package/dist/models/Status.d.ts +2 -2
- package/dist/models/Status.js +2 -2
- package/dist/models/UpdateInventory.d.ts +2 -2
- package/dist/models/UpdateInventory.js +2 -2
- package/dist/models/VCenter.d.ts +2 -2
- package/dist/models/VCenter.js +2 -2
- package/dist/models/VMResourceBreakdown.d.ts +2 -2
- package/dist/models/VMResourceBreakdown.js +2 -2
- package/dist/models/VMs.d.ts +10 -2
- package/dist/models/VMs.d.ts.map +1 -1
- package/dist/models/VMs.js +4 -2
- package/dist/models/VmNetwork.d.ts +2 -2
- package/dist/models/VmNetwork.js +2 -2
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +7 -0
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +2 -2
- package/package.json +4 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright 2026 Red Hat, Inc.
|
|
2
|
+
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
See the License for the specific language governing permissions and
|
|
13
|
+
limitations under the License.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Migration Planner API
|
|
3
|
-
* Based on: https://github.com/kubev2v/migration-planner/blob/
|
|
3
|
+
* Based on: https://github.com/kubev2v/migration-planner/blob/381e0e2f0d99c996a1230d27470988d7cbe9e282/api/v1alpha1/openapi.yaml
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
5
|
+
* The version of the OpenAPI document: 0.4.0-381e0e2f
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,7 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type { Assessment, AssessmentForm, AssessmentUpdate } from '../models/index.js';
|
|
13
|
+
import type { Assessment, AssessmentForm, AssessmentUpdate, ClusterRequirementsRequest, ClusterRequirementsResponse } from '../models/index.js';
|
|
14
|
+
export interface CalculateAssessmentClusterRequirementsRequest {
|
|
15
|
+
id: string;
|
|
16
|
+
clusterRequirementsRequest: ClusterRequirementsRequest;
|
|
17
|
+
}
|
|
14
18
|
export interface CreateAssessmentRequest {
|
|
15
19
|
assessmentForm: AssessmentForm;
|
|
16
20
|
}
|
|
@@ -31,6 +35,19 @@ export interface UpdateAssessmentRequest {
|
|
|
31
35
|
* @interface AssessmentApiInterface
|
|
32
36
|
*/
|
|
33
37
|
export interface AssessmentApiInterface {
|
|
38
|
+
/**
|
|
39
|
+
* Calculate cluster requirements for an assessment
|
|
40
|
+
* @param {string} id ID of the assessment
|
|
41
|
+
* @param {ClusterRequirementsRequest} clusterRequirementsRequest
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
* @memberof AssessmentApiInterface
|
|
45
|
+
*/
|
|
46
|
+
calculateAssessmentClusterRequirementsRaw(requestParameters: CalculateAssessmentClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ClusterRequirementsResponse>>;
|
|
47
|
+
/**
|
|
48
|
+
* Calculate cluster requirements for an assessment
|
|
49
|
+
*/
|
|
50
|
+
calculateAssessmentClusterRequirements(requestParameters: CalculateAssessmentClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClusterRequirementsResponse>;
|
|
34
51
|
/**
|
|
35
52
|
* Create an assessment
|
|
36
53
|
* @param {AssessmentForm} assessmentForm
|
|
@@ -96,6 +113,14 @@ export interface AssessmentApiInterface {
|
|
|
96
113
|
*
|
|
97
114
|
*/
|
|
98
115
|
export declare class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInterface {
|
|
116
|
+
/**
|
|
117
|
+
* Calculate cluster requirements for an assessment
|
|
118
|
+
*/
|
|
119
|
+
calculateAssessmentClusterRequirementsRaw(requestParameters: CalculateAssessmentClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ClusterRequirementsResponse>>;
|
|
120
|
+
/**
|
|
121
|
+
* Calculate cluster requirements for an assessment
|
|
122
|
+
*/
|
|
123
|
+
calculateAssessmentClusterRequirements(requestParameters: CalculateAssessmentClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClusterRequirementsResponse>;
|
|
99
124
|
/**
|
|
100
125
|
* Create an assessment
|
|
101
126
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssessmentApi.d.ts","sourceRoot":"","sources":["../../src/apis/AssessmentApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AACzC,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,gBAAgB,
|
|
1
|
+
{"version":3,"file":"AssessmentApi.d.ts","sourceRoot":"","sources":["../../src/apis/AssessmentApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,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G,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IA0BrK;;OAEG;IACG,aAAa,CAAC,iBAAiB,EAAE,oBAAoB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC;IAK7I;;OAEG;IACG,kBAAkB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;IAkBrI;;OAEG;IACG,eAAe,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAK7G;;OAEG;IACG,mBAAmB,CAAC,iBAAiB,EAAE,uBAAuB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAoC3K;;OAEG;IACG,gBAAgB,CAAC,iBAAiB,EAAE,uBAAuB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC;CAKtJ"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Migration Planner API
|
|
5
|
-
* Based on: https://github.com/kubev2v/migration-planner/blob/
|
|
5
|
+
* Based on: https://github.com/kubev2v/migration-planner/blob/381e0e2f0d99c996a1230d27470988d7cbe9e282/api/v1alpha1/openapi.yaml
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0-381e0e2f
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -21,11 +21,46 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime.js';
|
|
24
|
-
import { AssessmentFromJSON, AssessmentFormToJSON, AssessmentUpdateToJSON, } from '../models/index.js';
|
|
24
|
+
import { AssessmentFromJSON, AssessmentFormToJSON, AssessmentUpdateToJSON, ClusterRequirementsRequestToJSON, ClusterRequirementsResponseFromJSON, } from '../models/index.js';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export class AssessmentApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Calculate cluster requirements for an assessment
|
|
31
|
+
*/
|
|
32
|
+
calculateAssessmentClusterRequirementsRaw(requestParameters, initOverrides) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters['id'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling calculateAssessmentClusterRequirements().');
|
|
36
|
+
}
|
|
37
|
+
if (requestParameters['clusterRequirementsRequest'] == null) {
|
|
38
|
+
throw new runtime.RequiredError('clusterRequirementsRequest', 'Required parameter "clusterRequirementsRequest" was null or undefined when calling calculateAssessmentClusterRequirements().');
|
|
39
|
+
}
|
|
40
|
+
const queryParameters = {};
|
|
41
|
+
const headerParameters = {};
|
|
42
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
43
|
+
let urlPath = `/api/v1/assessments/{id}/cluster-requirements`;
|
|
44
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
45
|
+
const response = yield this.request({
|
|
46
|
+
path: urlPath,
|
|
47
|
+
method: 'POST',
|
|
48
|
+
headers: headerParameters,
|
|
49
|
+
query: queryParameters,
|
|
50
|
+
body: ClusterRequirementsRequestToJSON(requestParameters['clusterRequirementsRequest']),
|
|
51
|
+
}, initOverrides);
|
|
52
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ClusterRequirementsResponseFromJSON(jsonValue));
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Calculate cluster requirements for an assessment
|
|
57
|
+
*/
|
|
58
|
+
calculateAssessmentClusterRequirements(requestParameters, initOverrides) {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
const response = yield this.calculateAssessmentClusterRequirementsRaw(requestParameters, initOverrides);
|
|
61
|
+
return yield response.value();
|
|
62
|
+
});
|
|
63
|
+
}
|
|
29
64
|
/**
|
|
30
65
|
* Create an assessment
|
|
31
66
|
*/
|
package/dist/apis/HealthApi.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Migration Planner API
|
|
3
|
-
* Based on: https://github.com/kubev2v/migration-planner/blob/
|
|
3
|
+
* Based on: https://github.com/kubev2v/migration-planner/blob/381e0e2f0d99c996a1230d27470988d7cbe9e282/api/v1alpha1/openapi.yaml
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
5
|
+
* The version of the OpenAPI document: 0.4.0-381e0e2f
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/HealthApi.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Migration Planner API
|
|
5
|
-
* Based on: https://github.com/kubev2v/migration-planner/blob/
|
|
5
|
+
* Based on: https://github.com/kubev2v/migration-planner/blob/381e0e2f0d99c996a1230d27470988d7cbe9e282/api/v1alpha1/openapi.yaml
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0-381e0e2f
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/ImageApi.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Migration Planner API
|
|
3
|
-
* Based on: https://github.com/kubev2v/migration-planner/blob/
|
|
3
|
+
* Based on: https://github.com/kubev2v/migration-planner/blob/381e0e2f0d99c996a1230d27470988d7cbe9e282/api/v1alpha1/openapi.yaml
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
5
|
+
* The version of the OpenAPI document: 0.4.0-381e0e2f
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/ImageApi.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Migration Planner API
|
|
5
|
-
* Based on: https://github.com/kubev2v/migration-planner/blob/
|
|
5
|
+
* Based on: https://github.com/kubev2v/migration-planner/blob/381e0e2f0d99c996a1230d27470988d7cbe9e282/api/v1alpha1/openapi.yaml
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0-381e0e2f
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/InfoApi.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Migration Planner API
|
|
3
|
-
* Based on: https://github.com/kubev2v/migration-planner/blob/
|
|
3
|
+
* Based on: https://github.com/kubev2v/migration-planner/blob/381e0e2f0d99c996a1230d27470988d7cbe9e282/api/v1alpha1/openapi.yaml
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
5
|
+
* The version of the OpenAPI document: 0.4.0-381e0e2f
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/InfoApi.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Migration Planner API
|
|
5
|
-
* Based on: https://github.com/kubev2v/migration-planner/blob/
|
|
5
|
+
* Based on: https://github.com/kubev2v/migration-planner/blob/381e0e2f0d99c996a1230d27470988d7cbe9e282/api/v1alpha1/openapi.yaml
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0-381e0e2f
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/JobApi.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Migration Planner API
|
|
3
|
-
* Based on: https://github.com/kubev2v/migration-planner/blob/
|
|
3
|
+
* Based on: https://github.com/kubev2v/migration-planner/blob/381e0e2f0d99c996a1230d27470988d7cbe9e282/api/v1alpha1/openapi.yaml
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
5
|
+
* The version of the OpenAPI document: 0.4.0-381e0e2f
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/JobApi.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Migration Planner API
|
|
5
|
-
* Based on: https://github.com/kubev2v/migration-planner/blob/
|
|
5
|
+
* Based on: https://github.com/kubev2v/migration-planner/blob/381e0e2f0d99c996a1230d27470988d7cbe9e282/api/v1alpha1/openapi.yaml
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0-381e0e2f
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/SourceApi.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Migration Planner API
|
|
3
|
-
* Based on: https://github.com/kubev2v/migration-planner/blob/
|
|
3
|
+
* Based on: https://github.com/kubev2v/migration-planner/blob/381e0e2f0d99c996a1230d27470988d7cbe9e282/api/v1alpha1/openapi.yaml
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
5
|
+
* The version of the OpenAPI document: 0.4.0-381e0e2f
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/SourceApi.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Migration Planner API
|
|
5
|
-
* Based on: https://github.com/kubev2v/migration-planner/blob/
|
|
5
|
+
* Based on: https://github.com/kubev2v/migration-planner/blob/381e0e2f0d99c996a1230d27470988d7cbe9e282/api/v1alpha1/openapi.yaml
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0-381e0e2f
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Agent.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Migration Planner API
|
|
3
|
-
* Based on: https://github.com/kubev2v/migration-planner/blob/
|
|
3
|
+
* Based on: https://github.com/kubev2v/migration-planner/blob/381e0e2f0d99c996a1230d27470988d7cbe9e282/api/v1alpha1/openapi.yaml
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
5
|
+
* The version of the OpenAPI document: 0.4.0-381e0e2f
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Agent.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Migration Planner API
|
|
5
|
-
* Based on: https://github.com/kubev2v/migration-planner/blob/
|
|
5
|
+
* Based on: https://github.com/kubev2v/migration-planner/blob/381e0e2f0d99c996a1230d27470988d7cbe9e282/api/v1alpha1/openapi.yaml
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0-381e0e2f
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Migration Planner API
|
|
3
|
-
* Based on: https://github.com/kubev2v/migration-planner/blob/
|
|
3
|
+
* Based on: https://github.com/kubev2v/migration-planner/blob/381e0e2f0d99c996a1230d27470988d7cbe9e282/api/v1alpha1/openapi.yaml
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
5
|
+
* The version of the OpenAPI document: 0.4.0-381e0e2f
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Migration Planner API
|
|
5
|
-
* Based on: https://github.com/kubev2v/migration-planner/blob/
|
|
5
|
+
* Based on: https://github.com/kubev2v/migration-planner/blob/381e0e2f0d99c996a1230d27470988d7cbe9e282/api/v1alpha1/openapi.yaml
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0-381e0e2f
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Migration Planner API
|
|
3
|
-
* Based on: https://github.com/kubev2v/migration-planner/blob/
|
|
3
|
+
* Based on: https://github.com/kubev2v/migration-planner/blob/381e0e2f0d99c996a1230d27470988d7cbe9e282/api/v1alpha1/openapi.yaml
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
5
|
+
* The version of the OpenAPI document: 0.4.0-381e0e2f
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Migration Planner API
|
|
5
|
-
* Based on: https://github.com/kubev2v/migration-planner/blob/
|
|
5
|
+
* Based on: https://github.com/kubev2v/migration-planner/blob/381e0e2f0d99c996a1230d27470988d7cbe9e282/api/v1alpha1/openapi.yaml
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0-381e0e2f
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Migration Planner API
|
|
3
|
-
* Based on: https://github.com/kubev2v/migration-planner/blob/
|
|
3
|
+
* Based on: https://github.com/kubev2v/migration-planner/blob/381e0e2f0d99c996a1230d27470988d7cbe9e282/api/v1alpha1/openapi.yaml
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
5
|
+
* The version of the OpenAPI document: 0.4.0-381e0e2f
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Migration Planner API
|
|
5
|
-
* Based on: https://github.com/kubev2v/migration-planner/blob/
|
|
5
|
+
* Based on: https://github.com/kubev2v/migration-planner/blob/381e0e2f0d99c996a1230d27470988d7cbe9e282/api/v1alpha1/openapi.yaml
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0-381e0e2f
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Migration Planner API
|
|
3
|
-
* Based on: https://github.com/kubev2v/migration-planner/blob/
|
|
3
|
+
* Based on: https://github.com/kubev2v/migration-planner/blob/381e0e2f0d99c996a1230d27470988d7cbe9e282/api/v1alpha1/openapi.yaml
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
5
|
+
* The version of the OpenAPI document: 0.4.0-381e0e2f
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Migration Planner API
|
|
5
|
-
* Based on: https://github.com/kubev2v/migration-planner/blob/
|
|
5
|
+
* Based on: https://github.com/kubev2v/migration-planner/blob/381e0e2f0d99c996a1230d27470988d7cbe9e282/api/v1alpha1/openapi.yaml
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0-381e0e2f
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration Planner API
|
|
3
|
+
* Based on: https://github.com/kubev2v/migration-planner/blob/381e0e2f0d99c996a1230d27470988d7cbe9e282/api/v1alpha1/openapi.yaml
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.4.0-381e0e2f
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Request payload for calculating cluster requirements
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ClusterRequirementsRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ClusterRequirementsRequest {
|
|
18
|
+
/**
|
|
19
|
+
* ID of the cluster to calculate requirements for
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ClusterRequirementsRequest
|
|
22
|
+
*/
|
|
23
|
+
clusterId: string;
|
|
24
|
+
/**
|
|
25
|
+
* CPU over-commit ratio (e.g., "1:4")
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ClusterRequirementsRequest
|
|
28
|
+
*/
|
|
29
|
+
overCommitRatio: ClusterRequirementsRequestOverCommitRatioEnum;
|
|
30
|
+
/**
|
|
31
|
+
* CPU cores per worker node
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ClusterRequirementsRequest
|
|
34
|
+
*/
|
|
35
|
+
workerNodeCPU: number;
|
|
36
|
+
/**
|
|
37
|
+
* Memory (GB) per worker node
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ClusterRequirementsRequest
|
|
40
|
+
*/
|
|
41
|
+
workerNodeMemory: number;
|
|
42
|
+
/**
|
|
43
|
+
* Allow workload scheduling on control plane nodes
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof ClusterRequirementsRequest
|
|
46
|
+
*/
|
|
47
|
+
controlPlaneSchedulable?: boolean;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const ClusterRequirementsRequestOverCommitRatioEnum: {
|
|
53
|
+
readonly OneToOne: "1:1";
|
|
54
|
+
readonly OneToTwo: "1:2";
|
|
55
|
+
readonly OneToFour: "1:4";
|
|
56
|
+
readonly OneToSix: "1:6";
|
|
57
|
+
};
|
|
58
|
+
export type ClusterRequirementsRequestOverCommitRatioEnum = typeof ClusterRequirementsRequestOverCommitRatioEnum[keyof typeof ClusterRequirementsRequestOverCommitRatioEnum];
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the ClusterRequirementsRequest interface.
|
|
61
|
+
*/
|
|
62
|
+
export declare function instanceOfClusterRequirementsRequest(value: object): value is ClusterRequirementsRequest;
|
|
63
|
+
export declare function ClusterRequirementsRequestFromJSON(json: any): ClusterRequirementsRequest;
|
|
64
|
+
export declare function ClusterRequirementsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterRequirementsRequest;
|
|
65
|
+
export declare function ClusterRequirementsRequestToJSON(json: any): ClusterRequirementsRequest;
|
|
66
|
+
export declare function ClusterRequirementsRequestToJSONTyped(value?: ClusterRequirementsRequest | null, ignoreDiscriminator?: boolean): any;
|
|
67
|
+
//# sourceMappingURL=ClusterRequirementsRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClusterRequirementsRequest.d.ts","sourceRoot":"","sources":["../../src/models/ClusterRequirementsRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,eAAe,EAAE,6CAA6C,CAAC;IAC/D;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACrC;AAGD;;GAEG;AACH,eAAO,MAAM,6CAA6C;;;;;CAKhD,CAAC;AACX,MAAM,MAAM,6CAA6C,GAAG,OAAO,6CAA6C,CAAC,MAAM,OAAO,6CAA6C,CAAC,CAAC;AAG7K;;GAEG;AACH,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,0BAA0B,CAMvG;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAExF;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,0BAA0B,CAY3H;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAEtF;AAED,wBAAgB,qCAAqC,CAAC,KAAK,CAAC,EAAE,0BAA0B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAa1I"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner API
|
|
5
|
+
* Based on: https://github.com/kubev2v/migration-planner/blob/381e0e2f0d99c996a1230d27470988d7cbe9e282/api/v1alpha1/openapi.yaml
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0-381e0e2f
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const ClusterRequirementsRequestOverCommitRatioEnum = {
|
|
18
|
+
OneToOne: '1:1',
|
|
19
|
+
OneToTwo: '1:2',
|
|
20
|
+
OneToFour: '1:4',
|
|
21
|
+
OneToSix: '1:6'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ClusterRequirementsRequest interface.
|
|
25
|
+
*/
|
|
26
|
+
export function instanceOfClusterRequirementsRequest(value) {
|
|
27
|
+
if (!('clusterId' in value) || value['clusterId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('overCommitRatio' in value) || value['overCommitRatio'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('workerNodeCPU' in value) || value['workerNodeCPU'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('workerNodeMemory' in value) || value['workerNodeMemory'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
export function ClusterRequirementsRequestFromJSON(json) {
|
|
38
|
+
return ClusterRequirementsRequestFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function ClusterRequirementsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'clusterId': json['clusterId'],
|
|
46
|
+
'overCommitRatio': json['overCommitRatio'],
|
|
47
|
+
'workerNodeCPU': json['workerNodeCPU'],
|
|
48
|
+
'workerNodeMemory': json['workerNodeMemory'],
|
|
49
|
+
'controlPlaneSchedulable': json['controlPlaneSchedulable'] == null ? undefined : json['controlPlaneSchedulable'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function ClusterRequirementsRequestToJSON(json) {
|
|
53
|
+
return ClusterRequirementsRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function ClusterRequirementsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'clusterId': value['clusterId'],
|
|
61
|
+
'overCommitRatio': value['overCommitRatio'],
|
|
62
|
+
'workerNodeCPU': value['workerNodeCPU'],
|
|
63
|
+
'workerNodeMemory': value['workerNodeMemory'],
|
|
64
|
+
'controlPlaneSchedulable': value['controlPlaneSchedulable'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration Planner API
|
|
3
|
+
* Based on: https://github.com/kubev2v/migration-planner/blob/381e0e2f0d99c996a1230d27470988d7cbe9e282/api/v1alpha1/openapi.yaml
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.4.0-381e0e2f
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SizingResourceConsumption } from './SizingResourceConsumption.js';
|
|
13
|
+
import type { InventoryTotals } from './InventoryTotals.js';
|
|
14
|
+
import type { ClusterSizing } from './ClusterSizing.js';
|
|
15
|
+
/**
|
|
16
|
+
* Cluster requirements calculation results
|
|
17
|
+
* @export
|
|
18
|
+
* @interface ClusterRequirementsResponse
|
|
19
|
+
*/
|
|
20
|
+
export interface ClusterRequirementsResponse {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {ClusterSizing}
|
|
24
|
+
* @memberof ClusterRequirementsResponse
|
|
25
|
+
*/
|
|
26
|
+
clusterSizing: ClusterSizing;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {SizingResourceConsumption}
|
|
30
|
+
* @memberof ClusterRequirementsResponse
|
|
31
|
+
*/
|
|
32
|
+
resourceConsumption: SizingResourceConsumption;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {InventoryTotals}
|
|
36
|
+
* @memberof ClusterRequirementsResponse
|
|
37
|
+
*/
|
|
38
|
+
inventoryTotals: InventoryTotals;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the ClusterRequirementsResponse interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfClusterRequirementsResponse(value: object): value is ClusterRequirementsResponse;
|
|
44
|
+
export declare function ClusterRequirementsResponseFromJSON(json: any): ClusterRequirementsResponse;
|
|
45
|
+
export declare function ClusterRequirementsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterRequirementsResponse;
|
|
46
|
+
export declare function ClusterRequirementsResponseToJSON(json: any): ClusterRequirementsResponse;
|
|
47
|
+
export declare function ClusterRequirementsResponseToJSONTyped(value?: ClusterRequirementsResponse | null, ignoreDiscriminator?: boolean): any;
|
|
48
|
+
//# sourceMappingURL=ClusterRequirementsResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClusterRequirementsResponse.d.ts","sourceRoot":"","sources":["../../src/models/ClusterRequirementsResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAOhF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAO5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAQxD;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;;;OAIG;IACH,aAAa,EAAE,aAAa,CAAC;IAC7B;;;;OAIG;IACH,mBAAmB,EAAE,yBAAyB,CAAC;IAC/C;;;;OAIG;IACH,eAAe,EAAE,eAAe,CAAC;CACpC;AAED;;GAEG;AACH,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,2BAA2B,CAKzG;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAE1F;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,2BAA2B,CAU7H;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAExF;AAED,wBAAgB,sCAAsC,CAAC,KAAK,CAAC,EAAE,2BAA2B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW5I"}
|