28 lines
758 B
Python
28 lines
758 B
Python
from marshmallow import fields
|
|
|
|
from lemur.common.fields import ArrowDateTime
|
|
from lemur.common.schema import LemurInputSchema, LemurOutputSchema
|
|
|
|
|
|
class DnsProvidersNestedOutputSchema(LemurOutputSchema):
|
|
__envelope__ = False
|
|
id = fields.Integer()
|
|
name = fields.String()
|
|
providerType = fields.String()
|
|
description = fields.String()
|
|
credentials = fields.String()
|
|
api_endpoint = fields.String()
|
|
date_created = ArrowDateTime()
|
|
|
|
|
|
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()
|