netunicorn.base.environment_definitions.EnvironmentDefinition¶
- class EnvironmentDefinition(commands=<factory>, runtime_context=<factory>)[source]¶
Bases:
objectA base class for all Environment Definitions.
- Parameters:
commands (
List[str], default:<factory>) – commands that should be executed to create an environmentruntime_context (
RuntimeContext, default:<factory>)
Attributes
A list of commands that should be executed to create an environment.
Runtime context for this environment definition
Methods
Creates EnvironmentDefinition from JSON representation.
-
runtime_context:
RuntimeContext[source]¶ Runtime context for this environment definition
- classmethod from_json(data)[source]¶
Creates EnvironmentDefinition from JSON representation.
- Parameters:
data (
EnvironmentDefinitionRepresentation) – JSON representation of EnvironmentDefinition- Returns:
EnvironmentDefinition– Deserialized EnvironmentDefinition