class

OpenAI::BatchFileExpirationAfter

Inherits JSON::Serializable < Reference < Object

The expiration policy for the output and/or error file that are generated for a batch.

Constructors

new(anchor : BatchFileExpirationAfterAnchor = BatchFileExpirationAfterAnchor::CreatedAt, seconds : Int64 = 0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

anchor

Anchor timestamp after which the expiration policy applies. Supported anchors: created_at. Note that the anchor is the file creation time, not the time the batch is created.

Source
anchor=(anchor : BatchFileExpirationAfterAnchor)

Anchor timestamp after which the expiration policy applies. Supported anchors: created_at. Note that the anchor is the file creation time, not the time the batch is created.

Source
seconds

The number of seconds after the anchor time that the file will expire. Must be between 3600 (1 hour) and 2592000 (30 days).

Source
seconds=(seconds : Int64)

The number of seconds after the anchor time that the file will expire. Must be between 3600 (1 hour) and 2592000 (30 days).

Source
validate!
Source