@openshift-migration-advisor/planner-sdk 0.12.0 → 0.13.1
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/.openapi-generator/VERSION +1 -1
- package/README.md +5 -3
- package/dist/apis/AccountApi.d.ts +7 -1
- package/dist/apis/AccountApi.js +20 -14
- package/dist/apis/AssessmentApi.d.ts +12 -1
- package/dist/apis/AssessmentApi.js +30 -19
- package/dist/apis/ImageApi.d.ts +1 -1
- package/dist/apis/ImageApi.js +2 -2
- package/dist/apis/InfoApi.d.ts +1 -1
- package/dist/apis/InfoApi.js +2 -2
- package/dist/apis/JobApi.d.ts +1 -1
- package/dist/apis/JobApi.js +4 -4
- package/dist/apis/PartnerApi.d.ts +5 -1
- package/dist/apis/PartnerApi.js +13 -9
- package/dist/apis/SourceApi.d.ts +5 -1
- package/dist/apis/SourceApi.js +15 -11
- package/dist/esm/apis/AccountApi.d.ts +7 -1
- package/dist/esm/apis/AccountApi.js +7 -1
- package/dist/esm/apis/AssessmentApi.d.ts +12 -1
- package/dist/esm/apis/AssessmentApi.js +12 -1
- package/dist/esm/apis/ImageApi.d.ts +1 -1
- package/dist/esm/apis/ImageApi.js +1 -1
- package/dist/esm/apis/InfoApi.d.ts +1 -1
- package/dist/esm/apis/InfoApi.js +1 -1
- package/dist/esm/apis/JobApi.d.ts +1 -1
- package/dist/esm/apis/JobApi.js +1 -1
- package/dist/esm/apis/PartnerApi.d.ts +5 -1
- package/dist/esm/apis/PartnerApi.js +5 -1
- package/dist/esm/apis/SourceApi.d.ts +5 -1
- package/dist/esm/apis/SourceApi.js +5 -1
- 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/SourceCreate.d.ts +26 -0
- package/dist/esm/models/SourceCreate.js +13 -0
- package/dist/esm/models/SourceUpdate.d.ts +26 -0
- package/dist/esm/models/SourceUpdate.js +13 -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/SourceCreate.d.ts +26 -0
- package/dist/models/SourceCreate.js +14 -0
- package/dist/models/SourceUpdate.d.ts +26 -0
- package/dist/models/SourceUpdate.js +14 -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/docs/SourceCreate.md +6 -0
- package/docs/SourceUpdate.md +6 -0
- package/package.json +1 -1
- package/src/apis/AccountApi.ts +20 -11
- package/src/apis/AssessmentApi.ts +35 -16
- package/src/apis/HealthApi.ts +0 -1
- package/src/apis/ImageApi.ts +2 -5
- package/src/apis/InfoApi.ts +2 -5
- package/src/apis/JobApi.ts +2 -5
- package/src/apis/PartnerApi.ts +14 -9
- package/src/apis/SourceApi.ts +14 -9
- package/src/models/Assessment.ts +33 -0
- package/src/models/AssessmentSharing.ts +91 -0
- package/src/models/SharingSubject.ts +75 -0
- package/src/models/SourceCreate.ts +35 -0
- package/src/models/SourceUpdate.ts +35 -0
- package/src/models/index.ts +2 -0
- package/src/runtime.ts +0 -1
package/docs/SourceCreate.md
CHANGED
|
@@ -11,7 +11,10 @@ Name | Type
|
|
|
11
11
|
`proxy` | [AgentProxy](AgentProxy.md)
|
|
12
12
|
`certificateChain` | string
|
|
13
13
|
`network` | [VmNetwork](VmNetwork.md)
|
|
14
|
+
`vmNetwork` | [VmNetwork](VmNetwork.md)
|
|
14
15
|
`labels` | [Array<Label>](Label.md)
|
|
16
|
+
`enableProxy` | boolean
|
|
17
|
+
`networkConfigType` | string
|
|
15
18
|
|
|
16
19
|
## Example
|
|
17
20
|
|
|
@@ -25,7 +28,10 @@ const example = {
|
|
|
25
28
|
"proxy": null,
|
|
26
29
|
"certificateChain": null,
|
|
27
30
|
"network": null,
|
|
31
|
+
"vmNetwork": null,
|
|
28
32
|
"labels": null,
|
|
33
|
+
"enableProxy": null,
|
|
34
|
+
"networkConfigType": null,
|
|
29
35
|
} satisfies SourceCreate
|
|
30
36
|
|
|
31
37
|
console.log(example)
|
package/docs/SourceUpdate.md
CHANGED
|
@@ -12,6 +12,9 @@ Name | Type
|
|
|
12
12
|
`certificateChain` | string
|
|
13
13
|
`proxy` | [AgentProxy](AgentProxy.md)
|
|
14
14
|
`network` | [VmNetwork](VmNetwork.md)
|
|
15
|
+
`vmNetwork` | [VmNetwork](VmNetwork.md)
|
|
16
|
+
`enableProxy` | boolean
|
|
17
|
+
`networkConfigType` | string
|
|
15
18
|
|
|
16
19
|
## Example
|
|
17
20
|
|
|
@@ -26,6 +29,9 @@ const example = {
|
|
|
26
29
|
"certificateChain": null,
|
|
27
30
|
"proxy": null,
|
|
28
31
|
"network": null,
|
|
32
|
+
"vmNetwork": null,
|
|
33
|
+
"enableProxy": null,
|
|
34
|
+
"networkConfigType": null,
|
|
29
35
|
} satisfies SourceUpdate
|
|
30
36
|
|
|
31
37
|
console.log(example)
|
package/package.json
CHANGED
package/src/apis/AccountApi.ts
CHANGED
|
@@ -12,33 +12,42 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
import * as runtime from '../runtime.js';
|
|
17
|
-
import type {
|
|
18
|
-
Group,
|
|
19
|
-
GroupCreate,
|
|
20
|
-
GroupUpdate,
|
|
21
|
-
Identity,
|
|
22
|
-
Member,
|
|
23
|
-
MemberCreate,
|
|
24
|
-
MemberUpdate,
|
|
25
|
-
} from '../models/index.js';
|
|
26
16
|
import {
|
|
17
|
+
type Group,
|
|
27
18
|
GroupFromJSON,
|
|
28
19
|
GroupToJSON,
|
|
20
|
+
} from '../models/Group.js';
|
|
21
|
+
import {
|
|
22
|
+
type GroupCreate,
|
|
29
23
|
GroupCreateFromJSON,
|
|
30
24
|
GroupCreateToJSON,
|
|
25
|
+
} from '../models/GroupCreate.js';
|
|
26
|
+
import {
|
|
27
|
+
type GroupUpdate,
|
|
31
28
|
GroupUpdateFromJSON,
|
|
32
29
|
GroupUpdateToJSON,
|
|
30
|
+
} from '../models/GroupUpdate.js';
|
|
31
|
+
import {
|
|
32
|
+
type Identity,
|
|
33
33
|
IdentityFromJSON,
|
|
34
34
|
IdentityToJSON,
|
|
35
|
+
} from '../models/Identity.js';
|
|
36
|
+
import {
|
|
37
|
+
type Member,
|
|
35
38
|
MemberFromJSON,
|
|
36
39
|
MemberToJSON,
|
|
40
|
+
} from '../models/Member.js';
|
|
41
|
+
import {
|
|
42
|
+
type MemberCreate,
|
|
37
43
|
MemberCreateFromJSON,
|
|
38
44
|
MemberCreateToJSON,
|
|
45
|
+
} from '../models/MemberCreate.js';
|
|
46
|
+
import {
|
|
47
|
+
type MemberUpdate,
|
|
39
48
|
MemberUpdateFromJSON,
|
|
40
49
|
MemberUpdateToJSON,
|
|
41
|
-
} from '../models/
|
|
50
|
+
} from '../models/MemberUpdate.js';
|
|
42
51
|
|
|
43
52
|
export interface CreateGroupRequest {
|
|
44
53
|
groupCreate: GroupCreate;
|
|
@@ -12,48 +12,67 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
import * as runtime from '../runtime.js';
|
|
17
|
-
import type {
|
|
18
|
-
Assessment,
|
|
19
|
-
AssessmentForm,
|
|
20
|
-
AssessmentUpdate,
|
|
21
|
-
ClusterRequirementsRequest,
|
|
22
|
-
ClusterRequirementsResponse,
|
|
23
|
-
ClusterRequirementsStoredInput,
|
|
24
|
-
MigrationComplexityRequest,
|
|
25
|
-
MigrationComplexityResponse,
|
|
26
|
-
MigrationEstimationByComplexityResponse,
|
|
27
|
-
MigrationEstimationRequest,
|
|
28
|
-
MigrationEstimationResponse,
|
|
29
|
-
Status,
|
|
30
|
-
} from '../models/index.js';
|
|
31
16
|
import {
|
|
17
|
+
type Assessment,
|
|
32
18
|
AssessmentFromJSON,
|
|
33
19
|
AssessmentToJSON,
|
|
20
|
+
} from '../models/Assessment.js';
|
|
21
|
+
import {
|
|
22
|
+
type AssessmentForm,
|
|
34
23
|
AssessmentFormFromJSON,
|
|
35
24
|
AssessmentFormToJSON,
|
|
25
|
+
} from '../models/AssessmentForm.js';
|
|
26
|
+
import {
|
|
27
|
+
type AssessmentUpdate,
|
|
36
28
|
AssessmentUpdateFromJSON,
|
|
37
29
|
AssessmentUpdateToJSON,
|
|
30
|
+
} from '../models/AssessmentUpdate.js';
|
|
31
|
+
import {
|
|
32
|
+
type ClusterRequirementsRequest,
|
|
38
33
|
ClusterRequirementsRequestFromJSON,
|
|
39
34
|
ClusterRequirementsRequestToJSON,
|
|
35
|
+
} from '../models/ClusterRequirementsRequest.js';
|
|
36
|
+
import {
|
|
37
|
+
type ClusterRequirementsResponse,
|
|
40
38
|
ClusterRequirementsResponseFromJSON,
|
|
41
39
|
ClusterRequirementsResponseToJSON,
|
|
40
|
+
} from '../models/ClusterRequirementsResponse.js';
|
|
41
|
+
import {
|
|
42
|
+
type ClusterRequirementsStoredInput,
|
|
42
43
|
ClusterRequirementsStoredInputFromJSON,
|
|
43
44
|
ClusterRequirementsStoredInputToJSON,
|
|
45
|
+
} from '../models/ClusterRequirementsStoredInput.js';
|
|
46
|
+
import {
|
|
47
|
+
type MigrationComplexityRequest,
|
|
44
48
|
MigrationComplexityRequestFromJSON,
|
|
45
49
|
MigrationComplexityRequestToJSON,
|
|
50
|
+
} from '../models/MigrationComplexityRequest.js';
|
|
51
|
+
import {
|
|
52
|
+
type MigrationComplexityResponse,
|
|
46
53
|
MigrationComplexityResponseFromJSON,
|
|
47
54
|
MigrationComplexityResponseToJSON,
|
|
55
|
+
} from '../models/MigrationComplexityResponse.js';
|
|
56
|
+
import {
|
|
57
|
+
type MigrationEstimationByComplexityResponse,
|
|
48
58
|
MigrationEstimationByComplexityResponseFromJSON,
|
|
49
59
|
MigrationEstimationByComplexityResponseToJSON,
|
|
60
|
+
} from '../models/MigrationEstimationByComplexityResponse.js';
|
|
61
|
+
import {
|
|
62
|
+
type MigrationEstimationRequest,
|
|
50
63
|
MigrationEstimationRequestFromJSON,
|
|
51
64
|
MigrationEstimationRequestToJSON,
|
|
65
|
+
} from '../models/MigrationEstimationRequest.js';
|
|
66
|
+
import {
|
|
67
|
+
type MigrationEstimationResponse,
|
|
52
68
|
MigrationEstimationResponseFromJSON,
|
|
53
69
|
MigrationEstimationResponseToJSON,
|
|
70
|
+
} from '../models/MigrationEstimationResponse.js';
|
|
71
|
+
import {
|
|
72
|
+
type Status,
|
|
54
73
|
StatusFromJSON,
|
|
55
74
|
StatusToJSON,
|
|
56
|
-
} from '../models/
|
|
75
|
+
} from '../models/Status.js';
|
|
57
76
|
|
|
58
77
|
export interface CalculateAssessmentClusterRequirementsRequest {
|
|
59
78
|
id: string;
|
package/src/apis/HealthApi.ts
CHANGED
package/src/apis/ImageApi.ts
CHANGED
|
@@ -12,15 +12,12 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
import * as runtime from '../runtime.js';
|
|
17
|
-
import type {
|
|
18
|
-
PresignedUrl,
|
|
19
|
-
} from '../models/index.js';
|
|
20
16
|
import {
|
|
17
|
+
type PresignedUrl,
|
|
21
18
|
PresignedUrlFromJSON,
|
|
22
19
|
PresignedUrlToJSON,
|
|
23
|
-
} from '../models/
|
|
20
|
+
} from '../models/PresignedUrl.js';
|
|
24
21
|
|
|
25
22
|
export interface GetSourceDownloadURLRequest {
|
|
26
23
|
id: string;
|
package/src/apis/InfoApi.ts
CHANGED
|
@@ -12,15 +12,12 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
import * as runtime from '../runtime.js';
|
|
17
|
-
import type {
|
|
18
|
-
Info,
|
|
19
|
-
} from '../models/index.js';
|
|
20
16
|
import {
|
|
17
|
+
type Info,
|
|
21
18
|
InfoFromJSON,
|
|
22
19
|
InfoToJSON,
|
|
23
|
-
} from '../models/
|
|
20
|
+
} from '../models/Info.js';
|
|
24
21
|
|
|
25
22
|
/**
|
|
26
23
|
* InfoApi - interface
|
package/src/apis/JobApi.ts
CHANGED
|
@@ -12,15 +12,12 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
import * as runtime from '../runtime.js';
|
|
17
|
-
import type {
|
|
18
|
-
Job,
|
|
19
|
-
} from '../models/index.js';
|
|
20
16
|
import {
|
|
17
|
+
type Job,
|
|
21
18
|
JobFromJSON,
|
|
22
19
|
JobToJSON,
|
|
23
|
-
} from '../models/
|
|
20
|
+
} from '../models/Job.js';
|
|
24
21
|
|
|
25
22
|
export interface CancelJobRequest {
|
|
26
23
|
id: number;
|
package/src/apis/PartnerApi.ts
CHANGED
|
@@ -12,27 +12,32 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
import * as runtime from '../runtime.js';
|
|
17
|
-
import type {
|
|
18
|
-
Customer,
|
|
19
|
-
Group,
|
|
20
|
-
PartnerRequest,
|
|
21
|
-
PartnerRequestCreate,
|
|
22
|
-
PartnerRequestUpdate,
|
|
23
|
-
} from '../models/index.js';
|
|
24
16
|
import {
|
|
17
|
+
type Customer,
|
|
25
18
|
CustomerFromJSON,
|
|
26
19
|
CustomerToJSON,
|
|
20
|
+
} from '../models/Customer.js';
|
|
21
|
+
import {
|
|
22
|
+
type Group,
|
|
27
23
|
GroupFromJSON,
|
|
28
24
|
GroupToJSON,
|
|
25
|
+
} from '../models/Group.js';
|
|
26
|
+
import {
|
|
27
|
+
type PartnerRequest,
|
|
29
28
|
PartnerRequestFromJSON,
|
|
30
29
|
PartnerRequestToJSON,
|
|
30
|
+
} from '../models/PartnerRequest.js';
|
|
31
|
+
import {
|
|
32
|
+
type PartnerRequestCreate,
|
|
31
33
|
PartnerRequestCreateFromJSON,
|
|
32
34
|
PartnerRequestCreateToJSON,
|
|
35
|
+
} from '../models/PartnerRequestCreate.js';
|
|
36
|
+
import {
|
|
37
|
+
type PartnerRequestUpdate,
|
|
33
38
|
PartnerRequestUpdateFromJSON,
|
|
34
39
|
PartnerRequestUpdateToJSON,
|
|
35
|
-
} from '../models/
|
|
40
|
+
} from '../models/PartnerRequestUpdate.js';
|
|
36
41
|
|
|
37
42
|
export interface CancelPartnerRequestRequest {
|
|
38
43
|
id: string;
|
package/src/apis/SourceApi.ts
CHANGED
|
@@ -12,27 +12,32 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
import * as runtime from '../runtime.js';
|
|
17
|
-
import type {
|
|
18
|
-
Source,
|
|
19
|
-
SourceCreate,
|
|
20
|
-
SourceUpdate,
|
|
21
|
-
Status,
|
|
22
|
-
UpdateInventory,
|
|
23
|
-
} from '../models/index.js';
|
|
24
16
|
import {
|
|
17
|
+
type Source,
|
|
25
18
|
SourceFromJSON,
|
|
26
19
|
SourceToJSON,
|
|
20
|
+
} from '../models/Source.js';
|
|
21
|
+
import {
|
|
22
|
+
type SourceCreate,
|
|
27
23
|
SourceCreateFromJSON,
|
|
28
24
|
SourceCreateToJSON,
|
|
25
|
+
} from '../models/SourceCreate.js';
|
|
26
|
+
import {
|
|
27
|
+
type SourceUpdate,
|
|
29
28
|
SourceUpdateFromJSON,
|
|
30
29
|
SourceUpdateToJSON,
|
|
30
|
+
} from '../models/SourceUpdate.js';
|
|
31
|
+
import {
|
|
32
|
+
type Status,
|
|
31
33
|
StatusFromJSON,
|
|
32
34
|
StatusToJSON,
|
|
35
|
+
} from '../models/Status.js';
|
|
36
|
+
import {
|
|
37
|
+
type UpdateInventory,
|
|
33
38
|
UpdateInventoryFromJSON,
|
|
34
39
|
UpdateInventoryToJSON,
|
|
35
|
-
} from '../models/
|
|
40
|
+
} from '../models/UpdateInventory.js';
|
|
36
41
|
|
|
37
42
|
export interface CreateSourceRequest {
|
|
38
43
|
sourceCreate: SourceCreate;
|
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
|
+
|
|
@@ -71,14 +71,43 @@ export interface SourceCreate {
|
|
|
71
71
|
* @memberof SourceCreate
|
|
72
72
|
*/
|
|
73
73
|
network?: VmNetwork;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {VmNetwork}
|
|
77
|
+
* @memberof SourceCreate
|
|
78
|
+
*/
|
|
79
|
+
vmNetwork?: VmNetwork;
|
|
74
80
|
/**
|
|
75
81
|
*
|
|
76
82
|
* @type {Array<Label>}
|
|
77
83
|
* @memberof SourceCreate
|
|
78
84
|
*/
|
|
79
85
|
labels?: Array<Label>;
|
|
86
|
+
/**
|
|
87
|
+
* Set to false to clear all proxy fields. When true or omitted, proxy fields are preserved or updated normally.
|
|
88
|
+
* @type {boolean}
|
|
89
|
+
* @memberof SourceCreate
|
|
90
|
+
*/
|
|
91
|
+
enableProxy?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Set to dhcp to clear all network fields. Set to static when providing vmNetwork/network data. When omitted, network fields are preserved or updated normally.
|
|
94
|
+
* @type {SourceCreateNetworkConfigTypeEnum}
|
|
95
|
+
* @memberof SourceCreate
|
|
96
|
+
*/
|
|
97
|
+
networkConfigType?: SourceCreateNetworkConfigTypeEnum;
|
|
80
98
|
}
|
|
81
99
|
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @export
|
|
103
|
+
*/
|
|
104
|
+
export const SourceCreateNetworkConfigTypeEnum = {
|
|
105
|
+
Dhcp: 'dhcp',
|
|
106
|
+
Static: 'static'
|
|
107
|
+
} as const;
|
|
108
|
+
export type SourceCreateNetworkConfigTypeEnum = typeof SourceCreateNetworkConfigTypeEnum[keyof typeof SourceCreateNetworkConfigTypeEnum];
|
|
109
|
+
|
|
110
|
+
|
|
82
111
|
/**
|
|
83
112
|
* Check if a given object implements the SourceCreate interface.
|
|
84
113
|
*/
|
|
@@ -102,7 +131,10 @@ export function SourceCreateFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
102
131
|
'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
|
|
103
132
|
'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
|
|
104
133
|
'network': json['network'] == null ? undefined : VmNetworkFromJSON(json['network']),
|
|
134
|
+
'vmNetwork': json['vmNetwork'] == null ? undefined : VmNetworkFromJSON(json['vmNetwork']),
|
|
105
135
|
'labels': json['labels'] == null ? undefined : ((json['labels'] as Array<any>).map(LabelFromJSON)),
|
|
136
|
+
'enableProxy': json['enableProxy'] == null ? undefined : json['enableProxy'],
|
|
137
|
+
'networkConfigType': json['networkConfigType'] == null ? undefined : json['networkConfigType'],
|
|
106
138
|
};
|
|
107
139
|
}
|
|
108
140
|
|
|
@@ -122,7 +154,10 @@ export function SourceCreateToJSONTyped(value?: SourceCreate | null, ignoreDiscr
|
|
|
122
154
|
'proxy': AgentProxyToJSON(value['proxy']),
|
|
123
155
|
'certificateChain': value['certificateChain'],
|
|
124
156
|
'network': VmNetworkToJSON(value['network']),
|
|
157
|
+
'vmNetwork': VmNetworkToJSON(value['vmNetwork']),
|
|
125
158
|
'labels': value['labels'] == null ? undefined : ((value['labels'] as Array<any>).map(LabelToJSON)),
|
|
159
|
+
'enableProxy': value['enableProxy'],
|
|
160
|
+
'networkConfigType': value['networkConfigType'],
|
|
126
161
|
};
|
|
127
162
|
}
|
|
128
163
|
|