SDK reference / Models

Models.Flags namespace

Types

TypeKindDescription
ConfigValuesclassThe values of a config set an app reads: the entries as stored, with secret references as references.
ConfigValues_entriesclassKey to entry: `{type, value}` or `{type: secretRef, secret: {name, version}}`. Never a secret's value.
CreateFlagSetRequestclass
CreateReadKeyRequestclass
CreatedReadKeyclassA read key as the request that made it answers: the only time the key itself is shown.
EvaluateRequestclassThe OpenFeature evaluation context: a `targetingKey` for sticky rollouts, and any attributes the rules read.
EvaluateRequest_contextclass
EvaluateResponseclass
EvaluationResultclassOne OFREP evaluation answer (success or error).
EvaluationResult_metadataclass
FlagSetclassA versioned set of feature flags (or app configuration entries) in one project and location (OPS-15).`entries` is the current version's content: for FLAGS a map of flag key to flag definition (`type` boolean, string, number or object;`variants`; `defaultVariant`; `enabled`; `rules` with `when` and `serve` or `rollout`; a fallthrough `rollout`); for CONFIG a map of key to`{type: string|number|boolean|json|secretRef, value}` or `{type: secretRef, secret: {name, version}}`.
FlagSetConnectionclassThe OFREP endpoint of a set and the lines a customer pastes to point an OpenFeature provider at it.
FlagSetKindenumWhat a set holds: feature flags (served through OFREP) or app configuration (key-value settings).
FlagSetVersionclassOne immutable version of a set.
FlagSetVersion_entriesclassThe content of this version; only on a `get`, not in a list.
FlagSet_entriesclassThe current content (see the model description).
PutEntryRequestclassSets one entry. The new version is made from the current one plus this change; `expectedVersion` makes it fail with 409 when someone else changed the set first.
PutEntryRequest_entryclassThe flag definition or the config entry (see FlagSet).
ReadKeyclassA key an app presents to read a flag set (OFREP) or a config set. Shown once, when it is made.
RollbackRequestclass