-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_project_details.go
414 lines (348 loc) · 11.2 KB
/
model_project_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
/*
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.48.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package client
import (
"encoding/json"
)
// checks if the ProjectDetails type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ProjectDetails{}
// ProjectDetails struct for ProjectDetails
type ProjectDetails struct {
Audit *Audit `json:"audit,omitempty"`
Project *Project `json:"project,omitempty"`
ExecutiveOrganizations []Organization `json:"executiveOrganizations,omitempty"`
Organization *Organization `json:"organization,omitempty"`
Industries []Industry `json:"industries,omitempty"`
Persons []Person `json:"persons,omitempty"`
SkillGroups []ExperienceSkillGroup `json:"skillGroups,omitempty"`
Timeframe *Timeframed `json:"timeframe,omitempty"`
ObjectType *string `json:"objectType,omitempty"`
}
// NewProjectDetails instantiates a new ProjectDetails 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 NewProjectDetails() *ProjectDetails {
this := ProjectDetails{}
return &this
}
// NewProjectDetailsWithDefaults instantiates a new ProjectDetails 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 NewProjectDetailsWithDefaults() *ProjectDetails {
this := ProjectDetails{}
return &this
}
// GetAudit returns the Audit field value if set, zero value otherwise.
func (o *ProjectDetails) 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 *ProjectDetails) 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 *ProjectDetails) 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 *ProjectDetails) SetAudit(v Audit) {
o.Audit = &v
}
// GetProject returns the Project field value if set, zero value otherwise.
func (o *ProjectDetails) GetProject() Project {
if o == nil || IsNil(o.Project) {
var ret Project
return ret
}
return *o.Project
}
// GetProjectOk returns a tuple with the Project field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProjectDetails) GetProjectOk() (*Project, bool) {
if o == nil || IsNil(o.Project) {
return nil, false
}
return o.Project, true
}
// HasProject returns a boolean if a field has been set.
func (o *ProjectDetails) HasProject() bool {
if o != nil && !IsNil(o.Project) {
return true
}
return false
}
// SetProject gets a reference to the given Project and assigns it to the Project field.
func (o *ProjectDetails) SetProject(v Project) {
o.Project = &v
}
// GetExecutiveOrganizations returns the ExecutiveOrganizations field value if set, zero value otherwise.
func (o *ProjectDetails) GetExecutiveOrganizations() []Organization {
if o == nil || IsNil(o.ExecutiveOrganizations) {
var ret []Organization
return ret
}
return o.ExecutiveOrganizations
}
// GetExecutiveOrganizationsOk returns a tuple with the ExecutiveOrganizations field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProjectDetails) GetExecutiveOrganizationsOk() ([]Organization, bool) {
if o == nil || IsNil(o.ExecutiveOrganizations) {
return nil, false
}
return o.ExecutiveOrganizations, true
}
// HasExecutiveOrganizations returns a boolean if a field has been set.
func (o *ProjectDetails) HasExecutiveOrganizations() bool {
if o != nil && !IsNil(o.ExecutiveOrganizations) {
return true
}
return false
}
// SetExecutiveOrganizations gets a reference to the given []Organization and assigns it to the ExecutiveOrganizations field.
func (o *ProjectDetails) SetExecutiveOrganizations(v []Organization) {
o.ExecutiveOrganizations = v
}
// GetOrganization returns the Organization field value if set, zero value otherwise.
func (o *ProjectDetails) 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 *ProjectDetails) 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 *ProjectDetails) 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 *ProjectDetails) SetOrganization(v Organization) {
o.Organization = &v
}
// GetIndustries returns the Industries field value if set, zero value otherwise.
func (o *ProjectDetails) 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 *ProjectDetails) 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 *ProjectDetails) 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 *ProjectDetails) SetIndustries(v []Industry) {
o.Industries = v
}
// GetPersons returns the Persons field value if set, zero value otherwise.
func (o *ProjectDetails) GetPersons() []Person {
if o == nil || IsNil(o.Persons) {
var ret []Person
return ret
}
return o.Persons
}
// GetPersonsOk returns a tuple with the Persons field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProjectDetails) GetPersonsOk() ([]Person, bool) {
if o == nil || IsNil(o.Persons) {
return nil, false
}
return o.Persons, true
}
// HasPersons returns a boolean if a field has been set.
func (o *ProjectDetails) HasPersons() bool {
if o != nil && !IsNil(o.Persons) {
return true
}
return false
}
// SetPersons gets a reference to the given []Person and assigns it to the Persons field.
func (o *ProjectDetails) SetPersons(v []Person) {
o.Persons = v
}
// GetSkillGroups returns the SkillGroups field value if set, zero value otherwise.
func (o *ProjectDetails) 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 *ProjectDetails) 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 *ProjectDetails) 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 *ProjectDetails) SetSkillGroups(v []ExperienceSkillGroup) {
o.SkillGroups = v
}
// GetTimeframe returns the Timeframe field value if set, zero value otherwise.
func (o *ProjectDetails) GetTimeframe() Timeframed {
if o == nil || IsNil(o.Timeframe) {
var ret Timeframed
return ret
}
return *o.Timeframe
}
// GetTimeframeOk returns a tuple with the Timeframe field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProjectDetails) GetTimeframeOk() (*Timeframed, bool) {
if o == nil || IsNil(o.Timeframe) {
return nil, false
}
return o.Timeframe, true
}
// HasTimeframe returns a boolean if a field has been set.
func (o *ProjectDetails) HasTimeframe() bool {
if o != nil && !IsNil(o.Timeframe) {
return true
}
return false
}
// SetTimeframe gets a reference to the given Timeframed and assigns it to the Timeframe field.
func (o *ProjectDetails) SetTimeframe(v Timeframed) {
o.Timeframe = &v
}
// GetObjectType returns the ObjectType field value if set, zero value otherwise.
func (o *ProjectDetails) 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 *ProjectDetails) 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 *ProjectDetails) 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 *ProjectDetails) SetObjectType(v string) {
o.ObjectType = &v
}
func (o ProjectDetails) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ProjectDetails) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Audit) {
toSerialize["audit"] = o.Audit
}
if !IsNil(o.Project) {
toSerialize["project"] = o.Project
}
if !IsNil(o.ExecutiveOrganizations) {
toSerialize["executiveOrganizations"] = o.ExecutiveOrganizations
}
if !IsNil(o.Organization) {
toSerialize["organization"] = o.Organization
}
if !IsNil(o.Industries) {
toSerialize["industries"] = o.Industries
}
if !IsNil(o.Persons) {
toSerialize["persons"] = o.Persons
}
if !IsNil(o.SkillGroups) {
toSerialize["skillGroups"] = o.SkillGroups
}
if !IsNil(o.Timeframe) {
toSerialize["timeframe"] = o.Timeframe
}
if !IsNil(o.ObjectType) {
toSerialize["objectType"] = o.ObjectType
}
return toSerialize, nil
}
type NullableProjectDetails struct {
value *ProjectDetails
isSet bool
}
func (v NullableProjectDetails) Get() *ProjectDetails {
return v.value
}
func (v *NullableProjectDetails) Set(val *ProjectDetails) {
v.value = val
v.isSet = true
}
func (v NullableProjectDetails) IsSet() bool {
return v.isSet
}
func (v *NullableProjectDetails) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableProjectDetails(val *ProjectDetails) *NullableProjectDetails {
return &NullableProjectDetails{value: val, isSet: true}
}
func (v NullableProjectDetails) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableProjectDetails) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}