-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwsg_aaaserverquery.go
131 lines (90 loc) · 3.09 KB
/
wsg_aaaserverquery.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
package bigdog
// API Version: v9_1
import (
"errors"
"io"
)
// WSGAAAServerQueryList
//
// Definition: aaaServerQuery_aaaServerQueryList
type WSGAAAServerQueryList struct {
Extra interface{} `json:"extra,omitempty"`
FirstIndex *int `json:"firstIndex,omitempty"`
HasMore *bool `json:"hasMore,omitempty"`
List []*WSGAAAServerQueryCreateAaaServer `json:"list,omitempty"`
TotalCount *int `json:"totalCount,omitempty"`
}
type WSGAAAServerQueryListAPIResponse struct {
*RawAPIResponse
Data *WSGAAAServerQueryList
}
func newWSGAAAServerQueryListAPIResponse(src APISource, meta APIResponseMeta, body io.ReadCloser) APIResponse {
r := new(WSGAAAServerQueryListAPIResponse)
r.RawAPIResponse = newRawAPIResponse(src, meta, body).(*RawAPIResponse)
return r
}
func (r *WSGAAAServerQueryListAPIResponse) Hydrate() (interface{}, error) {
r.mu.Lock()
defer r.mu.Unlock()
if r.err != nil {
if errors.Is(r.err, ErrResponseHydrated) {
return r.Data, nil
}
return nil, r.err
}
data := new(WSGAAAServerQueryList)
if err := r.doHydrate(data); err != nil {
return nil, err
}
r.Data = data
return r.Data, nil
}
func NewWSGAAAServerQueryList() *WSGAAAServerQueryList {
m := new(WSGAAAServerQueryList)
return m
}
// WSGAAAServerQueryCreateAaaServer
//
// Definition: aaaServerQuery_createAaaServer
type WSGAAAServerQueryCreateAaaServer struct {
AdminDomainName *string `json:"adminDomainName,omitempty"`
// AuthType
// Constraints:
// - oneof:[WSG,WLAN]
AuthType *string `json:"authType,omitempty"`
CreateOn *int `json:"createOn,omitempty"`
CreatorUUID *string `json:"creatorUUID,omitempty"`
Description *string `json:"description,omitempty"`
DomainId *string `json:"domainId,omitempty"`
DomainName *string `json:"domainName,omitempty"`
EnableSecondaryRadius *int `json:"enableSecondaryRadius,omitempty"`
GlobalCatalog *bool `json:"globalCatalog,omitempty"`
Id *string `json:"id,omitempty"`
Ip *string `json:"ip,omitempty"`
Ipv6 *string `json:"ipv6,omitempty"`
IsConflict *int `json:"isConflict,omitempty"`
Key *string `json:"key,omitempty"`
ModifiedDateTime *int `json:"modifiedDateTime,omitempty"`
ModifierUsername *string `json:"modifierUsername,omitempty"`
Name *string `json:"name,omitempty"`
Port *int `json:"port,omitempty"`
RadiusIP *string `json:"radiusIP,omitempty"`
RadiusIPv6 *string `json:"radiusIPv6,omitempty"`
RadiusPort *int `json:"radiusPort,omitempty"`
RadiusRealm *string `json:"radiusRealm,omitempty"`
SecondaryRadiusIP *string `json:"secondaryRadiusIP,omitempty"`
SecondaryRadiusIPv6 *string `json:"secondaryRadiusIPv6,omitempty"`
SecondaryRadiusPort *int `json:"secondaryRadiusPort,omitempty"`
TacacsService *string `json:"tacacsService,omitempty"`
TenantUUID *string `json:"tenantUUID,omitempty"`
// Type
// Constraints:
// - oneof:[RADIUS,AD,LDAP,RADIUSAcct,TACACS]
Type *string `json:"type,omitempty"`
WindowsDomainName *string `json:"windowsDomainName,omitempty"`
ZoneUUID *string `json:"zoneUUID,omitempty"`
}
func NewWSGAAAServerQueryCreateAaaServer() *WSGAAAServerQueryCreateAaaServer {
m := new(WSGAAAServerQueryCreateAaaServer)
return m
}