class

OpenAI::UploadPart

Inherits JSON::Serializable < Reference < Object

The upload Part represents a chunk of bytes we can add to an Upload object.

Constructors

new(id : String = "", created_at : Int64 = 0, upload_id : String = "", object : UploadPartObject = UploadPartObject::UploadPart)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

created_at

The Unix timestamp (in seconds) for when the Part was created.

Source
created_at=(created_at : Int64)

The Unix timestamp (in seconds) for when the Part was created.

Source
id

The upload Part unique identifier, which can be referenced in API endpoints.

Source
id=(id : String)

The upload Part unique identifier, which can be referenced in API endpoints.

Source
object

The object type, which is always upload.part.

Source
object=(object : UploadPartObject)

The object type, which is always upload.part.

Source
upload_id

The ID of the Upload object that this Part was added to.

Source
upload_id=(upload_id : String)

The ID of the Upload object that this Part was added to.

Source