@openshift-migration-advisor/planner-sdk 0.13.1 → 0.13.2-b3e704dc90b2
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.js +1 -1
- package/dist/esm/models/JobStatus.d.ts +3 -3
- package/dist/esm/models/JobStatus.js +3 -3
- package/dist/esm/models/SharingSubject.d.ts +6 -0
- package/dist/esm/models/SharingSubject.js +4 -0
- package/dist/models/Inventory.js +1 -1
- package/dist/models/JobStatus.d.ts +3 -3
- package/dist/models/JobStatus.js +3 -3
- package/dist/models/SharingSubject.d.ts +6 -0
- package/dist/models/SharingSubject.js +4 -0
- package/docs/JobStatus.md +1 -1
- package/docs/SharingSubject.md +2 -0
- package/package.json +1 -1
- package/src/models/Inventory.ts +1 -1
- package/src/models/JobStatus.ts +3 -3
- package/src/models/SharingSubject.ts +9 -0
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-b3e704dc90b2
|
|
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-b3e704dc90b2`
|
|
185
185
|
- Generator version: `7.23.0-SNAPSHOT`
|
|
186
186
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
187
187
|
|
|
@@ -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;
|
|
@@ -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'
|
|
@@ -27,6 +27,12 @@ export interface SharingSubject {
|
|
|
27
27
|
* @memberof SharingSubject
|
|
28
28
|
*/
|
|
29
29
|
id: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SharingSubject
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
30
36
|
}
|
|
31
37
|
/**
|
|
32
38
|
* Check if a given object implements the SharingSubject interface.
|
|
@@ -19,6 +19,8 @@ export function instanceOfSharingSubject(value) {
|
|
|
19
19
|
return false;
|
|
20
20
|
if (!('id' in value) || value['id'] === undefined)
|
|
21
21
|
return false;
|
|
22
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
23
|
+
return false;
|
|
22
24
|
return true;
|
|
23
25
|
}
|
|
24
26
|
export function SharingSubjectFromJSON(json) {
|
|
@@ -31,6 +33,7 @@ export function SharingSubjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
33
|
return {
|
|
32
34
|
'type': json['type'],
|
|
33
35
|
'id': json['id'],
|
|
36
|
+
'name': json['name'],
|
|
34
37
|
};
|
|
35
38
|
}
|
|
36
39
|
export function SharingSubjectToJSON(json) {
|
|
@@ -43,5 +46,6 @@ export function SharingSubjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
43
46
|
return {
|
|
44
47
|
'type': value['type'],
|
|
45
48
|
'id': value['id'],
|
|
49
|
+
'name': value['name'],
|
|
46
50
|
};
|
|
47
51
|
}
|
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;
|
|
@@ -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'
|
|
@@ -27,6 +27,12 @@ export interface SharingSubject {
|
|
|
27
27
|
* @memberof SharingSubject
|
|
28
28
|
*/
|
|
29
29
|
id: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SharingSubject
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
30
36
|
}
|
|
31
37
|
/**
|
|
32
38
|
* Check if a given object implements the SharingSubject interface.
|
|
@@ -26,6 +26,8 @@ function instanceOfSharingSubject(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('id' in value) || value['id'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
return true;
|
|
30
32
|
}
|
|
31
33
|
function SharingSubjectFromJSON(json) {
|
|
@@ -38,6 +40,7 @@ function SharingSubjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
40
|
return {
|
|
39
41
|
'type': json['type'],
|
|
40
42
|
'id': json['id'],
|
|
43
|
+
'name': json['name'],
|
|
41
44
|
};
|
|
42
45
|
}
|
|
43
46
|
function SharingSubjectToJSON(json) {
|
|
@@ -50,5 +53,6 @@ function SharingSubjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
53
|
return {
|
|
51
54
|
'type': value['type'],
|
|
52
55
|
'id': value['id'],
|
|
56
|
+
'name': value['name'],
|
|
53
57
|
};
|
|
54
58
|
}
|
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/docs/SharingSubject.md
CHANGED
|
@@ -8,6 +8,7 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`type` | string
|
|
10
10
|
`id` | string
|
|
11
|
+
`name` | string
|
|
11
12
|
|
|
12
13
|
## Example
|
|
13
14
|
|
|
@@ -18,6 +19,7 @@ import type { SharingSubject } from '@openshift-migration-advisor/planner-sdk'
|
|
|
18
19
|
const example = {
|
|
19
20
|
"type": null,
|
|
20
21
|
"id": null,
|
|
22
|
+
"name": null,
|
|
21
23
|
} satisfies SharingSubject
|
|
22
24
|
|
|
23
25
|
console.log(example)
|
package/package.json
CHANGED
package/src/models/Inventory.ts
CHANGED
|
@@ -51,7 +51,7 @@ export interface Inventory {
|
|
|
51
51
|
* Check if a given object implements the Inventory interface.
|
|
52
52
|
*/
|
|
53
53
|
export function instanceOfInventory(value: object): value is Inventory {
|
|
54
|
-
if (!('vcenterId' in value) || value['vcenterId'] === undefined) return false;
|
|
54
|
+
if ((!('vcenterId' in value) && !('vcenter_id' in value)) || (value['vcenterId'] === undefined && value['vcenter_id'] === undefined)) return false;
|
|
55
55
|
if (!('clusters' in value) || value['clusters'] === undefined) return false;
|
|
56
56
|
return true;
|
|
57
57
|
}
|
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'
|
|
@@ -31,6 +31,12 @@ export interface SharingSubject {
|
|
|
31
31
|
* @memberof SharingSubject
|
|
32
32
|
*/
|
|
33
33
|
id: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SharingSubject
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
/**
|
|
@@ -39,6 +45,7 @@ export interface SharingSubject {
|
|
|
39
45
|
export function instanceOfSharingSubject(value: object): value is SharingSubject {
|
|
40
46
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
41
47
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
48
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
42
49
|
return true;
|
|
43
50
|
}
|
|
44
51
|
|
|
@@ -54,6 +61,7 @@ export function SharingSubjectFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
54
61
|
|
|
55
62
|
'type': json['type'],
|
|
56
63
|
'id': json['id'],
|
|
64
|
+
'name': json['name'],
|
|
57
65
|
};
|
|
58
66
|
}
|
|
59
67
|
|
|
@@ -70,6 +78,7 @@ export function SharingSubjectToJSONTyped(value?: SharingSubject | null, ignoreD
|
|
|
70
78
|
|
|
71
79
|
'type': value['type'],
|
|
72
80
|
'id': value['id'],
|
|
81
|
+
'name': value['name'],
|
|
73
82
|
};
|
|
74
83
|
}
|
|
75
84
|
|