models.consumer module

class models.consumer.Consumer(id=None, name=None, mtype=None)[source]

Bases: object

Implementation of the ‘Consumer’ model.

Consumer is the storage consumer of a group.

Attributes:

id (long|int): Specifies the id of the consumer. name (string): Specifies the name of the consumer. mtype (TypeConsumerEnum): Specifies the type of the consumer. Type of

the consumer can be one of the following three, ‘kViews’, indicates the stats info of Views used per organization (tenant) per view box (storage domain). ‘kProtectionRuns’, indicates the stats info of Protection Runs used per organization (tenant) per view box (storage domain). ‘kReplicationRuns’, indicates the stats info of Replication In used per organization (tenant) per view box (storage domain). ‘kViewProtectionRuns’, indicates the stats info of View Protection Runs used per organization (tenant) per view box (storage domain).

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.