Skip to content
ocx
install

EnvEntry

EnvEntryclassdataclass#

Re-exported from ocx_sdk._resultsView source
class EnvEntry(key: str, type: EnvEntryType, value: str, separator: str | None = None)

One [env] contribution from ocx env.

Attributes

NameTypeDescription
keystrThe variable name.
typeEnvEntryTypeHow the value folds onto the parent environment.
valuestrThe contribution, verbatim. ocx has already resolved its own ${...} grammar by the time it reaches us.
separatorstr | NoneThe separator a list entry folds with, when its project declared one. None — always, for the other two types — takes _envmodel’s default, which is ocx’s own.

keyattributeinstance attribute#

key: str

separatorattributeclass attributeinstance attribute#

separator: str | None = None

typeattributeinstance attribute#

type: EnvEntryType

valueattributeinstance attribute#

value: str

from_dictmethodclassmethod#

def from_dict(data: Mapping[str, Any]) -> EnvEntry

Build from one decoded entry of an entries array.

Raises

ValueError
The entry declares a type this SDK cannot fold.