@openshift-migration-advisor/planner-sdk 0.11.0-92891f5da8a7 → 0.11.0-ca05f2d33650
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 +2 -0
- package/README.md +5 -2
- package/dist/apis/AssessmentApi.d.ts +69 -1
- package/dist/apis/AssessmentApi.js +78 -0
- package/dist/esm/apis/AssessmentApi.d.ts +69 -1
- package/dist/esm/apis/AssessmentApi.js +79 -1
- package/dist/esm/models/PartnerRequest.d.ts +9 -2
- package/dist/esm/models/PartnerRequest.js +8 -3
- package/dist/esm/models/PartnerSummary.d.ts +50 -0
- package/dist/esm/models/PartnerSummary.js +55 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/PartnerRequest.d.ts +9 -2
- package/dist/models/PartnerRequest.js +8 -3
- package/dist/models/PartnerSummary.d.ts +50 -0
- package/dist/models/PartnerSummary.js +62 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/AssessmentApi.md +146 -0
- package/docs/PartnerRequest.md +4 -2
- package/docs/PartnerSummary.md +40 -0
- package/package.json +1 -1
- package/src/apis/AssessmentApi.ts +145 -0
- package/src/models/PartnerRequest.ts +21 -5
- package/src/models/PartnerSummary.ts +93 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -58,6 +58,7 @@ docs/PartnerRequest.md
|
|
|
58
58
|
docs/PartnerRequestCreate.md
|
|
59
59
|
docs/PartnerRequestStatus.md
|
|
60
60
|
docs/PartnerRequestUpdate.md
|
|
61
|
+
docs/PartnerSummary.md
|
|
61
62
|
docs/PresignedUrl.md
|
|
62
63
|
docs/SchemaEstimationResult.md
|
|
63
64
|
docs/SizingOverCommitRatio.md
|
|
@@ -135,6 +136,7 @@ src/models/PartnerRequest.ts
|
|
|
135
136
|
src/models/PartnerRequestCreate.ts
|
|
136
137
|
src/models/PartnerRequestStatus.ts
|
|
137
138
|
src/models/PartnerRequestUpdate.ts
|
|
139
|
+
src/models/PartnerSummary.ts
|
|
138
140
|
src/models/PresignedUrl.ts
|
|
139
141
|
src/models/SchemaEstimationResult.ts
|
|
140
142
|
src/models/SizingOverCommitRatio.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.11.0-
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.11.0-ca05f2d33650
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -69,6 +69,8 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
69
69
|
*AssessmentApi* | [**getAssessment**](docs/AssessmentApi.md#getassessment) | **GET** /api/v1/assessments/{id} |
|
|
70
70
|
*AssessmentApi* | [**getAssessmentClusterRequirementsStoredInput**](docs/AssessmentApi.md#getassessmentclusterrequirementsstoredinput) | **GET** /api/v1/assessments/{id}/cluster-requirements/stored-input |
|
|
71
71
|
*AssessmentApi* | [**listAssessments**](docs/AssessmentApi.md#listassessments) | **GET** /api/v1/assessments |
|
|
72
|
+
*AssessmentApi* | [**shareAssessment**](docs/AssessmentApi.md#shareassessment) | **POST** /api/v1/assessments/{id}/share |
|
|
73
|
+
*AssessmentApi* | [**unshareAssessment**](docs/AssessmentApi.md#unshareassessment) | **DELETE** /api/v1/assessments/{id}/share |
|
|
72
74
|
*AssessmentApi* | [**updateAssessment**](docs/AssessmentApi.md#updateassessment) | **PUT** /api/v1/assessments/{id} |
|
|
73
75
|
*HealthApi* | [**health**](docs/HealthApi.md#health) | **GET** /health |
|
|
74
76
|
*ImageApi* | [**getSourceDownloadURL**](docs/ImageApi.md#getsourcedownloadurl) | **GET** /api/v1/sources/{id}/image-url |
|
|
@@ -146,6 +148,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
146
148
|
- [PartnerRequestCreate](docs/PartnerRequestCreate.md)
|
|
147
149
|
- [PartnerRequestStatus](docs/PartnerRequestStatus.md)
|
|
148
150
|
- [PartnerRequestUpdate](docs/PartnerRequestUpdate.md)
|
|
151
|
+
- [PartnerSummary](docs/PartnerSummary.md)
|
|
149
152
|
- [PresignedUrl](docs/PresignedUrl.md)
|
|
150
153
|
- [SchemaEstimationResult](docs/SchemaEstimationResult.md)
|
|
151
154
|
- [SizingOverCommitRatio](docs/SizingOverCommitRatio.md)
|
|
@@ -175,7 +178,7 @@ and is automatically generated by the
|
|
|
175
178
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
176
179
|
|
|
177
180
|
- API version: `v1alpha1`
|
|
178
|
-
- Package version: `0.11.0-
|
|
181
|
+
- Package version: `0.11.0-ca05f2d33650`
|
|
179
182
|
- Generator version: `7.22.0-SNAPSHOT`
|
|
180
183
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
181
184
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type { Assessment, AssessmentForm, AssessmentUpdate, ClusterRequirementsRequest, ClusterRequirementsResponse, ClusterRequirementsStoredInput, MigrationComplexityRequest, MigrationComplexityResponse, MigrationEstimationByComplexityResponse, MigrationEstimationRequest, MigrationEstimationResponse } from '../models/index.js';
|
|
13
|
+
import type { Assessment, AssessmentForm, AssessmentUpdate, ClusterRequirementsRequest, ClusterRequirementsResponse, ClusterRequirementsStoredInput, MigrationComplexityRequest, MigrationComplexityResponse, MigrationEstimationByComplexityResponse, MigrationEstimationRequest, MigrationEstimationResponse, Status } from '../models/index.js';
|
|
14
14
|
export interface CalculateAssessmentClusterRequirementsRequest {
|
|
15
15
|
id: string;
|
|
16
16
|
clusterRequirementsRequest: ClusterRequirementsRequest;
|
|
@@ -43,6 +43,12 @@ export interface GetAssessmentClusterRequirementsStoredInputRequest {
|
|
|
43
43
|
export interface ListAssessmentsRequest {
|
|
44
44
|
sourceId?: string;
|
|
45
45
|
}
|
|
46
|
+
export interface ShareAssessmentRequest {
|
|
47
|
+
id: string;
|
|
48
|
+
}
|
|
49
|
+
export interface UnshareAssessmentRequest {
|
|
50
|
+
id: string;
|
|
51
|
+
}
|
|
46
52
|
export interface UpdateAssessmentRequest {
|
|
47
53
|
id: string;
|
|
48
54
|
assessmentUpdate: AssessmentUpdate;
|
|
@@ -235,6 +241,44 @@ export interface AssessmentApiInterface {
|
|
|
235
241
|
* List assessments
|
|
236
242
|
*/
|
|
237
243
|
listAssessments(requestParameters: ListAssessmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Assessment>>;
|
|
244
|
+
/**
|
|
245
|
+
* Creates request options for shareAssessment without sending the request
|
|
246
|
+
* @param {string} id ID of the assessment
|
|
247
|
+
* @throws {RequiredError}
|
|
248
|
+
* @memberof AssessmentApiInterface
|
|
249
|
+
*/
|
|
250
|
+
shareAssessmentRequestOpts(requestParameters: ShareAssessmentRequest): Promise<runtime.RequestOpts>;
|
|
251
|
+
/**
|
|
252
|
+
* Share an assessment with the user\'s partner organization
|
|
253
|
+
* @param {string} id ID of the assessment
|
|
254
|
+
* @param {*} [options] Override http request option.
|
|
255
|
+
* @throws {RequiredError}
|
|
256
|
+
* @memberof AssessmentApiInterface
|
|
257
|
+
*/
|
|
258
|
+
shareAssessmentRaw(requestParameters: ShareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>>;
|
|
259
|
+
/**
|
|
260
|
+
* Share an assessment with the user\'s partner organization
|
|
261
|
+
*/
|
|
262
|
+
shareAssessment(requestParameters: ShareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status>;
|
|
263
|
+
/**
|
|
264
|
+
* Creates request options for unshareAssessment without sending the request
|
|
265
|
+
* @param {string} id ID of the assessment
|
|
266
|
+
* @throws {RequiredError}
|
|
267
|
+
* @memberof AssessmentApiInterface
|
|
268
|
+
*/
|
|
269
|
+
unshareAssessmentRequestOpts(requestParameters: UnshareAssessmentRequest): Promise<runtime.RequestOpts>;
|
|
270
|
+
/**
|
|
271
|
+
* Unshare an assessment from the user\'s partner organization
|
|
272
|
+
* @param {string} id ID of the assessment
|
|
273
|
+
* @param {*} [options] Override http request option.
|
|
274
|
+
* @throws {RequiredError}
|
|
275
|
+
* @memberof AssessmentApiInterface
|
|
276
|
+
*/
|
|
277
|
+
unshareAssessmentRaw(requestParameters: UnshareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>>;
|
|
278
|
+
/**
|
|
279
|
+
* Unshare an assessment from the user\'s partner organization
|
|
280
|
+
*/
|
|
281
|
+
unshareAssessment(requestParameters: UnshareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status>;
|
|
238
282
|
/**
|
|
239
283
|
* Creates request options for updateAssessment without sending the request
|
|
240
284
|
* @param {string} id ID of the assessment
|
|
@@ -369,6 +413,30 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
|
|
|
369
413
|
* List assessments
|
|
370
414
|
*/
|
|
371
415
|
listAssessments(requestParameters?: ListAssessmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Assessment>>;
|
|
416
|
+
/**
|
|
417
|
+
* Creates request options for shareAssessment without sending the request
|
|
418
|
+
*/
|
|
419
|
+
shareAssessmentRequestOpts(requestParameters: ShareAssessmentRequest): Promise<runtime.RequestOpts>;
|
|
420
|
+
/**
|
|
421
|
+
* Share an assessment with the user\'s partner organization
|
|
422
|
+
*/
|
|
423
|
+
shareAssessmentRaw(requestParameters: ShareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>>;
|
|
424
|
+
/**
|
|
425
|
+
* Share an assessment with the user\'s partner organization
|
|
426
|
+
*/
|
|
427
|
+
shareAssessment(requestParameters: ShareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status>;
|
|
428
|
+
/**
|
|
429
|
+
* Creates request options for unshareAssessment without sending the request
|
|
430
|
+
*/
|
|
431
|
+
unshareAssessmentRequestOpts(requestParameters: UnshareAssessmentRequest): Promise<runtime.RequestOpts>;
|
|
432
|
+
/**
|
|
433
|
+
* Unshare an assessment from the user\'s partner organization
|
|
434
|
+
*/
|
|
435
|
+
unshareAssessmentRaw(requestParameters: UnshareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>>;
|
|
436
|
+
/**
|
|
437
|
+
* Unshare an assessment from the user\'s partner organization
|
|
438
|
+
*/
|
|
439
|
+
unshareAssessment(requestParameters: UnshareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status>;
|
|
372
440
|
/**
|
|
373
441
|
* Creates request options for updateAssessment without sending the request
|
|
374
442
|
*/
|
|
@@ -406,6 +406,84 @@ class AssessmentApi extends runtime.BaseAPI {
|
|
|
406
406
|
return yield response.value();
|
|
407
407
|
});
|
|
408
408
|
}
|
|
409
|
+
/**
|
|
410
|
+
* Creates request options for shareAssessment without sending the request
|
|
411
|
+
*/
|
|
412
|
+
shareAssessmentRequestOpts(requestParameters) {
|
|
413
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
414
|
+
if (requestParameters['id'] == null) {
|
|
415
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling shareAssessment().');
|
|
416
|
+
}
|
|
417
|
+
const queryParameters = {};
|
|
418
|
+
const headerParameters = {};
|
|
419
|
+
let urlPath = `/api/v1/assessments/{id}/share`;
|
|
420
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
421
|
+
return {
|
|
422
|
+
path: urlPath,
|
|
423
|
+
method: 'POST',
|
|
424
|
+
headers: headerParameters,
|
|
425
|
+
query: queryParameters,
|
|
426
|
+
};
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* Share an assessment with the user\'s partner organization
|
|
431
|
+
*/
|
|
432
|
+
shareAssessmentRaw(requestParameters, initOverrides) {
|
|
433
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
434
|
+
const requestOptions = yield this.shareAssessmentRequestOpts(requestParameters);
|
|
435
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
436
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.StatusFromJSON)(jsonValue));
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* Share an assessment with the user\'s partner organization
|
|
441
|
+
*/
|
|
442
|
+
shareAssessment(requestParameters, initOverrides) {
|
|
443
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
444
|
+
const response = yield this.shareAssessmentRaw(requestParameters, initOverrides);
|
|
445
|
+
return yield response.value();
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* Creates request options for unshareAssessment without sending the request
|
|
450
|
+
*/
|
|
451
|
+
unshareAssessmentRequestOpts(requestParameters) {
|
|
452
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
453
|
+
if (requestParameters['id'] == null) {
|
|
454
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling unshareAssessment().');
|
|
455
|
+
}
|
|
456
|
+
const queryParameters = {};
|
|
457
|
+
const headerParameters = {};
|
|
458
|
+
let urlPath = `/api/v1/assessments/{id}/share`;
|
|
459
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
460
|
+
return {
|
|
461
|
+
path: urlPath,
|
|
462
|
+
method: 'DELETE',
|
|
463
|
+
headers: headerParameters,
|
|
464
|
+
query: queryParameters,
|
|
465
|
+
};
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Unshare an assessment from the user\'s partner organization
|
|
470
|
+
*/
|
|
471
|
+
unshareAssessmentRaw(requestParameters, initOverrides) {
|
|
472
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
473
|
+
const requestOptions = yield this.unshareAssessmentRequestOpts(requestParameters);
|
|
474
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
475
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.StatusFromJSON)(jsonValue));
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* Unshare an assessment from the user\'s partner organization
|
|
480
|
+
*/
|
|
481
|
+
unshareAssessment(requestParameters, initOverrides) {
|
|
482
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
483
|
+
const response = yield this.unshareAssessmentRaw(requestParameters, initOverrides);
|
|
484
|
+
return yield response.value();
|
|
485
|
+
});
|
|
486
|
+
}
|
|
409
487
|
/**
|
|
410
488
|
* Creates request options for updateAssessment without sending the request
|
|
411
489
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type { Assessment, AssessmentForm, AssessmentUpdate, ClusterRequirementsRequest, ClusterRequirementsResponse, ClusterRequirementsStoredInput, MigrationComplexityRequest, MigrationComplexityResponse, MigrationEstimationByComplexityResponse, MigrationEstimationRequest, MigrationEstimationResponse } from '../models/index.js';
|
|
13
|
+
import type { Assessment, AssessmentForm, AssessmentUpdate, ClusterRequirementsRequest, ClusterRequirementsResponse, ClusterRequirementsStoredInput, MigrationComplexityRequest, MigrationComplexityResponse, MigrationEstimationByComplexityResponse, MigrationEstimationRequest, MigrationEstimationResponse, Status } from '../models/index.js';
|
|
14
14
|
export interface CalculateAssessmentClusterRequirementsRequest {
|
|
15
15
|
id: string;
|
|
16
16
|
clusterRequirementsRequest: ClusterRequirementsRequest;
|
|
@@ -43,6 +43,12 @@ export interface GetAssessmentClusterRequirementsStoredInputRequest {
|
|
|
43
43
|
export interface ListAssessmentsRequest {
|
|
44
44
|
sourceId?: string;
|
|
45
45
|
}
|
|
46
|
+
export interface ShareAssessmentRequest {
|
|
47
|
+
id: string;
|
|
48
|
+
}
|
|
49
|
+
export interface UnshareAssessmentRequest {
|
|
50
|
+
id: string;
|
|
51
|
+
}
|
|
46
52
|
export interface UpdateAssessmentRequest {
|
|
47
53
|
id: string;
|
|
48
54
|
assessmentUpdate: AssessmentUpdate;
|
|
@@ -235,6 +241,44 @@ export interface AssessmentApiInterface {
|
|
|
235
241
|
* List assessments
|
|
236
242
|
*/
|
|
237
243
|
listAssessments(requestParameters: ListAssessmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Assessment>>;
|
|
244
|
+
/**
|
|
245
|
+
* Creates request options for shareAssessment without sending the request
|
|
246
|
+
* @param {string} id ID of the assessment
|
|
247
|
+
* @throws {RequiredError}
|
|
248
|
+
* @memberof AssessmentApiInterface
|
|
249
|
+
*/
|
|
250
|
+
shareAssessmentRequestOpts(requestParameters: ShareAssessmentRequest): Promise<runtime.RequestOpts>;
|
|
251
|
+
/**
|
|
252
|
+
* Share an assessment with the user\'s partner organization
|
|
253
|
+
* @param {string} id ID of the assessment
|
|
254
|
+
* @param {*} [options] Override http request option.
|
|
255
|
+
* @throws {RequiredError}
|
|
256
|
+
* @memberof AssessmentApiInterface
|
|
257
|
+
*/
|
|
258
|
+
shareAssessmentRaw(requestParameters: ShareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>>;
|
|
259
|
+
/**
|
|
260
|
+
* Share an assessment with the user\'s partner organization
|
|
261
|
+
*/
|
|
262
|
+
shareAssessment(requestParameters: ShareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status>;
|
|
263
|
+
/**
|
|
264
|
+
* Creates request options for unshareAssessment without sending the request
|
|
265
|
+
* @param {string} id ID of the assessment
|
|
266
|
+
* @throws {RequiredError}
|
|
267
|
+
* @memberof AssessmentApiInterface
|
|
268
|
+
*/
|
|
269
|
+
unshareAssessmentRequestOpts(requestParameters: UnshareAssessmentRequest): Promise<runtime.RequestOpts>;
|
|
270
|
+
/**
|
|
271
|
+
* Unshare an assessment from the user\'s partner organization
|
|
272
|
+
* @param {string} id ID of the assessment
|
|
273
|
+
* @param {*} [options] Override http request option.
|
|
274
|
+
* @throws {RequiredError}
|
|
275
|
+
* @memberof AssessmentApiInterface
|
|
276
|
+
*/
|
|
277
|
+
unshareAssessmentRaw(requestParameters: UnshareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>>;
|
|
278
|
+
/**
|
|
279
|
+
* Unshare an assessment from the user\'s partner organization
|
|
280
|
+
*/
|
|
281
|
+
unshareAssessment(requestParameters: UnshareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status>;
|
|
238
282
|
/**
|
|
239
283
|
* Creates request options for updateAssessment without sending the request
|
|
240
284
|
* @param {string} id ID of the assessment
|
|
@@ -369,6 +413,30 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
|
|
|
369
413
|
* List assessments
|
|
370
414
|
*/
|
|
371
415
|
listAssessments(requestParameters?: ListAssessmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Assessment>>;
|
|
416
|
+
/**
|
|
417
|
+
* Creates request options for shareAssessment without sending the request
|
|
418
|
+
*/
|
|
419
|
+
shareAssessmentRequestOpts(requestParameters: ShareAssessmentRequest): Promise<runtime.RequestOpts>;
|
|
420
|
+
/**
|
|
421
|
+
* Share an assessment with the user\'s partner organization
|
|
422
|
+
*/
|
|
423
|
+
shareAssessmentRaw(requestParameters: ShareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>>;
|
|
424
|
+
/**
|
|
425
|
+
* Share an assessment with the user\'s partner organization
|
|
426
|
+
*/
|
|
427
|
+
shareAssessment(requestParameters: ShareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status>;
|
|
428
|
+
/**
|
|
429
|
+
* Creates request options for unshareAssessment without sending the request
|
|
430
|
+
*/
|
|
431
|
+
unshareAssessmentRequestOpts(requestParameters: UnshareAssessmentRequest): Promise<runtime.RequestOpts>;
|
|
432
|
+
/**
|
|
433
|
+
* Unshare an assessment from the user\'s partner organization
|
|
434
|
+
*/
|
|
435
|
+
unshareAssessmentRaw(requestParameters: UnshareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>>;
|
|
436
|
+
/**
|
|
437
|
+
* Unshare an assessment from the user\'s partner organization
|
|
438
|
+
*/
|
|
439
|
+
unshareAssessment(requestParameters: UnshareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status>;
|
|
372
440
|
/**
|
|
373
441
|
* Creates request options for updateAssessment without sending the request
|
|
374
442
|
*/
|
|
@@ -21,7 +21,7 @@ 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, ClusterRequirementsRequestToJSON, ClusterRequirementsResponseFromJSON, ClusterRequirementsStoredInputFromJSON, MigrationComplexityRequestToJSON, MigrationComplexityResponseFromJSON, MigrationEstimationByComplexityResponseFromJSON, MigrationEstimationRequestToJSON, MigrationEstimationResponseFromJSON, } from '../models/index.js';
|
|
24
|
+
import { AssessmentFromJSON, AssessmentFormToJSON, AssessmentUpdateToJSON, ClusterRequirementsRequestToJSON, ClusterRequirementsResponseFromJSON, ClusterRequirementsStoredInputFromJSON, MigrationComplexityRequestToJSON, MigrationComplexityResponseFromJSON, MigrationEstimationByComplexityResponseFromJSON, MigrationEstimationRequestToJSON, MigrationEstimationResponseFromJSON, StatusFromJSON, } from '../models/index.js';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -403,6 +403,84 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
403
403
|
return yield response.value();
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
|
+
/**
|
|
407
|
+
* Creates request options for shareAssessment without sending the request
|
|
408
|
+
*/
|
|
409
|
+
shareAssessmentRequestOpts(requestParameters) {
|
|
410
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
411
|
+
if (requestParameters['id'] == null) {
|
|
412
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling shareAssessment().');
|
|
413
|
+
}
|
|
414
|
+
const queryParameters = {};
|
|
415
|
+
const headerParameters = {};
|
|
416
|
+
let urlPath = `/api/v1/assessments/{id}/share`;
|
|
417
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
418
|
+
return {
|
|
419
|
+
path: urlPath,
|
|
420
|
+
method: 'POST',
|
|
421
|
+
headers: headerParameters,
|
|
422
|
+
query: queryParameters,
|
|
423
|
+
};
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* Share an assessment with the user\'s partner organization
|
|
428
|
+
*/
|
|
429
|
+
shareAssessmentRaw(requestParameters, initOverrides) {
|
|
430
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
431
|
+
const requestOptions = yield this.shareAssessmentRequestOpts(requestParameters);
|
|
432
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
433
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => StatusFromJSON(jsonValue));
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* Share an assessment with the user\'s partner organization
|
|
438
|
+
*/
|
|
439
|
+
shareAssessment(requestParameters, initOverrides) {
|
|
440
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
441
|
+
const response = yield this.shareAssessmentRaw(requestParameters, initOverrides);
|
|
442
|
+
return yield response.value();
|
|
443
|
+
});
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* Creates request options for unshareAssessment without sending the request
|
|
447
|
+
*/
|
|
448
|
+
unshareAssessmentRequestOpts(requestParameters) {
|
|
449
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
450
|
+
if (requestParameters['id'] == null) {
|
|
451
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling unshareAssessment().');
|
|
452
|
+
}
|
|
453
|
+
const queryParameters = {};
|
|
454
|
+
const headerParameters = {};
|
|
455
|
+
let urlPath = `/api/v1/assessments/{id}/share`;
|
|
456
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
457
|
+
return {
|
|
458
|
+
path: urlPath,
|
|
459
|
+
method: 'DELETE',
|
|
460
|
+
headers: headerParameters,
|
|
461
|
+
query: queryParameters,
|
|
462
|
+
};
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* Unshare an assessment from the user\'s partner organization
|
|
467
|
+
*/
|
|
468
|
+
unshareAssessmentRaw(requestParameters, initOverrides) {
|
|
469
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
470
|
+
const requestOptions = yield this.unshareAssessmentRequestOpts(requestParameters);
|
|
471
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
472
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => StatusFromJSON(jsonValue));
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* Unshare an assessment from the user\'s partner organization
|
|
477
|
+
*/
|
|
478
|
+
unshareAssessment(requestParameters, initOverrides) {
|
|
479
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
480
|
+
const response = yield this.unshareAssessmentRaw(requestParameters, initOverrides);
|
|
481
|
+
return yield response.value();
|
|
482
|
+
});
|
|
483
|
+
}
|
|
406
484
|
/**
|
|
407
485
|
* Creates request options for updateAssessment without sending the request
|
|
408
486
|
*/
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { PartnerRequestStatus } from './PartnerRequestStatus.js';
|
|
13
|
+
import type { PartnerSummary } from './PartnerSummary.js';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -30,10 +31,10 @@ export interface PartnerRequest {
|
|
|
30
31
|
username: string;
|
|
31
32
|
/**
|
|
32
33
|
*
|
|
33
|
-
* @type {
|
|
34
|
+
* @type {PartnerSummary}
|
|
34
35
|
* @memberof PartnerRequest
|
|
35
36
|
*/
|
|
36
|
-
|
|
37
|
+
partner: PartnerSummary;
|
|
37
38
|
/**
|
|
38
39
|
*
|
|
39
40
|
* @type {PartnerRequestStatus}
|
|
@@ -88,6 +89,12 @@ export interface PartnerRequest {
|
|
|
88
89
|
* @memberof PartnerRequest
|
|
89
90
|
*/
|
|
90
91
|
terminatedAt?: Date | null;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {Date}
|
|
95
|
+
* @memberof PartnerRequest
|
|
96
|
+
*/
|
|
97
|
+
createdAt: Date;
|
|
91
98
|
}
|
|
92
99
|
/**
|
|
93
100
|
* Check if a given object implements the PartnerRequest interface.
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { PartnerRequestStatusFromJSON, PartnerRequestStatusToJSON, } from './PartnerRequestStatus.js';
|
|
15
|
+
import { PartnerSummaryFromJSON, PartnerSummaryToJSON, } from './PartnerSummary.js';
|
|
15
16
|
/**
|
|
16
17
|
* Check if a given object implements the PartnerRequest interface.
|
|
17
18
|
*/
|
|
@@ -20,7 +21,7 @@ export function instanceOfPartnerRequest(value) {
|
|
|
20
21
|
return false;
|
|
21
22
|
if (!('username' in value) || value['username'] === undefined)
|
|
22
23
|
return false;
|
|
23
|
-
if (!('
|
|
24
|
+
if (!('partner' in value) || value['partner'] === undefined)
|
|
24
25
|
return false;
|
|
25
26
|
if (!('requestStatus' in value) || value['requestStatus'] === undefined)
|
|
26
27
|
return false;
|
|
@@ -34,6 +35,8 @@ export function instanceOfPartnerRequest(value) {
|
|
|
34
35
|
return false;
|
|
35
36
|
if (!('location' in value) || value['location'] === undefined)
|
|
36
37
|
return false;
|
|
38
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
39
|
+
return false;
|
|
37
40
|
return true;
|
|
38
41
|
}
|
|
39
42
|
export function PartnerRequestFromJSON(json) {
|
|
@@ -46,7 +49,7 @@ export function PartnerRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
49
|
return {
|
|
47
50
|
'id': json['id'],
|
|
48
51
|
'username': json['username'],
|
|
49
|
-
'
|
|
52
|
+
'partner': PartnerSummaryFromJSON(json['partner']),
|
|
50
53
|
'requestStatus': PartnerRequestStatusFromJSON(json['requestStatus']),
|
|
51
54
|
'name': json['name'],
|
|
52
55
|
'contactName': json['contactName'],
|
|
@@ -56,6 +59,7 @@ export function PartnerRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
59
|
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
57
60
|
'acceptedAt': json['acceptedAt'] == null ? undefined : (new Date(json['acceptedAt'])),
|
|
58
61
|
'terminatedAt': json['terminatedAt'] == null ? undefined : (new Date(json['terminatedAt'])),
|
|
62
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
59
63
|
};
|
|
60
64
|
}
|
|
61
65
|
export function PartnerRequestToJSON(json) {
|
|
@@ -68,7 +72,7 @@ export function PartnerRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
68
72
|
return {
|
|
69
73
|
'id': value['id'],
|
|
70
74
|
'username': value['username'],
|
|
71
|
-
'
|
|
75
|
+
'partner': PartnerSummaryToJSON(value['partner']),
|
|
72
76
|
'requestStatus': PartnerRequestStatusToJSON(value['requestStatus']),
|
|
73
77
|
'name': value['name'],
|
|
74
78
|
'contactName': value['contactName'],
|
|
@@ -78,5 +82,6 @@ export function PartnerRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
78
82
|
'reason': value['reason'],
|
|
79
83
|
'acceptedAt': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt'].toISOString(),
|
|
80
84
|
'terminatedAt': value['terminatedAt'] == null ? value['terminatedAt'] : value['terminatedAt'].toISOString(),
|
|
85
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
81
86
|
};
|
|
82
87
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenShift Migration Advisor API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1alpha1
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PartnerSummary
|
|
16
|
+
*/
|
|
17
|
+
export interface PartnerSummary {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PartnerSummary
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PartnerSummary
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PartnerSummary
|
|
34
|
+
*/
|
|
35
|
+
company: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PartnerSummary
|
|
40
|
+
*/
|
|
41
|
+
icon: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the PartnerSummary interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfPartnerSummary(value: object): value is PartnerSummary;
|
|
47
|
+
export declare function PartnerSummaryFromJSON(json: any): PartnerSummary;
|
|
48
|
+
export declare function PartnerSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerSummary;
|
|
49
|
+
export declare function PartnerSummaryToJSON(json: any): PartnerSummary;
|
|
50
|
+
export declare function PartnerSummaryToJSONTyped(value?: PartnerSummary | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenShift Migration Advisor API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1alpha1
|
|
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
|
+
* Check if a given object implements the PartnerSummary interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPartnerSummary(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('company' in value) || value['company'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('icon' in value) || value['icon'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function PartnerSummaryFromJSON(json) {
|
|
29
|
+
return PartnerSummaryFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function PartnerSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'id': json['id'],
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
'company': json['company'],
|
|
39
|
+
'icon': json['icon'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function PartnerSummaryToJSON(json) {
|
|
43
|
+
return PartnerSummaryToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function PartnerSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': value['id'],
|
|
51
|
+
'name': value['name'],
|
|
52
|
+
'company': value['company'],
|
|
53
|
+
'icon': value['icon'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -47,6 +47,7 @@ export * from './PartnerRequest.js';
|
|
|
47
47
|
export * from './PartnerRequestCreate.js';
|
|
48
48
|
export * from './PartnerRequestStatus.js';
|
|
49
49
|
export * from './PartnerRequestUpdate.js';
|
|
50
|
+
export * from './PartnerSummary.js';
|
|
50
51
|
export * from './PresignedUrl.js';
|
|
51
52
|
export * from './SchemaEstimationResult.js';
|
|
52
53
|
export * from './SizingOverCommitRatio.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -49,6 +49,7 @@ export * from './PartnerRequest.js';
|
|
|
49
49
|
export * from './PartnerRequestCreate.js';
|
|
50
50
|
export * from './PartnerRequestStatus.js';
|
|
51
51
|
export * from './PartnerRequestUpdate.js';
|
|
52
|
+
export * from './PartnerSummary.js';
|
|
52
53
|
export * from './PresignedUrl.js';
|
|
53
54
|
export * from './SchemaEstimationResult.js';
|
|
54
55
|
export * from './SizingOverCommitRatio.js';
|