models.feature_usage module

class models.feature_usage.FeatureUsage(current_usage_gib=None, feature_name=None, num_vm=None)[source]

Bases: object

Implementation of the ‘FeatureUsage’ model.

Structure to hold feature usage on cluster side.

Attributes:

current_usage_gib (long|int): Feature usage by the cluster. feature_name (string): Name of feature. num_vm (long|int): Number of VM spinned.

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.