|
1 | 1 | # generated by datamodel-codegen: |
2 | 2 | # filename: core/assets/daast_asset.json |
3 | | -# timestamp: 2025-11-22T15:23:24+00:00 |
| 3 | +# timestamp: 2025-11-29T12:00:45+00:00 |
4 | 4 |
|
5 | 5 | from __future__ import annotations |
6 | 6 |
|
|
15 | 15 |
|
16 | 16 | class DaastAsset1(AdCPBaseModel): |
17 | 17 | model_config = ConfigDict( |
18 | | - extra="forbid", |
| 18 | + extra='forbid', |
19 | 19 | ) |
20 | 20 | companion_ads: Annotated[ |
21 | | - bool | None, Field(description="Whether companion display ads are included") |
| 21 | + bool | None, Field(description='Whether companion display ads are included') |
22 | 22 | ] = None |
23 | 23 | daast_version: Annotated[ |
24 | | - daast_version_1.DaastVersion | None, Field(description="DAAST specification version") |
| 24 | + daast_version_1.DaastVersion | None, Field(description='DAAST specification version') |
25 | 25 | ] = None |
26 | 26 | delivery_type: Annotated[ |
27 | | - Literal["url"], |
28 | | - Field(description="Discriminator indicating DAAST is delivered via URL endpoint"), |
| 27 | + Literal['url'], |
| 28 | + Field(description='Discriminator indicating DAAST is delivered via URL endpoint'), |
29 | 29 | ] |
30 | 30 | duration_ms: Annotated[ |
31 | | - int | None, Field(description="Expected audio duration in milliseconds (if known)", ge=0) |
| 31 | + int | None, Field(description='Expected audio duration in milliseconds (if known)', ge=0) |
32 | 32 | ] = None |
33 | 33 | tracking_events: Annotated[ |
34 | 34 | list[daast_tracking_event.DaastTrackingEvent] | None, |
35 | | - Field(description="Tracking events supported by this DAAST tag"), |
| 35 | + Field(description='Tracking events supported by this DAAST tag'), |
36 | 36 | ] = None |
37 | | - url: Annotated[AnyUrl, Field(description="URL endpoint that returns DAAST XML")] |
| 37 | + url: Annotated[AnyUrl, Field(description='URL endpoint that returns DAAST XML')] |
38 | 38 |
|
39 | 39 |
|
40 | 40 | class DaastAsset2(AdCPBaseModel): |
41 | 41 | model_config = ConfigDict( |
42 | | - extra="forbid", |
| 42 | + extra='forbid', |
43 | 43 | ) |
44 | 44 | companion_ads: Annotated[ |
45 | | - bool | None, Field(description="Whether companion display ads are included") |
| 45 | + bool | None, Field(description='Whether companion display ads are included') |
46 | 46 | ] = None |
47 | | - content: Annotated[str, Field(description="Inline DAAST XML content")] |
| 47 | + content: Annotated[str, Field(description='Inline DAAST XML content')] |
48 | 48 | daast_version: Annotated[ |
49 | | - daast_version_1.DaastVersion | None, Field(description="DAAST specification version") |
| 49 | + daast_version_1.DaastVersion | None, Field(description='DAAST specification version') |
50 | 50 | ] = None |
51 | 51 | delivery_type: Annotated[ |
52 | | - Literal["inline"], |
53 | | - Field(description="Discriminator indicating DAAST is delivered as inline XML content"), |
| 52 | + Literal['inline'], |
| 53 | + Field(description='Discriminator indicating DAAST is delivered as inline XML content'), |
54 | 54 | ] |
55 | 55 | duration_ms: Annotated[ |
56 | | - int | None, Field(description="Expected audio duration in milliseconds (if known)", ge=0) |
| 56 | + int | None, Field(description='Expected audio duration in milliseconds (if known)', ge=0) |
57 | 57 | ] = None |
58 | 58 | tracking_events: Annotated[ |
59 | 59 | list[daast_tracking_event.DaastTrackingEvent] | None, |
60 | | - Field(description="Tracking events supported by this DAAST tag"), |
| 60 | + Field(description='Tracking events supported by this DAAST tag'), |
61 | 61 | ] = None |
0 commit comments