UpdateDomainGroup.go 731 B

123456789101112131415161718192021222324252627282930313233
  1. package dns
  2. import (
  3. "log"
  4. "github.com/denverdino/aliyungo/common"
  5. )
  6. type UpdateDomainGroupArgs struct {
  7. GroupId string
  8. GroupName string
  9. }
  10. type UpdateDomainGroupResponse struct {
  11. common.Response
  12. GroupId string
  13. GroupName string
  14. }
  15. // UpdateDomainGroup
  16. //
  17. // You can read doc at https://help.aliyun.com/document_detail/29763.html?spm=5176.doc29762.6.605.iFRKjn
  18. func (client *Client) UpdateDomainGroup(args *UpdateDomainGroupArgs) (response *UpdateDomainGroupResponse, err error) {
  19. action := "UpdateDomainGroup"
  20. response = &UpdateDomainGroupResponse{}
  21. err = client.Invoke(action, args, response)
  22. if err == nil {
  23. return response, nil
  24. } else {
  25. log.Printf("%s error, %v", action, err)
  26. return response, err
  27. }
  28. }