models.licensed_usage module¶
-
class
models.licensed_usage.
LicensedUsage
(capacity_gib=None, expiry_time=None, feature_name=None, license_type=None, num_vm=None)[source]¶ Bases:
object
Implementation of the ‘LicensedUsage’ model.
Structure to hold feature usage on cluster side.
- Attributes:
capacity_gib (int|long): Feature usage by the cluster. expiry_time (int|long): Expiry time(epoch) of each feature.
There could be multiple expiry time for the given SKU.
feature_name (string): Name of feature. license_type (string): Type of License num_vm (int|long): 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.