models.edit_hosts_parameters module¶
-
class
models.edit_hosts_parameters.
EditHostsParameters
(hosts=None)[source]¶ Bases:
object
Implementation of the ‘EditHostsParameters’ model.
Specifies the parameters needed for an edit hosts request.
- Attributes:
- hosts (list of HostEntry): Specifies the list of host entries to be
edited. Each IP address listed in the list of host entries will have its corresponding domain names in the /etc/hosts file replaced with the domain names specified here.
-
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.