models.append_hosts_parameters module

class models.append_hosts_parameters.AppendHostsParameters(hosts=None)[source]

Bases: object

Implementation of the ‘AppendHostsParameters’ model.

Specifies the parameters needed for an append hosts request.

Attributes:
hosts (list of HostEntry): Specifies the list of host entries to be

added to the Cluster’s etc/hosts file.

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.