@openshift-migration-advisor/agent-sdk 0.12.0-645d2fae3eee → 0.12.0-73dd4924f11b

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 (114) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +15 -3
  4. package/dist/apis/DefaultApi.d.ts +206 -4
  5. package/dist/apis/DefaultApi.js +227 -0
  6. package/dist/esm/apis/DefaultApi.d.ts +206 -4
  7. package/dist/esm/apis/DefaultApi.js +227 -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/ClusterUtilization.d.ts +68 -0
  15. package/dist/esm/models/ClusterUtilization.js +67 -0
  16. package/dist/esm/models/CollectorStartRequest.d.ts +12 -0
  17. package/dist/esm/models/CollectorStartRequest.js +4 -0
  18. package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
  19. package/dist/esm/models/CreateGroupRequest.js +0 -2
  20. package/dist/esm/models/CredentialStatus.d.ts +38 -0
  21. package/dist/esm/models/CredentialStatus.js +47 -0
  22. package/dist/esm/models/Group.d.ts +0 -6
  23. package/dist/esm/models/Group.js +0 -2
  24. package/dist/esm/models/GroupResponse.d.ts +7 -0
  25. package/dist/esm/models/GroupResponse.js +3 -0
  26. package/dist/esm/models/InventoryData.d.ts +7 -0
  27. package/dist/esm/models/InventoryData.js +3 -0
  28. package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
  29. package/dist/esm/models/UpdateGroupRequest.js +0 -2
  30. package/dist/esm/models/VMFilterOptionsResponse.d.ts +56 -0
  31. package/dist/esm/models/VMFilterOptionsResponse.js +59 -0
  32. package/dist/esm/models/VMNIC.d.ts +12 -0
  33. package/dist/esm/models/VMNIC.js +4 -0
  34. package/dist/esm/models/VcenterCredentials.d.ts +12 -0
  35. package/dist/esm/models/VcenterCredentials.js +4 -0
  36. package/dist/esm/models/VirtualMachine.d.ts +14 -2
  37. package/dist/esm/models/VirtualMachine.js +6 -2
  38. package/dist/esm/models/VmInspectionStatus.d.ts +6 -0
  39. package/dist/esm/models/VmInspectionStatus.js +4 -0
  40. package/dist/esm/models/index.d.ts +6 -0
  41. package/dist/esm/models/index.js +6 -0
  42. package/dist/esm/runtime.js +2 -1
  43. package/dist/models/ApplicationListResponse.d.ts +33 -0
  44. package/dist/models/ApplicationListResponse.js +51 -0
  45. package/dist/models/ApplicationOverview.d.ts +51 -0
  46. package/dist/models/ApplicationOverview.js +63 -0
  47. package/dist/models/ApplicationVM.d.ts +38 -0
  48. package/dist/models/ApplicationVM.js +54 -0
  49. package/dist/models/ClusterUtilization.d.ts +68 -0
  50. package/dist/models/ClusterUtilization.js +74 -0
  51. package/dist/models/CollectorStartRequest.d.ts +12 -0
  52. package/dist/models/CollectorStartRequest.js +4 -0
  53. package/dist/models/CreateGroupRequest.d.ts +0 -6
  54. package/dist/models/CreateGroupRequest.js +0 -2
  55. package/dist/models/CredentialStatus.d.ts +38 -0
  56. package/dist/models/CredentialStatus.js +54 -0
  57. package/dist/models/Group.d.ts +0 -6
  58. package/dist/models/Group.js +0 -2
  59. package/dist/models/GroupResponse.d.ts +7 -0
  60. package/dist/models/GroupResponse.js +3 -0
  61. package/dist/models/InventoryData.d.ts +7 -0
  62. package/dist/models/InventoryData.js +3 -0
  63. package/dist/models/UpdateGroupRequest.d.ts +0 -6
  64. package/dist/models/UpdateGroupRequest.js +0 -2
  65. package/dist/models/VMFilterOptionsResponse.d.ts +56 -0
  66. package/dist/models/VMFilterOptionsResponse.js +66 -0
  67. package/dist/models/VMNIC.d.ts +12 -0
  68. package/dist/models/VMNIC.js +4 -0
  69. package/dist/models/VcenterCredentials.d.ts +12 -0
  70. package/dist/models/VcenterCredentials.js +4 -0
  71. package/dist/models/VirtualMachine.d.ts +14 -2
  72. package/dist/models/VirtualMachine.js +6 -2
  73. package/dist/models/VmInspectionStatus.d.ts +6 -0
  74. package/dist/models/VmInspectionStatus.js +4 -0
  75. package/dist/models/index.d.ts +6 -0
  76. package/dist/models/index.js +6 -0
  77. package/dist/runtime.js +2 -1
  78. package/docs/ApplicationListResponse.md +34 -0
  79. package/docs/ApplicationOverview.md +40 -0
  80. package/docs/ApplicationVM.md +36 -0
  81. package/docs/ClusterUtilization.md +46 -0
  82. package/docs/CollectorStartRequest.md +4 -0
  83. package/docs/CreateGroupRequest.md +0 -2
  84. package/docs/CredentialStatus.md +36 -0
  85. package/docs/DefaultApi.md +385 -4
  86. package/docs/Group.md +0 -2
  87. package/docs/GroupResponse.md +2 -0
  88. package/docs/InventoryData.md +2 -0
  89. package/docs/UpdateGroupRequest.md +0 -2
  90. package/docs/VMFilterOptionsResponse.md +42 -0
  91. package/docs/VMNIC.md +4 -0
  92. package/docs/VcenterCredentials.md +4 -0
  93. package/docs/VirtualMachine.md +6 -2
  94. package/docs/VmInspectionStatus.md +2 -0
  95. package/package.json +1 -1
  96. package/src/apis/DefaultApi.ts +405 -4
  97. package/src/models/ApplicationListResponse.ts +74 -0
  98. package/src/models/ApplicationOverview.ts +101 -0
  99. package/src/models/ApplicationVM.ts +75 -0
  100. package/src/models/ClusterUtilization.ts +120 -0
  101. package/src/models/CollectorStartRequest.ts +16 -0
  102. package/src/models/CreateGroupRequest.ts +0 -8
  103. package/src/models/CredentialStatus.ts +75 -0
  104. package/src/models/Group.ts +0 -8
  105. package/src/models/GroupResponse.ts +15 -0
  106. package/src/models/InventoryData.ts +15 -0
  107. package/src/models/UpdateGroupRequest.ts +0 -8
  108. package/src/models/VMFilterOptionsResponse.ts +102 -0
  109. package/src/models/VMNIC.ts +16 -0
  110. package/src/models/VcenterCredentials.ts +16 -0
  111. package/src/models/VirtualMachine.ts +20 -4
  112. package/src/models/VmInspectionStatus.ts +9 -0
  113. package/src/models/index.ts +6 -0
  114. package/src/runtime.ts +1 -1
@@ -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,12 +33,6 @@ export interface CreateGroupRequest {
33
33
  * @memberof CreateGroupRequest
34
34
  */
35
35
  filter: string;
36
- /**
37
- * Tags to apply to matching VMs (only alphanumeric, underscore, and dot allowed)
38
- * @type {Array<string>}
39
- * @memberof CreateGroupRequest
40
- */
41
- tags?: Array<string>;
42
36
  }
43
37
  /**
44
38
  * Check if a given object implements the CreateGroupRequest interface.
@@ -32,7 +32,6 @@ export function CreateGroupRequestFromJSONTyped(json, ignoreDiscriminator) {
32
32
  'name': json['name'],
33
33
  'description': json['description'] == null ? undefined : json['description'],
34
34
  'filter': json['filter'],
35
- 'tags': json['tags'] == null ? undefined : json['tags'],
36
35
  };
37
36
  }
38
37
  export function CreateGroupRequestToJSON(json) {
@@ -46,6 +45,5 @@ export function CreateGroupRequestToJSONTyped(value, ignoreDiscriminator = false
46
45
  'name': value['name'],
47
46
  'description': value['description'],
48
47
  'filter': value['filter'],
49
- 'tags': value['tags'],
50
48
  };
51
49
  }
@@ -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 CredentialStatus
16
+ */
17
+ export interface CredentialStatus {
18
+ /**
19
+ * vCenter URL the credentials belong to
20
+ * @type {string}
21
+ * @memberof CredentialStatus
22
+ */
23
+ url: string;
24
+ /**
25
+ * Whether credentials are stored for the returned URL.
26
+ * @type {boolean}
27
+ * @memberof CredentialStatus
28
+ */
29
+ valid: boolean;
30
+ }
31
+ /**
32
+ * Check if a given object implements the CredentialStatus interface.
33
+ */
34
+ export declare function instanceOfCredentialStatus(value: object): value is CredentialStatus;
35
+ export declare function CredentialStatusFromJSON(json: any): CredentialStatus;
36
+ export declare function CredentialStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): CredentialStatus;
37
+ export declare function CredentialStatusToJSON(json: any): CredentialStatus;
38
+ export declare function CredentialStatusToJSONTyped(value?: CredentialStatus | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
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
+ * Check if a given object implements the CredentialStatus interface.
16
+ */
17
+ export function instanceOfCredentialStatus(value) {
18
+ if (!('url' in value) || value['url'] === undefined)
19
+ return false;
20
+ if (!('valid' in value) || value['valid'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function CredentialStatusFromJSON(json) {
25
+ return CredentialStatusFromJSONTyped(json, false);
26
+ }
27
+ export function CredentialStatusFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'url': json['url'],
33
+ 'valid': json['valid'],
34
+ };
35
+ }
36
+ export function CredentialStatusToJSON(json) {
37
+ return CredentialStatusToJSONTyped(json, false);
38
+ }
39
+ export function CredentialStatusToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'url': value['url'],
45
+ 'valid': value['valid'],
46
+ };
47
+ }
@@ -39,12 +39,6 @@ export interface Group {
39
39
  * @memberof Group
40
40
  */
41
41
  filter: string;
42
- /**
43
- * Tags associated with this group (applied to matching VMs)
44
- * @type {Array<string>}
45
- * @memberof Group
46
- */
47
- tags?: Array<string>;
48
42
  /**
49
43
  * Timestamp when the group was created
50
44
  * @type {Date}
@@ -35,7 +35,6 @@ export function GroupFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'name': json['name'],
36
36
  'description': json['description'] == null ? undefined : json['description'],
37
37
  'filter': json['filter'],
38
- 'tags': json['tags'] == null ? undefined : json['tags'],
39
38
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
40
39
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
41
40
  };
@@ -52,7 +51,6 @@ export function GroupToJSONTyped(value, ignoreDiscriminator = false) {
52
51
  'name': value['name'],
53
52
  'description': value['description'],
54
53
  'filter': value['filter'],
55
- 'tags': value['tags'],
56
54
  'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
57
55
  'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
58
56
  };
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { Group } from './Group.js';
13
+ import type { Inventory } from './Inventory.js';
13
14
  import type { VirtualMachine } from './VirtualMachine.js';
14
15
  /**
15
16
  *
@@ -23,6 +24,12 @@ export interface GroupResponse {
23
24
  * @memberof GroupResponse
24
25
  */
25
26
  group: Group;
27
+ /**
28
+ *
29
+ * @type {Inventory}
30
+ * @memberof GroupResponse
31
+ */
32
+ inventory?: Inventory;
26
33
  /**
27
34
  *
28
35
  * @type {Array<VirtualMachine>}
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { GroupFromJSON, GroupToJSON, } from './Group.js';
15
+ import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
15
16
  import { VirtualMachineFromJSON, VirtualMachineToJSON, } from './VirtualMachine.js';
16
17
  /**
17
18
  * Check if a given object implements the GroupResponse interface.
@@ -38,6 +39,7 @@ export function GroupResponseFromJSONTyped(json, ignoreDiscriminator) {
38
39
  }
39
40
  return {
40
41
  'group': GroupFromJSON(json['group']),
42
+ 'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
41
43
  'vms': (json['vms'].map(VirtualMachineFromJSON)),
42
44
  'total': json['total'],
43
45
  'page': json['page'],
@@ -53,6 +55,7 @@ export function GroupResponseToJSONTyped(value, ignoreDiscriminator = false) {
53
55
  }
54
56
  return {
55
57
  'group': GroupToJSON(value['group']),
58
+ 'inventory': InventoryToJSON(value['inventory']),
56
59
  'vms': (value['vms'].map(VirtualMachineToJSON)),
57
60
  'total': value['total'],
58
61
  'page': value['page'],
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { VCenter } from './VCenter.js';
13
13
  import type { Infra } from './Infra.js';
14
+ import type { ClusterUtilization } from './ClusterUtilization.js';
14
15
  import type { VMs } from './VMs.js';
15
16
  import type { ClusterFeatures } from './ClusterFeatures.js';
16
17
  /**
@@ -31,6 +32,12 @@ export interface InventoryData {
31
32
  * @memberof InventoryData
32
33
  */
33
34
  clusterFeatures?: ClusterFeatures;
35
+ /**
36
+ *
37
+ * @type {ClusterUtilization}
38
+ * @memberof InventoryData
39
+ */
40
+ clusterUtilization?: ClusterUtilization;
34
41
  /**
35
42
  *
36
43
  * @type {VMs}
@@ -13,6 +13,7 @@
13
13
  */
14
14
  import { VCenterFromJSON, VCenterToJSON, } from './VCenter.js';
15
15
  import { InfraFromJSON, InfraToJSON, } from './Infra.js';
16
+ import { ClusterUtilizationFromJSON, ClusterUtilizationToJSON, } from './ClusterUtilization.js';
16
17
  import { VMsFromJSON, VMsToJSON, } from './VMs.js';
17
18
  import { ClusterFeaturesFromJSON, ClusterFeaturesToJSON, } from './ClusterFeatures.js';
18
19
  /**
@@ -35,6 +36,7 @@ export function InventoryDataFromJSONTyped(json, ignoreDiscriminator) {
35
36
  return {
36
37
  'vcenter': json['vcenter'] == null ? undefined : VCenterFromJSON(json['vcenter']),
37
38
  'clusterFeatures': json['clusterFeatures'] == null ? undefined : ClusterFeaturesFromJSON(json['clusterFeatures']),
39
+ 'clusterUtilization': json['clusterUtilization'] == null ? undefined : ClusterUtilizationFromJSON(json['clusterUtilization']),
38
40
  'vms': VMsFromJSON(json['vms']),
39
41
  'infra': InfraFromJSON(json['infra']),
40
42
  };
@@ -49,6 +51,7 @@ export function InventoryDataToJSONTyped(value, ignoreDiscriminator = false) {
49
51
  return {
50
52
  'vcenter': VCenterToJSON(value['vcenter']),
51
53
  'clusterFeatures': ClusterFeaturesToJSON(value['clusterFeatures']),
54
+ 'clusterUtilization': ClusterUtilizationToJSON(value['clusterUtilization']),
52
55
  'vms': VMsToJSON(value['vms']),
53
56
  'infra': InfraToJSON(value['infra']),
54
57
  };
@@ -33,12 +33,6 @@ export interface UpdateGroupRequest {
33
33
  * @memberof UpdateGroupRequest
34
34
  */
35
35
  filter?: string;
36
- /**
37
- * Tags to apply to matching VMs (only alphanumeric, underscore, and dot allowed)
38
- * @type {Array<string>}
39
- * @memberof UpdateGroupRequest
40
- */
41
- tags?: Array<string>;
42
36
  }
43
37
  /**
44
38
  * Check if a given object implements the UpdateGroupRequest interface.
@@ -28,7 +28,6 @@ export function UpdateGroupRequestFromJSONTyped(json, ignoreDiscriminator) {
28
28
  'name': json['name'] == null ? undefined : json['name'],
29
29
  'description': json['description'] == null ? undefined : json['description'],
30
30
  'filter': json['filter'] == null ? undefined : json['filter'],
31
- 'tags': json['tags'] == null ? undefined : json['tags'],
32
31
  };
33
32
  }
34
33
  export function UpdateGroupRequestToJSON(json) {
@@ -42,6 +41,5 @@ export function UpdateGroupRequestToJSONTyped(value, ignoreDiscriminator = false
42
41
  'name': value['name'],
43
42
  'description': value['description'],
44
43
  'filter': value['filter'],
45
- 'tags': value['tags'],
46
44
  };
47
45
  }
@@ -0,0 +1,56 @@
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 VMFilterOptionsResponse
16
+ */
17
+ export interface VMFilterOptionsResponse {
18
+ /**
19
+ * Distinct cluster names
20
+ * @type {Array<string>}
21
+ * @memberof VMFilterOptionsResponse
22
+ */
23
+ clusters: Array<string>;
24
+ /**
25
+ * Distinct datacenter names
26
+ * @type {Array<string>}
27
+ * @memberof VMFilterOptionsResponse
28
+ */
29
+ datacenters: Array<string>;
30
+ /**
31
+ * Distinct concern labels
32
+ * @type {Array<string>}
33
+ * @memberof VMFilterOptionsResponse
34
+ */
35
+ concernLabels: Array<string>;
36
+ /**
37
+ * Distinct concern categories
38
+ * @type {Array<string>}
39
+ * @memberof VMFilterOptionsResponse
40
+ */
41
+ concernCategories: Array<string>;
42
+ /**
43
+ * Distinct detected application names
44
+ * @type {Array<string>}
45
+ * @memberof VMFilterOptionsResponse
46
+ */
47
+ applications: Array<string>;
48
+ }
49
+ /**
50
+ * Check if a given object implements the VMFilterOptionsResponse interface.
51
+ */
52
+ export declare function instanceOfVMFilterOptionsResponse(value: object): value is VMFilterOptionsResponse;
53
+ export declare function VMFilterOptionsResponseFromJSON(json: any): VMFilterOptionsResponse;
54
+ export declare function VMFilterOptionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMFilterOptionsResponse;
55
+ export declare function VMFilterOptionsResponseToJSON(json: any): VMFilterOptionsResponse;
56
+ export declare function VMFilterOptionsResponseToJSONTyped(value?: VMFilterOptionsResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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
+ * Check if a given object implements the VMFilterOptionsResponse interface.
16
+ */
17
+ export function instanceOfVMFilterOptionsResponse(value) {
18
+ if (!('clusters' in value) || value['clusters'] === undefined)
19
+ return false;
20
+ if (!('datacenters' in value) || value['datacenters'] === undefined)
21
+ return false;
22
+ if (!('concernLabels' in value) || value['concernLabels'] === undefined)
23
+ return false;
24
+ if (!('concernCategories' in value) || value['concernCategories'] === undefined)
25
+ return false;
26
+ if (!('applications' in value) || value['applications'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function VMFilterOptionsResponseFromJSON(json) {
31
+ return VMFilterOptionsResponseFromJSONTyped(json, false);
32
+ }
33
+ export function VMFilterOptionsResponseFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'clusters': json['clusters'],
39
+ 'datacenters': json['datacenters'],
40
+ 'concernLabels': json['concernLabels'],
41
+ 'concernCategories': json['concernCategories'],
42
+ 'applications': json['applications'],
43
+ };
44
+ }
45
+ export function VMFilterOptionsResponseToJSON(json) {
46
+ return VMFilterOptionsResponseToJSONTyped(json, false);
47
+ }
48
+ export function VMFilterOptionsResponseToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'clusters': value['clusters'],
54
+ 'datacenters': value['datacenters'],
55
+ 'concernLabels': value['concernLabels'],
56
+ 'concernCategories': value['concernCategories'],
57
+ 'applications': value['applications'],
58
+ };
59
+ }
@@ -33,6 +33,18 @@ export interface VMNIC {
33
33
  * @memberof VMNIC
34
34
  */
35
35
  index?: number;
36
+ /**
37
+ * IPv4 address of this NIC as reported by VMware Tools
38
+ * @type {string}
39
+ * @memberof VMNIC
40
+ */
41
+ ipv4Address?: string;
42
+ /**
43
+ * IPv6 address of this NIC as reported by VMware Tools
44
+ * @type {string}
45
+ * @memberof VMNIC
46
+ */
47
+ ipv6Address?: string;
36
48
  }
37
49
  /**
38
50
  * Check if a given object implements the VMNIC interface.
@@ -28,6 +28,8 @@ export function VMNICFromJSONTyped(json, ignoreDiscriminator) {
28
28
  'mac': json['mac'] == null ? undefined : json['mac'],
29
29
  'network': json['network'] == null ? undefined : json['network'],
30
30
  'index': json['index'] == null ? undefined : json['index'],
31
+ 'ipv4Address': json['ipv4Address'] == null ? undefined : json['ipv4Address'],
32
+ 'ipv6Address': json['ipv6Address'] == null ? undefined : json['ipv6Address'],
31
33
  };
32
34
  }
33
35
  export function VMNICToJSON(json) {
@@ -41,5 +43,7 @@ export function VMNICToJSONTyped(value, ignoreDiscriminator = false) {
41
43
  'mac': value['mac'],
42
44
  'network': value['network'],
43
45
  'index': value['index'],
46
+ 'ipv4Address': value['ipv4Address'],
47
+ 'ipv6Address': value['ipv6Address'],
44
48
  };
45
49
  }
@@ -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
  }
@@ -95,11 +95,11 @@ export interface VirtualMachine {
95
95
  */
96
96
  inspectionConcernCount?: number;
97
97
  /**
98
- * Tags aggregated from matching groups
98
+ * Names of groups this VM matches
99
99
  * @type {Array<string>}
100
100
  * @memberof VirtualMachine
101
101
  */
102
- tags?: Array<string>;
102
+ groups?: Array<string>;
103
103
  /**
104
104
  * User-defined labels for this VM
105
105
  * @type {Array<string>}
@@ -118,6 +118,18 @@ export interface VirtualMachine {
118
118
  * @memberof VirtualMachine
119
119
  */
120
120
  utilization_mem_p95?: number;
121
+ /**
122
+ * CPU utilization at max (%); absent when no utilization data
123
+ * @type {number}
124
+ * @memberof VirtualMachine
125
+ */
126
+ utilization_cpu_max?: number;
127
+ /**
128
+ * Memory utilization at max (%); absent when no utilization data
129
+ * @type {number}
130
+ * @memberof VirtualMachine
131
+ */
132
+ utilization_mem_max?: number;
121
133
  /**
122
134
  * Disk utilization (%); absent when no utilization data
123
135
  * @type {number}
@@ -55,10 +55,12 @@ export function VirtualMachineFromJSONTyped(json, ignoreDiscriminator) {
55
55
  'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
56
56
  'inspectionStatus': json['inspectionStatus'] == null ? undefined : VmInspectionStatusFromJSON(json['inspectionStatus']),
57
57
  'inspectionConcernCount': json['inspectionConcernCount'] == null ? undefined : json['inspectionConcernCount'],
58
- 'tags': json['tags'] == null ? undefined : json['tags'],
58
+ 'groups': json['groups'] == null ? undefined : json['groups'],
59
59
  'labels': json['labels'] == null ? undefined : json['labels'],
60
60
  'utilization_cpu_p95': json['utilization_cpu_p95'] == null ? undefined : json['utilization_cpu_p95'],
61
61
  'utilization_mem_p95': json['utilization_mem_p95'] == null ? undefined : json['utilization_mem_p95'],
62
+ 'utilization_cpu_max': json['utilization_cpu_max'] == null ? undefined : json['utilization_cpu_max'],
63
+ 'utilization_mem_max': json['utilization_mem_max'] == null ? undefined : json['utilization_mem_max'],
62
64
  'utilization_disk': json['utilization_disk'] == null ? undefined : json['utilization_disk'],
63
65
  'utilization_confidence': json['utilization_confidence'] == null ? undefined : json['utilization_confidence'],
64
66
  };
@@ -84,10 +86,12 @@ export function VirtualMachineToJSONTyped(value, ignoreDiscriminator = false) {
84
86
  'migrationExcluded': value['migrationExcluded'],
85
87
  'inspectionStatus': VmInspectionStatusToJSON(value['inspectionStatus']),
86
88
  'inspectionConcernCount': value['inspectionConcernCount'],
87
- 'tags': value['tags'],
89
+ 'groups': value['groups'],
88
90
  'labels': value['labels'],
89
91
  'utilization_cpu_p95': value['utilization_cpu_p95'],
90
92
  'utilization_mem_p95': value['utilization_mem_p95'],
93
+ 'utilization_cpu_max': value['utilization_cpu_max'],
94
+ 'utilization_mem_max': value['utilization_mem_max'],
91
95
  'utilization_disk': value['utilization_disk'],
92
96
  'utilization_confidence': value['utilization_confidence'],
93
97
  };
@@ -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}
@@ -27,6 +27,8 @@ export const VmInspectionStatusStateEnum = {
27
27
  export function instanceOfVmInspectionStatus(value) {
28
28
  if (!('state' in value) || value['state'] === undefined)
29
29
  return false;
30
+ if (!('message' in value) || value['message'] === undefined)
31
+ return false;
30
32
  return true;
31
33
  }
32
34
  export function VmInspectionStatusFromJSON(json) {
@@ -38,6 +40,7 @@ export function VmInspectionStatusFromJSONTyped(json, ignoreDiscriminator) {
38
40
  }
39
41
  return {
40
42
  'state': json['state'],
43
+ 'message': json['message'],
41
44
  'error': json['error'] == null ? undefined : json['error'],
42
45
  'results': json['results'] == null ? undefined : json['results'],
43
46
  };
@@ -51,6 +54,7 @@ export function VmInspectionStatusToJSONTyped(value, ignoreDiscriminator = false
51
54
  }
52
55
  return {
53
56
  'state': value['state'],
57
+ 'message': value['message'],
54
58
  'error': value['error'],
55
59
  'results': value['results'],
56
60
  };
@@ -1,10 +1,15 @@
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';
8
+ export * from './ClusterUtilization.js';
5
9
  export * from './CollectorStartRequest.js';
6
10
  export * from './CollectorStatus.js';
7
11
  export * from './CreateGroupRequest.js';
12
+ export * from './CredentialStatus.js';
8
13
  export * from './Datastore.js';
9
14
  export * from './DatastoreDetail.js';
10
15
  export * from './DatastorePair.js';
@@ -51,6 +56,7 @@ export * from './UpdateLabelVMsRequest.js';
51
56
  export * from './VCenter.js';
52
57
  export * from './VMDevice.js';
53
58
  export * from './VMDisk.js';
59
+ export * from './VMFilterOptionsResponse.js';
54
60
  export * from './VMIssue.js';
55
61
  export * from './VMLabelsResponse.js';
56
62
  export * from './VMNIC.js';
@@ -2,11 +2,16 @@
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';
10
+ export * from './ClusterUtilization.js';
7
11
  export * from './CollectorStartRequest.js';
8
12
  export * from './CollectorStatus.js';
9
13
  export * from './CreateGroupRequest.js';
14
+ export * from './CredentialStatus.js';
10
15
  export * from './Datastore.js';
11
16
  export * from './DatastoreDetail.js';
12
17
  export * from './DatastorePair.js';
@@ -53,6 +58,7 @@ export * from './UpdateLabelVMsRequest.js';
53
58
  export * from './VCenter.js';
54
59
  export * from './VMDevice.js';
55
60
  export * from './VMDisk.js';
61
+ export * from './VMFilterOptionsResponse.js';
56
62
  export * from './VMIssue.js';
57
63
  export * from './VMLabelsResponse.js';
58
64
  export * from './VMNIC.js';
@@ -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' === consume.contentType) {
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
  }