@@ -22,6 +22,8 @@ type UserAttributes struct {
22
22
Handle * string `json:"handle,omitempty"`
23
23
// URL of the user's icon.
24
24
Icon * string `json:"icon,omitempty"`
25
+ // If user has MFA enabled.
26
+ MfaEnabled * bool `json:"mfa_enabled,omitempty"`
25
27
// Time that the user was last modified.
26
28
ModifiedAt * time.Time `json:"modified_at,omitempty"`
27
29
// Name of the user.
@@ -196,6 +198,34 @@ func (o *UserAttributes) SetIcon(v string) {
196
198
o .Icon = & v
197
199
}
198
200
201
+ // GetMfaEnabled returns the MfaEnabled field value if set, zero value otherwise.
202
+ func (o * UserAttributes ) GetMfaEnabled () bool {
203
+ if o == nil || o .MfaEnabled == nil {
204
+ var ret bool
205
+ return ret
206
+ }
207
+ return * o .MfaEnabled
208
+ }
209
+
210
+ // GetMfaEnabledOk returns a tuple with the MfaEnabled field value if set, nil otherwise
211
+ // and a boolean to check if the value has been set.
212
+ func (o * UserAttributes ) GetMfaEnabledOk () (* bool , bool ) {
213
+ if o == nil || o .MfaEnabled == nil {
214
+ return nil , false
215
+ }
216
+ return o .MfaEnabled , true
217
+ }
218
+
219
+ // HasMfaEnabled returns a boolean if a field has been set.
220
+ func (o * UserAttributes ) HasMfaEnabled () bool {
221
+ return o != nil && o .MfaEnabled != nil
222
+ }
223
+
224
+ // SetMfaEnabled gets a reference to the given bool and assigns it to the MfaEnabled field.
225
+ func (o * UserAttributes ) SetMfaEnabled (v bool ) {
226
+ o .MfaEnabled = & v
227
+ }
228
+
199
229
// GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise.
200
230
func (o * UserAttributes ) GetModifiedAt () time.Time {
201
231
if o == nil || o .ModifiedAt == nil {
@@ -411,6 +441,9 @@ func (o UserAttributes) MarshalJSON() ([]byte, error) {
411
441
if o .Icon != nil {
412
442
toSerialize ["icon" ] = o .Icon
413
443
}
444
+ if o .MfaEnabled != nil {
445
+ toSerialize ["mfa_enabled" ] = o .MfaEnabled
446
+ }
414
447
if o .ModifiedAt != nil {
415
448
if o .ModifiedAt .Nanosecond () == 0 {
416
449
toSerialize ["modified_at" ] = o .ModifiedAt .Format ("2006-01-02T15:04:05Z07:00" )
@@ -448,6 +481,7 @@ func (o *UserAttributes) UnmarshalJSON(bytes []byte) (err error) {
448
481
Email * string `json:"email,omitempty"`
449
482
Handle * string `json:"handle,omitempty"`
450
483
Icon * string `json:"icon,omitempty"`
484
+ MfaEnabled * bool `json:"mfa_enabled,omitempty"`
451
485
ModifiedAt * time.Time `json:"modified_at,omitempty"`
452
486
Name datadog.NullableString `json:"name,omitempty"`
453
487
ServiceAccount * bool `json:"service_account,omitempty"`
@@ -460,7 +494,7 @@ func (o *UserAttributes) UnmarshalJSON(bytes []byte) (err error) {
460
494
}
461
495
additionalProperties := make (map [string ]interface {})
462
496
if err = datadog .Unmarshal (bytes , & additionalProperties ); err == nil {
463
- datadog .DeleteKeys (additionalProperties , & []string {"created_at" , "disabled" , "email" , "handle" , "icon" , "modified_at" , "name" , "service_account" , "status" , "title" , "verified" })
497
+ datadog .DeleteKeys (additionalProperties , & []string {"created_at" , "disabled" , "email" , "handle" , "icon" , "mfa_enabled" , " modified_at" , "name" , "service_account" , "status" , "title" , "verified" })
464
498
} else {
465
499
return err
466
500
}
@@ -469,6 +503,7 @@ func (o *UserAttributes) UnmarshalJSON(bytes []byte) (err error) {
469
503
o .Email = all .Email
470
504
o .Handle = all .Handle
471
505
o .Icon = all .Icon
506
+ o .MfaEnabled = all .MfaEnabled
472
507
o .ModifiedAt = all .ModifiedAt
473
508
o .Name = all .Name
474
509
o .ServiceAccount = all .ServiceAccount
0 commit comments