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()
|
2020-09-29 14:36:31 +02:00
|
|
|
provider_type = fields.String()
|
2018-04-20 23:49:54 +02:00
|
|
|
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()
|