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 set additionalProperties: true override this with extra='allow' in their own model_config. Consumers who want strict validation can override with extra='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.

self is explicitly positional-only to allow self as a field name.

Ancestors

Class variables

var end : pydantic.types.AwareDatetime
var model_config
var 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.')
    ] = None

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 set additionalProperties: true override this with extra='allow' in their own model_config. Consumers who want strict validation can override with extra='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.

self is explicitly positional-only to allow self as a field name.

Ancestors

Class variables

var channels : list[str] | None
var countries : list[str] | None
var flightFlight | None
var model_config
var seller_url : pydantic.networks.AnyUrl | None
var total_budgetTotalBudget | 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 set additionalProperties: true override this with extra='allow' in their own model_config. Consumers who want strict validation can override with extra='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.

self is explicitly positional-only to allow self as a field name.

Ancestors

Class variables

var amount : float
var currency : str
var model_config

Inherited members