-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmodel_ad_domain_monitor_info_v3.go
299 lines (252 loc) · 9.06 KB
/
model_ad_domain_monitor_info_v3.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
/*
Horizon Server API
Welcome to the Horizon Server API Reference documentation. This API reference provides comprehensive information about status of all Horizon Server components and resources. <br> Choose Latest spec from dropdown to view API reference on latest version available.
API version: 2111
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package gohorizon
import (
"encoding/json"
)
// ADDomainMonitorInfoV3 Monitoring information related to AD Domain.
type ADDomainMonitorInfoV3 struct {
// Information about the AD Domain connections from each of the connection servers.
ConnectionServers *[]ADDomainMonitorConnectionServerV2 `json:"connection_servers,omitempty"`
// The DNS name for the domain.
DnsName *string `json:"dns_name,omitempty"`
// AD Domain Type. * CONNECTION_SERVER_DOMAIN: The domain having trust with connection server domain. * NO_TRUST_DOMAIN: The domain not having any trust with connection server domain.
DomainType *string `json:"domain_type,omitempty"`
// The NetBIOS name for the domain.
NetbiosName *string `json:"netbios_name,omitempty"`
// If this is an NT4 domain or not.
Nt4Domain *bool `json:"nt4_domain,omitempty"`
// Service accounts for the domain.
ServiceAccounts *[]ServiceAccount `json:"service_accounts,omitempty"`
}
// NewADDomainMonitorInfoV3 instantiates a new ADDomainMonitorInfoV3 object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewADDomainMonitorInfoV3() *ADDomainMonitorInfoV3 {
this := ADDomainMonitorInfoV3{}
return &this
}
// NewADDomainMonitorInfoV3WithDefaults instantiates a new ADDomainMonitorInfoV3 object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewADDomainMonitorInfoV3WithDefaults() *ADDomainMonitorInfoV3 {
this := ADDomainMonitorInfoV3{}
return &this
}
// GetConnectionServers returns the ConnectionServers field value if set, zero value otherwise.
func (o *ADDomainMonitorInfoV3) GetConnectionServers() []ADDomainMonitorConnectionServerV2 {
if o == nil || o.ConnectionServers == nil {
var ret []ADDomainMonitorConnectionServerV2
return ret
}
return *o.ConnectionServers
}
// GetConnectionServersOk returns a tuple with the ConnectionServers field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ADDomainMonitorInfoV3) GetConnectionServersOk() (*[]ADDomainMonitorConnectionServerV2, bool) {
if o == nil || o.ConnectionServers == nil {
return nil, false
}
return o.ConnectionServers, true
}
// HasConnectionServers returns a boolean if a field has been set.
func (o *ADDomainMonitorInfoV3) HasConnectionServers() bool {
if o != nil && o.ConnectionServers != nil {
return true
}
return false
}
// SetConnectionServers gets a reference to the given []ADDomainMonitorConnectionServerV2 and assigns it to the ConnectionServers field.
func (o *ADDomainMonitorInfoV3) SetConnectionServers(v []ADDomainMonitorConnectionServerV2) {
o.ConnectionServers = &v
}
// GetDnsName returns the DnsName field value if set, zero value otherwise.
func (o *ADDomainMonitorInfoV3) GetDnsName() string {
if o == nil || o.DnsName == nil {
var ret string
return ret
}
return *o.DnsName
}
// GetDnsNameOk returns a tuple with the DnsName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ADDomainMonitorInfoV3) GetDnsNameOk() (*string, bool) {
if o == nil || o.DnsName == nil {
return nil, false
}
return o.DnsName, true
}
// HasDnsName returns a boolean if a field has been set.
func (o *ADDomainMonitorInfoV3) HasDnsName() bool {
if o != nil && o.DnsName != nil {
return true
}
return false
}
// SetDnsName gets a reference to the given string and assigns it to the DnsName field.
func (o *ADDomainMonitorInfoV3) SetDnsName(v string) {
o.DnsName = &v
}
// GetDomainType returns the DomainType field value if set, zero value otherwise.
func (o *ADDomainMonitorInfoV3) GetDomainType() string {
if o == nil || o.DomainType == nil {
var ret string
return ret
}
return *o.DomainType
}
// GetDomainTypeOk returns a tuple with the DomainType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ADDomainMonitorInfoV3) GetDomainTypeOk() (*string, bool) {
if o == nil || o.DomainType == nil {
return nil, false
}
return o.DomainType, true
}
// HasDomainType returns a boolean if a field has been set.
func (o *ADDomainMonitorInfoV3) HasDomainType() bool {
if o != nil && o.DomainType != nil {
return true
}
return false
}
// SetDomainType gets a reference to the given string and assigns it to the DomainType field.
func (o *ADDomainMonitorInfoV3) SetDomainType(v string) {
o.DomainType = &v
}
// GetNetbiosName returns the NetbiosName field value if set, zero value otherwise.
func (o *ADDomainMonitorInfoV3) GetNetbiosName() string {
if o == nil || o.NetbiosName == nil {
var ret string
return ret
}
return *o.NetbiosName
}
// GetNetbiosNameOk returns a tuple with the NetbiosName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ADDomainMonitorInfoV3) GetNetbiosNameOk() (*string, bool) {
if o == nil || o.NetbiosName == nil {
return nil, false
}
return o.NetbiosName, true
}
// HasNetbiosName returns a boolean if a field has been set.
func (o *ADDomainMonitorInfoV3) HasNetbiosName() bool {
if o != nil && o.NetbiosName != nil {
return true
}
return false
}
// SetNetbiosName gets a reference to the given string and assigns it to the NetbiosName field.
func (o *ADDomainMonitorInfoV3) SetNetbiosName(v string) {
o.NetbiosName = &v
}
// GetNt4Domain returns the Nt4Domain field value if set, zero value otherwise.
func (o *ADDomainMonitorInfoV3) GetNt4Domain() bool {
if o == nil || o.Nt4Domain == nil {
var ret bool
return ret
}
return *o.Nt4Domain
}
// GetNt4DomainOk returns a tuple with the Nt4Domain field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ADDomainMonitorInfoV3) GetNt4DomainOk() (*bool, bool) {
if o == nil || o.Nt4Domain == nil {
return nil, false
}
return o.Nt4Domain, true
}
// HasNt4Domain returns a boolean if a field has been set.
func (o *ADDomainMonitorInfoV3) HasNt4Domain() bool {
if o != nil && o.Nt4Domain != nil {
return true
}
return false
}
// SetNt4Domain gets a reference to the given bool and assigns it to the Nt4Domain field.
func (o *ADDomainMonitorInfoV3) SetNt4Domain(v bool) {
o.Nt4Domain = &v
}
// GetServiceAccounts returns the ServiceAccounts field value if set, zero value otherwise.
func (o *ADDomainMonitorInfoV3) GetServiceAccounts() []ServiceAccount {
if o == nil || o.ServiceAccounts == nil {
var ret []ServiceAccount
return ret
}
return *o.ServiceAccounts
}
// GetServiceAccountsOk returns a tuple with the ServiceAccounts field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ADDomainMonitorInfoV3) GetServiceAccountsOk() (*[]ServiceAccount, bool) {
if o == nil || o.ServiceAccounts == nil {
return nil, false
}
return o.ServiceAccounts, true
}
// HasServiceAccounts returns a boolean if a field has been set.
func (o *ADDomainMonitorInfoV3) HasServiceAccounts() bool {
if o != nil && o.ServiceAccounts != nil {
return true
}
return false
}
// SetServiceAccounts gets a reference to the given []ServiceAccount and assigns it to the ServiceAccounts field.
func (o *ADDomainMonitorInfoV3) SetServiceAccounts(v []ServiceAccount) {
o.ServiceAccounts = &v
}
func (o ADDomainMonitorInfoV3) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.ConnectionServers != nil {
toSerialize["connection_servers"] = o.ConnectionServers
}
if o.DnsName != nil {
toSerialize["dns_name"] = o.DnsName
}
if o.DomainType != nil {
toSerialize["domain_type"] = o.DomainType
}
if o.NetbiosName != nil {
toSerialize["netbios_name"] = o.NetbiosName
}
if o.Nt4Domain != nil {
toSerialize["nt4_domain"] = o.Nt4Domain
}
if o.ServiceAccounts != nil {
toSerialize["service_accounts"] = o.ServiceAccounts
}
return json.Marshal(toSerialize)
}
type NullableADDomainMonitorInfoV3 struct {
value *ADDomainMonitorInfoV3
isSet bool
}
func (v NullableADDomainMonitorInfoV3) Get() *ADDomainMonitorInfoV3 {
return v.value
}
func (v *NullableADDomainMonitorInfoV3) Set(val *ADDomainMonitorInfoV3) {
v.value = val
v.isSet = true
}
func (v NullableADDomainMonitorInfoV3) IsSet() bool {
return v.isSet
}
func (v *NullableADDomainMonitorInfoV3) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableADDomainMonitorInfoV3(val *ADDomainMonitorInfoV3) *NullableADDomainMonitorInfoV3 {
return &NullableADDomainMonitorInfoV3{value: val, isSet: true}
}
func (v NullableADDomainMonitorInfoV3) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableADDomainMonitorInfoV3) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}