models.network_mapping_proto module¶
-
class
models.network_mapping_proto.
NetworkMappingProto
(disable_network=None, preserve_mac_address_on_new_network=None, source_network_entity=None, target_network_entity=None)[source]¶ Bases:
object
Implementation of the ‘NetworkMappingProto’ model.
TODO: type model description here.
- Attributes:
- disable_network (bool): This can be set to true to indicate that the
attached network should be left in disabled state. This value takes priority over the value in RestoredObjectNetworkConfigProto.
- preserve_mac_address_on_new_network (bool): VM’s MAC address will be
preserved on the new network. This value takes priority over the value in RestoredObjectNetworkConfigProto.
- source_network_entity (EntityProto): Specifies the attributes and the
latest statistics about an entity.
- target_network_entity (EntityProto): Specifies the attributes and the
latest statistics about an entity.
-
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.