-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_organization_details.go
450 lines (379 loc) · 12.3 KB
/
model_organization_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
/*
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.45.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package client
import (
"encoding/json"
)
// checks if the OrganizationDetails type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &OrganizationDetails{}
// OrganizationDetails struct for OrganizationDetails
type OrganizationDetails struct {
Audit *Audit `json:"audit,omitempty"`
Organization *Organization `json:"organization,omitempty"`
ServiceManager *Person `json:"serviceManager,omitempty"`
Children []Organization `json:"children,omitempty"`
Parents []Organization `json:"parents,omitempty"`
Projects []Project `json:"projects,omitempty"`
Industries []Industry `json:"industries,omitempty"`
Certifications []Certification `json:"certifications,omitempty"`
Awards []Award `json:"awards,omitempty"`
Offices []Office `json:"offices,omitempty"`
}
// NewOrganizationDetails instantiates a new OrganizationDetails 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 NewOrganizationDetails() *OrganizationDetails {
this := OrganizationDetails{}
return &this
}
// NewOrganizationDetailsWithDefaults instantiates a new OrganizationDetails 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 NewOrganizationDetailsWithDefaults() *OrganizationDetails {
this := OrganizationDetails{}
return &this
}
// GetAudit returns the Audit field value if set, zero value otherwise.
func (o *OrganizationDetails) 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 *OrganizationDetails) 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 *OrganizationDetails) 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 *OrganizationDetails) SetAudit(v Audit) {
o.Audit = &v
}
// GetOrganization returns the Organization field value if set, zero value otherwise.
func (o *OrganizationDetails) 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 *OrganizationDetails) 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 *OrganizationDetails) 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 *OrganizationDetails) SetOrganization(v Organization) {
o.Organization = &v
}
// GetServiceManager returns the ServiceManager field value if set, zero value otherwise.
func (o *OrganizationDetails) GetServiceManager() Person {
if o == nil || IsNil(o.ServiceManager) {
var ret Person
return ret
}
return *o.ServiceManager
}
// GetServiceManagerOk returns a tuple with the ServiceManager field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OrganizationDetails) GetServiceManagerOk() (*Person, bool) {
if o == nil || IsNil(o.ServiceManager) {
return nil, false
}
return o.ServiceManager, true
}
// HasServiceManager returns a boolean if a field has been set.
func (o *OrganizationDetails) HasServiceManager() bool {
if o != nil && !IsNil(o.ServiceManager) {
return true
}
return false
}
// SetServiceManager gets a reference to the given Person and assigns it to the ServiceManager field.
func (o *OrganizationDetails) SetServiceManager(v Person) {
o.ServiceManager = &v
}
// GetChildren returns the Children field value if set, zero value otherwise.
func (o *OrganizationDetails) GetChildren() []Organization {
if o == nil || IsNil(o.Children) {
var ret []Organization
return ret
}
return o.Children
}
// GetChildrenOk returns a tuple with the Children field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OrganizationDetails) GetChildrenOk() ([]Organization, bool) {
if o == nil || IsNil(o.Children) {
return nil, false
}
return o.Children, true
}
// HasChildren returns a boolean if a field has been set.
func (o *OrganizationDetails) HasChildren() bool {
if o != nil && !IsNil(o.Children) {
return true
}
return false
}
// SetChildren gets a reference to the given []Organization and assigns it to the Children field.
func (o *OrganizationDetails) SetChildren(v []Organization) {
o.Children = v
}
// GetParents returns the Parents field value if set, zero value otherwise.
func (o *OrganizationDetails) GetParents() []Organization {
if o == nil || IsNil(o.Parents) {
var ret []Organization
return ret
}
return o.Parents
}
// GetParentsOk returns a tuple with the Parents field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OrganizationDetails) GetParentsOk() ([]Organization, bool) {
if o == nil || IsNil(o.Parents) {
return nil, false
}
return o.Parents, true
}
// HasParents returns a boolean if a field has been set.
func (o *OrganizationDetails) HasParents() bool {
if o != nil && !IsNil(o.Parents) {
return true
}
return false
}
// SetParents gets a reference to the given []Organization and assigns it to the Parents field.
func (o *OrganizationDetails) SetParents(v []Organization) {
o.Parents = v
}
// GetProjects returns the Projects field value if set, zero value otherwise.
func (o *OrganizationDetails) GetProjects() []Project {
if o == nil || IsNil(o.Projects) {
var ret []Project
return ret
}
return o.Projects
}
// GetProjectsOk returns a tuple with the Projects field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OrganizationDetails) GetProjectsOk() ([]Project, bool) {
if o == nil || IsNil(o.Projects) {
return nil, false
}
return o.Projects, true
}
// HasProjects returns a boolean if a field has been set.
func (o *OrganizationDetails) HasProjects() bool {
if o != nil && !IsNil(o.Projects) {
return true
}
return false
}
// SetProjects gets a reference to the given []Project and assigns it to the Projects field.
func (o *OrganizationDetails) SetProjects(v []Project) {
o.Projects = v
}
// GetIndustries returns the Industries field value if set, zero value otherwise.
func (o *OrganizationDetails) 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 *OrganizationDetails) 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 *OrganizationDetails) 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 *OrganizationDetails) SetIndustries(v []Industry) {
o.Industries = v
}
// GetCertifications returns the Certifications field value if set, zero value otherwise.
func (o *OrganizationDetails) GetCertifications() []Certification {
if o == nil || IsNil(o.Certifications) {
var ret []Certification
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 *OrganizationDetails) GetCertificationsOk() ([]Certification, 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 *OrganizationDetails) HasCertifications() bool {
if o != nil && !IsNil(o.Certifications) {
return true
}
return false
}
// SetCertifications gets a reference to the given []Certification and assigns it to the Certifications field.
func (o *OrganizationDetails) SetCertifications(v []Certification) {
o.Certifications = v
}
// GetAwards returns the Awards field value if set, zero value otherwise.
func (o *OrganizationDetails) GetAwards() []Award {
if o == nil || IsNil(o.Awards) {
var ret []Award
return ret
}
return o.Awards
}
// GetAwardsOk returns a tuple with the Awards field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OrganizationDetails) GetAwardsOk() ([]Award, bool) {
if o == nil || IsNil(o.Awards) {
return nil, false
}
return o.Awards, true
}
// HasAwards returns a boolean if a field has been set.
func (o *OrganizationDetails) HasAwards() bool {
if o != nil && !IsNil(o.Awards) {
return true
}
return false
}
// SetAwards gets a reference to the given []Award and assigns it to the Awards field.
func (o *OrganizationDetails) SetAwards(v []Award) {
o.Awards = v
}
// GetOffices returns the Offices field value if set, zero value otherwise.
func (o *OrganizationDetails) GetOffices() []Office {
if o == nil || IsNil(o.Offices) {
var ret []Office
return ret
}
return o.Offices
}
// GetOfficesOk returns a tuple with the Offices field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OrganizationDetails) GetOfficesOk() ([]Office, bool) {
if o == nil || IsNil(o.Offices) {
return nil, false
}
return o.Offices, true
}
// HasOffices returns a boolean if a field has been set.
func (o *OrganizationDetails) HasOffices() bool {
if o != nil && !IsNil(o.Offices) {
return true
}
return false
}
// SetOffices gets a reference to the given []Office and assigns it to the Offices field.
func (o *OrganizationDetails) SetOffices(v []Office) {
o.Offices = v
}
func (o OrganizationDetails) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o OrganizationDetails) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Audit) {
toSerialize["audit"] = o.Audit
}
if !IsNil(o.Organization) {
toSerialize["organization"] = o.Organization
}
if !IsNil(o.ServiceManager) {
toSerialize["serviceManager"] = o.ServiceManager
}
if !IsNil(o.Children) {
toSerialize["children"] = o.Children
}
if !IsNil(o.Parents) {
toSerialize["parents"] = o.Parents
}
if !IsNil(o.Projects) {
toSerialize["projects"] = o.Projects
}
if !IsNil(o.Industries) {
toSerialize["industries"] = o.Industries
}
if !IsNil(o.Certifications) {
toSerialize["certifications"] = o.Certifications
}
if !IsNil(o.Awards) {
toSerialize["awards"] = o.Awards
}
if !IsNil(o.Offices) {
toSerialize["offices"] = o.Offices
}
return toSerialize, nil
}
type NullableOrganizationDetails struct {
value *OrganizationDetails
isSet bool
}
func (v NullableOrganizationDetails) Get() *OrganizationDetails {
return v.value
}
func (v *NullableOrganizationDetails) Set(val *OrganizationDetails) {
v.value = val
v.isSet = true
}
func (v NullableOrganizationDetails) IsSet() bool {
return v.isSet
}
func (v *NullableOrganizationDetails) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableOrganizationDetails(val *OrganizationDetails) *NullableOrganizationDetails {
return &NullableOrganizationDetails{value: val, isSet: true}
}
func (v NullableOrganizationDetails) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableOrganizationDetails) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}