aboutsummaryrefslogtreecommitdiff
path: root/calls.go
diff options
context:
space:
mode:
Diffstat (limited to 'calls.go')
-rw-r--r--calls.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/calls.go b/calls.go
index 0664d92..a9f7464 100644
--- a/calls.go
+++ b/calls.go
@@ -13,3 +13,23 @@ type logoutCall struct{}
func (c *logoutCall) method() string { return "account.logout" }
func (c *logoutCall) expectedStatus() []Status { return []Status{SuccessClosing} }
+
+// A NSUpdateRecordsCall updates one or more DNS records.
+type NSUpdateRecordsCall struct {
+ IDs []int `json:"id"`
+ Name string `json:"name,omitempty"`
+ Type RecordType `json:"type,omitempty"`
+ Content string `json:"content,omitempty"`
+ Priority int `json:"prio,omitempty"`
+ TTL int `json:"ttl,omitempty"`
+ URLRedirectType RecordURLRedirectType `json:"urlRedirectType,omitempty"`
+ URLRedirectTitle string `json:"urlRedirectTitle,omitempty"`
+ URLRedirectDesc string `json:"urlRedirectDescription,omitempty"`
+ URLRedirectFavIcon string `json:"urlRedirectFavIcon,omitempty"`
+ URLRedirectKeywords string `json:"urlRedirectKeywords,omitempty"`
+ URLAppend bool `json:"urlAppend,omitempty"`
+ TestingMode bool `json:"testing,omitempty"`
+}
+
+func (c *NSUpdateRecordsCall) method() string { return "nameserver.updateRecord" }
+func (c *NSUpdateRecordsCall) expectedStatus() []Status { return []Status{Success} }