@openshift-migration-advisor/agent-sdk 0.8.0-a3f90da0e31d → 0.8.0-adc7901d9658
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 +2 -2
- package/README.md +12 -12
- package/dist/apis/DefaultApi.d.ts +125 -117
- package/dist/apis/DefaultApi.js +145 -139
- package/dist/esm/apis/DefaultApi.d.ts +125 -117
- package/dist/esm/apis/DefaultApi.js +146 -140
- package/dist/esm/models/InspectorStatus.d.ts +14 -0
- package/dist/esm/models/InspectorStatus.js +6 -0
- package/dist/esm/models/StartInspectionRequest.d.ts +32 -0
- package/dist/esm/models/StartInspectionRequest.js +43 -0
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/models/InspectorStatus.d.ts +14 -0
- package/dist/models/InspectorStatus.js +6 -0
- package/dist/models/StartInspectionRequest.d.ts +32 -0
- package/dist/models/StartInspectionRequest.js +50 -0
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/docs/DefaultApi.md +196 -187
- package/docs/InspectorStatus.md +4 -0
- package/docs/{InspectorStartRequest.md → StartInspectionRequest.md} +5 -6
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +268 -247
- package/src/models/InspectorStatus.ts +31 -0
- package/src/models/StartInspectionRequest.ts +66 -0
- package/src/models/index.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,10 +73,6 @@ import {
|
|
|
70
73
|
VmInspectionStatusToJSON,
|
|
71
74
|
} from '../models/index.js';
|
|
72
75
|
|
|
73
|
-
export interface AddVMToInspectionRequest {
|
|
74
|
-
id: string;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
76
|
export interface CreateGroupOperationRequest {
|
|
78
77
|
createGroupRequest: CreateGroupRequest;
|
|
79
78
|
}
|
|
@@ -89,6 +88,11 @@ export interface GetGroupRequest {
|
|
|
89
88
|
pageSize?: number;
|
|
90
89
|
}
|
|
91
90
|
|
|
91
|
+
export interface GetInspectorStatusRequest {
|
|
92
|
+
includeVddk?: boolean;
|
|
93
|
+
includeCredentials?: boolean;
|
|
94
|
+
}
|
|
95
|
+
|
|
92
96
|
export interface GetInventoryRequest {
|
|
93
97
|
withAgentId?: boolean;
|
|
94
98
|
groupId?: string;
|
|
@@ -111,6 +115,14 @@ export interface ListGroupsRequest {
|
|
|
111
115
|
pageSize?: number;
|
|
112
116
|
}
|
|
113
117
|
|
|
118
|
+
export interface PutInspectorCredentialsRequest {
|
|
119
|
+
vcenterCredentials: VcenterCredentials;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface PutInspectorVddkRequest {
|
|
123
|
+
file: Blob;
|
|
124
|
+
}
|
|
125
|
+
|
|
114
126
|
export interface RemoveVMFromInspectionRequest {
|
|
115
127
|
id: string;
|
|
116
128
|
}
|
|
@@ -123,8 +135,8 @@ export interface StartCollectorRequest {
|
|
|
123
135
|
collectorStartRequest: CollectorStartRequest;
|
|
124
136
|
}
|
|
125
137
|
|
|
126
|
-
export interface
|
|
127
|
-
|
|
138
|
+
export interface StartInspectionOperationRequest {
|
|
139
|
+
startInspectionRequest: StartInspectionRequest;
|
|
128
140
|
}
|
|
129
141
|
|
|
130
142
|
export interface UpdateGroupOperationRequest {
|
|
@@ -132,10 +144,6 @@ export interface UpdateGroupOperationRequest {
|
|
|
132
144
|
updateGroupRequest: UpdateGroupRequest;
|
|
133
145
|
}
|
|
134
146
|
|
|
135
|
-
export interface VddkPostRequest {
|
|
136
|
-
file: Blob;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
147
|
/**
|
|
140
148
|
* DefaultApi - interface
|
|
141
149
|
*
|
|
@@ -143,29 +151,6 @@ export interface VddkPostRequest {
|
|
|
143
151
|
* @interface DefaultApiInterface
|
|
144
152
|
*/
|
|
145
153
|
export interface DefaultApiInterface {
|
|
146
|
-
/**
|
|
147
|
-
* Creates request options for addVMToInspection without sending the request
|
|
148
|
-
* @param {string} id
|
|
149
|
-
* @throws {RequiredError}
|
|
150
|
-
* @memberof DefaultApiInterface
|
|
151
|
-
*/
|
|
152
|
-
addVMToInspectionRequestOpts(requestParameters: AddVMToInspectionRequest): Promise<runtime.RequestOpts>;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
*
|
|
156
|
-
* @summary Add VirtualMachine to inspection queue
|
|
157
|
-
* @param {string} id
|
|
158
|
-
* @param {*} [options] Override http request option.
|
|
159
|
-
* @throws {RequiredError}
|
|
160
|
-
* @memberof DefaultApiInterface
|
|
161
|
-
*/
|
|
162
|
-
addVMToInspectionRaw(requestParameters: AddVMToInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VmInspectionStatus>>;
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Add VirtualMachine to inspection queue
|
|
166
|
-
*/
|
|
167
|
-
addVMToInspection(requestParameters: AddVMToInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VmInspectionStatus>;
|
|
168
|
-
|
|
169
154
|
/**
|
|
170
155
|
* Creates request options for createGroup without sending the request
|
|
171
156
|
* @param {CreateGroupRequest} createGroupRequest
|
|
@@ -285,24 +270,49 @@ export interface DefaultApiInterface {
|
|
|
285
270
|
|
|
286
271
|
/**
|
|
287
272
|
* Creates request options for getInspectorStatus without sending the request
|
|
273
|
+
* @param {boolean} [includeVddk] If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded.
|
|
274
|
+
* @param {boolean} [includeCredentials] If true, include configured vCenter URL and username (password is never returned). omitted if was never set.
|
|
288
275
|
* @throws {RequiredError}
|
|
289
276
|
* @memberof DefaultApiInterface
|
|
290
277
|
*/
|
|
291
|
-
getInspectorStatusRequestOpts(): Promise<runtime.RequestOpts>;
|
|
278
|
+
getInspectorStatusRequestOpts(requestParameters: GetInspectorStatusRequest): Promise<runtime.RequestOpts>;
|
|
292
279
|
|
|
293
280
|
/**
|
|
294
281
|
*
|
|
295
282
|
* @summary Get inspector status
|
|
283
|
+
* @param {boolean} [includeVddk] If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded.
|
|
284
|
+
* @param {boolean} [includeCredentials] If true, include configured vCenter URL and username (password is never returned). omitted if was never set.
|
|
296
285
|
* @param {*} [options] Override http request option.
|
|
297
286
|
* @throws {RequiredError}
|
|
298
287
|
* @memberof DefaultApiInterface
|
|
299
288
|
*/
|
|
300
|
-
getInspectorStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InspectorStatus>>;
|
|
289
|
+
getInspectorStatusRaw(requestParameters: GetInspectorStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InspectorStatus>>;
|
|
301
290
|
|
|
302
291
|
/**
|
|
303
292
|
* Get inspector status
|
|
304
293
|
*/
|
|
305
|
-
getInspectorStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InspectorStatus>;
|
|
294
|
+
getInspectorStatus(requestParameters: GetInspectorStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InspectorStatus>;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Creates request options for getInspectorVddkStatus without sending the request
|
|
298
|
+
* @throws {RequiredError}
|
|
299
|
+
* @memberof DefaultApiInterface
|
|
300
|
+
*/
|
|
301
|
+
getInspectorVddkStatusRequestOpts(): Promise<runtime.RequestOpts>;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
*
|
|
305
|
+
* @summary Get VDDK status
|
|
306
|
+
* @param {*} [options] Override http request option.
|
|
307
|
+
* @throws {RequiredError}
|
|
308
|
+
* @memberof DefaultApiInterface
|
|
309
|
+
*/
|
|
310
|
+
getInspectorVddkStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Get VDDK status
|
|
314
|
+
*/
|
|
315
|
+
getInspectorVddkStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
|
|
306
316
|
|
|
307
317
|
/**
|
|
308
318
|
* Creates request options for getInventory without sending the request
|
|
@@ -381,27 +391,6 @@ export interface DefaultApiInterface {
|
|
|
381
391
|
*/
|
|
382
392
|
getVMs(requestParameters: GetVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse>;
|
|
383
393
|
|
|
384
|
-
/**
|
|
385
|
-
* Creates request options for getVddkStatus without sending the request
|
|
386
|
-
* @throws {RequiredError}
|
|
387
|
-
* @memberof DefaultApiInterface
|
|
388
|
-
*/
|
|
389
|
-
getVddkStatusRequestOpts(): Promise<runtime.RequestOpts>;
|
|
390
|
-
|
|
391
|
-
/**
|
|
392
|
-
*
|
|
393
|
-
* @summary Get VDDK status
|
|
394
|
-
* @param {*} [options] Override http request option.
|
|
395
|
-
* @throws {RequiredError}
|
|
396
|
-
* @memberof DefaultApiInterface
|
|
397
|
-
*/
|
|
398
|
-
getVddkStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
|
|
399
|
-
|
|
400
|
-
/**
|
|
401
|
-
* Get VDDK status
|
|
402
|
-
*/
|
|
403
|
-
getVddkStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
|
|
404
|
-
|
|
405
394
|
/**
|
|
406
395
|
* Creates request options for getVersion without sending the request
|
|
407
396
|
* @throws {RequiredError}
|
|
@@ -450,6 +439,52 @@ export interface DefaultApiInterface {
|
|
|
450
439
|
*/
|
|
451
440
|
listGroups(requestParameters: ListGroupsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupListResponse>;
|
|
452
441
|
|
|
442
|
+
/**
|
|
443
|
+
* Creates request options for putInspectorCredentials without sending the request
|
|
444
|
+
* @param {VcenterCredentials} vcenterCredentials
|
|
445
|
+
* @throws {RequiredError}
|
|
446
|
+
* @memberof DefaultApiInterface
|
|
447
|
+
*/
|
|
448
|
+
putInspectorCredentialsRequestOpts(requestParameters: PutInspectorCredentialsRequest): Promise<runtime.RequestOpts>;
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
*
|
|
452
|
+
* @summary Set or replace inspector credentials
|
|
453
|
+
* @param {VcenterCredentials} vcenterCredentials
|
|
454
|
+
* @param {*} [options] Override http request option.
|
|
455
|
+
* @throws {RequiredError}
|
|
456
|
+
* @memberof DefaultApiInterface
|
|
457
|
+
*/
|
|
458
|
+
putInspectorCredentialsRaw(requestParameters: PutInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Set or replace inspector credentials
|
|
462
|
+
*/
|
|
463
|
+
putInspectorCredentials(requestParameters: PutInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Creates request options for putInspectorVddk without sending the request
|
|
467
|
+
* @param {Blob} file VDDK tarball
|
|
468
|
+
* @throws {RequiredError}
|
|
469
|
+
* @memberof DefaultApiInterface
|
|
470
|
+
*/
|
|
471
|
+
putInspectorVddkRequestOpts(requestParameters: PutInspectorVddkRequest): Promise<runtime.RequestOpts>;
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
*
|
|
475
|
+
* @summary Upload VDDK tarball
|
|
476
|
+
* @param {Blob} file VDDK tarball
|
|
477
|
+
* @param {*} [options] Override http request option.
|
|
478
|
+
* @throws {RequiredError}
|
|
479
|
+
* @memberof DefaultApiInterface
|
|
480
|
+
*/
|
|
481
|
+
putInspectorVddkRaw(requestParameters: PutInspectorVddkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Upload VDDK tarball
|
|
485
|
+
*/
|
|
486
|
+
putInspectorVddk(requestParameters: PutInspectorVddkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
|
|
487
|
+
|
|
453
488
|
/**
|
|
454
489
|
* Creates request options for removeVMFromInspection without sending the request
|
|
455
490
|
* @param {string} id
|
|
@@ -521,26 +556,26 @@ export interface DefaultApiInterface {
|
|
|
521
556
|
|
|
522
557
|
/**
|
|
523
558
|
* Creates request options for startInspection without sending the request
|
|
524
|
-
* @param {
|
|
559
|
+
* @param {StartInspectionRequest} startInspectionRequest
|
|
525
560
|
* @throws {RequiredError}
|
|
526
561
|
* @memberof DefaultApiInterface
|
|
527
562
|
*/
|
|
528
|
-
startInspectionRequestOpts(requestParameters:
|
|
563
|
+
startInspectionRequestOpts(requestParameters: StartInspectionOperationRequest): Promise<runtime.RequestOpts>;
|
|
529
564
|
|
|
530
565
|
/**
|
|
531
566
|
*
|
|
532
567
|
* @summary Start inspection for VMs
|
|
533
|
-
* @param {
|
|
568
|
+
* @param {StartInspectionRequest} startInspectionRequest
|
|
534
569
|
* @param {*} [options] Override http request option.
|
|
535
570
|
* @throws {RequiredError}
|
|
536
571
|
* @memberof DefaultApiInterface
|
|
537
572
|
*/
|
|
538
|
-
startInspectionRaw(requestParameters:
|
|
573
|
+
startInspectionRaw(requestParameters: StartInspectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InspectorStatus>>;
|
|
539
574
|
|
|
540
575
|
/**
|
|
541
576
|
* Start inspection for VMs
|
|
542
577
|
*/
|
|
543
|
-
startInspection(requestParameters:
|
|
578
|
+
startInspection(requestParameters: StartInspectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InspectorStatus>;
|
|
544
579
|
|
|
545
580
|
/**
|
|
546
581
|
* Creates request options for stopCollector without sending the request
|
|
@@ -609,29 +644,6 @@ export interface DefaultApiInterface {
|
|
|
609
644
|
*/
|
|
610
645
|
updateGroup(requestParameters: UpdateGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Group>;
|
|
611
646
|
|
|
612
|
-
/**
|
|
613
|
-
* Creates request options for vddkPost without sending the request
|
|
614
|
-
* @param {Blob} file VDDK tarball
|
|
615
|
-
* @throws {RequiredError}
|
|
616
|
-
* @memberof DefaultApiInterface
|
|
617
|
-
*/
|
|
618
|
-
vddkPostRequestOpts(requestParameters: VddkPostRequest): Promise<runtime.RequestOpts>;
|
|
619
|
-
|
|
620
|
-
/**
|
|
621
|
-
*
|
|
622
|
-
* @summary Upload VDDK tarball
|
|
623
|
-
* @param {Blob} file VDDK tarball
|
|
624
|
-
* @param {*} [options] Override http request option.
|
|
625
|
-
* @throws {RequiredError}
|
|
626
|
-
* @memberof DefaultApiInterface
|
|
627
|
-
*/
|
|
628
|
-
vddkPostRaw(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
|
|
629
|
-
|
|
630
|
-
/**
|
|
631
|
-
* Upload VDDK tarball
|
|
632
|
-
*/
|
|
633
|
-
vddkPost(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
|
|
634
|
-
|
|
635
647
|
}
|
|
636
648
|
|
|
637
649
|
/**
|
|
@@ -639,51 +651,6 @@ export interface DefaultApiInterface {
|
|
|
639
651
|
*/
|
|
640
652
|
export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
641
653
|
|
|
642
|
-
/**
|
|
643
|
-
* Creates request options for addVMToInspection without sending the request
|
|
644
|
-
*/
|
|
645
|
-
async addVMToInspectionRequestOpts(requestParameters: AddVMToInspectionRequest): Promise<runtime.RequestOpts> {
|
|
646
|
-
if (requestParameters['id'] == null) {
|
|
647
|
-
throw new runtime.RequiredError(
|
|
648
|
-
'id',
|
|
649
|
-
'Required parameter "id" was null or undefined when calling addVMToInspection().'
|
|
650
|
-
);
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
const queryParameters: any = {};
|
|
654
|
-
|
|
655
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
let urlPath = `/vms/{id}/inspection`;
|
|
659
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
660
|
-
|
|
661
|
-
return {
|
|
662
|
-
path: urlPath,
|
|
663
|
-
method: 'POST',
|
|
664
|
-
headers: headerParameters,
|
|
665
|
-
query: queryParameters,
|
|
666
|
-
};
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
/**
|
|
670
|
-
* Add VirtualMachine to inspection queue
|
|
671
|
-
*/
|
|
672
|
-
async addVMToInspectionRaw(requestParameters: AddVMToInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VmInspectionStatus>> {
|
|
673
|
-
const requestOptions = await this.addVMToInspectionRequestOpts(requestParameters);
|
|
674
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
675
|
-
|
|
676
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => VmInspectionStatusFromJSON(jsonValue));
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
/**
|
|
680
|
-
* Add VirtualMachine to inspection queue
|
|
681
|
-
*/
|
|
682
|
-
async addVMToInspection(requestParameters: AddVMToInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VmInspectionStatus> {
|
|
683
|
-
const response = await this.addVMToInspectionRaw(requestParameters, initOverrides);
|
|
684
|
-
return await response.value();
|
|
685
|
-
}
|
|
686
|
-
|
|
687
654
|
/**
|
|
688
655
|
* Creates request options for createGroup without sending the request
|
|
689
656
|
*/
|
|
@@ -909,9 +876,17 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
909
876
|
/**
|
|
910
877
|
* Creates request options for getInspectorStatus without sending the request
|
|
911
878
|
*/
|
|
912
|
-
async getInspectorStatusRequestOpts(): Promise<runtime.RequestOpts> {
|
|
879
|
+
async getInspectorStatusRequestOpts(requestParameters: GetInspectorStatusRequest): Promise<runtime.RequestOpts> {
|
|
913
880
|
const queryParameters: any = {};
|
|
914
881
|
|
|
882
|
+
if (requestParameters['includeVddk'] != null) {
|
|
883
|
+
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
if (requestParameters['includeCredentials'] != null) {
|
|
887
|
+
queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
|
|
888
|
+
}
|
|
889
|
+
|
|
915
890
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
916
891
|
|
|
917
892
|
|
|
@@ -928,8 +903,8 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
928
903
|
/**
|
|
929
904
|
* Get inspector status
|
|
930
905
|
*/
|
|
931
|
-
async getInspectorStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InspectorStatus>> {
|
|
932
|
-
const requestOptions = await this.getInspectorStatusRequestOpts();
|
|
906
|
+
async getInspectorStatusRaw(requestParameters: GetInspectorStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InspectorStatus>> {
|
|
907
|
+
const requestOptions = await this.getInspectorStatusRequestOpts(requestParameters);
|
|
933
908
|
const response = await this.request(requestOptions, initOverrides);
|
|
934
909
|
|
|
935
910
|
return new runtime.JSONApiResponse(response, (jsonValue) => InspectorStatusFromJSON(jsonValue));
|
|
@@ -938,8 +913,45 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
938
913
|
/**
|
|
939
914
|
* Get inspector status
|
|
940
915
|
*/
|
|
941
|
-
async getInspectorStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InspectorStatus> {
|
|
942
|
-
const response = await this.getInspectorStatusRaw(initOverrides);
|
|
916
|
+
async getInspectorStatus(requestParameters: GetInspectorStatusRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InspectorStatus> {
|
|
917
|
+
const response = await this.getInspectorStatusRaw(requestParameters, initOverrides);
|
|
918
|
+
return await response.value();
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* Creates request options for getInspectorVddkStatus without sending the request
|
|
923
|
+
*/
|
|
924
|
+
async getInspectorVddkStatusRequestOpts(): Promise<runtime.RequestOpts> {
|
|
925
|
+
const queryParameters: any = {};
|
|
926
|
+
|
|
927
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
let urlPath = `/inspector/vddk`;
|
|
931
|
+
|
|
932
|
+
return {
|
|
933
|
+
path: urlPath,
|
|
934
|
+
method: 'GET',
|
|
935
|
+
headers: headerParameters,
|
|
936
|
+
query: queryParameters,
|
|
937
|
+
};
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
/**
|
|
941
|
+
* Get VDDK status
|
|
942
|
+
*/
|
|
943
|
+
async getInspectorVddkStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>> {
|
|
944
|
+
const requestOptions = await this.getInspectorVddkStatusRequestOpts();
|
|
945
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
946
|
+
|
|
947
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
/**
|
|
951
|
+
* Get VDDK status
|
|
952
|
+
*/
|
|
953
|
+
async getInspectorVddkStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties> {
|
|
954
|
+
const response = await this.getInspectorVddkStatusRaw(initOverrides);
|
|
943
955
|
return await response.value();
|
|
944
956
|
}
|
|
945
957
|
|
|
@@ -1086,43 +1098,6 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1086
1098
|
return await response.value();
|
|
1087
1099
|
}
|
|
1088
1100
|
|
|
1089
|
-
/**
|
|
1090
|
-
* Creates request options for getVddkStatus without sending the request
|
|
1091
|
-
*/
|
|
1092
|
-
async getVddkStatusRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1093
|
-
const queryParameters: any = {};
|
|
1094
|
-
|
|
1095
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
let urlPath = `/vddk`;
|
|
1099
|
-
|
|
1100
|
-
return {
|
|
1101
|
-
path: urlPath,
|
|
1102
|
-
method: 'GET',
|
|
1103
|
-
headers: headerParameters,
|
|
1104
|
-
query: queryParameters,
|
|
1105
|
-
};
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
/**
|
|
1109
|
-
* Get VDDK status
|
|
1110
|
-
*/
|
|
1111
|
-
async getVddkStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>> {
|
|
1112
|
-
const requestOptions = await this.getVddkStatusRequestOpts();
|
|
1113
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
1114
|
-
|
|
1115
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
|
|
1116
|
-
}
|
|
1117
|
-
|
|
1118
|
-
/**
|
|
1119
|
-
* Get VDDK status
|
|
1120
|
-
*/
|
|
1121
|
-
async getVddkStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties> {
|
|
1122
|
-
const response = await this.getVddkStatusRaw(initOverrides);
|
|
1123
|
-
return await response.value();
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
1101
|
/**
|
|
1127
1102
|
* Creates request options for getVersion without sending the request
|
|
1128
1103
|
*/
|
|
@@ -1209,6 +1184,117 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1209
1184
|
return await response.value();
|
|
1210
1185
|
}
|
|
1211
1186
|
|
|
1187
|
+
/**
|
|
1188
|
+
* Creates request options for putInspectorCredentials without sending the request
|
|
1189
|
+
*/
|
|
1190
|
+
async putInspectorCredentialsRequestOpts(requestParameters: PutInspectorCredentialsRequest): Promise<runtime.RequestOpts> {
|
|
1191
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
1192
|
+
throw new runtime.RequiredError(
|
|
1193
|
+
'vcenterCredentials',
|
|
1194
|
+
'Required parameter "vcenterCredentials" was null or undefined when calling putInspectorCredentials().'
|
|
1195
|
+
);
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
const queryParameters: any = {};
|
|
1199
|
+
|
|
1200
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1201
|
+
|
|
1202
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1203
|
+
|
|
1204
|
+
|
|
1205
|
+
let urlPath = `/inspector/credentials`;
|
|
1206
|
+
|
|
1207
|
+
return {
|
|
1208
|
+
path: urlPath,
|
|
1209
|
+
method: 'PUT',
|
|
1210
|
+
headers: headerParameters,
|
|
1211
|
+
query: queryParameters,
|
|
1212
|
+
body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
|
|
1213
|
+
};
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* Set or replace inspector credentials
|
|
1218
|
+
*/
|
|
1219
|
+
async putInspectorCredentialsRaw(requestParameters: PutInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1220
|
+
const requestOptions = await this.putInspectorCredentialsRequestOpts(requestParameters);
|
|
1221
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1222
|
+
|
|
1223
|
+
return new runtime.VoidApiResponse(response);
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
* Set or replace inspector credentials
|
|
1228
|
+
*/
|
|
1229
|
+
async putInspectorCredentials(requestParameters: PutInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1230
|
+
await this.putInspectorCredentialsRaw(requestParameters, initOverrides);
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
/**
|
|
1234
|
+
* Creates request options for putInspectorVddk without sending the request
|
|
1235
|
+
*/
|
|
1236
|
+
async putInspectorVddkRequestOpts(requestParameters: PutInspectorVddkRequest): Promise<runtime.RequestOpts> {
|
|
1237
|
+
if (requestParameters['file'] == null) {
|
|
1238
|
+
throw new runtime.RequiredError(
|
|
1239
|
+
'file',
|
|
1240
|
+
'Required parameter "file" was null or undefined when calling putInspectorVddk().'
|
|
1241
|
+
);
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
const queryParameters: any = {};
|
|
1245
|
+
|
|
1246
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1247
|
+
|
|
1248
|
+
const consumes: runtime.Consume[] = [
|
|
1249
|
+
{ contentType: 'multipart/form-data' },
|
|
1250
|
+
];
|
|
1251
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
1252
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
1253
|
+
|
|
1254
|
+
let formParams: { append(param: string, value: any): any };
|
|
1255
|
+
let useForm = false;
|
|
1256
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
1257
|
+
useForm = canConsumeForm;
|
|
1258
|
+
if (useForm) {
|
|
1259
|
+
formParams = new FormData();
|
|
1260
|
+
} else {
|
|
1261
|
+
formParams = new URLSearchParams();
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
if (requestParameters['file'] != null) {
|
|
1265
|
+
formParams.append('file', requestParameters['file'] as any);
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
let urlPath = `/inspector/vddk`;
|
|
1270
|
+
|
|
1271
|
+
return {
|
|
1272
|
+
path: urlPath,
|
|
1273
|
+
method: 'PUT',
|
|
1274
|
+
headers: headerParameters,
|
|
1275
|
+
query: queryParameters,
|
|
1276
|
+
body: formParams,
|
|
1277
|
+
};
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
/**
|
|
1281
|
+
* Upload VDDK tarball
|
|
1282
|
+
*/
|
|
1283
|
+
async putInspectorVddkRaw(requestParameters: PutInspectorVddkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>> {
|
|
1284
|
+
const requestOptions = await this.putInspectorVddkRequestOpts(requestParameters);
|
|
1285
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1286
|
+
|
|
1287
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
/**
|
|
1291
|
+
* Upload VDDK tarball
|
|
1292
|
+
*/
|
|
1293
|
+
async putInspectorVddk(requestParameters: PutInspectorVddkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties> {
|
|
1294
|
+
const response = await this.putInspectorVddkRaw(requestParameters, initOverrides);
|
|
1295
|
+
return await response.value();
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1212
1298
|
/**
|
|
1213
1299
|
* Creates request options for removeVMFromInspection without sending the request
|
|
1214
1300
|
*/
|
|
@@ -1351,11 +1437,11 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1351
1437
|
/**
|
|
1352
1438
|
* Creates request options for startInspection without sending the request
|
|
1353
1439
|
*/
|
|
1354
|
-
async startInspectionRequestOpts(requestParameters:
|
|
1355
|
-
if (requestParameters['
|
|
1440
|
+
async startInspectionRequestOpts(requestParameters: StartInspectionOperationRequest): Promise<runtime.RequestOpts> {
|
|
1441
|
+
if (requestParameters['startInspectionRequest'] == null) {
|
|
1356
1442
|
throw new runtime.RequiredError(
|
|
1357
|
-
'
|
|
1358
|
-
'Required parameter "
|
|
1443
|
+
'startInspectionRequest',
|
|
1444
|
+
'Required parameter "startInspectionRequest" was null or undefined when calling startInspection().'
|
|
1359
1445
|
);
|
|
1360
1446
|
}
|
|
1361
1447
|
|
|
@@ -1373,14 +1459,14 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1373
1459
|
method: 'POST',
|
|
1374
1460
|
headers: headerParameters,
|
|
1375
1461
|
query: queryParameters,
|
|
1376
|
-
body:
|
|
1462
|
+
body: StartInspectionRequestToJSON(requestParameters['startInspectionRequest']),
|
|
1377
1463
|
};
|
|
1378
1464
|
}
|
|
1379
1465
|
|
|
1380
1466
|
/**
|
|
1381
1467
|
* Start inspection for VMs
|
|
1382
1468
|
*/
|
|
1383
|
-
async startInspectionRaw(requestParameters:
|
|
1469
|
+
async startInspectionRaw(requestParameters: StartInspectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InspectorStatus>> {
|
|
1384
1470
|
const requestOptions = await this.startInspectionRequestOpts(requestParameters);
|
|
1385
1471
|
const response = await this.request(requestOptions, initOverrides);
|
|
1386
1472
|
|
|
@@ -1390,7 +1476,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1390
1476
|
/**
|
|
1391
1477
|
* Start inspection for VMs
|
|
1392
1478
|
*/
|
|
1393
|
-
async startInspection(requestParameters:
|
|
1479
|
+
async startInspection(requestParameters: StartInspectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InspectorStatus> {
|
|
1394
1480
|
const response = await this.startInspectionRaw(requestParameters, initOverrides);
|
|
1395
1481
|
return await response.value();
|
|
1396
1482
|
}
|
|
@@ -1523,69 +1609,4 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1523
1609
|
return await response.value();
|
|
1524
1610
|
}
|
|
1525
1611
|
|
|
1526
|
-
/**
|
|
1527
|
-
* Creates request options for vddkPost without sending the request
|
|
1528
|
-
*/
|
|
1529
|
-
async vddkPostRequestOpts(requestParameters: VddkPostRequest): Promise<runtime.RequestOpts> {
|
|
1530
|
-
if (requestParameters['file'] == null) {
|
|
1531
|
-
throw new runtime.RequiredError(
|
|
1532
|
-
'file',
|
|
1533
|
-
'Required parameter "file" was null or undefined when calling vddkPost().'
|
|
1534
|
-
);
|
|
1535
|
-
}
|
|
1536
|
-
|
|
1537
|
-
const queryParameters: any = {};
|
|
1538
|
-
|
|
1539
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1540
|
-
|
|
1541
|
-
const consumes: runtime.Consume[] = [
|
|
1542
|
-
{ contentType: 'multipart/form-data' },
|
|
1543
|
-
];
|
|
1544
|
-
// @ts-ignore: canConsumeForm may be unused
|
|
1545
|
-
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
1546
|
-
|
|
1547
|
-
let formParams: { append(param: string, value: any): any };
|
|
1548
|
-
let useForm = false;
|
|
1549
|
-
// use FormData to transmit files using content-type "multipart/form-data"
|
|
1550
|
-
useForm = canConsumeForm;
|
|
1551
|
-
if (useForm) {
|
|
1552
|
-
formParams = new FormData();
|
|
1553
|
-
} else {
|
|
1554
|
-
formParams = new URLSearchParams();
|
|
1555
|
-
}
|
|
1556
|
-
|
|
1557
|
-
if (requestParameters['file'] != null) {
|
|
1558
|
-
formParams.append('file', requestParameters['file'] as any);
|
|
1559
|
-
}
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
let urlPath = `/vddk`;
|
|
1563
|
-
|
|
1564
|
-
return {
|
|
1565
|
-
path: urlPath,
|
|
1566
|
-
method: 'POST',
|
|
1567
|
-
headers: headerParameters,
|
|
1568
|
-
query: queryParameters,
|
|
1569
|
-
body: formParams,
|
|
1570
|
-
};
|
|
1571
|
-
}
|
|
1572
|
-
|
|
1573
|
-
/**
|
|
1574
|
-
* Upload VDDK tarball
|
|
1575
|
-
*/
|
|
1576
|
-
async vddkPostRaw(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>> {
|
|
1577
|
-
const requestOptions = await this.vddkPostRequestOpts(requestParameters);
|
|
1578
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
1579
|
-
|
|
1580
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
|
|
1581
|
-
}
|
|
1582
|
-
|
|
1583
|
-
/**
|
|
1584
|
-
* Upload VDDK tarball
|
|
1585
|
-
*/
|
|
1586
|
-
async vddkPost(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties> {
|
|
1587
|
-
const response = await this.vddkPostRaw(requestParameters, initOverrides);
|
|
1588
|
-
return await response.value();
|
|
1589
|
-
}
|
|
1590
|
-
|
|
1591
1612
|
}
|