|
6 | 6 |
|
7 | 7 | import strawberry
|
8 | 8 | import strawberry_django
|
9 |
| -from netbox.graphql.types import OrganizationalObjectType |
| 9 | +from netbox.graphql.types import NetBoxObjectType |
10 | 10 |
|
11 | 11 | from .. import models
|
12 | 12 | from . import filters
|
|
18 | 18 | exclude=["assigned_object_type", "assigned_object_id"],
|
19 | 19 | filters=filters.AccessListFilter,
|
20 | 20 | )
|
21 |
| -class AccessListType(OrganizationalObjectType): |
| 21 | +class AccessListType(NetBoxObjectType): |
22 | 22 | """
|
23 | 23 | Defines the object type for the django model AccessList.
|
24 | 24 | """
|
@@ -48,7 +48,7 @@ def accesslists(self) -> List[Annotated["AccessList", strawberry.lazy("accesslis
|
48 | 48 | exclude=["assigned_object_type", "assigned_object_id"],
|
49 | 49 | filters=filters.ACLInterfaceAssignmentFilter,
|
50 | 50 | )
|
51 |
| -class ACLInterfaceAssignmentType(OrganizationalObjectType): |
| 51 | +class ACLInterfaceAssignmentType(NetBoxObjectType): |
52 | 52 | """
|
53 | 53 | Defines the object type for the django model AccessList.
|
54 | 54 | """
|
@@ -80,7 +80,7 @@ def aclinterfaceassignments(
|
80 | 80 | fields="__all__",
|
81 | 81 | filters=filters.ACLExtendedRuleFilter,
|
82 | 82 | )
|
83 |
| -class ACLExtendedRuleType(OrganizationalObjectType): |
| 83 | +class ACLExtendedRuleType(NetBoxObjectType): |
84 | 84 | """
|
85 | 85 | Defines the object type for the django model ACLExtendedRule.
|
86 | 86 | """
|
@@ -108,7 +108,7 @@ def aclextendedrules(
|
108 | 108 | fields="__all__",
|
109 | 109 | filters=filters.ACLStandardRuleFilter,
|
110 | 110 | )
|
111 |
| -class ACLStandardRuleType(OrganizationalObjectType): |
| 111 | +class ACLStandardRuleType(NetBoxObjectType): |
112 | 112 | """
|
113 | 113 | Defines the object type for the django model ACLStandardRule.
|
114 | 114 | """
|
|
0 commit comments