@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
66 lines • 3.12 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* KubeVirt API
* This is KubeVirt API an add-on for Kubernetes.
*
* The version of the OpenAPI document: 1.0.0
* Contact: kubevirt-dev@googlegroups.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { exists } from '../runtime';
import { V1GuestAgentCommandInfoFromJSON, V1GuestAgentCommandInfoToJSON, V1VirtualMachineInstanceFileSystemInfoFromJSON, V1VirtualMachineInstanceFileSystemInfoToJSON, V1VirtualMachineInstanceGuestOSInfoFromJSON, V1VirtualMachineInstanceGuestOSInfoToJSON, V1VirtualMachineInstanceGuestOSUserFromJSON, V1VirtualMachineInstanceGuestOSUserToJSON, } from './';
export function V1VirtualMachineInstanceGuestAgentInfoFromJSON(json) {
return V1VirtualMachineInstanceGuestAgentInfoFromJSONTyped(json, false);
}
export function V1VirtualMachineInstanceGuestAgentInfoFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
apiVersion: !exists(json, 'apiVersion') ? undefined : json['apiVersion'],
fsFreezeStatus: !exists(json, 'fsFreezeStatus') ? undefined : json['fsFreezeStatus'],
fsInfo: !exists(json, 'fsInfo')
? undefined
: V1VirtualMachineInstanceFileSystemInfoFromJSON(json['fsInfo']),
guestAgentVersion: !exists(json, 'guestAgentVersion') ? undefined : json['guestAgentVersion'],
hostname: !exists(json, 'hostname') ? undefined : json['hostname'],
kind: !exists(json, 'kind') ? undefined : json['kind'],
os: !exists(json, 'os') ? undefined : V1VirtualMachineInstanceGuestOSInfoFromJSON(json['os']),
supportedCommands: !exists(json, 'supportedCommands')
? undefined
: json['supportedCommands'].map(V1GuestAgentCommandInfoFromJSON),
timezone: !exists(json, 'timezone') ? undefined : json['timezone'],
userList: !exists(json, 'userList')
? undefined
: json['userList'].map(V1VirtualMachineInstanceGuestOSUserFromJSON),
};
}
export function V1VirtualMachineInstanceGuestAgentInfoToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
apiVersion: value.apiVersion,
fsFreezeStatus: value.fsFreezeStatus,
fsInfo: V1VirtualMachineInstanceFileSystemInfoToJSON(value.fsInfo),
guestAgentVersion: value.guestAgentVersion,
hostname: value.hostname,
kind: value.kind,
os: V1VirtualMachineInstanceGuestOSInfoToJSON(value.os),
supportedCommands: value.supportedCommands === undefined
? undefined
: value.supportedCommands.map(V1GuestAgentCommandInfoToJSON),
timezone: value.timezone,
userList: value.userList === undefined
? undefined
: value.userList.map(V1VirtualMachineInstanceGuestOSUserToJSON),
};
}
//# sourceMappingURL=V1VirtualMachineInstanceGuestAgentInfo.js.map