-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel_authentication_execution_export_representation.go
380 lines (321 loc) · 12.4 KB
/
model_authentication_execution_export_representation.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
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
/*
Keycloak Admin REST API
This is a REST API reference for the Keycloak Admin REST API.
API version: 1.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package keycloak_admin_client
import (
"encoding/json"
)
// checks if the AuthenticationExecutionExportRepresentation type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &AuthenticationExecutionExportRepresentation{}
// AuthenticationExecutionExportRepresentation struct for AuthenticationExecutionExportRepresentation
type AuthenticationExecutionExportRepresentation struct {
AuthenticatorConfig *string `json:"authenticatorConfig,omitempty"`
Authenticator *string `json:"authenticator,omitempty"`
AuthenticatorFlow *bool `json:"authenticatorFlow,omitempty"`
Requirement *string `json:"requirement,omitempty"`
Priority *int32 `json:"priority,omitempty"`
// Deprecated
AutheticatorFlow *bool `json:"autheticatorFlow,omitempty"`
FlowAlias *string `json:"flowAlias,omitempty"`
UserSetupAllowed *bool `json:"userSetupAllowed,omitempty"`
}
// NewAuthenticationExecutionExportRepresentation instantiates a new AuthenticationExecutionExportRepresentation 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 NewAuthenticationExecutionExportRepresentation() *AuthenticationExecutionExportRepresentation {
this := AuthenticationExecutionExportRepresentation{}
return &this
}
// NewAuthenticationExecutionExportRepresentationWithDefaults instantiates a new AuthenticationExecutionExportRepresentation 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 NewAuthenticationExecutionExportRepresentationWithDefaults() *AuthenticationExecutionExportRepresentation {
this := AuthenticationExecutionExportRepresentation{}
return &this
}
// GetAuthenticatorConfig returns the AuthenticatorConfig field value if set, zero value otherwise.
func (o *AuthenticationExecutionExportRepresentation) GetAuthenticatorConfig() string {
if o == nil || IsNil(o.AuthenticatorConfig) {
var ret string
return ret
}
return *o.AuthenticatorConfig
}
// GetAuthenticatorConfigOk returns a tuple with the AuthenticatorConfig field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthenticationExecutionExportRepresentation) GetAuthenticatorConfigOk() (*string, bool) {
if o == nil || IsNil(o.AuthenticatorConfig) {
return nil, false
}
return o.AuthenticatorConfig, true
}
// HasAuthenticatorConfig returns a boolean if a field has been set.
func (o *AuthenticationExecutionExportRepresentation) HasAuthenticatorConfig() bool {
if o != nil && !IsNil(o.AuthenticatorConfig) {
return true
}
return false
}
// SetAuthenticatorConfig gets a reference to the given string and assigns it to the AuthenticatorConfig field.
func (o *AuthenticationExecutionExportRepresentation) SetAuthenticatorConfig(v string) {
o.AuthenticatorConfig = &v
}
// GetAuthenticator returns the Authenticator field value if set, zero value otherwise.
func (o *AuthenticationExecutionExportRepresentation) GetAuthenticator() string {
if o == nil || IsNil(o.Authenticator) {
var ret string
return ret
}
return *o.Authenticator
}
// GetAuthenticatorOk returns a tuple with the Authenticator field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthenticationExecutionExportRepresentation) GetAuthenticatorOk() (*string, bool) {
if o == nil || IsNil(o.Authenticator) {
return nil, false
}
return o.Authenticator, true
}
// HasAuthenticator returns a boolean if a field has been set.
func (o *AuthenticationExecutionExportRepresentation) HasAuthenticator() bool {
if o != nil && !IsNil(o.Authenticator) {
return true
}
return false
}
// SetAuthenticator gets a reference to the given string and assigns it to the Authenticator field.
func (o *AuthenticationExecutionExportRepresentation) SetAuthenticator(v string) {
o.Authenticator = &v
}
// GetAuthenticatorFlow returns the AuthenticatorFlow field value if set, zero value otherwise.
func (o *AuthenticationExecutionExportRepresentation) GetAuthenticatorFlow() bool {
if o == nil || IsNil(o.AuthenticatorFlow) {
var ret bool
return ret
}
return *o.AuthenticatorFlow
}
// GetAuthenticatorFlowOk returns a tuple with the AuthenticatorFlow field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthenticationExecutionExportRepresentation) GetAuthenticatorFlowOk() (*bool, bool) {
if o == nil || IsNil(o.AuthenticatorFlow) {
return nil, false
}
return o.AuthenticatorFlow, true
}
// HasAuthenticatorFlow returns a boolean if a field has been set.
func (o *AuthenticationExecutionExportRepresentation) HasAuthenticatorFlow() bool {
if o != nil && !IsNil(o.AuthenticatorFlow) {
return true
}
return false
}
// SetAuthenticatorFlow gets a reference to the given bool and assigns it to the AuthenticatorFlow field.
func (o *AuthenticationExecutionExportRepresentation) SetAuthenticatorFlow(v bool) {
o.AuthenticatorFlow = &v
}
// GetRequirement returns the Requirement field value if set, zero value otherwise.
func (o *AuthenticationExecutionExportRepresentation) GetRequirement() string {
if o == nil || IsNil(o.Requirement) {
var ret string
return ret
}
return *o.Requirement
}
// GetRequirementOk returns a tuple with the Requirement field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthenticationExecutionExportRepresentation) GetRequirementOk() (*string, bool) {
if o == nil || IsNil(o.Requirement) {
return nil, false
}
return o.Requirement, true
}
// HasRequirement returns a boolean if a field has been set.
func (o *AuthenticationExecutionExportRepresentation) HasRequirement() bool {
if o != nil && !IsNil(o.Requirement) {
return true
}
return false
}
// SetRequirement gets a reference to the given string and assigns it to the Requirement field.
func (o *AuthenticationExecutionExportRepresentation) SetRequirement(v string) {
o.Requirement = &v
}
// GetPriority returns the Priority field value if set, zero value otherwise.
func (o *AuthenticationExecutionExportRepresentation) GetPriority() int32 {
if o == nil || IsNil(o.Priority) {
var ret int32
return ret
}
return *o.Priority
}
// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthenticationExecutionExportRepresentation) GetPriorityOk() (*int32, bool) {
if o == nil || IsNil(o.Priority) {
return nil, false
}
return o.Priority, true
}
// HasPriority returns a boolean if a field has been set.
func (o *AuthenticationExecutionExportRepresentation) HasPriority() bool {
if o != nil && !IsNil(o.Priority) {
return true
}
return false
}
// SetPriority gets a reference to the given int32 and assigns it to the Priority field.
func (o *AuthenticationExecutionExportRepresentation) SetPriority(v int32) {
o.Priority = &v
}
// GetAutheticatorFlow returns the AutheticatorFlow field value if set, zero value otherwise.
// Deprecated
func (o *AuthenticationExecutionExportRepresentation) GetAutheticatorFlow() bool {
if o == nil || IsNil(o.AutheticatorFlow) {
var ret bool
return ret
}
return *o.AutheticatorFlow
}
// GetAutheticatorFlowOk returns a tuple with the AutheticatorFlow field value if set, nil otherwise
// and a boolean to check if the value has been set.
// Deprecated
func (o *AuthenticationExecutionExportRepresentation) GetAutheticatorFlowOk() (*bool, bool) {
if o == nil || IsNil(o.AutheticatorFlow) {
return nil, false
}
return o.AutheticatorFlow, true
}
// HasAutheticatorFlow returns a boolean if a field has been set.
func (o *AuthenticationExecutionExportRepresentation) HasAutheticatorFlow() bool {
if o != nil && !IsNil(o.AutheticatorFlow) {
return true
}
return false
}
// SetAutheticatorFlow gets a reference to the given bool and assigns it to the AutheticatorFlow field.
// Deprecated
func (o *AuthenticationExecutionExportRepresentation) SetAutheticatorFlow(v bool) {
o.AutheticatorFlow = &v
}
// GetFlowAlias returns the FlowAlias field value if set, zero value otherwise.
func (o *AuthenticationExecutionExportRepresentation) GetFlowAlias() string {
if o == nil || IsNil(o.FlowAlias) {
var ret string
return ret
}
return *o.FlowAlias
}
// GetFlowAliasOk returns a tuple with the FlowAlias field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthenticationExecutionExportRepresentation) GetFlowAliasOk() (*string, bool) {
if o == nil || IsNil(o.FlowAlias) {
return nil, false
}
return o.FlowAlias, true
}
// HasFlowAlias returns a boolean if a field has been set.
func (o *AuthenticationExecutionExportRepresentation) HasFlowAlias() bool {
if o != nil && !IsNil(o.FlowAlias) {
return true
}
return false
}
// SetFlowAlias gets a reference to the given string and assigns it to the FlowAlias field.
func (o *AuthenticationExecutionExportRepresentation) SetFlowAlias(v string) {
o.FlowAlias = &v
}
// GetUserSetupAllowed returns the UserSetupAllowed field value if set, zero value otherwise.
func (o *AuthenticationExecutionExportRepresentation) GetUserSetupAllowed() bool {
if o == nil || IsNil(o.UserSetupAllowed) {
var ret bool
return ret
}
return *o.UserSetupAllowed
}
// GetUserSetupAllowedOk returns a tuple with the UserSetupAllowed field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthenticationExecutionExportRepresentation) GetUserSetupAllowedOk() (*bool, bool) {
if o == nil || IsNil(o.UserSetupAllowed) {
return nil, false
}
return o.UserSetupAllowed, true
}
// HasUserSetupAllowed returns a boolean if a field has been set.
func (o *AuthenticationExecutionExportRepresentation) HasUserSetupAllowed() bool {
if o != nil && !IsNil(o.UserSetupAllowed) {
return true
}
return false
}
// SetUserSetupAllowed gets a reference to the given bool and assigns it to the UserSetupAllowed field.
func (o *AuthenticationExecutionExportRepresentation) SetUserSetupAllowed(v bool) {
o.UserSetupAllowed = &v
}
func (o AuthenticationExecutionExportRepresentation) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o AuthenticationExecutionExportRepresentation) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.AuthenticatorConfig) {
toSerialize["authenticatorConfig"] = o.AuthenticatorConfig
}
if !IsNil(o.Authenticator) {
toSerialize["authenticator"] = o.Authenticator
}
if !IsNil(o.AuthenticatorFlow) {
toSerialize["authenticatorFlow"] = o.AuthenticatorFlow
}
if !IsNil(o.Requirement) {
toSerialize["requirement"] = o.Requirement
}
if !IsNil(o.Priority) {
toSerialize["priority"] = o.Priority
}
if !IsNil(o.AutheticatorFlow) {
toSerialize["autheticatorFlow"] = o.AutheticatorFlow
}
if !IsNil(o.FlowAlias) {
toSerialize["flowAlias"] = o.FlowAlias
}
if !IsNil(o.UserSetupAllowed) {
toSerialize["userSetupAllowed"] = o.UserSetupAllowed
}
return toSerialize, nil
}
type NullableAuthenticationExecutionExportRepresentation struct {
value *AuthenticationExecutionExportRepresentation
isSet bool
}
func (v NullableAuthenticationExecutionExportRepresentation) Get() *AuthenticationExecutionExportRepresentation {
return v.value
}
func (v *NullableAuthenticationExecutionExportRepresentation) Set(val *AuthenticationExecutionExportRepresentation) {
v.value = val
v.isSet = true
}
func (v NullableAuthenticationExecutionExportRepresentation) IsSet() bool {
return v.isSet
}
func (v *NullableAuthenticationExecutionExportRepresentation) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAuthenticationExecutionExportRepresentation(val *AuthenticationExecutionExportRepresentation) *NullableAuthenticationExecutionExportRepresentation {
return &NullableAuthenticationExecutionExportRepresentation{value: val, isSet: true}
}
func (v NullableAuthenticationExecutionExportRepresentation) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAuthenticationExecutionExportRepresentation) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}