-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel_organization_details.go
342 lines (286 loc) · 9.42 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
/*
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.12.1
*/
// 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 {
Organization *Organization `json:"organization,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"`
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
}
// 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
}
// 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
}
// 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.Organization) {
toSerialize["organization"] = o.Organization
}
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.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)
}