Class: WorkOS::UpdateAuditLogsRetention

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_periodObject

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_daysObject

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