diff options
Diffstat (limited to 'calls.go')
-rw-r--r-- | calls.go | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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} } |