Exemple #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)
Exemple #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
Exemple #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 ]
Exemple #4
0
 def __str__(self):
     return APIBaseModel.__str__(self, ('id', 'name', 'volume', 'flavor'))
Exemple #5
0
 def __str__(self):
     return APIBaseModel.__str__(self, ('id', 'name', 'ram'))
Exemple #6
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)