models.host_entry module

class models.host_entry.HostEntry(description=None, domain_names=None, ip=None)[source]

Bases: object

Implementation of the ‘HostEntry’ model.

Specifies the parameters of a host entry that can be stored in the cluster’s /etc/hosts file.

Attributes:

description (string): Description the host entry. domain_names (list of string): Specifies the domain names of the

host.

ip (string): Specifies the IP address of the host.

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.