lemur/lemur/dns_providers/schemas.py

28 lines
758 B
Python
Raw Normal View History

2018-06-30 00:24:31 +02:00
from marshmallow import fields
2018-04-12 00:56:00 +02:00
from lemur.common.fields import ArrowDateTime
2018-04-27 20:18:41 +02:00
from lemur.common.schema import LemurInputSchema, LemurOutputSchema
2018-04-12 00:56:00 +02:00
class DnsProvidersNestedOutputSchema(LemurOutputSchema):
__envelope__ = False
id = fields.Integer()
name = fields.String()
2018-05-08 00:14:32 +02:00
providerType = fields.String()
description = fields.String()
2018-04-12 00:56:00 +02:00
credentials = fields.String()
api_endpoint = fields.String()
date_created = ArrowDateTime()
2018-04-27 20:18:41 +02:00
class DnsProvidersNestedInputSchema(LemurInputSchema):
__envelope__ = False
name = fields.String()
description = fields.String()
provider_type = fields.Dict()
dns_provider_output_schema = DnsProvidersNestedOutputSchema()
dns_provider_input_schema = DnsProvidersNestedInputSchema()