| 1 |
package dns |
| 2 |
|
| 3 |
import "github.com/denverdino/aliyungo/common" |
| 4 |
|
| 5 |
type UpdateDomainRecordArgs struct { |
| 6 |
RecordId string |
| 7 |
RR string |
| 8 |
Type string |
| 9 |
Value string |
| 10 |
|
| 11 |
|
| 12 |
TTL int32 |
| 13 |
Priority int32 |
| 14 |
Line string |
| 15 |
} |
| 16 |
|
| 17 |
type UpdateDomainRecordResponse struct { |
| 18 |
common.Response |
| 19 |
InstanceId string |
| 20 |
RecordId string |
| 21 |
} |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
func (client *Client) UpdateDomainRecord(args *UpdateDomainRecordArgs) (response *UpdateDomainRecordResponse, err error) { |
| 27 |
action := "UpdateDomainRecord" |
| 28 |
response = &UpdateDomainRecordResponse{} |
| 29 |
err = client.Invoke(action, args, response) |
| 30 |
if err == nil { |
| 31 |
return response, nil |
| 32 |
} else { |
| 33 |
return nil, err |
| 34 |
} |
| 35 |
} |