a f@s8ddlmZmZmZddlmZeGdddeZdS))formatted_flat_dict NONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc@seZdZdZdZdZdZdZddZe dd Z e d d Z e j d d Z e d dZej ddZddZddZddZdS) BackupPolicyz3 PostgreSQL database system backup policy. DAILYWEEKLYMONTHLYNONEcKs(ddd|_ddd|_d|_d|_dS)a1 Initializes a new BackupPolicy object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class: * :class:`~oci.psql.models.DailyBackupPolicy` * :class:`~oci.psql.models.WeeklyBackupPolicy` * :class:`~oci.psql.models.NoneBackupPolicy` * :class:`~oci.psql.models.MonthlyBackupPolicy` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param kind: The value to assign to the kind property of this BackupPolicy. Allowed values for this property are: "DAILY", "WEEKLY", "MONTHLY", "NONE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type kind: str :param retention_days: The value to assign to the retention_days property of this BackupPolicy. :type retention_days: int strint)kindretention_daysr Z retentionDaysN)Z swagger_typesZ attribute_map_kind_retention_days)selfkwargsrA/usr/lib/python3.9/site-packages/oci/psql/models/backup_policy.py__init__"szBackupPolicy.__init__cCs@|d}|dkrdS|dkr dS|dkr,dS|dkr8d Sd Sd S) z Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. r rZDailyBackupPolicyrZWeeklyBackupPolicyr ZNoneBackupPolicyr ZMonthlyBackupPolicyrNr)Zobject_dictionarytyperrr get_subtypeFszBackupPolicy.get_subtypecCs|jS)ag Gets the kind of this BackupPolicy. The kind of backup policy. Allowed values for this property are: "DAILY", "WEEKLY", "MONTHLY", "NONE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The kind of this BackupPolicy. :rtype: str )rrrrrr \s zBackupPolicy.kindcCs gd}t||sd}||_dS)z Sets the kind of this BackupPolicy. The kind of backup policy. :param kind: The kind of this BackupPolicy. :type: str )rrr r ZUNKNOWN_ENUM_VALUEN)rr)rr Zallowed_valuesrrrr ks  cCs|jS)z Gets the retention_days of this BackupPolicy. How many days the data should be stored after the database system deletion. :return: The retention_days of this BackupPolicy. :rtype: int rrrrrrzs zBackupPolicy.retention_dayscCs ||_dS)z Sets the retention_days of this BackupPolicy. How many days the data should be stored after the database system deletion. :param retention_days: The retention_days of this BackupPolicy. :type: int Nr)rrrrrrs cCst|SN)rrrrr__repr__szBackupPolicy.__repr__cCs|dur dS|j|jkS)NF)__dict__rotherrrr__eq__szBackupPolicy.__eq__cCs ||k Srrrrrr__ne__szBackupPolicy.__ne__N)__name__ __module__ __qualname____doc__Z KIND_DAILYZ KIND_WEEKLYZ KIND_MONTHLYZ KIND_NONEr staticmethodrpropertyr setterrrrr rrrrr s&$     rN)Zoci.utilrrrZoci.decoratorsrobjectrrrrrs