ChangeIotDomainDataRetentionPeriodDetails

class oci.iot.models.ChangeIotDomainDataRetentionPeriodDetails(**kwargs)

Bases: object

The configuration details for data retention periods.

Attributes:

TYPE_HISTORIZED_DATA

A constant which can be used with the type property of a ChangeIotDomainDataRetentionPeriodDetails.

TYPE_RAW_COMMAND_DATA

A constant which can be used with the type property of a ChangeIotDomainDataRetentionPeriodDetails.

TYPE_RAW_DATA

A constant which can be used with the type property of a ChangeIotDomainDataRetentionPeriodDetails.

TYPE_REJECTED_DATA

A constant which can be used with the type property of a ChangeIotDomainDataRetentionPeriodDetails.

data_retention_period_in_days

[Required] Gets the data_retention_period_in_days of this ChangeIotDomainDataRetentionPeriodDetails.

type

[Required] Gets the type of this ChangeIotDomainDataRetentionPeriodDetails.

Methods:

__init__(**kwargs)

Initializes a new ChangeIotDomainDataRetentionPeriodDetails object with values from keyword arguments.

TYPE_HISTORIZED_DATA = 'HISTORIZED_DATA'

A constant which can be used with the type property of a ChangeIotDomainDataRetentionPeriodDetails. This constant has a value of “HISTORIZED_DATA”

TYPE_RAW_COMMAND_DATA = 'RAW_COMMAND_DATA'

A constant which can be used with the type property of a ChangeIotDomainDataRetentionPeriodDetails. This constant has a value of “RAW_COMMAND_DATA”

TYPE_RAW_DATA = 'RAW_DATA'

A constant which can be used with the type property of a ChangeIotDomainDataRetentionPeriodDetails. This constant has a value of “RAW_DATA”

TYPE_REJECTED_DATA = 'REJECTED_DATA'

A constant which can be used with the type property of a ChangeIotDomainDataRetentionPeriodDetails. This constant has a value of “REJECTED_DATA”

__init__(**kwargs)

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

Parameters
  • type (str) – The value to assign to the type property of this ChangeIotDomainDataRetentionPeriodDetails. Allowed values for this property are: “RAW_DATA”, “REJECTED_DATA”, “HISTORIZED_DATA”, “RAW_COMMAND_DATA”

  • data_retention_period_in_days (int) – The value to assign to the data_retention_period_in_days property of this ChangeIotDomainDataRetentionPeriodDetails.

property data_retention_period_in_days

[Required] Gets the data_retention_period_in_days of this ChangeIotDomainDataRetentionPeriodDetails. The duration (in days) for which data will be retained in the IoT domain.

Returns

The data_retention_period_in_days of this ChangeIotDomainDataRetentionPeriodDetails.

Return type

int

property type

[Required] Gets the type of this ChangeIotDomainDataRetentionPeriodDetails. The type of data retention period to apply. Allowed values are RAW_DATA, REJECTED_DATA, HISTORIZED_DATA, and RAW_COMMAND_DATA.

Allowed values for this property are: “RAW_DATA”, “REJECTED_DATA”, “HISTORIZED_DATA”, “RAW_COMMAND_DATA”

Returns

The type of this ChangeIotDomainDataRetentionPeriodDetails.

Return type

str