| 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 |
|
| 20 |
|
| 21 |
|
| 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 |
} |