DescribeDomainRecordInfoNew.go 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package dns
  2. import (
  3. "encoding/json"
  4. "github.com/denverdino/aliyungo/common"
  5. )
  6. // endpoint change to 'http://alidns.aliyuncs.com' then record ttl and priority change to string
  7. type RecordTypeNew struct {
  8. DomainName string
  9. RecordId string
  10. RR string
  11. Type string
  12. Value string
  13. TTL json.Number
  14. Line string
  15. Status string
  16. Locked bool
  17. }
  18. type DescribeDomainRecordInfoNewArgs struct {
  19. RecordId string
  20. }
  21. type DescribeDomainRecordInfoNewResponse struct {
  22. common.Response
  23. RecordTypeNew
  24. }
  25. // DescribeDomainRecordInformation
  26. //
  27. // You can read doc at https://docs.aliyun.com/#/pub/dns/api-reference/record-related&DescribeDomainRecordInfo
  28. func (client *Client) DescribeDomainRecordInfoNew(args *DescribeDomainRecordInfoNewArgs) (response *DescribeDomainRecordInfoNewResponse, err error) {
  29. action := "DescribeDomainRecordInfo"
  30. response = &DescribeDomainRecordInfoNewResponse{}
  31. err = client.Invoke(action, args, response)
  32. if err == nil {
  33. return response, nil
  34. } else {
  35. return nil, err
  36. }
  37. }