models_v2.template module¶
-
class
models_v2.template.
Template
(id=None, name=None, dedup=None, compress=None, is_default=None, view_category=None, default_template_name=None, principal_id=None, view_params=None)[source]¶ Bases:
object
Implementation of the ‘Template.’ model.
Description of the view template.
- Attributes:
id (long|int): Specifies an id of the view template. name (string): Specifies the name of the view template. dedup (bool): Specifies whether to enable dedup in storage domain. compress (bool): Specifies whether to enable compression in storage
domain.
is_default (bool): Specifies if the tempate is custom or static. view_category (ViewCategoryEnum): Deprecated. Use category defined in
viewParams instead.
- default_template_name (DefaultTemplateNameEnum): Used for uniquely
indentifying a default template.
- principal_id (long|int): Deprecated. Use principalId defined in
viewParams.qos instead.
- view_params (View1): Specifies settings for defining a storage
location (called a View) with NFS and SMB mount paths in a Storage Domain (View Box) on the Cohesity Cluster.
-
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.