ContainerRequest

@Serializable
data class ContainerRequest(val name: String, val expiresAfter: ContainerExpirationPolicy? = null, val fileIds: List<FileId>? = null, val memoryLimit: ContainerMemoryLimit? = null, val networkPolicy: ContainerNetworkPolicy? = null, val skills: List<ContainerSkill>? = null)

Creates a hosted container, optionally copying files and mounting skills.

Constructors

Link copied to clipboard
constructor(name: String, expiresAfter: ContainerExpirationPolicy? = null, fileIds: List<FileId>? = null, memoryLimit: ContainerMemoryLimit? = null, networkPolicy: ContainerNetworkPolicy? = null, skills: List<ContainerSkill>? = null)

Properties

Link copied to clipboard
@SerialName(value = "expires_after")
val expiresAfter: ContainerExpirationPolicy? = null

Expiration relative to the last activity timestamp.

Link copied to clipboard
@SerialName(value = "file_ids")
val fileIds: List<FileId>? = null

Regular File IDs to copy into the container.

Link copied to clipboard
@SerialName(value = "memory_limit")
val memoryLimit: ContainerMemoryLimit? = null

Memory size; omitted selects the server default.

Link copied to clipboard

Name of the container.

Link copied to clipboard
@SerialName(value = "network_policy")
val networkPolicy: ContainerNetworkPolicy? = null

Outbound network policy.

Link copied to clipboard
val skills: List<ContainerSkill>? = null

Hosted skill references or inline ZIP bundles.