-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzone.go
46 lines (41 loc) · 1.33 KB
/
zone.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package hetzner_dns
type Pagination struct {
Page int `json:"page"`
PerPage int `json:"per_page"`
LastPage int `json:"last_page"`
TotalEntries int `json:"total_entries"`
}
type Meta struct {
Pagination Pagination `json:"pagination"`
}
type Zone struct {
ID string `json:"id"`
Created HetznerTime `json:"created"`
Modified HetznerTime `json:"modified"`
LegacyDNSHost string `json:"legacy_dns_host"`
LegacyNs []string `json:"legacy_ns"`
Name string `json:"name"`
Ns []string `json:"ns"`
Owner string `json:"owner"`
Paused bool `json:"paused"`
Permission string `json:"permission"`
Project string `json:"project"`
Registrar string `json:"registrar"`
Status string `json:"status"`
TTL int `json:"ttl"`
Verified HetznerTime `json:"verified"`
RecordsCount int `json:"records_count"`
IsSecondaryDNS bool `json:"is_secondary_dns"`
TxtVerification struct {
Name string `json:"name"`
Token string `json:"token"`
} `json:"txt_verification"`
}
type ZonesResponse struct {
Zones []Zone `json:"zones"`
Meta Meta `json:"meta"`
}
type ZoneRequest struct {
Name string `json:"name"`
TTL int `json:"ttl"`
}