@openshift-migration-advisor/agent-sdk 0.12.0-6a69e0e34d95 → 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.
- package/.openapi-generator/FILES +8 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +11 -3
- package/dist/apis/DefaultApi.d.ts +140 -4
- package/dist/apis/DefaultApi.js +152 -0
- package/dist/esm/apis/DefaultApi.d.ts +140 -4
- package/dist/esm/apis/DefaultApi.js +152 -0
- package/dist/esm/models/ApplicationListResponse.d.ts +33 -0
- package/dist/esm/models/ApplicationListResponse.js +44 -0
- package/dist/esm/models/ApplicationOverview.d.ts +51 -0
- package/dist/esm/models/ApplicationOverview.js +56 -0
- package/dist/esm/models/ApplicationVM.d.ts +38 -0
- package/dist/esm/models/ApplicationVM.js +47 -0
- package/dist/esm/models/CollectorStartRequest.d.ts +12 -0
- package/dist/esm/models/CollectorStartRequest.js +4 -0
- package/dist/esm/models/CredentialStatus.d.ts +38 -0
- package/dist/esm/models/CredentialStatus.js +47 -0
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +6 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +4 -0
- package/dist/esm/models/VcenterCredentials.d.ts +12 -0
- package/dist/esm/models/VcenterCredentials.js +4 -0
- package/dist/esm/models/VmInspectionStatus.d.ts +6 -0
- package/dist/esm/models/VmInspectionStatus.js +4 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/runtime.js +2 -1
- package/dist/models/ApplicationListResponse.d.ts +33 -0
- package/dist/models/ApplicationListResponse.js +51 -0
- package/dist/models/ApplicationOverview.d.ts +51 -0
- package/dist/models/ApplicationOverview.js +63 -0
- package/dist/models/ApplicationVM.d.ts +38 -0
- package/dist/models/ApplicationVM.js +54 -0
- package/dist/models/CollectorStartRequest.d.ts +12 -0
- package/dist/models/CollectorStartRequest.js +4 -0
- package/dist/models/CredentialStatus.d.ts +38 -0
- package/dist/models/CredentialStatus.js +54 -0
- package/dist/models/VMFilterOptionsResponse.d.ts +6 -0
- package/dist/models/VMFilterOptionsResponse.js +4 -0
- package/dist/models/VcenterCredentials.d.ts +12 -0
- package/dist/models/VcenterCredentials.js +4 -0
- package/dist/models/VmInspectionStatus.d.ts +6 -0
- package/dist/models/VmInspectionStatus.js +4 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/runtime.js +2 -1
- package/docs/ApplicationListResponse.md +34 -0
- package/docs/ApplicationOverview.md +40 -0
- package/docs/ApplicationVM.md +36 -0
- package/docs/CollectorStartRequest.md +4 -0
- package/docs/CredentialStatus.md +36 -0
- package/docs/DefaultApi.md +257 -4
- package/docs/VMFilterOptionsResponse.md +2 -0
- package/docs/VcenterCredentials.md +4 -0
- package/docs/VmInspectionStatus.md +2 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +270 -4
- package/src/models/ApplicationListResponse.ts +74 -0
- package/src/models/ApplicationOverview.ts +101 -0
- package/src/models/ApplicationVM.ts +75 -0
- package/src/models/CollectorStartRequest.ts +16 -0
- package/src/models/CredentialStatus.ts +75 -0
- package/src/models/VMFilterOptionsResponse.ts +9 -0
- package/src/models/VcenterCredentials.ts +16 -0
- package/src/models/VmInspectionStatus.ts +9 -0
- package/src/models/index.ts +4 -0
- package/src/runtime.ts +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -4,12 +4,16 @@
|
|
|
4
4
|
README.md
|
|
5
5
|
docs/AgentModeRequest.md
|
|
6
6
|
docs/AgentStatus.md
|
|
7
|
+
docs/ApplicationListResponse.md
|
|
8
|
+
docs/ApplicationOverview.md
|
|
9
|
+
docs/ApplicationVM.md
|
|
7
10
|
docs/BenchmarkRun.md
|
|
8
11
|
docs/ClusterFeatures.md
|
|
9
12
|
docs/ClusterUtilization.md
|
|
10
13
|
docs/CollectorStartRequest.md
|
|
11
14
|
docs/CollectorStatus.md
|
|
12
15
|
docs/CreateGroupRequest.md
|
|
16
|
+
docs/CredentialStatus.md
|
|
13
17
|
docs/Datastore.md
|
|
14
18
|
docs/DatastoreDetail.md
|
|
15
19
|
docs/DatastorePair.md
|
|
@@ -80,12 +84,16 @@ src/apis/index.ts
|
|
|
80
84
|
src/index.ts
|
|
81
85
|
src/models/AgentModeRequest.ts
|
|
82
86
|
src/models/AgentStatus.ts
|
|
87
|
+
src/models/ApplicationListResponse.ts
|
|
88
|
+
src/models/ApplicationOverview.ts
|
|
89
|
+
src/models/ApplicationVM.ts
|
|
83
90
|
src/models/BenchmarkRun.ts
|
|
84
91
|
src/models/ClusterFeatures.ts
|
|
85
92
|
src/models/ClusterUtilization.ts
|
|
86
93
|
src/models/CollectorStartRequest.ts
|
|
87
94
|
src/models/CollectorStatus.ts
|
|
88
95
|
src/models/CreateGroupRequest.ts
|
|
96
|
+
src/models/CredentialStatus.ts
|
|
89
97
|
src/models/Datastore.ts
|
|
90
98
|
src/models/DatastoreDetail.ts
|
|
91
99
|
src/models/DatastorePair.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.24.0-SNAPSHOT
|
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-73dd4924f11b
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -51,12 +51,15 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
51
51
|
| Class | Method | HTTP request | Description
|
|
52
52
|
| ----- | ------ | ------------ | -------------
|
|
53
53
|
*DefaultApi* | [**createGroup**](docs/DefaultApi.md#creategroupoperation) | **POST** /groups | Create a new group
|
|
54
|
+
*DefaultApi* | [**deleteCredentials**](docs/DefaultApi.md#deletecredentials) | **DELETE** /credentials | Delete stored credentials
|
|
54
55
|
*DefaultApi* | [**deleteForecasterRun**](docs/DefaultApi.md#deleteforecasterrun) | **DELETE** /forecaster/runs/{id} | Delete a benchmark run
|
|
55
56
|
*DefaultApi* | [**deleteGroup**](docs/DefaultApi.md#deletegroup) | **DELETE** /groups/{id} | Delete group
|
|
56
57
|
*DefaultApi* | [**deleteLabelGlobally**](docs/DefaultApi.md#deletelabelglobally) | **DELETE** /vms/labels/{label} | Delete label from all VMs
|
|
57
58
|
*DefaultApi* | [**getAgentStatus**](docs/DefaultApi.md#getagentstatus) | **GET** /agent | Get agent status
|
|
59
|
+
*DefaultApi* | [**getApplications**](docs/DefaultApi.md#getapplications) | **GET** /applications | List detected applications running on VMs
|
|
58
60
|
*DefaultApi* | [**getClusterUtilization**](docs/DefaultApi.md#getclusterutilization) | **GET** /clusters/{cluster_id}/utilization | Get latest cluster utilization by cluster ID
|
|
59
61
|
*DefaultApi* | [**getCollectorStatus**](docs/DefaultApi.md#getcollectorstatus) | **GET** /collector | Get collector status
|
|
62
|
+
*DefaultApi* | [**getCredentials**](docs/DefaultApi.md#getcredentials) | **GET** /credentials | Get stored credential status
|
|
60
63
|
*DefaultApi* | [**getForecasterDatastores**](docs/DefaultApi.md#getforecasterdatastores) | **POST** /forecaster/datastores | List available datastores
|
|
61
64
|
*DefaultApi* | [**getForecasterRuns**](docs/DefaultApi.md#getforecasterruns) | **GET** /forecaster/runs | List benchmark runs
|
|
62
65
|
*DefaultApi* | [**getForecasterStats**](docs/DefaultApi.md#getforecasterstats) | **GET** /forecaster/stats | Get throughput statistics
|
|
@@ -79,6 +82,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
79
82
|
*DefaultApi* | [**listRightsizingReportClusters**](docs/DefaultApi.md#listrightsizingreportclusters) | **GET** /rightsizing/{report_id}/clusters | Get cluster-level utilization aggregates for a specific report
|
|
80
83
|
*DefaultApi* | [**listRightsizingReports**](docs/DefaultApi.md#listrightsizingreports) | **GET** /rightsizing | List all rightsizing reports
|
|
81
84
|
*DefaultApi* | [**postForecasterPairCapabilities**](docs/DefaultApi.md#postforecasterpaircapabilities) | **POST** /forecaster/capabilities | Compute pair capabilities
|
|
85
|
+
*DefaultApi* | [**putCredentials**](docs/DefaultApi.md#putcredentials) | **PUT** /credentials | Store vCenter credentials
|
|
82
86
|
*DefaultApi* | [**putForecasterCredentials**](docs/DefaultApi.md#putforecastercredentials) | **PUT** /forecaster/credentials | Verify vCenter credentials and permissions
|
|
83
87
|
*DefaultApi* | [**putInspectorVddk**](docs/DefaultApi.md#putinspectorvddk) | **PUT** /inspector/vddk | Upload VDDK tarball
|
|
84
88
|
*DefaultApi* | [**removeVMFromInspection**](docs/DefaultApi.md#removevmfrominspection) | **DELETE** /vms/{id}/inspection | Remove VirtualMachine from inspection queue
|
|
@@ -101,12 +105,16 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
101
105
|
|
|
102
106
|
- [AgentModeRequest](docs/AgentModeRequest.md)
|
|
103
107
|
- [AgentStatus](docs/AgentStatus.md)
|
|
108
|
+
- [ApplicationListResponse](docs/ApplicationListResponse.md)
|
|
109
|
+
- [ApplicationOverview](docs/ApplicationOverview.md)
|
|
110
|
+
- [ApplicationVM](docs/ApplicationVM.md)
|
|
104
111
|
- [BenchmarkRun](docs/BenchmarkRun.md)
|
|
105
112
|
- [ClusterFeatures](docs/ClusterFeatures.md)
|
|
106
113
|
- [ClusterUtilization](docs/ClusterUtilization.md)
|
|
107
114
|
- [CollectorStartRequest](docs/CollectorStartRequest.md)
|
|
108
115
|
- [CollectorStatus](docs/CollectorStatus.md)
|
|
109
116
|
- [CreateGroupRequest](docs/CreateGroupRequest.md)
|
|
117
|
+
- [CredentialStatus](docs/CredentialStatus.md)
|
|
110
118
|
- [Datastore](docs/Datastore.md)
|
|
111
119
|
- [DatastoreDetail](docs/DatastoreDetail.md)
|
|
112
120
|
- [DatastorePair](docs/DatastorePair.md)
|
|
@@ -183,8 +191,8 @@ and is automatically generated by the
|
|
|
183
191
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
184
192
|
|
|
185
193
|
- API version: `v1`
|
|
186
|
-
- Package version: `0.12.0-
|
|
187
|
-
- Generator version: `7.
|
|
194
|
+
- Package version: `0.12.0-73dd4924f11b`
|
|
195
|
+
- Generator version: `7.24.0-SNAPSHOT`
|
|
188
196
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
189
197
|
|
|
190
198
|
The generated npm module supports the following:
|
|
@@ -12,10 +12,12 @@
|
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
13
|
import { type AgentModeRequest } from '../models/AgentModeRequest.js';
|
|
14
14
|
import { type AgentStatus } from '../models/AgentStatus.js';
|
|
15
|
+
import { type ApplicationListResponse } from '../models/ApplicationListResponse.js';
|
|
15
16
|
import { type BenchmarkRun } from '../models/BenchmarkRun.js';
|
|
16
17
|
import { type CollectorStartRequest } from '../models/CollectorStartRequest.js';
|
|
17
18
|
import { type CollectorStatus } from '../models/CollectorStatus.js';
|
|
18
19
|
import { type CreateGroupRequest } from '../models/CreateGroupRequest.js';
|
|
20
|
+
import { type CredentialStatus } from '../models/CredentialStatus.js';
|
|
19
21
|
import { type DatastoreDetail } from '../models/DatastoreDetail.js';
|
|
20
22
|
import { type DeleteLabelGloballyResponse } from '../models/DeleteLabelGloballyResponse.js';
|
|
21
23
|
import { type ForecastStats } from '../models/ForecastStats.js';
|
|
@@ -124,6 +126,9 @@ export interface ListRightsizingReportClustersRequest {
|
|
|
124
126
|
export interface PostForecasterPairCapabilitiesRequest {
|
|
125
127
|
pairCapabilityRequest: PairCapabilityRequest;
|
|
126
128
|
}
|
|
129
|
+
export interface PutCredentialsRequest {
|
|
130
|
+
vcenterCredentials: VcenterCredentials;
|
|
131
|
+
}
|
|
127
132
|
export interface PutForecasterCredentialsRequest {
|
|
128
133
|
vcenterCredentials: VcenterCredentials;
|
|
129
134
|
}
|
|
@@ -193,6 +198,25 @@ export interface DefaultApiInterface {
|
|
|
193
198
|
* Create a new group
|
|
194
199
|
*/
|
|
195
200
|
createGroup(requestParameters: CreateGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Group>;
|
|
201
|
+
/**
|
|
202
|
+
* Creates request options for deleteCredentials without sending the request
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
* @memberof DefaultApiInterface
|
|
205
|
+
*/
|
|
206
|
+
deleteCredentialsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
207
|
+
/**
|
|
208
|
+
* Removes all stored vCenter credentials from the database.
|
|
209
|
+
* @summary Delete stored credentials
|
|
210
|
+
* @param {*} [options] Override http request option.
|
|
211
|
+
* @throws {RequiredError}
|
|
212
|
+
* @memberof DefaultApiInterface
|
|
213
|
+
*/
|
|
214
|
+
deleteCredentialsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
215
|
+
/**
|
|
216
|
+
* Removes all stored vCenter credentials from the database.
|
|
217
|
+
* Delete stored credentials
|
|
218
|
+
*/
|
|
219
|
+
deleteCredentials(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
196
220
|
/**
|
|
197
221
|
* Creates request options for deleteForecasterRun without sending the request
|
|
198
222
|
* @param {number} id Run ID
|
|
@@ -271,6 +295,24 @@ export interface DefaultApiInterface {
|
|
|
271
295
|
* Get agent status
|
|
272
296
|
*/
|
|
273
297
|
getAgentStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentStatus>;
|
|
298
|
+
/**
|
|
299
|
+
* Creates request options for getApplications without sending the request
|
|
300
|
+
* @throws {RequiredError}
|
|
301
|
+
* @memberof DefaultApiInterface
|
|
302
|
+
*/
|
|
303
|
+
getApplicationsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
304
|
+
/**
|
|
305
|
+
*
|
|
306
|
+
* @summary List detected applications running on VMs
|
|
307
|
+
* @param {*} [options] Override http request option.
|
|
308
|
+
* @throws {RequiredError}
|
|
309
|
+
* @memberof DefaultApiInterface
|
|
310
|
+
*/
|
|
311
|
+
getApplicationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationListResponse>>;
|
|
312
|
+
/**
|
|
313
|
+
* List detected applications running on VMs
|
|
314
|
+
*/
|
|
315
|
+
getApplications(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationListResponse>;
|
|
274
316
|
/**
|
|
275
317
|
* Creates request options for getClusterUtilization without sending the request
|
|
276
318
|
* @param {string} clusterId vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\")
|
|
@@ -309,6 +351,25 @@ export interface DefaultApiInterface {
|
|
|
309
351
|
* Get collector status
|
|
310
352
|
*/
|
|
311
353
|
getCollectorStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
|
|
354
|
+
/**
|
|
355
|
+
* Creates request options for getCredentials without sending the request
|
|
356
|
+
* @throws {RequiredError}
|
|
357
|
+
* @memberof DefaultApiInterface
|
|
358
|
+
*/
|
|
359
|
+
getCredentialsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
360
|
+
/**
|
|
361
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
362
|
+
* @summary Get stored credential status
|
|
363
|
+
* @param {*} [options] Override http request option.
|
|
364
|
+
* @throws {RequiredError}
|
|
365
|
+
* @memberof DefaultApiInterface
|
|
366
|
+
*/
|
|
367
|
+
getCredentialsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialStatus>>;
|
|
368
|
+
/**
|
|
369
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
370
|
+
* Get stored credential status
|
|
371
|
+
*/
|
|
372
|
+
getCredentials(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialStatus>;
|
|
312
373
|
/**
|
|
313
374
|
* Creates request options for getForecasterDatastores without sending the request
|
|
314
375
|
* @param {ForecasterDatastoresRequest} [forecasterDatastoresRequest]
|
|
@@ -394,7 +455,7 @@ export interface DefaultApiInterface {
|
|
|
394
455
|
/**
|
|
395
456
|
* Creates request options for getGroup without sending the request
|
|
396
457
|
* @param {string} id Group ID
|
|
397
|
-
* @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.
|
|
458
|
+
* @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.
|
|
398
459
|
* @param {number} [page] Page number for pagination
|
|
399
460
|
* @param {number} [pageSize] Number of items per page
|
|
400
461
|
* @throws {RequiredError}
|
|
@@ -405,7 +466,7 @@ export interface DefaultApiInterface {
|
|
|
405
466
|
*
|
|
406
467
|
* @summary Get group by ID with its VMs
|
|
407
468
|
* @param {string} id Group ID
|
|
408
|
-
* @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.
|
|
469
|
+
* @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.
|
|
409
470
|
* @param {number} [page] Page number for pagination
|
|
410
471
|
* @param {number} [pageSize] Number of items per page
|
|
411
472
|
* @param {*} [options] Override http request option.
|
|
@@ -628,7 +689,7 @@ export interface DefaultApiInterface {
|
|
|
628
689
|
/**
|
|
629
690
|
* Creates request options for getVMs without sending the request
|
|
630
691
|
* @param {string} [byExpression] Filter by expression (matches VMs with the provided expression)
|
|
631
|
-
* @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.
|
|
692
|
+
* @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.
|
|
632
693
|
* @param {number} [page] Page number for pagination
|
|
633
694
|
* @param {number} [pageSize] Number of items per page
|
|
634
695
|
* @throws {RequiredError}
|
|
@@ -639,7 +700,7 @@ export interface DefaultApiInterface {
|
|
|
639
700
|
*
|
|
640
701
|
* @summary Get list of VMs with filtering and pagination
|
|
641
702
|
* @param {string} [byExpression] Filter by expression (matches VMs with the provided expression)
|
|
642
|
-
* @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.
|
|
703
|
+
* @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.
|
|
643
704
|
* @param {number} [page] Page number for pagination
|
|
644
705
|
* @param {number} [pageSize] Number of items per page
|
|
645
706
|
* @param {*} [options] Override http request option.
|
|
@@ -772,6 +833,27 @@ export interface DefaultApiInterface {
|
|
|
772
833
|
* Compute pair capabilities
|
|
773
834
|
*/
|
|
774
835
|
postForecasterPairCapabilities(requestParameters: PostForecasterPairCapabilitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PairCapability>>;
|
|
836
|
+
/**
|
|
837
|
+
* Creates request options for putCredentials without sending the request
|
|
838
|
+
* @param {VcenterCredentials} vcenterCredentials
|
|
839
|
+
* @throws {RequiredError}
|
|
840
|
+
* @memberof DefaultApiInterface
|
|
841
|
+
*/
|
|
842
|
+
putCredentialsRequestOpts(requestParameters: PutCredentialsRequest): Promise<runtime.RequestOpts>;
|
|
843
|
+
/**
|
|
844
|
+
* 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.
|
|
845
|
+
* @summary Store vCenter credentials
|
|
846
|
+
* @param {VcenterCredentials} vcenterCredentials
|
|
847
|
+
* @param {*} [options] Override http request option.
|
|
848
|
+
* @throws {RequiredError}
|
|
849
|
+
* @memberof DefaultApiInterface
|
|
850
|
+
*/
|
|
851
|
+
putCredentialsRaw(requestParameters: PutCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialStatus>>;
|
|
852
|
+
/**
|
|
853
|
+
* 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.
|
|
854
|
+
* Store vCenter credentials
|
|
855
|
+
*/
|
|
856
|
+
putCredentials(requestParameters: PutCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialStatus>;
|
|
775
857
|
/**
|
|
776
858
|
* Creates request options for putForecasterCredentials without sending the request
|
|
777
859
|
* @param {VcenterCredentials} vcenterCredentials
|
|
@@ -1113,6 +1195,20 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
1113
1195
|
* Create a new group
|
|
1114
1196
|
*/
|
|
1115
1197
|
createGroup(requestParameters: CreateGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Group>;
|
|
1198
|
+
/**
|
|
1199
|
+
* Creates request options for deleteCredentials without sending the request
|
|
1200
|
+
*/
|
|
1201
|
+
deleteCredentialsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
1202
|
+
/**
|
|
1203
|
+
* Removes all stored vCenter credentials from the database.
|
|
1204
|
+
* Delete stored credentials
|
|
1205
|
+
*/
|
|
1206
|
+
deleteCredentialsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1207
|
+
/**
|
|
1208
|
+
* Removes all stored vCenter credentials from the database.
|
|
1209
|
+
* Delete stored credentials
|
|
1210
|
+
*/
|
|
1211
|
+
deleteCredentials(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1116
1212
|
/**
|
|
1117
1213
|
* Creates request options for deleteForecasterRun without sending the request
|
|
1118
1214
|
*/
|
|
@@ -1161,6 +1257,18 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
1161
1257
|
* Get agent status
|
|
1162
1258
|
*/
|
|
1163
1259
|
getAgentStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentStatus>;
|
|
1260
|
+
/**
|
|
1261
|
+
* Creates request options for getApplications without sending the request
|
|
1262
|
+
*/
|
|
1263
|
+
getApplicationsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
1264
|
+
/**
|
|
1265
|
+
* List detected applications running on VMs
|
|
1266
|
+
*/
|
|
1267
|
+
getApplicationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationListResponse>>;
|
|
1268
|
+
/**
|
|
1269
|
+
* List detected applications running on VMs
|
|
1270
|
+
*/
|
|
1271
|
+
getApplications(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationListResponse>;
|
|
1164
1272
|
/**
|
|
1165
1273
|
* Creates request options for getClusterUtilization without sending the request
|
|
1166
1274
|
*/
|
|
@@ -1185,6 +1293,20 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
1185
1293
|
* Get collector status
|
|
1186
1294
|
*/
|
|
1187
1295
|
getCollectorStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
|
|
1296
|
+
/**
|
|
1297
|
+
* Creates request options for getCredentials without sending the request
|
|
1298
|
+
*/
|
|
1299
|
+
getCredentialsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
1300
|
+
/**
|
|
1301
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
1302
|
+
* Get stored credential status
|
|
1303
|
+
*/
|
|
1304
|
+
getCredentialsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialStatus>>;
|
|
1305
|
+
/**
|
|
1306
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
1307
|
+
* Get stored credential status
|
|
1308
|
+
*/
|
|
1309
|
+
getCredentials(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialStatus>;
|
|
1188
1310
|
/**
|
|
1189
1311
|
* Creates request options for getForecasterDatastores without sending the request
|
|
1190
1312
|
*/
|
|
@@ -1465,6 +1587,20 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
1465
1587
|
* Compute pair capabilities
|
|
1466
1588
|
*/
|
|
1467
1589
|
postForecasterPairCapabilities(requestParameters: PostForecasterPairCapabilitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PairCapability>>;
|
|
1590
|
+
/**
|
|
1591
|
+
* Creates request options for putCredentials without sending the request
|
|
1592
|
+
*/
|
|
1593
|
+
putCredentialsRequestOpts(requestParameters: PutCredentialsRequest): Promise<runtime.RequestOpts>;
|
|
1594
|
+
/**
|
|
1595
|
+
* 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.
|
|
1596
|
+
* Store vCenter credentials
|
|
1597
|
+
*/
|
|
1598
|
+
putCredentialsRaw(requestParameters: PutCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialStatus>>;
|
|
1599
|
+
/**
|
|
1600
|
+
* 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.
|
|
1601
|
+
* Store vCenter credentials
|
|
1602
|
+
*/
|
|
1603
|
+
putCredentials(requestParameters: PutCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialStatus>;
|
|
1468
1604
|
/**
|
|
1469
1605
|
* Creates request options for putForecasterCredentials without sending the request
|
|
1470
1606
|
*/
|
package/dist/apis/DefaultApi.js
CHANGED
|
@@ -26,10 +26,12 @@ exports.DefaultApi = void 0;
|
|
|
26
26
|
const runtime = require("../runtime.js");
|
|
27
27
|
const AgentModeRequest_js_1 = require("../models/AgentModeRequest.js");
|
|
28
28
|
const AgentStatus_js_1 = require("../models/AgentStatus.js");
|
|
29
|
+
const ApplicationListResponse_js_1 = require("../models/ApplicationListResponse.js");
|
|
29
30
|
const BenchmarkRun_js_1 = require("../models/BenchmarkRun.js");
|
|
30
31
|
const CollectorStartRequest_js_1 = require("../models/CollectorStartRequest.js");
|
|
31
32
|
const CollectorStatus_js_1 = require("../models/CollectorStatus.js");
|
|
32
33
|
const CreateGroupRequest_js_1 = require("../models/CreateGroupRequest.js");
|
|
34
|
+
const CredentialStatus_js_1 = require("../models/CredentialStatus.js");
|
|
33
35
|
const DatastoreDetail_js_1 = require("../models/DatastoreDetail.js");
|
|
34
36
|
const DeleteLabelGloballyResponse_js_1 = require("../models/DeleteLabelGloballyResponse.js");
|
|
35
37
|
const ForecastStats_js_1 = require("../models/ForecastStats.js");
|
|
@@ -107,6 +109,42 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
107
109
|
return yield response.value();
|
|
108
110
|
});
|
|
109
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* Creates request options for deleteCredentials without sending the request
|
|
114
|
+
*/
|
|
115
|
+
deleteCredentialsRequestOpts() {
|
|
116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
+
const queryParameters = {};
|
|
118
|
+
const headerParameters = {};
|
|
119
|
+
let urlPath = `/credentials`;
|
|
120
|
+
return {
|
|
121
|
+
path: urlPath,
|
|
122
|
+
method: 'DELETE',
|
|
123
|
+
headers: headerParameters,
|
|
124
|
+
query: queryParameters,
|
|
125
|
+
};
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Removes all stored vCenter credentials from the database.
|
|
130
|
+
* Delete stored credentials
|
|
131
|
+
*/
|
|
132
|
+
deleteCredentialsRaw(initOverrides) {
|
|
133
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
+
const requestOptions = yield this.deleteCredentialsRequestOpts();
|
|
135
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
136
|
+
return new runtime.VoidApiResponse(response);
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Removes all stored vCenter credentials from the database.
|
|
141
|
+
* Delete stored credentials
|
|
142
|
+
*/
|
|
143
|
+
deleteCredentials(initOverrides) {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
yield this.deleteCredentialsRaw(initOverrides);
|
|
146
|
+
});
|
|
147
|
+
}
|
|
110
148
|
/**
|
|
111
149
|
* Creates request options for deleteForecasterRun without sending the request
|
|
112
150
|
*/
|
|
@@ -257,6 +295,41 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
257
295
|
return yield response.value();
|
|
258
296
|
});
|
|
259
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* Creates request options for getApplications without sending the request
|
|
300
|
+
*/
|
|
301
|
+
getApplicationsRequestOpts() {
|
|
302
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
303
|
+
const queryParameters = {};
|
|
304
|
+
const headerParameters = {};
|
|
305
|
+
let urlPath = `/applications`;
|
|
306
|
+
return {
|
|
307
|
+
path: urlPath,
|
|
308
|
+
method: 'GET',
|
|
309
|
+
headers: headerParameters,
|
|
310
|
+
query: queryParameters,
|
|
311
|
+
};
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* List detected applications running on VMs
|
|
316
|
+
*/
|
|
317
|
+
getApplicationsRaw(initOverrides) {
|
|
318
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
319
|
+
const requestOptions = yield this.getApplicationsRequestOpts();
|
|
320
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
321
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplicationListResponse_js_1.ApplicationListResponseFromJSON)(jsonValue));
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* List detected applications running on VMs
|
|
326
|
+
*/
|
|
327
|
+
getApplications(initOverrides) {
|
|
328
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
329
|
+
const response = yield this.getApplicationsRaw(initOverrides);
|
|
330
|
+
return yield response.value();
|
|
331
|
+
});
|
|
332
|
+
}
|
|
260
333
|
/**
|
|
261
334
|
* Creates request options for getClusterUtilization without sending the request
|
|
262
335
|
*/
|
|
@@ -331,6 +404,43 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
331
404
|
return yield response.value();
|
|
332
405
|
});
|
|
333
406
|
}
|
|
407
|
+
/**
|
|
408
|
+
* Creates request options for getCredentials without sending the request
|
|
409
|
+
*/
|
|
410
|
+
getCredentialsRequestOpts() {
|
|
411
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
412
|
+
const queryParameters = {};
|
|
413
|
+
const headerParameters = {};
|
|
414
|
+
let urlPath = `/credentials`;
|
|
415
|
+
return {
|
|
416
|
+
path: urlPath,
|
|
417
|
+
method: 'GET',
|
|
418
|
+
headers: headerParameters,
|
|
419
|
+
query: queryParameters,
|
|
420
|
+
};
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
425
|
+
* Get stored credential status
|
|
426
|
+
*/
|
|
427
|
+
getCredentialsRaw(initOverrides) {
|
|
428
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
429
|
+
const requestOptions = yield this.getCredentialsRequestOpts();
|
|
430
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
431
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CredentialStatus_js_1.CredentialStatusFromJSON)(jsonValue));
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
436
|
+
* Get stored credential status
|
|
437
|
+
*/
|
|
438
|
+
getCredentials(initOverrides) {
|
|
439
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
440
|
+
const response = yield this.getCredentialsRaw(initOverrides);
|
|
441
|
+
return yield response.value();
|
|
442
|
+
});
|
|
443
|
+
}
|
|
334
444
|
/**
|
|
335
445
|
* Creates request options for getForecasterDatastores without sending the request
|
|
336
446
|
*/
|
|
@@ -1213,6 +1323,48 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
1213
1323
|
return yield response.value();
|
|
1214
1324
|
});
|
|
1215
1325
|
}
|
|
1326
|
+
/**
|
|
1327
|
+
* Creates request options for putCredentials without sending the request
|
|
1328
|
+
*/
|
|
1329
|
+
putCredentialsRequestOpts(requestParameters) {
|
|
1330
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1331
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
1332
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putCredentials().');
|
|
1333
|
+
}
|
|
1334
|
+
const queryParameters = {};
|
|
1335
|
+
const headerParameters = {};
|
|
1336
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1337
|
+
let urlPath = `/credentials`;
|
|
1338
|
+
return {
|
|
1339
|
+
path: urlPath,
|
|
1340
|
+
method: 'PUT',
|
|
1341
|
+
headers: headerParameters,
|
|
1342
|
+
query: queryParameters,
|
|
1343
|
+
body: (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
|
|
1344
|
+
};
|
|
1345
|
+
});
|
|
1346
|
+
}
|
|
1347
|
+
/**
|
|
1348
|
+
* 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.
|
|
1349
|
+
* Store vCenter credentials
|
|
1350
|
+
*/
|
|
1351
|
+
putCredentialsRaw(requestParameters, initOverrides) {
|
|
1352
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1353
|
+
const requestOptions = yield this.putCredentialsRequestOpts(requestParameters);
|
|
1354
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1355
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CredentialStatus_js_1.CredentialStatusFromJSON)(jsonValue));
|
|
1356
|
+
});
|
|
1357
|
+
}
|
|
1358
|
+
/**
|
|
1359
|
+
* 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.
|
|
1360
|
+
* Store vCenter credentials
|
|
1361
|
+
*/
|
|
1362
|
+
putCredentials(requestParameters, initOverrides) {
|
|
1363
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1364
|
+
const response = yield this.putCredentialsRaw(requestParameters, initOverrides);
|
|
1365
|
+
return yield response.value();
|
|
1366
|
+
});
|
|
1367
|
+
}
|
|
1216
1368
|
/**
|
|
1217
1369
|
* Creates request options for putForecasterCredentials without sending the request
|
|
1218
1370
|
*/
|