File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,16 @@ class ObjectStorageEndpoint(JSONObject):
51
51
s3_endpoint : Optional [str ] = None
52
52
53
53
54
+ @dataclass
55
+ class ObjectStorageQuotaUsage (JSONObject ):
56
+ """
57
+ ObjectStorageQuotaUsage contains the fields of an object storage quota usage information.
58
+ """
59
+
60
+ quota_limit : int = 0
61
+ usage : int = 0
62
+
63
+
54
64
class ObjectStorageType (Base ):
55
65
"""
56
66
An ObjectStorageType represents the structure of a valid Object Storage type.
@@ -596,12 +606,12 @@ def usage(self):
596
606
API documentation: TBD
597
607
598
608
:returns: The Object Storage Quota usage.
599
- :rtype: MappedObject
609
+ :rtype: ObjectStorageQuotaUsage
600
610
"""
601
611
602
612
result = self ._client .get (
603
613
f"{ type (self ).api_endpoint } /usage" ,
604
614
model = self ,
605
615
)
606
616
607
- return MappedObject ( ** result )
617
+ return ObjectStorageQuotaUsage . from_json ( result )
You can’t perform that action at this time.
0 commit comments