main
1# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
3from typing import Optional
4from typing_extensions import Literal
5
6from .._models import BaseModel
7
8__all__ = ["ContainerRetrieveResponse", "ExpiresAfter"]
9
10
11class ExpiresAfter(BaseModel):
12 anchor: Optional[Literal["last_active_at"]] = None
13 """The reference point for the expiration."""
14
15 minutes: Optional[int] = None
16 """The number of minutes after the anchor before the container expires."""
17
18
19class ContainerRetrieveResponse(BaseModel):
20 id: str
21 """Unique identifier for the container."""
22
23 created_at: int
24 """Unix timestamp (in seconds) when the container was created."""
25
26 name: str
27 """Name of the container."""
28
29 object: str
30 """The type of this object."""
31
32 status: str
33 """Status of the container (e.g., active, deleted)."""
34
35 expires_after: Optional[ExpiresAfter] = None
36 """
37 The container will expire after this time period. The anchor is the reference
38 point for the expiration. The minutes is the number of minutes after the anchor
39 before the container expires.
40 """
41
42 last_active_at: Optional[int] = None
43 """Unix timestamp (in seconds) when the container was last active."""
44
45 memory_limit: Optional[Literal["1g", "4g", "16g", "64g"]] = None
46 """The memory limit configured for the container."""