forked from corellium/go-corellium-api-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodel_model_software.go
More file actions
363 lines (307 loc) · 9.66 KB
/
model_model_software.go
File metadata and controls
363 lines (307 loc) · 9.66 KB
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
/*
Corellium API
REST API to manage your virtual devices.
API version: 4.3.1-16664
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package corellium
import (
"encoding/json"
)
// checks if the ModelSoftware type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ModelSoftware{}
// ModelSoftware
type ModelSoftware struct {
//
Name NullableString `json:"name,omitempty"`
//
BoardConfig NullableString `json:"boardConfig,omitempty"`
//
Platform NullableString `json:"platform,omitempty"`
//
Cpid NullableFloat32 `json:"cpid,omitempty"`
//
Bdid NullableFloat32 `json:"bdid,omitempty"`
//
Firmwares []Firmware `json:"firmwares,omitempty"`
}
// NewModelSoftware instantiates a new ModelSoftware 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 NewModelSoftware() *ModelSoftware {
this := ModelSoftware{}
return &this
}
// NewModelSoftwareWithDefaults instantiates a new ModelSoftware 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 NewModelSoftwareWithDefaults() *ModelSoftware {
this := ModelSoftware{}
return &this
}
// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModelSoftware) GetName() string {
if o == nil || IsNil(o.Name.Get()) {
var ret string
return ret
}
return *o.Name.Get()
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *ModelSoftware) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Name.Get(), o.Name.IsSet()
}
// HasName returns a boolean if a field has been set.
func (o *ModelSoftware) HasName() bool {
if o != nil && o.Name.IsSet() {
return true
}
return false
}
// SetName gets a reference to the given NullableString and assigns it to the Name field.
func (o *ModelSoftware) SetName(v string) {
o.Name.Set(&v)
}
// SetNameNil sets the value for Name to be an explicit nil
func (o *ModelSoftware) SetNameNil() {
o.Name.Set(nil)
}
// UnsetName ensures that no value is present for Name, not even an explicit nil
func (o *ModelSoftware) UnsetName() {
o.Name.Unset()
}
// GetBoardConfig returns the BoardConfig field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModelSoftware) GetBoardConfig() string {
if o == nil || IsNil(o.BoardConfig.Get()) {
var ret string
return ret
}
return *o.BoardConfig.Get()
}
// GetBoardConfigOk returns a tuple with the BoardConfig field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *ModelSoftware) GetBoardConfigOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.BoardConfig.Get(), o.BoardConfig.IsSet()
}
// HasBoardConfig returns a boolean if a field has been set.
func (o *ModelSoftware) HasBoardConfig() bool {
if o != nil && o.BoardConfig.IsSet() {
return true
}
return false
}
// SetBoardConfig gets a reference to the given NullableString and assigns it to the BoardConfig field.
func (o *ModelSoftware) SetBoardConfig(v string) {
o.BoardConfig.Set(&v)
}
// SetBoardConfigNil sets the value for BoardConfig to be an explicit nil
func (o *ModelSoftware) SetBoardConfigNil() {
o.BoardConfig.Set(nil)
}
// UnsetBoardConfig ensures that no value is present for BoardConfig, not even an explicit nil
func (o *ModelSoftware) UnsetBoardConfig() {
o.BoardConfig.Unset()
}
// GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModelSoftware) GetPlatform() string {
if o == nil || IsNil(o.Platform.Get()) {
var ret string
return ret
}
return *o.Platform.Get()
}
// GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *ModelSoftware) GetPlatformOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Platform.Get(), o.Platform.IsSet()
}
// HasPlatform returns a boolean if a field has been set.
func (o *ModelSoftware) HasPlatform() bool {
if o != nil && o.Platform.IsSet() {
return true
}
return false
}
// SetPlatform gets a reference to the given NullableString and assigns it to the Platform field.
func (o *ModelSoftware) SetPlatform(v string) {
o.Platform.Set(&v)
}
// SetPlatformNil sets the value for Platform to be an explicit nil
func (o *ModelSoftware) SetPlatformNil() {
o.Platform.Set(nil)
}
// UnsetPlatform ensures that no value is present for Platform, not even an explicit nil
func (o *ModelSoftware) UnsetPlatform() {
o.Platform.Unset()
}
// GetCpid returns the Cpid field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModelSoftware) GetCpid() float32 {
if o == nil || IsNil(o.Cpid.Get()) {
var ret float32
return ret
}
return *o.Cpid.Get()
}
// GetCpidOk returns a tuple with the Cpid field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *ModelSoftware) GetCpidOk() (*float32, bool) {
if o == nil {
return nil, false
}
return o.Cpid.Get(), o.Cpid.IsSet()
}
// HasCpid returns a boolean if a field has been set.
func (o *ModelSoftware) HasCpid() bool {
if o != nil && o.Cpid.IsSet() {
return true
}
return false
}
// SetCpid gets a reference to the given NullableFloat32 and assigns it to the Cpid field.
func (o *ModelSoftware) SetCpid(v float32) {
o.Cpid.Set(&v)
}
// SetCpidNil sets the value for Cpid to be an explicit nil
func (o *ModelSoftware) SetCpidNil() {
o.Cpid.Set(nil)
}
// UnsetCpid ensures that no value is present for Cpid, not even an explicit nil
func (o *ModelSoftware) UnsetCpid() {
o.Cpid.Unset()
}
// GetBdid returns the Bdid field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModelSoftware) GetBdid() float32 {
if o == nil || IsNil(o.Bdid.Get()) {
var ret float32
return ret
}
return *o.Bdid.Get()
}
// GetBdidOk returns a tuple with the Bdid field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *ModelSoftware) GetBdidOk() (*float32, bool) {
if o == nil {
return nil, false
}
return o.Bdid.Get(), o.Bdid.IsSet()
}
// HasBdid returns a boolean if a field has been set.
func (o *ModelSoftware) HasBdid() bool {
if o != nil && o.Bdid.IsSet() {
return true
}
return false
}
// SetBdid gets a reference to the given NullableFloat32 and assigns it to the Bdid field.
func (o *ModelSoftware) SetBdid(v float32) {
o.Bdid.Set(&v)
}
// SetBdidNil sets the value for Bdid to be an explicit nil
func (o *ModelSoftware) SetBdidNil() {
o.Bdid.Set(nil)
}
// UnsetBdid ensures that no value is present for Bdid, not even an explicit nil
func (o *ModelSoftware) UnsetBdid() {
o.Bdid.Unset()
}
// GetFirmwares returns the Firmwares field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModelSoftware) GetFirmwares() []Firmware {
if o == nil {
var ret []Firmware
return ret
}
return o.Firmwares
}
// GetFirmwaresOk returns a tuple with the Firmwares field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *ModelSoftware) GetFirmwaresOk() ([]Firmware, bool) {
if o == nil || IsNil(o.Firmwares) {
return nil, false
}
return o.Firmwares, true
}
// HasFirmwares returns a boolean if a field has been set.
func (o *ModelSoftware) HasFirmwares() bool {
if o != nil && IsNil(o.Firmwares) {
return true
}
return false
}
// SetFirmwares gets a reference to the given []Firmware and assigns it to the Firmwares field.
func (o *ModelSoftware) SetFirmwares(v []Firmware) {
o.Firmwares = v
}
func (o ModelSoftware) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ModelSoftware) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if o.Name.IsSet() {
toSerialize["name"] = o.Name.Get()
}
if o.BoardConfig.IsSet() {
toSerialize["boardConfig"] = o.BoardConfig.Get()
}
if o.Platform.IsSet() {
toSerialize["platform"] = o.Platform.Get()
}
if o.Cpid.IsSet() {
toSerialize["cpid"] = o.Cpid.Get()
}
if o.Bdid.IsSet() {
toSerialize["bdid"] = o.Bdid.Get()
}
if o.Firmwares != nil {
toSerialize["firmwares"] = o.Firmwares
}
return toSerialize, nil
}
type NullableModelSoftware struct {
value *ModelSoftware
isSet bool
}
func (v NullableModelSoftware) Get() *ModelSoftware {
return v.value
}
func (v *NullableModelSoftware) Set(val *ModelSoftware) {
v.value = val
v.isSet = true
}
func (v NullableModelSoftware) IsSet() bool {
return v.isSet
}
func (v *NullableModelSoftware) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableModelSoftware(val *ModelSoftware) *NullableModelSoftware {
return &NullableModelSoftware{value: val, isSet: true}
}
func (v NullableModelSoftware) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableModelSoftware) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}