@openshift-migration-advisor/agent-sdk 0.8.0 → 0.12.0-914fe80385ee
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 +50 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +56 -17
- package/dist/apis/DefaultApi.d.ts +706 -126
- package/dist/apis/DefaultApi.js +916 -285
- package/dist/esm/apis/DefaultApi.d.ts +706 -126
- package/dist/esm/apis/DefaultApi.js +898 -267
- package/dist/esm/models/BenchmarkRun.d.ts +104 -0
- package/dist/esm/models/BenchmarkRun.js +85 -0
- package/dist/esm/models/DatastoreDetail.d.ts +90 -0
- package/dist/esm/models/DatastoreDetail.js +74 -0
- package/dist/esm/models/DatastorePair.d.ts +50 -0
- package/dist/esm/models/DatastorePair.js +53 -0
- package/dist/esm/models/EstimateRange.d.ts +44 -0
- package/dist/esm/models/EstimateRange.js +45 -0
- package/dist/esm/models/ForecastStats.d.ts +87 -0
- package/dist/esm/models/ForecastStats.js +64 -0
- package/dist/esm/models/ForecasterDatastoresRequest.d.ts +33 -0
- package/dist/esm/models/ForecasterDatastoresRequest.js +42 -0
- package/dist/esm/models/ForecasterPairStatus.d.ts +98 -0
- package/dist/esm/models/ForecasterPairStatus.js +82 -0
- package/dist/esm/models/ForecasterStartRequest.d.ts +58 -0
- package/dist/esm/models/ForecasterStartRequest.js +53 -0
- package/dist/esm/models/ForecasterStatus.d.ts +47 -0
- package/dist/esm/models/ForecasterStatus.js +53 -0
- package/dist/esm/models/InspectorStatus.d.ts +20 -7
- package/dist/esm/models/InspectorStatus.js +12 -7
- package/dist/esm/models/PairCapability.d.ts +60 -0
- package/dist/esm/models/PairCapability.js +64 -0
- package/dist/esm/models/PairCapabilityRequest.d.ts +40 -0
- package/dist/esm/models/PairCapabilityRequest.js +47 -0
- package/dist/esm/models/PutForecasterCredentials403Response.d.ts +38 -0
- package/dist/esm/models/PutForecasterCredentials403Response.js +43 -0
- package/dist/esm/models/RightsizingClusterListResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterUtilization.d.ts +112 -0
- package/dist/esm/models/RightsizingClusterUtilization.js +95 -0
- 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/StopForecasterPair202Response.d.ts +45 -0
- package/dist/esm/models/StopForecasterPair202Response.js +49 -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 +116 -0
- package/dist/esm/models/VmUtilizationDetails.js +99 -0
- package/dist/esm/models/index.d.ts +25 -1
- package/dist/esm/models/index.js +25 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/BenchmarkRun.d.ts +104 -0
- package/dist/models/BenchmarkRun.js +92 -0
- package/dist/models/DatastoreDetail.d.ts +90 -0
- package/dist/models/DatastoreDetail.js +82 -0
- package/dist/models/DatastorePair.d.ts +50 -0
- package/dist/models/DatastorePair.js +60 -0
- package/dist/models/EstimateRange.d.ts +44 -0
- package/dist/models/EstimateRange.js +52 -0
- package/dist/models/ForecastStats.d.ts +87 -0
- package/dist/models/ForecastStats.js +71 -0
- package/dist/models/ForecasterDatastoresRequest.d.ts +33 -0
- package/dist/models/ForecasterDatastoresRequest.js +49 -0
- package/dist/models/ForecasterPairStatus.d.ts +98 -0
- package/dist/models/ForecasterPairStatus.js +90 -0
- package/dist/models/ForecasterStartRequest.d.ts +58 -0
- package/dist/models/ForecasterStartRequest.js +60 -0
- package/dist/models/ForecasterStatus.d.ts +47 -0
- package/dist/models/ForecasterStatus.js +61 -0
- package/dist/models/InspectorStatus.d.ts +20 -7
- package/dist/models/InspectorStatus.js +12 -7
- package/dist/models/PairCapability.d.ts +60 -0
- package/dist/models/PairCapability.js +72 -0
- package/dist/models/PairCapabilityRequest.d.ts +40 -0
- package/dist/models/PairCapabilityRequest.js +54 -0
- package/dist/models/PutForecasterCredentials403Response.d.ts +38 -0
- package/dist/models/PutForecasterCredentials403Response.js +50 -0
- package/dist/models/RightsizingClusterListResponse.d.ts +39 -0
- package/dist/models/RightsizingClusterListResponse.js +55 -0
- package/dist/models/RightsizingClusterUtilization.d.ts +112 -0
- package/dist/models/RightsizingClusterUtilization.js +102 -0
- 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/StopForecasterPair202Response.d.ts +45 -0
- package/dist/models/StopForecasterPair202Response.js +57 -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 +116 -0
- package/dist/models/VmUtilizationDetails.js +106 -0
- package/dist/models/index.d.ts +25 -1
- package/dist/models/index.js +25 -1
- package/dist/runtime.js +1 -1
- package/docs/BenchmarkRun.md +58 -0
- package/docs/DatastoreDetail.md +50 -0
- package/docs/DatastorePair.md +40 -0
- package/docs/DefaultApi.md +1265 -240
- package/docs/EstimateRange.md +39 -0
- package/docs/ForecastStats.md +52 -0
- package/docs/ForecasterDatastoresRequest.md +34 -0
- package/docs/ForecasterPairStatus.md +52 -0
- package/docs/ForecasterStartRequest.md +42 -0
- package/docs/ForecasterStatus.md +36 -0
- package/docs/InspectorStatus.md +4 -0
- package/docs/PairCapability.md +40 -0
- package/docs/PairCapabilityRequest.md +36 -0
- package/docs/PutForecasterCredentials403Response.md +36 -0
- package/docs/RightsizingClusterListResponse.md +36 -0
- package/docs/RightsizingClusterUtilization.md +60 -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/StopForecasterPair202Response.md +36 -0
- 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 +62 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +1548 -350
- package/src/models/BenchmarkRun.ts +171 -0
- package/src/models/DatastoreDetail.ts +146 -0
- package/src/models/DatastorePair.ts +92 -0
- package/src/models/EstimateRange.ts +81 -0
- package/src/models/ForecastStats.ts +147 -0
- package/src/models/ForecasterDatastoresRequest.ts +73 -0
- package/src/models/ForecasterPairStatus.ts +158 -0
- package/src/models/ForecasterStartRequest.ts +113 -0
- package/src/models/ForecasterStatus.ts +93 -0
- package/src/models/InspectorStatus.ts +37 -7
- package/src/models/PairCapability.ts +106 -0
- package/src/models/PairCapabilityRequest.ts +89 -0
- package/src/models/PutForecasterCredentials403Response.ts +73 -0
- package/src/models/RightsizingClusterListResponse.ts +83 -0
- package/src/models/RightsizingClusterUtilization.ts +185 -0
- 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/StopForecasterPair202Response.ts +83 -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 +192 -0
- package/src/models/index.ts +25 -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
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ForecasterPairStatusStateEnum = void 0;
|
|
17
|
+
exports.instanceOfForecasterPairStatus = instanceOfForecasterPairStatus;
|
|
18
|
+
exports.ForecasterPairStatusFromJSON = ForecasterPairStatusFromJSON;
|
|
19
|
+
exports.ForecasterPairStatusFromJSONTyped = ForecasterPairStatusFromJSONTyped;
|
|
20
|
+
exports.ForecasterPairStatusToJSON = ForecasterPairStatusToJSON;
|
|
21
|
+
exports.ForecasterPairStatusToJSONTyped = ForecasterPairStatusToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ForecasterPairStatusStateEnum = {
|
|
26
|
+
ForecasterPairStatusStatePending: 'pending',
|
|
27
|
+
ForecasterPairStatusStatePreparing: 'preparing',
|
|
28
|
+
ForecasterPairStatusStateRunning: 'running',
|
|
29
|
+
ForecasterPairStatusStateCompleted: 'completed',
|
|
30
|
+
ForecasterPairStatusStateError: 'error',
|
|
31
|
+
ForecasterPairStatusStateCanceled: 'canceled'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the ForecasterPairStatus interface.
|
|
35
|
+
*/
|
|
36
|
+
function instanceOfForecasterPairStatus(value) {
|
|
37
|
+
if (!('pairName' in value) || value['pairName'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('sourceDatastore' in value) || value['sourceDatastore'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('targetDatastore' in value) || value['targetDatastore'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('completedRuns' in value) || value['completedRuns'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('totalRuns' in value) || value['totalRuns'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
function ForecasterPairStatusFromJSON(json) {
|
|
52
|
+
return ForecasterPairStatusFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function ForecasterPairStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'pairName': json['pairName'],
|
|
60
|
+
'sourceDatastore': json['sourceDatastore'],
|
|
61
|
+
'targetDatastore': json['targetDatastore'],
|
|
62
|
+
'host': json['host'] == null ? undefined : json['host'],
|
|
63
|
+
'state': json['state'],
|
|
64
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
65
|
+
'completedRuns': json['completedRuns'],
|
|
66
|
+
'totalRuns': json['totalRuns'],
|
|
67
|
+
'prepBytesTotal': json['prepBytesTotal'] == null ? undefined : json['prepBytesTotal'],
|
|
68
|
+
'prepBytesUploaded': json['prepBytesUploaded'] == null ? undefined : json['prepBytesUploaded'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function ForecasterPairStatusToJSON(json) {
|
|
72
|
+
return ForecasterPairStatusToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
function ForecasterPairStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
'pairName': value['pairName'],
|
|
80
|
+
'sourceDatastore': value['sourceDatastore'],
|
|
81
|
+
'targetDatastore': value['targetDatastore'],
|
|
82
|
+
'host': value['host'],
|
|
83
|
+
'state': value['state'],
|
|
84
|
+
'error': value['error'],
|
|
85
|
+
'completedRuns': value['completedRuns'],
|
|
86
|
+
'totalRuns': value['totalRuns'],
|
|
87
|
+
'prepBytesTotal': value['prepBytesTotal'],
|
|
88
|
+
'prepBytesUploaded': value['prepBytesUploaded'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
13
|
+
import type { DatastorePair } from './DatastorePair.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ForecasterStartRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface ForecasterStartRequest {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {VcenterCredentials}
|
|
23
|
+
* @memberof ForecasterStartRequest
|
|
24
|
+
*/
|
|
25
|
+
credentials?: VcenterCredentials;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<DatastorePair>}
|
|
29
|
+
* @memberof ForecasterStartRequest
|
|
30
|
+
*/
|
|
31
|
+
pairs: Array<DatastorePair>;
|
|
32
|
+
/**
|
|
33
|
+
* Disk size in GB for benchmark (default 10)
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof ForecasterStartRequest
|
|
36
|
+
*/
|
|
37
|
+
diskSizeGb?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Number of benchmark iterations per pair (default 5)
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof ForecasterStartRequest
|
|
42
|
+
*/
|
|
43
|
+
iterations?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Max parallel pairs (default 1, sequential)
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof ForecasterStartRequest
|
|
48
|
+
*/
|
|
49
|
+
concurrency?: number;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the ForecasterStartRequest interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfForecasterStartRequest(value: object): value is ForecasterStartRequest;
|
|
55
|
+
export declare function ForecasterStartRequestFromJSON(json: any): ForecasterStartRequest;
|
|
56
|
+
export declare function ForecasterStartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForecasterStartRequest;
|
|
57
|
+
export declare function ForecasterStartRequestToJSON(json: any): ForecasterStartRequest;
|
|
58
|
+
export declare function ForecasterStartRequestToJSONTyped(value?: ForecasterStartRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfForecasterStartRequest = instanceOfForecasterStartRequest;
|
|
17
|
+
exports.ForecasterStartRequestFromJSON = ForecasterStartRequestFromJSON;
|
|
18
|
+
exports.ForecasterStartRequestFromJSONTyped = ForecasterStartRequestFromJSONTyped;
|
|
19
|
+
exports.ForecasterStartRequestToJSON = ForecasterStartRequestToJSON;
|
|
20
|
+
exports.ForecasterStartRequestToJSONTyped = ForecasterStartRequestToJSONTyped;
|
|
21
|
+
const VcenterCredentials_js_1 = require("./VcenterCredentials.js");
|
|
22
|
+
const DatastorePair_js_1 = require("./DatastorePair.js");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ForecasterStartRequest interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfForecasterStartRequest(value) {
|
|
27
|
+
if (!('pairs' in value) || value['pairs'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ForecasterStartRequestFromJSON(json) {
|
|
32
|
+
return ForecasterStartRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ForecasterStartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'credentials': json['credentials'] == null ? undefined : (0, VcenterCredentials_js_1.VcenterCredentialsFromJSON)(json['credentials']),
|
|
40
|
+
'pairs': (json['pairs'].map(DatastorePair_js_1.DatastorePairFromJSON)),
|
|
41
|
+
'diskSizeGb': json['diskSizeGb'] == null ? undefined : json['diskSizeGb'],
|
|
42
|
+
'iterations': json['iterations'] == null ? undefined : json['iterations'],
|
|
43
|
+
'concurrency': json['concurrency'] == null ? undefined : json['concurrency'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function ForecasterStartRequestToJSON(json) {
|
|
47
|
+
return ForecasterStartRequestToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function ForecasterStartRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(value['credentials']),
|
|
55
|
+
'pairs': (value['pairs'].map(DatastorePair_js_1.DatastorePairToJSON)),
|
|
56
|
+
'diskSizeGb': value['diskSizeGb'],
|
|
57
|
+
'iterations': value['iterations'],
|
|
58
|
+
'concurrency': value['concurrency'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ForecasterPairStatus } from './ForecasterPairStatus.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ForecasterStatus
|
|
17
|
+
*/
|
|
18
|
+
export interface ForecasterStatus {
|
|
19
|
+
/**
|
|
20
|
+
* Service-level state. Only two states exist — ready (idle) or running (benchmark in progress). When a benchmark finishes or is canceled, the service returns to ready.
|
|
21
|
+
* @type {ForecasterStatusStateEnum}
|
|
22
|
+
* @memberof ForecasterStatus
|
|
23
|
+
*/
|
|
24
|
+
state: ForecasterStatusStateEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Per-pair progress (present only when running)
|
|
27
|
+
* @type {Array<ForecasterPairStatus>}
|
|
28
|
+
* @memberof ForecasterStatus
|
|
29
|
+
*/
|
|
30
|
+
pairs?: Array<ForecasterPairStatus>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const ForecasterStatusStateEnum: {
|
|
36
|
+
readonly ForecasterStatusStateReady: "ready";
|
|
37
|
+
readonly ForecasterStatusStateRunning: "running";
|
|
38
|
+
};
|
|
39
|
+
export type ForecasterStatusStateEnum = typeof ForecasterStatusStateEnum[keyof typeof ForecasterStatusStateEnum];
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the ForecasterStatus interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfForecasterStatus(value: object): value is ForecasterStatus;
|
|
44
|
+
export declare function ForecasterStatusFromJSON(json: any): ForecasterStatus;
|
|
45
|
+
export declare function ForecasterStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForecasterStatus;
|
|
46
|
+
export declare function ForecasterStatusToJSON(json: any): ForecasterStatus;
|
|
47
|
+
export declare function ForecasterStatusToJSONTyped(value?: ForecasterStatus | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ForecasterStatusStateEnum = void 0;
|
|
17
|
+
exports.instanceOfForecasterStatus = instanceOfForecasterStatus;
|
|
18
|
+
exports.ForecasterStatusFromJSON = ForecasterStatusFromJSON;
|
|
19
|
+
exports.ForecasterStatusFromJSONTyped = ForecasterStatusFromJSONTyped;
|
|
20
|
+
exports.ForecasterStatusToJSON = ForecasterStatusToJSON;
|
|
21
|
+
exports.ForecasterStatusToJSONTyped = ForecasterStatusToJSONTyped;
|
|
22
|
+
const ForecasterPairStatus_js_1 = require("./ForecasterPairStatus.js");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ForecasterStatusStateEnum = {
|
|
27
|
+
ForecasterStatusStateReady: 'ready',
|
|
28
|
+
ForecasterStatusStateRunning: 'running'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ForecasterStatus interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfForecasterStatus(value) {
|
|
34
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function ForecasterStatusFromJSON(json) {
|
|
39
|
+
return ForecasterStatusFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function ForecasterStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'state': json['state'],
|
|
47
|
+
'pairs': json['pairs'] == null ? undefined : (json['pairs'].map(ForecasterPairStatus_js_1.ForecasterPairStatusFromJSON)),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function ForecasterStatusToJSON(json) {
|
|
51
|
+
return ForecasterStatusToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function ForecasterStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'state': value['state'],
|
|
59
|
+
'pairs': value['pairs'] == null ? undefined : (value['pairs'].map(ForecasterPairStatus_js_1.ForecasterPairStatusToJSON)),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { VddkProperties } from './VddkProperties.js';
|
|
13
|
+
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
@@ -21,6 +23,18 @@ export interface InspectorStatus {
|
|
|
21
23
|
* @memberof InspectorStatus
|
|
22
24
|
*/
|
|
23
25
|
state: InspectorStatusStateEnum;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {VcenterCredentials}
|
|
29
|
+
* @memberof InspectorStatus
|
|
30
|
+
*/
|
|
31
|
+
credentials?: VcenterCredentials;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {VddkProperties}
|
|
35
|
+
* @memberof InspectorStatus
|
|
36
|
+
*/
|
|
37
|
+
vddk?: VddkProperties;
|
|
24
38
|
/**
|
|
25
39
|
* Error message when state is error
|
|
26
40
|
* @type {string}
|
|
@@ -32,13 +46,12 @@ export interface InspectorStatus {
|
|
|
32
46
|
* @export
|
|
33
47
|
*/
|
|
34
48
|
export declare const InspectorStatusStateEnum: {
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly InspectorStatusStateRunning: "error";
|
|
49
|
+
readonly InspectorStatusStateReady: "ready";
|
|
50
|
+
readonly InspectorStatusStateInitiating: "Initiating";
|
|
51
|
+
readonly InspectorStatusStateRunning: "running";
|
|
52
|
+
readonly InspectorStatusStateCanceled: "canceled";
|
|
53
|
+
readonly InspectorStatusStateCompleted: "completed";
|
|
54
|
+
readonly InspectorStatusStateError: "error";
|
|
42
55
|
};
|
|
43
56
|
export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
|
|
44
57
|
/**
|
|
@@ -19,17 +19,18 @@ exports.InspectorStatusFromJSON = InspectorStatusFromJSON;
|
|
|
19
19
|
exports.InspectorStatusFromJSONTyped = InspectorStatusFromJSONTyped;
|
|
20
20
|
exports.InspectorStatusToJSON = InspectorStatusToJSON;
|
|
21
21
|
exports.InspectorStatusToJSONTyped = InspectorStatusToJSONTyped;
|
|
22
|
+
const VddkProperties_js_1 = require("./VddkProperties.js");
|
|
23
|
+
const VcenterCredentials_js_1 = require("./VcenterCredentials.js");
|
|
22
24
|
/**
|
|
23
25
|
* @export
|
|
24
26
|
*/
|
|
25
27
|
exports.InspectorStatusStateEnum = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
InspectorStatusStateRunning: 'error'
|
|
28
|
+
InspectorStatusStateReady: 'ready',
|
|
29
|
+
InspectorStatusStateInitiating: 'Initiating',
|
|
30
|
+
InspectorStatusStateRunning: 'running',
|
|
31
|
+
InspectorStatusStateCanceled: 'canceled',
|
|
32
|
+
InspectorStatusStateCompleted: 'completed',
|
|
33
|
+
InspectorStatusStateError: 'error'
|
|
33
34
|
};
|
|
34
35
|
/**
|
|
35
36
|
* Check if a given object implements the InspectorStatus interface.
|
|
@@ -48,6 +49,8 @@ function InspectorStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
49
|
}
|
|
49
50
|
return {
|
|
50
51
|
'state': json['state'],
|
|
52
|
+
'credentials': json['credentials'] == null ? undefined : (0, VcenterCredentials_js_1.VcenterCredentialsFromJSON)(json['credentials']),
|
|
53
|
+
'vddk': json['vddk'] == null ? undefined : (0, VddkProperties_js_1.VddkPropertiesFromJSON)(json['vddk']),
|
|
51
54
|
'error': json['error'] == null ? undefined : json['error'],
|
|
52
55
|
};
|
|
53
56
|
}
|
|
@@ -60,6 +63,8 @@ function InspectorStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
60
63
|
}
|
|
61
64
|
return {
|
|
62
65
|
'state': value['state'],
|
|
66
|
+
'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(value['credentials']),
|
|
67
|
+
'vddk': (0, VddkProperties_js_1.VddkPropertiesToJSON)(value['vddk']),
|
|
63
68
|
'error': value['error'],
|
|
64
69
|
};
|
|
65
70
|
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PairCapability
|
|
16
|
+
*/
|
|
17
|
+
export interface PairCapability {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PairCapability
|
|
22
|
+
*/
|
|
23
|
+
pairName: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PairCapability
|
|
28
|
+
*/
|
|
29
|
+
sourceDatastore: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PairCapability
|
|
34
|
+
*/
|
|
35
|
+
targetDatastore: string;
|
|
36
|
+
/**
|
|
37
|
+
* Feasible offload methods for this source-target pair
|
|
38
|
+
* @type {Array<PairCapabilityCapabilitiesEnum>}
|
|
39
|
+
* @memberof PairCapability
|
|
40
|
+
*/
|
|
41
|
+
capabilities: Array<PairCapabilityCapabilitiesEnum>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const PairCapabilityCapabilitiesEnum: {
|
|
47
|
+
readonly CopyOffload: "copy-offload";
|
|
48
|
+
readonly Xcopy: "xcopy";
|
|
49
|
+
readonly Rdm: "rdm";
|
|
50
|
+
readonly Vvol: "vvol";
|
|
51
|
+
};
|
|
52
|
+
export type PairCapabilityCapabilitiesEnum = typeof PairCapabilityCapabilitiesEnum[keyof typeof PairCapabilityCapabilitiesEnum];
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the PairCapability interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfPairCapability(value: object): value is PairCapability;
|
|
57
|
+
export declare function PairCapabilityFromJSON(json: any): PairCapability;
|
|
58
|
+
export declare function PairCapabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): PairCapability;
|
|
59
|
+
export declare function PairCapabilityToJSON(json: any): PairCapability;
|
|
60
|
+
export declare function PairCapabilityToJSONTyped(value?: PairCapability | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PairCapabilityCapabilitiesEnum = void 0;
|
|
17
|
+
exports.instanceOfPairCapability = instanceOfPairCapability;
|
|
18
|
+
exports.PairCapabilityFromJSON = PairCapabilityFromJSON;
|
|
19
|
+
exports.PairCapabilityFromJSONTyped = PairCapabilityFromJSONTyped;
|
|
20
|
+
exports.PairCapabilityToJSON = PairCapabilityToJSON;
|
|
21
|
+
exports.PairCapabilityToJSONTyped = PairCapabilityToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PairCapabilityCapabilitiesEnum = {
|
|
26
|
+
CopyOffload: 'copy-offload',
|
|
27
|
+
Xcopy: 'xcopy',
|
|
28
|
+
Rdm: 'rdm',
|
|
29
|
+
Vvol: 'vvol'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PairCapability interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfPairCapability(value) {
|
|
35
|
+
if (!('pairName' in value) || value['pairName'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('sourceDatastore' in value) || value['sourceDatastore'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('targetDatastore' in value) || value['targetDatastore'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('capabilities' in value) || value['capabilities'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function PairCapabilityFromJSON(json) {
|
|
46
|
+
return PairCapabilityFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PairCapabilityFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'pairName': json['pairName'],
|
|
54
|
+
'sourceDatastore': json['sourceDatastore'],
|
|
55
|
+
'targetDatastore': json['targetDatastore'],
|
|
56
|
+
'capabilities': json['capabilities'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function PairCapabilityToJSON(json) {
|
|
60
|
+
return PairCapabilityToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function PairCapabilityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'pairName': value['pairName'],
|
|
68
|
+
'sourceDatastore': value['sourceDatastore'],
|
|
69
|
+
'targetDatastore': value['targetDatastore'],
|
|
70
|
+
'capabilities': value['capabilities'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
13
|
+
import type { DatastorePair } from './DatastorePair.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PairCapabilityRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface PairCapabilityRequest {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {VcenterCredentials}
|
|
23
|
+
* @memberof PairCapabilityRequest
|
|
24
|
+
*/
|
|
25
|
+
credentials?: VcenterCredentials;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<DatastorePair>}
|
|
29
|
+
* @memberof PairCapabilityRequest
|
|
30
|
+
*/
|
|
31
|
+
pairs: Array<DatastorePair>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PairCapabilityRequest interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPairCapabilityRequest(value: object): value is PairCapabilityRequest;
|
|
37
|
+
export declare function PairCapabilityRequestFromJSON(json: any): PairCapabilityRequest;
|
|
38
|
+
export declare function PairCapabilityRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PairCapabilityRequest;
|
|
39
|
+
export declare function PairCapabilityRequestToJSON(json: any): PairCapabilityRequest;
|
|
40
|
+
export declare function PairCapabilityRequestToJSONTyped(value?: PairCapabilityRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPairCapabilityRequest = instanceOfPairCapabilityRequest;
|
|
17
|
+
exports.PairCapabilityRequestFromJSON = PairCapabilityRequestFromJSON;
|
|
18
|
+
exports.PairCapabilityRequestFromJSONTyped = PairCapabilityRequestFromJSONTyped;
|
|
19
|
+
exports.PairCapabilityRequestToJSON = PairCapabilityRequestToJSON;
|
|
20
|
+
exports.PairCapabilityRequestToJSONTyped = PairCapabilityRequestToJSONTyped;
|
|
21
|
+
const VcenterCredentials_js_1 = require("./VcenterCredentials.js");
|
|
22
|
+
const DatastorePair_js_1 = require("./DatastorePair.js");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PairCapabilityRequest interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPairCapabilityRequest(value) {
|
|
27
|
+
if (!('pairs' in value) || value['pairs'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function PairCapabilityRequestFromJSON(json) {
|
|
32
|
+
return PairCapabilityRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function PairCapabilityRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'credentials': json['credentials'] == null ? undefined : (0, VcenterCredentials_js_1.VcenterCredentialsFromJSON)(json['credentials']),
|
|
40
|
+
'pairs': (json['pairs'].map(DatastorePair_js_1.DatastorePairFromJSON)),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function PairCapabilityRequestToJSON(json) {
|
|
44
|
+
return PairCapabilityRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PairCapabilityRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(value['credentials']),
|
|
52
|
+
'pairs': (value['pairs'].map(DatastorePair_js_1.DatastorePairToJSON)),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PutForecasterCredentials403Response
|
|
16
|
+
*/
|
|
17
|
+
export interface PutForecasterCredentials403Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PutForecasterCredentials403Response
|
|
22
|
+
*/
|
|
23
|
+
error?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof PutForecasterCredentials403Response
|
|
28
|
+
*/
|
|
29
|
+
missingPrivileges?: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PutForecasterCredentials403Response interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPutForecasterCredentials403Response(value: object): value is PutForecasterCredentials403Response;
|
|
35
|
+
export declare function PutForecasterCredentials403ResponseFromJSON(json: any): PutForecasterCredentials403Response;
|
|
36
|
+
export declare function PutForecasterCredentials403ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutForecasterCredentials403Response;
|
|
37
|
+
export declare function PutForecasterCredentials403ResponseToJSON(json: any): PutForecasterCredentials403Response;
|
|
38
|
+
export declare function PutForecasterCredentials403ResponseToJSONTyped(value?: PutForecasterCredentials403Response | null, ignoreDiscriminator?: boolean): any;
|