forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gandi-livedns.d.ts
42 lines (38 loc) · 909 Bytes
/
gandi-livedns.d.ts
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
// Type definitions for Gandi LiveDNS
// Project: http://doc.livedns.gandi.net/
// Definitions by: Xavier Stouder <https://github.com/xstoudi/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface Zone {
uuid: string;
name: string;
primary_ns: string;
apex_alias: string;
email: string;
serial: number;
refresh: number;
retry: number;
expire: number;
minimum: number;
}
interface ZoneRecord {
rrset_name: string;
/**
* One of A, AAA, CNAME, MX, NS, TXT, WKS, SRV, LOC, SPF, SSHFP, DNAME
*/
rrset_type: string;
rrset_ttl: number;
rrset_values: string[];
}
interface Domain {
fqdn: string;
zone_uuid: string;
}
interface Snapshot {
serial: number;
zone_uuid: string;
/**
* Can be used as a date with "new Date(change_time);"
*/
change_time: string;
zone_data: ZoneRecord[];
}