| 1 |
package dns |
| 2 |
|
| 3 |
import ( |
| 4 |
"log" |
| 5 |
|
| 6 |
"github.com/denverdino/aliyungo/common" |
| 7 |
) |
| 8 |
|
| 9 |
type DeleteDomainGroupArgs struct { |
| 10 |
GroupId string |
| 11 |
} |
| 12 |
|
| 13 |
type DeleteDomainGroupResponse struct { |
| 14 |
common.Response |
| 15 |
GroupName string |
| 16 |
} |
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
func (client *Client) DeleteDomainGroup(args *DeleteDomainGroupArgs) (response *DeleteDomainGroupResponse, err error) { |
| 22 |
action := "DeleteDomainGroup" |
| 23 |
response = &DeleteDomainGroupResponse{} |
| 24 |
err = client.Invoke(action, args, response) |
| 25 |
if err == nil { |
| 26 |
return response, nil |
| 27 |
} else { |
| 28 |
log.Printf("%s error, %v", action, err) |
| 29 |
return response, err |
| 30 |
} |
| 31 |
} |