models_v2.new_network_config module¶
-
class
models_v2.new_network_config.
NewNetworkConfig
(network_port_group=None, disable_network=None, preserve_mac_address=None)[source]¶ Bases:
object
Implementation of the ‘NewNetworkConfig’ model.
Specifies a new network configuration for the VM recovery.
- Attributes:
- network_port_group (NetworkPortGroup): Specifies the network port
group (i.e, either a standard switch port group or a distributed port group) that will attached to the recovered Object. This parameter is mandatory if detach network is specified as false.
- disable_network (bool): Specifies whether the attached network should
be left in disabled state. Default is false
- preserve_mac_address (bool): If this is true and we are attaching to a
new network entity, then the VM’s MAC address will be preserved on the new network. Default value is false.
-
classmethod
from_dictionary
(dictionary)[source]¶ Creates an instance of this model from a dictionary
- Args:
dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.
- Returns:
object: An instance of this structure class.