Debian Codegraph @

dns/AddDomainGroup.go

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