class ProtocolStep(Entity): """Steps key in the Protocol object""" _TAG = 'step' name = StringAttributeDescriptor("name") type = EntityDescriptor('type', Processtype) permittedcontainers = NestedStringListDescriptor('container-type', 'container-types') queue_fields = NestedAttributeListDescriptor('queue-field', 'queue-fields') step_fields = NestedAttributeListDescriptor('step-field', 'step-fields') sample_fields = NestedAttributeListDescriptor('sample-field', 'sample-fields') step_properties = NestedAttributeListDescriptor('step_property', 'step_properties') epp_triggers = NestedAttributeListDescriptor('epp_trigger', 'epp_triggers')
class Protocol(Entity): """Protocol, holding ProtocolSteps and protocol-properties""" _URI = 'configuration/protocols' _TAG = 'protocol' steps = NestedEntityListDescriptor('step', ProtocolStep, 'steps') properties = NestedAttributeListDescriptor('protocol-property', 'protocol-properties')
class ProtocolStep(Entity): """Steps key in the Protocol object""" _TAG = 'step' name = StringAttributeDescriptor("name") type = EntityDescriptor('process-type', Processtype) permittedcontainers = NestedStringListDescriptor('container-type', 'permitted-containers') permitted_control_types = NestedEntityListDescriptor( 'control-type', ControlType, 'permitted-control-types') required_reagent_kits = NestedEntityListDescriptor( 'reagent-kit', ReagentKit, 'required-reagent-kits') queue_fields = NestedAttributeListDescriptor('queue-field', 'queue-fields') step_fields = NestedAttributeListDescriptor('step-field', 'step-fields') sample_fields = NestedAttributeListDescriptor('sample-field', 'sample-fields') step_properties = NestedAttributeListDescriptor('step-property', 'step-properties') epp_triggers = NestedAttributeListDescriptor('epp-trigger', 'epp-triggers')