recipe.instance.json package

Submodules

recipe.instance.json.recipe_v6 module

Manages the v6 recipe instance schema

class recipe.instance.json.recipe_v6.RecipeInstanceV6(json=None, do_validate=False)

Bases: object

Represents a v6 recipe instance JSON

get_dict()

Returns the internal dictionary

Returns:The internal dictionary
Return type:dict
recipe.instance.json.recipe_v6.convert_node_to_v6_json(node)

Returns the v6 JSON dict for the given node instance

Parameters:node (recipe.instance.node.NodeInstance) – The node instance
Returns:The v6 JSON dict for the node
Return type:dict
recipe.instance.json.recipe_v6.convert_recipe_to_v6_json(recipe)

Returns the v6 recipe JSON for the given recipe instance

Parameters:recipe (recipe.instance.recipe.RecipeInstance) – The recipe instance
Returns:The v6 recipe JSON
Return type:recipe.instance.json.recipe_v6.RecipeInstanceV6

Module contents