@openshift-migration-advisor/agent-sdk 0.12.0-e4c04f972747 → 0.12.0-f389e54ed2b9
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 +4 -4
- package/dist/esm/apis/DefaultApi.d.ts +4 -4
- package/dist/esm/models/CollectorStartRequest.d.ts +12 -0
- package/dist/esm/models/CollectorStartRequest.js +4 -0
- package/dist/esm/models/VcenterCredentials.d.ts +12 -0
- package/dist/esm/models/VcenterCredentials.js +4 -0
- package/dist/esm/runtime.js +2 -1
- package/dist/models/CollectorStartRequest.d.ts +12 -0
- package/dist/models/CollectorStartRequest.js +4 -0
- package/dist/models/VcenterCredentials.d.ts +12 -0
- package/dist/models/VcenterCredentials.js +4 -0
- package/dist/runtime.js +2 -1
- package/docs/CollectorStartRequest.md +4 -0
- package/docs/DefaultApi.md +4 -4
- package/docs/VcenterCredentials.md +4 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +4 -4
- package/src/models/CollectorStartRequest.ts +16 -0
- package/src/models/VcenterCredentials.ts +16 -0
- package/src/runtime.ts +1 -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-f389e54ed2b9
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -187,7 +187,7 @@ and is automatically generated by the
|
|
|
187
187
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
188
188
|
|
|
189
189
|
- API version: `v1`
|
|
190
|
-
- Package version: `0.12.0-
|
|
190
|
+
- Package version: `0.12.0-f389e54ed2b9`
|
|
191
191
|
- Generator version: `7.24.0-SNAPSHOT`
|
|
192
192
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
193
193
|
|
|
@@ -413,7 +413,7 @@ export interface DefaultApiInterface {
|
|
|
413
413
|
/**
|
|
414
414
|
* Creates request options for getGroup without sending the request
|
|
415
415
|
* @param {string} id Group ID
|
|
416
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues.
|
|
416
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
417
417
|
* @param {number} [page] Page number for pagination
|
|
418
418
|
* @param {number} [pageSize] Number of items per page
|
|
419
419
|
* @throws {RequiredError}
|
|
@@ -424,7 +424,7 @@ export interface DefaultApiInterface {
|
|
|
424
424
|
*
|
|
425
425
|
* @summary Get group by ID with its VMs
|
|
426
426
|
* @param {string} id Group ID
|
|
427
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues.
|
|
427
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
428
428
|
* @param {number} [page] Page number for pagination
|
|
429
429
|
* @param {number} [pageSize] Number of items per page
|
|
430
430
|
* @param {*} [options] Override http request option.
|
|
@@ -647,7 +647,7 @@ export interface DefaultApiInterface {
|
|
|
647
647
|
/**
|
|
648
648
|
* Creates request options for getVMs without sending the request
|
|
649
649
|
* @param {string} [byExpression] Filter by expression (matches VMs with the provided expression)
|
|
650
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues.
|
|
650
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
651
651
|
* @param {number} [page] Page number for pagination
|
|
652
652
|
* @param {number} [pageSize] Number of items per page
|
|
653
653
|
* @throws {RequiredError}
|
|
@@ -658,7 +658,7 @@ export interface DefaultApiInterface {
|
|
|
658
658
|
*
|
|
659
659
|
* @summary Get list of VMs with filtering and pagination
|
|
660
660
|
* @param {string} [byExpression] Filter by expression (matches VMs with the provided expression)
|
|
661
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues.
|
|
661
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
662
662
|
* @param {number} [page] Page number for pagination
|
|
663
663
|
* @param {number} [pageSize] Number of items per page
|
|
664
664
|
* @param {*} [options] Override http request option.
|
|
@@ -413,7 +413,7 @@ export interface DefaultApiInterface {
|
|
|
413
413
|
/**
|
|
414
414
|
* Creates request options for getGroup without sending the request
|
|
415
415
|
* @param {string} id Group ID
|
|
416
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues.
|
|
416
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
417
417
|
* @param {number} [page] Page number for pagination
|
|
418
418
|
* @param {number} [pageSize] Number of items per page
|
|
419
419
|
* @throws {RequiredError}
|
|
@@ -424,7 +424,7 @@ export interface DefaultApiInterface {
|
|
|
424
424
|
*
|
|
425
425
|
* @summary Get group by ID with its VMs
|
|
426
426
|
* @param {string} id Group ID
|
|
427
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues.
|
|
427
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
428
428
|
* @param {number} [page] Page number for pagination
|
|
429
429
|
* @param {number} [pageSize] Number of items per page
|
|
430
430
|
* @param {*} [options] Override http request option.
|
|
@@ -647,7 +647,7 @@ export interface DefaultApiInterface {
|
|
|
647
647
|
/**
|
|
648
648
|
* Creates request options for getVMs without sending the request
|
|
649
649
|
* @param {string} [byExpression] Filter by expression (matches VMs with the provided expression)
|
|
650
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues.
|
|
650
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
651
651
|
* @param {number} [page] Page number for pagination
|
|
652
652
|
* @param {number} [pageSize] Number of items per page
|
|
653
653
|
* @throws {RequiredError}
|
|
@@ -658,7 +658,7 @@ export interface DefaultApiInterface {
|
|
|
658
658
|
*
|
|
659
659
|
* @summary Get list of VMs with filtering and pagination
|
|
660
660
|
* @param {string} [byExpression] Filter by expression (matches VMs with the provided expression)
|
|
661
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues.
|
|
661
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
662
662
|
* @param {number} [page] Page number for pagination
|
|
663
663
|
* @param {number} [pageSize] Number of items per page
|
|
664
664
|
* @param {*} [options] Override http request option.
|
|
@@ -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.
|
|
@@ -34,6 +34,8 @@ export function CollectorStartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
'url': json['url'],
|
|
35
35
|
'username': json['username'],
|
|
36
36
|
'password': json['password'],
|
|
37
|
+
'cacert': json['cacert'] == null ? undefined : json['cacert'],
|
|
38
|
+
'skipTls': json['skipTls'] == null ? undefined : json['skipTls'],
|
|
37
39
|
};
|
|
38
40
|
}
|
|
39
41
|
export function CollectorStartRequestToJSON(json) {
|
|
@@ -47,5 +49,7 @@ export function CollectorStartRequestToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
47
49
|
'url': value['url'],
|
|
48
50
|
'username': value['username'],
|
|
49
51
|
'password': value['password'],
|
|
52
|
+
'cacert': value['cacert'],
|
|
53
|
+
'skipTls': value['skipTls'],
|
|
50
54
|
};
|
|
51
55
|
}
|
|
@@ -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.
|
|
@@ -34,6 +34,8 @@ export function VcenterCredentialsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
'url': json['url'],
|
|
35
35
|
'username': json['username'],
|
|
36
36
|
'password': json['password'],
|
|
37
|
+
'cacert': json['cacert'] == null ? undefined : json['cacert'],
|
|
38
|
+
'skipTls': json['skipTls'] == null ? undefined : json['skipTls'],
|
|
37
39
|
};
|
|
38
40
|
}
|
|
39
41
|
export function VcenterCredentialsToJSON(json) {
|
|
@@ -47,5 +49,7 @@ export function VcenterCredentialsToJSONTyped(value, ignoreDiscriminator = false
|
|
|
47
49
|
'url': value['url'],
|
|
48
50
|
'username': value['username'],
|
|
49
51
|
'password': value['password'],
|
|
52
|
+
'cacert': value['cacert'],
|
|
53
|
+
'skipTls': value['skipTls'],
|
|
50
54
|
};
|
|
51
55
|
}
|
package/dist/esm/runtime.js
CHANGED
|
@@ -297,8 +297,9 @@ export function mapValues(data, fn) {
|
|
|
297
297
|
return result;
|
|
298
298
|
}
|
|
299
299
|
export function canConsumeForm(consumes) {
|
|
300
|
+
var _a;
|
|
300
301
|
for (const consume of consumes) {
|
|
301
|
-
if ('multipart/form-data'
|
|
302
|
+
if (((_a = consume.contentType) === null || _a === void 0 ? void 0 : _a.startsWith('multipart/form-data')) == true) {
|
|
302
303
|
return true;
|
|
303
304
|
}
|
|
304
305
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
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'
|
|
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
|
}
|
|
@@ -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)
|
package/docs/DefaultApi.md
CHANGED
|
@@ -849,7 +849,7 @@ async function example() {
|
|
|
849
849
|
const body = {
|
|
850
850
|
// string | Group ID
|
|
851
851
|
id: id_example,
|
|
852
|
-
// Array<string> | Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues. (optional)
|
|
852
|
+
// Array<string> | Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. (optional)
|
|
853
853
|
sort: ["cluster:asc","name:desc"],
|
|
854
854
|
// number | Page number for pagination (optional)
|
|
855
855
|
page: 56,
|
|
@@ -875,7 +875,7 @@ example().catch(console.error);
|
|
|
875
875
|
| Name | Type | Description | Notes |
|
|
876
876
|
|------------- | ------------- | ------------- | -------------|
|
|
877
877
|
| **id** | `string` | Group ID | [Defaults to `undefined`] |
|
|
878
|
-
| **sort** | `Array<string>` | Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues. | [Optional] |
|
|
878
|
+
| **sort** | `Array<string>` | Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. | [Optional] |
|
|
879
879
|
| **page** | `number` | Page number for pagination | [Optional] [Defaults to `1`] |
|
|
880
880
|
| **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `undefined`] |
|
|
881
881
|
|
|
@@ -1586,7 +1586,7 @@ async function example() {
|
|
|
1586
1586
|
const body = {
|
|
1587
1587
|
// string | Filter by expression (matches VMs with the provided expression) (optional)
|
|
1588
1588
|
byExpression: exp1,
|
|
1589
|
-
// Array<string> | Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues. (optional)
|
|
1589
|
+
// Array<string> | Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. (optional)
|
|
1590
1590
|
sort: ["cluster:asc","name:desc"],
|
|
1591
1591
|
// number | Page number for pagination (optional)
|
|
1592
1592
|
page: 56,
|
|
@@ -1612,7 +1612,7 @@ example().catch(console.error);
|
|
|
1612
1612
|
| Name | Type | Description | Notes |
|
|
1613
1613
|
|------------- | ------------- | ------------- | -------------|
|
|
1614
1614
|
| **byExpression** | `string` | Filter by expression (matches VMs with the provided expression) | [Optional] [Defaults to `undefined`] |
|
|
1615
|
-
| **sort** | `Array<string>` | Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues. | [Optional] |
|
|
1615
|
+
| **sort** | `Array<string>` | Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. | [Optional] |
|
|
1616
1616
|
| **page** | `number` | Page number for pagination | [Optional] [Defaults to `1`] |
|
|
1617
1617
|
| **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `undefined`] |
|
|
1618
1618
|
|
|
@@ -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)
|
package/package.json
CHANGED
package/src/apis/DefaultApi.ts
CHANGED
|
@@ -652,7 +652,7 @@ export interface DefaultApiInterface {
|
|
|
652
652
|
/**
|
|
653
653
|
* Creates request options for getGroup without sending the request
|
|
654
654
|
* @param {string} id Group ID
|
|
655
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues.
|
|
655
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
656
656
|
* @param {number} [page] Page number for pagination
|
|
657
657
|
* @param {number} [pageSize] Number of items per page
|
|
658
658
|
* @throws {RequiredError}
|
|
@@ -664,7 +664,7 @@ export interface DefaultApiInterface {
|
|
|
664
664
|
*
|
|
665
665
|
* @summary Get group by ID with its VMs
|
|
666
666
|
* @param {string} id Group ID
|
|
667
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues.
|
|
667
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
668
668
|
* @param {number} [page] Page number for pagination
|
|
669
669
|
* @param {number} [pageSize] Number of items per page
|
|
670
670
|
* @param {*} [options] Override http request option.
|
|
@@ -919,7 +919,7 @@ export interface DefaultApiInterface {
|
|
|
919
919
|
/**
|
|
920
920
|
* Creates request options for getVMs without sending the request
|
|
921
921
|
* @param {string} [byExpression] Filter by expression (matches VMs with the provided expression)
|
|
922
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues.
|
|
922
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
923
923
|
* @param {number} [page] Page number for pagination
|
|
924
924
|
* @param {number} [pageSize] Number of items per page
|
|
925
925
|
* @throws {RequiredError}
|
|
@@ -931,7 +931,7 @@ export interface DefaultApiInterface {
|
|
|
931
931
|
*
|
|
932
932
|
* @summary Get list of VMs with filtering and pagination
|
|
933
933
|
* @param {string} [byExpression] Filter by expression (matches VMs with the provided expression)
|
|
934
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues.
|
|
934
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
935
935
|
* @param {number} [page] Page number for pagination
|
|
936
936
|
* @param {number} [pageSize] Number of items per page
|
|
937
937
|
* @param {*} [options] Override http request option.
|
|
@@ -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
|
|
|
@@ -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
|
|
package/src/runtime.ts
CHANGED
|
@@ -369,7 +369,7 @@ export function mapValues(data: any, fn: (item: any) => any) {
|
|
|
369
369
|
|
|
370
370
|
export function canConsumeForm(consumes: Consume[]): boolean {
|
|
371
371
|
for (const consume of consumes) {
|
|
372
|
-
if ('multipart/form-data'
|
|
372
|
+
if (consume.contentType?.startsWith('multipart/form-data') == true) {
|
|
373
373
|
return true;
|
|
374
374
|
}
|
|
375
375
|
}
|