-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodel_authentication_execution_info_representation.go
More file actions
556 lines (472 loc) · 17.2 KB
/
model_authentication_execution_info_representation.go
File metadata and controls
556 lines (472 loc) · 17.2 KB
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
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
/*
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 openapi
import (
"encoding/json"
)
// checks if the AuthenticationExecutionInfoRepresentation type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &AuthenticationExecutionInfoRepresentation{}
// AuthenticationExecutionInfoRepresentation struct for AuthenticationExecutionInfoRepresentation
type AuthenticationExecutionInfoRepresentation struct {
Id *string `json:"id,omitempty"`
Requirement *string `json:"requirement,omitempty"`
DisplayName *string `json:"displayName,omitempty"`
Alias *string `json:"alias,omitempty"`
Description *string `json:"description,omitempty"`
RequirementChoices []string `json:"requirementChoices,omitempty"`
Configurable *bool `json:"configurable,omitempty"`
AuthenticationFlow *bool `json:"authenticationFlow,omitempty"`
ProviderId *string `json:"providerId,omitempty"`
AuthenticationConfig *string `json:"authenticationConfig,omitempty"`
FlowId *string `json:"flowId,omitempty"`
Level *int32 `json:"level,omitempty"`
Index *int32 `json:"index,omitempty"`
}
// NewAuthenticationExecutionInfoRepresentation instantiates a new AuthenticationExecutionInfoRepresentation 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 NewAuthenticationExecutionInfoRepresentation() *AuthenticationExecutionInfoRepresentation {
this := AuthenticationExecutionInfoRepresentation{}
return &this
}
// NewAuthenticationExecutionInfoRepresentationWithDefaults instantiates a new AuthenticationExecutionInfoRepresentation 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 NewAuthenticationExecutionInfoRepresentationWithDefaults() *AuthenticationExecutionInfoRepresentation {
this := AuthenticationExecutionInfoRepresentation{}
return &this
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *AuthenticationExecutionInfoRepresentation) GetId() string {
if o == nil || IsNil(o.Id) {
var ret string
return ret
}
return *o.Id
}
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthenticationExecutionInfoRepresentation) GetIdOk() (*string, bool) {
if o == nil || IsNil(o.Id) {
return nil, false
}
return o.Id, true
}
// HasId returns a boolean if a field has been set.
func (o *AuthenticationExecutionInfoRepresentation) HasId() bool {
if o != nil && !IsNil(o.Id) {
return true
}
return false
}
// SetId gets a reference to the given string and assigns it to the Id field.
func (o *AuthenticationExecutionInfoRepresentation) SetId(v string) {
o.Id = &v
}
// GetRequirement returns the Requirement field value if set, zero value otherwise.
func (o *AuthenticationExecutionInfoRepresentation) 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 *AuthenticationExecutionInfoRepresentation) 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 *AuthenticationExecutionInfoRepresentation) 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 *AuthenticationExecutionInfoRepresentation) SetRequirement(v string) {
o.Requirement = &v
}
// GetDisplayName returns the DisplayName field value if set, zero value otherwise.
func (o *AuthenticationExecutionInfoRepresentation) GetDisplayName() string {
if o == nil || IsNil(o.DisplayName) {
var ret string
return ret
}
return *o.DisplayName
}
// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthenticationExecutionInfoRepresentation) GetDisplayNameOk() (*string, bool) {
if o == nil || IsNil(o.DisplayName) {
return nil, false
}
return o.DisplayName, true
}
// HasDisplayName returns a boolean if a field has been set.
func (o *AuthenticationExecutionInfoRepresentation) HasDisplayName() bool {
if o != nil && !IsNil(o.DisplayName) {
return true
}
return false
}
// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
func (o *AuthenticationExecutionInfoRepresentation) SetDisplayName(v string) {
o.DisplayName = &v
}
// GetAlias returns the Alias field value if set, zero value otherwise.
func (o *AuthenticationExecutionInfoRepresentation) GetAlias() string {
if o == nil || IsNil(o.Alias) {
var ret string
return ret
}
return *o.Alias
}
// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthenticationExecutionInfoRepresentation) GetAliasOk() (*string, bool) {
if o == nil || IsNil(o.Alias) {
return nil, false
}
return o.Alias, true
}
// HasAlias returns a boolean if a field has been set.
func (o *AuthenticationExecutionInfoRepresentation) HasAlias() bool {
if o != nil && !IsNil(o.Alias) {
return true
}
return false
}
// SetAlias gets a reference to the given string and assigns it to the Alias field.
func (o *AuthenticationExecutionInfoRepresentation) SetAlias(v string) {
o.Alias = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *AuthenticationExecutionInfoRepresentation) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
}
return *o.Description
}
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthenticationExecutionInfoRepresentation) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
return o.Description, true
}
// HasDescription returns a boolean if a field has been set.
func (o *AuthenticationExecutionInfoRepresentation) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
return false
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *AuthenticationExecutionInfoRepresentation) SetDescription(v string) {
o.Description = &v
}
// GetRequirementChoices returns the RequirementChoices field value if set, zero value otherwise.
func (o *AuthenticationExecutionInfoRepresentation) GetRequirementChoices() []string {
if o == nil || IsNil(o.RequirementChoices) {
var ret []string
return ret
}
return o.RequirementChoices
}
// GetRequirementChoicesOk returns a tuple with the RequirementChoices field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthenticationExecutionInfoRepresentation) GetRequirementChoicesOk() ([]string, bool) {
if o == nil || IsNil(o.RequirementChoices) {
return nil, false
}
return o.RequirementChoices, true
}
// HasRequirementChoices returns a boolean if a field has been set.
func (o *AuthenticationExecutionInfoRepresentation) HasRequirementChoices() bool {
if o != nil && !IsNil(o.RequirementChoices) {
return true
}
return false
}
// SetRequirementChoices gets a reference to the given []string and assigns it to the RequirementChoices field.
func (o *AuthenticationExecutionInfoRepresentation) SetRequirementChoices(v []string) {
o.RequirementChoices = v
}
// GetConfigurable returns the Configurable field value if set, zero value otherwise.
func (o *AuthenticationExecutionInfoRepresentation) GetConfigurable() bool {
if o == nil || IsNil(o.Configurable) {
var ret bool
return ret
}
return *o.Configurable
}
// GetConfigurableOk returns a tuple with the Configurable field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthenticationExecutionInfoRepresentation) GetConfigurableOk() (*bool, bool) {
if o == nil || IsNil(o.Configurable) {
return nil, false
}
return o.Configurable, true
}
// HasConfigurable returns a boolean if a field has been set.
func (o *AuthenticationExecutionInfoRepresentation) HasConfigurable() bool {
if o != nil && !IsNil(o.Configurable) {
return true
}
return false
}
// SetConfigurable gets a reference to the given bool and assigns it to the Configurable field.
func (o *AuthenticationExecutionInfoRepresentation) SetConfigurable(v bool) {
o.Configurable = &v
}
// GetAuthenticationFlow returns the AuthenticationFlow field value if set, zero value otherwise.
func (o *AuthenticationExecutionInfoRepresentation) GetAuthenticationFlow() bool {
if o == nil || IsNil(o.AuthenticationFlow) {
var ret bool
return ret
}
return *o.AuthenticationFlow
}
// GetAuthenticationFlowOk returns a tuple with the AuthenticationFlow field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthenticationExecutionInfoRepresentation) GetAuthenticationFlowOk() (*bool, bool) {
if o == nil || IsNil(o.AuthenticationFlow) {
return nil, false
}
return o.AuthenticationFlow, true
}
// HasAuthenticationFlow returns a boolean if a field has been set.
func (o *AuthenticationExecutionInfoRepresentation) HasAuthenticationFlow() bool {
if o != nil && !IsNil(o.AuthenticationFlow) {
return true
}
return false
}
// SetAuthenticationFlow gets a reference to the given bool and assigns it to the AuthenticationFlow field.
func (o *AuthenticationExecutionInfoRepresentation) SetAuthenticationFlow(v bool) {
o.AuthenticationFlow = &v
}
// GetProviderId returns the ProviderId field value if set, zero value otherwise.
func (o *AuthenticationExecutionInfoRepresentation) GetProviderId() string {
if o == nil || IsNil(o.ProviderId) {
var ret string
return ret
}
return *o.ProviderId
}
// GetProviderIdOk returns a tuple with the ProviderId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthenticationExecutionInfoRepresentation) GetProviderIdOk() (*string, bool) {
if o == nil || IsNil(o.ProviderId) {
return nil, false
}
return o.ProviderId, true
}
// HasProviderId returns a boolean if a field has been set.
func (o *AuthenticationExecutionInfoRepresentation) HasProviderId() bool {
if o != nil && !IsNil(o.ProviderId) {
return true
}
return false
}
// SetProviderId gets a reference to the given string and assigns it to the ProviderId field.
func (o *AuthenticationExecutionInfoRepresentation) SetProviderId(v string) {
o.ProviderId = &v
}
// GetAuthenticationConfig returns the AuthenticationConfig field value if set, zero value otherwise.
func (o *AuthenticationExecutionInfoRepresentation) GetAuthenticationConfig() string {
if o == nil || IsNil(o.AuthenticationConfig) {
var ret string
return ret
}
return *o.AuthenticationConfig
}
// GetAuthenticationConfigOk returns a tuple with the AuthenticationConfig field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthenticationExecutionInfoRepresentation) GetAuthenticationConfigOk() (*string, bool) {
if o == nil || IsNil(o.AuthenticationConfig) {
return nil, false
}
return o.AuthenticationConfig, true
}
// HasAuthenticationConfig returns a boolean if a field has been set.
func (o *AuthenticationExecutionInfoRepresentation) HasAuthenticationConfig() bool {
if o != nil && !IsNil(o.AuthenticationConfig) {
return true
}
return false
}
// SetAuthenticationConfig gets a reference to the given string and assigns it to the AuthenticationConfig field.
func (o *AuthenticationExecutionInfoRepresentation) SetAuthenticationConfig(v string) {
o.AuthenticationConfig = &v
}
// GetFlowId returns the FlowId field value if set, zero value otherwise.
func (o *AuthenticationExecutionInfoRepresentation) GetFlowId() string {
if o == nil || IsNil(o.FlowId) {
var ret string
return ret
}
return *o.FlowId
}
// GetFlowIdOk returns a tuple with the FlowId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthenticationExecutionInfoRepresentation) GetFlowIdOk() (*string, bool) {
if o == nil || IsNil(o.FlowId) {
return nil, false
}
return o.FlowId, true
}
// HasFlowId returns a boolean if a field has been set.
func (o *AuthenticationExecutionInfoRepresentation) HasFlowId() bool {
if o != nil && !IsNil(o.FlowId) {
return true
}
return false
}
// SetFlowId gets a reference to the given string and assigns it to the FlowId field.
func (o *AuthenticationExecutionInfoRepresentation) SetFlowId(v string) {
o.FlowId = &v
}
// GetLevel returns the Level field value if set, zero value otherwise.
func (o *AuthenticationExecutionInfoRepresentation) GetLevel() int32 {
if o == nil || IsNil(o.Level) {
var ret int32
return ret
}
return *o.Level
}
// GetLevelOk returns a tuple with the Level field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthenticationExecutionInfoRepresentation) GetLevelOk() (*int32, bool) {
if o == nil || IsNil(o.Level) {
return nil, false
}
return o.Level, true
}
// HasLevel returns a boolean if a field has been set.
func (o *AuthenticationExecutionInfoRepresentation) HasLevel() bool {
if o != nil && !IsNil(o.Level) {
return true
}
return false
}
// SetLevel gets a reference to the given int32 and assigns it to the Level field.
func (o *AuthenticationExecutionInfoRepresentation) SetLevel(v int32) {
o.Level = &v
}
// GetIndex returns the Index field value if set, zero value otherwise.
func (o *AuthenticationExecutionInfoRepresentation) GetIndex() int32 {
if o == nil || IsNil(o.Index) {
var ret int32
return ret
}
return *o.Index
}
// GetIndexOk returns a tuple with the Index field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthenticationExecutionInfoRepresentation) GetIndexOk() (*int32, bool) {
if o == nil || IsNil(o.Index) {
return nil, false
}
return o.Index, true
}
// HasIndex returns a boolean if a field has been set.
func (o *AuthenticationExecutionInfoRepresentation) HasIndex() bool {
if o != nil && !IsNil(o.Index) {
return true
}
return false
}
// SetIndex gets a reference to the given int32 and assigns it to the Index field.
func (o *AuthenticationExecutionInfoRepresentation) SetIndex(v int32) {
o.Index = &v
}
func (o AuthenticationExecutionInfoRepresentation) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o AuthenticationExecutionInfoRepresentation) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Id) {
toSerialize["id"] = o.Id
}
if !IsNil(o.Requirement) {
toSerialize["requirement"] = o.Requirement
}
if !IsNil(o.DisplayName) {
toSerialize["displayName"] = o.DisplayName
}
if !IsNil(o.Alias) {
toSerialize["alias"] = o.Alias
}
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
if !IsNil(o.RequirementChoices) {
toSerialize["requirementChoices"] = o.RequirementChoices
}
if !IsNil(o.Configurable) {
toSerialize["configurable"] = o.Configurable
}
if !IsNil(o.AuthenticationFlow) {
toSerialize["authenticationFlow"] = o.AuthenticationFlow
}
if !IsNil(o.ProviderId) {
toSerialize["providerId"] = o.ProviderId
}
if !IsNil(o.AuthenticationConfig) {
toSerialize["authenticationConfig"] = o.AuthenticationConfig
}
if !IsNil(o.FlowId) {
toSerialize["flowId"] = o.FlowId
}
if !IsNil(o.Level) {
toSerialize["level"] = o.Level
}
if !IsNil(o.Index) {
toSerialize["index"] = o.Index
}
return toSerialize, nil
}
type NullableAuthenticationExecutionInfoRepresentation struct {
value *AuthenticationExecutionInfoRepresentation
isSet bool
}
func (v NullableAuthenticationExecutionInfoRepresentation) Get() *AuthenticationExecutionInfoRepresentation {
return v.value
}
func (v *NullableAuthenticationExecutionInfoRepresentation) Set(val *AuthenticationExecutionInfoRepresentation) {
v.value = val
v.isSet = true
}
func (v NullableAuthenticationExecutionInfoRepresentation) IsSet() bool {
return v.isSet
}
func (v *NullableAuthenticationExecutionInfoRepresentation) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAuthenticationExecutionInfoRepresentation(val *AuthenticationExecutionInfoRepresentation) *NullableAuthenticationExecutionInfoRepresentation {
return &NullableAuthenticationExecutionInfoRepresentation{value: val, isSet: true}
}
func (v NullableAuthenticationExecutionInfoRepresentation) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAuthenticationExecutionInfoRepresentation) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}