@openshift-migration-advisor/agent-sdk 0.7.0 → 0.8.0-7c64128a18e3
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 +19 -19
- package/dist/apis/DefaultApi.d.ts +51 -56
- package/dist/apis/DefaultApi.js +58 -63
- package/dist/esm/apis/DefaultApi.d.ts +51 -56
- package/dist/esm/apis/DefaultApi.js +59 -64
- package/dist/esm/models/AgentStatus.d.ts +2 -2
- package/dist/esm/models/AgentStatus.js +2 -2
- package/dist/esm/models/CollectorStatus.d.ts +6 -7
- package/dist/esm/models/CollectorStatus.js +6 -7
- package/dist/esm/models/InspectorStatus.d.ts +6 -7
- package/dist/esm/models/InspectorStatus.js +6 -7
- package/dist/esm/models/VMIssue.d.ts +6 -6
- package/dist/esm/models/VMIssue.js +6 -6
- package/dist/esm/models/VMs.d.ts +9 -0
- package/dist/esm/models/VMs.js +2 -0
- package/dist/esm/models/VddkProperties.d.ts +44 -0
- package/dist/esm/models/{VddkPost200Response.js → VddkProperties.js} +13 -11
- package/dist/esm/models/VmInspectionStatus.d.ts +1 -1
- package/dist/esm/models/VmInspectionStatus.js +1 -1
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/models/AgentStatus.d.ts +2 -2
- package/dist/models/AgentStatus.js +2 -2
- package/dist/models/CollectorStatus.d.ts +6 -7
- package/dist/models/CollectorStatus.js +6 -7
- package/dist/models/InspectorStatus.d.ts +6 -7
- package/dist/models/InspectorStatus.js +6 -7
- package/dist/models/VMIssue.d.ts +6 -6
- package/dist/models/VMIssue.js +6 -6
- package/dist/models/VMs.d.ts +9 -0
- package/dist/models/VMs.js +2 -0
- package/dist/models/VddkProperties.d.ts +44 -0
- package/dist/models/VddkProperties.js +56 -0
- package/dist/models/VmInspectionStatus.d.ts +1 -1
- package/dist/models/VmInspectionStatus.js +1 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/docs/DefaultApi.md +61 -67
- package/docs/VMs.md +2 -0
- package/docs/{VddkPost200Response.md → VddkProperties.md} +6 -4
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +97 -113
- package/src/models/AgentStatus.ts +2 -2
- package/src/models/CollectorStatus.ts +6 -7
- package/src/models/InspectorStatus.ts +6 -7
- package/src/models/VMIssue.ts +6 -6
- package/src/models/VMs.ts +9 -0
- package/src/models/VddkProperties.ts +83 -0
- package/src/models/VmInspectionStatus.ts +1 -1
- package/src/models/index.ts +1 -1
- package/dist/esm/models/VddkPost200Response.d.ts +0 -38
- package/dist/models/VddkPost200Response.d.ts +0 -38
- package/dist/models/VddkPost200Response.js +0 -54
- package/src/models/VddkPost200Response.ts +0 -75
|
@@ -0,0 +1,44 @@
|
|
|
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 VddkProperties
|
|
16
|
+
*/
|
|
17
|
+
export interface VddkProperties {
|
|
18
|
+
/**
|
|
19
|
+
* The matching vSphere Client version
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof VddkProperties
|
|
22
|
+
*/
|
|
23
|
+
version: string;
|
|
24
|
+
/**
|
|
25
|
+
* md5 sum of the uploaded tarball
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof VddkProperties
|
|
28
|
+
*/
|
|
29
|
+
md5: string;
|
|
30
|
+
/**
|
|
31
|
+
* provided tarball bytes
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof VddkProperties
|
|
34
|
+
*/
|
|
35
|
+
bytes?: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the VddkProperties interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfVddkProperties(value: object): value is VddkProperties;
|
|
41
|
+
export declare function VddkPropertiesFromJSON(json: any): VddkProperties;
|
|
42
|
+
export declare function VddkPropertiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): VddkProperties;
|
|
43
|
+
export declare function VddkPropertiesToJSON(json: any): VddkProperties;
|
|
44
|
+
export declare function VddkPropertiesToJSONTyped(value?: VddkProperties | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -12,35 +12,37 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
|
-
* Check if a given object implements the
|
|
15
|
+
* Check if a given object implements the VddkProperties interface.
|
|
16
16
|
*/
|
|
17
|
-
export function
|
|
18
|
-
if (!('
|
|
17
|
+
export function instanceOfVddkProperties(value) {
|
|
18
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
19
19
|
return false;
|
|
20
|
-
if (!('
|
|
20
|
+
if (!('md5' in value) || value['md5'] === undefined)
|
|
21
21
|
return false;
|
|
22
22
|
return true;
|
|
23
23
|
}
|
|
24
|
-
export function
|
|
25
|
-
return
|
|
24
|
+
export function VddkPropertiesFromJSON(json) {
|
|
25
|
+
return VddkPropertiesFromJSONTyped(json, false);
|
|
26
26
|
}
|
|
27
|
-
export function
|
|
27
|
+
export function VddkPropertiesFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
28
|
if (json == null) {
|
|
29
29
|
return json;
|
|
30
30
|
}
|
|
31
31
|
return {
|
|
32
|
+
'version': json['version'],
|
|
32
33
|
'md5': json['md5'],
|
|
33
|
-
'bytes': json['bytes'],
|
|
34
|
+
'bytes': json['bytes'] == null ? undefined : json['bytes'],
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
|
-
export function
|
|
37
|
-
return
|
|
37
|
+
export function VddkPropertiesToJSON(json) {
|
|
38
|
+
return VddkPropertiesToJSONTyped(json, false);
|
|
38
39
|
}
|
|
39
|
-
export function
|
|
40
|
+
export function VddkPropertiesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
41
|
if (value == null) {
|
|
41
42
|
return value;
|
|
42
43
|
}
|
|
43
44
|
return {
|
|
45
|
+
'version': value['version'],
|
|
44
46
|
'md5': value['md5'],
|
|
45
47
|
'bytes': value['bytes'],
|
|
46
48
|
};
|
|
@@ -43,7 +43,7 @@ export declare const VmInspectionStatusStateEnum: {
|
|
|
43
43
|
readonly VmInspectionStatusStateCompleted: "completed";
|
|
44
44
|
readonly VmInspectionStatusStateCanceled: "canceled";
|
|
45
45
|
readonly VmInspectionStatusStateError: "error";
|
|
46
|
-
readonly
|
|
46
|
+
readonly VmInspectionStatusStateNotStarted: "not_started";
|
|
47
47
|
};
|
|
48
48
|
export type VmInspectionStatusStateEnum = typeof VmInspectionStatusStateEnum[keyof typeof VmInspectionStatusStateEnum];
|
|
49
49
|
/**
|
|
@@ -20,7 +20,7 @@ export const VmInspectionStatusStateEnum = {
|
|
|
20
20
|
VmInspectionStatusStateCompleted: 'completed',
|
|
21
21
|
VmInspectionStatusStateCanceled: 'canceled',
|
|
22
22
|
VmInspectionStatusStateError: 'error',
|
|
23
|
-
|
|
23
|
+
VmInspectionStatusStateNotStarted: 'not_started'
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
26
26
|
* Check if a given object implements the VmInspectionStatus interface.
|
|
@@ -31,7 +31,7 @@ export * from './VMNIC.js';
|
|
|
31
31
|
export * from './VMResourceBreakdown.js';
|
|
32
32
|
export * from './VMs.js';
|
|
33
33
|
export * from './VcenterCredentials.js';
|
|
34
|
-
export * from './
|
|
34
|
+
export * from './VddkProperties.js';
|
|
35
35
|
export * from './VersionInfo.js';
|
|
36
36
|
export * from './VirtualMachine.js';
|
|
37
37
|
export * from './VirtualMachineDetail.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -33,7 +33,7 @@ export * from './VMNIC.js';
|
|
|
33
33
|
export * from './VMResourceBreakdown.js';
|
|
34
34
|
export * from './VMs.js';
|
|
35
35
|
export * from './VcenterCredentials.js';
|
|
36
|
-
export * from './
|
|
36
|
+
export * from './VddkProperties.js';
|
|
37
37
|
export * from './VersionInfo.js';
|
|
38
38
|
export * from './VirtualMachine.js';
|
|
39
39
|
export * from './VirtualMachineDetail.js';
|
|
@@ -38,8 +38,8 @@ export interface AgentStatus {
|
|
|
38
38
|
* @export
|
|
39
39
|
*/
|
|
40
40
|
export declare const AgentStatusModeEnum: {
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
41
|
+
readonly AgentStatusModeConnected: "connected";
|
|
42
|
+
readonly AgentStatusModeDisconnected: "disconnected";
|
|
43
43
|
};
|
|
44
44
|
export type AgentStatusModeEnum = typeof AgentStatusModeEnum[keyof typeof AgentStatusModeEnum];
|
|
45
45
|
/**
|
|
@@ -23,8 +23,8 @@ exports.AgentStatusToJSONTyped = AgentStatusToJSONTyped;
|
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
25
|
exports.AgentStatusModeEnum = {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
AgentStatusModeConnected: 'connected',
|
|
27
|
+
AgentStatusModeDisconnected: 'disconnected'
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* @export
|
|
@@ -32,13 +32,12 @@ export interface CollectorStatus {
|
|
|
32
32
|
* @export
|
|
33
33
|
*/
|
|
34
34
|
export declare const CollectorStatusStatusEnum: {
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly Error: "error";
|
|
35
|
+
readonly CollectorStatusStatusReady: "ready";
|
|
36
|
+
readonly CollectorStatusStatusConnecting: "connecting";
|
|
37
|
+
readonly CollectorStatusStatusCollecting: "collecting";
|
|
38
|
+
readonly CollectorStatusStatusParsing: "parsing";
|
|
39
|
+
readonly CollectorStatusStatusCollected: "collected";
|
|
40
|
+
readonly CollectorStatusStatusError: "error";
|
|
42
41
|
};
|
|
43
42
|
export type CollectorStatusStatusEnum = typeof CollectorStatusStatusEnum[keyof typeof CollectorStatusStatusEnum];
|
|
44
43
|
/**
|
|
@@ -23,13 +23,12 @@ exports.CollectorStatusToJSONTyped = CollectorStatusToJSONTyped;
|
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
25
|
exports.CollectorStatusStatusEnum = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
Error: 'error'
|
|
26
|
+
CollectorStatusStatusReady: 'ready',
|
|
27
|
+
CollectorStatusStatusConnecting: 'connecting',
|
|
28
|
+
CollectorStatusStatusCollecting: 'collecting',
|
|
29
|
+
CollectorStatusStatusParsing: 'parsing',
|
|
30
|
+
CollectorStatusStatusCollected: 'collected',
|
|
31
|
+
CollectorStatusStatusError: 'error'
|
|
33
32
|
};
|
|
34
33
|
/**
|
|
35
34
|
* Check if a given object implements the CollectorStatus interface.
|
|
@@ -32,13 +32,12 @@ export interface InspectorStatus {
|
|
|
32
32
|
* @export
|
|
33
33
|
*/
|
|
34
34
|
export declare const InspectorStatusStateEnum: {
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly Error: "error";
|
|
35
|
+
readonly InspectorStatusStateReady: "ready";
|
|
36
|
+
readonly InspectorStatusStateInitiating: "Initiating";
|
|
37
|
+
readonly InspectorStatusStateRunning: "running";
|
|
38
|
+
readonly InspectorStatusStateCanceled: "canceled";
|
|
39
|
+
readonly InspectorStatusStateCompleted: "completed";
|
|
40
|
+
readonly InspectorStatusStateError: "error";
|
|
42
41
|
};
|
|
43
42
|
export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
|
|
44
43
|
/**
|
|
@@ -23,13 +23,12 @@ exports.InspectorStatusToJSONTyped = InspectorStatusToJSONTyped;
|
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
25
|
exports.InspectorStatusStateEnum = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
Error: 'error'
|
|
26
|
+
InspectorStatusStateReady: 'ready',
|
|
27
|
+
InspectorStatusStateInitiating: 'Initiating',
|
|
28
|
+
InspectorStatusStateRunning: 'running',
|
|
29
|
+
InspectorStatusStateCanceled: 'canceled',
|
|
30
|
+
InspectorStatusStateCompleted: 'completed',
|
|
31
|
+
InspectorStatusStateError: 'error'
|
|
33
32
|
};
|
|
34
33
|
/**
|
|
35
34
|
* Check if a given object implements the InspectorStatus interface.
|
package/dist/models/VMIssue.d.ts
CHANGED
|
@@ -38,12 +38,12 @@ export interface VMIssue {
|
|
|
38
38
|
* @export
|
|
39
39
|
*/
|
|
40
40
|
export declare const VMIssueCategoryEnum: {
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
41
|
+
readonly VMIssueCategoryCritical: "Critical";
|
|
42
|
+
readonly VMIssueCategoryWarning: "Warning";
|
|
43
|
+
readonly VMIssueCategoryInformation: "Information";
|
|
44
|
+
readonly VMIssueCategoryAdvisory: "Advisory";
|
|
45
|
+
readonly VMIssueCategoryError: "Error";
|
|
46
|
+
readonly VMIssueCategoryOther: "Other";
|
|
47
47
|
};
|
|
48
48
|
export type VMIssueCategoryEnum = typeof VMIssueCategoryEnum[keyof typeof VMIssueCategoryEnum];
|
|
49
49
|
/**
|
package/dist/models/VMIssue.js
CHANGED
|
@@ -23,12 +23,12 @@ exports.VMIssueToJSONTyped = VMIssueToJSONTyped;
|
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
25
|
exports.VMIssueCategoryEnum = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
VMIssueCategoryCritical: 'Critical',
|
|
27
|
+
VMIssueCategoryWarning: 'Warning',
|
|
28
|
+
VMIssueCategoryInformation: 'Information',
|
|
29
|
+
VMIssueCategoryAdvisory: 'Advisory',
|
|
30
|
+
VMIssueCategoryError: 'Error',
|
|
31
|
+
VMIssueCategoryOther: 'Other'
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
34
|
* Check if a given object implements the VMIssue interface.
|
package/dist/models/VMs.d.ts
CHANGED
|
@@ -94,10 +94,19 @@ export interface VMs {
|
|
|
94
94
|
* Distribution of VMs by migration complexity level (0=Unsupported, 1=Easy, 2=Medium, 3=Hard, 4=WhiteGlove)
|
|
95
95
|
* @type {{ [key: string]: number; }}
|
|
96
96
|
* @memberof VMs
|
|
97
|
+
* @deprecated
|
|
97
98
|
*/
|
|
98
99
|
distributionByComplexity?: {
|
|
99
100
|
[key: string]: number;
|
|
100
101
|
};
|
|
102
|
+
/**
|
|
103
|
+
* Distribution of VMs by migration complexity level, enriched with total disk size per level. Supersedes distributionByComplexity.
|
|
104
|
+
* @type {{ [key: string]: DiskSizeTierSummary; }}
|
|
105
|
+
* @memberof VMs
|
|
106
|
+
*/
|
|
107
|
+
complexityDistribution?: {
|
|
108
|
+
[key: string]: DiskSizeTierSummary;
|
|
109
|
+
};
|
|
101
110
|
/**
|
|
102
111
|
*
|
|
103
112
|
* @type {VMResourceBreakdown}
|
package/dist/models/VMs.js
CHANGED
|
@@ -67,6 +67,7 @@ function VMsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
67
67
|
'distributionByMemoryTier': json['distributionByMemoryTier'] == null ? undefined : json['distributionByMemoryTier'],
|
|
68
68
|
'distributionByNicCount': json['distributionByNicCount'] == null ? undefined : json['distributionByNicCount'],
|
|
69
69
|
'distributionByComplexity': json['distributionByComplexity'] == null ? undefined : json['distributionByComplexity'],
|
|
70
|
+
'complexityDistribution': json['complexityDistribution'] == null ? undefined : ((0, runtime_js_1.mapValues)(json['complexityDistribution'], DiskSizeTierSummary_js_1.DiskSizeTierSummaryFromJSON)),
|
|
70
71
|
'ramGB': (0, VMResourceBreakdown_js_1.VMResourceBreakdownFromJSON)(json['ramGB']),
|
|
71
72
|
'diskGB': (0, VMResourceBreakdown_js_1.VMResourceBreakdownFromJSON)(json['diskGB']),
|
|
72
73
|
'diskCount': (0, VMResourceBreakdown_js_1.VMResourceBreakdownFromJSON)(json['diskCount']),
|
|
@@ -97,6 +98,7 @@ function VMsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
97
98
|
'distributionByMemoryTier': value['distributionByMemoryTier'],
|
|
98
99
|
'distributionByNicCount': value['distributionByNicCount'],
|
|
99
100
|
'distributionByComplexity': value['distributionByComplexity'],
|
|
101
|
+
'complexityDistribution': value['complexityDistribution'] == null ? undefined : ((0, runtime_js_1.mapValues)(value['complexityDistribution'], DiskSizeTierSummary_js_1.DiskSizeTierSummaryToJSON)),
|
|
100
102
|
'ramGB': (0, VMResourceBreakdown_js_1.VMResourceBreakdownToJSON)(value['ramGB']),
|
|
101
103
|
'diskGB': (0, VMResourceBreakdown_js_1.VMResourceBreakdownToJSON)(value['diskGB']),
|
|
102
104
|
'diskCount': (0, VMResourceBreakdown_js_1.VMResourceBreakdownToJSON)(value['diskCount']),
|
|
@@ -0,0 +1,44 @@
|
|
|
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 VddkProperties
|
|
16
|
+
*/
|
|
17
|
+
export interface VddkProperties {
|
|
18
|
+
/**
|
|
19
|
+
* The matching vSphere Client version
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof VddkProperties
|
|
22
|
+
*/
|
|
23
|
+
version: string;
|
|
24
|
+
/**
|
|
25
|
+
* md5 sum of the uploaded tarball
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof VddkProperties
|
|
28
|
+
*/
|
|
29
|
+
md5: string;
|
|
30
|
+
/**
|
|
31
|
+
* provided tarball bytes
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof VddkProperties
|
|
34
|
+
*/
|
|
35
|
+
bytes?: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the VddkProperties interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfVddkProperties(value: object): value is VddkProperties;
|
|
41
|
+
export declare function VddkPropertiesFromJSON(json: any): VddkProperties;
|
|
42
|
+
export declare function VddkPropertiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): VddkProperties;
|
|
43
|
+
export declare function VddkPropertiesToJSON(json: any): VddkProperties;
|
|
44
|
+
export declare function VddkPropertiesToJSONTyped(value?: VddkProperties | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.instanceOfVddkProperties = instanceOfVddkProperties;
|
|
17
|
+
exports.VddkPropertiesFromJSON = VddkPropertiesFromJSON;
|
|
18
|
+
exports.VddkPropertiesFromJSONTyped = VddkPropertiesFromJSONTyped;
|
|
19
|
+
exports.VddkPropertiesToJSON = VddkPropertiesToJSON;
|
|
20
|
+
exports.VddkPropertiesToJSONTyped = VddkPropertiesToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the VddkProperties interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfVddkProperties(value) {
|
|
25
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('md5' in value) || value['md5'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function VddkPropertiesFromJSON(json) {
|
|
32
|
+
return VddkPropertiesFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function VddkPropertiesFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'version': json['version'],
|
|
40
|
+
'md5': json['md5'],
|
|
41
|
+
'bytes': json['bytes'] == null ? undefined : json['bytes'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function VddkPropertiesToJSON(json) {
|
|
45
|
+
return VddkPropertiesToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function VddkPropertiesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'version': value['version'],
|
|
53
|
+
'md5': value['md5'],
|
|
54
|
+
'bytes': value['bytes'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -43,7 +43,7 @@ export declare const VmInspectionStatusStateEnum: {
|
|
|
43
43
|
readonly VmInspectionStatusStateCompleted: "completed";
|
|
44
44
|
readonly VmInspectionStatusStateCanceled: "canceled";
|
|
45
45
|
readonly VmInspectionStatusStateError: "error";
|
|
46
|
-
readonly
|
|
46
|
+
readonly VmInspectionStatusStateNotStarted: "not_started";
|
|
47
47
|
};
|
|
48
48
|
export type VmInspectionStatusStateEnum = typeof VmInspectionStatusStateEnum[keyof typeof VmInspectionStatusStateEnum];
|
|
49
49
|
/**
|
|
@@ -28,7 +28,7 @@ exports.VmInspectionStatusStateEnum = {
|
|
|
28
28
|
VmInspectionStatusStateCompleted: 'completed',
|
|
29
29
|
VmInspectionStatusStateCanceled: 'canceled',
|
|
30
30
|
VmInspectionStatusStateError: 'error',
|
|
31
|
-
|
|
31
|
+
VmInspectionStatusStateNotStarted: 'not_started'
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
34
|
* Check if a given object implements the VmInspectionStatus interface.
|
package/dist/models/index.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export * from './VMNIC.js';
|
|
|
31
31
|
export * from './VMResourceBreakdown.js';
|
|
32
32
|
export * from './VMs.js';
|
|
33
33
|
export * from './VcenterCredentials.js';
|
|
34
|
-
export * from './
|
|
34
|
+
export * from './VddkProperties.js';
|
|
35
35
|
export * from './VersionInfo.js';
|
|
36
36
|
export * from './VirtualMachine.js';
|
|
37
37
|
export * from './VirtualMachineDetail.js';
|
package/dist/models/index.js
CHANGED
|
@@ -49,7 +49,7 @@ __exportStar(require("./VMNIC.js"), exports);
|
|
|
49
49
|
__exportStar(require("./VMResourceBreakdown.js"), exports);
|
|
50
50
|
__exportStar(require("./VMs.js"), exports);
|
|
51
51
|
__exportStar(require("./VcenterCredentials.js"), exports);
|
|
52
|
-
__exportStar(require("./
|
|
52
|
+
__exportStar(require("./VddkProperties.js"), exports);
|
|
53
53
|
__exportStar(require("./VersionInfo.js"), exports);
|
|
54
54
|
__exportStar(require("./VirtualMachine.js"), exports);
|
|
55
55
|
__exportStar(require("./VirtualMachineDetail.js"), exports);
|