Ejemplo n.º 1
0
 def __init__(self, model, ident):
     super(StoragePool, self).__init__(model, ident)
     self.admin_methods = ['PUT', 'POST', 'DELETE']
     self.uri_fmt = '/storagepools/%s'
     self.activate = self.generate_action_handler('activate')
     self.deactivate = self.generate_action_handler(
         'deactivate', destructive=True)
     self.storagevolumes = StorageVolumes(self.model, ident)
     self.log_map = STORAGEPOOL_REQUESTS
Ejemplo n.º 2
0
 def __init__(self, model, ident):
     super(StoragePool, self).__init__(model, ident)
     self.role_key = 'storage'
     self.admin_methods = ['PUT', 'POST', 'DELETE']
     self.uri_fmt = "/storagepools/%s"
     self.activate = self.generate_action_handler('activate')
     self.deactivate = self.generate_action_handler('deactivate',
                                                    destructive=True)
     self.storagevolumes = StorageVolumes(self.model, ident)