RecordGet.go raw

   1  package protocol
   2  
   3  import (
   4  	"reflect"
   5  )
   6  
   7  // GET records
   8  //  http://manual.iij.jp/dns/doapi/754619.html
   9  type RecordGet struct {
  10  	DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
  11  	ZoneName      string `json:"-"` // ゾーン名
  12  	RecordID      string `json:"-"` //
  13  }
  14  
  15  // URI /{{.DoServiceCode}}/{{.ZoneName}}/record/{{.RecordID}}.json
  16  func (t RecordGet) URI() string {
  17  	return "/{{.DoServiceCode}}/{{.ZoneName}}/record/{{.RecordID}}.json"
  18  }
  19  
  20  // APIName RecordGet
  21  func (t RecordGet) APIName() string {
  22  	return "RecordGet"
  23  }
  24  
  25  // Method GET
  26  func (t RecordGet) Method() string {
  27  	return "GET"
  28  }
  29  
  30  // http://manual.iij.jp/dns/doapi/754503.html
  31  func (t RecordGet) Document() string {
  32  	return "http://manual.iij.jp/dns/doapi/754503.html"
  33  }
  34  
  35  // JPName GET record
  36  func (t RecordGet) JPName() string {
  37  	return "GET record"
  38  }
  39  func init() {
  40  	APIlist = append(APIlist, RecordGet{})
  41  	TypeMap["RecordGet"] = reflect.TypeOf(RecordGet{})
  42  }
  43  
  44  // RecordGetResponse フィルタリングルール情報取得のレスポンス
  45  type RecordGetResponse struct {
  46  	*CommonResponse
  47  	Record ResourceRecord
  48  }
  49