# -*- coding: utf-8 -*-
import cohesity_management_sdk.models_v2.incremental_backup_schedule_and_retention_1
import cohesity_management_sdk.models_v2.full_backup_schedule_and_retention_1
import cohesity_management_sdk.models_v2.helios_retention
[docs]class IncrementalFullAndRetentionPolicy1(object):
"""Implementation of the 'Incremental, Full and Retention Policy.1' model.
Specifies the Incremental and Full policy settings and also the common
Retention policy settings."
Attributes:
incremental (IncrementalBackupScheduleAndRetention1): Specifies
incremental backup settings for a Protection Group.
full (FullBackupScheduleAndRetention1): Specifies full backup settings
for a Protection Group.
retention (HeliosRetention): Specifies the retention of a backup.
"""
# Create a mapping from Model property names to API property names
_names = {
"incremental":'incremental',
"full":'full',
"retention":'retention'
}
def __init__(self,
incremental=None,
full=None,
retention=None):
"""Constructor for the IncrementalFullAndRetentionPolicy1 class"""
# Initialize members of the class
self.incremental = incremental
self.full = full
self.retention = retention
[docs] @classmethod
def from_dictionary(cls,
dictionary):
"""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.
"""
if dictionary is None:
return None
# Extract variables from the dictionary
incremental = cohesity_management_sdk.models_v2.incremental_backup_schedule_and_retention_1.IncrementalBackupScheduleAndRetention1.from_dictionary(dictionary.get('incremental')) if dictionary.get('incremental') else None
full = cohesity_management_sdk.models_v2.full_backup_schedule_and_retention_1.FullBackupScheduleAndRetention1.from_dictionary(dictionary.get('full')) if dictionary.get('full') else None
retention = cohesity_management_sdk.models_v2.helios_retention.HeliosRetention.from_dictionary(dictionary.get('retention')) if dictionary.get('retention') else None
# Return an object of this model
return cls(incremental,
full,
retention)