main
 1# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
 2
 3from __future__ import annotations
 4
 5from typing_extensions import Literal, Required, TypedDict
 6
 7from .._types import SequenceNotStr
 8
 9__all__ = ["ContainerCreateParams", "ExpiresAfter"]
10
11
12class ContainerCreateParams(TypedDict, total=False):
13    name: Required[str]
14    """Name of the container to create."""
15
16    expires_after: ExpiresAfter
17    """Container expiration time in seconds relative to the 'anchor' time."""
18
19    file_ids: SequenceNotStr[str]
20    """IDs of files to copy to the container."""
21
22    memory_limit: Literal["1g", "4g", "16g", "64g"]
23    """Optional memory limit for the container. Defaults to "1g"."""
24
25
26class ExpiresAfter(TypedDict, total=False):
27    anchor: Required[Literal["last_active_at"]]
28    """Time anchor for the expiration time.
29
30    Currently only 'last_active_at' is supported.
31    """
32
33    minutes: Required[int]