@openshift-migration-advisor/agent-sdk 0.12.0-b2d61b72e086 → 0.12.0-d5edcd6935f2
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/apis/DefaultApi.d.ts +0 -3
- package/dist/apis/DefaultApi.js +0 -3
- package/dist/esm/apis/DefaultApi.d.ts +0 -3
- package/dist/esm/apis/DefaultApi.js +0 -3
- package/dist/esm/models/InspectorStatus.d.ts +0 -17
- package/dist/esm/models/InspectorStatus.js +1 -10
- package/dist/esm/models/StartInspectionRequest.d.ts +8 -1
- package/dist/esm/models/StartInspectionRequest.js +5 -0
- package/dist/models/InspectorStatus.d.ts +0 -17
- package/dist/models/InspectorStatus.js +1 -10
- package/dist/models/StartInspectionRequest.d.ts +8 -1
- package/dist/models/StartInspectionRequest.js +5 -0
- package/docs/DefaultApi.md +1 -4
- package/docs/InspectorStatus.md +0 -4
- package/docs/StartInspectionRequest.md +3 -1
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +0 -7
- package/src/models/InspectorStatus.ts +1 -28
- package/src/models/StartInspectionRequest.ts +18 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/agent-sdk@0.12.0-
|
|
1
|
+
# @openshift-migration-advisor/agent-sdk@0.12.0-d5edcd6935f2
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -167,7 +167,7 @@ and is automatically generated by the
|
|
|
167
167
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
168
168
|
|
|
169
169
|
- API version: `v1`
|
|
170
|
-
- Package version: `0.12.0-
|
|
170
|
+
- Package version: `0.12.0-d5edcd6935f2`
|
|
171
171
|
- Generator version: `7.23.0-SNAPSHOT`
|
|
172
172
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
173
173
|
|
|
@@ -69,7 +69,6 @@ export interface GetGroupRequest {
|
|
|
69
69
|
}
|
|
70
70
|
export interface GetInspectorStatusRequest {
|
|
71
71
|
includeVddk?: boolean;
|
|
72
|
-
includeCredentials?: boolean;
|
|
73
72
|
}
|
|
74
73
|
export interface GetInventoryRequest {
|
|
75
74
|
withAgentId?: boolean;
|
|
@@ -353,7 +352,6 @@ export interface DefaultApiInterface {
|
|
|
353
352
|
/**
|
|
354
353
|
* Creates request options for getInspectorStatus without sending the request
|
|
355
354
|
* @param {boolean} [includeVddk] If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded.
|
|
356
|
-
* @param {boolean} [includeCredentials] If true, include configured vCenter URL and username (password is never returned). omitted if was never set.
|
|
357
355
|
* @throws {RequiredError}
|
|
358
356
|
* @memberof DefaultApiInterface
|
|
359
357
|
*/
|
|
@@ -362,7 +360,6 @@ export interface DefaultApiInterface {
|
|
|
362
360
|
*
|
|
363
361
|
* @summary Get inspector status
|
|
364
362
|
* @param {boolean} [includeVddk] If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded.
|
|
365
|
-
* @param {boolean} [includeCredentials] If true, include configured vCenter URL and username (password is never returned). omitted if was never set.
|
|
366
363
|
* @param {*} [options] Override http request option.
|
|
367
364
|
* @throws {RequiredError}
|
|
368
365
|
* @memberof DefaultApiInterface
|
package/dist/apis/DefaultApi.js
CHANGED
|
@@ -463,9 +463,6 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
463
463
|
if (requestParameters['includeVddk'] != null) {
|
|
464
464
|
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
465
465
|
}
|
|
466
|
-
if (requestParameters['includeCredentials'] != null) {
|
|
467
|
-
queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
|
|
468
|
-
}
|
|
469
466
|
const headerParameters = {};
|
|
470
467
|
let urlPath = `/inspector`;
|
|
471
468
|
return {
|
|
@@ -69,7 +69,6 @@ export interface GetGroupRequest {
|
|
|
69
69
|
}
|
|
70
70
|
export interface GetInspectorStatusRequest {
|
|
71
71
|
includeVddk?: boolean;
|
|
72
|
-
includeCredentials?: boolean;
|
|
73
72
|
}
|
|
74
73
|
export interface GetInventoryRequest {
|
|
75
74
|
withAgentId?: boolean;
|
|
@@ -353,7 +352,6 @@ export interface DefaultApiInterface {
|
|
|
353
352
|
/**
|
|
354
353
|
* Creates request options for getInspectorStatus without sending the request
|
|
355
354
|
* @param {boolean} [includeVddk] If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded.
|
|
356
|
-
* @param {boolean} [includeCredentials] If true, include configured vCenter URL and username (password is never returned). omitted if was never set.
|
|
357
355
|
* @throws {RequiredError}
|
|
358
356
|
* @memberof DefaultApiInterface
|
|
359
357
|
*/
|
|
@@ -362,7 +360,6 @@ export interface DefaultApiInterface {
|
|
|
362
360
|
*
|
|
363
361
|
* @summary Get inspector status
|
|
364
362
|
* @param {boolean} [includeVddk] If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded.
|
|
365
|
-
* @param {boolean} [includeCredentials] If true, include configured vCenter URL and username (password is never returned). omitted if was never set.
|
|
366
363
|
* @param {*} [options] Override http request option.
|
|
367
364
|
* @throws {RequiredError}
|
|
368
365
|
* @memberof DefaultApiInterface
|
|
@@ -460,9 +460,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
460
460
|
if (requestParameters['includeVddk'] != null) {
|
|
461
461
|
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
462
462
|
}
|
|
463
|
-
if (requestParameters['includeCredentials'] != null) {
|
|
464
|
-
queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
|
|
465
|
-
}
|
|
466
463
|
const headerParameters = {};
|
|
467
464
|
let urlPath = `/inspector`;
|
|
468
465
|
return {
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { VddkProperties } from './VddkProperties.js';
|
|
13
|
-
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
16
15
|
* @export
|
|
@@ -23,35 +22,19 @@ export interface InspectorStatus {
|
|
|
23
22
|
* @memberof InspectorStatus
|
|
24
23
|
*/
|
|
25
24
|
state: InspectorStatusStateEnum;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {VcenterCredentials}
|
|
29
|
-
* @memberof InspectorStatus
|
|
30
|
-
*/
|
|
31
|
-
credentials?: VcenterCredentials;
|
|
32
25
|
/**
|
|
33
26
|
*
|
|
34
27
|
* @type {VddkProperties}
|
|
35
28
|
* @memberof InspectorStatus
|
|
36
29
|
*/
|
|
37
30
|
vddk?: VddkProperties;
|
|
38
|
-
/**
|
|
39
|
-
* Error message when state is error
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof InspectorStatus
|
|
42
|
-
*/
|
|
43
|
-
error?: string;
|
|
44
31
|
}
|
|
45
32
|
/**
|
|
46
33
|
* @export
|
|
47
34
|
*/
|
|
48
35
|
export declare const InspectorStatusStateEnum: {
|
|
49
36
|
readonly InspectorStatusStateReady: "ready";
|
|
50
|
-
readonly InspectorStatusStateInitiating: "Initiating";
|
|
51
37
|
readonly InspectorStatusStateRunning: "running";
|
|
52
|
-
readonly InspectorStatusStateCanceled: "canceled";
|
|
53
|
-
readonly InspectorStatusStateCompleted: "completed";
|
|
54
|
-
readonly InspectorStatusStateError: "error";
|
|
55
38
|
};
|
|
56
39
|
export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
|
|
57
40
|
/**
|
|
@@ -12,17 +12,12 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { VddkPropertiesFromJSON, VddkPropertiesToJSON, } from './VddkProperties.js';
|
|
15
|
-
import { VcenterCredentialsFromJSON, VcenterCredentialsToJSON, } from './VcenterCredentials.js';
|
|
16
15
|
/**
|
|
17
16
|
* @export
|
|
18
17
|
*/
|
|
19
18
|
export const InspectorStatusStateEnum = {
|
|
20
19
|
InspectorStatusStateReady: 'ready',
|
|
21
|
-
|
|
22
|
-
InspectorStatusStateRunning: 'running',
|
|
23
|
-
InspectorStatusStateCanceled: 'canceled',
|
|
24
|
-
InspectorStatusStateCompleted: 'completed',
|
|
25
|
-
InspectorStatusStateError: 'error'
|
|
20
|
+
InspectorStatusStateRunning: 'running'
|
|
26
21
|
};
|
|
27
22
|
/**
|
|
28
23
|
* Check if a given object implements the InspectorStatus interface.
|
|
@@ -41,9 +36,7 @@ export function InspectorStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
36
|
}
|
|
42
37
|
return {
|
|
43
38
|
'state': json['state'],
|
|
44
|
-
'credentials': json['credentials'] == null ? undefined : VcenterCredentialsFromJSON(json['credentials']),
|
|
45
39
|
'vddk': json['vddk'] == null ? undefined : VddkPropertiesFromJSON(json['vddk']),
|
|
46
|
-
'error': json['error'] == null ? undefined : json['error'],
|
|
47
40
|
};
|
|
48
41
|
}
|
|
49
42
|
export function InspectorStatusToJSON(json) {
|
|
@@ -55,8 +48,6 @@ export function InspectorStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
55
48
|
}
|
|
56
49
|
return {
|
|
57
50
|
'state': value['state'],
|
|
58
|
-
'credentials': VcenterCredentialsToJSON(value['credentials']),
|
|
59
51
|
'vddk': VddkPropertiesToJSON(value['vddk']),
|
|
60
|
-
'error': value['error'],
|
|
61
52
|
};
|
|
62
53
|
}
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
12
13
|
/**
|
|
13
|
-
*
|
|
14
|
+
* Start inspection request
|
|
14
15
|
* @export
|
|
15
16
|
* @interface StartInspectionRequest
|
|
16
17
|
*/
|
|
@@ -21,6 +22,12 @@ export interface StartInspectionRequest {
|
|
|
21
22
|
* @memberof StartInspectionRequest
|
|
22
23
|
*/
|
|
23
24
|
vmIds: Array<string>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {VcenterCredentials}
|
|
28
|
+
* @memberof StartInspectionRequest
|
|
29
|
+
*/
|
|
30
|
+
credentials: VcenterCredentials;
|
|
24
31
|
}
|
|
25
32
|
/**
|
|
26
33
|
* Check if a given object implements the StartInspectionRequest interface.
|
|
@@ -11,12 +11,15 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { VcenterCredentialsFromJSON, VcenterCredentialsToJSON, } from './VcenterCredentials.js';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the StartInspectionRequest interface.
|
|
16
17
|
*/
|
|
17
18
|
export function instanceOfStartInspectionRequest(value) {
|
|
18
19
|
if (!('vmIds' in value) || value['vmIds'] === undefined)
|
|
19
20
|
return false;
|
|
21
|
+
if (!('credentials' in value) || value['credentials'] === undefined)
|
|
22
|
+
return false;
|
|
20
23
|
return true;
|
|
21
24
|
}
|
|
22
25
|
export function StartInspectionRequestFromJSON(json) {
|
|
@@ -28,6 +31,7 @@ export function StartInspectionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
31
|
}
|
|
29
32
|
return {
|
|
30
33
|
'vmIds': json['vmIds'],
|
|
34
|
+
'credentials': VcenterCredentialsFromJSON(json['credentials']),
|
|
31
35
|
};
|
|
32
36
|
}
|
|
33
37
|
export function StartInspectionRequestToJSON(json) {
|
|
@@ -39,5 +43,6 @@ export function StartInspectionRequestToJSONTyped(value, ignoreDiscriminator = f
|
|
|
39
43
|
}
|
|
40
44
|
return {
|
|
41
45
|
'vmIds': value['vmIds'],
|
|
46
|
+
'credentials': VcenterCredentialsToJSON(value['credentials']),
|
|
42
47
|
};
|
|
43
48
|
}
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { VddkProperties } from './VddkProperties.js';
|
|
13
|
-
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
16
15
|
* @export
|
|
@@ -23,35 +22,19 @@ export interface InspectorStatus {
|
|
|
23
22
|
* @memberof InspectorStatus
|
|
24
23
|
*/
|
|
25
24
|
state: InspectorStatusStateEnum;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {VcenterCredentials}
|
|
29
|
-
* @memberof InspectorStatus
|
|
30
|
-
*/
|
|
31
|
-
credentials?: VcenterCredentials;
|
|
32
25
|
/**
|
|
33
26
|
*
|
|
34
27
|
* @type {VddkProperties}
|
|
35
28
|
* @memberof InspectorStatus
|
|
36
29
|
*/
|
|
37
30
|
vddk?: VddkProperties;
|
|
38
|
-
/**
|
|
39
|
-
* Error message when state is error
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof InspectorStatus
|
|
42
|
-
*/
|
|
43
|
-
error?: string;
|
|
44
31
|
}
|
|
45
32
|
/**
|
|
46
33
|
* @export
|
|
47
34
|
*/
|
|
48
35
|
export declare const InspectorStatusStateEnum: {
|
|
49
36
|
readonly InspectorStatusStateReady: "ready";
|
|
50
|
-
readonly InspectorStatusStateInitiating: "Initiating";
|
|
51
37
|
readonly InspectorStatusStateRunning: "running";
|
|
52
|
-
readonly InspectorStatusStateCanceled: "canceled";
|
|
53
|
-
readonly InspectorStatusStateCompleted: "completed";
|
|
54
|
-
readonly InspectorStatusStateError: "error";
|
|
55
38
|
};
|
|
56
39
|
export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
|
|
57
40
|
/**
|
|
@@ -20,17 +20,12 @@ exports.InspectorStatusFromJSONTyped = InspectorStatusFromJSONTyped;
|
|
|
20
20
|
exports.InspectorStatusToJSON = InspectorStatusToJSON;
|
|
21
21
|
exports.InspectorStatusToJSONTyped = InspectorStatusToJSONTyped;
|
|
22
22
|
const VddkProperties_js_1 = require("./VddkProperties.js");
|
|
23
|
-
const VcenterCredentials_js_1 = require("./VcenterCredentials.js");
|
|
24
23
|
/**
|
|
25
24
|
* @export
|
|
26
25
|
*/
|
|
27
26
|
exports.InspectorStatusStateEnum = {
|
|
28
27
|
InspectorStatusStateReady: 'ready',
|
|
29
|
-
|
|
30
|
-
InspectorStatusStateRunning: 'running',
|
|
31
|
-
InspectorStatusStateCanceled: 'canceled',
|
|
32
|
-
InspectorStatusStateCompleted: 'completed',
|
|
33
|
-
InspectorStatusStateError: 'error'
|
|
28
|
+
InspectorStatusStateRunning: 'running'
|
|
34
29
|
};
|
|
35
30
|
/**
|
|
36
31
|
* Check if a given object implements the InspectorStatus interface.
|
|
@@ -49,9 +44,7 @@ function InspectorStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
44
|
}
|
|
50
45
|
return {
|
|
51
46
|
'state': json['state'],
|
|
52
|
-
'credentials': json['credentials'] == null ? undefined : (0, VcenterCredentials_js_1.VcenterCredentialsFromJSON)(json['credentials']),
|
|
53
47
|
'vddk': json['vddk'] == null ? undefined : (0, VddkProperties_js_1.VddkPropertiesFromJSON)(json['vddk']),
|
|
54
|
-
'error': json['error'] == null ? undefined : json['error'],
|
|
55
48
|
};
|
|
56
49
|
}
|
|
57
50
|
function InspectorStatusToJSON(json) {
|
|
@@ -63,8 +56,6 @@ function InspectorStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
63
56
|
}
|
|
64
57
|
return {
|
|
65
58
|
'state': value['state'],
|
|
66
|
-
'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(value['credentials']),
|
|
67
59
|
'vddk': (0, VddkProperties_js_1.VddkPropertiesToJSON)(value['vddk']),
|
|
68
|
-
'error': value['error'],
|
|
69
60
|
};
|
|
70
61
|
}
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
12
13
|
/**
|
|
13
|
-
*
|
|
14
|
+
* Start inspection request
|
|
14
15
|
* @export
|
|
15
16
|
* @interface StartInspectionRequest
|
|
16
17
|
*/
|
|
@@ -21,6 +22,12 @@ export interface StartInspectionRequest {
|
|
|
21
22
|
* @memberof StartInspectionRequest
|
|
22
23
|
*/
|
|
23
24
|
vmIds: Array<string>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {VcenterCredentials}
|
|
28
|
+
* @memberof StartInspectionRequest
|
|
29
|
+
*/
|
|
30
|
+
credentials: VcenterCredentials;
|
|
24
31
|
}
|
|
25
32
|
/**
|
|
26
33
|
* Check if a given object implements the StartInspectionRequest interface.
|
|
@@ -18,12 +18,15 @@ exports.StartInspectionRequestFromJSON = StartInspectionRequestFromJSON;
|
|
|
18
18
|
exports.StartInspectionRequestFromJSONTyped = StartInspectionRequestFromJSONTyped;
|
|
19
19
|
exports.StartInspectionRequestToJSON = StartInspectionRequestToJSON;
|
|
20
20
|
exports.StartInspectionRequestToJSONTyped = StartInspectionRequestToJSONTyped;
|
|
21
|
+
const VcenterCredentials_js_1 = require("./VcenterCredentials.js");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the StartInspectionRequest interface.
|
|
23
24
|
*/
|
|
24
25
|
function instanceOfStartInspectionRequest(value) {
|
|
25
26
|
if (!('vmIds' in value) || value['vmIds'] === undefined)
|
|
26
27
|
return false;
|
|
28
|
+
if (!('credentials' in value) || value['credentials'] === undefined)
|
|
29
|
+
return false;
|
|
27
30
|
return true;
|
|
28
31
|
}
|
|
29
32
|
function StartInspectionRequestFromJSON(json) {
|
|
@@ -35,6 +38,7 @@ function StartInspectionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
38
|
}
|
|
36
39
|
return {
|
|
37
40
|
'vmIds': json['vmIds'],
|
|
41
|
+
'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsFromJSON)(json['credentials']),
|
|
38
42
|
};
|
|
39
43
|
}
|
|
40
44
|
function StartInspectionRequestToJSON(json) {
|
|
@@ -46,5 +50,6 @@ function StartInspectionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
50
|
}
|
|
47
51
|
return {
|
|
48
52
|
'vmIds': value['vmIds'],
|
|
53
|
+
'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(value['credentials']),
|
|
49
54
|
};
|
|
50
55
|
}
|
package/docs/DefaultApi.md
CHANGED
|
@@ -703,7 +703,7 @@ No authorization required
|
|
|
703
703
|
|
|
704
704
|
## getInspectorStatus
|
|
705
705
|
|
|
706
|
-
> InspectorStatus getInspectorStatus(includeVddk
|
|
706
|
+
> InspectorStatus getInspectorStatus(includeVddk)
|
|
707
707
|
|
|
708
708
|
Get inspector status
|
|
709
709
|
|
|
@@ -723,8 +723,6 @@ async function example() {
|
|
|
723
723
|
const body = {
|
|
724
724
|
// boolean | If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded. (optional)
|
|
725
725
|
includeVddk: true,
|
|
726
|
-
// boolean | If true, include configured vCenter URL and username (password is never returned). omitted if was never set. (optional)
|
|
727
|
-
includeCredentials: true,
|
|
728
726
|
} satisfies GetInspectorStatusRequest;
|
|
729
727
|
|
|
730
728
|
try {
|
|
@@ -745,7 +743,6 @@ example().catch(console.error);
|
|
|
745
743
|
| Name | Type | Description | Notes |
|
|
746
744
|
|------------- | ------------- | ------------- | -------------|
|
|
747
745
|
| **includeVddk** | `boolean` | If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded. | [Optional] [Defaults to `false`] |
|
|
748
|
-
| **includeCredentials** | `boolean` | If true, include configured vCenter URL and username (password is never returned). omitted if was never set. | [Optional] [Defaults to `false`] |
|
|
749
746
|
|
|
750
747
|
### Return type
|
|
751
748
|
|
package/docs/InspectorStatus.md
CHANGED
|
@@ -7,9 +7,7 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`state` | string
|
|
10
|
-
`credentials` | [VcenterCredentials](VcenterCredentials.md)
|
|
11
10
|
`vddk` | [VddkProperties](VddkProperties.md)
|
|
12
|
-
`error` | string
|
|
13
11
|
|
|
14
12
|
## Example
|
|
15
13
|
|
|
@@ -19,9 +17,7 @@ import type { InspectorStatus } from '@openshift-migration-advisor/agent-sdk'
|
|
|
19
17
|
// TODO: Update the object below with actual values
|
|
20
18
|
const example = {
|
|
21
19
|
"state": null,
|
|
22
|
-
"credentials": null,
|
|
23
20
|
"vddk": null,
|
|
24
|
-
"error": null,
|
|
25
21
|
} satisfies InspectorStatus
|
|
26
22
|
|
|
27
23
|
console.log(example)
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
# StartInspectionRequest
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
Start inspection request
|
|
5
5
|
|
|
6
6
|
## Properties
|
|
7
7
|
|
|
8
8
|
Name | Type
|
|
9
9
|
------------ | -------------
|
|
10
10
|
`vmIds` | Array<string>
|
|
11
|
+
`credentials` | [VcenterCredentials](VcenterCredentials.md)
|
|
11
12
|
|
|
12
13
|
## Example
|
|
13
14
|
|
|
@@ -17,6 +18,7 @@ import type { StartInspectionRequest } from '@openshift-migration-advisor/agent-
|
|
|
17
18
|
// TODO: Update the object below with actual values
|
|
18
19
|
const example = {
|
|
19
20
|
"vmIds": null,
|
|
21
|
+
"credentials": null,
|
|
20
22
|
} satisfies StartInspectionRequest
|
|
21
23
|
|
|
22
24
|
console.log(example)
|
package/package.json
CHANGED
package/src/apis/DefaultApi.ts
CHANGED
|
@@ -217,7 +217,6 @@ export interface GetGroupRequest {
|
|
|
217
217
|
|
|
218
218
|
export interface GetInspectorStatusRequest {
|
|
219
219
|
includeVddk?: boolean;
|
|
220
|
-
includeCredentials?: boolean;
|
|
221
220
|
}
|
|
222
221
|
|
|
223
222
|
export interface GetInventoryRequest {
|
|
@@ -552,7 +551,6 @@ export interface DefaultApiInterface {
|
|
|
552
551
|
/**
|
|
553
552
|
* Creates request options for getInspectorStatus without sending the request
|
|
554
553
|
* @param {boolean} [includeVddk] If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded.
|
|
555
|
-
* @param {boolean} [includeCredentials] If true, include configured vCenter URL and username (password is never returned). omitted if was never set.
|
|
556
554
|
* @throws {RequiredError}
|
|
557
555
|
* @memberof DefaultApiInterface
|
|
558
556
|
*/
|
|
@@ -562,7 +560,6 @@ export interface DefaultApiInterface {
|
|
|
562
560
|
*
|
|
563
561
|
* @summary Get inspector status
|
|
564
562
|
* @param {boolean} [includeVddk] If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded.
|
|
565
|
-
* @param {boolean} [includeCredentials] If true, include configured vCenter URL and username (password is never returned). omitted if was never set.
|
|
566
563
|
* @param {*} [options] Override http request option.
|
|
567
564
|
* @throws {RequiredError}
|
|
568
565
|
* @memberof DefaultApiInterface
|
|
@@ -1638,10 +1635,6 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1638
1635
|
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
1639
1636
|
}
|
|
1640
1637
|
|
|
1641
|
-
if (requestParameters['includeCredentials'] != null) {
|
|
1642
|
-
queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
|
|
1643
|
-
}
|
|
1644
|
-
|
|
1645
1638
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1646
1639
|
|
|
1647
1640
|
|
|
@@ -20,13 +20,6 @@ import {
|
|
|
20
20
|
VddkPropertiesToJSON,
|
|
21
21
|
VddkPropertiesToJSONTyped,
|
|
22
22
|
} from './VddkProperties.js';
|
|
23
|
-
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
24
|
-
import {
|
|
25
|
-
VcenterCredentialsFromJSON,
|
|
26
|
-
VcenterCredentialsFromJSONTyped,
|
|
27
|
-
VcenterCredentialsToJSON,
|
|
28
|
-
VcenterCredentialsToJSONTyped,
|
|
29
|
-
} from './VcenterCredentials.js';
|
|
30
23
|
|
|
31
24
|
/**
|
|
32
25
|
*
|
|
@@ -40,24 +33,12 @@ export interface InspectorStatus {
|
|
|
40
33
|
* @memberof InspectorStatus
|
|
41
34
|
*/
|
|
42
35
|
state: InspectorStatusStateEnum;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {VcenterCredentials}
|
|
46
|
-
* @memberof InspectorStatus
|
|
47
|
-
*/
|
|
48
|
-
credentials?: VcenterCredentials;
|
|
49
36
|
/**
|
|
50
37
|
*
|
|
51
38
|
* @type {VddkProperties}
|
|
52
39
|
* @memberof InspectorStatus
|
|
53
40
|
*/
|
|
54
41
|
vddk?: VddkProperties;
|
|
55
|
-
/**
|
|
56
|
-
* Error message when state is error
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof InspectorStatus
|
|
59
|
-
*/
|
|
60
|
-
error?: string;
|
|
61
42
|
}
|
|
62
43
|
|
|
63
44
|
|
|
@@ -66,11 +47,7 @@ export interface InspectorStatus {
|
|
|
66
47
|
*/
|
|
67
48
|
export const InspectorStatusStateEnum = {
|
|
68
49
|
InspectorStatusStateReady: 'ready',
|
|
69
|
-
|
|
70
|
-
InspectorStatusStateRunning: 'running',
|
|
71
|
-
InspectorStatusStateCanceled: 'canceled',
|
|
72
|
-
InspectorStatusStateCompleted: 'completed',
|
|
73
|
-
InspectorStatusStateError: 'error'
|
|
50
|
+
InspectorStatusStateRunning: 'running'
|
|
74
51
|
} as const;
|
|
75
52
|
export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
|
|
76
53
|
|
|
@@ -94,9 +71,7 @@ export function InspectorStatusFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
94
71
|
return {
|
|
95
72
|
|
|
96
73
|
'state': json['state'],
|
|
97
|
-
'credentials': json['credentials'] == null ? undefined : VcenterCredentialsFromJSON(json['credentials']),
|
|
98
74
|
'vddk': json['vddk'] == null ? undefined : VddkPropertiesFromJSON(json['vddk']),
|
|
99
|
-
'error': json['error'] == null ? undefined : json['error'],
|
|
100
75
|
};
|
|
101
76
|
}
|
|
102
77
|
|
|
@@ -112,9 +87,7 @@ export function InspectorStatusToJSONTyped(value?: InspectorStatus | null, ignor
|
|
|
112
87
|
return {
|
|
113
88
|
|
|
114
89
|
'state': value['state'],
|
|
115
|
-
'credentials': VcenterCredentialsToJSON(value['credentials']),
|
|
116
90
|
'vddk': VddkPropertiesToJSON(value['vddk']),
|
|
117
|
-
'error': value['error'],
|
|
118
91
|
};
|
|
119
92
|
}
|
|
120
93
|
|
|
@@ -13,8 +13,16 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
17
|
+
import {
|
|
18
|
+
VcenterCredentialsFromJSON,
|
|
19
|
+
VcenterCredentialsFromJSONTyped,
|
|
20
|
+
VcenterCredentialsToJSON,
|
|
21
|
+
VcenterCredentialsToJSONTyped,
|
|
22
|
+
} from './VcenterCredentials.js';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
|
-
*
|
|
25
|
+
* Start inspection request
|
|
18
26
|
* @export
|
|
19
27
|
* @interface StartInspectionRequest
|
|
20
28
|
*/
|
|
@@ -25,6 +33,12 @@ export interface StartInspectionRequest {
|
|
|
25
33
|
* @memberof StartInspectionRequest
|
|
26
34
|
*/
|
|
27
35
|
vmIds: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {VcenterCredentials}
|
|
39
|
+
* @memberof StartInspectionRequest
|
|
40
|
+
*/
|
|
41
|
+
credentials: VcenterCredentials;
|
|
28
42
|
}
|
|
29
43
|
|
|
30
44
|
/**
|
|
@@ -32,6 +46,7 @@ export interface StartInspectionRequest {
|
|
|
32
46
|
*/
|
|
33
47
|
export function instanceOfStartInspectionRequest(value: object): value is StartInspectionRequest {
|
|
34
48
|
if (!('vmIds' in value) || value['vmIds'] === undefined) return false;
|
|
49
|
+
if (!('credentials' in value) || value['credentials'] === undefined) return false;
|
|
35
50
|
return true;
|
|
36
51
|
}
|
|
37
52
|
|
|
@@ -46,6 +61,7 @@ export function StartInspectionRequestFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
46
61
|
return {
|
|
47
62
|
|
|
48
63
|
'vmIds': json['vmIds'],
|
|
64
|
+
'credentials': VcenterCredentialsFromJSON(json['credentials']),
|
|
49
65
|
};
|
|
50
66
|
}
|
|
51
67
|
|
|
@@ -61,6 +77,7 @@ export function StartInspectionRequestToJSONTyped(value?: StartInspectionRequest
|
|
|
61
77
|
return {
|
|
62
78
|
|
|
63
79
|
'vmIds': value['vmIds'],
|
|
80
|
+
'credentials': VcenterCredentialsToJSON(value['credentials']),
|
|
64
81
|
};
|
|
65
82
|
}
|
|
66
83
|
|