1
0

Upload files to "dnac_integration"

This commit is contained in:
2024-02-15 17:48:23 +00:00
parent b9794cdf72
commit 95bed3a0c0
5 changed files with 147 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
from graphene import ObjectType
from netbox.graphql.types import NetBoxObjectType
from netbox.graphql.fields import ObjectField, ObjectListField
from . import filtersets, models
class dnacServerType(NetBoxObjectType):
class Meta:
model = models.dnacServer
fields = '__all__'
class Query(ObjectType):
dnacServer = ObjectField(dnacServerType)
dnacServer_list = ObjectListField(dnacServerType)
schema = Query