DeleteDomain.go 657 B

12345678910111213141516171819202122232425262728293031
  1. package dns
  2. import (
  3. "log"
  4. "github.com/denverdino/aliyungo/common"
  5. )
  6. type DeleteDomainArgs struct {
  7. DomainName string
  8. }
  9. type DeleteDomainResponse struct {
  10. common.Response
  11. DomainName string
  12. }
  13. // DeleteDomain
  14. //
  15. // You can read doc at https://help.aliyun.com/document_detail/29750.html?spm=5176.doc29766.6.593.eELaZ7
  16. func (client *Client) DeleteDomain(args *DeleteDomainArgs) (response *DeleteDomainResponse, err error) {
  17. action := "DeleteDomain"
  18. response = &DeleteDomainResponse{}
  19. err = client.Invoke(action, args, response)
  20. if err == nil {
  21. return response, nil
  22. } else {
  23. log.Printf("%s error, %v", action, err)
  24. return response, err
  25. }
  26. }