Skip to main content

Parameter

No overview available.

Attributes

AttributeTypeDescription
namePyBackedStrThe identifier of the parameter used for mapping and retrieval within the system.
mode[ParameterMode](parametermode.md?sid=validators_arguments_v3_parametermode)Defines the operational behavior and input/output characteristics of the parameter.
lookup_path_collection[LookupPathCollection](../../../lookup/key/lookuppathcollection.md?sid=lookup_key_lookuppathcollection)A collection of paths used to resolve the parameter's value from various data sources.
validatorArc< CombinedValidator >The validation logic used to ensure the parameter value meets all defined constraints and types.

Constructor

Signature

def Parameter(
name: PyBackedStr,
mode: [ParameterMode](parametermode.md?sid=validators_arguments_v3_parametermode),
lookup_path_collection: [LookupPathCollection](../../../lookup/key/lookuppathcollection.md?sid=lookup_key_lookuppathcollection),
validator: Arc< CombinedValidator >
)

Parameters

NameTypeDescription
namePyBackedStrThe name of the parameter.
mode[ParameterMode](parametermode.md?sid=validators_arguments_v3_parametermode)The mode of the parameter (e.g., positional, keyword).
lookup_path_collection[LookupPathCollection](../../../lookup/key/lookuppathcollection.md?sid=lookup_key_lookuppathcollection)The collection of paths used to look up the parameter value.
validatorArc< CombinedValidator >The validator used to validate the parameter value.

Methods


name()

def name() - > PyBackedStr

Retrieves the unique identifier of the parameter used for mapping and reference within the schema.

Returns

TypeDescription
PyBackedStrThe string representation of the parameter name.

mode()

def mode() - > [ParameterMode](parametermode.md?sid=validators_arguments_v3_parametermode)

Determines the operational mode of the parameter, defining how it should be processed or accessed.

Returns

TypeDescription
[ParameterMode](parametermode.md?sid=validators_arguments_v3_parametermode)The mode configuration governing the parameter's behavior.

lookup_path_collection()

def lookup_path_collection() - > [LookupPathCollection](../../../lookup/key/lookuppathcollection.md?sid=lookup_key_lookuppathcollection)

Provides the collection of paths used to locate the parameter's value within a data structure.

Returns

TypeDescription
[LookupPathCollection](../../../lookup/key/lookuppathcollection.md?sid=lookup_key_lookuppathcollection)A collection of lookup paths associated with this parameter.

validator()

def validator() - > Arc< CombinedValidator >

Accesses the validation logic used to ensure the parameter value meets defined constraints and types.

Returns

TypeDescription
Arc< CombinedValidator >An atomic reference counted pointer to the combined validator instance.