Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions netbox_dns/graphql/filters/dnssec_key_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import strawberry
import strawberry_django
from strawberry.scalars import ID
from strawberry_django import FilterLookup
from strawberry_django import StrFilterLookup

from netbox.graphql.filters import PrimaryModelFilter
from tenancy.graphql.filter_mixins import ContactFilterMixin, TenancyFilterMixin
Expand All @@ -28,7 +28,7 @@ class NetBoxDNSDNSSECKeyTemplateFilter(
TenancyFilterMixin,
PrimaryModelFilter,
):
name: FilterLookup[str] | None = strawberry_django.filter_field()
name: StrFilterLookup[str] | None = strawberry_django.filter_field()
type: (
Annotated[
"NetBoxDNSDNSSECKeyTemplateTypeEnum",
Expand Down
4 changes: 2 additions & 2 deletions netbox_dns/graphql/filters/dnssec_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import strawberry
import strawberry_django
from strawberry_django import FilterLookup
from strawberry_django import FilterLookup, StrFilterLookup

from netbox.graphql.filters import PrimaryModelFilter
from tenancy.graphql.filter_mixins import ContactFilterMixin, TenancyFilterMixin
Expand All @@ -26,7 +26,7 @@ class NetBoxDNSDNSSECPolicyFilter(
TenancyFilterMixin,
PrimaryModelFilter,
):
name: FilterLookup[str] | None = strawberry_django.filter_field()
name: StrFilterLookup[str] | None = strawberry_django.filter_field()
status: (
Annotated[
"NetBoxDNSDNSSECPolicyStatusEnum",
Expand Down
4 changes: 2 additions & 2 deletions netbox_dns/graphql/filters/nameserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import strawberry
import strawberry_django
from strawberry_django import FilterLookup
from strawberry_django import StrFilterLookup

from netbox.graphql.filters import PrimaryModelFilter
from tenancy.graphql.filter_mixins import ContactFilterMixin, TenancyFilterMixin
Expand All @@ -21,7 +21,7 @@ class NetBoxDNSNameServerFilter(
TenancyFilterMixin,
PrimaryModelFilter,
):
name: FilterLookup[str] | None = strawberry_django.filter_field()
name: StrFilterLookup[str] | None = strawberry_django.filter_field()
zones: (
Annotated["NetBoxDNSZoneFilter", strawberry.lazy("netbox_dns.graphql.filters")]
| None
Expand Down
10 changes: 5 additions & 5 deletions netbox_dns/graphql/filters/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import strawberry
import strawberry_django
from strawberry.scalars import ID
from strawberry_django import FilterLookup
from strawberry_django import FilterLookup, StrFilterLookup

from netbox.graphql.filters import PrimaryModelFilter
from tenancy.graphql.filter_mixins import ContactFilterMixin, TenancyFilterMixin
Expand All @@ -29,8 +29,8 @@ class NetBoxDNSRecordFilter(
TenancyFilterMixin,
PrimaryModelFilter,
):
name: FilterLookup[str] | None = strawberry_django.filter_field()
fqdn: FilterLookup[str] | None = strawberry_django.filter_field()
name: StrFilterLookup[str] | None = strawberry_django.filter_field()
fqdn: StrFilterLookup[str] | None = strawberry_django.filter_field()
view: (
Annotated["NetBoxDNSViewFilter", strawberry.lazy("netbox_dns.graphql.filters")]
| None
Expand All @@ -51,7 +51,7 @@ class NetBoxDNSRecordFilter(
Annotated["IntegerLookup", strawberry.lazy("netbox.graphql.filter_lookups")]
| None
) = strawberry_django.filter_field()
value: FilterLookup[str] | None = strawberry_django.filter_field()
value: StrFilterLookup[str] | None = strawberry_django.filter_field()
disable_ptr: FilterLookup[bool] | None = strawberry_django.filter_field()
status: (
Annotated[
Expand Down Expand Up @@ -85,5 +85,5 @@ class NetBoxDNSRecordFilter(
) = strawberry_django.filter_field()
ipam_ip_address_id: ID | None = strawberry_django.filter_field()

ip_address: FilterLookup[str] | None = strawberry_django.filter_field()
ip_address: StrFilterLookup[str] | None = strawberry_django.filter_field()
active: FilterLookup[bool] | None = strawberry_django.filter_field()
8 changes: 4 additions & 4 deletions netbox_dns/graphql/filters/record_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import strawberry
import strawberry_django
from strawberry_django import FilterLookup
from strawberry_django import FilterLookup, StrFilterLookup

from netbox.graphql.filters import PrimaryModelFilter
from tenancy.graphql.filter_mixins import ContactFilterMixin, TenancyFilterMixin
Expand All @@ -25,8 +25,8 @@ class NetBoxDNSRecordTemplateFilter(
TenancyFilterMixin,
PrimaryModelFilter,
):
name: FilterLookup[str] | None = strawberry_django.filter_field()
record_name: FilterLookup[str] | None = strawberry_django.filter_field()
name: StrFilterLookup[str] | None = strawberry_django.filter_field()
record_name: StrFilterLookup[str] | None = strawberry_django.filter_field()
type: (
Annotated[
"NetBoxDNSRecordTypeEnum", strawberry.lazy("netbox_dns.graphql.enums")
Expand All @@ -43,7 +43,7 @@ class NetBoxDNSRecordTemplateFilter(
Annotated["IntegerLookup", strawberry.lazy("netbox.graphql.filter_lookups")]
| None
) = strawberry_django.filter_field()
value: FilterLookup[str] | None = strawberry_django.filter_field()
value: StrFilterLookup[str] | None = strawberry_django.filter_field()
disable_ptr: FilterLookup[bool] | None = strawberry_django.filter_field()

zone_templates: (
Expand Down
14 changes: 7 additions & 7 deletions netbox_dns/graphql/filters/registrar.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import strawberry
import strawberry_django
from strawberry_django import FilterLookup
from strawberry_django import StrFilterLookup

from netbox.graphql.filters import PrimaryModelFilter

Expand All @@ -16,13 +16,13 @@

@strawberry_django.filter_type(Registrar, lookups=True)
class NetBoxDNSRegistrarFilter(PrimaryModelFilter):
name: FilterLookup[str] | None = strawberry_django.filter_field()
name: StrFilterLookup[str] | None = strawberry_django.filter_field()
iana_id: (
Annotated["IntegerLookup", strawberry.lazy("netbox.graphql.filter_lookups")]
| None
) = strawberry_django.filter_field()
address: FilterLookup[str] | None = strawberry_django.filter_field()
referral_url: FilterLookup[str] | None = strawberry_django.filter_field()
whois_server: FilterLookup[str] | None = strawberry_django.filter_field()
abuse_email: FilterLookup[str] | None = strawberry_django.filter_field()
abuse_phone: FilterLookup[str] | None = strawberry_django.filter_field()
address: StrFilterLookup[str] | None = strawberry_django.filter_field()
referral_url: StrFilterLookup[str] | None = strawberry_django.filter_field()
whois_server: StrFilterLookup[str] | None = strawberry_django.filter_field()
abuse_email: StrFilterLookup[str] | None = strawberry_django.filter_field()
abuse_phone: StrFilterLookup[str] | None = strawberry_django.filter_field()
28 changes: 14 additions & 14 deletions netbox_dns/graphql/filters/registration_contact.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import strawberry_django
from strawberry_django import FilterLookup
from strawberry_django import StrFilterLookup

from netbox.graphql.filters import PrimaryModelFilter

Expand All @@ -10,16 +10,16 @@

@strawberry_django.filter_type(RegistrationContact, lookups=True)
class NetBoxDNSRegistrationContactFilter(PrimaryModelFilter):
name: FilterLookup[str] | None = strawberry_django.filter_field()
contact_id: FilterLookup[str] | None = strawberry_django.filter_field()
organization: FilterLookup[str] | None = strawberry_django.filter_field()
street: FilterLookup[str] | None = strawberry_django.filter_field()
city: FilterLookup[str] | None = strawberry_django.filter_field()
state_province: FilterLookup[str] | None = strawberry_django.filter_field()
postal_code: FilterLookup[str] | None = strawberry_django.filter_field()
country: FilterLookup[str] | None = strawberry_django.filter_field()
phone: FilterLookup[str] | None = strawberry_django.filter_field()
phone_ext: FilterLookup[str] | None = strawberry_django.filter_field()
fax: FilterLookup[str] | None = strawberry_django.filter_field()
fax_ext: FilterLookup[str] | None = strawberry_django.filter_field()
email: FilterLookup[str] | None = strawberry_django.filter_field()
name: StrFilterLookup[str] | None = strawberry_django.filter_field()
contact_id: StrFilterLookup[str] | None = strawberry_django.filter_field()
organization: StrFilterLookup[str] | None = strawberry_django.filter_field()
street: StrFilterLookup[str] | None = strawberry_django.filter_field()
city: StrFilterLookup[str] | None = strawberry_django.filter_field()
state_province: StrFilterLookup[str] | None = strawberry_django.filter_field()
postal_code: StrFilterLookup[str] | None = strawberry_django.filter_field()
country: StrFilterLookup[str] | None = strawberry_django.filter_field()
phone: StrFilterLookup[str] | None = strawberry_django.filter_field()
phone_ext: StrFilterLookup[str] | None = strawberry_django.filter_field()
fax: StrFilterLookup[str] | None = strawberry_django.filter_field()
fax_ext: StrFilterLookup[str] | None = strawberry_django.filter_field()
email: StrFilterLookup[str] | None = strawberry_django.filter_field()
4 changes: 2 additions & 2 deletions netbox_dns/graphql/filters/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import strawberry
import strawberry_django
from strawberry_django import FilterLookup
from strawberry_django import FilterLookup, StrFilterLookup

from netbox.graphql.filters import PrimaryModelFilter
from tenancy.graphql.filter_mixins import ContactFilterMixin, TenancyFilterMixin
Expand All @@ -21,7 +21,7 @@ class NetBoxDNSViewFilter(
TenancyFilterMixin,
PrimaryModelFilter,
):
name: FilterLookup[str] | None = strawberry_django.filter_field()
name: StrFilterLookup[str] | None = strawberry_django.filter_field()
default_view: FilterLookup[bool] | None = strawberry_django.filter_field()
prefixes: (
Annotated["PrefixFilter", strawberry.lazy("ipam.graphql.filters")] | None
Expand Down
12 changes: 6 additions & 6 deletions netbox_dns/graphql/filters/zone.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import strawberry
import strawberry_django
from strawberry.scalars import ID
from strawberry_django import FilterLookup
from strawberry_django import FilterLookup, StrFilterLookup

from netbox.graphql.filters import PrimaryModelFilter
from tenancy.graphql.filter_mixins import ContactFilterMixin, TenancyFilterMixin
Expand All @@ -28,7 +28,7 @@ class NetBoxDNSZoneFilter(
TenancyFilterMixin,
PrimaryModelFilter,
):
name: FilterLookup[str] | None = strawberry_django.filter_field()
name: StrFilterLookup[str] | None = strawberry_django.filter_field()
view: (
Annotated["NetBoxDNSViewFilter", strawberry.lazy("netbox_dns.graphql.filters")]
| None
Expand Down Expand Up @@ -62,7 +62,7 @@ class NetBoxDNSZoneFilter(
| None
) = strawberry_django.filter_field()
soa_mname_id: ID | None = strawberry_django.filter_field()
soa_rname: FilterLookup[str] | None = strawberry_django.filter_field()
soa_rname: StrFilterLookup[str] | None = strawberry_django.filter_field()
soa_serial: (
Annotated["IntegerLookup", strawberry.lazy("netbox.graphql.filter_lookups")]
| None
Expand Down Expand Up @@ -99,7 +99,7 @@ class NetBoxDNSZoneFilter(
| None
)
registrar_id: ID | None = strawberry_django.filter_field()
registry_domain_id: FilterLookup[str] | None = strawberry_django.filter_field()
registry_domain_id: StrFilterLookup[str] | None = strawberry_django.filter_field()
registrant: (
Annotated[
"NetBoxDNSRegistrationContactFilter",
Expand Down Expand Up @@ -133,13 +133,13 @@ class NetBoxDNSZoneFilter(
)
billing_c_id: ID | None = strawberry_django.filter_field()

rfc2317_prefix: FilterLookup[str] | None = strawberry_django.filter_field()
rfc2317_prefix: StrFilterLookup[str] | None = strawberry_django.filter_field()
rfc2317_parent_zone: (
Annotated["NetBoxDNSZoneFilter", strawberry.lazy("netbox_dns.graphql.filters")]
| None
) = strawberry_django.filter_field()
rfc2317_parent_zone_id: ID | None = strawberry_django.filter_field()
rfc2317_parent_managed: FilterLookup[bool] | None = strawberry_django.filter_field()

arpa_network: FilterLookup[str] | None = strawberry_django.filter_field()
arpa_network: StrFilterLookup[str] | None = strawberry_django.filter_field()
active: FilterLookup[bool] | None = strawberry_django.filter_field()
6 changes: 3 additions & 3 deletions netbox_dns/graphql/filters/zone_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import strawberry
import strawberry_django
from strawberry.scalars import ID
from strawberry_django import FilterLookup
from strawberry_django import StrFilterLookup

from netbox.graphql.filters import PrimaryModelFilter
from tenancy.graphql.filter_mixins import ContactFilterMixin, TenancyFilterMixin
Expand All @@ -26,7 +26,7 @@ class NetBoxDNSZoneTemplateFilter(
TenancyFilterMixin,
PrimaryModelFilter,
):
name: FilterLookup[str] | None = strawberry_django.filter_field()
name: StrFilterLookup[str] | None = strawberry_django.filter_field()
nameservers: (
Annotated[
"NetBoxDNSNameServerFilter", strawberry.lazy("netbox_dns.graphql.filters")
Expand All @@ -47,7 +47,7 @@ class NetBoxDNSZoneTemplateFilter(
| None
) = strawberry_django.filter_field()
soa_mname_id: ID | None = strawberry_django.filter_field()
soa_rname: FilterLookup[str] | None = strawberry_django.filter_field()
soa_rname: StrFilterLookup[str] | None = strawberry_django.filter_field()

registrar: (
Annotated[
Expand Down