forked from TrueCloudLab/lego
Update iij version to remove CRLF (#635)
This commit is contained in:
parent
088c707d4c
commit
839b137761
9 changed files with 340 additions and 334 deletions
4
Gopkg.lock
generated
4
Gopkg.lock
generated
|
@ -223,14 +223,14 @@
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
digest = "1:fed64c975620bacb8b3e531e31974149eef07fa0c4bc99185d35c4beaa6bd98a"
|
digest = "1:c45e4f1755487478216e06437e161d56299d963282ce109555091bc4c7a57343"
|
||||||
name = "github.com/iij/doapi"
|
name = "github.com/iij/doapi"
|
||||||
packages = [
|
packages = [
|
||||||
".",
|
".",
|
||||||
"protocol",
|
"protocol",
|
||||||
]
|
]
|
||||||
pruneopts = "NUT"
|
pruneopts = "NUT"
|
||||||
revision = "afe9fa11fb27e5e8ab2dfc1675e91387aa63eaa2"
|
revision = "8803795a9b7b938fa88ddbd63a77893beee14cd8"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
digest = "1:ac6d01547ec4f7f673311b4663909269bfb8249952de3279799289467837c3cc"
|
digest = "1:ac6d01547ec4f7f673311b4663909269bfb8249952de3279799289467837c3cc"
|
||||||
|
|
16
vendor/github.com/iij/doapi/api.go
generated
vendored
16
vendor/github.com/iij/doapi/api.go
generated
vendored
|
@ -22,11 +22,11 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
HmacSHA1 = "HmacSHA1"
|
HmacSHA1 = "HmacSHA1"
|
||||||
HmacSHA256 = "HmacSHA256"
|
HmacSHA256 = "HmacSHA256"
|
||||||
SignatureVersion2 = "2"
|
SignatureVersion2 = "2"
|
||||||
APIVersion = "20140601"
|
APIVersion = "20140601"
|
||||||
EndpointJSON = "https://do.api.iij.jp/"
|
EndpointJSON = "https://do.api.iij.jp/"
|
||||||
// EndpointJSON = "http://localhost:9999/"
|
// EndpointJSON = "http://localhost:9999/"
|
||||||
TimeLayout = "2006-01-02T15:04:05Z"
|
TimeLayout = "2006-01-02T15:04:05Z"
|
||||||
PostContentType = "application/json"
|
PostContentType = "application/json"
|
||||||
|
@ -140,6 +140,9 @@ func (a API) PostSome(method string, param url.URL, body interface{}) (resp *htt
|
||||||
if body != nil {
|
if body != nil {
|
||||||
var bufb []byte
|
var bufb []byte
|
||||||
bufb, err = json.Marshal(body)
|
bufb, err = json.Marshal(body)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
if len(bufb) > 2 {
|
if len(bufb) > 2 {
|
||||||
log.Debug("call with body", method, string(bufb))
|
log.Debug("call with body", method, string(bufb))
|
||||||
buf = bytes.NewBuffer(bufb)
|
buf = bytes.NewBuffer(bufb)
|
||||||
|
@ -154,6 +157,9 @@ func (a API) PostSome(method string, param url.URL, body interface{}) (resp *htt
|
||||||
buf = bytes.NewBufferString("")
|
buf = bytes.NewBufferString("")
|
||||||
}
|
}
|
||||||
req, err := http.NewRequest(method, param.String(), buf)
|
req, err := http.NewRequest(method, param.String(), buf)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
if body != nil {
|
if body != nil {
|
||||||
req.Header.Add("content-type", PostContentType)
|
req.Header.Add("content-type", PostContentType)
|
||||||
}
|
}
|
||||||
|
|
88
vendor/github.com/iij/doapi/protocol/Commit.go
generated
vendored
88
vendor/github.com/iij/doapi/protocol/Commit.go
generated
vendored
|
@ -1,44 +1,44 @@
|
||||||
package protocol
|
package protocol
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"reflect"
|
"reflect"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Commit
|
// Commit
|
||||||
type Commit struct {
|
type Commit struct {
|
||||||
DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
|
DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
|
||||||
}
|
}
|
||||||
|
|
||||||
// URI /{{.DoServiceCode}}/commit.json
|
// URI /{{.DoServiceCode}}/commit.json
|
||||||
func (t Commit) URI() string {
|
func (t Commit) URI() string {
|
||||||
return "/{{.DoServiceCode}}/commit.json"
|
return "/{{.DoServiceCode}}/commit.json"
|
||||||
}
|
}
|
||||||
|
|
||||||
// APIName Commit
|
// APIName Commit
|
||||||
func (t Commit) APIName() string {
|
func (t Commit) APIName() string {
|
||||||
return "Commit"
|
return "Commit"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Method PUT
|
// Method PUT
|
||||||
func (t Commit) Method() string {
|
func (t Commit) Method() string {
|
||||||
return "PUT"
|
return "PUT"
|
||||||
}
|
}
|
||||||
|
|
||||||
// http://manual.iij.jp/dns/doapi/754632.html
|
// http://manual.iij.jp/dns/doapi/754632.html
|
||||||
func (t Commit) Document() string {
|
func (t Commit) Document() string {
|
||||||
return "http://manual.iij.jp/dns/doapi/754632.html"
|
return "http://manual.iij.jp/dns/doapi/754632.html"
|
||||||
}
|
}
|
||||||
|
|
||||||
// JPName PUT Commit
|
// JPName PUT Commit
|
||||||
func (t Commit) JPName() string {
|
func (t Commit) JPName() string {
|
||||||
return "PUT commit"
|
return "PUT commit"
|
||||||
}
|
}
|
||||||
func init() {
|
func init() {
|
||||||
APIlist = append(APIlist, Commit{})
|
APIlist = append(APIlist, Commit{})
|
||||||
TypeMap["Commit"] = reflect.TypeOf(Commit{})
|
TypeMap["Commit"] = reflect.TypeOf(Commit{})
|
||||||
}
|
}
|
||||||
|
|
||||||
// CommitResponse PUT Commitのレスポンス
|
// CommitResponse PUT Commitのレスポンス
|
||||||
type CommitResponse struct {
|
type CommitResponse struct {
|
||||||
*CommonResponse
|
*CommonResponse
|
||||||
}
|
}
|
||||||
|
|
102
vendor/github.com/iij/doapi/protocol/RecordAdd.go
generated
vendored
102
vendor/github.com/iij/doapi/protocol/RecordAdd.go
generated
vendored
|
@ -1,51 +1,51 @@
|
||||||
package protocol
|
package protocol
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"reflect"
|
"reflect"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RecordAdd POST record (同期)
|
// RecordAdd POST record (同期)
|
||||||
// http://manual.iij.jp/dns/doapi/754517.html
|
// http://manual.iij.jp/dns/doapi/754517.html
|
||||||
type RecordAdd struct {
|
type RecordAdd struct {
|
||||||
DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
|
DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
|
||||||
ZoneName string `json:"-"` // Zone Name
|
ZoneName string `json:"-"` // Zone Name
|
||||||
Owner string // owner of record
|
Owner string // owner of record
|
||||||
TTL string // TTL of record
|
TTL string // TTL of record
|
||||||
RecordType string // type of record
|
RecordType string // type of record
|
||||||
RData string // data of record
|
RData string // data of record
|
||||||
}
|
}
|
||||||
|
|
||||||
// URI /:GisServiceCode/fw-lbs/:IflServiceCode/filters/:IpVersion/:Direction.json
|
// URI /:GisServiceCode/fw-lbs/:IflServiceCode/filters/:IpVersion/:Direction.json
|
||||||
func (t RecordAdd) URI() string {
|
func (t RecordAdd) URI() string {
|
||||||
return "/{{.DoServiceCode}}/{{.ZoneName}}/record.json"
|
return "/{{.DoServiceCode}}/{{.ZoneName}}/record.json"
|
||||||
}
|
}
|
||||||
|
|
||||||
// APIName RecordAdd
|
// APIName RecordAdd
|
||||||
func (t RecordAdd) APIName() string {
|
func (t RecordAdd) APIName() string {
|
||||||
return "RecordAdd"
|
return "RecordAdd"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Method POST
|
// Method POST
|
||||||
func (t RecordAdd) Method() string {
|
func (t RecordAdd) Method() string {
|
||||||
return "POST"
|
return "POST"
|
||||||
}
|
}
|
||||||
|
|
||||||
// http://manual.iij.jp/dns/doapi/754517.html
|
// http://manual.iij.jp/dns/doapi/754517.html
|
||||||
func (t RecordAdd) Document() string {
|
func (t RecordAdd) Document() string {
|
||||||
return "http://manual.iij.jp/dns/doapi/754517.html"
|
return "http://manual.iij.jp/dns/doapi/754517.html"
|
||||||
}
|
}
|
||||||
|
|
||||||
// JPName POST record
|
// JPName POST record
|
||||||
func (t RecordAdd) JPName() string {
|
func (t RecordAdd) JPName() string {
|
||||||
return "POST record"
|
return "POST record"
|
||||||
}
|
}
|
||||||
func init() {
|
func init() {
|
||||||
APIlist = append(APIlist, RecordAdd{})
|
APIlist = append(APIlist, RecordAdd{})
|
||||||
TypeMap["RecordAdd"] = reflect.TypeOf(RecordAdd{})
|
TypeMap["RecordAdd"] = reflect.TypeOf(RecordAdd{})
|
||||||
}
|
}
|
||||||
|
|
||||||
// RecordAddResponse POST recordのレスポンス
|
// RecordAddResponse POST recordのレスポンス
|
||||||
type RecordAddResponse struct {
|
type RecordAddResponse struct {
|
||||||
*CommonResponse
|
*CommonResponse
|
||||||
Record ResourceRecord
|
Record ResourceRecord
|
||||||
}
|
}
|
||||||
|
|
94
vendor/github.com/iij/doapi/protocol/RecordDelete.go
generated
vendored
94
vendor/github.com/iij/doapi/protocol/RecordDelete.go
generated
vendored
|
@ -1,47 +1,47 @@
|
||||||
package protocol
|
package protocol
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"reflect"
|
"reflect"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RecordDelete DELETE record
|
// RecordDelete DELETE record
|
||||||
// http://manual.iij.jp/dns/doapi/754525.html
|
// http://manual.iij.jp/dns/doapi/754525.html
|
||||||
type RecordDelete struct {
|
type RecordDelete struct {
|
||||||
DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
|
DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
|
||||||
ZoneName string `json:"-"` // Zone Name
|
ZoneName string `json:"-"` // Zone Name
|
||||||
RecordID string `json:"-"` // Record ID
|
RecordID string `json:"-"` // Record ID
|
||||||
}
|
}
|
||||||
|
|
||||||
// URI /{{.DoServiceCode}}/{{.ZoneName}}/record/{{.RecordID}}.json
|
// URI /{{.DoServiceCode}}/{{.ZoneName}}/record/{{.RecordID}}.json
|
||||||
func (t RecordDelete) URI() string {
|
func (t RecordDelete) URI() string {
|
||||||
return "/{{.DoServiceCode}}/{{.ZoneName}}/record/{{.RecordID}}.json"
|
return "/{{.DoServiceCode}}/{{.ZoneName}}/record/{{.RecordID}}.json"
|
||||||
}
|
}
|
||||||
|
|
||||||
// APIName RecordDelete
|
// APIName RecordDelete
|
||||||
func (t RecordDelete) APIName() string {
|
func (t RecordDelete) APIName() string {
|
||||||
return "RecordDelete"
|
return "RecordDelete"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Method DELETE
|
// Method DELETE
|
||||||
func (t RecordDelete) Method() string {
|
func (t RecordDelete) Method() string {
|
||||||
return "DELETE"
|
return "DELETE"
|
||||||
}
|
}
|
||||||
|
|
||||||
// http://manual.iij.jp/dns/doapi/754525.html
|
// http://manual.iij.jp/dns/doapi/754525.html
|
||||||
func (t RecordDelete) Document() string {
|
func (t RecordDelete) Document() string {
|
||||||
return "http://manual.iij.jp/dns/doapi/754525.html"
|
return "http://manual.iij.jp/dns/doapi/754525.html"
|
||||||
}
|
}
|
||||||
|
|
||||||
// JPName DELETE record
|
// JPName DELETE record
|
||||||
func (t RecordDelete) JPName() string {
|
func (t RecordDelete) JPName() string {
|
||||||
return "DELETE record"
|
return "DELETE record"
|
||||||
}
|
}
|
||||||
func init() {
|
func init() {
|
||||||
APIlist = append(APIlist, RecordDelete{})
|
APIlist = append(APIlist, RecordDelete{})
|
||||||
TypeMap["RecordDelete"] = reflect.TypeOf(RecordDelete{})
|
TypeMap["RecordDelete"] = reflect.TypeOf(RecordDelete{})
|
||||||
}
|
}
|
||||||
|
|
||||||
// RecordDeleteResponse DELETE recordのレスポンス
|
// RecordDeleteResponse DELETE recordのレスポンス
|
||||||
type RecordDeleteResponse struct {
|
type RecordDeleteResponse struct {
|
||||||
*CommonResponse
|
*CommonResponse
|
||||||
}
|
}
|
||||||
|
|
96
vendor/github.com/iij/doapi/protocol/RecordGet.go
generated
vendored
96
vendor/github.com/iij/doapi/protocol/RecordGet.go
generated
vendored
|
@ -1,48 +1,48 @@
|
||||||
package protocol
|
package protocol
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"reflect"
|
"reflect"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GET records
|
// GET records
|
||||||
// http://manual.iij.jp/dns/doapi/754619.html
|
// http://manual.iij.jp/dns/doapi/754619.html
|
||||||
type RecordGet struct {
|
type RecordGet struct {
|
||||||
DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
|
DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
|
||||||
ZoneName string `json:"-"` // ゾーン名
|
ZoneName string `json:"-"` // ゾーン名
|
||||||
RecordID string `json:"-"` //
|
RecordID string `json:"-"` //
|
||||||
}
|
}
|
||||||
|
|
||||||
// URI /{{.DoServiceCode}}/{{.ZoneName}}/record/{{.RecordID}}.json
|
// URI /{{.DoServiceCode}}/{{.ZoneName}}/record/{{.RecordID}}.json
|
||||||
func (t RecordGet) URI() string {
|
func (t RecordGet) URI() string {
|
||||||
return "/{{.DoServiceCode}}/{{.ZoneName}}/record/{{.RecordID}}.json"
|
return "/{{.DoServiceCode}}/{{.ZoneName}}/record/{{.RecordID}}.json"
|
||||||
}
|
}
|
||||||
|
|
||||||
// APIName RecordGet
|
// APIName RecordGet
|
||||||
func (t RecordGet) APIName() string {
|
func (t RecordGet) APIName() string {
|
||||||
return "RecordGet"
|
return "RecordGet"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Method GET
|
// Method GET
|
||||||
func (t RecordGet) Method() string {
|
func (t RecordGet) Method() string {
|
||||||
return "GET"
|
return "GET"
|
||||||
}
|
}
|
||||||
|
|
||||||
// http://manual.iij.jp/dns/doapi/754503.html
|
// http://manual.iij.jp/dns/doapi/754503.html
|
||||||
func (t RecordGet) Document() string {
|
func (t RecordGet) Document() string {
|
||||||
return "http://manual.iij.jp/dns/doapi/754503.html"
|
return "http://manual.iij.jp/dns/doapi/754503.html"
|
||||||
}
|
}
|
||||||
|
|
||||||
// JPName GET record
|
// JPName GET record
|
||||||
func (t RecordGet) JPName() string {
|
func (t RecordGet) JPName() string {
|
||||||
return "GET record"
|
return "GET record"
|
||||||
}
|
}
|
||||||
func init() {
|
func init() {
|
||||||
APIlist = append(APIlist, RecordGet{})
|
APIlist = append(APIlist, RecordGet{})
|
||||||
TypeMap["RecordGet"] = reflect.TypeOf(RecordGet{})
|
TypeMap["RecordGet"] = reflect.TypeOf(RecordGet{})
|
||||||
}
|
}
|
||||||
|
|
||||||
// RecordGetResponse フィルタリングルール情報取得のレスポンス
|
// RecordGetResponse フィルタリングルール情報取得のレスポンス
|
||||||
type RecordGetResponse struct {
|
type RecordGetResponse struct {
|
||||||
*CommonResponse
|
*CommonResponse
|
||||||
Record ResourceRecord
|
Record ResourceRecord
|
||||||
}
|
}
|
||||||
|
|
94
vendor/github.com/iij/doapi/protocol/RecordListGet.go
generated
vendored
94
vendor/github.com/iij/doapi/protocol/RecordListGet.go
generated
vendored
|
@ -1,47 +1,47 @@
|
||||||
package protocol
|
package protocol
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"reflect"
|
"reflect"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GET records
|
// GET records
|
||||||
type RecordListGet struct {
|
type RecordListGet struct {
|
||||||
DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
|
DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
|
||||||
ZoneName string `json:"-"` // ゾーン名
|
ZoneName string `json:"-"` // ゾーン名
|
||||||
}
|
}
|
||||||
|
|
||||||
// URI /{{.DoServiceCode}}/{{.ZoneName}}/records/DETAIL.json
|
// URI /{{.DoServiceCode}}/{{.ZoneName}}/records/DETAIL.json
|
||||||
func (t RecordListGet) URI() string {
|
func (t RecordListGet) URI() string {
|
||||||
return "/{{.DoServiceCode}}/{{.ZoneName}}/records/DETAIL.json"
|
return "/{{.DoServiceCode}}/{{.ZoneName}}/records/DETAIL.json"
|
||||||
}
|
}
|
||||||
|
|
||||||
// APIName RecordListGet
|
// APIName RecordListGet
|
||||||
func (t RecordListGet) APIName() string {
|
func (t RecordListGet) APIName() string {
|
||||||
return "RecordListGet"
|
return "RecordListGet"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Method GET
|
// Method GET
|
||||||
func (t RecordListGet) Method() string {
|
func (t RecordListGet) Method() string {
|
||||||
return "GET"
|
return "GET"
|
||||||
}
|
}
|
||||||
|
|
||||||
// http://manual.iij.jp/dns/doapi/754619.html
|
// http://manual.iij.jp/dns/doapi/754619.html
|
||||||
func (t RecordListGet) Document() string {
|
func (t RecordListGet) Document() string {
|
||||||
return "http://manual.iij.jp/dns/doapi/754619.html"
|
return "http://manual.iij.jp/dns/doapi/754619.html"
|
||||||
}
|
}
|
||||||
|
|
||||||
// JPName GET records
|
// JPName GET records
|
||||||
func (t RecordListGet) JPName() string {
|
func (t RecordListGet) JPName() string {
|
||||||
return "GET records"
|
return "GET records"
|
||||||
}
|
}
|
||||||
func init() {
|
func init() {
|
||||||
APIlist = append(APIlist, RecordListGet{})
|
APIlist = append(APIlist, RecordListGet{})
|
||||||
TypeMap["RecordListGet"] = reflect.TypeOf(RecordListGet{})
|
TypeMap["RecordListGet"] = reflect.TypeOf(RecordListGet{})
|
||||||
}
|
}
|
||||||
|
|
||||||
// RecordListGetResponse GET recordsのレスポンス
|
// RecordListGetResponse GET recordsのレスポンス
|
||||||
type RecordListGetResponse struct {
|
type RecordListGetResponse struct {
|
||||||
*CommonResponse
|
*CommonResponse
|
||||||
RecordList []ResourceRecord
|
RecordList []ResourceRecord
|
||||||
StaticRecordList []ResourceRecord
|
StaticRecordList []ResourceRecord
|
||||||
}
|
}
|
||||||
|
|
90
vendor/github.com/iij/doapi/protocol/Reset.go
generated
vendored
90
vendor/github.com/iij/doapi/protocol/Reset.go
generated
vendored
|
@ -1,45 +1,45 @@
|
||||||
package protocol
|
package protocol
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"reflect"
|
"reflect"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Reset PUT reset (同期)
|
// Reset PUT reset (同期)
|
||||||
type Reset struct {
|
type Reset struct {
|
||||||
DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
|
DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
|
||||||
ZoneName string `json:"-"` // Zone name
|
ZoneName string `json:"-"` // Zone name
|
||||||
}
|
}
|
||||||
|
|
||||||
// URI /{{.DoServiceCode}}/{{.ZoneName}}/reset.json
|
// URI /{{.DoServiceCode}}/{{.ZoneName}}/reset.json
|
||||||
func (t Reset) URI() string {
|
func (t Reset) URI() string {
|
||||||
return "/{{.DoServiceCode}}/{{.ZoneName}}/reset.json"
|
return "/{{.DoServiceCode}}/{{.ZoneName}}/reset.json"
|
||||||
}
|
}
|
||||||
|
|
||||||
// APIName Reset
|
// APIName Reset
|
||||||
func (t Reset) APIName() string {
|
func (t Reset) APIName() string {
|
||||||
return "Reset"
|
return "Reset"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Method PUT
|
// Method PUT
|
||||||
func (t Reset) Method() string {
|
func (t Reset) Method() string {
|
||||||
return "PUT"
|
return "PUT"
|
||||||
}
|
}
|
||||||
|
|
||||||
// http://manual.iij.jp/dns/doapi/754610.html
|
// http://manual.iij.jp/dns/doapi/754610.html
|
||||||
func (t Reset) Document() string {
|
func (t Reset) Document() string {
|
||||||
return "http://manual.iij.jp/dns/doapi/754610.html"
|
return "http://manual.iij.jp/dns/doapi/754610.html"
|
||||||
}
|
}
|
||||||
|
|
||||||
// JPName PUT reset
|
// JPName PUT reset
|
||||||
func (t Reset) JPName() string {
|
func (t Reset) JPName() string {
|
||||||
return "PUT Reset"
|
return "PUT Reset"
|
||||||
}
|
}
|
||||||
func init() {
|
func init() {
|
||||||
APIlist = append(APIlist, Reset{})
|
APIlist = append(APIlist, Reset{})
|
||||||
TypeMap["Reset"] = reflect.TypeOf(Reset{})
|
TypeMap["Reset"] = reflect.TypeOf(Reset{})
|
||||||
}
|
}
|
||||||
|
|
||||||
// ResetResponse PUT resetのレスポンス
|
// ResetResponse PUT resetのレスポンス
|
||||||
type ResetResponse struct {
|
type ResetResponse struct {
|
||||||
*CommonResponse
|
*CommonResponse
|
||||||
}
|
}
|
||||||
|
|
90
vendor/github.com/iij/doapi/protocol/ZoneListGet.go
generated
vendored
90
vendor/github.com/iij/doapi/protocol/ZoneListGet.go
generated
vendored
|
@ -1,45 +1,45 @@
|
||||||
package protocol
|
package protocol
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"reflect"
|
"reflect"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GET zones
|
// GET zones
|
||||||
type ZoneListGet struct {
|
type ZoneListGet struct {
|
||||||
DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
|
DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
|
||||||
}
|
}
|
||||||
|
|
||||||
// URI /{{.DoServiceCode}}/zones.json
|
// URI /{{.DoServiceCode}}/zones.json
|
||||||
func (t ZoneListGet) URI() string {
|
func (t ZoneListGet) URI() string {
|
||||||
return "/{{.DoServiceCode}}/zones.json"
|
return "/{{.DoServiceCode}}/zones.json"
|
||||||
}
|
}
|
||||||
|
|
||||||
// APIName ZoneListGet
|
// APIName ZoneListGet
|
||||||
func (t ZoneListGet) APIName() string {
|
func (t ZoneListGet) APIName() string {
|
||||||
return "ZoneListGet"
|
return "ZoneListGet"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Method GET
|
// Method GET
|
||||||
func (t ZoneListGet) Method() string {
|
func (t ZoneListGet) Method() string {
|
||||||
return "GET"
|
return "GET"
|
||||||
}
|
}
|
||||||
|
|
||||||
// http://manual.iij.jp/dns/doapi/754466.html
|
// http://manual.iij.jp/dns/doapi/754466.html
|
||||||
func (t ZoneListGet) Document() string {
|
func (t ZoneListGet) Document() string {
|
||||||
return "http://manual.iij.jp/dns/doapi/754466.html"
|
return "http://manual.iij.jp/dns/doapi/754466.html"
|
||||||
}
|
}
|
||||||
|
|
||||||
// JPName GET zones
|
// JPName GET zones
|
||||||
func (t ZoneListGet) JPName() string {
|
func (t ZoneListGet) JPName() string {
|
||||||
return "GET zones"
|
return "GET zones"
|
||||||
}
|
}
|
||||||
func init() {
|
func init() {
|
||||||
APIlist = append(APIlist, ZoneListGet{})
|
APIlist = append(APIlist, ZoneListGet{})
|
||||||
TypeMap["ZoneListGet"] = reflect.TypeOf(ZoneListGet{})
|
TypeMap["ZoneListGet"] = reflect.TypeOf(ZoneListGet{})
|
||||||
}
|
}
|
||||||
|
|
||||||
// ZoneListGetResponse GET zonesのレスポンス
|
// ZoneListGetResponse GET zonesのレスポンス
|
||||||
type ZoneListGetResponse struct {
|
type ZoneListGetResponse struct {
|
||||||
*CommonResponse
|
*CommonResponse
|
||||||
ZoneList []string
|
ZoneList []string
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue