Debian Codegraph @

dns/GetMainDomainName.go

raw symbols SCIP
1 package dns
2
3 import "github.com/denverdino/aliyungo/common"
4
5 type GetMainDomainNameArgs struct {
6 InputString string
7 }
8
9 type GetMainDomainNameResponse struct {
10 common.Response
11 InstanceId string
12 DomainName string
13 RR string
14 DomainLevel int32
15 }
16
17 // GetMainDomainName
18 //
19 // You can read doc at https://docs.aliyun.com/#/pub/dns/api-reference/domain-related&GetMainDomainName
20 func (client *Client) GetMainDomainName(args *GetMainDomainNameArgs) (response *GetMainDomainNameResponse, err error) {
21 action := "GetMainDomainName"
22 response = &GetMainDomainNameResponse{}
23 err = client.Invoke(action, args, response)
24 if err == nil {
25 return response, nil
26 } else {
27 return nil, err
28 }
29 }