ZoneListGet.go raw

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