@openshift-migration-advisor/planner-sdk 0.13.1-5b03e25a9bc5 → 0.13.2-a2a6e24132b6
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/README.md +2 -2
- package/dist/esm/models/Inventory.d.ts +6 -0
- package/dist/esm/models/Inventory.js +3 -1
- package/dist/esm/models/JobStatus.d.ts +3 -3
- package/dist/esm/models/JobStatus.js +3 -3
- package/dist/models/Inventory.d.ts +6 -0
- package/dist/models/Inventory.js +3 -1
- package/dist/models/JobStatus.d.ts +3 -3
- package/dist/models/JobStatus.js +3 -3
- package/docs/Inventory.md +2 -0
- package/docs/JobStatus.md +1 -1
- package/package.json +1 -1
- package/src/models/Inventory.ts +9 -1
- package/src/models/JobStatus.ts +3 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.13.
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.13.2-a2a6e24132b6
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -181,7 +181,7 @@ and is automatically generated by the
|
|
|
181
181
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
182
182
|
|
|
183
183
|
- API version: `v1alpha1`
|
|
184
|
-
- Package version: `0.13.
|
|
184
|
+
- Package version: `0.13.2-a2a6e24132b6`
|
|
185
185
|
- Generator version: `7.23.0-SNAPSHOT`
|
|
186
186
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
187
187
|
|
|
@@ -22,6 +22,12 @@ export interface Inventory {
|
|
|
22
22
|
* @memberof Inventory
|
|
23
23
|
*/
|
|
24
24
|
vcenterId: string;
|
|
25
|
+
/**
|
|
26
|
+
* Version of the vCenter api. For example "8.0.3.0"
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Inventory
|
|
29
|
+
*/
|
|
30
|
+
vcenterVersion?: string;
|
|
25
31
|
/**
|
|
26
32
|
* Map of cluster names to their inventory data
|
|
27
33
|
* @type {{ [key: string]: InventoryData; }}
|
|
@@ -17,7 +17,7 @@ import { InventoryDataFromJSON, InventoryDataToJSON, } from './InventoryData.js'
|
|
|
17
17
|
* Check if a given object implements the Inventory interface.
|
|
18
18
|
*/
|
|
19
19
|
export function instanceOfInventory(value) {
|
|
20
|
-
if (!('vcenterId' in value) || value['vcenterId'] === undefined)
|
|
20
|
+
if ((!('vcenterId' in value) && !('vcenter_id' in value)) || (value['vcenterId'] === undefined && value['vcenter_id'] === undefined))
|
|
21
21
|
return false;
|
|
22
22
|
if (!('clusters' in value) || value['clusters'] === undefined)
|
|
23
23
|
return false;
|
|
@@ -32,6 +32,7 @@ export function InventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
}
|
|
33
33
|
return {
|
|
34
34
|
'vcenterId': json['vcenter_id'],
|
|
35
|
+
'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
35
36
|
'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
|
|
36
37
|
'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
|
|
37
38
|
};
|
|
@@ -45,6 +46,7 @@ export function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
45
46
|
}
|
|
46
47
|
return {
|
|
47
48
|
'vcenter_id': value['vcenterId'],
|
|
49
|
+
'vcenter_version': value['vcenterVersion'],
|
|
48
50
|
'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
|
|
49
51
|
'vcenter': InventoryDataToJSON(value['vcenter']),
|
|
50
52
|
};
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
/**
|
|
13
13
|
* Job status:
|
|
14
14
|
* * `pending` - Job is queued
|
|
15
|
-
* * `
|
|
16
|
-
* * `
|
|
15
|
+
* * `validating` - Ingesting and validating RVTools file
|
|
16
|
+
* * `parsing` - Building inventory from validated data
|
|
17
17
|
* * `completed` - Assessment created successfully
|
|
18
18
|
* * `failed` - Job failed with error
|
|
19
19
|
* * `cancelled` - Job was cancelled
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
*/
|
|
23
23
|
export declare const JobStatus: {
|
|
24
24
|
readonly Pending: "pending";
|
|
25
|
-
readonly Parsing: "parsing";
|
|
26
25
|
readonly Validating: "validating";
|
|
26
|
+
readonly Parsing: "parsing";
|
|
27
27
|
readonly Completed: "completed";
|
|
28
28
|
readonly Failed: "failed";
|
|
29
29
|
readonly Cancelled: "cancelled";
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
/**
|
|
15
15
|
* Job status:
|
|
16
16
|
* * `pending` - Job is queued
|
|
17
|
-
* * `
|
|
18
|
-
* * `
|
|
17
|
+
* * `validating` - Ingesting and validating RVTools file
|
|
18
|
+
* * `parsing` - Building inventory from validated data
|
|
19
19
|
* * `completed` - Assessment created successfully
|
|
20
20
|
* * `failed` - Job failed with error
|
|
21
21
|
* * `cancelled` - Job was cancelled
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
*/
|
|
25
25
|
export const JobStatus = {
|
|
26
26
|
Pending: 'pending',
|
|
27
|
-
Parsing: 'parsing',
|
|
28
27
|
Validating: 'validating',
|
|
28
|
+
Parsing: 'parsing',
|
|
29
29
|
Completed: 'completed',
|
|
30
30
|
Failed: 'failed',
|
|
31
31
|
Cancelled: 'cancelled'
|
|
@@ -22,6 +22,12 @@ export interface Inventory {
|
|
|
22
22
|
* @memberof Inventory
|
|
23
23
|
*/
|
|
24
24
|
vcenterId: string;
|
|
25
|
+
/**
|
|
26
|
+
* Version of the vCenter api. For example "8.0.3.0"
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Inventory
|
|
29
|
+
*/
|
|
30
|
+
vcenterVersion?: string;
|
|
25
31
|
/**
|
|
26
32
|
* Map of cluster names to their inventory data
|
|
27
33
|
* @type {{ [key: string]: InventoryData; }}
|
package/dist/models/Inventory.js
CHANGED
|
@@ -24,7 +24,7 @@ const InventoryData_js_1 = require("./InventoryData.js");
|
|
|
24
24
|
* Check if a given object implements the Inventory interface.
|
|
25
25
|
*/
|
|
26
26
|
function instanceOfInventory(value) {
|
|
27
|
-
if (!('vcenterId' in value) || value['vcenterId'] === undefined)
|
|
27
|
+
if ((!('vcenterId' in value) && !('vcenter_id' in value)) || (value['vcenterId'] === undefined && value['vcenter_id'] === undefined))
|
|
28
28
|
return false;
|
|
29
29
|
if (!('clusters' in value) || value['clusters'] === undefined)
|
|
30
30
|
return false;
|
|
@@ -39,6 +39,7 @@ function InventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
}
|
|
40
40
|
return {
|
|
41
41
|
'vcenterId': json['vcenter_id'],
|
|
42
|
+
'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
42
43
|
'clusters': ((0, runtime_js_1.mapValues)(json['clusters'], InventoryData_js_1.InventoryDataFromJSON)),
|
|
43
44
|
'vcenter': json['vcenter'] == null ? undefined : (0, InventoryData_js_1.InventoryDataFromJSON)(json['vcenter']),
|
|
44
45
|
};
|
|
@@ -52,6 +53,7 @@ function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
52
53
|
}
|
|
53
54
|
return {
|
|
54
55
|
'vcenter_id': value['vcenterId'],
|
|
56
|
+
'vcenter_version': value['vcenterVersion'],
|
|
55
57
|
'clusters': ((0, runtime_js_1.mapValues)(value['clusters'], InventoryData_js_1.InventoryDataToJSON)),
|
|
56
58
|
'vcenter': (0, InventoryData_js_1.InventoryDataToJSON)(value['vcenter']),
|
|
57
59
|
};
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
/**
|
|
13
13
|
* Job status:
|
|
14
14
|
* * `pending` - Job is queued
|
|
15
|
-
* * `
|
|
16
|
-
* * `
|
|
15
|
+
* * `validating` - Ingesting and validating RVTools file
|
|
16
|
+
* * `parsing` - Building inventory from validated data
|
|
17
17
|
* * `completed` - Assessment created successfully
|
|
18
18
|
* * `failed` - Job failed with error
|
|
19
19
|
* * `cancelled` - Job was cancelled
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
*/
|
|
23
23
|
export declare const JobStatus: {
|
|
24
24
|
readonly Pending: "pending";
|
|
25
|
-
readonly Parsing: "parsing";
|
|
26
25
|
readonly Validating: "validating";
|
|
26
|
+
readonly Parsing: "parsing";
|
|
27
27
|
readonly Completed: "completed";
|
|
28
28
|
readonly Failed: "failed";
|
|
29
29
|
readonly Cancelled: "cancelled";
|
package/dist/models/JobStatus.js
CHANGED
|
@@ -22,8 +22,8 @@ exports.JobStatusToJSONTyped = JobStatusToJSONTyped;
|
|
|
22
22
|
/**
|
|
23
23
|
* Job status:
|
|
24
24
|
* * `pending` - Job is queued
|
|
25
|
-
* * `
|
|
26
|
-
* * `
|
|
25
|
+
* * `validating` - Ingesting and validating RVTools file
|
|
26
|
+
* * `parsing` - Building inventory from validated data
|
|
27
27
|
* * `completed` - Assessment created successfully
|
|
28
28
|
* * `failed` - Job failed with error
|
|
29
29
|
* * `cancelled` - Job was cancelled
|
|
@@ -32,8 +32,8 @@ exports.JobStatusToJSONTyped = JobStatusToJSONTyped;
|
|
|
32
32
|
*/
|
|
33
33
|
exports.JobStatus = {
|
|
34
34
|
Pending: 'pending',
|
|
35
|
-
Parsing: 'parsing',
|
|
36
35
|
Validating: 'validating',
|
|
36
|
+
Parsing: 'parsing',
|
|
37
37
|
Completed: 'completed',
|
|
38
38
|
Failed: 'failed',
|
|
39
39
|
Cancelled: 'cancelled'
|
package/docs/Inventory.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`vcenterId` | string
|
|
10
|
+
`vcenterVersion` | string
|
|
10
11
|
`clusters` | [{ [key: string]: InventoryData; }](InventoryData.md)
|
|
11
12
|
`vcenter` | [InventoryData](InventoryData.md)
|
|
12
13
|
|
|
@@ -18,6 +19,7 @@ import type { Inventory } from '@openshift-migration-advisor/planner-sdk'
|
|
|
18
19
|
// TODO: Update the object below with actual values
|
|
19
20
|
const example = {
|
|
20
21
|
"vcenterId": null,
|
|
22
|
+
"vcenterVersion": null,
|
|
21
23
|
"clusters": null,
|
|
22
24
|
"vcenter": null,
|
|
23
25
|
} satisfies Inventory
|
package/docs/JobStatus.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
# JobStatus
|
|
3
3
|
|
|
4
|
-
Job status: * `pending` - Job is queued * `
|
|
4
|
+
Job status: * `pending` - Job is queued * `validating` - Ingesting and validating RVTools file * `parsing` - Building inventory from validated data * `completed` - Assessment created successfully * `failed` - Job failed with error * `cancelled` - Job was cancelled
|
|
5
5
|
|
|
6
6
|
## Properties
|
|
7
7
|
|
package/package.json
CHANGED
package/src/models/Inventory.ts
CHANGED
|
@@ -33,6 +33,12 @@ export interface Inventory {
|
|
|
33
33
|
* @memberof Inventory
|
|
34
34
|
*/
|
|
35
35
|
vcenterId: string;
|
|
36
|
+
/**
|
|
37
|
+
* Version of the vCenter api. For example "8.0.3.0"
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Inventory
|
|
40
|
+
*/
|
|
41
|
+
vcenterVersion?: string;
|
|
36
42
|
/**
|
|
37
43
|
* Map of cluster names to their inventory data
|
|
38
44
|
* @type {{ [key: string]: InventoryData; }}
|
|
@@ -51,7 +57,7 @@ export interface Inventory {
|
|
|
51
57
|
* Check if a given object implements the Inventory interface.
|
|
52
58
|
*/
|
|
53
59
|
export function instanceOfInventory(value: object): value is Inventory {
|
|
54
|
-
if (!('vcenterId' in value) || value['vcenterId'] === undefined) return false;
|
|
60
|
+
if ((!('vcenterId' in value) && !('vcenter_id' in value)) || (value['vcenterId'] === undefined && value['vcenter_id'] === undefined)) return false;
|
|
55
61
|
if (!('clusters' in value) || value['clusters'] === undefined) return false;
|
|
56
62
|
return true;
|
|
57
63
|
}
|
|
@@ -67,6 +73,7 @@ export function InventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
67
73
|
return {
|
|
68
74
|
|
|
69
75
|
'vcenterId': json['vcenter_id'],
|
|
76
|
+
'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
70
77
|
'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
|
|
71
78
|
'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
|
|
72
79
|
};
|
|
@@ -84,6 +91,7 @@ export function InventoryToJSONTyped(value?: Inventory | null, ignoreDiscriminat
|
|
|
84
91
|
return {
|
|
85
92
|
|
|
86
93
|
'vcenter_id': value['vcenterId'],
|
|
94
|
+
'vcenter_version': value['vcenterVersion'],
|
|
87
95
|
'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
|
|
88
96
|
'vcenter': InventoryDataToJSON(value['vcenter']),
|
|
89
97
|
};
|
package/src/models/JobStatus.ts
CHANGED
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
/**
|
|
17
17
|
* Job status:
|
|
18
18
|
* * `pending` - Job is queued
|
|
19
|
-
* * `
|
|
20
|
-
* * `
|
|
19
|
+
* * `validating` - Ingesting and validating RVTools file
|
|
20
|
+
* * `parsing` - Building inventory from validated data
|
|
21
21
|
* * `completed` - Assessment created successfully
|
|
22
22
|
* * `failed` - Job failed with error
|
|
23
23
|
* * `cancelled` - Job was cancelled
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
*/
|
|
27
27
|
export const JobStatus = {
|
|
28
28
|
Pending: 'pending',
|
|
29
|
-
Parsing: 'parsing',
|
|
30
29
|
Validating: 'validating',
|
|
30
|
+
Parsing: 'parsing',
|
|
31
31
|
Completed: 'completed',
|
|
32
32
|
Failed: 'failed',
|
|
33
33
|
Cancelled: 'cancelled'
|