Module adcp.types.domains.enums.frequency_cap_scope
Classes
class FrequencyCapScope (root: RootModelRootType = PydanticUndefined, **data)-
Expand source code
class FrequencyCapScope(AdCPRootModel[Literal['package']]): root: Annotated[ Literal['package'], Field(description='Scope for frequency cap application', title='Frequency Cap Scope'), ] = 'package'RootModelunder the SDK's deferred-build policy.class X(RootModel[A | B])parametrizes a concrete class at theRootModel[…]expression, and that class carries pydantic's default config: its validator for the whole union is built right there, beforeXand any configXdeclares exist. For a composing root such asadagents.AdcpAgentsAuthorizationthat walked most of its domain into pydantic-core at import (#1694). Parametrizing this class instead inheritsdefer_build=TrueintoAdCPRootModel[A | B]and intoX, so the build waits for first use like every other generated model's.scripts/post_generate_fixes.defer_rootmodel_buildspoints every generated composing root here; a value root is a scalar subclass instead (adcp.types._scalar).Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors
- AdCPRootModel[Literal['package']]
- AdCPRootModel
- pydantic.root_model.RootModel[~_RootT]
- pydantic.root_model.RootModel
- pydantic.main.BaseModel
- typing.Generic
Class variables
var model_configvar root : Literal['package']