RecordAdd.go raw
1 package protocol
2
3 import (
4 "reflect"
5 )
6
7 // RecordAdd POST record (同期)
8 // http://manual.iij.jp/dns/doapi/754517.html
9 type RecordAdd struct {
10 DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
11 ZoneName string `json:"-"` // Zone Name
12 Owner string // owner of record
13 TTL string // TTL of record
14 RecordType string // type of record
15 RData string // data of record
16 }
17
18 // URI /:GisServiceCode/fw-lbs/:IflServiceCode/filters/:IpVersion/:Direction.json
19 func (t RecordAdd) URI() string {
20 return "/{{.DoServiceCode}}/{{.ZoneName}}/record.json"
21 }
22
23 // APIName RecordAdd
24 func (t RecordAdd) APIName() string {
25 return "RecordAdd"
26 }
27
28 // Method POST
29 func (t RecordAdd) Method() string {
30 return "POST"
31 }
32
33 // http://manual.iij.jp/dns/doapi/754517.html
34 func (t RecordAdd) Document() string {
35 return "http://manual.iij.jp/dns/doapi/754517.html"
36 }
37
38 // JPName POST record
39 func (t RecordAdd) JPName() string {
40 return "POST record"
41 }
42 func init() {
43 APIlist = append(APIlist, RecordAdd{})
44 TypeMap["RecordAdd"] = reflect.TypeOf(RecordAdd{})
45 }
46
47 // RecordAddResponse POST recordのレスポンス
48 type RecordAddResponse struct {
49 *CommonResponse
50 Record ResourceRecord
51 }
52