RecordDelete.go raw
1 package protocol
2
3 import (
4 "reflect"
5 )
6
7 // RecordDelete DELETE record
8 // http://manual.iij.jp/dns/doapi/754525.html
9 type RecordDelete struct {
10 DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
11 ZoneName string `json:"-"` // Zone Name
12 RecordID string `json:"-"` // Record ID
13 }
14
15 // URI /{{.DoServiceCode}}/{{.ZoneName}}/record/{{.RecordID}}.json
16 func (t RecordDelete) URI() string {
17 return "/{{.DoServiceCode}}/{{.ZoneName}}/record/{{.RecordID}}.json"
18 }
19
20 // APIName RecordDelete
21 func (t RecordDelete) APIName() string {
22 return "RecordDelete"
23 }
24
25 // Method DELETE
26 func (t RecordDelete) Method() string {
27 return "DELETE"
28 }
29
30 // http://manual.iij.jp/dns/doapi/754525.html
31 func (t RecordDelete) Document() string {
32 return "http://manual.iij.jp/dns/doapi/754525.html"
33 }
34
35 // JPName DELETE record
36 func (t RecordDelete) JPName() string {
37 return "DELETE record"
38 }
39 func init() {
40 APIlist = append(APIlist, RecordDelete{})
41 TypeMap["RecordDelete"] = reflect.TypeOf(RecordDelete{})
42 }
43
44 // RecordDeleteResponse DELETE recordのレスポンス
45 type RecordDeleteResponse struct {
46 *CommonResponse
47 }
48