File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,16 @@ class ObjectStorageEndpoint(JSONObject):
5151 s3_endpoint : Optional [str ] = None
5252
5353
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+
5464class ObjectStorageType (Base ):
5565 """
5666 An ObjectStorageType represents the structure of a valid Object Storage type.
@@ -596,12 +606,12 @@ def usage(self):
596606 API documentation: TBD
597607
598608 :returns: The Object Storage Quota usage.
599- :rtype: MappedObject
609+ :rtype: ObjectStorageQuotaUsage
600610 """
601611
602612 result = self ._client .get (
603613 f"{ type (self ).api_endpoint } /usage" ,
604614 model = self ,
605615 )
606616
607- return MappedObject ( ** result )
617+ return ObjectStorageQuotaUsage . from_json ( result )
You can’t perform that action at this time.
0 commit comments