-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel_skill_details.go
271 lines (225 loc) · 6.84 KB
/
model_skill_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
/*
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.16.4
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package client
import (
"encoding/json"
)
// checks if the SkillDetails type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SkillDetails{}
// SkillDetails struct for SkillDetails
type SkillDetails struct {
Skill *Skill `json:"skill,omitempty"`
Children []SkillLink `json:"children,omitempty"`
Parents []SkillLink `json:"parents,omitempty"`
Kinds []Skill `json:"kinds,omitempty"`
// The display name of the skill, e.g. \"Communication (Computing)\" or \"Communication (Design)\" or \"Protcool (Communication,IT)\"
DisplayName *string `json:"displayName,omitempty"`
}
// NewSkillDetails instantiates a new SkillDetails 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 NewSkillDetails() *SkillDetails {
this := SkillDetails{}
return &this
}
// NewSkillDetailsWithDefaults instantiates a new SkillDetails 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 NewSkillDetailsWithDefaults() *SkillDetails {
this := SkillDetails{}
return &this
}
// GetSkill returns the Skill field value if set, zero value otherwise.
func (o *SkillDetails) GetSkill() Skill {
if o == nil || IsNil(o.Skill) {
var ret Skill
return ret
}
return *o.Skill
}
// GetSkillOk returns a tuple with the Skill field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SkillDetails) GetSkillOk() (*Skill, bool) {
if o == nil || IsNil(o.Skill) {
return nil, false
}
return o.Skill, true
}
// HasSkill returns a boolean if a field has been set.
func (o *SkillDetails) HasSkill() bool {
if o != nil && !IsNil(o.Skill) {
return true
}
return false
}
// SetSkill gets a reference to the given Skill and assigns it to the Skill field.
func (o *SkillDetails) SetSkill(v Skill) {
o.Skill = &v
}
// GetChildren returns the Children field value if set, zero value otherwise.
func (o *SkillDetails) GetChildren() []SkillLink {
if o == nil || IsNil(o.Children) {
var ret []SkillLink
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 *SkillDetails) GetChildrenOk() ([]SkillLink, 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 *SkillDetails) HasChildren() bool {
if o != nil && !IsNil(o.Children) {
return true
}
return false
}
// SetChildren gets a reference to the given []SkillLink and assigns it to the Children field.
func (o *SkillDetails) SetChildren(v []SkillLink) {
o.Children = v
}
// GetParents returns the Parents field value if set, zero value otherwise.
func (o *SkillDetails) GetParents() []SkillLink {
if o == nil || IsNil(o.Parents) {
var ret []SkillLink
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 *SkillDetails) GetParentsOk() ([]SkillLink, 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 *SkillDetails) HasParents() bool {
if o != nil && !IsNil(o.Parents) {
return true
}
return false
}
// SetParents gets a reference to the given []SkillLink and assigns it to the Parents field.
func (o *SkillDetails) SetParents(v []SkillLink) {
o.Parents = v
}
// GetKinds returns the Kinds field value if set, zero value otherwise.
func (o *SkillDetails) GetKinds() []Skill {
if o == nil || IsNil(o.Kinds) {
var ret []Skill
return ret
}
return o.Kinds
}
// GetKindsOk returns a tuple with the Kinds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SkillDetails) GetKindsOk() ([]Skill, bool) {
if o == nil || IsNil(o.Kinds) {
return nil, false
}
return o.Kinds, true
}
// HasKinds returns a boolean if a field has been set.
func (o *SkillDetails) HasKinds() bool {
if o != nil && !IsNil(o.Kinds) {
return true
}
return false
}
// SetKinds gets a reference to the given []Skill and assigns it to the Kinds field.
func (o *SkillDetails) SetKinds(v []Skill) {
o.Kinds = v
}
// GetDisplayName returns the DisplayName field value if set, zero value otherwise.
func (o *SkillDetails) GetDisplayName() string {
if o == nil || IsNil(o.DisplayName) {
var ret string
return ret
}
return *o.DisplayName
}
// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SkillDetails) GetDisplayNameOk() (*string, bool) {
if o == nil || IsNil(o.DisplayName) {
return nil, false
}
return o.DisplayName, true
}
// HasDisplayName returns a boolean if a field has been set.
func (o *SkillDetails) HasDisplayName() bool {
if o != nil && !IsNil(o.DisplayName) {
return true
}
return false
}
// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
func (o *SkillDetails) SetDisplayName(v string) {
o.DisplayName = &v
}
func (o SkillDetails) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o SkillDetails) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Skill) {
toSerialize["skill"] = o.Skill
}
if !IsNil(o.Children) {
toSerialize["children"] = o.Children
}
if !IsNil(o.Parents) {
toSerialize["parents"] = o.Parents
}
if !IsNil(o.Kinds) {
toSerialize["kinds"] = o.Kinds
}
if !IsNil(o.DisplayName) {
toSerialize["displayName"] = o.DisplayName
}
return toSerialize, nil
}
type NullableSkillDetails struct {
value *SkillDetails
isSet bool
}
func (v NullableSkillDetails) Get() *SkillDetails {
return v.value
}
func (v *NullableSkillDetails) Set(val *SkillDetails) {
v.value = val
v.isSet = true
}
func (v NullableSkillDetails) IsSet() bool {
return v.isSet
}
func (v *NullableSkillDetails) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSkillDetails(val *SkillDetails) *NullableSkillDetails {
return &NullableSkillDetails{value: val, isSet: true}
}
func (v NullableSkillDetails) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSkillDetails) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}