@stordata/vsphere-soapify
Version:
A NodeJS abstraction layer for the vSphere SOAP API
52 lines (49 loc) • 1.94 kB
JavaScript
;
const DynamicData = require('./DynamicData'),
ToolsConfigInfo = require('./ToolsConfigInfo'),
VirtualMachineConfigInfoDatastoreUrlPair = require('./VirtualMachineConfigInfoDatastoreUrlPair'),
ResourceAllocationInfo = require('./ResourceAllocationInfo'),
VirtualHardware = require('./VirtualHardware');
module.exports = class VirtualMachineConfigInfo extends DynamicData {
static mappings() {
return {
alternateGuestName: 'xsd:string',
annotation: 'xsd:string',
changeTrackingEnabled: 'xsd:boolean',
changeVersion: 'xsd:string',
cpuAllocation: ResourceAllocationInfo,
cpuHotAddEnabled: 'xsd:boolean',
cpuHotRemoveEnabled: 'xsd:boolean',
datastoreUrl: VirtualMachineConfigInfoDatastoreUrlPair.ArrayOf,
extraConfig: 'ArrayOfOptionValue',
firmware: 'GuestOsDescriptorFirmwareType',
guestAutoLockEnabled: 'xsd:boolean',
guestFullName: 'xsd:string',
guestId: 'xsd:string',
hotPlugMemoryIncrementSize: 'xsd:long',
hotPlugMemoryLimit: 'xsd:long',
instanceUuid: 'xsd:string',
locationId: 'xsd:string',
maxMksConnections: 'xsd:int',
memoryAllocation: ResourceAllocationInfo,
memoryHotAddEnabled: 'xsd:boolean',
memoryReservationLockedToMax: 'xsd:boolean',
modified: 'xsd:dateTime',
name: 'xsd:string',
npivDesiredNodeWwns: 'xsd:short',
npivDesiredPortWwns: 'xsd:short',
npivNodeWorldWideName: 'ArrayOfDecimalWorldWideName',
npivOnNonRdmDisks: 'xsd:boolean',
npivPortWorldWideName: 'ArrayOfDecimalWorldWideName',
npivTemporaryDisabled: 'xsd:boolean',
npivWorldWideNameType: 'xsd:string',
swapPlacement: 'xsd:string',
template: 'xsd:boolean',
tools: ToolsConfigInfo,
uuid: 'xsd:string',
vAssertsEnabled: 'xsd:boolean',
version: 'xsd:string',
hardware: VirtualHardware
};
}
};