-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_person_details.go
630 lines (534 loc) · 17 KB
/
model_person_details.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
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
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
/*
YASM (Yet Another Skill Management) API
This is an example of using OAuth2 Implicit Flow in a specification to describe security to your API.
API version: 1.37.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package client
import (
"encoding/json"
)
// checks if the PersonDetails type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &PersonDetails{}
// PersonDetails struct for PersonDetails
type PersonDetails struct {
Audit *Audit `json:"audit,omitempty"`
Person *Person `json:"person,omitempty"`
Organization *Organization `json:"organization,omitempty"`
Industries []Industry `json:"industries,omitempty"`
Experiences []Experience `json:"experiences,omitempty"`
Interests []Skill `json:"interests,omitempty"`
Certifications []CertificationDetails `json:"certifications,omitempty"`
Languages []LanguageLevel `json:"languages,omitempty"`
Office *OfficeDetails `json:"office,omitempty"`
Availabilities []AvailabilityDetail `json:"availabilities,omitempty"`
SkillGroups []ExperienceSkillGroup `json:"skillGroups,omitempty"`
Profiles []Profile `json:"profiles,omitempty"`
Manager *Person `json:"manager,omitempty"`
TeamMembers []Person `json:"teamMembers,omitempty"`
ObjectType *string `json:"objectType,omitempty"`
}
// NewPersonDetails instantiates a new PersonDetails 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 NewPersonDetails() *PersonDetails {
this := PersonDetails{}
return &this
}
// NewPersonDetailsWithDefaults instantiates a new PersonDetails 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 NewPersonDetailsWithDefaults() *PersonDetails {
this := PersonDetails{}
return &this
}
// GetAudit returns the Audit field value if set, zero value otherwise.
func (o *PersonDetails) GetAudit() Audit {
if o == nil || IsNil(o.Audit) {
var ret Audit
return ret
}
return *o.Audit
}
// GetAuditOk returns a tuple with the Audit field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetAuditOk() (*Audit, bool) {
if o == nil || IsNil(o.Audit) {
return nil, false
}
return o.Audit, true
}
// HasAudit returns a boolean if a field has been set.
func (o *PersonDetails) HasAudit() bool {
if o != nil && !IsNil(o.Audit) {
return true
}
return false
}
// SetAudit gets a reference to the given Audit and assigns it to the Audit field.
func (o *PersonDetails) SetAudit(v Audit) {
o.Audit = &v
}
// GetPerson returns the Person field value if set, zero value otherwise.
func (o *PersonDetails) GetPerson() Person {
if o == nil || IsNil(o.Person) {
var ret Person
return ret
}
return *o.Person
}
// GetPersonOk returns a tuple with the Person field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetPersonOk() (*Person, bool) {
if o == nil || IsNil(o.Person) {
return nil, false
}
return o.Person, true
}
// HasPerson returns a boolean if a field has been set.
func (o *PersonDetails) HasPerson() bool {
if o != nil && !IsNil(o.Person) {
return true
}
return false
}
// SetPerson gets a reference to the given Person and assigns it to the Person field.
func (o *PersonDetails) SetPerson(v Person) {
o.Person = &v
}
// GetOrganization returns the Organization field value if set, zero value otherwise.
func (o *PersonDetails) GetOrganization() Organization {
if o == nil || IsNil(o.Organization) {
var ret Organization
return ret
}
return *o.Organization
}
// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetOrganizationOk() (*Organization, bool) {
if o == nil || IsNil(o.Organization) {
return nil, false
}
return o.Organization, true
}
// HasOrganization returns a boolean if a field has been set.
func (o *PersonDetails) HasOrganization() bool {
if o != nil && !IsNil(o.Organization) {
return true
}
return false
}
// SetOrganization gets a reference to the given Organization and assigns it to the Organization field.
func (o *PersonDetails) SetOrganization(v Organization) {
o.Organization = &v
}
// GetIndustries returns the Industries field value if set, zero value otherwise.
func (o *PersonDetails) GetIndustries() []Industry {
if o == nil || IsNil(o.Industries) {
var ret []Industry
return ret
}
return o.Industries
}
// GetIndustriesOk returns a tuple with the Industries field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetIndustriesOk() ([]Industry, bool) {
if o == nil || IsNil(o.Industries) {
return nil, false
}
return o.Industries, true
}
// HasIndustries returns a boolean if a field has been set.
func (o *PersonDetails) HasIndustries() bool {
if o != nil && !IsNil(o.Industries) {
return true
}
return false
}
// SetIndustries gets a reference to the given []Industry and assigns it to the Industries field.
func (o *PersonDetails) SetIndustries(v []Industry) {
o.Industries = v
}
// GetExperiences returns the Experiences field value if set, zero value otherwise.
func (o *PersonDetails) GetExperiences() []Experience {
if o == nil || IsNil(o.Experiences) {
var ret []Experience
return ret
}
return o.Experiences
}
// GetExperiencesOk returns a tuple with the Experiences field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetExperiencesOk() ([]Experience, bool) {
if o == nil || IsNil(o.Experiences) {
return nil, false
}
return o.Experiences, true
}
// HasExperiences returns a boolean if a field has been set.
func (o *PersonDetails) HasExperiences() bool {
if o != nil && !IsNil(o.Experiences) {
return true
}
return false
}
// SetExperiences gets a reference to the given []Experience and assigns it to the Experiences field.
func (o *PersonDetails) SetExperiences(v []Experience) {
o.Experiences = v
}
// GetInterests returns the Interests field value if set, zero value otherwise.
func (o *PersonDetails) GetInterests() []Skill {
if o == nil || IsNil(o.Interests) {
var ret []Skill
return ret
}
return o.Interests
}
// GetInterestsOk returns a tuple with the Interests field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetInterestsOk() ([]Skill, bool) {
if o == nil || IsNil(o.Interests) {
return nil, false
}
return o.Interests, true
}
// HasInterests returns a boolean if a field has been set.
func (o *PersonDetails) HasInterests() bool {
if o != nil && !IsNil(o.Interests) {
return true
}
return false
}
// SetInterests gets a reference to the given []Skill and assigns it to the Interests field.
func (o *PersonDetails) SetInterests(v []Skill) {
o.Interests = v
}
// GetCertifications returns the Certifications field value if set, zero value otherwise.
func (o *PersonDetails) GetCertifications() []CertificationDetails {
if o == nil || IsNil(o.Certifications) {
var ret []CertificationDetails
return ret
}
return o.Certifications
}
// GetCertificationsOk returns a tuple with the Certifications field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetCertificationsOk() ([]CertificationDetails, bool) {
if o == nil || IsNil(o.Certifications) {
return nil, false
}
return o.Certifications, true
}
// HasCertifications returns a boolean if a field has been set.
func (o *PersonDetails) HasCertifications() bool {
if o != nil && !IsNil(o.Certifications) {
return true
}
return false
}
// SetCertifications gets a reference to the given []CertificationDetails and assigns it to the Certifications field.
func (o *PersonDetails) SetCertifications(v []CertificationDetails) {
o.Certifications = v
}
// GetLanguages returns the Languages field value if set, zero value otherwise.
func (o *PersonDetails) GetLanguages() []LanguageLevel {
if o == nil || IsNil(o.Languages) {
var ret []LanguageLevel
return ret
}
return o.Languages
}
// GetLanguagesOk returns a tuple with the Languages field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetLanguagesOk() ([]LanguageLevel, bool) {
if o == nil || IsNil(o.Languages) {
return nil, false
}
return o.Languages, true
}
// HasLanguages returns a boolean if a field has been set.
func (o *PersonDetails) HasLanguages() bool {
if o != nil && !IsNil(o.Languages) {
return true
}
return false
}
// SetLanguages gets a reference to the given []LanguageLevel and assigns it to the Languages field.
func (o *PersonDetails) SetLanguages(v []LanguageLevel) {
o.Languages = v
}
// GetOffice returns the Office field value if set, zero value otherwise.
func (o *PersonDetails) GetOffice() OfficeDetails {
if o == nil || IsNil(o.Office) {
var ret OfficeDetails
return ret
}
return *o.Office
}
// GetOfficeOk returns a tuple with the Office field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetOfficeOk() (*OfficeDetails, bool) {
if o == nil || IsNil(o.Office) {
return nil, false
}
return o.Office, true
}
// HasOffice returns a boolean if a field has been set.
func (o *PersonDetails) HasOffice() bool {
if o != nil && !IsNil(o.Office) {
return true
}
return false
}
// SetOffice gets a reference to the given OfficeDetails and assigns it to the Office field.
func (o *PersonDetails) SetOffice(v OfficeDetails) {
o.Office = &v
}
// GetAvailabilities returns the Availabilities field value if set, zero value otherwise.
func (o *PersonDetails) GetAvailabilities() []AvailabilityDetail {
if o == nil || IsNil(o.Availabilities) {
var ret []AvailabilityDetail
return ret
}
return o.Availabilities
}
// GetAvailabilitiesOk returns a tuple with the Availabilities field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetAvailabilitiesOk() ([]AvailabilityDetail, bool) {
if o == nil || IsNil(o.Availabilities) {
return nil, false
}
return o.Availabilities, true
}
// HasAvailabilities returns a boolean if a field has been set.
func (o *PersonDetails) HasAvailabilities() bool {
if o != nil && !IsNil(o.Availabilities) {
return true
}
return false
}
// SetAvailabilities gets a reference to the given []AvailabilityDetail and assigns it to the Availabilities field.
func (o *PersonDetails) SetAvailabilities(v []AvailabilityDetail) {
o.Availabilities = v
}
// GetSkillGroups returns the SkillGroups field value if set, zero value otherwise.
func (o *PersonDetails) GetSkillGroups() []ExperienceSkillGroup {
if o == nil || IsNil(o.SkillGroups) {
var ret []ExperienceSkillGroup
return ret
}
return o.SkillGroups
}
// GetSkillGroupsOk returns a tuple with the SkillGroups field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetSkillGroupsOk() ([]ExperienceSkillGroup, bool) {
if o == nil || IsNil(o.SkillGroups) {
return nil, false
}
return o.SkillGroups, true
}
// HasSkillGroups returns a boolean if a field has been set.
func (o *PersonDetails) HasSkillGroups() bool {
if o != nil && !IsNil(o.SkillGroups) {
return true
}
return false
}
// SetSkillGroups gets a reference to the given []ExperienceSkillGroup and assigns it to the SkillGroups field.
func (o *PersonDetails) SetSkillGroups(v []ExperienceSkillGroup) {
o.SkillGroups = v
}
// GetProfiles returns the Profiles field value if set, zero value otherwise.
func (o *PersonDetails) GetProfiles() []Profile {
if o == nil || IsNil(o.Profiles) {
var ret []Profile
return ret
}
return o.Profiles
}
// GetProfilesOk returns a tuple with the Profiles field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetProfilesOk() ([]Profile, bool) {
if o == nil || IsNil(o.Profiles) {
return nil, false
}
return o.Profiles, true
}
// HasProfiles returns a boolean if a field has been set.
func (o *PersonDetails) HasProfiles() bool {
if o != nil && !IsNil(o.Profiles) {
return true
}
return false
}
// SetProfiles gets a reference to the given []Profile and assigns it to the Profiles field.
func (o *PersonDetails) SetProfiles(v []Profile) {
o.Profiles = v
}
// GetManager returns the Manager field value if set, zero value otherwise.
func (o *PersonDetails) GetManager() Person {
if o == nil || IsNil(o.Manager) {
var ret Person
return ret
}
return *o.Manager
}
// GetManagerOk returns a tuple with the Manager field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetManagerOk() (*Person, bool) {
if o == nil || IsNil(o.Manager) {
return nil, false
}
return o.Manager, true
}
// HasManager returns a boolean if a field has been set.
func (o *PersonDetails) HasManager() bool {
if o != nil && !IsNil(o.Manager) {
return true
}
return false
}
// SetManager gets a reference to the given Person and assigns it to the Manager field.
func (o *PersonDetails) SetManager(v Person) {
o.Manager = &v
}
// GetTeamMembers returns the TeamMembers field value if set, zero value otherwise.
func (o *PersonDetails) GetTeamMembers() []Person {
if o == nil || IsNil(o.TeamMembers) {
var ret []Person
return ret
}
return o.TeamMembers
}
// GetTeamMembersOk returns a tuple with the TeamMembers field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetTeamMembersOk() ([]Person, bool) {
if o == nil || IsNil(o.TeamMembers) {
return nil, false
}
return o.TeamMembers, true
}
// HasTeamMembers returns a boolean if a field has been set.
func (o *PersonDetails) HasTeamMembers() bool {
if o != nil && !IsNil(o.TeamMembers) {
return true
}
return false
}
// SetTeamMembers gets a reference to the given []Person and assigns it to the TeamMembers field.
func (o *PersonDetails) SetTeamMembers(v []Person) {
o.TeamMembers = v
}
// GetObjectType returns the ObjectType field value if set, zero value otherwise.
func (o *PersonDetails) GetObjectType() string {
if o == nil || IsNil(o.ObjectType) {
var ret string
return ret
}
return *o.ObjectType
}
// GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetObjectTypeOk() (*string, bool) {
if o == nil || IsNil(o.ObjectType) {
return nil, false
}
return o.ObjectType, true
}
// HasObjectType returns a boolean if a field has been set.
func (o *PersonDetails) HasObjectType() bool {
if o != nil && !IsNil(o.ObjectType) {
return true
}
return false
}
// SetObjectType gets a reference to the given string and assigns it to the ObjectType field.
func (o *PersonDetails) SetObjectType(v string) {
o.ObjectType = &v
}
func (o PersonDetails) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o PersonDetails) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Audit) {
toSerialize["audit"] = o.Audit
}
if !IsNil(o.Person) {
toSerialize["person"] = o.Person
}
if !IsNil(o.Organization) {
toSerialize["organization"] = o.Organization
}
if !IsNil(o.Industries) {
toSerialize["industries"] = o.Industries
}
if !IsNil(o.Experiences) {
toSerialize["experiences"] = o.Experiences
}
if !IsNil(o.Interests) {
toSerialize["interests"] = o.Interests
}
if !IsNil(o.Certifications) {
toSerialize["certifications"] = o.Certifications
}
if !IsNil(o.Languages) {
toSerialize["languages"] = o.Languages
}
if !IsNil(o.Office) {
toSerialize["office"] = o.Office
}
if !IsNil(o.Availabilities) {
toSerialize["availabilities"] = o.Availabilities
}
if !IsNil(o.SkillGroups) {
toSerialize["skillGroups"] = o.SkillGroups
}
if !IsNil(o.Profiles) {
toSerialize["profiles"] = o.Profiles
}
if !IsNil(o.Manager) {
toSerialize["manager"] = o.Manager
}
if !IsNil(o.TeamMembers) {
toSerialize["teamMembers"] = o.TeamMembers
}
if !IsNil(o.ObjectType) {
toSerialize["objectType"] = o.ObjectType
}
return toSerialize, nil
}
type NullablePersonDetails struct {
value *PersonDetails
isSet bool
}
func (v NullablePersonDetails) Get() *PersonDetails {
return v.value
}
func (v *NullablePersonDetails) Set(val *PersonDetails) {
v.value = val
v.isSet = true
}
func (v NullablePersonDetails) IsSet() bool {
return v.isSet
}
func (v *NullablePersonDetails) Unset() {
v.value = nil
v.isSet = false
}
func NewNullablePersonDetails(val *PersonDetails) *NullablePersonDetails {
return &NullablePersonDetails{value: val, isSet: true}
}
func (v NullablePersonDetails) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullablePersonDetails) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}