class documentation
class Placeholder(object): (source)
Known subclasses: step_in_line.stepfunctions.inputs.StepInput
Constructor: Placeholder(schema, **kwargs)
A collection of Placeholder variables.
| Method | __contains__ |
Containment check operator for placeholder variables. |
| Method | __getitem__ |
Subscript operator to build placeholder variables. |
| Method | __init__ |
schema (dict, optional): Schema for the placeholder collection. (default: None) |
| Method | contains |
Check if the placeholder collection contains the specified placeholder variable. |
| Method | get |
Create a placeholder variable with an associated type. |
| Method | get |
Generate a schema for the placeholder collection as a Python dictionary. |
| Method | get |
Generate a schema for the placeholder collection as a JSON formatted string. |
| Method | to |
Returns a JSON path representation of the placeholder variable to be used for step parameters. |
| Method | validate |
Validate a specified input against the placeholder collection schema. |
| Instance Variable | immutable |
Undocumented |
| Instance Variable | json |
Undocumented |
| Instance Variable | name |
Undocumented |
| Instance Variable | parent |
Undocumented |
| Instance Variable | schema |
Undocumented |
| Instance Variable | store |
Undocumented |
| Instance Variable | type |
Undocumented |
| Method | _create |
Undocumented |
| Method | _get |
Get path to a placeholder variable node in the collection. |
| Method | _is |
Check if the store for a placeholder collection/variable is empty. |
| Method | _is |
Undocumented |
| Method | _join |
Undocumented |
| Method | _make |
Make a placeholder collection (including all variables contained) immutable. |
| Method | _set |
Set the schema for a placeholder collection. |
overridden in
step_in_line.stepfunctions.inputs.StepInput- Args:
- schema (dict, optional): Schema for the placeholder collection. (default: None)
- Keyword Args:
- name (str, optional): Name of the placeholder variable. (default: None) type (type, optional): Type of the placeholder variable. (default: None) parent (Placeholder, optional): Parent variable for a placeholder variable. (default: None)
Create a placeholder variable with an associated type.
- Args:
- name (str): Name of the placeholder variable. type (type): Type of the placeholder variable.
- Raises:
- ValueError: If placeholder variable with the same name but different type already exists. ValueError: If placeholder variable does not fit into a previously specified schema for the placeholder collection.
- Returns:
- Placeholder: Placeholder variable.
Generate a schema for the placeholder collection as a Python dictionary.
- Returns:
- dict: Placeholder collection schema.
Returns a JSON path representation of the placeholder variable to be used for step parameters.
- Returns:
- str: JSON path representation of the placeholder variable
Validate a specified input against the placeholder collection schema.
- Args:
- input (dict): Input to validate against the placeholder collection schema.
- Returns:
- ValidationResult: Named tuple with the keys:
- "valid" (Boolean): Representing the result of validation , "keys_missing" (list(str)): List of keys missing in the input , "keys_type_mismatch" (list(str), type, type): List of tuples with key name, expected type, and provided type.