'Sets the virtual memory in MB to allocate for the specified VM or
VMs under the vApp. If the vapp_or_vm_id param represents a link
to an vApp all VMs that are attached to this vApp will be modified.
Please ensure that hot-change of virtual memory is enabled for the
powered on virtual machines. Otherwise use this method on undeployed
vApp.
:keyword    vapp_or_vm_id: vApp or VM ID that will be modified. If
a vApp ID is used here all attached VMs
will be modified
:type       vapp_or_vm_id: ``str``
:keyword    vm_memory: virtual memory in MB to allocate for the
specified VM or VMs
:type       vm_memory: ``int``
:rtype: ``None``'

def ex_set_vm_memory(self, vapp_or_vm_id, vm_memory):

    self._validate_vm_memory(vm_memory)
    self._change_vm_memory(vapp_or_vm_id, vm_memory)
