jina.jaml.parsers.gateway.legacy module#
- class jina.jaml.parsers.gateway.legacy.GatewayLegacyParser[source]#
Bases:
BaseLegacyParser
Legacy parser for gateway.
- parse(cls, data, runtime_args=None)[source]#
- Parameters:
cls (
Type
[BaseGateway
]) – target class type to parse into, must be aJAMLCompatible
typedata (
Dict
) – flow yaml file loaded as python dictruntime_args (
Optional
[Dict
[str
,Any
]]) – Optional runtime_args to be directly passed without being parsed into a yaml config
- Return type:
- Returns:
the Flow YAML parser given the syntax version number
- dump(data)[source]#
- Parameters:
data (
BaseGateway
) – versioned gateway object- Return type:
Dict
- Returns:
the dictionary given a versioned flow object
- version = 'legacy'#
the version number this parser designed for