class documentation
class ValidatedSlots(object):
Known subclasses: ganeti.masterd.iallocator.IARequestBase
, ganeti.objects.ConfigObject
, ganeti.opcodes_base.BaseOpCode
Sets and validates slots.
Class Method |
|
Compute the list of all declared slots for a class. |
Method | __init__ |
Constructor for BaseOpCode. |
Method |
|
Validates the slots. |
Class Variable | __slots__ |
Undocumented |
overridden in
ganeti.confd.client.ConfdClientRequest
, ganeti.masterd.iallocator.IARequestBase
, ganeti.opcodes_base.BaseOpCode
Constructor for BaseOpCode.
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 __slots__ attribute for this class.
overridden in
ganeti.masterd.iallocator.IARequestBase
, ganeti.objects.ConfigObject
, ganeti.opcodes_base.BaseOpCode
Validates the slots.
This method returns None
if the validation succeeds, or raises an exception otherwise.
Returns | |
NoneType | None , if the validation succeeds |
Raises | |
Exception | validation fails This method must be implemented by the child classes. |