Module adcp.types.generated_poc.governance.governance_context
Classes
class Flight (**data: Any)-
Expand source code
class Flight(AdCPBaseModel): model_config = ConfigDict( extra='forbid', ) start: Annotated[AwareDatetime, Field(description='Flight start (ISO 8601).')] end: Annotated[AwareDatetime, Field(description='Flight end (ISO 8601).')]Base model for AdCP types with spec-compliant serialization.
Defaults to
extra='ignore'so that unknown fields from newer spec versions are silently dropped rather than causing validation errors. Generated types whose schemas setadditionalProperties: trueoverride this withextra='allow'in their ownmodel_config. Consumers who want strict validation can override withextra='forbid'.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
- AdCPBaseModel
- pydantic.main.BaseModel
Class variables
var end : pydantic.types.AwareDatetimevar model_configvar start : pydantic.types.AwareDatetime
Inherited members
class GovernanceContext (**data: Any)-
Expand source code
class GovernanceContext(AdCPBaseModel): model_config = ConfigDict( extra='allow', ) total_budget: Annotated[ TotalBudget | None, Field(description='Total budget for the action.') ] = None countries: Annotated[ list[str] | None, Field(description='ISO 3166-1 alpha-2 country codes targeted by this action.'), ] = None channels: Annotated[ list[str] | None, Field(description='Channels targeted by this action.') ] = None flight: Annotated[Flight | None, Field(description='Flight dates for this action.')] = None seller_url: Annotated[ AnyUrl | None, Field(description='URL of the seller agent this action targets.') ] = NoneBase model for AdCP types with spec-compliant serialization.
Defaults to
extra='ignore'so that unknown fields from newer spec versions are silently dropped rather than causing validation errors. Generated types whose schemas setadditionalProperties: trueoverride this withextra='allow'in their ownmodel_config. Consumers who want strict validation can override withextra='forbid'.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
- AdCPBaseModel
- pydantic.main.BaseModel
Class variables
var channels : list[str] | Nonevar countries : list[str] | Nonevar flight : Flight | Nonevar model_configvar seller_url : pydantic.networks.AnyUrl | Nonevar total_budget : TotalBudget | None
Inherited members
class TotalBudget (**data: Any)-
Expand source code
class TotalBudget(AdCPBaseModel): model_config = ConfigDict( extra='forbid', ) amount: Annotated[float, Field(description='Budget amount.')] currency: Annotated[str, Field(description='ISO 4217 currency code.')]Base model for AdCP types with spec-compliant serialization.
Defaults to
extra='ignore'so that unknown fields from newer spec versions are silently dropped rather than causing validation errors. Generated types whose schemas setadditionalProperties: trueoverride this withextra='allow'in their ownmodel_config. Consumers who want strict validation can override withextra='forbid'.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
- AdCPBaseModel
- pydantic.main.BaseModel
Class variables
var amount : floatvar currency : strvar model_config
Inherited members