@openshift-migration-advisor/agent-sdk 0.12.0-f90a4cad59fa → 0.16.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.
Files changed (95) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +16 -3
  4. package/dist/apis/DefaultApi.d.ts +209 -4
  5. package/dist/apis/DefaultApi.js +229 -0
  6. package/dist/esm/apis/DefaultApi.d.ts +209 -4
  7. package/dist/esm/apis/DefaultApi.js +229 -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/CapabilityStatus.d.ts +33 -0
  15. package/dist/esm/models/CapabilityStatus.js +44 -0
  16. package/dist/esm/models/CapabilityStatusCapabilities.d.ts +45 -0
  17. package/dist/esm/models/CapabilityStatusCapabilities.js +52 -0
  18. package/dist/esm/models/CollectorStartRequest.d.ts +12 -0
  19. package/dist/esm/models/CollectorStartRequest.js +4 -0
  20. package/dist/esm/models/CredentialStatus.d.ts +44 -0
  21. package/dist/esm/models/CredentialStatus.js +51 -0
  22. package/dist/esm/models/OperationCapability.d.ts +38 -0
  23. package/dist/esm/models/OperationCapability.js +45 -0
  24. package/dist/esm/models/StartInspectionRequest.d.ts +1 -1
  25. package/dist/esm/models/StartInspectionRequest.js +1 -3
  26. package/dist/esm/models/VMFilterOptionsResponse.d.ts +6 -0
  27. package/dist/esm/models/VMFilterOptionsResponse.js +4 -0
  28. package/dist/esm/models/VMNIC.d.ts +12 -0
  29. package/dist/esm/models/VMNIC.js +4 -0
  30. package/dist/esm/models/VcenterCredentials.d.ts +12 -0
  31. package/dist/esm/models/VcenterCredentials.js +4 -0
  32. package/dist/esm/models/VmInspectionStatus.d.ts +6 -0
  33. package/dist/esm/models/VmInspectionStatus.js +4 -0
  34. package/dist/esm/models/index.d.ts +7 -0
  35. package/dist/esm/models/index.js +7 -0
  36. package/dist/esm/runtime.js +2 -1
  37. package/dist/models/ApplicationListResponse.d.ts +33 -0
  38. package/dist/models/ApplicationListResponse.js +51 -0
  39. package/dist/models/ApplicationOverview.d.ts +51 -0
  40. package/dist/models/ApplicationOverview.js +63 -0
  41. package/dist/models/ApplicationVM.d.ts +38 -0
  42. package/dist/models/ApplicationVM.js +54 -0
  43. package/dist/models/CapabilityStatus.d.ts +33 -0
  44. package/dist/models/CapabilityStatus.js +51 -0
  45. package/dist/models/CapabilityStatusCapabilities.d.ts +45 -0
  46. package/dist/models/CapabilityStatusCapabilities.js +59 -0
  47. package/dist/models/CollectorStartRequest.d.ts +12 -0
  48. package/dist/models/CollectorStartRequest.js +4 -0
  49. package/dist/models/CredentialStatus.d.ts +44 -0
  50. package/dist/models/CredentialStatus.js +58 -0
  51. package/dist/models/OperationCapability.d.ts +38 -0
  52. package/dist/models/OperationCapability.js +52 -0
  53. package/dist/models/StartInspectionRequest.d.ts +1 -1
  54. package/dist/models/StartInspectionRequest.js +1 -3
  55. package/dist/models/VMFilterOptionsResponse.d.ts +6 -0
  56. package/dist/models/VMFilterOptionsResponse.js +4 -0
  57. package/dist/models/VMNIC.d.ts +12 -0
  58. package/dist/models/VMNIC.js +4 -0
  59. package/dist/models/VcenterCredentials.d.ts +12 -0
  60. package/dist/models/VcenterCredentials.js +4 -0
  61. package/dist/models/VmInspectionStatus.d.ts +6 -0
  62. package/dist/models/VmInspectionStatus.js +4 -0
  63. package/dist/models/index.d.ts +7 -0
  64. package/dist/models/index.js +7 -0
  65. package/dist/runtime.js +2 -1
  66. package/docs/ApplicationListResponse.md +34 -0
  67. package/docs/ApplicationOverview.md +40 -0
  68. package/docs/ApplicationVM.md +36 -0
  69. package/docs/CapabilityStatus.md +34 -0
  70. package/docs/CapabilityStatusCapabilities.md +38 -0
  71. package/docs/CollectorStartRequest.md +4 -0
  72. package/docs/CredentialStatus.md +38 -0
  73. package/docs/DefaultApi.md +391 -7
  74. package/docs/OperationCapability.md +36 -0
  75. package/docs/VMFilterOptionsResponse.md +2 -0
  76. package/docs/VMNIC.md +4 -0
  77. package/docs/VcenterCredentials.md +4 -0
  78. package/docs/VmInspectionStatus.md +2 -0
  79. package/package.json +1 -1
  80. package/src/apis/DefaultApi.ts +408 -4
  81. package/src/models/ApplicationListResponse.ts +74 -0
  82. package/src/models/ApplicationOverview.ts +101 -0
  83. package/src/models/ApplicationVM.ts +75 -0
  84. package/src/models/CapabilityStatus.ts +74 -0
  85. package/src/models/CapabilityStatusCapabilities.ts +92 -0
  86. package/src/models/CollectorStartRequest.ts +16 -0
  87. package/src/models/CredentialStatus.ts +84 -0
  88. package/src/models/OperationCapability.ts +74 -0
  89. package/src/models/StartInspectionRequest.ts +2 -3
  90. package/src/models/VMFilterOptionsResponse.ts +9 -0
  91. package/src/models/VMNIC.ts +16 -0
  92. package/src/models/VcenterCredentials.ts +16 -0
  93. package/src/models/VmInspectionStatus.ts +9 -0
  94. package/src/models/index.ts +7 -0
  95. package/src/runtime.ts +1 -1
@@ -35,6 +35,8 @@ function VMNICFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'mac': json['mac'] == null ? undefined : json['mac'],
36
36
  'network': json['network'] == null ? undefined : json['network'],
37
37
  'index': json['index'] == null ? undefined : json['index'],
38
+ 'ipv4Address': json['ipv4Address'] == null ? undefined : json['ipv4Address'],
39
+ 'ipv6Address': json['ipv6Address'] == null ? undefined : json['ipv6Address'],
38
40
  };
39
41
  }
40
42
  function VMNICToJSON(json) {
@@ -48,5 +50,7 @@ function VMNICToJSONTyped(value, ignoreDiscriminator = false) {
48
50
  'mac': value['mac'],
49
51
  'network': value['network'],
50
52
  'index': value['index'],
53
+ 'ipv4Address': value['ipv4Address'],
54
+ 'ipv6Address': value['ipv6Address'],
51
55
  };
52
56
  }
@@ -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
  }
@@ -21,6 +21,12 @@ export interface VmInspectionStatus {
21
21
  * @memberof VmInspectionStatus
22
22
  */
23
23
  state: VmInspectionStatusStateEnum;
24
+ /**
25
+ * State details
26
+ * @type {string}
27
+ * @memberof VmInspectionStatus
28
+ */
29
+ message: string;
24
30
  /**
25
31
  * Error message when state is error
26
32
  * @type {string}
@@ -35,6 +35,8 @@ exports.VmInspectionStatusStateEnum = {
35
35
  function instanceOfVmInspectionStatus(value) {
36
36
  if (!('state' in value) || value['state'] === undefined)
37
37
  return false;
38
+ if (!('message' in value) || value['message'] === undefined)
39
+ return false;
38
40
  return true;
39
41
  }
40
42
  function VmInspectionStatusFromJSON(json) {
@@ -46,6 +48,7 @@ function VmInspectionStatusFromJSONTyped(json, ignoreDiscriminator) {
46
48
  }
47
49
  return {
48
50
  'state': json['state'],
51
+ 'message': json['message'],
49
52
  'error': json['error'] == null ? undefined : json['error'],
50
53
  'results': json['results'] == null ? undefined : json['results'],
51
54
  };
@@ -59,6 +62,7 @@ function VmInspectionStatusToJSONTyped(value, ignoreDiscriminator = false) {
59
62
  }
60
63
  return {
61
64
  'state': value['state'],
65
+ 'message': value['message'],
62
66
  'error': value['error'],
63
67
  'results': value['results'],
64
68
  };
@@ -1,11 +1,17 @@
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';
7
+ export * from './CapabilityStatus.js';
8
+ export * from './CapabilityStatusCapabilities.js';
4
9
  export * from './ClusterFeatures.js';
5
10
  export * from './ClusterUtilization.js';
6
11
  export * from './CollectorStartRequest.js';
7
12
  export * from './CollectorStatus.js';
8
13
  export * from './CreateGroupRequest.js';
14
+ export * from './CredentialStatus.js';
9
15
  export * from './Datastore.js';
10
16
  export * from './DatastoreDetail.js';
11
17
  export * from './DatastorePair.js';
@@ -31,6 +37,7 @@ export * from './Inventory.js';
31
37
  export * from './InventoryData.js';
32
38
  export * from './MigrationIssue.js';
33
39
  export * from './Network.js';
40
+ export * from './OperationCapability.js';
34
41
  export * from './OsInfo.js';
35
42
  export * from './PairCapability.js';
36
43
  export * from './PairCapabilityRequest.js';
@@ -18,12 +18,18 @@ 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);
25
+ __exportStar(require("./CapabilityStatus.js"), exports);
26
+ __exportStar(require("./CapabilityStatusCapabilities.js"), exports);
22
27
  __exportStar(require("./ClusterFeatures.js"), exports);
23
28
  __exportStar(require("./ClusterUtilization.js"), exports);
24
29
  __exportStar(require("./CollectorStartRequest.js"), exports);
25
30
  __exportStar(require("./CollectorStatus.js"), exports);
26
31
  __exportStar(require("./CreateGroupRequest.js"), exports);
32
+ __exportStar(require("./CredentialStatus.js"), exports);
27
33
  __exportStar(require("./Datastore.js"), exports);
28
34
  __exportStar(require("./DatastoreDetail.js"), exports);
29
35
  __exportStar(require("./DatastorePair.js"), exports);
@@ -49,6 +55,7 @@ __exportStar(require("./Inventory.js"), exports);
49
55
  __exportStar(require("./InventoryData.js"), exports);
50
56
  __exportStar(require("./MigrationIssue.js"), exports);
51
57
  __exportStar(require("./Network.js"), exports);
58
+ __exportStar(require("./OperationCapability.js"), exports);
52
59
  __exportStar(require("./OsInfo.js"), exports);
53
60
  __exportStar(require("./PairCapability.js"), exports);
54
61
  __exportStar(require("./PairCapabilityRequest.js"), exports);
package/dist/runtime.js CHANGED
@@ -309,8 +309,9 @@ function mapValues(data, fn) {
309
309
  return result;
310
310
  }
311
311
  function canConsumeForm(consumes) {
312
+ var _a;
312
313
  for (const consume of consumes) {
313
- if ('multipart/form-data' === consume.contentType) {
314
+ if (((_a = consume.contentType) === null || _a === void 0 ? void 0 : _a.startsWith('multipart/form-data')) == true) {
314
315
  return true;
315
316
  }
316
317
  }
@@ -0,0 +1,34 @@
1
+
2
+ # ApplicationListResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `applications` | [Array<ApplicationOverview>](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<ApplicationVM>](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
+
@@ -0,0 +1,34 @@
1
+
2
+ # CapabilityStatus
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `capabilities` | [CapabilityStatusCapabilities](CapabilityStatusCapabilities.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { CapabilityStatus } from '@openshift-migration-advisor/agent-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "capabilities": null,
19
+ } satisfies CapabilityStatus
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 CapabilityStatus
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,38 @@
1
+
2
+ # CapabilityStatusCapabilities
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `collector` | [OperationCapability](OperationCapability.md)
10
+ `inspector` | [OperationCapability](OperationCapability.md)
11
+ `forecaster` | [OperationCapability](OperationCapability.md)
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { CapabilityStatusCapabilities } from '@openshift-migration-advisor/agent-sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "collector": null,
21
+ "inspector": null,
22
+ "forecaster": null,
23
+ } satisfies CapabilityStatusCapabilities
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as CapabilityStatusCapabilities
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -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)
@@ -0,0 +1,38 @@
1
+
2
+ # CredentialStatus
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `url` | string
10
+ `username` | string
11
+ `valid` | boolean
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { CredentialStatus } from '@openshift-migration-advisor/agent-sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "url": null,
21
+ "username": null,
22
+ "valid": null,
23
+ } satisfies CredentialStatus
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as CredentialStatus
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+