@openshift-migration-advisor/planner-sdk 0.12.0-390afc4a9dfe → 0.12.0-7e11634ba97d
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 +4 -0
- package/README.md +4 -2
- package/dist/esm/models/Assessment.d.ts +22 -0
- package/dist/esm/models/Assessment.js +13 -0
- package/dist/esm/models/AssessmentSharing.d.ts +45 -0
- package/dist/esm/models/AssessmentSharing.js +50 -0
- package/dist/esm/models/SharingSubject.d.ts +38 -0
- package/dist/esm/models/SharingSubject.js +47 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/Assessment.d.ts +22 -0
- package/dist/models/Assessment.js +14 -1
- package/dist/models/AssessmentSharing.d.ts +45 -0
- package/dist/models/AssessmentSharing.js +57 -0
- package/dist/models/SharingSubject.d.ts +38 -0
- package/dist/models/SharingSubject.js +54 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/Assessment.md +4 -0
- package/docs/AssessmentSharing.md +38 -0
- package/docs/SharingSubject.md +36 -0
- package/package.json +1 -1
- package/src/models/Assessment.ts +33 -0
- package/src/models/AssessmentSharing.ts +91 -0
- package/src/models/SharingSubject.ts +75 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -8,6 +8,7 @@ docs/AgentProxy.md
|
|
|
8
8
|
docs/Assessment.md
|
|
9
9
|
docs/AssessmentApi.md
|
|
10
10
|
docs/AssessmentForm.md
|
|
11
|
+
docs/AssessmentSharing.md
|
|
11
12
|
docs/AssessmentUpdate.md
|
|
12
13
|
docs/ClusterRequirementsRequest.md
|
|
13
14
|
docs/ClusterRequirementsResponse.md
|
|
@@ -62,6 +63,7 @@ docs/PartnerRequestUpdate.md
|
|
|
62
63
|
docs/PartnerSummary.md
|
|
63
64
|
docs/PresignedUrl.md
|
|
64
65
|
docs/SchemaEstimationResult.md
|
|
66
|
+
docs/SharingSubject.md
|
|
65
67
|
docs/SizingOverCommitRatio.md
|
|
66
68
|
docs/SizingResourceConsumption.md
|
|
67
69
|
docs/SizingResourceLimits.md
|
|
@@ -92,6 +94,7 @@ src/models/Agent.ts
|
|
|
92
94
|
src/models/AgentProxy.ts
|
|
93
95
|
src/models/Assessment.ts
|
|
94
96
|
src/models/AssessmentForm.ts
|
|
97
|
+
src/models/AssessmentSharing.ts
|
|
95
98
|
src/models/AssessmentUpdate.ts
|
|
96
99
|
src/models/ClusterRequirementsRequest.ts
|
|
97
100
|
src/models/ClusterRequirementsResponse.ts
|
|
@@ -141,6 +144,7 @@ src/models/PartnerRequestUpdate.ts
|
|
|
141
144
|
src/models/PartnerSummary.ts
|
|
142
145
|
src/models/PresignedUrl.ts
|
|
143
146
|
src/models/SchemaEstimationResult.ts
|
|
147
|
+
src/models/SharingSubject.ts
|
|
144
148
|
src/models/SizingOverCommitRatio.ts
|
|
145
149
|
src/models/SizingResourceConsumption.ts
|
|
146
150
|
src/models/SizingResourceLimits.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.12.0-
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.12.0-7e11634ba97d
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -103,6 +103,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
103
103
|
- [AgentProxy](docs/AgentProxy.md)
|
|
104
104
|
- [Assessment](docs/Assessment.md)
|
|
105
105
|
- [AssessmentForm](docs/AssessmentForm.md)
|
|
106
|
+
- [AssessmentSharing](docs/AssessmentSharing.md)
|
|
106
107
|
- [AssessmentUpdate](docs/AssessmentUpdate.md)
|
|
107
108
|
- [ClusterRequirementsRequest](docs/ClusterRequirementsRequest.md)
|
|
108
109
|
- [ClusterRequirementsResponse](docs/ClusterRequirementsResponse.md)
|
|
@@ -152,6 +153,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
152
153
|
- [PartnerSummary](docs/PartnerSummary.md)
|
|
153
154
|
- [PresignedUrl](docs/PresignedUrl.md)
|
|
154
155
|
- [SchemaEstimationResult](docs/SchemaEstimationResult.md)
|
|
156
|
+
- [SharingSubject](docs/SharingSubject.md)
|
|
155
157
|
- [SizingOverCommitRatio](docs/SizingOverCommitRatio.md)
|
|
156
158
|
- [SizingResourceConsumption](docs/SizingResourceConsumption.md)
|
|
157
159
|
- [SizingResourceLimits](docs/SizingResourceLimits.md)
|
|
@@ -179,7 +181,7 @@ and is automatically generated by the
|
|
|
179
181
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
180
182
|
|
|
181
183
|
- API version: `v1alpha1`
|
|
182
|
-
- Package version: `0.12.0-
|
|
184
|
+
- Package version: `0.12.0-7e11634ba97d`
|
|
183
185
|
- Generator version: `7.23.0-SNAPSHOT`
|
|
184
186
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
185
187
|
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Snapshot } from './Snapshot.js';
|
|
13
|
+
import type { AssessmentSharing } from './AssessmentSharing.js';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -64,6 +65,18 @@ export interface Assessment {
|
|
|
64
65
|
* @memberof Assessment
|
|
65
66
|
*/
|
|
66
67
|
snapshots: Array<Snapshot>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Array<AssessmentPermissionsEnum>}
|
|
71
|
+
* @memberof Assessment
|
|
72
|
+
*/
|
|
73
|
+
permissions?: Array<AssessmentPermissionsEnum>;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {AssessmentSharing}
|
|
77
|
+
* @memberof Assessment
|
|
78
|
+
*/
|
|
79
|
+
sharing?: AssessmentSharing;
|
|
67
80
|
}
|
|
68
81
|
/**
|
|
69
82
|
* @export
|
|
@@ -74,6 +87,15 @@ export declare const AssessmentSourceTypeEnum: {
|
|
|
74
87
|
readonly Source: "source";
|
|
75
88
|
};
|
|
76
89
|
export type AssessmentSourceTypeEnum = typeof AssessmentSourceTypeEnum[keyof typeof AssessmentSourceTypeEnum];
|
|
90
|
+
/**
|
|
91
|
+
* @export
|
|
92
|
+
*/
|
|
93
|
+
export declare const AssessmentPermissionsEnum: {
|
|
94
|
+
readonly Read: "read";
|
|
95
|
+
readonly Share: "share";
|
|
96
|
+
readonly Delete: "delete";
|
|
97
|
+
};
|
|
98
|
+
export type AssessmentPermissionsEnum = typeof AssessmentPermissionsEnum[keyof typeof AssessmentPermissionsEnum];
|
|
77
99
|
/**
|
|
78
100
|
* Check if a given object implements the Assessment interface.
|
|
79
101
|
*/
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { SnapshotFromJSON, SnapshotToJSON, } from './Snapshot.js';
|
|
15
|
+
import { AssessmentSharingFromJSON, AssessmentSharingToJSON, } from './AssessmentSharing.js';
|
|
15
16
|
/**
|
|
16
17
|
* @export
|
|
17
18
|
*/
|
|
@@ -20,6 +21,14 @@ export const AssessmentSourceTypeEnum = {
|
|
|
20
21
|
Rvtools: 'rvtools',
|
|
21
22
|
Source: 'source'
|
|
22
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
export const AssessmentPermissionsEnum = {
|
|
28
|
+
Read: 'read',
|
|
29
|
+
Share: 'share',
|
|
30
|
+
Delete: 'delete'
|
|
31
|
+
};
|
|
23
32
|
/**
|
|
24
33
|
* Check if a given object implements the Assessment interface.
|
|
25
34
|
*/
|
|
@@ -52,6 +61,8 @@ export function AssessmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
61
|
'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
|
|
53
62
|
'createdAt': (new Date(json['createdAt'])),
|
|
54
63
|
'snapshots': (json['snapshots'].map(SnapshotFromJSON)),
|
|
64
|
+
'permissions': json['permissions'] == null ? undefined : json['permissions'],
|
|
65
|
+
'sharing': json['sharing'] == null ? undefined : AssessmentSharingFromJSON(json['sharing']),
|
|
55
66
|
};
|
|
56
67
|
}
|
|
57
68
|
export function AssessmentToJSON(json) {
|
|
@@ -70,5 +81,7 @@ export function AssessmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
70
81
|
'sourceId': value['sourceId'],
|
|
71
82
|
'createdAt': value['createdAt'].toISOString(),
|
|
72
83
|
'snapshots': (value['snapshots'].map(SnapshotToJSON)),
|
|
84
|
+
'permissions': value['permissions'],
|
|
85
|
+
'sharing': AssessmentSharingToJSON(value['sharing']),
|
|
73
86
|
};
|
|
74
87
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
import type { SharingSubject } from './SharingSubject.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AssessmentSharing
|
|
17
|
+
*/
|
|
18
|
+
export interface AssessmentSharing {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof AssessmentSharing
|
|
23
|
+
*/
|
|
24
|
+
isShared: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<SharingSubject>}
|
|
28
|
+
* @memberof AssessmentSharing
|
|
29
|
+
*/
|
|
30
|
+
sharedWith: Array<SharingSubject>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {SharingSubject}
|
|
34
|
+
* @memberof AssessmentSharing
|
|
35
|
+
*/
|
|
36
|
+
sharedBy?: SharingSubject;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AssessmentSharing interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfAssessmentSharing(value: object): value is AssessmentSharing;
|
|
42
|
+
export declare function AssessmentSharingFromJSON(json: any): AssessmentSharing;
|
|
43
|
+
export declare function AssessmentSharingFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssessmentSharing;
|
|
44
|
+
export declare function AssessmentSharingToJSON(json: any): AssessmentSharing;
|
|
45
|
+
export declare function AssessmentSharingToJSONTyped(value?: AssessmentSharing | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
import { SharingSubjectFromJSON, SharingSubjectToJSON, } from './SharingSubject.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the AssessmentSharing interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAssessmentSharing(value) {
|
|
19
|
+
if (!('isShared' in value) || value['isShared'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('sharedWith' in value) || value['sharedWith'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function AssessmentSharingFromJSON(json) {
|
|
26
|
+
return AssessmentSharingFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function AssessmentSharingFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'isShared': json['isShared'],
|
|
34
|
+
'sharedWith': (json['sharedWith'].map(SharingSubjectFromJSON)),
|
|
35
|
+
'sharedBy': json['sharedBy'] == null ? undefined : SharingSubjectFromJSON(json['sharedBy']),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function AssessmentSharingToJSON(json) {
|
|
39
|
+
return AssessmentSharingToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function AssessmentSharingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'isShared': value['isShared'],
|
|
47
|
+
'sharedWith': (value['sharedWith'].map(SharingSubjectToJSON)),
|
|
48
|
+
'sharedBy': SharingSubjectToJSON(value['sharedBy']),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 SharingSubject
|
|
16
|
+
*/
|
|
17
|
+
export interface SharingSubject {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SharingSubject
|
|
22
|
+
*/
|
|
23
|
+
type: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SharingSubject
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the SharingSubject interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfSharingSubject(value: object): value is SharingSubject;
|
|
35
|
+
export declare function SharingSubjectFromJSON(json: any): SharingSubject;
|
|
36
|
+
export declare function SharingSubjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): SharingSubject;
|
|
37
|
+
export declare function SharingSubjectToJSON(json: any): SharingSubject;
|
|
38
|
+
export declare function SharingSubjectToJSONTyped(value?: SharingSubject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 SharingSubject interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfSharingSubject(value) {
|
|
18
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function SharingSubjectFromJSON(json) {
|
|
25
|
+
return SharingSubjectFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function SharingSubjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'type': json['type'],
|
|
33
|
+
'id': json['id'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function SharingSubjectToJSON(json) {
|
|
37
|
+
return SharingSubjectToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function SharingSubjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'type': value['type'],
|
|
45
|
+
'id': value['id'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -2,6 +2,7 @@ export * from './Agent.js';
|
|
|
2
2
|
export * from './AgentProxy.js';
|
|
3
3
|
export * from './Assessment.js';
|
|
4
4
|
export * from './AssessmentForm.js';
|
|
5
|
+
export * from './AssessmentSharing.js';
|
|
5
6
|
export * from './AssessmentUpdate.js';
|
|
6
7
|
export * from './ClusterRequirementsRequest.js';
|
|
7
8
|
export * from './ClusterRequirementsResponse.js';
|
|
@@ -51,6 +52,7 @@ export * from './PartnerRequestUpdate.js';
|
|
|
51
52
|
export * from './PartnerSummary.js';
|
|
52
53
|
export * from './PresignedUrl.js';
|
|
53
54
|
export * from './SchemaEstimationResult.js';
|
|
55
|
+
export * from './SharingSubject.js';
|
|
54
56
|
export * from './SizingOverCommitRatio.js';
|
|
55
57
|
export * from './SizingResourceConsumption.js';
|
|
56
58
|
export * from './SizingResourceLimits.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -4,6 +4,7 @@ export * from './Agent.js';
|
|
|
4
4
|
export * from './AgentProxy.js';
|
|
5
5
|
export * from './Assessment.js';
|
|
6
6
|
export * from './AssessmentForm.js';
|
|
7
|
+
export * from './AssessmentSharing.js';
|
|
7
8
|
export * from './AssessmentUpdate.js';
|
|
8
9
|
export * from './ClusterRequirementsRequest.js';
|
|
9
10
|
export * from './ClusterRequirementsResponse.js';
|
|
@@ -53,6 +54,7 @@ export * from './PartnerRequestUpdate.js';
|
|
|
53
54
|
export * from './PartnerSummary.js';
|
|
54
55
|
export * from './PresignedUrl.js';
|
|
55
56
|
export * from './SchemaEstimationResult.js';
|
|
57
|
+
export * from './SharingSubject.js';
|
|
56
58
|
export * from './SizingOverCommitRatio.js';
|
|
57
59
|
export * from './SizingResourceConsumption.js';
|
|
58
60
|
export * from './SizingResourceLimits.js';
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Snapshot } from './Snapshot.js';
|
|
13
|
+
import type { AssessmentSharing } from './AssessmentSharing.js';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -64,6 +65,18 @@ export interface Assessment {
|
|
|
64
65
|
* @memberof Assessment
|
|
65
66
|
*/
|
|
66
67
|
snapshots: Array<Snapshot>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Array<AssessmentPermissionsEnum>}
|
|
71
|
+
* @memberof Assessment
|
|
72
|
+
*/
|
|
73
|
+
permissions?: Array<AssessmentPermissionsEnum>;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {AssessmentSharing}
|
|
77
|
+
* @memberof Assessment
|
|
78
|
+
*/
|
|
79
|
+
sharing?: AssessmentSharing;
|
|
67
80
|
}
|
|
68
81
|
/**
|
|
69
82
|
* @export
|
|
@@ -74,6 +87,15 @@ export declare const AssessmentSourceTypeEnum: {
|
|
|
74
87
|
readonly Source: "source";
|
|
75
88
|
};
|
|
76
89
|
export type AssessmentSourceTypeEnum = typeof AssessmentSourceTypeEnum[keyof typeof AssessmentSourceTypeEnum];
|
|
90
|
+
/**
|
|
91
|
+
* @export
|
|
92
|
+
*/
|
|
93
|
+
export declare const AssessmentPermissionsEnum: {
|
|
94
|
+
readonly Read: "read";
|
|
95
|
+
readonly Share: "share";
|
|
96
|
+
readonly Delete: "delete";
|
|
97
|
+
};
|
|
98
|
+
export type AssessmentPermissionsEnum = typeof AssessmentPermissionsEnum[keyof typeof AssessmentPermissionsEnum];
|
|
77
99
|
/**
|
|
78
100
|
* Check if a given object implements the Assessment interface.
|
|
79
101
|
*/
|
|
@@ -13,13 +13,14 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.AssessmentSourceTypeEnum = void 0;
|
|
16
|
+
exports.AssessmentPermissionsEnum = exports.AssessmentSourceTypeEnum = void 0;
|
|
17
17
|
exports.instanceOfAssessment = instanceOfAssessment;
|
|
18
18
|
exports.AssessmentFromJSON = AssessmentFromJSON;
|
|
19
19
|
exports.AssessmentFromJSONTyped = AssessmentFromJSONTyped;
|
|
20
20
|
exports.AssessmentToJSON = AssessmentToJSON;
|
|
21
21
|
exports.AssessmentToJSONTyped = AssessmentToJSONTyped;
|
|
22
22
|
const Snapshot_js_1 = require("./Snapshot.js");
|
|
23
|
+
const AssessmentSharing_js_1 = require("./AssessmentSharing.js");
|
|
23
24
|
/**
|
|
24
25
|
* @export
|
|
25
26
|
*/
|
|
@@ -28,6 +29,14 @@ exports.AssessmentSourceTypeEnum = {
|
|
|
28
29
|
Rvtools: 'rvtools',
|
|
29
30
|
Source: 'source'
|
|
30
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
exports.AssessmentPermissionsEnum = {
|
|
36
|
+
Read: 'read',
|
|
37
|
+
Share: 'share',
|
|
38
|
+
Delete: 'delete'
|
|
39
|
+
};
|
|
31
40
|
/**
|
|
32
41
|
* Check if a given object implements the Assessment interface.
|
|
33
42
|
*/
|
|
@@ -60,6 +69,8 @@ function AssessmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
69
|
'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
|
|
61
70
|
'createdAt': (new Date(json['createdAt'])),
|
|
62
71
|
'snapshots': (json['snapshots'].map(Snapshot_js_1.SnapshotFromJSON)),
|
|
72
|
+
'permissions': json['permissions'] == null ? undefined : json['permissions'],
|
|
73
|
+
'sharing': json['sharing'] == null ? undefined : (0, AssessmentSharing_js_1.AssessmentSharingFromJSON)(json['sharing']),
|
|
63
74
|
};
|
|
64
75
|
}
|
|
65
76
|
function AssessmentToJSON(json) {
|
|
@@ -78,5 +89,7 @@ function AssessmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
78
89
|
'sourceId': value['sourceId'],
|
|
79
90
|
'createdAt': value['createdAt'].toISOString(),
|
|
80
91
|
'snapshots': (value['snapshots'].map(Snapshot_js_1.SnapshotToJSON)),
|
|
92
|
+
'permissions': value['permissions'],
|
|
93
|
+
'sharing': (0, AssessmentSharing_js_1.AssessmentSharingToJSON)(value['sharing']),
|
|
81
94
|
};
|
|
82
95
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
import type { SharingSubject } from './SharingSubject.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AssessmentSharing
|
|
17
|
+
*/
|
|
18
|
+
export interface AssessmentSharing {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof AssessmentSharing
|
|
23
|
+
*/
|
|
24
|
+
isShared: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<SharingSubject>}
|
|
28
|
+
* @memberof AssessmentSharing
|
|
29
|
+
*/
|
|
30
|
+
sharedWith: Array<SharingSubject>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {SharingSubject}
|
|
34
|
+
* @memberof AssessmentSharing
|
|
35
|
+
*/
|
|
36
|
+
sharedBy?: SharingSubject;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AssessmentSharing interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfAssessmentSharing(value: object): value is AssessmentSharing;
|
|
42
|
+
export declare function AssessmentSharingFromJSON(json: any): AssessmentSharing;
|
|
43
|
+
export declare function AssessmentSharingFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssessmentSharing;
|
|
44
|
+
export declare function AssessmentSharingToJSON(json: any): AssessmentSharing;
|
|
45
|
+
export declare function AssessmentSharingToJSONTyped(value?: AssessmentSharing | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenShift Migration Advisor API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1alpha1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAssessmentSharing = instanceOfAssessmentSharing;
|
|
17
|
+
exports.AssessmentSharingFromJSON = AssessmentSharingFromJSON;
|
|
18
|
+
exports.AssessmentSharingFromJSONTyped = AssessmentSharingFromJSONTyped;
|
|
19
|
+
exports.AssessmentSharingToJSON = AssessmentSharingToJSON;
|
|
20
|
+
exports.AssessmentSharingToJSONTyped = AssessmentSharingToJSONTyped;
|
|
21
|
+
const SharingSubject_js_1 = require("./SharingSubject.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AssessmentSharing interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAssessmentSharing(value) {
|
|
26
|
+
if (!('isShared' in value) || value['isShared'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('sharedWith' in value) || value['sharedWith'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function AssessmentSharingFromJSON(json) {
|
|
33
|
+
return AssessmentSharingFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function AssessmentSharingFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'isShared': json['isShared'],
|
|
41
|
+
'sharedWith': (json['sharedWith'].map(SharingSubject_js_1.SharingSubjectFromJSON)),
|
|
42
|
+
'sharedBy': json['sharedBy'] == null ? undefined : (0, SharingSubject_js_1.SharingSubjectFromJSON)(json['sharedBy']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function AssessmentSharingToJSON(json) {
|
|
46
|
+
return AssessmentSharingToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function AssessmentSharingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'isShared': value['isShared'],
|
|
54
|
+
'sharedWith': (value['sharedWith'].map(SharingSubject_js_1.SharingSubjectToJSON)),
|
|
55
|
+
'sharedBy': (0, SharingSubject_js_1.SharingSubjectToJSON)(value['sharedBy']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 SharingSubject
|
|
16
|
+
*/
|
|
17
|
+
export interface SharingSubject {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SharingSubject
|
|
22
|
+
*/
|
|
23
|
+
type: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SharingSubject
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the SharingSubject interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfSharingSubject(value: object): value is SharingSubject;
|
|
35
|
+
export declare function SharingSubjectFromJSON(json: any): SharingSubject;
|
|
36
|
+
export declare function SharingSubjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): SharingSubject;
|
|
37
|
+
export declare function SharingSubjectToJSON(json: any): SharingSubject;
|
|
38
|
+
export declare function SharingSubjectToJSONTyped(value?: SharingSubject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenShift Migration Advisor API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1alpha1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfSharingSubject = instanceOfSharingSubject;
|
|
17
|
+
exports.SharingSubjectFromJSON = SharingSubjectFromJSON;
|
|
18
|
+
exports.SharingSubjectFromJSONTyped = SharingSubjectFromJSONTyped;
|
|
19
|
+
exports.SharingSubjectToJSON = SharingSubjectToJSON;
|
|
20
|
+
exports.SharingSubjectToJSONTyped = SharingSubjectToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SharingSubject interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSharingSubject(value) {
|
|
25
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function SharingSubjectFromJSON(json) {
|
|
32
|
+
return SharingSubjectFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function SharingSubjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'type': json['type'],
|
|
40
|
+
'id': json['id'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function SharingSubjectToJSON(json) {
|
|
44
|
+
return SharingSubjectToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function SharingSubjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'type': value['type'],
|
|
52
|
+
'id': value['id'],
|
|
53
|
+
};
|
|
54
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './Agent.js';
|
|
|
2
2
|
export * from './AgentProxy.js';
|
|
3
3
|
export * from './Assessment.js';
|
|
4
4
|
export * from './AssessmentForm.js';
|
|
5
|
+
export * from './AssessmentSharing.js';
|
|
5
6
|
export * from './AssessmentUpdate.js';
|
|
6
7
|
export * from './ClusterRequirementsRequest.js';
|
|
7
8
|
export * from './ClusterRequirementsResponse.js';
|
|
@@ -51,6 +52,7 @@ export * from './PartnerRequestUpdate.js';
|
|
|
51
52
|
export * from './PartnerSummary.js';
|
|
52
53
|
export * from './PresignedUrl.js';
|
|
53
54
|
export * from './SchemaEstimationResult.js';
|
|
55
|
+
export * from './SharingSubject.js';
|
|
54
56
|
export * from './SizingOverCommitRatio.js';
|
|
55
57
|
export * from './SizingResourceConsumption.js';
|
|
56
58
|
export * from './SizingResourceLimits.js';
|
package/dist/models/index.js
CHANGED
|
@@ -20,6 +20,7 @@ __exportStar(require("./Agent.js"), exports);
|
|
|
20
20
|
__exportStar(require("./AgentProxy.js"), exports);
|
|
21
21
|
__exportStar(require("./Assessment.js"), exports);
|
|
22
22
|
__exportStar(require("./AssessmentForm.js"), exports);
|
|
23
|
+
__exportStar(require("./AssessmentSharing.js"), exports);
|
|
23
24
|
__exportStar(require("./AssessmentUpdate.js"), exports);
|
|
24
25
|
__exportStar(require("./ClusterRequirementsRequest.js"), exports);
|
|
25
26
|
__exportStar(require("./ClusterRequirementsResponse.js"), exports);
|
|
@@ -69,6 +70,7 @@ __exportStar(require("./PartnerRequestUpdate.js"), exports);
|
|
|
69
70
|
__exportStar(require("./PartnerSummary.js"), exports);
|
|
70
71
|
__exportStar(require("./PresignedUrl.js"), exports);
|
|
71
72
|
__exportStar(require("./SchemaEstimationResult.js"), exports);
|
|
73
|
+
__exportStar(require("./SharingSubject.js"), exports);
|
|
72
74
|
__exportStar(require("./SizingOverCommitRatio.js"), exports);
|
|
73
75
|
__exportStar(require("./SizingResourceConsumption.js"), exports);
|
|
74
76
|
__exportStar(require("./SizingResourceLimits.js"), exports);
|
package/docs/Assessment.md
CHANGED
|
@@ -14,6 +14,8 @@ Name | Type
|
|
|
14
14
|
`sourceId` | string
|
|
15
15
|
`createdAt` | Date
|
|
16
16
|
`snapshots` | [Array<Snapshot>](Snapshot.md)
|
|
17
|
+
`permissions` | Array<string>
|
|
18
|
+
`sharing` | [AssessmentSharing](AssessmentSharing.md)
|
|
17
19
|
|
|
18
20
|
## Example
|
|
19
21
|
|
|
@@ -30,6 +32,8 @@ const example = {
|
|
|
30
32
|
"sourceId": null,
|
|
31
33
|
"createdAt": null,
|
|
32
34
|
"snapshots": null,
|
|
35
|
+
"permissions": null,
|
|
36
|
+
"sharing": null,
|
|
33
37
|
} satisfies Assessment
|
|
34
38
|
|
|
35
39
|
console.log(example)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# AssessmentSharing
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`isShared` | boolean
|
|
10
|
+
`sharedWith` | [Array<SharingSubject>](SharingSubject.md)
|
|
11
|
+
`sharedBy` | [SharingSubject](SharingSubject.md)
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { AssessmentSharing } from '@openshift-migration-advisor/planner-sdk'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"isShared": null,
|
|
21
|
+
"sharedWith": null,
|
|
22
|
+
"sharedBy": null,
|
|
23
|
+
} satisfies AssessmentSharing
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as AssessmentSharing
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# SharingSubject
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`type` | string
|
|
10
|
+
`id` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { SharingSubject } from '@openshift-migration-advisor/planner-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"type": null,
|
|
20
|
+
"id": null,
|
|
21
|
+
} satisfies SharingSubject
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as SharingSubject
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
package/package.json
CHANGED
package/src/models/Assessment.ts
CHANGED
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
SnapshotToJSON,
|
|
21
21
|
SnapshotToJSONTyped,
|
|
22
22
|
} from './Snapshot.js';
|
|
23
|
+
import type { AssessmentSharing } from './AssessmentSharing.js';
|
|
24
|
+
import {
|
|
25
|
+
AssessmentSharingFromJSON,
|
|
26
|
+
AssessmentSharingFromJSONTyped,
|
|
27
|
+
AssessmentSharingToJSON,
|
|
28
|
+
AssessmentSharingToJSONTyped,
|
|
29
|
+
} from './AssessmentSharing.js';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -75,6 +82,18 @@ export interface Assessment {
|
|
|
75
82
|
* @memberof Assessment
|
|
76
83
|
*/
|
|
77
84
|
snapshots: Array<Snapshot>;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {Array<AssessmentPermissionsEnum>}
|
|
88
|
+
* @memberof Assessment
|
|
89
|
+
*/
|
|
90
|
+
permissions?: Array<AssessmentPermissionsEnum>;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {AssessmentSharing}
|
|
94
|
+
* @memberof Assessment
|
|
95
|
+
*/
|
|
96
|
+
sharing?: AssessmentSharing;
|
|
78
97
|
}
|
|
79
98
|
|
|
80
99
|
|
|
@@ -88,6 +107,16 @@ export const AssessmentSourceTypeEnum = {
|
|
|
88
107
|
} as const;
|
|
89
108
|
export type AssessmentSourceTypeEnum = typeof AssessmentSourceTypeEnum[keyof typeof AssessmentSourceTypeEnum];
|
|
90
109
|
|
|
110
|
+
/**
|
|
111
|
+
* @export
|
|
112
|
+
*/
|
|
113
|
+
export const AssessmentPermissionsEnum = {
|
|
114
|
+
Read: 'read',
|
|
115
|
+
Share: 'share',
|
|
116
|
+
Delete: 'delete'
|
|
117
|
+
} as const;
|
|
118
|
+
export type AssessmentPermissionsEnum = typeof AssessmentPermissionsEnum[keyof typeof AssessmentPermissionsEnum];
|
|
119
|
+
|
|
91
120
|
|
|
92
121
|
/**
|
|
93
122
|
* Check if a given object implements the Assessment interface.
|
|
@@ -119,6 +148,8 @@ export function AssessmentFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
119
148
|
'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
|
|
120
149
|
'createdAt': (new Date(json['createdAt'])),
|
|
121
150
|
'snapshots': ((json['snapshots'] as Array<any>).map(SnapshotFromJSON)),
|
|
151
|
+
'permissions': json['permissions'] == null ? undefined : json['permissions'],
|
|
152
|
+
'sharing': json['sharing'] == null ? undefined : AssessmentSharingFromJSON(json['sharing']),
|
|
122
153
|
};
|
|
123
154
|
}
|
|
124
155
|
|
|
@@ -141,6 +172,8 @@ export function AssessmentToJSONTyped(value?: Assessment | null, ignoreDiscrimin
|
|
|
141
172
|
'sourceId': value['sourceId'],
|
|
142
173
|
'createdAt': value['createdAt'].toISOString(),
|
|
143
174
|
'snapshots': ((value['snapshots'] as Array<any>).map(SnapshotToJSON)),
|
|
175
|
+
'permissions': value['permissions'],
|
|
176
|
+
'sharing': AssessmentSharingToJSON(value['sharing']),
|
|
144
177
|
};
|
|
145
178
|
}
|
|
146
179
|
|
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { SharingSubject } from './SharingSubject.js';
|
|
17
|
+
import {
|
|
18
|
+
SharingSubjectFromJSON,
|
|
19
|
+
SharingSubjectFromJSONTyped,
|
|
20
|
+
SharingSubjectToJSON,
|
|
21
|
+
SharingSubjectToJSONTyped,
|
|
22
|
+
} from './SharingSubject.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AssessmentSharing
|
|
28
|
+
*/
|
|
29
|
+
export interface AssessmentSharing {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof AssessmentSharing
|
|
34
|
+
*/
|
|
35
|
+
isShared: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<SharingSubject>}
|
|
39
|
+
* @memberof AssessmentSharing
|
|
40
|
+
*/
|
|
41
|
+
sharedWith: Array<SharingSubject>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {SharingSubject}
|
|
45
|
+
* @memberof AssessmentSharing
|
|
46
|
+
*/
|
|
47
|
+
sharedBy?: SharingSubject;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the AssessmentSharing interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfAssessmentSharing(value: object): value is AssessmentSharing {
|
|
54
|
+
if (!('isShared' in value) || value['isShared'] === undefined) return false;
|
|
55
|
+
if (!('sharedWith' in value) || value['sharedWith'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function AssessmentSharingFromJSON(json: any): AssessmentSharing {
|
|
60
|
+
return AssessmentSharingFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function AssessmentSharingFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssessmentSharing {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'isShared': json['isShared'],
|
|
70
|
+
'sharedWith': ((json['sharedWith'] as Array<any>).map(SharingSubjectFromJSON)),
|
|
71
|
+
'sharedBy': json['sharedBy'] == null ? undefined : SharingSubjectFromJSON(json['sharedBy']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function AssessmentSharingToJSON(json: any): AssessmentSharing {
|
|
76
|
+
return AssessmentSharingToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function AssessmentSharingToJSONTyped(value?: AssessmentSharing | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'isShared': value['isShared'],
|
|
87
|
+
'sharedWith': ((value['sharedWith'] as Array<any>).map(SharingSubjectToJSON)),
|
|
88
|
+
'sharedBy': SharingSubjectToJSON(value['sharedBy']),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SharingSubject
|
|
20
|
+
*/
|
|
21
|
+
export interface SharingSubject {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SharingSubject
|
|
26
|
+
*/
|
|
27
|
+
type: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SharingSubject
|
|
32
|
+
*/
|
|
33
|
+
id: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the SharingSubject interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfSharingSubject(value: object): value is SharingSubject {
|
|
40
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
41
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function SharingSubjectFromJSON(json: any): SharingSubject {
|
|
46
|
+
return SharingSubjectFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function SharingSubjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): SharingSubject {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'type': json['type'],
|
|
56
|
+
'id': json['id'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function SharingSubjectToJSON(json: any): SharingSubject {
|
|
61
|
+
return SharingSubjectToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function SharingSubjectToJSONTyped(value?: SharingSubject | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'type': value['type'],
|
|
72
|
+
'id': value['id'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './Agent.js';
|
|
|
4
4
|
export * from './AgentProxy.js';
|
|
5
5
|
export * from './Assessment.js';
|
|
6
6
|
export * from './AssessmentForm.js';
|
|
7
|
+
export * from './AssessmentSharing.js';
|
|
7
8
|
export * from './AssessmentUpdate.js';
|
|
8
9
|
export * from './ClusterRequirementsRequest.js';
|
|
9
10
|
export * from './ClusterRequirementsResponse.js';
|
|
@@ -53,6 +54,7 @@ export * from './PartnerRequestUpdate.js';
|
|
|
53
54
|
export * from './PartnerSummary.js';
|
|
54
55
|
export * from './PresignedUrl.js';
|
|
55
56
|
export * from './SchemaEstimationResult.js';
|
|
57
|
+
export * from './SharingSubject.js';
|
|
56
58
|
export * from './SizingOverCommitRatio.js';
|
|
57
59
|
export * from './SizingResourceConsumption.js';
|
|
58
60
|
export * from './SizingResourceLimits.js';
|