Container

@Serializable
data class Container(val id: ContainerId, val createdAt: Long, val name: String, val status: String, val objectType: String = "container", val expiresAfter: ContainerExpiration? = null, val lastActiveAt: Long? = null, val memoryLimit: ContainerMemoryLimit? = null, val networkPolicy: ContainerNetworkAccess? = null)

A hosted container and its configured resource policy.

Constructors

Link copied to clipboard
constructor(id: ContainerId, createdAt: Long, name: String, status: String, objectType: String = "container", expiresAfter: ContainerExpiration? = null, lastActiveAt: Long? = null, memoryLimit: ContainerMemoryLimit? = null, networkPolicy: ContainerNetworkAccess? = null)

Properties

Link copied to clipboard
@SerialName(value = "created_at")
val createdAt: Long

Creation time in Unix seconds.

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

Returned expiration policy; either nested field may be omitted.

Link copied to clipboard

Container identifier.

Link copied to clipboard
@SerialName(value = "last_active_at")
val lastActiveAt: Long? = null

Last activity time in Unix seconds.

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

Configured memory limit.

Link copied to clipboard

Caller-provided name.

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

Returned network policy, which does not expose domain secrets.

Link copied to clipboard
@SerialName(value = "object")
val objectType: String

Resource kind.

Link copied to clipboard

Lifecycle state, such as running or deleted.