@openshift-migration-advisor/agent-sdk 0.12.0-b4cc95d9b3d0 → 0.12.0-b940fec9f503

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.
Files changed (51) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +7 -3
  4. package/dist/apis/DefaultApi.d.ts +31 -0
  5. package/dist/apis/DefaultApi.js +36 -0
  6. package/dist/esm/apis/DefaultApi.d.ts +31 -0
  7. package/dist/esm/apis/DefaultApi.js +36 -0
  8. package/dist/esm/models/ApplicationListResponse.d.ts +33 -0
  9. package/dist/esm/models/ApplicationListResponse.js +44 -0
  10. package/dist/esm/models/ApplicationOverview.d.ts +51 -0
  11. package/dist/esm/models/ApplicationOverview.js +56 -0
  12. package/dist/esm/models/ApplicationVM.d.ts +38 -0
  13. package/dist/esm/models/ApplicationVM.js +47 -0
  14. package/dist/esm/models/CollectorStartRequest.d.ts +12 -0
  15. package/dist/esm/models/CollectorStartRequest.js +4 -0
  16. package/dist/esm/models/VMFilterOptionsResponse.d.ts +6 -0
  17. package/dist/esm/models/VMFilterOptionsResponse.js +4 -0
  18. package/dist/esm/models/VcenterCredentials.d.ts +12 -0
  19. package/dist/esm/models/VcenterCredentials.js +4 -0
  20. package/dist/esm/models/index.d.ts +3 -0
  21. package/dist/esm/models/index.js +3 -0
  22. package/dist/models/ApplicationListResponse.d.ts +33 -0
  23. package/dist/models/ApplicationListResponse.js +51 -0
  24. package/dist/models/ApplicationOverview.d.ts +51 -0
  25. package/dist/models/ApplicationOverview.js +63 -0
  26. package/dist/models/ApplicationVM.d.ts +38 -0
  27. package/dist/models/ApplicationVM.js +54 -0
  28. package/dist/models/CollectorStartRequest.d.ts +12 -0
  29. package/dist/models/CollectorStartRequest.js +4 -0
  30. package/dist/models/VMFilterOptionsResponse.d.ts +6 -0
  31. package/dist/models/VMFilterOptionsResponse.js +4 -0
  32. package/dist/models/VcenterCredentials.d.ts +12 -0
  33. package/dist/models/VcenterCredentials.js +4 -0
  34. package/dist/models/index.d.ts +3 -0
  35. package/dist/models/index.js +3 -0
  36. package/docs/ApplicationListResponse.md +34 -0
  37. package/docs/ApplicationOverview.md +40 -0
  38. package/docs/ApplicationVM.md +36 -0
  39. package/docs/CollectorStartRequest.md +4 -0
  40. package/docs/DefaultApi.md +59 -0
  41. package/docs/VMFilterOptionsResponse.md +2 -0
  42. package/docs/VcenterCredentials.md +4 -0
  43. package/package.json +1 -1
  44. package/src/apis/DefaultApi.ts +63 -0
  45. package/src/models/ApplicationListResponse.ts +74 -0
  46. package/src/models/ApplicationOverview.ts +101 -0
  47. package/src/models/ApplicationVM.ts +75 -0
  48. package/src/models/CollectorStartRequest.ts +16 -0
  49. package/src/models/VMFilterOptionsResponse.ts +9 -0
  50. package/src/models/VcenterCredentials.ts +16 -0
  51. package/src/models/index.ts +3 -0
@@ -2,6 +2,9 @@
2
2
  /* eslint-disable */
3
3
  export * from './AgentModeRequest.js';
4
4
  export * from './AgentStatus.js';
5
+ export * from './ApplicationListResponse.js';
6
+ export * from './ApplicationOverview.js';
7
+ export * from './ApplicationVM.js';
5
8
  export * from './BenchmarkRun.js';
6
9
  export * from './ClusterFeatures.js';
7
10
  export * from './ClusterUtilization.js';
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
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 { ApplicationOverview } from './ApplicationOverview.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApplicationListResponse
17
+ */
18
+ export interface ApplicationListResponse {
19
+ /**
20
+ *
21
+ * @type {Array<ApplicationOverview>}
22
+ * @memberof ApplicationListResponse
23
+ */
24
+ applications: Array<ApplicationOverview>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ApplicationListResponse interface.
28
+ */
29
+ export declare function instanceOfApplicationListResponse(value: object): value is ApplicationListResponse;
30
+ export declare function ApplicationListResponseFromJSON(json: any): ApplicationListResponse;
31
+ export declare function ApplicationListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationListResponse;
32
+ export declare function ApplicationListResponseToJSON(json: any): ApplicationListResponse;
33
+ export declare function ApplicationListResponseToJSONTyped(value?: ApplicationListResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1
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.instanceOfApplicationListResponse = instanceOfApplicationListResponse;
17
+ exports.ApplicationListResponseFromJSON = ApplicationListResponseFromJSON;
18
+ exports.ApplicationListResponseFromJSONTyped = ApplicationListResponseFromJSONTyped;
19
+ exports.ApplicationListResponseToJSON = ApplicationListResponseToJSON;
20
+ exports.ApplicationListResponseToJSONTyped = ApplicationListResponseToJSONTyped;
21
+ const ApplicationOverview_js_1 = require("./ApplicationOverview.js");
22
+ /**
23
+ * Check if a given object implements the ApplicationListResponse interface.
24
+ */
25
+ function instanceOfApplicationListResponse(value) {
26
+ if (!('applications' in value) || value['applications'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function ApplicationListResponseFromJSON(json) {
31
+ return ApplicationListResponseFromJSONTyped(json, false);
32
+ }
33
+ function ApplicationListResponseFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'applications': (json['applications'].map(ApplicationOverview_js_1.ApplicationOverviewFromJSON)),
39
+ };
40
+ }
41
+ function ApplicationListResponseToJSON(json) {
42
+ return ApplicationListResponseToJSONTyped(json, false);
43
+ }
44
+ function ApplicationListResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'applications': (value['applications'].map(ApplicationOverview_js_1.ApplicationOverviewToJSON)),
50
+ };
51
+ }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
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 { ApplicationVM } from './ApplicationVM.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApplicationOverview
17
+ */
18
+ export interface ApplicationOverview {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ApplicationOverview
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ApplicationOverview
29
+ */
30
+ description: string;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof ApplicationOverview
35
+ */
36
+ vmCount: number;
37
+ /**
38
+ *
39
+ * @type {Array<ApplicationVM>}
40
+ * @memberof ApplicationOverview
41
+ */
42
+ vms: Array<ApplicationVM>;
43
+ }
44
+ /**
45
+ * Check if a given object implements the ApplicationOverview interface.
46
+ */
47
+ export declare function instanceOfApplicationOverview(value: object): value is ApplicationOverview;
48
+ export declare function ApplicationOverviewFromJSON(json: any): ApplicationOverview;
49
+ export declare function ApplicationOverviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationOverview;
50
+ export declare function ApplicationOverviewToJSON(json: any): ApplicationOverview;
51
+ export declare function ApplicationOverviewToJSONTyped(value?: ApplicationOverview | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1
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.instanceOfApplicationOverview = instanceOfApplicationOverview;
17
+ exports.ApplicationOverviewFromJSON = ApplicationOverviewFromJSON;
18
+ exports.ApplicationOverviewFromJSONTyped = ApplicationOverviewFromJSONTyped;
19
+ exports.ApplicationOverviewToJSON = ApplicationOverviewToJSON;
20
+ exports.ApplicationOverviewToJSONTyped = ApplicationOverviewToJSONTyped;
21
+ const ApplicationVM_js_1 = require("./ApplicationVM.js");
22
+ /**
23
+ * Check if a given object implements the ApplicationOverview interface.
24
+ */
25
+ function instanceOfApplicationOverview(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ if (!('description' in value) || value['description'] === undefined)
29
+ return false;
30
+ if (!('vmCount' in value) || value['vmCount'] === undefined)
31
+ return false;
32
+ if (!('vms' in value) || value['vms'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function ApplicationOverviewFromJSON(json) {
37
+ return ApplicationOverviewFromJSONTyped(json, false);
38
+ }
39
+ function ApplicationOverviewFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'name': json['name'],
45
+ 'description': json['description'],
46
+ 'vmCount': json['vmCount'],
47
+ 'vms': (json['vms'].map(ApplicationVM_js_1.ApplicationVMFromJSON)),
48
+ };
49
+ }
50
+ function ApplicationOverviewToJSON(json) {
51
+ return ApplicationOverviewToJSONTyped(json, false);
52
+ }
53
+ function ApplicationOverviewToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'name': value['name'],
59
+ 'description': value['description'],
60
+ 'vmCount': value['vmCount'],
61
+ 'vms': (value['vms'].map(ApplicationVM_js_1.ApplicationVMToJSON)),
62
+ };
63
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
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 ApplicationVM
16
+ */
17
+ export interface ApplicationVM {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ApplicationVM
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ApplicationVM
28
+ */
29
+ name: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ApplicationVM interface.
33
+ */
34
+ export declare function instanceOfApplicationVM(value: object): value is ApplicationVM;
35
+ export declare function ApplicationVMFromJSON(json: any): ApplicationVM;
36
+ export declare function ApplicationVMFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationVM;
37
+ export declare function ApplicationVMToJSON(json: any): ApplicationVM;
38
+ export declare function ApplicationVMToJSONTyped(value?: ApplicationVM | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1
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.instanceOfApplicationVM = instanceOfApplicationVM;
17
+ exports.ApplicationVMFromJSON = ApplicationVMFromJSON;
18
+ exports.ApplicationVMFromJSONTyped = ApplicationVMFromJSONTyped;
19
+ exports.ApplicationVMToJSON = ApplicationVMToJSON;
20
+ exports.ApplicationVMToJSONTyped = ApplicationVMToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ApplicationVM interface.
23
+ */
24
+ function instanceOfApplicationVM(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function ApplicationVMFromJSON(json) {
32
+ return ApplicationVMFromJSONTyped(json, false);
33
+ }
34
+ function ApplicationVMFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'name': json['name'],
41
+ };
42
+ }
43
+ function ApplicationVMToJSON(json) {
44
+ return ApplicationVMToJSONTyped(json, false);
45
+ }
46
+ function ApplicationVMToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'id': value['id'],
52
+ 'name': value['name'],
53
+ };
54
+ }
@@ -33,6 +33,18 @@ export interface CollectorStartRequest {
33
33
  * @memberof CollectorStartRequest
34
34
  */
35
35
  password: string;
36
+ /**
37
+ * PEM-encoded CA certificate bundle for verifying the vCenter TLS certificate. Mutually exclusive with skipTls.
38
+ * @type {string}
39
+ * @memberof CollectorStartRequest
40
+ */
41
+ cacert?: string;
42
+ /**
43
+ * When true, TLS certificate verification is skipped. Must not be set to true alongside cacert — that combination returns 400. When omitted: if cacert is absent the connection skips TLS verification (backwards compatibility); if cacert is provided the connection verifies TLS using that certificate — skipTls need not be sent.
44
+ * @type {boolean}
45
+ * @memberof CollectorStartRequest
46
+ */
47
+ skipTls?: boolean;
36
48
  }
37
49
  /**
38
50
  * Check if a given object implements the CollectorStartRequest interface.
@@ -41,6 +41,8 @@ function CollectorStartRequestFromJSONTyped(json, ignoreDiscriminator) {
41
41
  'url': json['url'],
42
42
  'username': json['username'],
43
43
  'password': json['password'],
44
+ 'cacert': json['cacert'] == null ? undefined : json['cacert'],
45
+ 'skipTls': json['skipTls'] == null ? undefined : json['skipTls'],
44
46
  };
45
47
  }
46
48
  function CollectorStartRequestToJSON(json) {
@@ -54,5 +56,7 @@ function CollectorStartRequestToJSONTyped(value, ignoreDiscriminator = false) {
54
56
  'url': value['url'],
55
57
  'username': value['username'],
56
58
  'password': value['password'],
59
+ 'cacert': value['cacert'],
60
+ 'skipTls': value['skipTls'],
57
61
  };
58
62
  }
@@ -39,6 +39,12 @@ export interface VMFilterOptionsResponse {
39
39
  * @memberof VMFilterOptionsResponse
40
40
  */
41
41
  concernCategories: Array<string>;
42
+ /**
43
+ * Distinct detected application names
44
+ * @type {Array<string>}
45
+ * @memberof VMFilterOptionsResponse
46
+ */
47
+ applications: Array<string>;
42
48
  }
43
49
  /**
44
50
  * Check if a given object implements the VMFilterOptionsResponse interface.
@@ -30,6 +30,8 @@ function instanceOfVMFilterOptionsResponse(value) {
30
30
  return false;
31
31
  if (!('concernCategories' in value) || value['concernCategories'] === undefined)
32
32
  return false;
33
+ if (!('applications' in value) || value['applications'] === undefined)
34
+ return false;
33
35
  return true;
34
36
  }
35
37
  function VMFilterOptionsResponseFromJSON(json) {
@@ -44,6 +46,7 @@ function VMFilterOptionsResponseFromJSONTyped(json, ignoreDiscriminator) {
44
46
  'datacenters': json['datacenters'],
45
47
  'concernLabels': json['concernLabels'],
46
48
  'concernCategories': json['concernCategories'],
49
+ 'applications': json['applications'],
47
50
  };
48
51
  }
49
52
  function VMFilterOptionsResponseToJSON(json) {
@@ -58,5 +61,6 @@ function VMFilterOptionsResponseToJSONTyped(value, ignoreDiscriminator = false)
58
61
  'datacenters': value['datacenters'],
59
62
  'concernLabels': value['concernLabels'],
60
63
  'concernCategories': value['concernCategories'],
64
+ 'applications': value['applications'],
61
65
  };
62
66
  }
@@ -33,6 +33,18 @@ export interface VcenterCredentials {
33
33
  * @memberof VcenterCredentials
34
34
  */
35
35
  password: string;
36
+ /**
37
+ * PEM-encoded CA certificate bundle for verifying the vCenter TLS certificate. Mutually exclusive with skipTls.
38
+ * @type {string}
39
+ * @memberof VcenterCredentials
40
+ */
41
+ cacert?: string;
42
+ /**
43
+ * When true, TLS certificate verification is skipped. Must not be set to true alongside cacert — that combination returns 400. When omitted: if cacert is absent the connection skips TLS verification (backwards compatibility); if cacert is provided the connection verifies TLS using that certificate — skipTls need not be sent.
44
+ * @type {boolean}
45
+ * @memberof VcenterCredentials
46
+ */
47
+ skipTls?: boolean;
36
48
  }
37
49
  /**
38
50
  * Check if a given object implements the VcenterCredentials interface.
@@ -41,6 +41,8 @@ function VcenterCredentialsFromJSONTyped(json, ignoreDiscriminator) {
41
41
  'url': json['url'],
42
42
  'username': json['username'],
43
43
  'password': json['password'],
44
+ 'cacert': json['cacert'] == null ? undefined : json['cacert'],
45
+ 'skipTls': json['skipTls'] == null ? undefined : json['skipTls'],
44
46
  };
45
47
  }
46
48
  function VcenterCredentialsToJSON(json) {
@@ -54,5 +56,7 @@ function VcenterCredentialsToJSONTyped(value, ignoreDiscriminator = false) {
54
56
  'url': value['url'],
55
57
  'username': value['username'],
56
58
  'password': value['password'],
59
+ 'cacert': value['cacert'],
60
+ 'skipTls': value['skipTls'],
57
61
  };
58
62
  }
@@ -1,5 +1,8 @@
1
1
  export * from './AgentModeRequest.js';
2
2
  export * from './AgentStatus.js';
3
+ export * from './ApplicationListResponse.js';
4
+ export * from './ApplicationOverview.js';
5
+ export * from './ApplicationVM.js';
3
6
  export * from './BenchmarkRun.js';
4
7
  export * from './ClusterFeatures.js';
5
8
  export * from './ClusterUtilization.js';
@@ -18,6 +18,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./AgentModeRequest.js"), exports);
20
20
  __exportStar(require("./AgentStatus.js"), exports);
21
+ __exportStar(require("./ApplicationListResponse.js"), exports);
22
+ __exportStar(require("./ApplicationOverview.js"), exports);
23
+ __exportStar(require("./ApplicationVM.js"), exports);
21
24
  __exportStar(require("./BenchmarkRun.js"), exports);
22
25
  __exportStar(require("./ClusterFeatures.js"), exports);
23
26
  __exportStar(require("./ClusterUtilization.js"), exports);
@@ -0,0 +1,34 @@
1
+
2
+ # ApplicationListResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `applications` | [Array&lt;ApplicationOverview&gt;](ApplicationOverview.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ApplicationListResponse } from '@openshift-migration-advisor/agent-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "applications": null,
19
+ } satisfies ApplicationListResponse
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as ApplicationListResponse
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,40 @@
1
+
2
+ # ApplicationOverview
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `description` | string
11
+ `vmCount` | number
12
+ `vms` | [Array&lt;ApplicationVM&gt;](ApplicationVM.md)
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { ApplicationOverview } from '@openshift-migration-advisor/agent-sdk'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "name": null,
22
+ "description": null,
23
+ "vmCount": null,
24
+ "vms": null,
25
+ } satisfies ApplicationOverview
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as ApplicationOverview
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -0,0 +1,36 @@
1
+
2
+ # ApplicationVM
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `name` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { ApplicationVM } from '@openshift-migration-advisor/agent-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "id": null,
20
+ "name": null,
21
+ } satisfies ApplicationVM
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 ApplicationVM
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
+
@@ -9,6 +9,8 @@ Name | Type
9
9
  `url` | string
10
10
  `username` | string
11
11
  `password` | string
12
+ `cacert` | string
13
+ `skipTls` | boolean
12
14
 
13
15
  ## Example
14
16
 
@@ -20,6 +22,8 @@ const example = {
20
22
  "url": null,
21
23
  "username": null,
22
24
  "password": null,
25
+ "cacert": null,
26
+ "skipTls": null,
23
27
  } satisfies CollectorStartRequest
24
28
 
25
29
  console.log(example)
@@ -9,6 +9,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
9
9
  | [**deleteGroup**](DefaultApi.md#deletegroup) | **DELETE** /groups/{id} | Delete group |
10
10
  | [**deleteLabelGlobally**](DefaultApi.md#deletelabelglobally) | **DELETE** /vms/labels/{label} | Delete label from all VMs |
11
11
  | [**getAgentStatus**](DefaultApi.md#getagentstatus) | **GET** /agent | Get agent status |
12
+ | [**getApplications**](DefaultApi.md#getapplications) | **GET** /applications | List detected applications running on VMs |
12
13
  | [**getClusterUtilization**](DefaultApi.md#getclusterutilization) | **GET** /clusters/{cluster_id}/utilization | Get latest cluster utilization by cluster ID |
13
14
  | [**getCollectorStatus**](DefaultApi.md#getcollectorstatus) | **GET** /collector | Get collector status |
14
15
  | [**getForecasterDatastores**](DefaultApi.md#getforecasterdatastores) | **POST** /forecaster/datastores | List available datastores |
@@ -378,6 +379,64 @@ No authorization required
378
379
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
379
380
 
380
381
 
382
+ ## getApplications
383
+
384
+ > ApplicationListResponse getApplications()
385
+
386
+ List detected applications running on VMs
387
+
388
+ ### Example
389
+
390
+ ```ts
391
+ import {
392
+ Configuration,
393
+ DefaultApi,
394
+ } from '@openshift-migration-advisor/agent-sdk';
395
+ import type { GetApplicationsRequest } from '@openshift-migration-advisor/agent-sdk';
396
+
397
+ async function example() {
398
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
399
+ const api = new DefaultApi();
400
+
401
+ try {
402
+ const data = await api.getApplications();
403
+ console.log(data);
404
+ } catch (error) {
405
+ console.error(error);
406
+ }
407
+ }
408
+
409
+ // Run the test
410
+ example().catch(console.error);
411
+ ```
412
+
413
+ ### Parameters
414
+
415
+ This endpoint does not need any parameter.
416
+
417
+ ### Return type
418
+
419
+ [**ApplicationListResponse**](ApplicationListResponse.md)
420
+
421
+ ### Authorization
422
+
423
+ No authorization required
424
+
425
+ ### HTTP request headers
426
+
427
+ - **Content-Type**: Not defined
428
+ - **Accept**: `application/json`
429
+
430
+
431
+ ### HTTP response details
432
+ | Status code | Description | Response headers |
433
+ |-------------|-------------|------------------|
434
+ | **200** | List of applications with matching VMs | - |
435
+ | **500** | Internal server error | - |
436
+
437
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
438
+
439
+
381
440
  ## getClusterUtilization
382
441
 
383
442
  > RightsizingClusterResponse getClusterUtilization(clusterId)
@@ -10,6 +10,7 @@ Name | Type
10
10
  `datacenters` | Array&lt;string&gt;
11
11
  `concernLabels` | Array&lt;string&gt;
12
12
  `concernCategories` | Array&lt;string&gt;
13
+ `applications` | Array&lt;string&gt;
13
14
 
14
15
  ## Example
15
16
 
@@ -22,6 +23,7 @@ const example = {
22
23
  "datacenters": null,
23
24
  "concernLabels": null,
24
25
  "concernCategories": null,
26
+ "applications": null,
25
27
  } satisfies VMFilterOptionsResponse
26
28
 
27
29
  console.log(example)
@@ -9,6 +9,8 @@ Name | Type
9
9
  `url` | string
10
10
  `username` | string
11
11
  `password` | string
12
+ `cacert` | string
13
+ `skipTls` | boolean
12
14
 
13
15
  ## Example
14
16
 
@@ -20,6 +22,8 @@ const example = {
20
22
  "url": null,
21
23
  "username": null,
22
24
  "password": null,
25
+ "cacert": null,
26
+ "skipTls": null,
23
27
  } satisfies VcenterCredentials
24
28
 
25
29
  console.log(example)