DescribeDomainRecordInfoNew.go 996 B

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