AddDomainGroup.go 689 B

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