@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/agent-sdk",
3
- "version": "0.12.0-b4cc95d9b3d0",
3
+ "version": "0.12.0-b940fec9f503",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/agent-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -23,6 +23,11 @@ import {
23
23
  AgentStatusFromJSON,
24
24
  AgentStatusToJSON,
25
25
  } from '../models/AgentStatus.js';
26
+ import {
27
+ type ApplicationListResponse,
28
+ ApplicationListResponseFromJSON,
29
+ ApplicationListResponseToJSON,
30
+ } from '../models/ApplicationListResponse.js';
26
31
  import {
27
32
  type BenchmarkRun,
28
33
  BenchmarkRunFromJSON,
@@ -485,6 +490,27 @@ export interface DefaultApiInterface {
485
490
  */
486
491
  getAgentStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentStatus>;
487
492
 
493
+ /**
494
+ * Creates request options for getApplications without sending the request
495
+ * @throws {RequiredError}
496
+ * @memberof DefaultApiInterface
497
+ */
498
+ getApplicationsRequestOpts(): Promise<runtime.RequestOpts>;
499
+
500
+ /**
501
+ *
502
+ * @summary List detected applications running on VMs
503
+ * @param {*} [options] Override http request option.
504
+ * @throws {RequiredError}
505
+ * @memberof DefaultApiInterface
506
+ */
507
+ getApplicationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationListResponse>>;
508
+
509
+ /**
510
+ * List detected applications running on VMs
511
+ */
512
+ getApplications(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationListResponse>;
513
+
488
514
  /**
489
515
  * Creates request options for getClusterUtilization without sending the request
490
516
  * @param {string} clusterId vSphere MoRef (e.g. \&quot;domain-c123\&quot;) or generated cluster ID (e.g. \&quot;cluster-a3f7b2c1d4e89012\&quot;)
@@ -1654,6 +1680,43 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1654
1680
  return await response.value();
1655
1681
  }
1656
1682
 
1683
+ /**
1684
+ * Creates request options for getApplications without sending the request
1685
+ */
1686
+ async getApplicationsRequestOpts(): Promise<runtime.RequestOpts> {
1687
+ const queryParameters: any = {};
1688
+
1689
+ const headerParameters: runtime.HTTPHeaders = {};
1690
+
1691
+
1692
+ let urlPath = `/applications`;
1693
+
1694
+ return {
1695
+ path: urlPath,
1696
+ method: 'GET',
1697
+ headers: headerParameters,
1698
+ query: queryParameters,
1699
+ };
1700
+ }
1701
+
1702
+ /**
1703
+ * List detected applications running on VMs
1704
+ */
1705
+ async getApplicationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationListResponse>> {
1706
+ const requestOptions = await this.getApplicationsRequestOpts();
1707
+ const response = await this.request(requestOptions, initOverrides);
1708
+
1709
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationListResponseFromJSON(jsonValue));
1710
+ }
1711
+
1712
+ /**
1713
+ * List detected applications running on VMs
1714
+ */
1715
+ async getApplications(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationListResponse> {
1716
+ const response = await this.getApplicationsRaw(initOverrides);
1717
+ return await response.value();
1718
+ }
1719
+
1657
1720
  /**
1658
1721
  * Creates request options for getClusterUtilization without sending the request
1659
1722
  */
@@ -0,0 +1,74 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ import type { ApplicationOverview } from './ApplicationOverview.js';
17
+ import {
18
+ ApplicationOverviewFromJSON,
19
+ ApplicationOverviewFromJSONTyped,
20
+ ApplicationOverviewToJSON,
21
+ ApplicationOverviewToJSONTyped,
22
+ } from './ApplicationOverview.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApplicationListResponse
28
+ */
29
+ export interface ApplicationListResponse {
30
+ /**
31
+ *
32
+ * @type {Array<ApplicationOverview>}
33
+ * @memberof ApplicationListResponse
34
+ */
35
+ applications: Array<ApplicationOverview>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the ApplicationListResponse interface.
40
+ */
41
+ export function instanceOfApplicationListResponse(value: object): value is ApplicationListResponse {
42
+ if (!('applications' in value) || value['applications'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function ApplicationListResponseFromJSON(json: any): ApplicationListResponse {
47
+ return ApplicationListResponseFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function ApplicationListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationListResponse {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'applications': ((json['applications'] as Array<any>).map(ApplicationOverviewFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function ApplicationListResponseToJSON(json: any): ApplicationListResponse {
61
+ return ApplicationListResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function ApplicationListResponseToJSONTyped(value?: ApplicationListResponse | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'applications': ((value['applications'] as Array<any>).map(ApplicationOverviewToJSON)),
72
+ };
73
+ }
74
+
@@ -0,0 +1,101 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ import type { ApplicationVM } from './ApplicationVM.js';
17
+ import {
18
+ ApplicationVMFromJSON,
19
+ ApplicationVMFromJSONTyped,
20
+ ApplicationVMToJSON,
21
+ ApplicationVMToJSONTyped,
22
+ } from './ApplicationVM.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApplicationOverview
28
+ */
29
+ export interface ApplicationOverview {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ApplicationOverview
34
+ */
35
+ name: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApplicationOverview
40
+ */
41
+ description: string;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof ApplicationOverview
46
+ */
47
+ vmCount: number;
48
+ /**
49
+ *
50
+ * @type {Array<ApplicationVM>}
51
+ * @memberof ApplicationOverview
52
+ */
53
+ vms: Array<ApplicationVM>;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the ApplicationOverview interface.
58
+ */
59
+ export function instanceOfApplicationOverview(value: object): value is ApplicationOverview {
60
+ if (!('name' in value) || value['name'] === undefined) return false;
61
+ if (!('description' in value) || value['description'] === undefined) return false;
62
+ if (!('vmCount' in value) || value['vmCount'] === undefined) return false;
63
+ if (!('vms' in value) || value['vms'] === undefined) return false;
64
+ return true;
65
+ }
66
+
67
+ export function ApplicationOverviewFromJSON(json: any): ApplicationOverview {
68
+ return ApplicationOverviewFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function ApplicationOverviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationOverview {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'name': json['name'],
78
+ 'description': json['description'],
79
+ 'vmCount': json['vmCount'],
80
+ 'vms': ((json['vms'] as Array<any>).map(ApplicationVMFromJSON)),
81
+ };
82
+ }
83
+
84
+ export function ApplicationOverviewToJSON(json: any): ApplicationOverview {
85
+ return ApplicationOverviewToJSONTyped(json, false);
86
+ }
87
+
88
+ export function ApplicationOverviewToJSONTyped(value?: ApplicationOverview | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'name': value['name'],
96
+ 'description': value['description'],
97
+ 'vmCount': value['vmCount'],
98
+ 'vms': ((value['vms'] as Array<any>).map(ApplicationVMToJSON)),
99
+ };
100
+ }
101
+
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ApplicationVM
20
+ */
21
+ export interface ApplicationVM {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApplicationVM
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApplicationVM
32
+ */
33
+ name: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ApplicationVM interface.
38
+ */
39
+ export function instanceOfApplicationVM(value: object): value is ApplicationVM {
40
+ if (!('id' in value) || value['id'] === undefined) return false;
41
+ if (!('name' in value) || value['name'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function ApplicationVMFromJSON(json: any): ApplicationVM {
46
+ return ApplicationVMFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ApplicationVMFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationVM {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'id': json['id'],
56
+ 'name': json['name'],
57
+ };
58
+ }
59
+
60
+ export function ApplicationVMToJSON(json: any): ApplicationVM {
61
+ return ApplicationVMToJSONTyped(json, false);
62
+ }
63
+
64
+ export function ApplicationVMToJSONTyped(value?: ApplicationVM | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'id': value['id'],
72
+ 'name': value['name'],
73
+ };
74
+ }
75
+
@@ -37,6 +37,18 @@ export interface CollectorStartRequest {
37
37
  * @memberof CollectorStartRequest
38
38
  */
39
39
  password: string;
40
+ /**
41
+ * PEM-encoded CA certificate bundle for verifying the vCenter TLS certificate. Mutually exclusive with skipTls.
42
+ * @type {string}
43
+ * @memberof CollectorStartRequest
44
+ */
45
+ cacert?: string;
46
+ /**
47
+ * 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.
48
+ * @type {boolean}
49
+ * @memberof CollectorStartRequest
50
+ */
51
+ skipTls?: boolean;
40
52
  }
41
53
 
42
54
  /**
@@ -62,6 +74,8 @@ export function CollectorStartRequestFromJSONTyped(json: any, ignoreDiscriminato
62
74
  'url': json['url'],
63
75
  'username': json['username'],
64
76
  'password': json['password'],
77
+ 'cacert': json['cacert'] == null ? undefined : json['cacert'],
78
+ 'skipTls': json['skipTls'] == null ? undefined : json['skipTls'],
65
79
  };
66
80
  }
67
81
 
@@ -79,6 +93,8 @@ export function CollectorStartRequestToJSONTyped(value?: CollectorStartRequest |
79
93
  'url': value['url'],
80
94
  'username': value['username'],
81
95
  'password': value['password'],
96
+ 'cacert': value['cacert'],
97
+ 'skipTls': value['skipTls'],
82
98
  };
83
99
  }
84
100
 
@@ -43,6 +43,12 @@ export interface VMFilterOptionsResponse {
43
43
  * @memberof VMFilterOptionsResponse
44
44
  */
45
45
  concernCategories: Array<string>;
46
+ /**
47
+ * Distinct detected application names
48
+ * @type {Array<string>}
49
+ * @memberof VMFilterOptionsResponse
50
+ */
51
+ applications: Array<string>;
46
52
  }
47
53
 
48
54
  /**
@@ -53,6 +59,7 @@ export function instanceOfVMFilterOptionsResponse(value: object): value is VMFil
53
59
  if (!('datacenters' in value) || value['datacenters'] === undefined) return false;
54
60
  if (!('concernLabels' in value) || value['concernLabels'] === undefined) return false;
55
61
  if (!('concernCategories' in value) || value['concernCategories'] === undefined) return false;
62
+ if (!('applications' in value) || value['applications'] === undefined) return false;
56
63
  return true;
57
64
  }
58
65
 
@@ -70,6 +77,7 @@ export function VMFilterOptionsResponseFromJSONTyped(json: any, ignoreDiscrimina
70
77
  'datacenters': json['datacenters'],
71
78
  'concernLabels': json['concernLabels'],
72
79
  'concernCategories': json['concernCategories'],
80
+ 'applications': json['applications'],
73
81
  };
74
82
  }
75
83
 
@@ -88,6 +96,7 @@ export function VMFilterOptionsResponseToJSONTyped(value?: VMFilterOptionsRespon
88
96
  'datacenters': value['datacenters'],
89
97
  'concernLabels': value['concernLabels'],
90
98
  'concernCategories': value['concernCategories'],
99
+ 'applications': value['applications'],
91
100
  };
92
101
  }
93
102
 
@@ -37,6 +37,18 @@ export interface VcenterCredentials {
37
37
  * @memberof VcenterCredentials
38
38
  */
39
39
  password: string;
40
+ /**
41
+ * PEM-encoded CA certificate bundle for verifying the vCenter TLS certificate. Mutually exclusive with skipTls.
42
+ * @type {string}
43
+ * @memberof VcenterCredentials
44
+ */
45
+ cacert?: string;
46
+ /**
47
+ * 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.
48
+ * @type {boolean}
49
+ * @memberof VcenterCredentials
50
+ */
51
+ skipTls?: boolean;
40
52
  }
41
53
 
42
54
  /**
@@ -62,6 +74,8 @@ export function VcenterCredentialsFromJSONTyped(json: any, ignoreDiscriminator:
62
74
  'url': json['url'],
63
75
  'username': json['username'],
64
76
  'password': json['password'],
77
+ 'cacert': json['cacert'] == null ? undefined : json['cacert'],
78
+ 'skipTls': json['skipTls'] == null ? undefined : json['skipTls'],
65
79
  };
66
80
  }
67
81
 
@@ -79,6 +93,8 @@ export function VcenterCredentialsToJSONTyped(value?: VcenterCredentials | null,
79
93
  'url': value['url'],
80
94
  'username': value['username'],
81
95
  'password': value['password'],
96
+ 'cacert': value['cacert'],
97
+ 'skipTls': value['skipTls'],
82
98
  };
83
99
  }
84
100
 
@@ -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';