@openshift-migration-advisor/agent-sdk 0.8.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +6 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +19 -17
- package/dist/apis/DefaultApi.d.ts +141 -133
- package/dist/apis/DefaultApi.js +168 -163
- package/dist/esm/apis/DefaultApi.d.ts +141 -133
- package/dist/esm/apis/DefaultApi.js +169 -164
- package/dist/esm/models/InspectorStatus.d.ts +20 -7
- package/dist/esm/models/InspectorStatus.js +12 -7
- 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 +7 -1
- package/dist/esm/models/VirtualMachine.js +4 -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/index.d.ts +3 -1
- package/dist/esm/models/index.js +3 -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/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 +7 -1
- package/dist/models/VirtualMachine.js +4 -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/index.d.ts +3 -1
- package/dist/models/index.js +3 -1
- package/dist/runtime.js +1 -1
- package/docs/DefaultApi.md +191 -179
- package/docs/InspectorStatus.md +4 -0
- package/docs/{InspectorStartRequest.md → StartInspectionRequest.md} +5 -6
- package/docs/VMs.md +4 -0
- package/docs/VirtualMachine.md +4 -2
- package/docs/VirtualMachineDetail.md +1 -1
- package/docs/VmInspectionConcern.md +39 -0
- package/docs/VmInspectionResults.md +35 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +302 -283
- package/src/models/InspectorStatus.ts +37 -7
- package/src/models/StartInspectionRequest.ts +66 -0
- package/src/models/VMs.ts +18 -0
- package/src/models/VirtualMachine.ts +11 -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/index.ts +3 -1
- package/src/runtime.ts +1 -1
- 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
|
@@ -24,9 +24,10 @@ import type {
|
|
|
24
24
|
Group,
|
|
25
25
|
GroupListResponse,
|
|
26
26
|
GroupResponse,
|
|
27
|
-
InspectorStartRequest,
|
|
28
27
|
InspectorStatus,
|
|
28
|
+
StartInspectionRequest,
|
|
29
29
|
UpdateGroupRequest,
|
|
30
|
+
VcenterCredentials,
|
|
30
31
|
VddkProperties,
|
|
31
32
|
VersionInfo,
|
|
32
33
|
VirtualMachineDetail,
|
|
@@ -52,12 +53,14 @@ import {
|
|
|
52
53
|
GroupListResponseToJSON,
|
|
53
54
|
GroupResponseFromJSON,
|
|
54
55
|
GroupResponseToJSON,
|
|
55
|
-
InspectorStartRequestFromJSON,
|
|
56
|
-
InspectorStartRequestToJSON,
|
|
57
56
|
InspectorStatusFromJSON,
|
|
58
57
|
InspectorStatusToJSON,
|
|
58
|
+
StartInspectionRequestFromJSON,
|
|
59
|
+
StartInspectionRequestToJSON,
|
|
59
60
|
UpdateGroupRequestFromJSON,
|
|
60
61
|
UpdateGroupRequestToJSON,
|
|
62
|
+
VcenterCredentialsFromJSON,
|
|
63
|
+
VcenterCredentialsToJSON,
|
|
61
64
|
VddkPropertiesFromJSON,
|
|
62
65
|
VddkPropertiesToJSON,
|
|
63
66
|
VersionInfoFromJSON,
|
|
@@ -70,8 +73,8 @@ import {
|
|
|
70
73
|
VmInspectionStatusToJSON,
|
|
71
74
|
} from '../models/index.js';
|
|
72
75
|
|
|
73
|
-
export interface
|
|
74
|
-
|
|
76
|
+
export interface AddVMToInspectionRequest {
|
|
77
|
+
id: string;
|
|
75
78
|
}
|
|
76
79
|
|
|
77
80
|
export interface CreateGroupOperationRequest {
|
|
@@ -89,6 +92,11 @@ export interface GetGroupRequest {
|
|
|
89
92
|
pageSize?: number;
|
|
90
93
|
}
|
|
91
94
|
|
|
95
|
+
export interface GetInspectorStatusRequest {
|
|
96
|
+
includeVddk?: boolean;
|
|
97
|
+
includeCredentials?: boolean;
|
|
98
|
+
}
|
|
99
|
+
|
|
92
100
|
export interface GetInventoryRequest {
|
|
93
101
|
withAgentId?: boolean;
|
|
94
102
|
groupId?: string;
|
|
@@ -98,10 +106,6 @@ export interface GetVMRequest {
|
|
|
98
106
|
id: string;
|
|
99
107
|
}
|
|
100
108
|
|
|
101
|
-
export interface GetVMInspectionStatusRequest {
|
|
102
|
-
id: string;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
109
|
export interface GetVMsRequest {
|
|
106
110
|
byExpression?: string;
|
|
107
111
|
sort?: Array<string>;
|
|
@@ -115,6 +119,14 @@ export interface ListGroupsRequest {
|
|
|
115
119
|
pageSize?: number;
|
|
116
120
|
}
|
|
117
121
|
|
|
122
|
+
export interface PutInspectorCredentialsRequest {
|
|
123
|
+
vcenterCredentials: VcenterCredentials;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export interface PutInspectorVddkRequest {
|
|
127
|
+
file: Blob;
|
|
128
|
+
}
|
|
129
|
+
|
|
118
130
|
export interface RemoveVMFromInspectionRequest {
|
|
119
131
|
id: string;
|
|
120
132
|
}
|
|
@@ -127,8 +139,8 @@ export interface StartCollectorRequest {
|
|
|
127
139
|
collectorStartRequest: CollectorStartRequest;
|
|
128
140
|
}
|
|
129
141
|
|
|
130
|
-
export interface
|
|
131
|
-
|
|
142
|
+
export interface StartInspectionOperationRequest {
|
|
143
|
+
startInspectionRequest: StartInspectionRequest;
|
|
132
144
|
}
|
|
133
145
|
|
|
134
146
|
export interface UpdateGroupOperationRequest {
|
|
@@ -136,10 +148,6 @@ export interface UpdateGroupOperationRequest {
|
|
|
136
148
|
updateGroupRequest: UpdateGroupRequest;
|
|
137
149
|
}
|
|
138
150
|
|
|
139
|
-
export interface VddkPostRequest {
|
|
140
|
-
file: Blob;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
151
|
/**
|
|
144
152
|
* DefaultApi - interface
|
|
145
153
|
*
|
|
@@ -148,27 +156,27 @@ export interface VddkPostRequest {
|
|
|
148
156
|
*/
|
|
149
157
|
export interface DefaultApiInterface {
|
|
150
158
|
/**
|
|
151
|
-
* Creates request options for
|
|
152
|
-
* @param {
|
|
159
|
+
* Creates request options for addVMToInspection without sending the request
|
|
160
|
+
* @param {string} id
|
|
153
161
|
* @throws {RequiredError}
|
|
154
162
|
* @memberof DefaultApiInterface
|
|
155
163
|
*/
|
|
156
|
-
|
|
164
|
+
addVMToInspectionRequestOpts(requestParameters: AddVMToInspectionRequest): Promise<runtime.RequestOpts>;
|
|
157
165
|
|
|
158
166
|
/**
|
|
159
167
|
*
|
|
160
|
-
* @summary Add
|
|
161
|
-
* @param {
|
|
168
|
+
* @summary Add VirtualMachine to inspection queue
|
|
169
|
+
* @param {string} id
|
|
162
170
|
* @param {*} [options] Override http request option.
|
|
163
171
|
* @throws {RequiredError}
|
|
164
172
|
* @memberof DefaultApiInterface
|
|
165
173
|
*/
|
|
166
|
-
|
|
174
|
+
addVMToInspectionRaw(requestParameters: AddVMToInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VmInspectionStatus>>;
|
|
167
175
|
|
|
168
176
|
/**
|
|
169
|
-
* Add
|
|
177
|
+
* Add VirtualMachine to inspection queue
|
|
170
178
|
*/
|
|
171
|
-
|
|
179
|
+
addVMToInspection(requestParameters: AddVMToInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VmInspectionStatus>;
|
|
172
180
|
|
|
173
181
|
/**
|
|
174
182
|
* Creates request options for createGroup without sending the request
|
|
@@ -289,24 +297,49 @@ export interface DefaultApiInterface {
|
|
|
289
297
|
|
|
290
298
|
/**
|
|
291
299
|
* Creates request options for getInspectorStatus without sending the request
|
|
300
|
+
* @param {boolean} [includeVddk] If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded.
|
|
301
|
+
* @param {boolean} [includeCredentials] If true, include configured vCenter URL and username (password is never returned). omitted if was never set.
|
|
292
302
|
* @throws {RequiredError}
|
|
293
303
|
* @memberof DefaultApiInterface
|
|
294
304
|
*/
|
|
295
|
-
getInspectorStatusRequestOpts(): Promise<runtime.RequestOpts>;
|
|
305
|
+
getInspectorStatusRequestOpts(requestParameters: GetInspectorStatusRequest): Promise<runtime.RequestOpts>;
|
|
296
306
|
|
|
297
307
|
/**
|
|
298
308
|
*
|
|
299
309
|
* @summary Get inspector status
|
|
310
|
+
* @param {boolean} [includeVddk] If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded.
|
|
311
|
+
* @param {boolean} [includeCredentials] If true, include configured vCenter URL and username (password is never returned). omitted if was never set.
|
|
300
312
|
* @param {*} [options] Override http request option.
|
|
301
313
|
* @throws {RequiredError}
|
|
302
314
|
* @memberof DefaultApiInterface
|
|
303
315
|
*/
|
|
304
|
-
getInspectorStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InspectorStatus>>;
|
|
316
|
+
getInspectorStatusRaw(requestParameters: GetInspectorStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InspectorStatus>>;
|
|
305
317
|
|
|
306
318
|
/**
|
|
307
319
|
* Get inspector status
|
|
308
320
|
*/
|
|
309
|
-
getInspectorStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InspectorStatus>;
|
|
321
|
+
getInspectorStatus(requestParameters: GetInspectorStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InspectorStatus>;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Creates request options for getInspectorVddkStatus without sending the request
|
|
325
|
+
* @throws {RequiredError}
|
|
326
|
+
* @memberof DefaultApiInterface
|
|
327
|
+
*/
|
|
328
|
+
getInspectorVddkStatusRequestOpts(): Promise<runtime.RequestOpts>;
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
*
|
|
332
|
+
* @summary Get VDDK status
|
|
333
|
+
* @param {*} [options] Override http request option.
|
|
334
|
+
* @throws {RequiredError}
|
|
335
|
+
* @memberof DefaultApiInterface
|
|
336
|
+
*/
|
|
337
|
+
getInspectorVddkStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Get VDDK status
|
|
341
|
+
*/
|
|
342
|
+
getInspectorVddkStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
|
|
310
343
|
|
|
311
344
|
/**
|
|
312
345
|
* Creates request options for getInventory without sending the request
|
|
@@ -356,29 +389,6 @@ export interface DefaultApiInterface {
|
|
|
356
389
|
*/
|
|
357
390
|
getVM(requestParameters: GetVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineDetail>;
|
|
358
391
|
|
|
359
|
-
/**
|
|
360
|
-
* Creates request options for getVMInspectionStatus without sending the request
|
|
361
|
-
* @param {string} id VirtualMachine ID
|
|
362
|
-
* @throws {RequiredError}
|
|
363
|
-
* @memberof DefaultApiInterface
|
|
364
|
-
*/
|
|
365
|
-
getVMInspectionStatusRequestOpts(requestParameters: GetVMInspectionStatusRequest): Promise<runtime.RequestOpts>;
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
*
|
|
369
|
-
* @summary Get inspection status for a specific VirtualMachine
|
|
370
|
-
* @param {string} id VirtualMachine ID
|
|
371
|
-
* @param {*} [options] Override http request option.
|
|
372
|
-
* @throws {RequiredError}
|
|
373
|
-
* @memberof DefaultApiInterface
|
|
374
|
-
*/
|
|
375
|
-
getVMInspectionStatusRaw(requestParameters: GetVMInspectionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VmInspectionStatus>>;
|
|
376
|
-
|
|
377
|
-
/**
|
|
378
|
-
* Get inspection status for a specific VirtualMachine
|
|
379
|
-
*/
|
|
380
|
-
getVMInspectionStatus(requestParameters: GetVMInspectionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VmInspectionStatus>;
|
|
381
|
-
|
|
382
392
|
/**
|
|
383
393
|
* Creates request options for getVMs without sending the request
|
|
384
394
|
* @param {string} [byExpression] Filter by expression (matches VMs with the provided expression)
|
|
@@ -408,27 +418,6 @@ export interface DefaultApiInterface {
|
|
|
408
418
|
*/
|
|
409
419
|
getVMs(requestParameters: GetVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse>;
|
|
410
420
|
|
|
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
421
|
/**
|
|
433
422
|
* Creates request options for getVersion without sending the request
|
|
434
423
|
* @throws {RequiredError}
|
|
@@ -477,6 +466,52 @@ export interface DefaultApiInterface {
|
|
|
477
466
|
*/
|
|
478
467
|
listGroups(requestParameters: ListGroupsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupListResponse>;
|
|
479
468
|
|
|
469
|
+
/**
|
|
470
|
+
* Creates request options for putInspectorCredentials without sending the request
|
|
471
|
+
* @param {VcenterCredentials} vcenterCredentials
|
|
472
|
+
* @throws {RequiredError}
|
|
473
|
+
* @memberof DefaultApiInterface
|
|
474
|
+
*/
|
|
475
|
+
putInspectorCredentialsRequestOpts(requestParameters: PutInspectorCredentialsRequest): Promise<runtime.RequestOpts>;
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
*
|
|
479
|
+
* @summary Set or replace inspector credentials
|
|
480
|
+
* @param {VcenterCredentials} vcenterCredentials
|
|
481
|
+
* @param {*} [options] Override http request option.
|
|
482
|
+
* @throws {RequiredError}
|
|
483
|
+
* @memberof DefaultApiInterface
|
|
484
|
+
*/
|
|
485
|
+
putInspectorCredentialsRaw(requestParameters: PutInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Set or replace inspector credentials
|
|
489
|
+
*/
|
|
490
|
+
putInspectorCredentials(requestParameters: PutInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Creates request options for putInspectorVddk without sending the request
|
|
494
|
+
* @param {Blob} file VDDK tarball
|
|
495
|
+
* @throws {RequiredError}
|
|
496
|
+
* @memberof DefaultApiInterface
|
|
497
|
+
*/
|
|
498
|
+
putInspectorVddkRequestOpts(requestParameters: PutInspectorVddkRequest): Promise<runtime.RequestOpts>;
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
*
|
|
502
|
+
* @summary Upload VDDK tarball
|
|
503
|
+
* @param {Blob} file VDDK tarball
|
|
504
|
+
* @param {*} [options] Override http request option.
|
|
505
|
+
* @throws {RequiredError}
|
|
506
|
+
* @memberof DefaultApiInterface
|
|
507
|
+
*/
|
|
508
|
+
putInspectorVddkRaw(requestParameters: PutInspectorVddkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* Upload VDDK tarball
|
|
512
|
+
*/
|
|
513
|
+
putInspectorVddk(requestParameters: PutInspectorVddkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
|
|
514
|
+
|
|
480
515
|
/**
|
|
481
516
|
* Creates request options for removeVMFromInspection without sending the request
|
|
482
517
|
* @param {string} id
|
|
@@ -548,26 +583,26 @@ export interface DefaultApiInterface {
|
|
|
548
583
|
|
|
549
584
|
/**
|
|
550
585
|
* Creates request options for startInspection without sending the request
|
|
551
|
-
* @param {
|
|
586
|
+
* @param {StartInspectionRequest} startInspectionRequest
|
|
552
587
|
* @throws {RequiredError}
|
|
553
588
|
* @memberof DefaultApiInterface
|
|
554
589
|
*/
|
|
555
|
-
startInspectionRequestOpts(requestParameters:
|
|
590
|
+
startInspectionRequestOpts(requestParameters: StartInspectionOperationRequest): Promise<runtime.RequestOpts>;
|
|
556
591
|
|
|
557
592
|
/**
|
|
558
593
|
*
|
|
559
594
|
* @summary Start inspection for VMs
|
|
560
|
-
* @param {
|
|
595
|
+
* @param {StartInspectionRequest} startInspectionRequest
|
|
561
596
|
* @param {*} [options] Override http request option.
|
|
562
597
|
* @throws {RequiredError}
|
|
563
598
|
* @memberof DefaultApiInterface
|
|
564
599
|
*/
|
|
565
|
-
startInspectionRaw(requestParameters:
|
|
600
|
+
startInspectionRaw(requestParameters: StartInspectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InspectorStatus>>;
|
|
566
601
|
|
|
567
602
|
/**
|
|
568
603
|
* Start inspection for VMs
|
|
569
604
|
*/
|
|
570
|
-
startInspection(requestParameters:
|
|
605
|
+
startInspection(requestParameters: StartInspectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InspectorStatus>;
|
|
571
606
|
|
|
572
607
|
/**
|
|
573
608
|
* Creates request options for stopCollector without sending the request
|
|
@@ -636,29 +671,6 @@ export interface DefaultApiInterface {
|
|
|
636
671
|
*/
|
|
637
672
|
updateGroup(requestParameters: UpdateGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Group>;
|
|
638
673
|
|
|
639
|
-
/**
|
|
640
|
-
* Creates request options for vddkPost without sending the request
|
|
641
|
-
* @param {Blob} file VDDK tarball
|
|
642
|
-
* @throws {RequiredError}
|
|
643
|
-
* @memberof DefaultApiInterface
|
|
644
|
-
*/
|
|
645
|
-
vddkPostRequestOpts(requestParameters: VddkPostRequest): Promise<runtime.RequestOpts>;
|
|
646
|
-
|
|
647
|
-
/**
|
|
648
|
-
*
|
|
649
|
-
* @summary Upload VDDK tarball
|
|
650
|
-
* @param {Blob} file VDDK tarball
|
|
651
|
-
* @param {*} [options] Override http request option.
|
|
652
|
-
* @throws {RequiredError}
|
|
653
|
-
* @memberof DefaultApiInterface
|
|
654
|
-
*/
|
|
655
|
-
vddkPostRaw(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
|
|
656
|
-
|
|
657
|
-
/**
|
|
658
|
-
* Upload VDDK tarball
|
|
659
|
-
*/
|
|
660
|
-
vddkPost(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
|
|
661
|
-
|
|
662
674
|
}
|
|
663
675
|
|
|
664
676
|
/**
|
|
@@ -667,13 +679,13 @@ export interface DefaultApiInterface {
|
|
|
667
679
|
export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
668
680
|
|
|
669
681
|
/**
|
|
670
|
-
* Creates request options for
|
|
682
|
+
* Creates request options for addVMToInspection without sending the request
|
|
671
683
|
*/
|
|
672
|
-
async
|
|
673
|
-
if (requestParameters['
|
|
684
|
+
async addVMToInspectionRequestOpts(requestParameters: AddVMToInspectionRequest): Promise<runtime.RequestOpts> {
|
|
685
|
+
if (requestParameters['id'] == null) {
|
|
674
686
|
throw new runtime.RequiredError(
|
|
675
|
-
'
|
|
676
|
-
'Required parameter "
|
|
687
|
+
'id',
|
|
688
|
+
'Required parameter "id" was null or undefined when calling addVMToInspection().'
|
|
677
689
|
);
|
|
678
690
|
}
|
|
679
691
|
|
|
@@ -681,35 +693,33 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
681
693
|
|
|
682
694
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
683
695
|
|
|
684
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
685
|
-
|
|
686
696
|
|
|
687
|
-
let urlPath = `/vms/
|
|
697
|
+
let urlPath = `/vms/{id}/inspection`;
|
|
698
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
688
699
|
|
|
689
700
|
return {
|
|
690
701
|
path: urlPath,
|
|
691
|
-
method: '
|
|
702
|
+
method: 'POST',
|
|
692
703
|
headers: headerParameters,
|
|
693
704
|
query: queryParameters,
|
|
694
|
-
body: requestParameters['requestBody'],
|
|
695
705
|
};
|
|
696
706
|
}
|
|
697
707
|
|
|
698
708
|
/**
|
|
699
|
-
* Add
|
|
709
|
+
* Add VirtualMachine to inspection queue
|
|
700
710
|
*/
|
|
701
|
-
async
|
|
702
|
-
const requestOptions = await this.
|
|
711
|
+
async addVMToInspectionRaw(requestParameters: AddVMToInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VmInspectionStatus>> {
|
|
712
|
+
const requestOptions = await this.addVMToInspectionRequestOpts(requestParameters);
|
|
703
713
|
const response = await this.request(requestOptions, initOverrides);
|
|
704
714
|
|
|
705
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
715
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VmInspectionStatusFromJSON(jsonValue));
|
|
706
716
|
}
|
|
707
717
|
|
|
708
718
|
/**
|
|
709
|
-
* Add
|
|
719
|
+
* Add VirtualMachine to inspection queue
|
|
710
720
|
*/
|
|
711
|
-
async
|
|
712
|
-
const response = await this.
|
|
721
|
+
async addVMToInspection(requestParameters: AddVMToInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VmInspectionStatus> {
|
|
722
|
+
const response = await this.addVMToInspectionRaw(requestParameters, initOverrides);
|
|
713
723
|
return await response.value();
|
|
714
724
|
}
|
|
715
725
|
|
|
@@ -777,7 +787,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
777
787
|
|
|
778
788
|
|
|
779
789
|
let urlPath = `/groups/{id}`;
|
|
780
|
-
urlPath = urlPath.replace(
|
|
790
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
781
791
|
|
|
782
792
|
return {
|
|
783
793
|
path: urlPath,
|
|
@@ -907,7 +917,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
907
917
|
|
|
908
918
|
|
|
909
919
|
let urlPath = `/groups/{id}`;
|
|
910
|
-
urlPath = urlPath.replace(
|
|
920
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
911
921
|
|
|
912
922
|
return {
|
|
913
923
|
path: urlPath,
|
|
@@ -938,13 +948,21 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
938
948
|
/**
|
|
939
949
|
* Creates request options for getInspectorStatus without sending the request
|
|
940
950
|
*/
|
|
941
|
-
async getInspectorStatusRequestOpts(): Promise<runtime.RequestOpts> {
|
|
951
|
+
async getInspectorStatusRequestOpts(requestParameters: GetInspectorStatusRequest): Promise<runtime.RequestOpts> {
|
|
942
952
|
const queryParameters: any = {};
|
|
943
953
|
|
|
954
|
+
if (requestParameters['includeVddk'] != null) {
|
|
955
|
+
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
if (requestParameters['includeCredentials'] != null) {
|
|
959
|
+
queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
|
|
960
|
+
}
|
|
961
|
+
|
|
944
962
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
945
963
|
|
|
946
964
|
|
|
947
|
-
let urlPath = `/
|
|
965
|
+
let urlPath = `/inspector`;
|
|
948
966
|
|
|
949
967
|
return {
|
|
950
968
|
path: urlPath,
|
|
@@ -957,8 +975,8 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
957
975
|
/**
|
|
958
976
|
* Get inspector status
|
|
959
977
|
*/
|
|
960
|
-
async getInspectorStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InspectorStatus>> {
|
|
961
|
-
const requestOptions = await this.getInspectorStatusRequestOpts();
|
|
978
|
+
async getInspectorStatusRaw(requestParameters: GetInspectorStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InspectorStatus>> {
|
|
979
|
+
const requestOptions = await this.getInspectorStatusRequestOpts(requestParameters);
|
|
962
980
|
const response = await this.request(requestOptions, initOverrides);
|
|
963
981
|
|
|
964
982
|
return new runtime.JSONApiResponse(response, (jsonValue) => InspectorStatusFromJSON(jsonValue));
|
|
@@ -967,8 +985,45 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
967
985
|
/**
|
|
968
986
|
* Get inspector status
|
|
969
987
|
*/
|
|
970
|
-
async getInspectorStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InspectorStatus> {
|
|
971
|
-
const response = await this.getInspectorStatusRaw(initOverrides);
|
|
988
|
+
async getInspectorStatus(requestParameters: GetInspectorStatusRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InspectorStatus> {
|
|
989
|
+
const response = await this.getInspectorStatusRaw(requestParameters, initOverrides);
|
|
990
|
+
return await response.value();
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* Creates request options for getInspectorVddkStatus without sending the request
|
|
995
|
+
*/
|
|
996
|
+
async getInspectorVddkStatusRequestOpts(): Promise<runtime.RequestOpts> {
|
|
997
|
+
const queryParameters: any = {};
|
|
998
|
+
|
|
999
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
let urlPath = `/inspector/vddk`;
|
|
1003
|
+
|
|
1004
|
+
return {
|
|
1005
|
+
path: urlPath,
|
|
1006
|
+
method: 'GET',
|
|
1007
|
+
headers: headerParameters,
|
|
1008
|
+
query: queryParameters,
|
|
1009
|
+
};
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* Get VDDK status
|
|
1014
|
+
*/
|
|
1015
|
+
async getInspectorVddkStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>> {
|
|
1016
|
+
const requestOptions = await this.getInspectorVddkStatusRequestOpts();
|
|
1017
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1018
|
+
|
|
1019
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* Get VDDK status
|
|
1024
|
+
*/
|
|
1025
|
+
async getInspectorVddkStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties> {
|
|
1026
|
+
const response = await this.getInspectorVddkStatusRaw(initOverrides);
|
|
972
1027
|
return await response.value();
|
|
973
1028
|
}
|
|
974
1029
|
|
|
@@ -1034,7 +1089,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1034
1089
|
|
|
1035
1090
|
|
|
1036
1091
|
let urlPath = `/vms/{id}`;
|
|
1037
|
-
urlPath = urlPath.replace(
|
|
1092
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1038
1093
|
|
|
1039
1094
|
return {
|
|
1040
1095
|
path: urlPath,
|
|
@@ -1062,51 +1117,6 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1062
1117
|
return await response.value();
|
|
1063
1118
|
}
|
|
1064
1119
|
|
|
1065
|
-
/**
|
|
1066
|
-
* Creates request options for getVMInspectionStatus without sending the request
|
|
1067
|
-
*/
|
|
1068
|
-
async getVMInspectionStatusRequestOpts(requestParameters: GetVMInspectionStatusRequest): Promise<runtime.RequestOpts> {
|
|
1069
|
-
if (requestParameters['id'] == null) {
|
|
1070
|
-
throw new runtime.RequiredError(
|
|
1071
|
-
'id',
|
|
1072
|
-
'Required parameter "id" was null or undefined when calling getVMInspectionStatus().'
|
|
1073
|
-
);
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
|
-
const queryParameters: any = {};
|
|
1077
|
-
|
|
1078
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
let urlPath = `/vms/{id}/inspector`;
|
|
1082
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
1083
|
-
|
|
1084
|
-
return {
|
|
1085
|
-
path: urlPath,
|
|
1086
|
-
method: 'GET',
|
|
1087
|
-
headers: headerParameters,
|
|
1088
|
-
query: queryParameters,
|
|
1089
|
-
};
|
|
1090
|
-
}
|
|
1091
|
-
|
|
1092
|
-
/**
|
|
1093
|
-
* Get inspection status for a specific VirtualMachine
|
|
1094
|
-
*/
|
|
1095
|
-
async getVMInspectionStatusRaw(requestParameters: GetVMInspectionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VmInspectionStatus>> {
|
|
1096
|
-
const requestOptions = await this.getVMInspectionStatusRequestOpts(requestParameters);
|
|
1097
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
1098
|
-
|
|
1099
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => VmInspectionStatusFromJSON(jsonValue));
|
|
1100
|
-
}
|
|
1101
|
-
|
|
1102
|
-
/**
|
|
1103
|
-
* Get inspection status for a specific VirtualMachine
|
|
1104
|
-
*/
|
|
1105
|
-
async getVMInspectionStatus(requestParameters: GetVMInspectionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VmInspectionStatus> {
|
|
1106
|
-
const response = await this.getVMInspectionStatusRaw(requestParameters, initOverrides);
|
|
1107
|
-
return await response.value();
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
1120
|
/**
|
|
1111
1121
|
* Creates request options for getVMs without sending the request
|
|
1112
1122
|
*/
|
|
@@ -1160,43 +1170,6 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1160
1170
|
return await response.value();
|
|
1161
1171
|
}
|
|
1162
1172
|
|
|
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
1173
|
/**
|
|
1201
1174
|
* Creates request options for getVersion without sending the request
|
|
1202
1175
|
*/
|
|
@@ -1283,6 +1256,117 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1283
1256
|
return await response.value();
|
|
1284
1257
|
}
|
|
1285
1258
|
|
|
1259
|
+
/**
|
|
1260
|
+
* Creates request options for putInspectorCredentials without sending the request
|
|
1261
|
+
*/
|
|
1262
|
+
async putInspectorCredentialsRequestOpts(requestParameters: PutInspectorCredentialsRequest): Promise<runtime.RequestOpts> {
|
|
1263
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
1264
|
+
throw new runtime.RequiredError(
|
|
1265
|
+
'vcenterCredentials',
|
|
1266
|
+
'Required parameter "vcenterCredentials" was null or undefined when calling putInspectorCredentials().'
|
|
1267
|
+
);
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
const queryParameters: any = {};
|
|
1271
|
+
|
|
1272
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1273
|
+
|
|
1274
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1275
|
+
|
|
1276
|
+
|
|
1277
|
+
let urlPath = `/inspector/credentials`;
|
|
1278
|
+
|
|
1279
|
+
return {
|
|
1280
|
+
path: urlPath,
|
|
1281
|
+
method: 'PUT',
|
|
1282
|
+
headers: headerParameters,
|
|
1283
|
+
query: queryParameters,
|
|
1284
|
+
body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
|
|
1285
|
+
};
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
/**
|
|
1289
|
+
* Set or replace inspector credentials
|
|
1290
|
+
*/
|
|
1291
|
+
async putInspectorCredentialsRaw(requestParameters: PutInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1292
|
+
const requestOptions = await this.putInspectorCredentialsRequestOpts(requestParameters);
|
|
1293
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1294
|
+
|
|
1295
|
+
return new runtime.VoidApiResponse(response);
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
/**
|
|
1299
|
+
* Set or replace inspector credentials
|
|
1300
|
+
*/
|
|
1301
|
+
async putInspectorCredentials(requestParameters: PutInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1302
|
+
await this.putInspectorCredentialsRaw(requestParameters, initOverrides);
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
/**
|
|
1306
|
+
* Creates request options for putInspectorVddk without sending the request
|
|
1307
|
+
*/
|
|
1308
|
+
async putInspectorVddkRequestOpts(requestParameters: PutInspectorVddkRequest): Promise<runtime.RequestOpts> {
|
|
1309
|
+
if (requestParameters['file'] == null) {
|
|
1310
|
+
throw new runtime.RequiredError(
|
|
1311
|
+
'file',
|
|
1312
|
+
'Required parameter "file" was null or undefined when calling putInspectorVddk().'
|
|
1313
|
+
);
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
const queryParameters: any = {};
|
|
1317
|
+
|
|
1318
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1319
|
+
|
|
1320
|
+
const consumes: runtime.Consume[] = [
|
|
1321
|
+
{ contentType: 'multipart/form-data' },
|
|
1322
|
+
];
|
|
1323
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
1324
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
1325
|
+
|
|
1326
|
+
let formParams: { append(param: string, value: any): any };
|
|
1327
|
+
let useForm = false;
|
|
1328
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
1329
|
+
useForm = canConsumeForm;
|
|
1330
|
+
if (useForm) {
|
|
1331
|
+
formParams = new FormData();
|
|
1332
|
+
} else {
|
|
1333
|
+
formParams = new URLSearchParams();
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
if (requestParameters['file'] != null) {
|
|
1337
|
+
formParams.append('file', requestParameters['file'] as any);
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
|
|
1341
|
+
let urlPath = `/inspector/vddk`;
|
|
1342
|
+
|
|
1343
|
+
return {
|
|
1344
|
+
path: urlPath,
|
|
1345
|
+
method: 'PUT',
|
|
1346
|
+
headers: headerParameters,
|
|
1347
|
+
query: queryParameters,
|
|
1348
|
+
body: formParams,
|
|
1349
|
+
};
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
/**
|
|
1353
|
+
* Upload VDDK tarball
|
|
1354
|
+
*/
|
|
1355
|
+
async putInspectorVddkRaw(requestParameters: PutInspectorVddkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>> {
|
|
1356
|
+
const requestOptions = await this.putInspectorVddkRequestOpts(requestParameters);
|
|
1357
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1358
|
+
|
|
1359
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
/**
|
|
1363
|
+
* Upload VDDK tarball
|
|
1364
|
+
*/
|
|
1365
|
+
async putInspectorVddk(requestParameters: PutInspectorVddkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties> {
|
|
1366
|
+
const response = await this.putInspectorVddkRaw(requestParameters, initOverrides);
|
|
1367
|
+
return await response.value();
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1286
1370
|
/**
|
|
1287
1371
|
* Creates request options for removeVMFromInspection without sending the request
|
|
1288
1372
|
*/
|
|
@@ -1299,8 +1383,8 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1299
1383
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1300
1384
|
|
|
1301
1385
|
|
|
1302
|
-
let urlPath = `/vms/{id}/
|
|
1303
|
-
urlPath = urlPath.replace(
|
|
1386
|
+
let urlPath = `/vms/{id}/inspection`;
|
|
1387
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1304
1388
|
|
|
1305
1389
|
return {
|
|
1306
1390
|
path: urlPath,
|
|
@@ -1425,11 +1509,11 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1425
1509
|
/**
|
|
1426
1510
|
* Creates request options for startInspection without sending the request
|
|
1427
1511
|
*/
|
|
1428
|
-
async startInspectionRequestOpts(requestParameters:
|
|
1429
|
-
if (requestParameters['
|
|
1512
|
+
async startInspectionRequestOpts(requestParameters: StartInspectionOperationRequest): Promise<runtime.RequestOpts> {
|
|
1513
|
+
if (requestParameters['startInspectionRequest'] == null) {
|
|
1430
1514
|
throw new runtime.RequiredError(
|
|
1431
|
-
'
|
|
1432
|
-
'Required parameter "
|
|
1515
|
+
'startInspectionRequest',
|
|
1516
|
+
'Required parameter "startInspectionRequest" was null or undefined when calling startInspection().'
|
|
1433
1517
|
);
|
|
1434
1518
|
}
|
|
1435
1519
|
|
|
@@ -1440,21 +1524,21 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1440
1524
|
headerParameters['Content-Type'] = 'application/json';
|
|
1441
1525
|
|
|
1442
1526
|
|
|
1443
|
-
let urlPath = `/
|
|
1527
|
+
let urlPath = `/inspector`;
|
|
1444
1528
|
|
|
1445
1529
|
return {
|
|
1446
1530
|
path: urlPath,
|
|
1447
1531
|
method: 'POST',
|
|
1448
1532
|
headers: headerParameters,
|
|
1449
1533
|
query: queryParameters,
|
|
1450
|
-
body:
|
|
1534
|
+
body: StartInspectionRequestToJSON(requestParameters['startInspectionRequest']),
|
|
1451
1535
|
};
|
|
1452
1536
|
}
|
|
1453
1537
|
|
|
1454
1538
|
/**
|
|
1455
1539
|
* Start inspection for VMs
|
|
1456
1540
|
*/
|
|
1457
|
-
async startInspectionRaw(requestParameters:
|
|
1541
|
+
async startInspectionRaw(requestParameters: StartInspectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InspectorStatus>> {
|
|
1458
1542
|
const requestOptions = await this.startInspectionRequestOpts(requestParameters);
|
|
1459
1543
|
const response = await this.request(requestOptions, initOverrides);
|
|
1460
1544
|
|
|
@@ -1464,7 +1548,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1464
1548
|
/**
|
|
1465
1549
|
* Start inspection for VMs
|
|
1466
1550
|
*/
|
|
1467
|
-
async startInspection(requestParameters:
|
|
1551
|
+
async startInspection(requestParameters: StartInspectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InspectorStatus> {
|
|
1468
1552
|
const response = await this.startInspectionRaw(requestParameters, initOverrides);
|
|
1469
1553
|
return await response.value();
|
|
1470
1554
|
}
|
|
@@ -1514,7 +1598,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1514
1598
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1515
1599
|
|
|
1516
1600
|
|
|
1517
|
-
let urlPath = `/
|
|
1601
|
+
let urlPath = `/inspector`;
|
|
1518
1602
|
|
|
1519
1603
|
return {
|
|
1520
1604
|
path: urlPath,
|
|
@@ -1568,7 +1652,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1568
1652
|
|
|
1569
1653
|
|
|
1570
1654
|
let urlPath = `/groups/{id}`;
|
|
1571
|
-
urlPath = urlPath.replace(
|
|
1655
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1572
1656
|
|
|
1573
1657
|
return {
|
|
1574
1658
|
path: urlPath,
|
|
@@ -1597,69 +1681,4 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1597
1681
|
return await response.value();
|
|
1598
1682
|
}
|
|
1599
1683
|
|
|
1600
|
-
/**
|
|
1601
|
-
* Creates request options for vddkPost without sending the request
|
|
1602
|
-
*/
|
|
1603
|
-
async vddkPostRequestOpts(requestParameters: VddkPostRequest): Promise<runtime.RequestOpts> {
|
|
1604
|
-
if (requestParameters['file'] == null) {
|
|
1605
|
-
throw new runtime.RequiredError(
|
|
1606
|
-
'file',
|
|
1607
|
-
'Required parameter "file" was null or undefined when calling vddkPost().'
|
|
1608
|
-
);
|
|
1609
|
-
}
|
|
1610
|
-
|
|
1611
|
-
const queryParameters: any = {};
|
|
1612
|
-
|
|
1613
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1614
|
-
|
|
1615
|
-
const consumes: runtime.Consume[] = [
|
|
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
|
-
}
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
let urlPath = `/vddk`;
|
|
1637
|
-
|
|
1638
|
-
return {
|
|
1639
|
-
path: urlPath,
|
|
1640
|
-
method: 'POST',
|
|
1641
|
-
headers: headerParameters,
|
|
1642
|
-
query: queryParameters,
|
|
1643
|
-
body: formParams,
|
|
1644
|
-
};
|
|
1645
|
-
}
|
|
1646
|
-
|
|
1647
|
-
/**
|
|
1648
|
-
* Upload VDDK tarball
|
|
1649
|
-
*/
|
|
1650
|
-
async vddkPostRaw(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>> {
|
|
1651
|
-
const requestOptions = await this.vddkPostRequestOpts(requestParameters);
|
|
1652
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
1653
|
-
|
|
1654
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
|
|
1655
|
-
}
|
|
1656
|
-
|
|
1657
|
-
/**
|
|
1658
|
-
* Upload VDDK tarball
|
|
1659
|
-
*/
|
|
1660
|
-
async vddkPost(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties> {
|
|
1661
|
-
const response = await this.vddkPostRaw(requestParameters, initOverrides);
|
|
1662
|
-
return await response.value();
|
|
1663
|
-
}
|
|
1664
|
-
|
|
1665
1684
|
}
|