-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodels.py
More file actions
47 lines (34 loc) · 898 Bytes
/
models.py
File metadata and controls
47 lines (34 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from __future__ import annotations
from pydantic import BaseModel
import datetime
from typing import TYPE_CHECKING
if TYPE_CHECKING:
pass
class Datacenters(BaseModel):
"""Defines the request body for creating a team."""
id: int
name: str
city: str
countryCode: str
class Characteristics(BaseModel):
"""Defines the hardware and service characteristics of a workspace plan."""
id: int
CPU: float
GPU: int
RAM: int
SSD: int
TempStorage: int
onDemand: bool
class WsPlans(BaseModel):
"""Contains all fields that appear in a workspace-plans response."""
id: int
priceUsd: int
title: str
deprecated: bool
characteristics: Characteristics
maxReplicas: int
class Images(BaseModel):
"""Represents a team as it appears in the list response."""
id: str
name: str
supportedUntil: datetime.datetime