@@ -38,6 +38,10 @@ class OAIIdentitySetPrivate {
38
38
OAIIdentity user;
39
39
bool user_isSet;
40
40
bool user_isValid;
41
+
42
+ OAIIdentity group;
43
+ bool group_isSet;
44
+ bool group_isValid;
41
45
};
42
46
43
47
OAIIdentitySet::OAIIdentitySet ()
@@ -73,6 +77,9 @@ void OAIIdentitySet::initializeModel() {
73
77
74
78
d->user_isSet = false ;
75
79
d->user_isValid = false ;
80
+
81
+ d->group_isSet = false ;
82
+ d->group_isValid = false ;
76
83
}
77
84
}
78
85
@@ -96,6 +103,9 @@ void OAIIdentitySet::fromJsonObject(QJsonObject json) {
96
103
97
104
d->user_isValid = ::OpenAPI::fromJsonValue (d->user , json[QString (" user" )]);
98
105
d->user_isSet = !json[QString (" user" )].isNull () && d->user_isValid ;
106
+
107
+ d->group_isValid = ::OpenAPI::fromJsonValue (d->group , json[QString (" group" )]);
108
+ d->group_isSet = !json[QString (" group" )].isNull () && d->group_isValid ;
99
109
}
100
110
101
111
QString OAIIdentitySet::asJson () const {
@@ -120,6 +130,9 @@ QJsonObject OAIIdentitySet::asJsonObject() const {
120
130
if (d->user .isSet ()) {
121
131
obj.insert (QString (" user" ), ::OpenAPI::toJsonValue (d->user ));
122
132
}
133
+ if (d->group .isSet ()) {
134
+ obj.insert (QString (" group" ), ::OpenAPI::toJsonValue (d->group ));
135
+ }
123
136
return obj;
124
137
}
125
138
@@ -219,6 +232,38 @@ bool OAIIdentitySet::is_user_Valid() const{
219
232
return d->user_isValid ;
220
233
}
221
234
235
+ OAIIdentity OAIIdentitySet::getGroup () const {
236
+ Q_D (const OAIIdentitySet);
237
+ if (!d){
238
+ return {};
239
+ }
240
+ return d->group ;
241
+ }
242
+ void OAIIdentitySet::setGroup (const OAIIdentity &group) {
243
+ Q_D (OAIIdentitySet);
244
+ Q_ASSERT (d);
245
+
246
+ d->group = group;
247
+ d->group_isSet = true ;
248
+ }
249
+
250
+ bool OAIIdentitySet::is_group_Set () const {
251
+ Q_D (const OAIIdentitySet);
252
+ if (!d){
253
+ return false ;
254
+ }
255
+
256
+ return d->group_isSet ;
257
+ }
258
+
259
+ bool OAIIdentitySet::is_group_Valid () const {
260
+ Q_D (const OAIIdentitySet);
261
+ if (!d){
262
+ return false ;
263
+ }
264
+ return d->group_isValid ;
265
+ }
266
+
222
267
bool OAIIdentitySet::isSet () const {
223
268
Q_D (const OAIIdentitySet);
224
269
if (!d){
@@ -240,6 +285,11 @@ bool OAIIdentitySet::isSet() const {
240
285
isObjectUpdated = true ;
241
286
break ;
242
287
}
288
+
289
+ if (d->group .isSet ()) {
290
+ isObjectUpdated = true ;
291
+ break ;
292
+ }
243
293
} while (false );
244
294
return isObjectUpdated;
245
295
}
0 commit comments