selfprivacy-rest-api/selfprivacy_api/graphql/common_types/dns.py

16 lines
294 B
Python

import typing
import strawberry
# TODO: use https://strawberry.rocks/docs/integrations/pydantic when it is stable
@strawberry.type
class DnsRecord:
"""DNS record"""
record_type: str
name: str
content: str
ttl: int
priority: typing.Optional[int]
display_name: str