Module adcp.types.generated_poc.webhook_asset
Classes
class Method (*args, **kwds)-
Expand source code
class Method(Enum): GET = 'GET' POST = 'POST'Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3Access them by:
- attribute access::
>>> Color.RED <Color.RED: 1>- value lookup:
>>> Color(1) <Color.RED: 1>- name lookup:
>>> Color['RED'] <Color.RED: 1>Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.
Ancestors
- enum.Enum
Class variables
var GETvar POST
class Method1 (*args, **kwds)-
Expand source code
class Method1(Enum): hmac_sha256 = 'hmac_sha256' api_key = 'api_key' none = 'none'Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3Access them by:
- attribute access::
>>> Color.RED <Color.RED: 1>- value lookup:
>>> Color(1) <Color.RED: 1>- name lookup:
>>> Color['RED'] <Color.RED: 1>Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.
Ancestors
- enum.Enum
Class variables
var api_keyvar hmac_sha256var none
class ResponseType (*args, **kwds)-
Expand source code
class ResponseType(Enum): html = 'html' json = 'json' xml = 'xml' javascript = 'javascript'Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3Access them by:
- attribute access::
>>> Color.RED <Color.RED: 1>- value lookup:
>>> Color(1) <Color.RED: 1>- name lookup:
>>> Color['RED'] <Color.RED: 1>Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.
Ancestors
- enum.Enum
Class variables
var htmlvar javascriptvar jsonvar xml
class Security (**data: Any)-
Expand source code
class Security(AdCPBaseModel): api_key_header: Annotated[ str | None, Field(description="Header name for API key (e.g., 'X-API-Key')") ] = None hmac_header: Annotated[ str | None, Field(description="Header name for HMAC signature (e.g., 'X-Signature')") ] = None method: Annotated[Method1, Field(description='Authentication method')]Base model for AdCP types with spec-compliant serialization.
AdCP JSON schemas use additionalProperties: false and do not allow null for optional fields. Therefore, optional fields must be omitted entirely when not present (not sent as null).
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 api_key_header : str | Nonevar hmac_header : str | Nonevar method : Method1var model_config
Inherited members
class WebhookAsset (**data: Any)-
Expand source code
class WebhookAsset(AdCPBaseModel): model_config = ConfigDict( extra='forbid', ) method: Annotated[Method | None, Field(description='HTTP method')] = Method.POST required_macros: Annotated[ list[str] | None, Field(description='Universal macros that must be provided for webhook to function'), ] = None response_type: Annotated[ ResponseType, Field(description='Expected content type of webhook response') ] security: Annotated[Security, Field(description='Security configuration for webhook calls')] supported_macros: Annotated[ list[str] | None, Field( description='Universal macros that can be passed to webhook (e.g., {DEVICE_TYPE}, {COUNTRY})' ), ] = None timeout_ms: Annotated[ int | None, Field(description='Maximum time to wait for response in milliseconds', ge=10, le=5000), ] = 500 url: Annotated[AnyUrl, Field(description='Webhook URL to call for dynamic content')]Base model for AdCP types with spec-compliant serialization.
AdCP JSON schemas use additionalProperties: false and do not allow null for optional fields. Therefore, optional fields must be omitted entirely when not present (not sent as null).
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 method : Method | Nonevar model_configvar required_macros : list[str] | Nonevar response_type : ResponseTypevar security : Securityvar supported_macros : list[str] | Nonevar timeout_ms : int | Nonevar url : pydantic.networks.AnyUrl
Inherited members