1. Types
2. vcenter
3. vm
4. hardware
5. memory

## vcenter vm hardware memory: update spec

The `update_spec` structure describes the updates to be made to the memory-related settings of a virtual machine.

### Representations:

- JSON
- XML

{
"hot_add_enabled": true,
"size_MiB": 1
}
<?xml version="1.0" ?>
<ns0:UpdateSpec xmlns:ns0="http://vmware.com/vcenter/vm/hardware/memory" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<size_MiB>1</size_MiB>
<hot_add_enabled>true</hot_add_enabled>
</ns0:UpdateSpec>

#### Attributes:

Name | Type | Description
--- | --- | ---
Optional
size_MiB | long | New memory size in mebibytes. The supported range of memory sizes is constrained by the configured guest operating system and virtual hardware version of the virtual machine. If the virtual machine is running, this value may only be changed if vcenter.vm.hardware.memory.info.hot_add_enabled is true, and the new memory size must satisfy the constraints specified by vcenter.vm.hardware.memory.info.hot_add_increment_size_MiB and vcenter.vm.hardware.memory.info.hot_add_limit_MiB. Optional. If unset, the value is unchanged.
hot_add_enabled | boolean | Flag indicating whether adding memory while the virtual machine is running should be enabled. Some guest operating systems may consume more resources or perform less efficiently when they run on hardware that supports adding memory while the machine is running. This field may only be modified if the virtual machine is not powered on. Optional. If unset, the value is unchanged.