model_nameserver.go raw
1 package model
2
3 import (
4 "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
5
6 "strings"
7 )
8
9 type Nameserver struct {
10
11 // **参数解释:** 主机名。 **取值范围:** 不涉及。
12 Hostname *string `json:"hostname,omitempty"`
13
14 // **参数解释:** 优先级。 **取值范围:** 不涉及。
15 Priority *int32 `json:"priority,omitempty"`
16 }
17
18 func (o Nameserver) String() string {
19 data, err := utils.Marshal(o)
20 if err != nil {
21 return "Nameserver struct{}"
22 }
23
24 return strings.Join([]string{"Nameserver", string(data)}, " ")
25 }
26