@openshift-migration-advisor/agent-sdk 0.0.0-e4821863b141 → 0.7.0
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 +7 -7
- package/dist/apis/DefaultApi.js +5 -5
- package/dist/esm/apis/DefaultApi.js +5 -5
- package/dist/esm/models/AgentStatus.d.ts +2 -2
- package/dist/esm/models/AgentStatus.js +2 -2
- package/dist/esm/models/CollectorStatus.d.ts +7 -6
- package/dist/esm/models/CollectorStatus.js +7 -6
- package/dist/esm/models/InspectorStatus.d.ts +7 -7
- package/dist/esm/models/InspectorStatus.js +7 -7
- package/dist/esm/models/VMIssue.d.ts +6 -6
- package/dist/esm/models/VMIssue.js +6 -6
- package/dist/models/AgentStatus.d.ts +2 -2
- package/dist/models/AgentStatus.js +2 -2
- package/dist/models/CollectorStatus.d.ts +7 -6
- package/dist/models/CollectorStatus.js +7 -6
- package/dist/models/InspectorStatus.d.ts +7 -7
- package/dist/models/InspectorStatus.js +7 -7
- package/dist/models/VMIssue.d.ts +6 -6
- package/dist/models/VMIssue.js +6 -6
- package/docs/DefaultApi.md +5 -5
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +5 -5
- package/src/models/AgentStatus.ts +2 -2
- package/src/models/CollectorStatus.ts +7 -6
- package/src/models/InspectorStatus.ts +7 -7
- package/src/models/VMIssue.ts +6 -6
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/agent-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/agent-sdk@0.7.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -51,25 +51,25 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
51
51
|
| Class | Method | HTTP request | Description
|
|
52
52
|
| ----- | ------ | ------------ | -------------
|
|
53
53
|
*DefaultApi* | [**addVMsToInspection**](docs/DefaultApi.md#addvmstoinspection) | **PATCH** /vms/inspector | Add more VMs to inspection queue
|
|
54
|
-
*DefaultApi* | [**createGroup**](docs/DefaultApi.md#creategroupoperation) | **POST** /groups | Create a new group
|
|
55
|
-
*DefaultApi* | [**deleteGroup**](docs/DefaultApi.md#deletegroup) | **DELETE** /groups/{id} | Delete group
|
|
54
|
+
*DefaultApi* | [**createGroup**](docs/DefaultApi.md#creategroupoperation) | **POST** /vms/groups | Create a new group
|
|
55
|
+
*DefaultApi* | [**deleteGroup**](docs/DefaultApi.md#deletegroup) | **DELETE** /vms/groups/{id} | Delete group
|
|
56
56
|
*DefaultApi* | [**getAgentStatus**](docs/DefaultApi.md#getagentstatus) | **GET** /agent | Get agent status
|
|
57
57
|
*DefaultApi* | [**getCollectorStatus**](docs/DefaultApi.md#getcollectorstatus) | **GET** /collector | Get collector status
|
|
58
|
-
*DefaultApi* | [**getGroup**](docs/DefaultApi.md#getgroup) | **GET** /groups/{id} | Get group by ID with its VMs
|
|
58
|
+
*DefaultApi* | [**getGroup**](docs/DefaultApi.md#getgroup) | **GET** /vms/groups/{id} | Get group by ID with its VMs
|
|
59
59
|
*DefaultApi* | [**getInspectorStatus**](docs/DefaultApi.md#getinspectorstatus) | **GET** /vms/inspector | Get inspector status
|
|
60
60
|
*DefaultApi* | [**getInventory**](docs/DefaultApi.md#getinventory) | **GET** /inventory | Get collected inventory
|
|
61
61
|
*DefaultApi* | [**getVM**](docs/DefaultApi.md#getvm) | **GET** /vms/{id} | Get details about a vm
|
|
62
62
|
*DefaultApi* | [**getVMInspectionStatus**](docs/DefaultApi.md#getvminspectionstatus) | **GET** /vms/{id}/inspector | Get inspection status for a specific VirtualMachine
|
|
63
63
|
*DefaultApi* | [**getVMs**](docs/DefaultApi.md#getvms) | **GET** /vms | Get list of VMs with filtering and pagination
|
|
64
64
|
*DefaultApi* | [**getVersion**](docs/DefaultApi.md#getversion) | **GET** /version | Get agent version information
|
|
65
|
-
*DefaultApi* | [**listGroups**](docs/DefaultApi.md#listgroups) | **GET** /groups | List all groups
|
|
65
|
+
*DefaultApi* | [**listGroups**](docs/DefaultApi.md#listgroups) | **GET** /vms/groups | List all groups
|
|
66
66
|
*DefaultApi* | [**removeVMFromInspection**](docs/DefaultApi.md#removevmfrominspection) | **DELETE** /vms/{id}/inspector | Remove VirtualMachine from inspection queue
|
|
67
67
|
*DefaultApi* | [**setAgentMode**](docs/DefaultApi.md#setagentmode) | **POST** /agent | Change agent mode
|
|
68
68
|
*DefaultApi* | [**startCollector**](docs/DefaultApi.md#startcollector) | **POST** /collector | Start inventory collection
|
|
69
69
|
*DefaultApi* | [**startInspection**](docs/DefaultApi.md#startinspection) | **POST** /vms/inspector | Start inspection for VMs
|
|
70
70
|
*DefaultApi* | [**stopCollector**](docs/DefaultApi.md#stopcollector) | **DELETE** /collector | Stop collection
|
|
71
71
|
*DefaultApi* | [**stopInspection**](docs/DefaultApi.md#stopinspection) | **DELETE** /vms/inspector | Stop inspector entirely
|
|
72
|
-
*DefaultApi* | [**updateGroup**](docs/DefaultApi.md#updategroupoperation) | **PATCH** /groups/{id} | Update group
|
|
72
|
+
*DefaultApi* | [**updateGroup**](docs/DefaultApi.md#updategroupoperation) | **PATCH** /vms/groups/{id} | Update group
|
|
73
73
|
*DefaultApi* | [**vddkPost**](docs/DefaultApi.md#vddkpost) | **POST** /vddk | Upload VDDK tarball
|
|
74
74
|
|
|
75
75
|
|
|
@@ -127,7 +127,7 @@ and is automatically generated by the
|
|
|
127
127
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
128
128
|
|
|
129
129
|
- API version: `v1`
|
|
130
|
-
- Package version: `0.
|
|
130
|
+
- Package version: `0.7.0`
|
|
131
131
|
- Generator version: `7.21.0-SNAPSHOT`
|
|
132
132
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
133
133
|
|
package/dist/apis/DefaultApi.js
CHANGED
|
@@ -80,7 +80,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
80
80
|
const queryParameters = {};
|
|
81
81
|
const headerParameters = {};
|
|
82
82
|
headerParameters['Content-Type'] = 'application/json';
|
|
83
|
-
let urlPath = `/groups`;
|
|
83
|
+
let urlPath = `/vms/groups`;
|
|
84
84
|
return {
|
|
85
85
|
path: urlPath,
|
|
86
86
|
method: 'POST',
|
|
@@ -119,7 +119,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
119
119
|
}
|
|
120
120
|
const queryParameters = {};
|
|
121
121
|
const headerParameters = {};
|
|
122
|
-
let urlPath = `/groups/{id}`;
|
|
122
|
+
let urlPath = `/vms/groups/{id}`;
|
|
123
123
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
124
124
|
return {
|
|
125
125
|
path: urlPath,
|
|
@@ -236,7 +236,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
236
236
|
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
237
237
|
}
|
|
238
238
|
const headerParameters = {};
|
|
239
|
-
let urlPath = `/groups/{id}`;
|
|
239
|
+
let urlPath = `/vms/groups/{id}`;
|
|
240
240
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
241
241
|
return {
|
|
242
242
|
path: urlPath,
|
|
@@ -517,7 +517,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
517
517
|
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
518
518
|
}
|
|
519
519
|
const headerParameters = {};
|
|
520
|
-
let urlPath = `/groups`;
|
|
520
|
+
let urlPath = `/vms/groups`;
|
|
521
521
|
return {
|
|
522
522
|
path: urlPath,
|
|
523
523
|
method: 'GET',
|
|
@@ -787,7 +787,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
787
787
|
const queryParameters = {};
|
|
788
788
|
const headerParameters = {};
|
|
789
789
|
headerParameters['Content-Type'] = 'application/json';
|
|
790
|
-
let urlPath = `/groups/{id}`;
|
|
790
|
+
let urlPath = `/vms/groups/{id}`;
|
|
791
791
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
792
792
|
return {
|
|
793
793
|
path: urlPath,
|
|
@@ -77,7 +77,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
77
77
|
const queryParameters = {};
|
|
78
78
|
const headerParameters = {};
|
|
79
79
|
headerParameters['Content-Type'] = 'application/json';
|
|
80
|
-
let urlPath = `/groups`;
|
|
80
|
+
let urlPath = `/vms/groups`;
|
|
81
81
|
return {
|
|
82
82
|
path: urlPath,
|
|
83
83
|
method: 'POST',
|
|
@@ -116,7 +116,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
116
116
|
}
|
|
117
117
|
const queryParameters = {};
|
|
118
118
|
const headerParameters = {};
|
|
119
|
-
let urlPath = `/groups/{id}`;
|
|
119
|
+
let urlPath = `/vms/groups/{id}`;
|
|
120
120
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
121
121
|
return {
|
|
122
122
|
path: urlPath,
|
|
@@ -233,7 +233,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
233
233
|
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
234
234
|
}
|
|
235
235
|
const headerParameters = {};
|
|
236
|
-
let urlPath = `/groups/{id}`;
|
|
236
|
+
let urlPath = `/vms/groups/{id}`;
|
|
237
237
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
238
238
|
return {
|
|
239
239
|
path: urlPath,
|
|
@@ -514,7 +514,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
514
514
|
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
515
515
|
}
|
|
516
516
|
const headerParameters = {};
|
|
517
|
-
let urlPath = `/groups`;
|
|
517
|
+
let urlPath = `/vms/groups`;
|
|
518
518
|
return {
|
|
519
519
|
path: urlPath,
|
|
520
520
|
method: 'GET',
|
|
@@ -784,7 +784,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
784
784
|
const queryParameters = {};
|
|
785
785
|
const headerParameters = {};
|
|
786
786
|
headerParameters['Content-Type'] = 'application/json';
|
|
787
|
-
let urlPath = `/groups/{id}`;
|
|
787
|
+
let urlPath = `/vms/groups/{id}`;
|
|
788
788
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
789
789
|
return {
|
|
790
790
|
path: urlPath,
|
|
@@ -38,8 +38,8 @@ export interface AgentStatus {
|
|
|
38
38
|
* @export
|
|
39
39
|
*/
|
|
40
40
|
export declare const AgentStatusModeEnum: {
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
41
|
+
readonly Connected: "connected";
|
|
42
|
+
readonly Disconnected: "disconnected";
|
|
43
43
|
};
|
|
44
44
|
export type AgentStatusModeEnum = typeof AgentStatusModeEnum[keyof typeof AgentStatusModeEnum];
|
|
45
45
|
/**
|
|
@@ -32,12 +32,13 @@ export interface CollectorStatus {
|
|
|
32
32
|
* @export
|
|
33
33
|
*/
|
|
34
34
|
export declare const CollectorStatusStatusEnum: {
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
35
|
+
readonly Ready: "ready";
|
|
36
|
+
readonly Connecting: "connecting";
|
|
37
|
+
readonly Connected: "connected";
|
|
38
|
+
readonly Collecting: "collecting";
|
|
39
|
+
readonly Parsing: "parsing";
|
|
40
|
+
readonly Collected: "collected";
|
|
41
|
+
readonly Error: "error";
|
|
41
42
|
};
|
|
42
43
|
export type CollectorStatusStatusEnum = typeof CollectorStatusStatusEnum[keyof typeof CollectorStatusStatusEnum];
|
|
43
44
|
/**
|
|
@@ -15,12 +15,13 @@
|
|
|
15
15
|
* @export
|
|
16
16
|
*/
|
|
17
17
|
export const CollectorStatusStatusEnum = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
Ready: 'ready',
|
|
19
|
+
Connecting: 'connecting',
|
|
20
|
+
Connected: 'connected',
|
|
21
|
+
Collecting: 'collecting',
|
|
22
|
+
Parsing: 'parsing',
|
|
23
|
+
Collected: 'collected',
|
|
24
|
+
Error: 'error'
|
|
24
25
|
};
|
|
25
26
|
/**
|
|
26
27
|
* Check if a given object implements the CollectorStatus interface.
|
|
@@ -32,13 +32,13 @@ export interface InspectorStatus {
|
|
|
32
32
|
* @export
|
|
33
33
|
*/
|
|
34
34
|
export declare const InspectorStatusStateEnum: {
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly
|
|
35
|
+
readonly Ready: "ready";
|
|
36
|
+
readonly Initiating: "Initiating";
|
|
37
|
+
readonly Running: "running";
|
|
38
|
+
readonly Canceling: "canceling";
|
|
39
|
+
readonly Canceled: "canceled";
|
|
40
|
+
readonly Completed: "completed";
|
|
41
|
+
readonly Error: "error";
|
|
42
42
|
};
|
|
43
43
|
export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
|
|
44
44
|
/**
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
* @export
|
|
16
16
|
*/
|
|
17
17
|
export const InspectorStatusStateEnum = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
Ready: 'ready',
|
|
19
|
+
Initiating: 'Initiating',
|
|
20
|
+
Running: 'running',
|
|
21
|
+
Canceling: 'canceling',
|
|
22
|
+
Canceled: 'canceled',
|
|
23
|
+
Completed: 'completed',
|
|
24
|
+
Error: 'error'
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the InspectorStatus interface.
|
|
@@ -38,12 +38,12 @@ export interface VMIssue {
|
|
|
38
38
|
* @export
|
|
39
39
|
*/
|
|
40
40
|
export declare const VMIssueCategoryEnum: {
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
41
|
+
readonly Critical: "Critical";
|
|
42
|
+
readonly Warning: "Warning";
|
|
43
|
+
readonly Information: "Information";
|
|
44
|
+
readonly Advisory: "Advisory";
|
|
45
|
+
readonly Error: "Error";
|
|
46
|
+
readonly Other: "Other";
|
|
47
47
|
};
|
|
48
48
|
export type VMIssueCategoryEnum = typeof VMIssueCategoryEnum[keyof typeof VMIssueCategoryEnum];
|
|
49
49
|
/**
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
* @export
|
|
16
16
|
*/
|
|
17
17
|
export const VMIssueCategoryEnum = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
Critical: 'Critical',
|
|
19
|
+
Warning: 'Warning',
|
|
20
|
+
Information: 'Information',
|
|
21
|
+
Advisory: 'Advisory',
|
|
22
|
+
Error: 'Error',
|
|
23
|
+
Other: 'Other'
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
26
26
|
* Check if a given object implements the VMIssue interface.
|
|
@@ -38,8 +38,8 @@ export interface AgentStatus {
|
|
|
38
38
|
* @export
|
|
39
39
|
*/
|
|
40
40
|
export declare const AgentStatusModeEnum: {
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
41
|
+
readonly Connected: "connected";
|
|
42
|
+
readonly Disconnected: "disconnected";
|
|
43
43
|
};
|
|
44
44
|
export type AgentStatusModeEnum = typeof AgentStatusModeEnum[keyof typeof AgentStatusModeEnum];
|
|
45
45
|
/**
|
|
@@ -23,8 +23,8 @@ exports.AgentStatusToJSONTyped = AgentStatusToJSONTyped;
|
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
25
|
exports.AgentStatusModeEnum = {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
Connected: 'connected',
|
|
27
|
+
Disconnected: 'disconnected'
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* @export
|
|
@@ -32,12 +32,13 @@ export interface CollectorStatus {
|
|
|
32
32
|
* @export
|
|
33
33
|
*/
|
|
34
34
|
export declare const CollectorStatusStatusEnum: {
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
35
|
+
readonly Ready: "ready";
|
|
36
|
+
readonly Connecting: "connecting";
|
|
37
|
+
readonly Connected: "connected";
|
|
38
|
+
readonly Collecting: "collecting";
|
|
39
|
+
readonly Parsing: "parsing";
|
|
40
|
+
readonly Collected: "collected";
|
|
41
|
+
readonly Error: "error";
|
|
41
42
|
};
|
|
42
43
|
export type CollectorStatusStatusEnum = typeof CollectorStatusStatusEnum[keyof typeof CollectorStatusStatusEnum];
|
|
43
44
|
/**
|
|
@@ -23,12 +23,13 @@ exports.CollectorStatusToJSONTyped = CollectorStatusToJSONTyped;
|
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
25
|
exports.CollectorStatusStatusEnum = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
Ready: 'ready',
|
|
27
|
+
Connecting: 'connecting',
|
|
28
|
+
Connected: 'connected',
|
|
29
|
+
Collecting: 'collecting',
|
|
30
|
+
Parsing: 'parsing',
|
|
31
|
+
Collected: 'collected',
|
|
32
|
+
Error: 'error'
|
|
32
33
|
};
|
|
33
34
|
/**
|
|
34
35
|
* Check if a given object implements the CollectorStatus interface.
|
|
@@ -32,13 +32,13 @@ export interface InspectorStatus {
|
|
|
32
32
|
* @export
|
|
33
33
|
*/
|
|
34
34
|
export declare const InspectorStatusStateEnum: {
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly
|
|
35
|
+
readonly Ready: "ready";
|
|
36
|
+
readonly Initiating: "Initiating";
|
|
37
|
+
readonly Running: "running";
|
|
38
|
+
readonly Canceling: "canceling";
|
|
39
|
+
readonly Canceled: "canceled";
|
|
40
|
+
readonly Completed: "completed";
|
|
41
|
+
readonly Error: "error";
|
|
42
42
|
};
|
|
43
43
|
export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
|
|
44
44
|
/**
|
|
@@ -23,13 +23,13 @@ exports.InspectorStatusToJSONTyped = InspectorStatusToJSONTyped;
|
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
25
|
exports.InspectorStatusStateEnum = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
Ready: 'ready',
|
|
27
|
+
Initiating: 'Initiating',
|
|
28
|
+
Running: 'running',
|
|
29
|
+
Canceling: 'canceling',
|
|
30
|
+
Canceled: 'canceled',
|
|
31
|
+
Completed: 'completed',
|
|
32
|
+
Error: 'error'
|
|
33
33
|
};
|
|
34
34
|
/**
|
|
35
35
|
* Check if a given object implements the InspectorStatus interface.
|
package/dist/models/VMIssue.d.ts
CHANGED
|
@@ -38,12 +38,12 @@ export interface VMIssue {
|
|
|
38
38
|
* @export
|
|
39
39
|
*/
|
|
40
40
|
export declare const VMIssueCategoryEnum: {
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
41
|
+
readonly Critical: "Critical";
|
|
42
|
+
readonly Warning: "Warning";
|
|
43
|
+
readonly Information: "Information";
|
|
44
|
+
readonly Advisory: "Advisory";
|
|
45
|
+
readonly Error: "Error";
|
|
46
|
+
readonly Other: "Other";
|
|
47
47
|
};
|
|
48
48
|
export type VMIssueCategoryEnum = typeof VMIssueCategoryEnum[keyof typeof VMIssueCategoryEnum];
|
|
49
49
|
/**
|
package/dist/models/VMIssue.js
CHANGED
|
@@ -23,12 +23,12 @@ exports.VMIssueToJSONTyped = VMIssueToJSONTyped;
|
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
25
|
exports.VMIssueCategoryEnum = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
Critical: 'Critical',
|
|
27
|
+
Warning: 'Warning',
|
|
28
|
+
Information: 'Information',
|
|
29
|
+
Advisory: 'Advisory',
|
|
30
|
+
Error: 'Error',
|
|
31
|
+
Other: 'Other'
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
34
|
* Check if a given object implements the VMIssue interface.
|
package/docs/DefaultApi.md
CHANGED
|
@@ -5,25 +5,25 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
| [**addVMsToInspection**](DefaultApi.md#addvmstoinspection) | **PATCH** /vms/inspector | Add more VMs to inspection queue |
|
|
8
|
-
| [**createGroup**](DefaultApi.md#creategroupoperation) | **POST** /groups | Create a new group |
|
|
9
|
-
| [**deleteGroup**](DefaultApi.md#deletegroup) | **DELETE** /groups/{id} | Delete group |
|
|
8
|
+
| [**createGroup**](DefaultApi.md#creategroupoperation) | **POST** /vms/groups | Create a new group |
|
|
9
|
+
| [**deleteGroup**](DefaultApi.md#deletegroup) | **DELETE** /vms/groups/{id} | Delete group |
|
|
10
10
|
| [**getAgentStatus**](DefaultApi.md#getagentstatus) | **GET** /agent | Get agent status |
|
|
11
11
|
| [**getCollectorStatus**](DefaultApi.md#getcollectorstatus) | **GET** /collector | Get collector status |
|
|
12
|
-
| [**getGroup**](DefaultApi.md#getgroup) | **GET** /groups/{id} | Get group by ID with its VMs |
|
|
12
|
+
| [**getGroup**](DefaultApi.md#getgroup) | **GET** /vms/groups/{id} | Get group by ID with its VMs |
|
|
13
13
|
| [**getInspectorStatus**](DefaultApi.md#getinspectorstatus) | **GET** /vms/inspector | Get inspector status |
|
|
14
14
|
| [**getInventory**](DefaultApi.md#getinventory) | **GET** /inventory | Get collected inventory |
|
|
15
15
|
| [**getVM**](DefaultApi.md#getvm) | **GET** /vms/{id} | Get details about a vm |
|
|
16
16
|
| [**getVMInspectionStatus**](DefaultApi.md#getvminspectionstatus) | **GET** /vms/{id}/inspector | Get inspection status for a specific VirtualMachine |
|
|
17
17
|
| [**getVMs**](DefaultApi.md#getvms) | **GET** /vms | Get list of VMs with filtering and pagination |
|
|
18
18
|
| [**getVersion**](DefaultApi.md#getversion) | **GET** /version | Get agent version information |
|
|
19
|
-
| [**listGroups**](DefaultApi.md#listgroups) | **GET** /groups | List all groups |
|
|
19
|
+
| [**listGroups**](DefaultApi.md#listgroups) | **GET** /vms/groups | List all groups |
|
|
20
20
|
| [**removeVMFromInspection**](DefaultApi.md#removevmfrominspection) | **DELETE** /vms/{id}/inspector | Remove VirtualMachine from inspection queue |
|
|
21
21
|
| [**setAgentMode**](DefaultApi.md#setagentmode) | **POST** /agent | Change agent mode |
|
|
22
22
|
| [**startCollector**](DefaultApi.md#startcollector) | **POST** /collector | Start inventory collection |
|
|
23
23
|
| [**startInspection**](DefaultApi.md#startinspection) | **POST** /vms/inspector | Start inspection for VMs |
|
|
24
24
|
| [**stopCollector**](DefaultApi.md#stopcollector) | **DELETE** /collector | Stop collection |
|
|
25
25
|
| [**stopInspection**](DefaultApi.md#stopinspection) | **DELETE** /vms/inspector | Stop inspector entirely |
|
|
26
|
-
| [**updateGroup**](DefaultApi.md#updategroupoperation) | **PATCH** /groups/{id} | Update group |
|
|
26
|
+
| [**updateGroup**](DefaultApi.md#updategroupoperation) | **PATCH** /vms/groups/{id} | Update group |
|
|
27
27
|
| [**vddkPost**](DefaultApi.md#vddkpost) | **POST** /vddk | Upload VDDK tarball |
|
|
28
28
|
|
|
29
29
|
|
package/package.json
CHANGED
package/src/apis/DefaultApi.ts
CHANGED
|
@@ -710,7 +710,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
710
710
|
headerParameters['Content-Type'] = 'application/json';
|
|
711
711
|
|
|
712
712
|
|
|
713
|
-
let urlPath = `/groups`;
|
|
713
|
+
let urlPath = `/vms/groups`;
|
|
714
714
|
|
|
715
715
|
return {
|
|
716
716
|
path: urlPath,
|
|
@@ -755,7 +755,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
755
755
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
756
756
|
|
|
757
757
|
|
|
758
|
-
let urlPath = `/groups/{id}`;
|
|
758
|
+
let urlPath = `/vms/groups/{id}`;
|
|
759
759
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
760
760
|
|
|
761
761
|
return {
|
|
@@ -885,7 +885,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
885
885
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
886
886
|
|
|
887
887
|
|
|
888
|
-
let urlPath = `/groups/{id}`;
|
|
888
|
+
let urlPath = `/vms/groups/{id}`;
|
|
889
889
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
890
890
|
|
|
891
891
|
return {
|
|
@@ -1197,7 +1197,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1197
1197
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1198
1198
|
|
|
1199
1199
|
|
|
1200
|
-
let urlPath = `/groups`;
|
|
1200
|
+
let urlPath = `/vms/groups`;
|
|
1201
1201
|
|
|
1202
1202
|
return {
|
|
1203
1203
|
path: urlPath,
|
|
@@ -1509,7 +1509,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1509
1509
|
headerParameters['Content-Type'] = 'application/json';
|
|
1510
1510
|
|
|
1511
1511
|
|
|
1512
|
-
let urlPath = `/groups/{id}`;
|
|
1512
|
+
let urlPath = `/vms/groups/{id}`;
|
|
1513
1513
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
1514
1514
|
|
|
1515
1515
|
return {
|
|
@@ -44,8 +44,8 @@ export interface AgentStatus {
|
|
|
44
44
|
* @export
|
|
45
45
|
*/
|
|
46
46
|
export const AgentStatusModeEnum = {
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
Connected: 'connected',
|
|
48
|
+
Disconnected: 'disconnected'
|
|
49
49
|
} as const;
|
|
50
50
|
export type AgentStatusModeEnum = typeof AgentStatusModeEnum[keyof typeof AgentStatusModeEnum];
|
|
51
51
|
|
|
@@ -38,12 +38,13 @@ export interface CollectorStatus {
|
|
|
38
38
|
* @export
|
|
39
39
|
*/
|
|
40
40
|
export const CollectorStatusStatusEnum = {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
Ready: 'ready',
|
|
42
|
+
Connecting: 'connecting',
|
|
43
|
+
Connected: 'connected',
|
|
44
|
+
Collecting: 'collecting',
|
|
45
|
+
Parsing: 'parsing',
|
|
46
|
+
Collected: 'collected',
|
|
47
|
+
Error: 'error'
|
|
47
48
|
} as const;
|
|
48
49
|
export type CollectorStatusStatusEnum = typeof CollectorStatusStatusEnum[keyof typeof CollectorStatusStatusEnum];
|
|
49
50
|
|
|
@@ -38,13 +38,13 @@ export interface InspectorStatus {
|
|
|
38
38
|
* @export
|
|
39
39
|
*/
|
|
40
40
|
export const InspectorStatusStateEnum = {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
41
|
+
Ready: 'ready',
|
|
42
|
+
Initiating: 'Initiating',
|
|
43
|
+
Running: 'running',
|
|
44
|
+
Canceling: 'canceling',
|
|
45
|
+
Canceled: 'canceled',
|
|
46
|
+
Completed: 'completed',
|
|
47
|
+
Error: 'error'
|
|
48
48
|
} as const;
|
|
49
49
|
export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
|
|
50
50
|
|
package/src/models/VMIssue.ts
CHANGED
|
@@ -44,12 +44,12 @@ export interface VMIssue {
|
|
|
44
44
|
* @export
|
|
45
45
|
*/
|
|
46
46
|
export const VMIssueCategoryEnum = {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
Critical: 'Critical',
|
|
48
|
+
Warning: 'Warning',
|
|
49
|
+
Information: 'Information',
|
|
50
|
+
Advisory: 'Advisory',
|
|
51
|
+
Error: 'Error',
|
|
52
|
+
Other: 'Other'
|
|
53
53
|
} as const;
|
|
54
54
|
export type VMIssueCategoryEnum = typeof VMIssueCategoryEnum[keyof typeof VMIssueCategoryEnum];
|
|
55
55
|
|