-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresources.py
More file actions
28 lines (23 loc) · 752 Bytes
/
resources.py
File metadata and controls
28 lines (23 loc) · 752 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
from typing import List
from ..base import ResourceBase, APIOperation
from .models import Datacenters, WsPlans, Images
class MetadataResource(ResourceBase):
"""Contains all API operations for team ressources."""
datacenters = APIOperation(
method="GET",
endpoint_template="/metadata/datacenters",
input_model=None,
response_model=List[Datacenters],
)
plans = APIOperation(
method="GET",
endpoint_template="/metadata/workspace-plans",
input_model=None,
response_model=List[WsPlans],
)
images = APIOperation(
method="GET",
endpoint_template="/metadata/workspace-base-images",
input_model=None,
response_model=List[Images],
)