feat: add API v2 support by adding APGroup and DNSRecord resource handling with generated code (#23)

* feat: add API v2 support by adding APGroup and DNSRecord resource handling with generated code

* fix tests
This commit is contained in:
Mateusz Filipowicz
2025-02-17 15:39:54 +01:00
committed by GitHub
parent dca894e8e7
commit aa188a6faa
14 changed files with 482 additions and 175 deletions

4
codegen/v2/APGroup.json Normal file
View File

@@ -0,0 +1,4 @@
{
"name": "",
"device_macs": [""]
}

10
codegen/v2/DNSRecord.json Normal file
View File

@@ -0,0 +1,10 @@
{
"enabled": "true|false",
"key": ".{1,256}",
"port": "^[0-9][0-9]?$|^",
"priority": "^[0-9][0-9]?$|^",
"record_type": "A|AAAA|CNAME|MX|NS|PTR|SOA|SRV|TXT",
"ttl": "^[0-9][0-9]?$|^",
"value": ".{1,256}",
"weight": "^[0-9][0-9]?$|^"
}