2022-08-25 20:03:56 +03:00
|
|
|
import typing
|
|
|
|
import strawberry
|
|
|
|
|
|
|
|
|
2024-03-18 13:44:53 +02:00
|
|
|
# TODO: use https://strawberry.rocks/docs/integrations/pydantic when it is stable
|
2022-08-25 20:03:56 +03:00
|
|
|
@strawberry.type
|
|
|
|
class DnsRecord:
|
|
|
|
"""DNS record"""
|
|
|
|
|
|
|
|
record_type: str
|
|
|
|
name: str
|
|
|
|
content: str
|
|
|
|
ttl: int
|
|
|
|
priority: typing.Optional[int]
|
2023-11-24 12:57:52 +02:00
|
|
|
display_name: str
|