class documentation

A generic IAllocator request object.

Method __init__ Constructor for IARequestBase.
Method GetExtraParams Gets extra parameters to the IAllocator call.
Method GetRequest Gets the request data dict.
Method Validate Validates all parameters of the request.
Method ValidateResult Validates the result of an request.
Constant REQ_PARAMS Undocumented

Inherited from ValidatedSlots:

Class Method GetAllSlots Compute the list of all declared slots for a class.
Class Variable __slots__ Undocumented
def __init__(self, **kwargs):

Constructor for IARequestBase.

The constructor takes only keyword arguments and will set attributes on this object based on the passed arguments. As such, it means that you should not pass arguments which are not in the REQ_PARAMS attribute for this class.

def GetExtraParams(self):

Gets extra parameters to the IAllocator call.

def Validate(self):

Validates all parameters of the request.

This method returns None if the validation succeeds, or raises an exception otherwise.

Returns
NoneTypeNone, if the validation succeeds
Raises
Exceptionvalidation fails
def ValidateResult(self, ia, result):

Validates the result of an request.

Parameters
iaThe IAllocator instance
resultThe IAllocator run result
Raises
ResultValidationErrorIf validation fails