@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
@@ -5,11 +5,16 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
5
5
  | Method | HTTP request | Description |
6
6
  |------------- | ------------- | -------------|
7
7
  | [**createGroup**](DefaultApi.md#creategroupoperation) | **POST** /groups | Create a new group |
8
+ | [**deleteCredentials**](DefaultApi.md#deletecredentials) | **DELETE** /credentials | Delete stored credentials |
8
9
  | [**deleteForecasterRun**](DefaultApi.md#deleteforecasterrun) | **DELETE** /forecaster/runs/{id} | Delete a benchmark run |
9
10
  | [**deleteGroup**](DefaultApi.md#deletegroup) | **DELETE** /groups/{id} | Delete group |
10
11
  | [**deleteLabelGlobally**](DefaultApi.md#deletelabelglobally) | **DELETE** /vms/labels/{label} | Delete label from all VMs |
11
12
  | [**getAgentStatus**](DefaultApi.md#getagentstatus) | **GET** /agent | Get agent status |
13
+ | [**getApplications**](DefaultApi.md#getapplications) | **GET** /applications | List detected applications running on VMs |
14
+ | [**getClusterUtilization**](DefaultApi.md#getclusterutilization) | **GET** /clusters/{cluster_id}/utilization | Get latest cluster utilization by cluster ID |
12
15
  | [**getCollectorStatus**](DefaultApi.md#getcollectorstatus) | **GET** /collector | Get collector status |
16
+ | [**getCredentialCapabilities**](DefaultApi.md#getcredentialcapabilities) | **GET** /credentials/capabilities | Check vSphere operation capabilities |
17
+ | [**getCredentials**](DefaultApi.md#getcredentials) | **GET** /credentials | Get stored credential status |
13
18
  | [**getForecasterDatastores**](DefaultApi.md#getforecasterdatastores) | **POST** /forecaster/datastores | List available datastores |
14
19
  | [**getForecasterRuns**](DefaultApi.md#getforecasterruns) | **GET** /forecaster/runs | List benchmark runs |
15
20
  | [**getForecasterStats**](DefaultApi.md#getforecasterstats) | **GET** /forecaster/stats | Get throughput statistics |
@@ -32,6 +37,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
32
37
  | [**listRightsizingReportClusters**](DefaultApi.md#listrightsizingreportclusters) | **GET** /rightsizing/{report_id}/clusters | Get cluster-level utilization aggregates for a specific report |
33
38
  | [**listRightsizingReports**](DefaultApi.md#listrightsizingreports) | **GET** /rightsizing | List all rightsizing reports |
34
39
  | [**postForecasterPairCapabilities**](DefaultApi.md#postforecasterpaircapabilities) | **POST** /forecaster/capabilities | Compute pair capabilities |
40
+ | [**putCredentials**](DefaultApi.md#putcredentials) | **PUT** /credentials | Store vCenter credentials |
35
41
  | [**putForecasterCredentials**](DefaultApi.md#putforecastercredentials) | **PUT** /forecaster/credentials | Verify vCenter credentials and permissions |
36
42
  | [**putInspectorVddk**](DefaultApi.md#putinspectorvddk) | **PUT** /inspector/vddk | Upload VDDK tarball |
37
43
  | [**removeVMFromInspection**](DefaultApi.md#removevmfrominspection) | **DELETE** /vms/{id}/inspection | Remove VirtualMachine from inspection queue |
@@ -118,6 +124,66 @@ No authorization required
118
124
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
119
125
 
120
126
 
127
+ ## deleteCredentials
128
+
129
+ > deleteCredentials()
130
+
131
+ Delete stored credentials
132
+
133
+ Removes all stored vCenter credentials from the database.
134
+
135
+ ### Example
136
+
137
+ ```ts
138
+ import {
139
+ Configuration,
140
+ DefaultApi,
141
+ } from '@openshift-migration-advisor/agent-sdk';
142
+ import type { DeleteCredentialsRequest } from '@openshift-migration-advisor/agent-sdk';
143
+
144
+ async function example() {
145
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
146
+ const api = new DefaultApi();
147
+
148
+ try {
149
+ const data = await api.deleteCredentials();
150
+ console.log(data);
151
+ } catch (error) {
152
+ console.error(error);
153
+ }
154
+ }
155
+
156
+ // Run the test
157
+ example().catch(console.error);
158
+ ```
159
+
160
+ ### Parameters
161
+
162
+ This endpoint does not need any parameter.
163
+
164
+ ### Return type
165
+
166
+ `void` (Empty response body)
167
+
168
+ ### Authorization
169
+
170
+ No authorization required
171
+
172
+ ### HTTP request headers
173
+
174
+ - **Content-Type**: Not defined
175
+ - **Accept**: Not defined
176
+
177
+
178
+ ### HTTP response details
179
+ | Status code | Description | Response headers |
180
+ |-------------|-------------|------------------|
181
+ | **204** | Credentials deleted | - |
182
+ | **500** | Internal server error | - |
183
+
184
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
185
+
186
+
121
187
  ## deleteForecasterRun
122
188
 
123
189
  > deleteForecasterRun(id)
@@ -207,7 +273,7 @@ async function example() {
207
273
 
208
274
  const body = {
209
275
  // string | Group ID
210
- id: id_example,
276
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
211
277
  } satisfies DeleteGroupRequest;
212
278
 
213
279
  try {
@@ -377,6 +443,132 @@ No authorization required
377
443
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
378
444
 
379
445
 
446
+ ## getApplications
447
+
448
+ > ApplicationListResponse getApplications()
449
+
450
+ List detected applications running on VMs
451
+
452
+ ### Example
453
+
454
+ ```ts
455
+ import {
456
+ Configuration,
457
+ DefaultApi,
458
+ } from '@openshift-migration-advisor/agent-sdk';
459
+ import type { GetApplicationsRequest } from '@openshift-migration-advisor/agent-sdk';
460
+
461
+ async function example() {
462
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
463
+ const api = new DefaultApi();
464
+
465
+ try {
466
+ const data = await api.getApplications();
467
+ console.log(data);
468
+ } catch (error) {
469
+ console.error(error);
470
+ }
471
+ }
472
+
473
+ // Run the test
474
+ example().catch(console.error);
475
+ ```
476
+
477
+ ### Parameters
478
+
479
+ This endpoint does not need any parameter.
480
+
481
+ ### Return type
482
+
483
+ [**ApplicationListResponse**](ApplicationListResponse.md)
484
+
485
+ ### Authorization
486
+
487
+ No authorization required
488
+
489
+ ### HTTP request headers
490
+
491
+ - **Content-Type**: Not defined
492
+ - **Accept**: `application/json`
493
+
494
+
495
+ ### HTTP response details
496
+ | Status code | Description | Response headers |
497
+ |-------------|-------------|------------------|
498
+ | **200** | List of applications with matching VMs | - |
499
+ | **500** | Internal server error | - |
500
+
501
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
502
+
503
+
504
+ ## getClusterUtilization
505
+
506
+ > RightsizingClusterResponse getClusterUtilization(clusterId)
507
+
508
+ Get latest cluster utilization by cluster ID
509
+
510
+ ### Example
511
+
512
+ ```ts
513
+ import {
514
+ Configuration,
515
+ DefaultApi,
516
+ } from '@openshift-migration-advisor/agent-sdk';
517
+ import type { GetClusterUtilizationRequest } from '@openshift-migration-advisor/agent-sdk';
518
+
519
+ async function example() {
520
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
521
+ const api = new DefaultApi();
522
+
523
+ const body = {
524
+ // string | vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\")
525
+ clusterId: clusterId_example,
526
+ } satisfies GetClusterUtilizationRequest;
527
+
528
+ try {
529
+ const data = await api.getClusterUtilization(body);
530
+ console.log(data);
531
+ } catch (error) {
532
+ console.error(error);
533
+ }
534
+ }
535
+
536
+ // Run the test
537
+ example().catch(console.error);
538
+ ```
539
+
540
+ ### Parameters
541
+
542
+
543
+ | Name | Type | Description | Notes |
544
+ |------------- | ------------- | ------------- | -------------|
545
+ | **clusterId** | `string` | vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\") | [Defaults to `undefined`] |
546
+
547
+ ### Return type
548
+
549
+ [**RightsizingClusterResponse**](RightsizingClusterResponse.md)
550
+
551
+ ### Authorization
552
+
553
+ No authorization required
554
+
555
+ ### HTTP request headers
556
+
557
+ - **Content-Type**: Not defined
558
+ - **Accept**: `application/json`
559
+
560
+
561
+ ### HTTP response details
562
+ | Status code | Description | Response headers |
563
+ |-------------|-------------|------------------|
564
+ | **200** | Cluster utilization data from the latest completed rightsizing report | - |
565
+ | **400** | Invalid cluster_id format | - |
566
+ | **404** | No completed rightsizing report found, or cluster not found in report | - |
567
+ | **500** | Internal server error | - |
568
+
569
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
570
+
571
+
380
572
  ## getCollectorStatus
381
573
 
382
574
  > CollectorStatus getCollectorStatus()
@@ -435,6 +627,128 @@ No authorization required
435
627
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
436
628
 
437
629
 
630
+ ## getCredentialCapabilities
631
+
632
+ > CapabilityStatus getCredentialCapabilities()
633
+
634
+ Check vSphere operation capabilities
635
+
636
+ Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
637
+
638
+ ### Example
639
+
640
+ ```ts
641
+ import {
642
+ Configuration,
643
+ DefaultApi,
644
+ } from '@openshift-migration-advisor/agent-sdk';
645
+ import type { GetCredentialCapabilitiesRequest } from '@openshift-migration-advisor/agent-sdk';
646
+
647
+ async function example() {
648
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
649
+ const api = new DefaultApi();
650
+
651
+ try {
652
+ const data = await api.getCredentialCapabilities();
653
+ console.log(data);
654
+ } catch (error) {
655
+ console.error(error);
656
+ }
657
+ }
658
+
659
+ // Run the test
660
+ example().catch(console.error);
661
+ ```
662
+
663
+ ### Parameters
664
+
665
+ This endpoint does not need any parameter.
666
+
667
+ ### Return type
668
+
669
+ [**CapabilityStatus**](CapabilityStatus.md)
670
+
671
+ ### Authorization
672
+
673
+ No authorization required
674
+
675
+ ### HTTP request headers
676
+
677
+ - **Content-Type**: Not defined
678
+ - **Accept**: `application/json`
679
+
680
+
681
+ ### HTTP response details
682
+ | Status code | Description | Response headers |
683
+ |-------------|-------------|------------------|
684
+ | **200** | Capability status per operation | - |
685
+ | **404** | No credentials stored | - |
686
+ | **500** | Internal server error | - |
687
+
688
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
689
+
690
+
691
+ ## getCredentials
692
+
693
+ > CredentialStatus getCredentials()
694
+
695
+ Get stored credential status
696
+
697
+ Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
698
+
699
+ ### Example
700
+
701
+ ```ts
702
+ import {
703
+ Configuration,
704
+ DefaultApi,
705
+ } from '@openshift-migration-advisor/agent-sdk';
706
+ import type { GetCredentialsRequest } from '@openshift-migration-advisor/agent-sdk';
707
+
708
+ async function example() {
709
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
710
+ const api = new DefaultApi();
711
+
712
+ try {
713
+ const data = await api.getCredentials();
714
+ console.log(data);
715
+ } catch (error) {
716
+ console.error(error);
717
+ }
718
+ }
719
+
720
+ // Run the test
721
+ example().catch(console.error);
722
+ ```
723
+
724
+ ### Parameters
725
+
726
+ This endpoint does not need any parameter.
727
+
728
+ ### Return type
729
+
730
+ [**CredentialStatus**](CredentialStatus.md)
731
+
732
+ ### Authorization
733
+
734
+ No authorization required
735
+
736
+ ### HTTP request headers
737
+
738
+ - **Content-Type**: Not defined
739
+ - **Accept**: `application/json`
740
+
741
+
742
+ ### HTTP response details
743
+ | Status code | Description | Response headers |
744
+ |-------------|-------------|------------------|
745
+ | **200** | Credential status | - |
746
+ | **404** | No credentials stored | - |
747
+ | **500** | Internal server error | - |
748
+
749
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
750
+
751
+
438
752
  ## getForecasterDatastores
439
753
 
440
754
  > Array<DatastoreDetail> getForecasterDatastores(forecasterDatastoresRequest)
@@ -720,8 +1034,8 @@ async function example() {
720
1034
 
721
1035
  const body = {
722
1036
  // string | Group ID
723
- id: id_example,
724
- // 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)
1037
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
1038
+ // 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)
725
1039
  sort: ["cluster:asc","name:desc"],
726
1040
  // number | Page number for pagination (optional)
727
1041
  page: 56,
@@ -747,7 +1061,7 @@ example().catch(console.error);
747
1061
  | Name | Type | Description | Notes |
748
1062
  |------------- | ------------- | ------------- | -------------|
749
1063
  | **id** | `string` | Group ID | [Defaults to `undefined`] |
750
- | **sort** | `Array<string>` | Sort fields with direction (e.g., \&quot;name:asc\&quot; or \&quot;cluster:desc,name:asc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues. | [Optional] |
1064
+ | **sort** | `Array<string>` | Sort fields with direction (e.g., \&quot;name:asc\&quot; or \&quot;cluster:desc,name:asc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. | [Optional] |
751
1065
  | **page** | `number` | Page number for pagination | [Optional] [Defaults to `1`] |
752
1066
  | **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `undefined`] |
753
1067
 
@@ -1458,7 +1772,7 @@ async function example() {
1458
1772
  const body = {
1459
1773
  // string | Filter by expression (matches VMs with the provided expression) (optional)
1460
1774
  byExpression: exp1,
1461
- // 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)
1775
+ // 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)
1462
1776
  sort: ["cluster:asc","name:desc"],
1463
1777
  // number | Page number for pagination (optional)
1464
1778
  page: 56,
@@ -1484,7 +1798,7 @@ example().catch(console.error);
1484
1798
  | Name | Type | Description | Notes |
1485
1799
  |------------- | ------------- | ------------- | -------------|
1486
1800
  | **byExpression** | `string` | Filter by expression (matches VMs with the provided expression) | [Optional] [Defaults to `undefined`] |
1487
- | **sort** | `Array<string>` | Sort fields with direction (e.g., \&quot;name:asc\&quot; or \&quot;cluster:desc,name:asc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues. | [Optional] |
1801
+ | **sort** | `Array<string>` | Sort fields with direction (e.g., \&quot;name:asc\&quot; or \&quot;cluster:desc,name:asc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. | [Optional] |
1488
1802
  | **page** | `number` | Page number for pagination | [Optional] [Defaults to `1`] |
1489
1803
  | **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `undefined`] |
1490
1804
 
@@ -1897,6 +2211,76 @@ No authorization required
1897
2211
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1898
2212
 
1899
2213
 
2214
+ ## putCredentials
2215
+
2216
+ > CredentialStatus putCredentials(vcenterCredentials)
2217
+
2218
+ Store vCenter credentials
2219
+
2220
+ Validates credentials against vSphere, encrypts with disk-based key, and stores in the local database as the active credential set. A subsequent PUT overwrites the previously stored credentials.
2221
+
2222
+ ### Example
2223
+
2224
+ ```ts
2225
+ import {
2226
+ Configuration,
2227
+ DefaultApi,
2228
+ } from '@openshift-migration-advisor/agent-sdk';
2229
+ import type { PutCredentialsRequest } from '@openshift-migration-advisor/agent-sdk';
2230
+
2231
+ async function example() {
2232
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
2233
+ const api = new DefaultApi();
2234
+
2235
+ const body = {
2236
+ // VcenterCredentials
2237
+ vcenterCredentials: ...,
2238
+ } satisfies PutCredentialsRequest;
2239
+
2240
+ try {
2241
+ const data = await api.putCredentials(body);
2242
+ console.log(data);
2243
+ } catch (error) {
2244
+ console.error(error);
2245
+ }
2246
+ }
2247
+
2248
+ // Run the test
2249
+ example().catch(console.error);
2250
+ ```
2251
+
2252
+ ### Parameters
2253
+
2254
+
2255
+ | Name | Type | Description | Notes |
2256
+ |------------- | ------------- | ------------- | -------------|
2257
+ | **vcenterCredentials** | [VcenterCredentials](VcenterCredentials.md) | | |
2258
+
2259
+ ### Return type
2260
+
2261
+ [**CredentialStatus**](CredentialStatus.md)
2262
+
2263
+ ### Authorization
2264
+
2265
+ No authorization required
2266
+
2267
+ ### HTTP request headers
2268
+
2269
+ - **Content-Type**: `application/json`
2270
+ - **Accept**: `application/json`
2271
+
2272
+
2273
+ ### HTTP response details
2274
+ | Status code | Description | Response headers |
2275
+ |-------------|-------------|------------------|
2276
+ | **201** | Credentials created and stored | - |
2277
+ | **200** | Credentials validated and stored | - |
2278
+ | **400** | Invalid credentials or unreachable vCenter | - |
2279
+ | **500** | Internal server error | - |
2280
+
2281
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
2282
+
2283
+
1900
2284
  ## putForecasterCredentials
1901
2285
 
1902
2286
  > putForecasterCredentials(vcenterCredentials)
@@ -2714,7 +3098,7 @@ async function example() {
2714
3098
 
2715
3099
  const body = {
2716
3100
  // string | Group ID
2717
- id: id_example,
3101
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
2718
3102
  // UpdateGroupRequest
2719
3103
  updateGroupRequest: ...,
2720
3104
  } satisfies UpdateGroupOperationRequest;
@@ -0,0 +1,36 @@
1
+
2
+ # OperationCapability
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `enabled` | boolean
10
+ `missingPrivileges` | Array&lt;string&gt;
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { OperationCapability } from '@openshift-migration-advisor/agent-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "enabled": null,
20
+ "missingPrivileges": null,
21
+ } satisfies OperationCapability
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 OperationCapability
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
+
@@ -10,6 +10,7 @@ Name | Type
10
10
  `datacenters` | Array&lt;string&gt;
11
11
  `concernLabels` | Array&lt;string&gt;
12
12
  `concernCategories` | Array&lt;string&gt;
13
+ `applications` | Array&lt;string&gt;
13
14
 
14
15
  ## Example
15
16
 
@@ -22,6 +23,7 @@ const example = {
22
23
  "datacenters": null,
23
24
  "concernLabels": null,
24
25
  "concernCategories": null,
26
+ "applications": null,
25
27
  } satisfies VMFilterOptionsResponse
26
28
 
27
29
  console.log(example)
package/docs/VMNIC.md CHANGED
@@ -9,6 +9,8 @@ Name | Type
9
9
  `mac` | string
10
10
  `network` | string
11
11
  `index` | number
12
+ `ipv4Address` | string
13
+ `ipv6Address` | string
12
14
 
13
15
  ## Example
14
16
 
@@ -20,6 +22,8 @@ const example = {
20
22
  "mac": null,
21
23
  "network": null,
22
24
  "index": null,
25
+ "ipv4Address": null,
26
+ "ipv6Address": null,
23
27
  } satisfies VMNIC
24
28
 
25
29
  console.log(example)
@@ -9,6 +9,8 @@ Name | Type
9
9
  `url` | string
10
10
  `username` | string
11
11
  `password` | string
12
+ `cacert` | string
13
+ `skipTls` | boolean
12
14
 
13
15
  ## Example
14
16
 
@@ -20,6 +22,8 @@ const example = {
20
22
  "url": null,
21
23
  "username": null,
22
24
  "password": null,
25
+ "cacert": null,
26
+ "skipTls": null,
23
27
  } satisfies VcenterCredentials
24
28
 
25
29
  console.log(example)
@@ -7,6 +7,7 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `state` | string
10
+ `message` | string
10
11
  `error` | string
11
12
  `results` | object
12
13
 
@@ -18,6 +19,7 @@ import type { VmInspectionStatus } from '@openshift-migration-advisor/agent-sdk'
18
19
  // TODO: Update the object below with actual values
19
20
  const example = {
20
21
  "state": null,
22
+ "message": null,
21
23
  "error": null,
22
24
  "results": null,
23
25
  } satisfies VmInspectionStatus
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/agent-sdk",
3
- "version": "0.12.0-f90a4cad59fa",
3
+ "version": "0.16.0",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/agent-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {