GetMainDomainName.go 697 B

1234567891011121314151617181920212223242526272829
  1. package dns
  2. import "github.com/denverdino/aliyungo/common"
  3. type GetMainDomainNameArgs struct {
  4. InputString string
  5. }
  6. type GetMainDomainNameResponse struct {
  7. common.Response
  8. InstanceId string
  9. DomainName string
  10. RR string
  11. DomainLevel int32
  12. }
  13. // GetMainDomainName
  14. //
  15. // You can read doc at https://docs.aliyun.com/#/pub/dns/api-reference/domain-related&GetMainDomainName
  16. func (client *Client) GetMainDomainName(args *GetMainDomainNameArgs) (response *GetMainDomainNameResponse, err error) {
  17. action := "GetMainDomainName"
  18. response = &GetMainDomainNameResponse{}
  19. err = client.Invoke(action, args, response)
  20. if err == nil {
  21. return response, nil
  22. } else {
  23. return nil, err
  24. }
  25. }