@@ -7,12 +7,16 @@ import (
7
7
type Users struct {
8
8
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
9
9
additionalData map [string ]any
10
- // Whether this email address is the primary address.
11
- primary * bool
12
- // The type of email address.
13
- typeEscaped * string
14
- // The email address.
15
- value * string
10
+ // The fragment property
11
+ fragment * string
12
+ // The matches property
13
+ matches []Users_matchesable
14
+ // The object_type property
15
+ object_type * string
16
+ // The object_url property
17
+ object_url * string
18
+ // The property property
19
+ property * string
16
20
}
17
21
// NewUsers instantiates a new Users and sets the default values.
18
22
func NewUsers ()(* Users ) {
@@ -35,69 +39,123 @@ func (m *Users) GetAdditionalData()(map[string]any) {
35
39
// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
36
40
func (m * Users ) GetFieldDeserializers ()(map [string ]func (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode )(error )) {
37
41
res := make (map [string ]func (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode )(error ))
38
- res ["primary" ] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode ) error {
39
- val , err := n .GetBoolValue ()
42
+ res ["fragment" ] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode ) error {
43
+ val , err := n .GetStringValue ()
44
+ if err != nil {
45
+ return err
46
+ }
47
+ if val != nil {
48
+ m .SetFragment (val )
49
+ }
50
+ return nil
51
+ }
52
+ res ["matches" ] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode ) error {
53
+ val , err := n .GetCollectionOfObjectValues (CreateUsers_matchesFromDiscriminatorValue )
54
+ if err != nil {
55
+ return err
56
+ }
57
+ if val != nil {
58
+ res := make ([]Users_matchesable , len (val ))
59
+ for i , v := range val {
60
+ if v != nil {
61
+ res [i ] = v .(Users_matchesable )
62
+ }
63
+ }
64
+ m .SetMatches (res )
65
+ }
66
+ return nil
67
+ }
68
+ res ["object_type" ] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode ) error {
69
+ val , err := n .GetStringValue ()
40
70
if err != nil {
41
71
return err
42
72
}
43
73
if val != nil {
44
- m .SetPrimary (val )
74
+ m .SetObjectType (val )
45
75
}
46
76
return nil
47
77
}
48
- res ["type " ] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode ) error {
78
+ res ["object_url " ] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode ) error {
49
79
val , err := n .GetStringValue ()
50
80
if err != nil {
51
81
return err
52
82
}
53
83
if val != nil {
54
- m .SetTypeEscaped (val )
84
+ m .SetObjectUrl (val )
55
85
}
56
86
return nil
57
87
}
58
- res ["value " ] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode ) error {
88
+ res ["property " ] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode ) error {
59
89
val , err := n .GetStringValue ()
60
90
if err != nil {
61
91
return err
62
92
}
63
93
if val != nil {
64
- m .SetValue (val )
94
+ m .SetProperty (val )
65
95
}
66
96
return nil
67
97
}
68
98
return res
69
99
}
70
- // GetPrimary gets the primary property value. Whether this email address is the primary address.
71
- // returns a *bool when successful
72
- func (m * Users ) GetPrimary ()(* bool ) {
73
- return m .primary
100
+ // GetFragment gets the fragment property value. The fragment property
101
+ // returns a *string when successful
102
+ func (m * Users ) GetFragment ()(* string ) {
103
+ return m .fragment
104
+ }
105
+ // GetMatches gets the matches property value. The matches property
106
+ // returns a []Users_matchesable when successful
107
+ func (m * Users ) GetMatches ()([]Users_matchesable ) {
108
+ return m .matches
109
+ }
110
+ // GetObjectType gets the object_type property value. The object_type property
111
+ // returns a *string when successful
112
+ func (m * Users ) GetObjectType ()(* string ) {
113
+ return m .object_type
74
114
}
75
- // GetTypeEscaped gets the type property value. The type of email address.
115
+ // GetObjectUrl gets the object_url property value. The object_url property
76
116
// returns a *string when successful
77
- func (m * Users ) GetTypeEscaped ()(* string ) {
78
- return m .typeEscaped
117
+ func (m * Users ) GetObjectUrl ()(* string ) {
118
+ return m .object_url
79
119
}
80
- // GetValue gets the value property value. The email address.
120
+ // GetProperty gets the property property value. The property property
81
121
// returns a *string when successful
82
- func (m * Users ) GetValue ()(* string ) {
83
- return m .value
122
+ func (m * Users ) GetProperty ()(* string ) {
123
+ return m .property
84
124
}
85
125
// Serialize serializes information the current object
86
126
func (m * Users ) Serialize (writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter )(error ) {
87
127
{
88
- err := writer .WriteBoolValue ("primary" , m .GetPrimary ())
128
+ err := writer .WriteStringValue ("fragment" , m .GetFragment ())
129
+ if err != nil {
130
+ return err
131
+ }
132
+ }
133
+ if m .GetMatches () != nil {
134
+ cast := make ([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable , len (m .GetMatches ()))
135
+ for i , v := range m .GetMatches () {
136
+ if v != nil {
137
+ cast [i ] = v .(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable )
138
+ }
139
+ }
140
+ err := writer .WriteCollectionOfObjectValues ("matches" , cast )
141
+ if err != nil {
142
+ return err
143
+ }
144
+ }
145
+ {
146
+ err := writer .WriteStringValue ("object_type" , m .GetObjectType ())
89
147
if err != nil {
90
148
return err
91
149
}
92
150
}
93
151
{
94
- err := writer .WriteStringValue ("type " , m .GetTypeEscaped ())
152
+ err := writer .WriteStringValue ("object_url " , m .GetObjectUrl ())
95
153
if err != nil {
96
154
return err
97
155
}
98
156
}
99
157
{
100
- err := writer .WriteStringValue ("value " , m .GetValue ())
158
+ err := writer .WriteStringValue ("property " , m .GetProperty ())
101
159
if err != nil {
102
160
return err
103
161
}
@@ -114,25 +172,37 @@ func (m *Users) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c4
114
172
func (m * Users ) SetAdditionalData (value map [string ]any )() {
115
173
m .additionalData = value
116
174
}
117
- // SetPrimary sets the primary property value. Whether this email address is the primary address.
118
- func (m * Users ) SetPrimary (value * bool )() {
119
- m .primary = value
175
+ // SetFragment sets the fragment property value. The fragment property
176
+ func (m * Users ) SetFragment (value * string )() {
177
+ m .fragment = value
178
+ }
179
+ // SetMatches sets the matches property value. The matches property
180
+ func (m * Users ) SetMatches (value []Users_matchesable )() {
181
+ m .matches = value
182
+ }
183
+ // SetObjectType sets the object_type property value. The object_type property
184
+ func (m * Users ) SetObjectType (value * string )() {
185
+ m .object_type = value
120
186
}
121
- // SetTypeEscaped sets the type property value. The type of email address.
122
- func (m * Users ) SetTypeEscaped (value * string )() {
123
- m .typeEscaped = value
187
+ // SetObjectUrl sets the object_url property value. The object_url property
188
+ func (m * Users ) SetObjectUrl (value * string )() {
189
+ m .object_url = value
124
190
}
125
- // SetValue sets the value property value. The email address.
126
- func (m * Users ) SetValue (value * string )() {
127
- m .value = value
191
+ // SetProperty sets the property property value. The property property
192
+ func (m * Users ) SetProperty (value * string )() {
193
+ m .property = value
128
194
}
129
195
type Usersable interface {
130
196
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
131
197
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
132
- GetPrimary ()(* bool )
133
- GetTypeEscaped ()(* string )
134
- GetValue ()(* string )
135
- SetPrimary (value * bool )()
136
- SetTypeEscaped (value * string )()
137
- SetValue (value * string )()
198
+ GetFragment ()(* string )
199
+ GetMatches ()([]Users_matchesable )
200
+ GetObjectType ()(* string )
201
+ GetObjectUrl ()(* string )
202
+ GetProperty ()(* string )
203
+ SetFragment (value * string )()
204
+ SetMatches (value []Users_matchesable )()
205
+ SetObjectType (value * string )()
206
+ SetObjectUrl (value * string )()
207
+ SetProperty (value * string )()
138
208
}
0 commit comments