forked from linode/linode_api4-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathobject_storage.py
More file actions
32 lines (24 loc) · 808 Bytes
/
Copy pathobject_storage.py
File metadata and controls
32 lines (24 loc) · 808 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
from linode_api4.objects import Base, DerivedBase, Image, Property, Region
class ObjectStorageCluster(Base):
"""
A cluster where Object Storage is available.
"""
api_endpoint = "/object-storage/clusters/{id}"
properties = {
"id": Property(identifier=True),
"region": Property(slug_relationship=Region),
"status": Property(),
"domain": Property(),
"static_site_domain": Property(),
}
class ObjectStorageKeys(Base):
"""
A keypair that allows third-party applications to access Linode Object Storage.
"""
api_endpoint = "/object-storage/keys/{id}"
properties = {
"id": Property(identifier=True),
"label": Property(mutable=True),
"access_key": Property(),
"secret_key": Property(),
}