@openshift-migration-advisor/agent-sdk 0.8.0 → 0.12.0-d4bdc4301890
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 +20 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +29 -17
- package/dist/apis/DefaultApi.d.ts +260 -130
- package/dist/apis/DefaultApi.js +313 -172
- package/dist/esm/apis/DefaultApi.d.ts +260 -130
- package/dist/esm/apis/DefaultApi.js +295 -154
- package/dist/esm/models/InspectorStatus.d.ts +20 -7
- package/dist/esm/models/InspectorStatus.js +12 -7
- package/dist/esm/models/RightsizingCollectRequest.d.ts +70 -0
- package/dist/esm/models/RightsizingCollectRequest.js +56 -0
- package/dist/esm/models/RightsizingMetricStats.d.ts +62 -0
- package/dist/esm/models/RightsizingMetricStats.js +63 -0
- package/dist/esm/models/RightsizingReport.d.ts +81 -0
- package/dist/esm/models/RightsizingReport.js +76 -0
- package/dist/esm/models/RightsizingReportListResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingReportListResponse.js +48 -0
- package/dist/esm/models/RightsizingReportSummary.d.ts +74 -0
- package/dist/esm/models/RightsizingReportSummary.js +71 -0
- package/dist/esm/models/RightsizingVMReport.d.ts +53 -0
- package/dist/esm/models/RightsizingVMReport.js +57 -0
- package/dist/esm/models/StartInspectionRequest.d.ts +32 -0
- package/dist/esm/models/StartInspectionRequest.js +43 -0
- package/dist/esm/models/VMs.d.ts +18 -0
- package/dist/esm/models/VMs.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +31 -1
- package/dist/esm/models/VirtualMachine.js +12 -4
- package/dist/esm/models/VirtualMachineDetail.d.ts +3 -3
- package/dist/esm/models/VirtualMachineDetail.js +3 -3
- package/dist/esm/models/VmInspectionConcern.d.ts +44 -0
- package/dist/esm/models/VmInspectionConcern.js +51 -0
- package/dist/esm/models/VmInspectionResults.d.ts +33 -0
- package/dist/esm/models/VmInspectionResults.js +42 -0
- package/dist/esm/models/VmInspectionStatus.d.ts +0 -1
- package/dist/esm/models/VmInspectionStatus.js +1 -2
- package/dist/esm/models/VmUtilizationDetails.d.ts +98 -0
- package/dist/esm/models/VmUtilizationDetails.js +87 -0
- package/dist/esm/models/index.d.ts +10 -1
- package/dist/esm/models/index.js +10 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/InspectorStatus.d.ts +20 -7
- package/dist/models/InspectorStatus.js +12 -7
- package/dist/models/RightsizingCollectRequest.d.ts +70 -0
- package/dist/models/RightsizingCollectRequest.js +63 -0
- package/dist/models/RightsizingMetricStats.d.ts +62 -0
- package/dist/models/RightsizingMetricStats.js +70 -0
- package/dist/models/RightsizingReport.d.ts +81 -0
- package/dist/models/RightsizingReport.js +83 -0
- package/dist/models/RightsizingReportListResponse.d.ts +39 -0
- package/dist/models/RightsizingReportListResponse.js +55 -0
- package/dist/models/RightsizingReportSummary.d.ts +74 -0
- package/dist/models/RightsizingReportSummary.js +78 -0
- package/dist/models/RightsizingVMReport.d.ts +53 -0
- package/dist/models/RightsizingVMReport.js +64 -0
- package/dist/models/StartInspectionRequest.d.ts +32 -0
- package/dist/models/StartInspectionRequest.js +50 -0
- package/dist/models/VMs.d.ts +18 -0
- package/dist/models/VMs.js +4 -0
- package/dist/models/VirtualMachine.d.ts +31 -1
- package/dist/models/VirtualMachine.js +12 -4
- package/dist/models/VirtualMachineDetail.d.ts +3 -3
- package/dist/models/VirtualMachineDetail.js +3 -3
- package/dist/models/VmInspectionConcern.d.ts +44 -0
- package/dist/models/VmInspectionConcern.js +58 -0
- package/dist/models/VmInspectionResults.d.ts +33 -0
- package/dist/models/VmInspectionResults.js +49 -0
- package/dist/models/VmInspectionStatus.d.ts +0 -1
- package/dist/models/VmInspectionStatus.js +1 -2
- package/dist/models/VmUtilizationDetails.d.ts +98 -0
- package/dist/models/VmUtilizationDetails.js +94 -0
- package/dist/models/index.d.ts +10 -1
- package/dist/models/index.js +10 -1
- package/dist/runtime.js +1 -1
- package/docs/DefaultApi.md +368 -163
- package/docs/InspectorStatus.md +4 -0
- package/docs/RightsizingCollectRequest.md +46 -0
- package/docs/RightsizingMetricStats.md +44 -0
- package/docs/RightsizingReport.md +50 -0
- package/docs/RightsizingReportListResponse.md +36 -0
- package/docs/RightsizingReportSummary.md +49 -0
- package/docs/RightsizingVMReport.md +40 -0
- package/docs/{InspectorStartRequest.md → StartInspectionRequest.md} +5 -6
- package/docs/VMs.md +4 -0
- package/docs/VirtualMachine.md +12 -2
- package/docs/VirtualMachineDetail.md +1 -1
- package/docs/VmInspectionConcern.md +39 -0
- package/docs/VmInspectionResults.md +35 -0
- package/docs/VmUtilizationDetails.md +56 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +564 -285
- package/src/models/InspectorStatus.ts +37 -7
- package/src/models/RightsizingCollectRequest.ts +123 -0
- package/src/models/RightsizingMetricStats.ts +111 -0
- package/src/models/RightsizingReport.ts +146 -0
- package/src/models/RightsizingReportListResponse.ts +83 -0
- package/src/models/RightsizingReportSummary.ts +129 -0
- package/src/models/RightsizingVMReport.ts +101 -0
- package/src/models/StartInspectionRequest.ts +66 -0
- package/src/models/VMs.ts +18 -0
- package/src/models/VirtualMachine.ts +43 -4
- package/src/models/VirtualMachineDetail.ts +11 -11
- package/src/models/VmInspectionConcern.ts +84 -0
- package/src/models/VmInspectionResults.ts +73 -0
- package/src/models/VmInspectionStatus.ts +1 -2
- package/src/models/VmUtilizationDetails.ts +165 -0
- package/src/models/index.ts +10 -1
- package/src/runtime.ts +1 -2
- package/dist/esm/models/InspectorStartRequest.d.ts +0 -39
- package/dist/esm/models/InspectorStartRequest.js +0 -48
- package/dist/models/InspectorStartRequest.d.ts +0 -39
- package/dist/models/InspectorStartRequest.js +0 -55
- package/src/models/InspectorStartRequest.ts +0 -83
package/src/apis/DefaultApi.ts
CHANGED
|
@@ -12,67 +12,122 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
import * as runtime from '../runtime.js';
|
|
17
|
-
import type {
|
|
18
|
-
AgentModeRequest,
|
|
19
|
-
AgentStatus,
|
|
20
|
-
CollectorStartRequest,
|
|
21
|
-
CollectorStatus,
|
|
22
|
-
CreateGroupRequest,
|
|
23
|
-
GetInventory200Response,
|
|
24
|
-
Group,
|
|
25
|
-
GroupListResponse,
|
|
26
|
-
GroupResponse,
|
|
27
|
-
InspectorStartRequest,
|
|
28
|
-
InspectorStatus,
|
|
29
|
-
UpdateGroupRequest,
|
|
30
|
-
VddkProperties,
|
|
31
|
-
VersionInfo,
|
|
32
|
-
VirtualMachineDetail,
|
|
33
|
-
VirtualMachineListResponse,
|
|
34
|
-
VmInspectionStatus,
|
|
35
|
-
} from '../models/index.js';
|
|
36
16
|
import {
|
|
17
|
+
type AgentModeRequest,
|
|
37
18
|
AgentModeRequestFromJSON,
|
|
38
19
|
AgentModeRequestToJSON,
|
|
20
|
+
} from '../models/AgentModeRequest.js';
|
|
21
|
+
import {
|
|
22
|
+
type AgentStatus,
|
|
39
23
|
AgentStatusFromJSON,
|
|
40
24
|
AgentStatusToJSON,
|
|
25
|
+
} from '../models/AgentStatus.js';
|
|
26
|
+
import {
|
|
27
|
+
type CollectorStartRequest,
|
|
41
28
|
CollectorStartRequestFromJSON,
|
|
42
29
|
CollectorStartRequestToJSON,
|
|
30
|
+
} from '../models/CollectorStartRequest.js';
|
|
31
|
+
import {
|
|
32
|
+
type CollectorStatus,
|
|
43
33
|
CollectorStatusFromJSON,
|
|
44
34
|
CollectorStatusToJSON,
|
|
35
|
+
} from '../models/CollectorStatus.js';
|
|
36
|
+
import {
|
|
37
|
+
type CreateGroupRequest,
|
|
45
38
|
CreateGroupRequestFromJSON,
|
|
46
39
|
CreateGroupRequestToJSON,
|
|
40
|
+
} from '../models/CreateGroupRequest.js';
|
|
41
|
+
import {
|
|
42
|
+
type GetInventory200Response,
|
|
47
43
|
GetInventory200ResponseFromJSON,
|
|
48
44
|
GetInventory200ResponseToJSON,
|
|
45
|
+
} from '../models/GetInventory200Response.js';
|
|
46
|
+
import {
|
|
47
|
+
type Group,
|
|
49
48
|
GroupFromJSON,
|
|
50
49
|
GroupToJSON,
|
|
50
|
+
} from '../models/Group.js';
|
|
51
|
+
import {
|
|
52
|
+
type GroupListResponse,
|
|
51
53
|
GroupListResponseFromJSON,
|
|
52
54
|
GroupListResponseToJSON,
|
|
55
|
+
} from '../models/GroupListResponse.js';
|
|
56
|
+
import {
|
|
57
|
+
type GroupResponse,
|
|
53
58
|
GroupResponseFromJSON,
|
|
54
59
|
GroupResponseToJSON,
|
|
55
|
-
|
|
56
|
-
|
|
60
|
+
} from '../models/GroupResponse.js';
|
|
61
|
+
import {
|
|
62
|
+
type InspectorStatus,
|
|
57
63
|
InspectorStatusFromJSON,
|
|
58
64
|
InspectorStatusToJSON,
|
|
65
|
+
} from '../models/InspectorStatus.js';
|
|
66
|
+
import {
|
|
67
|
+
type RightsizingCollectRequest,
|
|
68
|
+
RightsizingCollectRequestFromJSON,
|
|
69
|
+
RightsizingCollectRequestToJSON,
|
|
70
|
+
} from '../models/RightsizingCollectRequest.js';
|
|
71
|
+
import {
|
|
72
|
+
type RightsizingReport,
|
|
73
|
+
RightsizingReportFromJSON,
|
|
74
|
+
RightsizingReportToJSON,
|
|
75
|
+
} from '../models/RightsizingReport.js';
|
|
76
|
+
import {
|
|
77
|
+
type RightsizingReportListResponse,
|
|
78
|
+
RightsizingReportListResponseFromJSON,
|
|
79
|
+
RightsizingReportListResponseToJSON,
|
|
80
|
+
} from '../models/RightsizingReportListResponse.js';
|
|
81
|
+
import {
|
|
82
|
+
type RightsizingReportSummary,
|
|
83
|
+
RightsizingReportSummaryFromJSON,
|
|
84
|
+
RightsizingReportSummaryToJSON,
|
|
85
|
+
} from '../models/RightsizingReportSummary.js';
|
|
86
|
+
import {
|
|
87
|
+
type StartInspectionRequest,
|
|
88
|
+
StartInspectionRequestFromJSON,
|
|
89
|
+
StartInspectionRequestToJSON,
|
|
90
|
+
} from '../models/StartInspectionRequest.js';
|
|
91
|
+
import {
|
|
92
|
+
type UpdateGroupRequest,
|
|
59
93
|
UpdateGroupRequestFromJSON,
|
|
60
94
|
UpdateGroupRequestToJSON,
|
|
95
|
+
} from '../models/UpdateGroupRequest.js';
|
|
96
|
+
import {
|
|
97
|
+
type VcenterCredentials,
|
|
98
|
+
VcenterCredentialsFromJSON,
|
|
99
|
+
VcenterCredentialsToJSON,
|
|
100
|
+
} from '../models/VcenterCredentials.js';
|
|
101
|
+
import {
|
|
102
|
+
type VddkProperties,
|
|
61
103
|
VddkPropertiesFromJSON,
|
|
62
104
|
VddkPropertiesToJSON,
|
|
105
|
+
} from '../models/VddkProperties.js';
|
|
106
|
+
import {
|
|
107
|
+
type VersionInfo,
|
|
63
108
|
VersionInfoFromJSON,
|
|
64
109
|
VersionInfoToJSON,
|
|
110
|
+
} from '../models/VersionInfo.js';
|
|
111
|
+
import {
|
|
112
|
+
type VirtualMachineDetail,
|
|
65
113
|
VirtualMachineDetailFromJSON,
|
|
66
114
|
VirtualMachineDetailToJSON,
|
|
115
|
+
} from '../models/VirtualMachineDetail.js';
|
|
116
|
+
import {
|
|
117
|
+
type VirtualMachineListResponse,
|
|
67
118
|
VirtualMachineListResponseFromJSON,
|
|
68
119
|
VirtualMachineListResponseToJSON,
|
|
120
|
+
} from '../models/VirtualMachineListResponse.js';
|
|
121
|
+
import {
|
|
122
|
+
type VmInspectionStatus,
|
|
69
123
|
VmInspectionStatusFromJSON,
|
|
70
124
|
VmInspectionStatusToJSON,
|
|
71
|
-
} from '../models/
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
125
|
+
} from '../models/VmInspectionStatus.js';
|
|
126
|
+
import {
|
|
127
|
+
type VmUtilizationDetails,
|
|
128
|
+
VmUtilizationDetailsFromJSON,
|
|
129
|
+
VmUtilizationDetailsToJSON,
|
|
130
|
+
} from '../models/VmUtilizationDetails.js';
|
|
76
131
|
|
|
77
132
|
export interface CreateGroupOperationRequest {
|
|
78
133
|
createGroupRequest: CreateGroupRequest;
|
|
@@ -89,16 +144,25 @@ export interface GetGroupRequest {
|
|
|
89
144
|
pageSize?: number;
|
|
90
145
|
}
|
|
91
146
|
|
|
147
|
+
export interface GetInspectorStatusRequest {
|
|
148
|
+
includeVddk?: boolean;
|
|
149
|
+
includeCredentials?: boolean;
|
|
150
|
+
}
|
|
151
|
+
|
|
92
152
|
export interface GetInventoryRequest {
|
|
93
153
|
withAgentId?: boolean;
|
|
94
154
|
groupId?: string;
|
|
95
155
|
}
|
|
96
156
|
|
|
157
|
+
export interface GetRightsizingReportRequest {
|
|
158
|
+
id: string;
|
|
159
|
+
}
|
|
160
|
+
|
|
97
161
|
export interface GetVMRequest {
|
|
98
162
|
id: string;
|
|
99
163
|
}
|
|
100
164
|
|
|
101
|
-
export interface
|
|
165
|
+
export interface GetVMUtilizationRequest {
|
|
102
166
|
id: string;
|
|
103
167
|
}
|
|
104
168
|
|
|
@@ -115,6 +179,14 @@ export interface ListGroupsRequest {
|
|
|
115
179
|
pageSize?: number;
|
|
116
180
|
}
|
|
117
181
|
|
|
182
|
+
export interface PutInspectorCredentialsRequest {
|
|
183
|
+
vcenterCredentials: VcenterCredentials;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export interface PutInspectorVddkRequest {
|
|
187
|
+
file: Blob;
|
|
188
|
+
}
|
|
189
|
+
|
|
118
190
|
export interface RemoveVMFromInspectionRequest {
|
|
119
191
|
id: string;
|
|
120
192
|
}
|
|
@@ -127,8 +199,12 @@ export interface StartCollectorRequest {
|
|
|
127
199
|
collectorStartRequest: CollectorStartRequest;
|
|
128
200
|
}
|
|
129
201
|
|
|
130
|
-
export interface
|
|
131
|
-
|
|
202
|
+
export interface StartInspectionOperationRequest {
|
|
203
|
+
startInspectionRequest: StartInspectionRequest;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export interface TriggerRightsizingCollectionRequest {
|
|
207
|
+
rightsizingCollectRequest: RightsizingCollectRequest;
|
|
132
208
|
}
|
|
133
209
|
|
|
134
210
|
export interface UpdateGroupOperationRequest {
|
|
@@ -136,10 +212,6 @@ export interface UpdateGroupOperationRequest {
|
|
|
136
212
|
updateGroupRequest: UpdateGroupRequest;
|
|
137
213
|
}
|
|
138
214
|
|
|
139
|
-
export interface VddkPostRequest {
|
|
140
|
-
file: Blob;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
215
|
/**
|
|
144
216
|
* DefaultApi - interface
|
|
145
217
|
*
|
|
@@ -147,29 +219,6 @@ export interface VddkPostRequest {
|
|
|
147
219
|
* @interface DefaultApiInterface
|
|
148
220
|
*/
|
|
149
221
|
export interface DefaultApiInterface {
|
|
150
|
-
/**
|
|
151
|
-
* Creates request options for addVMsToInspection without sending the request
|
|
152
|
-
* @param {Array<string>} requestBody
|
|
153
|
-
* @throws {RequiredError}
|
|
154
|
-
* @memberof DefaultApiInterface
|
|
155
|
-
*/
|
|
156
|
-
addVMsToInspectionRequestOpts(requestParameters: AddVMsToInspectionRequest): Promise<runtime.RequestOpts>;
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
*
|
|
160
|
-
* @summary Add more VMs to inspection queue
|
|
161
|
-
* @param {Array<string>} requestBody
|
|
162
|
-
* @param {*} [options] Override http request option.
|
|
163
|
-
* @throws {RequiredError}
|
|
164
|
-
* @memberof DefaultApiInterface
|
|
165
|
-
*/
|
|
166
|
-
addVMsToInspectionRaw(requestParameters: AddVMsToInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InspectorStatus>>;
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Add more VMs to inspection queue
|
|
170
|
-
*/
|
|
171
|
-
addVMsToInspection(requestParameters: AddVMsToInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InspectorStatus>;
|
|
172
|
-
|
|
173
222
|
/**
|
|
174
223
|
* Creates request options for createGroup without sending the request
|
|
175
224
|
* @param {CreateGroupRequest} createGroupRequest
|
|
@@ -289,24 +338,49 @@ export interface DefaultApiInterface {
|
|
|
289
338
|
|
|
290
339
|
/**
|
|
291
340
|
* Creates request options for getInspectorStatus without sending the request
|
|
341
|
+
* @param {boolean} [includeVddk] If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded.
|
|
342
|
+
* @param {boolean} [includeCredentials] If true, include configured vCenter URL and username (password is never returned). omitted if was never set.
|
|
292
343
|
* @throws {RequiredError}
|
|
293
344
|
* @memberof DefaultApiInterface
|
|
294
345
|
*/
|
|
295
|
-
getInspectorStatusRequestOpts(): Promise<runtime.RequestOpts>;
|
|
346
|
+
getInspectorStatusRequestOpts(requestParameters: GetInspectorStatusRequest): Promise<runtime.RequestOpts>;
|
|
296
347
|
|
|
297
348
|
/**
|
|
298
349
|
*
|
|
299
350
|
* @summary Get inspector status
|
|
351
|
+
* @param {boolean} [includeVddk] If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded.
|
|
352
|
+
* @param {boolean} [includeCredentials] If true, include configured vCenter URL and username (password is never returned). omitted if was never set.
|
|
300
353
|
* @param {*} [options] Override http request option.
|
|
301
354
|
* @throws {RequiredError}
|
|
302
355
|
* @memberof DefaultApiInterface
|
|
303
356
|
*/
|
|
304
|
-
getInspectorStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InspectorStatus>>;
|
|
357
|
+
getInspectorStatusRaw(requestParameters: GetInspectorStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InspectorStatus>>;
|
|
305
358
|
|
|
306
359
|
/**
|
|
307
360
|
* Get inspector status
|
|
308
361
|
*/
|
|
309
|
-
getInspectorStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InspectorStatus>;
|
|
362
|
+
getInspectorStatus(requestParameters: GetInspectorStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InspectorStatus>;
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Creates request options for getInspectorVddkStatus without sending the request
|
|
366
|
+
* @throws {RequiredError}
|
|
367
|
+
* @memberof DefaultApiInterface
|
|
368
|
+
*/
|
|
369
|
+
getInspectorVddkStatusRequestOpts(): Promise<runtime.RequestOpts>;
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
*
|
|
373
|
+
* @summary Get VDDK status
|
|
374
|
+
* @param {*} [options] Override http request option.
|
|
375
|
+
* @throws {RequiredError}
|
|
376
|
+
* @memberof DefaultApiInterface
|
|
377
|
+
*/
|
|
378
|
+
getInspectorVddkStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Get VDDK status
|
|
382
|
+
*/
|
|
383
|
+
getInspectorVddkStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
|
|
310
384
|
|
|
311
385
|
/**
|
|
312
386
|
* Creates request options for getInventory without sending the request
|
|
@@ -333,6 +407,29 @@ export interface DefaultApiInterface {
|
|
|
333
407
|
*/
|
|
334
408
|
getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
|
|
335
409
|
|
|
410
|
+
/**
|
|
411
|
+
* Creates request options for getRightsizingReport without sending the request
|
|
412
|
+
* @param {string} id Report UUID
|
|
413
|
+
* @throws {RequiredError}
|
|
414
|
+
* @memberof DefaultApiInterface
|
|
415
|
+
*/
|
|
416
|
+
getRightsizingReportRequestOpts(requestParameters: GetRightsizingReportRequest): Promise<runtime.RequestOpts>;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
*
|
|
420
|
+
* @summary Get a specific rightsizing report with full VM metrics
|
|
421
|
+
* @param {string} id Report UUID
|
|
422
|
+
* @param {*} [options] Override http request option.
|
|
423
|
+
* @throws {RequiredError}
|
|
424
|
+
* @memberof DefaultApiInterface
|
|
425
|
+
*/
|
|
426
|
+
getRightsizingReportRaw(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingReport>>;
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Get a specific rightsizing report with full VM metrics
|
|
430
|
+
*/
|
|
431
|
+
getRightsizingReport(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReport>;
|
|
432
|
+
|
|
336
433
|
/**
|
|
337
434
|
* Creates request options for getVM without sending the request
|
|
338
435
|
* @param {string} id VirtualMachine id
|
|
@@ -357,27 +454,27 @@ export interface DefaultApiInterface {
|
|
|
357
454
|
getVM(requestParameters: GetVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineDetail>;
|
|
358
455
|
|
|
359
456
|
/**
|
|
360
|
-
* Creates request options for
|
|
361
|
-
* @param {string} id VirtualMachine ID
|
|
457
|
+
* Creates request options for getVMUtilization without sending the request
|
|
458
|
+
* @param {string} id VirtualMachine MoRef ID
|
|
362
459
|
* @throws {RequiredError}
|
|
363
460
|
* @memberof DefaultApiInterface
|
|
364
461
|
*/
|
|
365
|
-
|
|
462
|
+
getVMUtilizationRequestOpts(requestParameters: GetVMUtilizationRequest): Promise<runtime.RequestOpts>;
|
|
366
463
|
|
|
367
464
|
/**
|
|
368
465
|
*
|
|
369
|
-
* @summary Get
|
|
370
|
-
* @param {string} id VirtualMachine ID
|
|
466
|
+
* @summary Get utilization breakdown for a specific VM
|
|
467
|
+
* @param {string} id VirtualMachine MoRef ID
|
|
371
468
|
* @param {*} [options] Override http request option.
|
|
372
469
|
* @throws {RequiredError}
|
|
373
470
|
* @memberof DefaultApiInterface
|
|
374
471
|
*/
|
|
375
|
-
|
|
472
|
+
getVMUtilizationRaw(requestParameters: GetVMUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VmUtilizationDetails>>;
|
|
376
473
|
|
|
377
474
|
/**
|
|
378
|
-
* Get
|
|
475
|
+
* Get utilization breakdown for a specific VM
|
|
379
476
|
*/
|
|
380
|
-
|
|
477
|
+
getVMUtilization(requestParameters: GetVMUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VmUtilizationDetails>;
|
|
381
478
|
|
|
382
479
|
/**
|
|
383
480
|
* Creates request options for getVMs without sending the request
|
|
@@ -408,27 +505,6 @@ export interface DefaultApiInterface {
|
|
|
408
505
|
*/
|
|
409
506
|
getVMs(requestParameters: GetVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse>;
|
|
410
507
|
|
|
411
|
-
/**
|
|
412
|
-
* Creates request options for getVddkStatus without sending the request
|
|
413
|
-
* @throws {RequiredError}
|
|
414
|
-
* @memberof DefaultApiInterface
|
|
415
|
-
*/
|
|
416
|
-
getVddkStatusRequestOpts(): Promise<runtime.RequestOpts>;
|
|
417
|
-
|
|
418
|
-
/**
|
|
419
|
-
*
|
|
420
|
-
* @summary Get VDDK status
|
|
421
|
-
* @param {*} [options] Override http request option.
|
|
422
|
-
* @throws {RequiredError}
|
|
423
|
-
* @memberof DefaultApiInterface
|
|
424
|
-
*/
|
|
425
|
-
getVddkStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
* Get VDDK status
|
|
429
|
-
*/
|
|
430
|
-
getVddkStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
|
|
431
|
-
|
|
432
508
|
/**
|
|
433
509
|
* Creates request options for getVersion without sending the request
|
|
434
510
|
* @throws {RequiredError}
|
|
@@ -477,6 +553,73 @@ export interface DefaultApiInterface {
|
|
|
477
553
|
*/
|
|
478
554
|
listGroups(requestParameters: ListGroupsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupListResponse>;
|
|
479
555
|
|
|
556
|
+
/**
|
|
557
|
+
* Creates request options for listRightsizingReports without sending the request
|
|
558
|
+
* @throws {RequiredError}
|
|
559
|
+
* @memberof DefaultApiInterface
|
|
560
|
+
*/
|
|
561
|
+
listRightsizingReportsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
*
|
|
565
|
+
* @summary List all rightsizing reports
|
|
566
|
+
* @param {*} [options] Override http request option.
|
|
567
|
+
* @throws {RequiredError}
|
|
568
|
+
* @memberof DefaultApiInterface
|
|
569
|
+
*/
|
|
570
|
+
listRightsizingReportsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingReportListResponse>>;
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* List all rightsizing reports
|
|
574
|
+
*/
|
|
575
|
+
listRightsizingReports(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReportListResponse>;
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Creates request options for putInspectorCredentials without sending the request
|
|
579
|
+
* @param {VcenterCredentials} vcenterCredentials
|
|
580
|
+
* @throws {RequiredError}
|
|
581
|
+
* @memberof DefaultApiInterface
|
|
582
|
+
*/
|
|
583
|
+
putInspectorCredentialsRequestOpts(requestParameters: PutInspectorCredentialsRequest): Promise<runtime.RequestOpts>;
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
*
|
|
587
|
+
* @summary Set or replace inspector credentials
|
|
588
|
+
* @param {VcenterCredentials} vcenterCredentials
|
|
589
|
+
* @param {*} [options] Override http request option.
|
|
590
|
+
* @throws {RequiredError}
|
|
591
|
+
* @memberof DefaultApiInterface
|
|
592
|
+
*/
|
|
593
|
+
putInspectorCredentialsRaw(requestParameters: PutInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* Set or replace inspector credentials
|
|
597
|
+
*/
|
|
598
|
+
putInspectorCredentials(requestParameters: PutInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* Creates request options for putInspectorVddk without sending the request
|
|
602
|
+
* @param {Blob} file VDDK tarball
|
|
603
|
+
* @throws {RequiredError}
|
|
604
|
+
* @memberof DefaultApiInterface
|
|
605
|
+
*/
|
|
606
|
+
putInspectorVddkRequestOpts(requestParameters: PutInspectorVddkRequest): Promise<runtime.RequestOpts>;
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
*
|
|
610
|
+
* @summary Upload VDDK tarball
|
|
611
|
+
* @param {Blob} file VDDK tarball
|
|
612
|
+
* @param {*} [options] Override http request option.
|
|
613
|
+
* @throws {RequiredError}
|
|
614
|
+
* @memberof DefaultApiInterface
|
|
615
|
+
*/
|
|
616
|
+
putInspectorVddkRaw(requestParameters: PutInspectorVddkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* Upload VDDK tarball
|
|
620
|
+
*/
|
|
621
|
+
putInspectorVddk(requestParameters: PutInspectorVddkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
|
|
622
|
+
|
|
480
623
|
/**
|
|
481
624
|
* Creates request options for removeVMFromInspection without sending the request
|
|
482
625
|
* @param {string} id
|
|
@@ -548,26 +691,26 @@ export interface DefaultApiInterface {
|
|
|
548
691
|
|
|
549
692
|
/**
|
|
550
693
|
* Creates request options for startInspection without sending the request
|
|
551
|
-
* @param {
|
|
694
|
+
* @param {StartInspectionRequest} startInspectionRequest
|
|
552
695
|
* @throws {RequiredError}
|
|
553
696
|
* @memberof DefaultApiInterface
|
|
554
697
|
*/
|
|
555
|
-
startInspectionRequestOpts(requestParameters:
|
|
698
|
+
startInspectionRequestOpts(requestParameters: StartInspectionOperationRequest): Promise<runtime.RequestOpts>;
|
|
556
699
|
|
|
557
700
|
/**
|
|
558
701
|
*
|
|
559
702
|
* @summary Start inspection for VMs
|
|
560
|
-
* @param {
|
|
703
|
+
* @param {StartInspectionRequest} startInspectionRequest
|
|
561
704
|
* @param {*} [options] Override http request option.
|
|
562
705
|
* @throws {RequiredError}
|
|
563
706
|
* @memberof DefaultApiInterface
|
|
564
707
|
*/
|
|
565
|
-
startInspectionRaw(requestParameters:
|
|
708
|
+
startInspectionRaw(requestParameters: StartInspectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InspectorStatus>>;
|
|
566
709
|
|
|
567
710
|
/**
|
|
568
711
|
* Start inspection for VMs
|
|
569
712
|
*/
|
|
570
|
-
startInspection(requestParameters:
|
|
713
|
+
startInspection(requestParameters: StartInspectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InspectorStatus>;
|
|
571
714
|
|
|
572
715
|
/**
|
|
573
716
|
* Creates request options for stopCollector without sending the request
|
|
@@ -612,52 +755,52 @@ export interface DefaultApiInterface {
|
|
|
612
755
|
stopInspection(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InspectorStatus>;
|
|
613
756
|
|
|
614
757
|
/**
|
|
615
|
-
* Creates request options for
|
|
616
|
-
* @param {
|
|
617
|
-
* @param {UpdateGroupRequest} updateGroupRequest
|
|
758
|
+
* Creates request options for triggerRightsizingCollection without sending the request
|
|
759
|
+
* @param {RightsizingCollectRequest} rightsizingCollectRequest
|
|
618
760
|
* @throws {RequiredError}
|
|
619
761
|
* @memberof DefaultApiInterface
|
|
620
762
|
*/
|
|
621
|
-
|
|
763
|
+
triggerRightsizingCollectionRequestOpts(requestParameters: TriggerRightsizingCollectionRequest): Promise<runtime.RequestOpts>;
|
|
622
764
|
|
|
623
765
|
/**
|
|
624
766
|
*
|
|
625
|
-
* @summary
|
|
626
|
-
* @param {
|
|
627
|
-
* @param {UpdateGroupRequest} updateGroupRequest
|
|
767
|
+
* @summary Trigger rightsizing metrics collection
|
|
768
|
+
* @param {RightsizingCollectRequest} rightsizingCollectRequest
|
|
628
769
|
* @param {*} [options] Override http request option.
|
|
629
770
|
* @throws {RequiredError}
|
|
630
771
|
* @memberof DefaultApiInterface
|
|
631
772
|
*/
|
|
632
|
-
|
|
773
|
+
triggerRightsizingCollectionRaw(requestParameters: TriggerRightsizingCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingReportSummary>>;
|
|
633
774
|
|
|
634
775
|
/**
|
|
635
|
-
*
|
|
776
|
+
* Trigger rightsizing metrics collection
|
|
636
777
|
*/
|
|
637
|
-
|
|
778
|
+
triggerRightsizingCollection(requestParameters: TriggerRightsizingCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReportSummary>;
|
|
638
779
|
|
|
639
780
|
/**
|
|
640
|
-
* Creates request options for
|
|
641
|
-
* @param {
|
|
781
|
+
* Creates request options for updateGroup without sending the request
|
|
782
|
+
* @param {string} id Group ID
|
|
783
|
+
* @param {UpdateGroupRequest} updateGroupRequest
|
|
642
784
|
* @throws {RequiredError}
|
|
643
785
|
* @memberof DefaultApiInterface
|
|
644
786
|
*/
|
|
645
|
-
|
|
787
|
+
updateGroupRequestOpts(requestParameters: UpdateGroupOperationRequest): Promise<runtime.RequestOpts>;
|
|
646
788
|
|
|
647
789
|
/**
|
|
648
790
|
*
|
|
649
|
-
* @summary
|
|
650
|
-
* @param {
|
|
791
|
+
* @summary Update group
|
|
792
|
+
* @param {string} id Group ID
|
|
793
|
+
* @param {UpdateGroupRequest} updateGroupRequest
|
|
651
794
|
* @param {*} [options] Override http request option.
|
|
652
795
|
* @throws {RequiredError}
|
|
653
796
|
* @memberof DefaultApiInterface
|
|
654
797
|
*/
|
|
655
|
-
|
|
798
|
+
updateGroupRaw(requestParameters: UpdateGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Group>>;
|
|
656
799
|
|
|
657
800
|
/**
|
|
658
|
-
*
|
|
801
|
+
* Update group
|
|
659
802
|
*/
|
|
660
|
-
|
|
803
|
+
updateGroup(requestParameters: UpdateGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Group>;
|
|
661
804
|
|
|
662
805
|
}
|
|
663
806
|
|
|
@@ -666,53 +809,6 @@ export interface DefaultApiInterface {
|
|
|
666
809
|
*/
|
|
667
810
|
export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
668
811
|
|
|
669
|
-
/**
|
|
670
|
-
* Creates request options for addVMsToInspection without sending the request
|
|
671
|
-
*/
|
|
672
|
-
async addVMsToInspectionRequestOpts(requestParameters: AddVMsToInspectionRequest): Promise<runtime.RequestOpts> {
|
|
673
|
-
if (requestParameters['requestBody'] == null) {
|
|
674
|
-
throw new runtime.RequiredError(
|
|
675
|
-
'requestBody',
|
|
676
|
-
'Required parameter "requestBody" was null or undefined when calling addVMsToInspection().'
|
|
677
|
-
);
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
const queryParameters: any = {};
|
|
681
|
-
|
|
682
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
683
|
-
|
|
684
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
let urlPath = `/vms/inspector`;
|
|
688
|
-
|
|
689
|
-
return {
|
|
690
|
-
path: urlPath,
|
|
691
|
-
method: 'PATCH',
|
|
692
|
-
headers: headerParameters,
|
|
693
|
-
query: queryParameters,
|
|
694
|
-
body: requestParameters['requestBody'],
|
|
695
|
-
};
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
/**
|
|
699
|
-
* Add more VMs to inspection queue
|
|
700
|
-
*/
|
|
701
|
-
async addVMsToInspectionRaw(requestParameters: AddVMsToInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InspectorStatus>> {
|
|
702
|
-
const requestOptions = await this.addVMsToInspectionRequestOpts(requestParameters);
|
|
703
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
704
|
-
|
|
705
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => InspectorStatusFromJSON(jsonValue));
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
/**
|
|
709
|
-
* Add more VMs to inspection queue
|
|
710
|
-
*/
|
|
711
|
-
async addVMsToInspection(requestParameters: AddVMsToInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InspectorStatus> {
|
|
712
|
-
const response = await this.addVMsToInspectionRaw(requestParameters, initOverrides);
|
|
713
|
-
return await response.value();
|
|
714
|
-
}
|
|
715
|
-
|
|
716
812
|
/**
|
|
717
813
|
* Creates request options for createGroup without sending the request
|
|
718
814
|
*/
|
|
@@ -777,7 +873,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
777
873
|
|
|
778
874
|
|
|
779
875
|
let urlPath = `/groups/{id}`;
|
|
780
|
-
urlPath = urlPath.replace(
|
|
876
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
781
877
|
|
|
782
878
|
return {
|
|
783
879
|
path: urlPath,
|
|
@@ -907,7 +1003,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
907
1003
|
|
|
908
1004
|
|
|
909
1005
|
let urlPath = `/groups/{id}`;
|
|
910
|
-
urlPath = urlPath.replace(
|
|
1006
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
911
1007
|
|
|
912
1008
|
return {
|
|
913
1009
|
path: urlPath,
|
|
@@ -938,13 +1034,21 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
938
1034
|
/**
|
|
939
1035
|
* Creates request options for getInspectorStatus without sending the request
|
|
940
1036
|
*/
|
|
941
|
-
async getInspectorStatusRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1037
|
+
async getInspectorStatusRequestOpts(requestParameters: GetInspectorStatusRequest): Promise<runtime.RequestOpts> {
|
|
942
1038
|
const queryParameters: any = {};
|
|
943
1039
|
|
|
1040
|
+
if (requestParameters['includeVddk'] != null) {
|
|
1041
|
+
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
if (requestParameters['includeCredentials'] != null) {
|
|
1045
|
+
queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
|
|
1046
|
+
}
|
|
1047
|
+
|
|
944
1048
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
945
1049
|
|
|
946
1050
|
|
|
947
|
-
let urlPath = `/
|
|
1051
|
+
let urlPath = `/inspector`;
|
|
948
1052
|
|
|
949
1053
|
return {
|
|
950
1054
|
path: urlPath,
|
|
@@ -957,8 +1061,8 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
957
1061
|
/**
|
|
958
1062
|
* Get inspector status
|
|
959
1063
|
*/
|
|
960
|
-
async getInspectorStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InspectorStatus>> {
|
|
961
|
-
const requestOptions = await this.getInspectorStatusRequestOpts();
|
|
1064
|
+
async getInspectorStatusRaw(requestParameters: GetInspectorStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InspectorStatus>> {
|
|
1065
|
+
const requestOptions = await this.getInspectorStatusRequestOpts(requestParameters);
|
|
962
1066
|
const response = await this.request(requestOptions, initOverrides);
|
|
963
1067
|
|
|
964
1068
|
return new runtime.JSONApiResponse(response, (jsonValue) => InspectorStatusFromJSON(jsonValue));
|
|
@@ -967,8 +1071,45 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
967
1071
|
/**
|
|
968
1072
|
* Get inspector status
|
|
969
1073
|
*/
|
|
970
|
-
async getInspectorStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InspectorStatus> {
|
|
971
|
-
const response = await this.getInspectorStatusRaw(initOverrides);
|
|
1074
|
+
async getInspectorStatus(requestParameters: GetInspectorStatusRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InspectorStatus> {
|
|
1075
|
+
const response = await this.getInspectorStatusRaw(requestParameters, initOverrides);
|
|
1076
|
+
return await response.value();
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
/**
|
|
1080
|
+
* Creates request options for getInspectorVddkStatus without sending the request
|
|
1081
|
+
*/
|
|
1082
|
+
async getInspectorVddkStatusRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1083
|
+
const queryParameters: any = {};
|
|
1084
|
+
|
|
1085
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
let urlPath = `/inspector/vddk`;
|
|
1089
|
+
|
|
1090
|
+
return {
|
|
1091
|
+
path: urlPath,
|
|
1092
|
+
method: 'GET',
|
|
1093
|
+
headers: headerParameters,
|
|
1094
|
+
query: queryParameters,
|
|
1095
|
+
};
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* Get VDDK status
|
|
1100
|
+
*/
|
|
1101
|
+
async getInspectorVddkStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>> {
|
|
1102
|
+
const requestOptions = await this.getInspectorVddkStatusRequestOpts();
|
|
1103
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1104
|
+
|
|
1105
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* Get VDDK status
|
|
1110
|
+
*/
|
|
1111
|
+
async getInspectorVddkStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties> {
|
|
1112
|
+
const response = await this.getInspectorVddkStatusRaw(initOverrides);
|
|
972
1113
|
return await response.value();
|
|
973
1114
|
}
|
|
974
1115
|
|
|
@@ -1017,6 +1158,51 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1017
1158
|
return await response.value();
|
|
1018
1159
|
}
|
|
1019
1160
|
|
|
1161
|
+
/**
|
|
1162
|
+
* Creates request options for getRightsizingReport without sending the request
|
|
1163
|
+
*/
|
|
1164
|
+
async getRightsizingReportRequestOpts(requestParameters: GetRightsizingReportRequest): Promise<runtime.RequestOpts> {
|
|
1165
|
+
if (requestParameters['id'] == null) {
|
|
1166
|
+
throw new runtime.RequiredError(
|
|
1167
|
+
'id',
|
|
1168
|
+
'Required parameter "id" was null or undefined when calling getRightsizingReport().'
|
|
1169
|
+
);
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
const queryParameters: any = {};
|
|
1173
|
+
|
|
1174
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
let urlPath = `/rightsizing/{id}`;
|
|
1178
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1179
|
+
|
|
1180
|
+
return {
|
|
1181
|
+
path: urlPath,
|
|
1182
|
+
method: 'GET',
|
|
1183
|
+
headers: headerParameters,
|
|
1184
|
+
query: queryParameters,
|
|
1185
|
+
};
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
/**
|
|
1189
|
+
* Get a specific rightsizing report with full VM metrics
|
|
1190
|
+
*/
|
|
1191
|
+
async getRightsizingReportRaw(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingReport>> {
|
|
1192
|
+
const requestOptions = await this.getRightsizingReportRequestOpts(requestParameters);
|
|
1193
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1194
|
+
|
|
1195
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingReportFromJSON(jsonValue));
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* Get a specific rightsizing report with full VM metrics
|
|
1200
|
+
*/
|
|
1201
|
+
async getRightsizingReport(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReport> {
|
|
1202
|
+
const response = await this.getRightsizingReportRaw(requestParameters, initOverrides);
|
|
1203
|
+
return await response.value();
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1020
1206
|
/**
|
|
1021
1207
|
* Creates request options for getVM without sending the request
|
|
1022
1208
|
*/
|
|
@@ -1034,7 +1220,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1034
1220
|
|
|
1035
1221
|
|
|
1036
1222
|
let urlPath = `/vms/{id}`;
|
|
1037
|
-
urlPath = urlPath.replace(
|
|
1223
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1038
1224
|
|
|
1039
1225
|
return {
|
|
1040
1226
|
path: urlPath,
|
|
@@ -1063,13 +1249,13 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1063
1249
|
}
|
|
1064
1250
|
|
|
1065
1251
|
/**
|
|
1066
|
-
* Creates request options for
|
|
1252
|
+
* Creates request options for getVMUtilization without sending the request
|
|
1067
1253
|
*/
|
|
1068
|
-
async
|
|
1254
|
+
async getVMUtilizationRequestOpts(requestParameters: GetVMUtilizationRequest): Promise<runtime.RequestOpts> {
|
|
1069
1255
|
if (requestParameters['id'] == null) {
|
|
1070
1256
|
throw new runtime.RequiredError(
|
|
1071
1257
|
'id',
|
|
1072
|
-
'Required parameter "id" was null or undefined when calling
|
|
1258
|
+
'Required parameter "id" was null or undefined when calling getVMUtilization().'
|
|
1073
1259
|
);
|
|
1074
1260
|
}
|
|
1075
1261
|
|
|
@@ -1078,8 +1264,8 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1078
1264
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1079
1265
|
|
|
1080
1266
|
|
|
1081
|
-
let urlPath = `/vms/{id}/
|
|
1082
|
-
urlPath = urlPath.replace(
|
|
1267
|
+
let urlPath = `/vms/{id}/utilization`;
|
|
1268
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1083
1269
|
|
|
1084
1270
|
return {
|
|
1085
1271
|
path: urlPath,
|
|
@@ -1090,20 +1276,20 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1090
1276
|
}
|
|
1091
1277
|
|
|
1092
1278
|
/**
|
|
1093
|
-
* Get
|
|
1279
|
+
* Get utilization breakdown for a specific VM
|
|
1094
1280
|
*/
|
|
1095
|
-
async
|
|
1096
|
-
const requestOptions = await this.
|
|
1281
|
+
async getVMUtilizationRaw(requestParameters: GetVMUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VmUtilizationDetails>> {
|
|
1282
|
+
const requestOptions = await this.getVMUtilizationRequestOpts(requestParameters);
|
|
1097
1283
|
const response = await this.request(requestOptions, initOverrides);
|
|
1098
1284
|
|
|
1099
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
1285
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VmUtilizationDetailsFromJSON(jsonValue));
|
|
1100
1286
|
}
|
|
1101
1287
|
|
|
1102
1288
|
/**
|
|
1103
|
-
* Get
|
|
1289
|
+
* Get utilization breakdown for a specific VM
|
|
1104
1290
|
*/
|
|
1105
|
-
async
|
|
1106
|
-
const response = await this.
|
|
1291
|
+
async getVMUtilization(requestParameters: GetVMUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VmUtilizationDetails> {
|
|
1292
|
+
const response = await this.getVMUtilizationRaw(requestParameters, initOverrides);
|
|
1107
1293
|
return await response.value();
|
|
1108
1294
|
}
|
|
1109
1295
|
|
|
@@ -1160,43 +1346,6 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1160
1346
|
return await response.value();
|
|
1161
1347
|
}
|
|
1162
1348
|
|
|
1163
|
-
/**
|
|
1164
|
-
* Creates request options for getVddkStatus without sending the request
|
|
1165
|
-
*/
|
|
1166
|
-
async getVddkStatusRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1167
|
-
const queryParameters: any = {};
|
|
1168
|
-
|
|
1169
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
let urlPath = `/vddk`;
|
|
1173
|
-
|
|
1174
|
-
return {
|
|
1175
|
-
path: urlPath,
|
|
1176
|
-
method: 'GET',
|
|
1177
|
-
headers: headerParameters,
|
|
1178
|
-
query: queryParameters,
|
|
1179
|
-
};
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
/**
|
|
1183
|
-
* Get VDDK status
|
|
1184
|
-
*/
|
|
1185
|
-
async getVddkStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>> {
|
|
1186
|
-
const requestOptions = await this.getVddkStatusRequestOpts();
|
|
1187
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
1188
|
-
|
|
1189
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1192
|
-
/**
|
|
1193
|
-
* Get VDDK status
|
|
1194
|
-
*/
|
|
1195
|
-
async getVddkStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties> {
|
|
1196
|
-
const response = await this.getVddkStatusRaw(initOverrides);
|
|
1197
|
-
return await response.value();
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
1349
|
/**
|
|
1201
1350
|
* Creates request options for getVersion without sending the request
|
|
1202
1351
|
*/
|
|
@@ -1283,6 +1432,154 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1283
1432
|
return await response.value();
|
|
1284
1433
|
}
|
|
1285
1434
|
|
|
1435
|
+
/**
|
|
1436
|
+
* Creates request options for listRightsizingReports without sending the request
|
|
1437
|
+
*/
|
|
1438
|
+
async listRightsizingReportsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1439
|
+
const queryParameters: any = {};
|
|
1440
|
+
|
|
1441
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1442
|
+
|
|
1443
|
+
|
|
1444
|
+
let urlPath = `/rightsizing`;
|
|
1445
|
+
|
|
1446
|
+
return {
|
|
1447
|
+
path: urlPath,
|
|
1448
|
+
method: 'GET',
|
|
1449
|
+
headers: headerParameters,
|
|
1450
|
+
query: queryParameters,
|
|
1451
|
+
};
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
/**
|
|
1455
|
+
* List all rightsizing reports
|
|
1456
|
+
*/
|
|
1457
|
+
async listRightsizingReportsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingReportListResponse>> {
|
|
1458
|
+
const requestOptions = await this.listRightsizingReportsRequestOpts();
|
|
1459
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1460
|
+
|
|
1461
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingReportListResponseFromJSON(jsonValue));
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
/**
|
|
1465
|
+
* List all rightsizing reports
|
|
1466
|
+
*/
|
|
1467
|
+
async listRightsizingReports(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReportListResponse> {
|
|
1468
|
+
const response = await this.listRightsizingReportsRaw(initOverrides);
|
|
1469
|
+
return await response.value();
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
/**
|
|
1473
|
+
* Creates request options for putInspectorCredentials without sending the request
|
|
1474
|
+
*/
|
|
1475
|
+
async putInspectorCredentialsRequestOpts(requestParameters: PutInspectorCredentialsRequest): Promise<runtime.RequestOpts> {
|
|
1476
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
1477
|
+
throw new runtime.RequiredError(
|
|
1478
|
+
'vcenterCredentials',
|
|
1479
|
+
'Required parameter "vcenterCredentials" was null or undefined when calling putInspectorCredentials().'
|
|
1480
|
+
);
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
const queryParameters: any = {};
|
|
1484
|
+
|
|
1485
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1486
|
+
|
|
1487
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1488
|
+
|
|
1489
|
+
|
|
1490
|
+
let urlPath = `/inspector/credentials`;
|
|
1491
|
+
|
|
1492
|
+
return {
|
|
1493
|
+
path: urlPath,
|
|
1494
|
+
method: 'PUT',
|
|
1495
|
+
headers: headerParameters,
|
|
1496
|
+
query: queryParameters,
|
|
1497
|
+
body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
|
|
1498
|
+
};
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
/**
|
|
1502
|
+
* Set or replace inspector credentials
|
|
1503
|
+
*/
|
|
1504
|
+
async putInspectorCredentialsRaw(requestParameters: PutInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1505
|
+
const requestOptions = await this.putInspectorCredentialsRequestOpts(requestParameters);
|
|
1506
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1507
|
+
|
|
1508
|
+
return new runtime.VoidApiResponse(response);
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
/**
|
|
1512
|
+
* Set or replace inspector credentials
|
|
1513
|
+
*/
|
|
1514
|
+
async putInspectorCredentials(requestParameters: PutInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1515
|
+
await this.putInspectorCredentialsRaw(requestParameters, initOverrides);
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
/**
|
|
1519
|
+
* Creates request options for putInspectorVddk without sending the request
|
|
1520
|
+
*/
|
|
1521
|
+
async putInspectorVddkRequestOpts(requestParameters: PutInspectorVddkRequest): Promise<runtime.RequestOpts> {
|
|
1522
|
+
if (requestParameters['file'] == null) {
|
|
1523
|
+
throw new runtime.RequiredError(
|
|
1524
|
+
'file',
|
|
1525
|
+
'Required parameter "file" was null or undefined when calling putInspectorVddk().'
|
|
1526
|
+
);
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
const queryParameters: any = {};
|
|
1530
|
+
|
|
1531
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1532
|
+
|
|
1533
|
+
const consumes: runtime.Consume[] = [
|
|
1534
|
+
{ contentType: 'multipart/form-data' },
|
|
1535
|
+
];
|
|
1536
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
1537
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
1538
|
+
|
|
1539
|
+
let formParams: { append(param: string, value: any): any };
|
|
1540
|
+
let useForm = false;
|
|
1541
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
1542
|
+
useForm = canConsumeForm;
|
|
1543
|
+
if (useForm) {
|
|
1544
|
+
formParams = new FormData();
|
|
1545
|
+
} else {
|
|
1546
|
+
formParams = new URLSearchParams();
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
if (requestParameters['file'] != null) {
|
|
1550
|
+
formParams.append('file', requestParameters['file'] as any);
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
|
|
1554
|
+
let urlPath = `/inspector/vddk`;
|
|
1555
|
+
|
|
1556
|
+
return {
|
|
1557
|
+
path: urlPath,
|
|
1558
|
+
method: 'PUT',
|
|
1559
|
+
headers: headerParameters,
|
|
1560
|
+
query: queryParameters,
|
|
1561
|
+
body: formParams,
|
|
1562
|
+
};
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
/**
|
|
1566
|
+
* Upload VDDK tarball
|
|
1567
|
+
*/
|
|
1568
|
+
async putInspectorVddkRaw(requestParameters: PutInspectorVddkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>> {
|
|
1569
|
+
const requestOptions = await this.putInspectorVddkRequestOpts(requestParameters);
|
|
1570
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1571
|
+
|
|
1572
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
/**
|
|
1576
|
+
* Upload VDDK tarball
|
|
1577
|
+
*/
|
|
1578
|
+
async putInspectorVddk(requestParameters: PutInspectorVddkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties> {
|
|
1579
|
+
const response = await this.putInspectorVddkRaw(requestParameters, initOverrides);
|
|
1580
|
+
return await response.value();
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1286
1583
|
/**
|
|
1287
1584
|
* Creates request options for removeVMFromInspection without sending the request
|
|
1288
1585
|
*/
|
|
@@ -1299,8 +1596,8 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1299
1596
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1300
1597
|
|
|
1301
1598
|
|
|
1302
|
-
let urlPath = `/vms/{id}/
|
|
1303
|
-
urlPath = urlPath.replace(
|
|
1599
|
+
let urlPath = `/vms/{id}/inspection`;
|
|
1600
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1304
1601
|
|
|
1305
1602
|
return {
|
|
1306
1603
|
path: urlPath,
|
|
@@ -1425,11 +1722,11 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1425
1722
|
/**
|
|
1426
1723
|
* Creates request options for startInspection without sending the request
|
|
1427
1724
|
*/
|
|
1428
|
-
async startInspectionRequestOpts(requestParameters:
|
|
1429
|
-
if (requestParameters['
|
|
1725
|
+
async startInspectionRequestOpts(requestParameters: StartInspectionOperationRequest): Promise<runtime.RequestOpts> {
|
|
1726
|
+
if (requestParameters['startInspectionRequest'] == null) {
|
|
1430
1727
|
throw new runtime.RequiredError(
|
|
1431
|
-
'
|
|
1432
|
-
'Required parameter "
|
|
1728
|
+
'startInspectionRequest',
|
|
1729
|
+
'Required parameter "startInspectionRequest" was null or undefined when calling startInspection().'
|
|
1433
1730
|
);
|
|
1434
1731
|
}
|
|
1435
1732
|
|
|
@@ -1440,21 +1737,21 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1440
1737
|
headerParameters['Content-Type'] = 'application/json';
|
|
1441
1738
|
|
|
1442
1739
|
|
|
1443
|
-
let urlPath = `/
|
|
1740
|
+
let urlPath = `/inspector`;
|
|
1444
1741
|
|
|
1445
1742
|
return {
|
|
1446
1743
|
path: urlPath,
|
|
1447
1744
|
method: 'POST',
|
|
1448
1745
|
headers: headerParameters,
|
|
1449
1746
|
query: queryParameters,
|
|
1450
|
-
body:
|
|
1747
|
+
body: StartInspectionRequestToJSON(requestParameters['startInspectionRequest']),
|
|
1451
1748
|
};
|
|
1452
1749
|
}
|
|
1453
1750
|
|
|
1454
1751
|
/**
|
|
1455
1752
|
* Start inspection for VMs
|
|
1456
1753
|
*/
|
|
1457
|
-
async startInspectionRaw(requestParameters:
|
|
1754
|
+
async startInspectionRaw(requestParameters: StartInspectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InspectorStatus>> {
|
|
1458
1755
|
const requestOptions = await this.startInspectionRequestOpts(requestParameters);
|
|
1459
1756
|
const response = await this.request(requestOptions, initOverrides);
|
|
1460
1757
|
|
|
@@ -1464,7 +1761,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1464
1761
|
/**
|
|
1465
1762
|
* Start inspection for VMs
|
|
1466
1763
|
*/
|
|
1467
|
-
async startInspection(requestParameters:
|
|
1764
|
+
async startInspection(requestParameters: StartInspectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InspectorStatus> {
|
|
1468
1765
|
const response = await this.startInspectionRaw(requestParameters, initOverrides);
|
|
1469
1766
|
return await response.value();
|
|
1470
1767
|
}
|
|
@@ -1514,7 +1811,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1514
1811
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1515
1812
|
|
|
1516
1813
|
|
|
1517
|
-
let urlPath = `/
|
|
1814
|
+
let urlPath = `/inspector`;
|
|
1518
1815
|
|
|
1519
1816
|
return {
|
|
1520
1817
|
path: urlPath,
|
|
@@ -1543,20 +1840,13 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1543
1840
|
}
|
|
1544
1841
|
|
|
1545
1842
|
/**
|
|
1546
|
-
* Creates request options for
|
|
1843
|
+
* Creates request options for triggerRightsizingCollection without sending the request
|
|
1547
1844
|
*/
|
|
1548
|
-
async
|
|
1549
|
-
if (requestParameters['
|
|
1550
|
-
throw new runtime.RequiredError(
|
|
1551
|
-
'id',
|
|
1552
|
-
'Required parameter "id" was null or undefined when calling updateGroup().'
|
|
1553
|
-
);
|
|
1554
|
-
}
|
|
1555
|
-
|
|
1556
|
-
if (requestParameters['updateGroupRequest'] == null) {
|
|
1845
|
+
async triggerRightsizingCollectionRequestOpts(requestParameters: TriggerRightsizingCollectionRequest): Promise<runtime.RequestOpts> {
|
|
1846
|
+
if (requestParameters['rightsizingCollectRequest'] == null) {
|
|
1557
1847
|
throw new runtime.RequiredError(
|
|
1558
|
-
'
|
|
1559
|
-
'Required parameter "
|
|
1848
|
+
'rightsizingCollectRequest',
|
|
1849
|
+
'Required parameter "rightsizingCollectRequest" was null or undefined when calling triggerRightsizingCollection().'
|
|
1560
1850
|
);
|
|
1561
1851
|
}
|
|
1562
1852
|
|
|
@@ -1567,44 +1857,50 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1567
1857
|
headerParameters['Content-Type'] = 'application/json';
|
|
1568
1858
|
|
|
1569
1859
|
|
|
1570
|
-
let urlPath = `/
|
|
1571
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
1860
|
+
let urlPath = `/rightsizing`;
|
|
1572
1861
|
|
|
1573
1862
|
return {
|
|
1574
1863
|
path: urlPath,
|
|
1575
|
-
method: '
|
|
1864
|
+
method: 'POST',
|
|
1576
1865
|
headers: headerParameters,
|
|
1577
1866
|
query: queryParameters,
|
|
1578
|
-
body:
|
|
1867
|
+
body: RightsizingCollectRequestToJSON(requestParameters['rightsizingCollectRequest']),
|
|
1579
1868
|
};
|
|
1580
1869
|
}
|
|
1581
1870
|
|
|
1582
1871
|
/**
|
|
1583
|
-
*
|
|
1872
|
+
* Trigger rightsizing metrics collection
|
|
1584
1873
|
*/
|
|
1585
|
-
async
|
|
1586
|
-
const requestOptions = await this.
|
|
1874
|
+
async triggerRightsizingCollectionRaw(requestParameters: TriggerRightsizingCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingReportSummary>> {
|
|
1875
|
+
const requestOptions = await this.triggerRightsizingCollectionRequestOpts(requestParameters);
|
|
1587
1876
|
const response = await this.request(requestOptions, initOverrides);
|
|
1588
1877
|
|
|
1589
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
1878
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingReportSummaryFromJSON(jsonValue));
|
|
1590
1879
|
}
|
|
1591
1880
|
|
|
1592
1881
|
/**
|
|
1593
|
-
*
|
|
1882
|
+
* Trigger rightsizing metrics collection
|
|
1594
1883
|
*/
|
|
1595
|
-
async
|
|
1596
|
-
const response = await this.
|
|
1884
|
+
async triggerRightsizingCollection(requestParameters: TriggerRightsizingCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReportSummary> {
|
|
1885
|
+
const response = await this.triggerRightsizingCollectionRaw(requestParameters, initOverrides);
|
|
1597
1886
|
return await response.value();
|
|
1598
1887
|
}
|
|
1599
1888
|
|
|
1600
1889
|
/**
|
|
1601
|
-
* Creates request options for
|
|
1890
|
+
* Creates request options for updateGroup without sending the request
|
|
1602
1891
|
*/
|
|
1603
|
-
async
|
|
1604
|
-
if (requestParameters['
|
|
1892
|
+
async updateGroupRequestOpts(requestParameters: UpdateGroupOperationRequest): Promise<runtime.RequestOpts> {
|
|
1893
|
+
if (requestParameters['id'] == null) {
|
|
1605
1894
|
throw new runtime.RequiredError(
|
|
1606
|
-
'
|
|
1607
|
-
'Required parameter "
|
|
1895
|
+
'id',
|
|
1896
|
+
'Required parameter "id" was null or undefined when calling updateGroup().'
|
|
1897
|
+
);
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
if (requestParameters['updateGroupRequest'] == null) {
|
|
1901
|
+
throw new runtime.RequiredError(
|
|
1902
|
+
'updateGroupRequest',
|
|
1903
|
+
'Required parameter "updateGroupRequest" was null or undefined when calling updateGroup().'
|
|
1608
1904
|
);
|
|
1609
1905
|
}
|
|
1610
1906
|
|
|
@@ -1612,53 +1908,36 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1612
1908
|
|
|
1613
1909
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1614
1910
|
|
|
1615
|
-
|
|
1616
|
-
{ contentType: 'multipart/form-data' },
|
|
1617
|
-
];
|
|
1618
|
-
// @ts-ignore: canConsumeForm may be unused
|
|
1619
|
-
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
1620
|
-
|
|
1621
|
-
let formParams: { append(param: string, value: any): any };
|
|
1622
|
-
let useForm = false;
|
|
1623
|
-
// use FormData to transmit files using content-type "multipart/form-data"
|
|
1624
|
-
useForm = canConsumeForm;
|
|
1625
|
-
if (useForm) {
|
|
1626
|
-
formParams = new FormData();
|
|
1627
|
-
} else {
|
|
1628
|
-
formParams = new URLSearchParams();
|
|
1629
|
-
}
|
|
1630
|
-
|
|
1631
|
-
if (requestParameters['file'] != null) {
|
|
1632
|
-
formParams.append('file', requestParameters['file'] as any);
|
|
1633
|
-
}
|
|
1911
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1634
1912
|
|
|
1635
1913
|
|
|
1636
|
-
let urlPath = `/
|
|
1914
|
+
let urlPath = `/groups/{id}`;
|
|
1915
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1637
1916
|
|
|
1638
1917
|
return {
|
|
1639
1918
|
path: urlPath,
|
|
1640
|
-
method: '
|
|
1919
|
+
method: 'PATCH',
|
|
1641
1920
|
headers: headerParameters,
|
|
1642
1921
|
query: queryParameters,
|
|
1643
|
-
body:
|
|
1922
|
+
body: UpdateGroupRequestToJSON(requestParameters['updateGroupRequest']),
|
|
1644
1923
|
};
|
|
1645
1924
|
}
|
|
1646
1925
|
|
|
1647
1926
|
/**
|
|
1648
|
-
*
|
|
1927
|
+
* Update group
|
|
1649
1928
|
*/
|
|
1650
|
-
async
|
|
1651
|
-
const requestOptions = await this.
|
|
1929
|
+
async updateGroupRaw(requestParameters: UpdateGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Group>> {
|
|
1930
|
+
const requestOptions = await this.updateGroupRequestOpts(requestParameters);
|
|
1652
1931
|
const response = await this.request(requestOptions, initOverrides);
|
|
1653
1932
|
|
|
1654
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
1933
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GroupFromJSON(jsonValue));
|
|
1655
1934
|
}
|
|
1656
1935
|
|
|
1657
1936
|
/**
|
|
1658
|
-
*
|
|
1937
|
+
* Update group
|
|
1659
1938
|
*/
|
|
1660
|
-
async
|
|
1661
|
-
const response = await this.
|
|
1939
|
+
async updateGroup(requestParameters: UpdateGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Group> {
|
|
1940
|
+
const response = await this.updateGroupRaw(requestParameters, initOverrides);
|
|
1662
1941
|
return await response.value();
|
|
1663
1942
|
}
|
|
1664
1943
|
|