Пример #1
0
 def __init__(self, **kwargs):
     """
     Not to be called directaly.  These instances will be created by the 
     Connection class when you create or list the current instances.
     """
     APIBaseModel.__init__(self, **kwargs)
     self.flavor = Flavor(**self.flavor)
Пример #2
0
    def __init__(self, parent, **kwargs):
        """
        Not to be called directaly.  These instances will be created by the 
        Connection class when you create or list your databases.
        """
        APIBaseModel.__init__(self, **kwargs)

        self.parent = parent
        self.instance_id = self.parent.id
Пример #3
0
    def __init__(self, parent, **kwargs):
        """
        Sets the initial details for a user in the API.  Instances of this class
        will be created by the Database class when accessing the users on a 
        database.  You do not need to create instances of this class yourself.
        """
        APIBaseModel.__init__(self, **kwargs)

        self.parent = parent
        self.instance_id = self.parent.id

        self.databases = [ Database(parent = self.parent, **dbase)
            for dbase in self.databases ]
Пример #4
0
 def __init__(self, **kwargs):
     """
     Not to be called directaly.  These instances will be created by the
     Connection class when you create or list the avaliable flavors.
     """
     APIBaseModel.__init__(self, **kwargs)