libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [libcloud] Kami commented on a change in pull request #1496: Enable to get Quota Set detail in OpenStack conn
Date Sun, 27 Sep 2020 11:30:14 GMT

Kami commented on a change in pull request #1496:
URL: https://github.com/apache/libcloud/pull/1496#discussion_r495563122



##########
File path: libcloud/compute/drivers/openstack.py
##########
@@ -4174,3 +4215,65 @@ def __repr__(self):
         return (('<OpenStack_2_PortInterface: id=%s, state=%s, '
                  'driver=%s  ...>')
                 % (self.id, self.state, self.driver.name))
+
+
+class OpenStack_2_QuotaSetItem(object):
+    """
+    A Qouta Set Item.
+    """
+
+    def __init__(self, in_use, limit, reserved):
+        self.in_use = in_use
+        self.limit = limit
+        self.reserved = reserved
+
+    def __repr__(self):
+        return ('<OpenStack_2_QuotaSetItem in_use="%s", limit="%s",'
+                'reserved="%s">' % (self.in_use, self.limit,
+                                    self.reserved))
+
+
+class OpenStack_2_QuotaSet(object):
+    """
+    A Qouta Set.
+    """
+
+    def __init__(self, id, cores, instances, key_pairs, metadata_items, ram,

Review comment:
       Same here, type annotations would be good.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message