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

## vcenter vm hardware: update spec

The `update_spec` structure describes the updates to virtual hardware settings of a virtual machine.

### Representations:

- JSON
- XML

{
"upgrade_policy": "NEVER",
"upgrade_version": "VMX_03"
}
<?xml version="1.0" ?>
<ns0:UpdateSpec xmlns:ns0="http://vmware.com/vcenter/vm/hardware" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<upgrade_version>VMX_03</upgrade_version>
<upgrade_policy>NEVER</upgrade_policy>
</ns0:UpdateSpec>

#### Attributes:

Name | Type | Description
--- | --- | ---
Optional
upgrade_policy | string | Scheduled upgrade policy. If set to NEVER, the vcenter.vm.hardware.info.upgrade_version field will be reset to unset. Optional. If unset, the value is unchanged.
upgrade_version | string | Target hardware version to be used on the next scheduled virtual hardware upgrade. If specified, this field must represent a newer virtual hardware version than the current virtual hardware version reported in vcenter.vm.hardware.info.version. Optional. It is only relevant when upgrade_policy has value [AFTER_CLEAN_SHUTDOWN, ALWAYS]. If vcenter.vm.hardware.update_spec.upgrade_policy is set to NEVER, this field must be unset. Otherwise, if this field is unset, default to the most recent virtual hardware version supported by the server.