RetentionSetting

class oci.data_science.models.RetentionSetting(**kwargs)

Bases: object

Retention setting details of the model.

Attributes

CUSTOMER_NOTIFICATION_TYPE_ALL A constant which can be used with the customer_notification_type property of a RetentionSetting.
CUSTOMER_NOTIFICATION_TYPE_NONE A constant which can be used with the customer_notification_type property of a RetentionSetting.
CUSTOMER_NOTIFICATION_TYPE_ON_FAILURE A constant which can be used with the customer_notification_type property of a RetentionSetting.
CUSTOMER_NOTIFICATION_TYPE_ON_SUCCESS A constant which can be used with the customer_notification_type property of a RetentionSetting.
archive_after_days [Required] Gets the archive_after_days of this RetentionSetting.
customer_notification_type Gets the customer_notification_type of this RetentionSetting.
delete_after_days Gets the delete_after_days of this RetentionSetting.

Methods

__init__(**kwargs) Initializes a new RetentionSetting object with values from keyword arguments.
CUSTOMER_NOTIFICATION_TYPE_ALL = 'ALL'

A constant which can be used with the customer_notification_type property of a RetentionSetting. This constant has a value of “ALL”

CUSTOMER_NOTIFICATION_TYPE_NONE = 'NONE'

A constant which can be used with the customer_notification_type property of a RetentionSetting. This constant has a value of “NONE”

CUSTOMER_NOTIFICATION_TYPE_ON_FAILURE = 'ON_FAILURE'

A constant which can be used with the customer_notification_type property of a RetentionSetting. This constant has a value of “ON_FAILURE”

CUSTOMER_NOTIFICATION_TYPE_ON_SUCCESS = 'ON_SUCCESS'

A constant which can be used with the customer_notification_type property of a RetentionSetting. This constant has a value of “ON_SUCCESS”

__init__(**kwargs)

Initializes a new RetentionSetting object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • archive_after_days (int) – The value to assign to the archive_after_days property of this RetentionSetting.
  • delete_after_days (int) – The value to assign to the delete_after_days property of this RetentionSetting.
  • customer_notification_type (str) – The value to assign to the customer_notification_type property of this RetentionSetting. Allowed values for this property are: “NONE”, “ALL”, “ON_FAILURE”, “ON_SUCCESS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
archive_after_days

[Required] Gets the archive_after_days of this RetentionSetting. Number of days after which the model will be archived.

Returns:The archive_after_days of this RetentionSetting.
Return type:int
customer_notification_type

Gets the customer_notification_type of this RetentionSetting. Customer notification options on success/failure of archival, deletion events.

Allowed values for this property are: “NONE”, “ALL”, “ON_FAILURE”, “ON_SUCCESS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The customer_notification_type of this RetentionSetting.
Return type:str
delete_after_days

Gets the delete_after_days of this RetentionSetting. Number of days after which the archived model will be deleted.

Returns:The delete_after_days of this RetentionSetting.
Return type:int