Exemplo n.º 1
0
 def __init__(self, username, apikey):
     self.backup_schedules = BackupScheduleManager(self)
     self.client = CloudServersClient(username, apikey)
     self.flavors = FlavorManager(self)
     self.images = ImageManager(self)
     self.ipgroups = IPGroupManager(self)
     self.servers = ServerManager(self)
Exemplo n.º 2
0
def client():
    cl = CloudServersClient("username", "apikey")
    cl.management_url = "http://example.com"
    cl.auth_token = "token"
    return cl