@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
|
@@ -54,7 +54,33 @@ export interface SourceUpdate {
|
|
|
54
54
|
* @memberof SourceUpdate
|
|
55
55
|
*/
|
|
56
56
|
network?: VmNetwork;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {VmNetwork}
|
|
60
|
+
* @memberof SourceUpdate
|
|
61
|
+
*/
|
|
62
|
+
vmNetwork?: VmNetwork;
|
|
63
|
+
/**
|
|
64
|
+
* Set to false to clear all proxy fields. When true or omitted, proxy fields are preserved or updated normally.
|
|
65
|
+
* @type {boolean}
|
|
66
|
+
* @memberof SourceUpdate
|
|
67
|
+
*/
|
|
68
|
+
enableProxy?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* 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.
|
|
71
|
+
* @type {SourceUpdateNetworkConfigTypeEnum}
|
|
72
|
+
* @memberof SourceUpdate
|
|
73
|
+
*/
|
|
74
|
+
networkConfigType?: SourceUpdateNetworkConfigTypeEnum;
|
|
57
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* @export
|
|
78
|
+
*/
|
|
79
|
+
export declare const SourceUpdateNetworkConfigTypeEnum: {
|
|
80
|
+
readonly Dhcp: "dhcp";
|
|
81
|
+
readonly Static: "static";
|
|
82
|
+
};
|
|
83
|
+
export type SourceUpdateNetworkConfigTypeEnum = typeof SourceUpdateNetworkConfigTypeEnum[keyof typeof SourceUpdateNetworkConfigTypeEnum];
|
|
58
84
|
/**
|
|
59
85
|
* Check if a given object implements the SourceUpdate interface.
|
|
60
86
|
*/
|
|
@@ -14,6 +14,13 @@
|
|
|
14
14
|
import { VmNetworkFromJSON, VmNetworkToJSON, } from './VmNetwork.js';
|
|
15
15
|
import { AgentProxyFromJSON, AgentProxyToJSON, } from './AgentProxy.js';
|
|
16
16
|
import { LabelFromJSON, LabelToJSON, } from './Label.js';
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const SourceUpdateNetworkConfigTypeEnum = {
|
|
21
|
+
Dhcp: 'dhcp',
|
|
22
|
+
Static: 'static'
|
|
23
|
+
};
|
|
17
24
|
/**
|
|
18
25
|
* Check if a given object implements the SourceUpdate interface.
|
|
19
26
|
*/
|
|
@@ -34,6 +41,9 @@ export function SourceUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
41
|
'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
|
|
35
42
|
'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
|
|
36
43
|
'network': json['network'] == null ? undefined : VmNetworkFromJSON(json['network']),
|
|
44
|
+
'vmNetwork': json['vmNetwork'] == null ? undefined : VmNetworkFromJSON(json['vmNetwork']),
|
|
45
|
+
'enableProxy': json['enableProxy'] == null ? undefined : json['enableProxy'],
|
|
46
|
+
'networkConfigType': json['networkConfigType'] == null ? undefined : json['networkConfigType'],
|
|
37
47
|
};
|
|
38
48
|
}
|
|
39
49
|
export function SourceUpdateToJSON(json) {
|
|
@@ -50,5 +60,8 @@ export function SourceUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
60
|
'certificateChain': value['certificateChain'],
|
|
51
61
|
'proxy': AgentProxyToJSON(value['proxy']),
|
|
52
62
|
'network': VmNetworkToJSON(value['network']),
|
|
63
|
+
'vmNetwork': VmNetworkToJSON(value['vmNetwork']),
|
|
64
|
+
'enableProxy': value['enableProxy'],
|
|
65
|
+
'networkConfigType': value['networkConfigType'],
|
|
53
66
|
};
|
|
54
67
|
}
|
|
@@ -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
|
+
}
|
|
@@ -48,13 +48,39 @@ export interface SourceCreate {
|
|
|
48
48
|
* @memberof SourceCreate
|
|
49
49
|
*/
|
|
50
50
|
network?: VmNetwork;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {VmNetwork}
|
|
54
|
+
* @memberof SourceCreate
|
|
55
|
+
*/
|
|
56
|
+
vmNetwork?: VmNetwork;
|
|
51
57
|
/**
|
|
52
58
|
*
|
|
53
59
|
* @type {Array<Label>}
|
|
54
60
|
* @memberof SourceCreate
|
|
55
61
|
*/
|
|
56
62
|
labels?: Array<Label>;
|
|
63
|
+
/**
|
|
64
|
+
* Set to false to clear all proxy fields. When true or omitted, proxy fields are preserved or updated normally.
|
|
65
|
+
* @type {boolean}
|
|
66
|
+
* @memberof SourceCreate
|
|
67
|
+
*/
|
|
68
|
+
enableProxy?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* 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.
|
|
71
|
+
* @type {SourceCreateNetworkConfigTypeEnum}
|
|
72
|
+
* @memberof SourceCreate
|
|
73
|
+
*/
|
|
74
|
+
networkConfigType?: SourceCreateNetworkConfigTypeEnum;
|
|
57
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* @export
|
|
78
|
+
*/
|
|
79
|
+
export declare const SourceCreateNetworkConfigTypeEnum: {
|
|
80
|
+
readonly Dhcp: "dhcp";
|
|
81
|
+
readonly Static: "static";
|
|
82
|
+
};
|
|
83
|
+
export type SourceCreateNetworkConfigTypeEnum = typeof SourceCreateNetworkConfigTypeEnum[keyof typeof SourceCreateNetworkConfigTypeEnum];
|
|
58
84
|
/**
|
|
59
85
|
* Check if a given object implements the SourceCreate interface.
|
|
60
86
|
*/
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SourceCreateNetworkConfigTypeEnum = void 0;
|
|
16
17
|
exports.instanceOfSourceCreate = instanceOfSourceCreate;
|
|
17
18
|
exports.SourceCreateFromJSON = SourceCreateFromJSON;
|
|
18
19
|
exports.SourceCreateFromJSONTyped = SourceCreateFromJSONTyped;
|
|
@@ -21,6 +22,13 @@ exports.SourceCreateToJSONTyped = SourceCreateToJSONTyped;
|
|
|
21
22
|
const VmNetwork_js_1 = require("./VmNetwork.js");
|
|
22
23
|
const AgentProxy_js_1 = require("./AgentProxy.js");
|
|
23
24
|
const Label_js_1 = require("./Label.js");
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
exports.SourceCreateNetworkConfigTypeEnum = {
|
|
29
|
+
Dhcp: 'dhcp',
|
|
30
|
+
Static: 'static'
|
|
31
|
+
};
|
|
24
32
|
/**
|
|
25
33
|
* Check if a given object implements the SourceCreate interface.
|
|
26
34
|
*/
|
|
@@ -42,7 +50,10 @@ function SourceCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
50
|
'proxy': json['proxy'] == null ? undefined : (0, AgentProxy_js_1.AgentProxyFromJSON)(json['proxy']),
|
|
43
51
|
'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
|
|
44
52
|
'network': json['network'] == null ? undefined : (0, VmNetwork_js_1.VmNetworkFromJSON)(json['network']),
|
|
53
|
+
'vmNetwork': json['vmNetwork'] == null ? undefined : (0, VmNetwork_js_1.VmNetworkFromJSON)(json['vmNetwork']),
|
|
45
54
|
'labels': json['labels'] == null ? undefined : (json['labels'].map(Label_js_1.LabelFromJSON)),
|
|
55
|
+
'enableProxy': json['enableProxy'] == null ? undefined : json['enableProxy'],
|
|
56
|
+
'networkConfigType': json['networkConfigType'] == null ? undefined : json['networkConfigType'],
|
|
46
57
|
};
|
|
47
58
|
}
|
|
48
59
|
function SourceCreateToJSON(json) {
|
|
@@ -58,6 +69,9 @@ function SourceCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
69
|
'proxy': (0, AgentProxy_js_1.AgentProxyToJSON)(value['proxy']),
|
|
59
70
|
'certificateChain': value['certificateChain'],
|
|
60
71
|
'network': (0, VmNetwork_js_1.VmNetworkToJSON)(value['network']),
|
|
72
|
+
'vmNetwork': (0, VmNetwork_js_1.VmNetworkToJSON)(value['vmNetwork']),
|
|
61
73
|
'labels': value['labels'] == null ? undefined : (value['labels'].map(Label_js_1.LabelToJSON)),
|
|
74
|
+
'enableProxy': value['enableProxy'],
|
|
75
|
+
'networkConfigType': value['networkConfigType'],
|
|
62
76
|
};
|
|
63
77
|
}
|
|
@@ -54,7 +54,33 @@ export interface SourceUpdate {
|
|
|
54
54
|
* @memberof SourceUpdate
|
|
55
55
|
*/
|
|
56
56
|
network?: VmNetwork;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {VmNetwork}
|
|
60
|
+
* @memberof SourceUpdate
|
|
61
|
+
*/
|
|
62
|
+
vmNetwork?: VmNetwork;
|
|
63
|
+
/**
|
|
64
|
+
* Set to false to clear all proxy fields. When true or omitted, proxy fields are preserved or updated normally.
|
|
65
|
+
* @type {boolean}
|
|
66
|
+
* @memberof SourceUpdate
|
|
67
|
+
*/
|
|
68
|
+
enableProxy?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* 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.
|
|
71
|
+
* @type {SourceUpdateNetworkConfigTypeEnum}
|
|
72
|
+
* @memberof SourceUpdate
|
|
73
|
+
*/
|
|
74
|
+
networkConfigType?: SourceUpdateNetworkConfigTypeEnum;
|
|
57
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* @export
|
|
78
|
+
*/
|
|
79
|
+
export declare const SourceUpdateNetworkConfigTypeEnum: {
|
|
80
|
+
readonly Dhcp: "dhcp";
|
|
81
|
+
readonly Static: "static";
|
|
82
|
+
};
|
|
83
|
+
export type SourceUpdateNetworkConfigTypeEnum = typeof SourceUpdateNetworkConfigTypeEnum[keyof typeof SourceUpdateNetworkConfigTypeEnum];
|
|
58
84
|
/**
|
|
59
85
|
* Check if a given object implements the SourceUpdate interface.
|
|
60
86
|
*/
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SourceUpdateNetworkConfigTypeEnum = void 0;
|
|
16
17
|
exports.instanceOfSourceUpdate = instanceOfSourceUpdate;
|
|
17
18
|
exports.SourceUpdateFromJSON = SourceUpdateFromJSON;
|
|
18
19
|
exports.SourceUpdateFromJSONTyped = SourceUpdateFromJSONTyped;
|
|
@@ -21,6 +22,13 @@ exports.SourceUpdateToJSONTyped = SourceUpdateToJSONTyped;
|
|
|
21
22
|
const VmNetwork_js_1 = require("./VmNetwork.js");
|
|
22
23
|
const AgentProxy_js_1 = require("./AgentProxy.js");
|
|
23
24
|
const Label_js_1 = require("./Label.js");
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
exports.SourceUpdateNetworkConfigTypeEnum = {
|
|
29
|
+
Dhcp: 'dhcp',
|
|
30
|
+
Static: 'static'
|
|
31
|
+
};
|
|
24
32
|
/**
|
|
25
33
|
* Check if a given object implements the SourceUpdate interface.
|
|
26
34
|
*/
|
|
@@ -41,6 +49,9 @@ function SourceUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
49
|
'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
|
|
42
50
|
'proxy': json['proxy'] == null ? undefined : (0, AgentProxy_js_1.AgentProxyFromJSON)(json['proxy']),
|
|
43
51
|
'network': json['network'] == null ? undefined : (0, VmNetwork_js_1.VmNetworkFromJSON)(json['network']),
|
|
52
|
+
'vmNetwork': json['vmNetwork'] == null ? undefined : (0, VmNetwork_js_1.VmNetworkFromJSON)(json['vmNetwork']),
|
|
53
|
+
'enableProxy': json['enableProxy'] == null ? undefined : json['enableProxy'],
|
|
54
|
+
'networkConfigType': json['networkConfigType'] == null ? undefined : json['networkConfigType'],
|
|
44
55
|
};
|
|
45
56
|
}
|
|
46
57
|
function SourceUpdateToJSON(json) {
|
|
@@ -57,5 +68,8 @@ function SourceUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
57
68
|
'certificateChain': value['certificateChain'],
|
|
58
69
|
'proxy': (0, AgentProxy_js_1.AgentProxyToJSON)(value['proxy']),
|
|
59
70
|
'network': (0, VmNetwork_js_1.VmNetworkToJSON)(value['network']),
|
|
71
|
+
'vmNetwork': (0, VmNetwork_js_1.VmNetworkToJSON)(value['vmNetwork']),
|
|
72
|
+
'enableProxy': value['enableProxy'],
|
|
73
|
+
'networkConfigType': value['networkConfigType'],
|
|
60
74
|
};
|
|
61
75
|
}
|
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
|
+
|