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 a JAMLCompatible type

  • data (Dict) – flow yaml file loaded as python dict

  • runtime_args (Optional[Dict[str, Any]]) – Optional runtime_args to be directly passed without being parsed into a yaml config

Return type:

BaseGateway

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