@@ -596,6 +596,8 @@ class ObjectStorageQuota(Base):
596596 "description" : Property (),
597597 "quota_limit" : Property (),
598598 "resource_metric" : Property (),
599+ "quota_type" : Property (),
600+ "has_usage" : Property (),
599601 }
600602
601603 def usage (self ):
@@ -614,3 +616,41 @@ def usage(self):
614616 )
615617
616618 return ObjectStorageQuotaUsage .from_json (result )
619+
620+
621+ class ObjectStorageGlobalQuota (Base ):
622+ """
623+ An account-level Object Storage quota.
624+
625+ API documentation: TBD
626+ """
627+
628+ api_endpoint = "/object-storage/global-quotas/{quota_id}"
629+ id_attribute = "quota_id"
630+
631+ properties = {
632+ "quota_id" : Property (identifier = True ),
633+ "quota_type" : Property (),
634+ "quota_name" : Property (),
635+ "description" : Property (),
636+ "resource_metric" : Property (),
637+ "quota_limit" : Property (),
638+ "has_usage" : Property (),
639+ }
640+
641+ def usage (self ):
642+ """
643+ Gets usage data for a specific account-level Object Storage quota.
644+
645+ API documentation: https://techdocs.akamai.com/linode-api/reference/get-object-storage-global-quota-usage
646+
647+ :returns: The Object Storage Global Quota usage.
648+ :rtype: ObjectStorageQuotaUsage
649+ """
650+
651+ result = self ._client .get (
652+ f"{ type (self ).api_endpoint } /usage" ,
653+ model = self ,
654+ )
655+
656+ return ObjectStorageQuotaUsage .from_json (result )
0 commit comments