# Data Object - DVSPolicy(vim.DistributedVirtualSwitch.SwitchPolicy)

Property of
  DVSConfigInfo, DVSConfigSpec
Extends
  DynamicData
Since
  vSphere API 4.0

## Data Object Description

The switch usage policy types

Properties

Name | Type | Description
--- | --- | ---
autoPreInstallAllowed* | xsd:boolean | Whether downloading a new proxy VirtualSwitch module to the host is allowed to be automatically executed by the switch.
autoUpgradeAllowed* | xsd:boolean | Whether upgrading of the switch is allowed to be automatically executed by the switch.
partialUpgradeAllowed* | xsd:boolean | Whether to allow upgrading a switch when some of the hosts failed to install the needed module. The vCenter Server will reattempt the pre-install operation of the host module on those failed hosts, whenever they reconnect to vCenter.
Properties inherited from DynamicData
None

*Need not be set
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="DVSPolicy"> <complexContent> <extension base="vsan:DynamicData"> <sequence> <element name="autoPreInstallAllowed" type="xsd:boolean" minOccurs="0"/> <element name="autoUpgradeAllowed" type="xsd:boolean" minOccurs="0"/> <element name="partialUpgradeAllowed" type="xsd:boolean" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>