Skip to content

Commit 76caae1

Browse files
committed
19724 change from old to V1
1 parent 26c91f0 commit 76caae1

File tree

11 files changed

+30
-30
lines changed

11 files changed

+30
-30
lines changed

netbox/circuits/graphql/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
@strawberry.type(name="Query")
11-
class CircuitsQueryOld:
11+
class CircuitsQueryV1:
1212
circuit: CircuitType = strawberry_django.field()
1313
circuit_list: List[CircuitType] = strawberry_django.field()
1414

netbox/core/graphql/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
@strawberry.type(name="Query")
11-
class CoreQueryOld:
11+
class CoreQueryV1:
1212
data_file: DataFileType = strawberry_django.field()
1313
data_file_list: List[DataFileType] = strawberry_django.field()
1414

netbox/dcim/graphql/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
@strawberry.type(name="Query")
11-
class DCIMQueryOld:
11+
class DCIMQueryV1:
1212
cable: CableType = strawberry_django.field()
1313
cable_list: List[CableType] = strawberry_django.field()
1414

netbox/extras/graphql/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
@strawberry.type(name="Query")
11-
class ExtrasQueryOld:
11+
class ExtrasQueryV1:
1212
config_context: ConfigContextType = strawberry_django.field()
1313
config_context_list: List[ConfigContextType] = strawberry_django.field()
1414

netbox/ipam/graphql/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
@strawberry.type(name="Query")
11-
class IPAMQueryOld:
11+
class IPAMQueryV1:
1212
asn: ASNType = strawberry_django.field()
1313
asn_list: List[ASNType] = strawberry_django.field()
1414

netbox/netbox/graphql/schema.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
from strawberry.extensions import MaxAliasesLimiter
55
from strawberry.schema.config import StrawberryConfig
66

7-
from circuits.graphql.schema import CircuitsQuery, CircuitsQueryOld
8-
from core.graphql.schema import CoreQuery, CoreQueryOld
9-
from dcim.graphql.schema import DCIMQuery, DCIMQueryOld
10-
from extras.graphql.schema import ExtrasQuery, ExtrasQueryOld
11-
from ipam.graphql.schema import IPAMQuery, IPAMQueryOld
7+
from circuits.graphql.schema import CircuitsQuery, CircuitsQueryV1
8+
from core.graphql.schema import CoreQuery, CoreQueryV1
9+
from dcim.graphql.schema import DCIMQuery, DCIMQueryV1
10+
from extras.graphql.schema import ExtrasQuery, ExtrasQueryV1
11+
from ipam.graphql.schema import IPAMQuery, IPAMQueryV1
1212
from netbox.registry import registry
13-
from tenancy.graphql.schema import TenancyQuery, TenancyQueryOld
14-
from users.graphql.schema import UsersQuery, UsersQueryOld
15-
from virtualization.graphql.schema import VirtualizationQuery, VirtualizationQueryOld
16-
from vpn.graphql.schema import VPNQuery, VPNQueryOld
17-
from wireless.graphql.schema import WirelessQuery, WirelessQueryOld
13+
from tenancy.graphql.schema import TenancyQuery, TenancyQueryV1
14+
from users.graphql.schema import UsersQuery, UsersQueryV1
15+
from virtualization.graphql.schema import VirtualizationQuery, VirtualizationQueryV1
16+
from vpn.graphql.schema import VPNQuery, VPNQueryV1
17+
from wireless.graphql.schema import WirelessQuery, WirelessQueryV1
1818

1919
__all__ = (
2020
'Query',
@@ -27,16 +27,16 @@
2727

2828
@strawberry.type
2929
class QueryV1(
30-
UsersQueryOld,
31-
CircuitsQueryOld,
32-
CoreQueryOld,
33-
DCIMQueryOld,
34-
ExtrasQueryOld,
35-
IPAMQueryOld,
36-
TenancyQueryOld,
37-
VirtualizationQueryOld,
38-
VPNQueryOld,
39-
WirelessQueryOld,
30+
UsersQueryV1,
31+
CircuitsQueryV1,
32+
CoreQueryV1,
33+
DCIMQueryV1,
34+
ExtrasQueryV1,
35+
IPAMQueryV1,
36+
TenancyQueryV1,
37+
VirtualizationQueryV1,
38+
VPNQueryV1,
39+
WirelessQueryV1,
4040
*registry['plugins']['graphql_schemas'], # Append plugin schemas
4141
):
4242
"""Query class for GraphQL API v1"""

netbox/tenancy/graphql/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
@strawberry.type(name="Query")
11-
class TenancyQueryOld:
11+
class TenancyQueryV1:
1212
tenant: TenantType = strawberry_django.field()
1313
tenant_list: List[TenantType] = strawberry_django.field()
1414

netbox/users/graphql/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
@strawberry.type(name="Query")
11-
class UsersQueryOld:
11+
class UsersQueryV1:
1212
group: GroupType = strawberry_django.field()
1313
group_list: List[GroupType] = strawberry_django.field()
1414

netbox/virtualization/graphql/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
@strawberry.type(name="Query")
11-
class VirtualizationQueryOld:
11+
class VirtualizationQueryV1:
1212
cluster: ClusterType = strawberry_django.field()
1313
cluster_list: List[ClusterType] = strawberry_django.field()
1414

netbox/vpn/graphql/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
@strawberry.type(name="Query")
11-
class VPNQueryOld:
11+
class VPNQueryV1:
1212
ike_policy: IKEPolicyType = strawberry_django.field()
1313
ike_policy_list: List[IKEPolicyType] = strawberry_django.field()
1414

0 commit comments

Comments
 (0)