traefik/vendor/github.com/iij/doapi/protocol/Commit.go

45 lines
820 B
Go
Raw Normal View History

2018-09-14 08:06:03 +00:00
package protocol
import (
"reflect"
)
// Commit
type Commit struct {
DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
}
// URI /{{.DoServiceCode}}/commit.json
func (t Commit) URI() string {
return "/{{.DoServiceCode}}/commit.json"
}
// APIName Commit
func (t Commit) APIName() string {
return "Commit"
}
// Method PUT
func (t Commit) Method() string {
return "PUT"
}
// http://manual.iij.jp/dns/doapi/754632.html
func (t Commit) Document() string {
return "http://manual.iij.jp/dns/doapi/754632.html"
}
// JPName PUT Commit
func (t Commit) JPName() string {
return "PUT commit"
}
func init() {
APIlist = append(APIlist, Commit{})
TypeMap["Commit"] = reflect.TypeOf(Commit{})
}
// CommitResponse PUT Commitのレスポンス
type CommitResponse struct {
*CommonResponse
}