models_v2.view_protection module

class models_v2.view_protection.ViewProtection(magneto_entity_id=None, protection_groups=None, inactive=None)[source]

Bases: object

Implementation of the ‘View Protection.’ model.

Specifies information about the Protection Groups that are protecting the View.

Attributes:
magneto_entity_id (long|int): Specifies the id of the Protection

Source that is using this View.

protection_groups (list of ProtectionGroupInfo): Array of Protection

Group. Specifies the Protection Group that are protecting the View.

inactive (bool): Specifies if this View is an inactive View that was

created on this Remote Cluster to store the Snapshots created by replication. This inactive View cannot be NFS or SMB mounted.

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.