Class: WorkOS::UpdateAuditLogsRetention
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::UpdateAuditLogsRetention
- Defined in:
- lib/workos/organizations/update_audit_logs_retention.rb
Constant Summary collapse
- HASH_ATTRS =
{ retention_period: :retention_period, retention_period_in_days: :retention_period_in_days }.freeze
Instance Attribute Summary collapse
-
#retention_period ⇒ Object
Returns the value of attribute retention_period.
-
#retention_period_in_days ⇒ Object
deprecated
Deprecated.
The number of days Audit Log events will be retained. Valid values are
30through330in 30-day increments and365through3650in 365-day increments. Deprecated: useretention_periodinstead. Mutually exclusive withretention_period.
Instance Method Summary collapse
-
#initialize(json) ⇒ UpdateAuditLogsRetention
constructor
A new instance of UpdateAuditLogsRetention.
Constructor Details
#initialize(json) ⇒ UpdateAuditLogsRetention
Returns a new instance of UpdateAuditLogsRetention.
24 25 26 27 28 |
# File 'lib/workos/organizations/update_audit_logs_retention.rb', line 24 def initialize(json) hash = self.class.normalize(json) @retention_period = hash[:retention_period] @retention_period_in_days = hash[:retention_period_in_days] end |
Instance Attribute Details
#retention_period ⇒ Object
Returns the value of attribute retention_period.
15 16 17 |
# File 'lib/workos/organizations/update_audit_logs_retention.rb', line 15 def retention_period @retention_period end |
#retention_period_in_days ⇒ Object
Deprecated.
The number of days Audit Log events will be retained. Valid values are 30 through 330 in 30-day increments and 365 through 3650 in 365-day increments. Deprecated: use retention_period instead. Mutually exclusive with retention_period.
15 |
# File 'lib/workos/organizations/update_audit_logs_retention.rb', line 15 attr_accessor :retention_period |