This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_managed_element_single.go
458 lines (389 loc) · 14.1 KB
/
model_managed_element_single.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
449
450
451
452
453
454
455
456
457
458
/*
AI/ML NRM
OAS 3.0.1 specification of the AI/ML NRM © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 17.2.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi_AiMlNrm
import (
"encoding/json"
)
// checks if the ManagedElementSingle type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ManagedElementSingle{}
// ManagedElementSingle struct for ManagedElementSingle
type ManagedElementSingle struct {
Top
Attributes *ManagedElementAttr `json:"attributes,omitempty"`
MnsAgent []MnsAgentSingle `json:"MnsAgent,omitempty"`
PerfMetricJob []PerfMetricJobSingle `json:"PerfMetricJob,omitempty"`
ThresholdMonitor []ThresholdMonitorSingle `json:"ThresholdMonitor,omitempty"`
TraceJob []TraceJobSingle `json:"TraceJob,omitempty"`
NtfSubscriptionControl []NtfSubscriptionControlSingle `json:"NtfSubscriptionControl,omitempty"`
AlarmList *AlarmListSingle `json:"AlarmList,omitempty"`
FileDownloadJob []FileDownloadJobSingle `json:"FileDownloadJob,omitempty"`
Files []FilesSingle `json:"Files,omitempty"`
MLTrainingFunction []MLTrainingFunctionSingle `json:"MLTrainingFunction,omitempty"`
}
// NewManagedElementSingle instantiates a new ManagedElementSingle 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 NewManagedElementSingle(id NullableString) *ManagedElementSingle {
this := ManagedElementSingle{}
this.Id = id
return &this
}
// NewManagedElementSingleWithDefaults instantiates a new ManagedElementSingle 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 NewManagedElementSingleWithDefaults() *ManagedElementSingle {
this := ManagedElementSingle{}
return &this
}
// GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *ManagedElementSingle) GetAttributes() ManagedElementAttr {
if o == nil || IsNil(o.Attributes) {
var ret ManagedElementAttr
return ret
}
return *o.Attributes
}
// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedElementSingle) GetAttributesOk() (*ManagedElementAttr, bool) {
if o == nil || IsNil(o.Attributes) {
return nil, false
}
return o.Attributes, true
}
// HasAttributes returns a boolean if a field has been set.
func (o *ManagedElementSingle) HasAttributes() bool {
if o != nil && !IsNil(o.Attributes) {
return true
}
return false
}
// SetAttributes gets a reference to the given ManagedElementAttr and assigns it to the Attributes field.
func (o *ManagedElementSingle) SetAttributes(v ManagedElementAttr) {
o.Attributes = &v
}
// GetMnsAgent returns the MnsAgent field value if set, zero value otherwise.
func (o *ManagedElementSingle) GetMnsAgent() []MnsAgentSingle {
if o == nil || IsNil(o.MnsAgent) {
var ret []MnsAgentSingle
return ret
}
return o.MnsAgent
}
// GetMnsAgentOk returns a tuple with the MnsAgent field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedElementSingle) GetMnsAgentOk() ([]MnsAgentSingle, bool) {
if o == nil || IsNil(o.MnsAgent) {
return nil, false
}
return o.MnsAgent, true
}
// HasMnsAgent returns a boolean if a field has been set.
func (o *ManagedElementSingle) HasMnsAgent() bool {
if o != nil && !IsNil(o.MnsAgent) {
return true
}
return false
}
// SetMnsAgent gets a reference to the given []MnsAgentSingle and assigns it to the MnsAgent field.
func (o *ManagedElementSingle) SetMnsAgent(v []MnsAgentSingle) {
o.MnsAgent = v
}
// GetPerfMetricJob returns the PerfMetricJob field value if set, zero value otherwise.
func (o *ManagedElementSingle) GetPerfMetricJob() []PerfMetricJobSingle {
if o == nil || IsNil(o.PerfMetricJob) {
var ret []PerfMetricJobSingle
return ret
}
return o.PerfMetricJob
}
// GetPerfMetricJobOk returns a tuple with the PerfMetricJob field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedElementSingle) GetPerfMetricJobOk() ([]PerfMetricJobSingle, bool) {
if o == nil || IsNil(o.PerfMetricJob) {
return nil, false
}
return o.PerfMetricJob, true
}
// HasPerfMetricJob returns a boolean if a field has been set.
func (o *ManagedElementSingle) HasPerfMetricJob() bool {
if o != nil && !IsNil(o.PerfMetricJob) {
return true
}
return false
}
// SetPerfMetricJob gets a reference to the given []PerfMetricJobSingle and assigns it to the PerfMetricJob field.
func (o *ManagedElementSingle) SetPerfMetricJob(v []PerfMetricJobSingle) {
o.PerfMetricJob = v
}
// GetThresholdMonitor returns the ThresholdMonitor field value if set, zero value otherwise.
func (o *ManagedElementSingle) GetThresholdMonitor() []ThresholdMonitorSingle {
if o == nil || IsNil(o.ThresholdMonitor) {
var ret []ThresholdMonitorSingle
return ret
}
return o.ThresholdMonitor
}
// GetThresholdMonitorOk returns a tuple with the ThresholdMonitor field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedElementSingle) GetThresholdMonitorOk() ([]ThresholdMonitorSingle, bool) {
if o == nil || IsNil(o.ThresholdMonitor) {
return nil, false
}
return o.ThresholdMonitor, true
}
// HasThresholdMonitor returns a boolean if a field has been set.
func (o *ManagedElementSingle) HasThresholdMonitor() bool {
if o != nil && !IsNil(o.ThresholdMonitor) {
return true
}
return false
}
// SetThresholdMonitor gets a reference to the given []ThresholdMonitorSingle and assigns it to the ThresholdMonitor field.
func (o *ManagedElementSingle) SetThresholdMonitor(v []ThresholdMonitorSingle) {
o.ThresholdMonitor = v
}
// GetTraceJob returns the TraceJob field value if set, zero value otherwise.
func (o *ManagedElementSingle) GetTraceJob() []TraceJobSingle {
if o == nil || IsNil(o.TraceJob) {
var ret []TraceJobSingle
return ret
}
return o.TraceJob
}
// GetTraceJobOk returns a tuple with the TraceJob field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedElementSingle) GetTraceJobOk() ([]TraceJobSingle, bool) {
if o == nil || IsNil(o.TraceJob) {
return nil, false
}
return o.TraceJob, true
}
// HasTraceJob returns a boolean if a field has been set.
func (o *ManagedElementSingle) HasTraceJob() bool {
if o != nil && !IsNil(o.TraceJob) {
return true
}
return false
}
// SetTraceJob gets a reference to the given []TraceJobSingle and assigns it to the TraceJob field.
func (o *ManagedElementSingle) SetTraceJob(v []TraceJobSingle) {
o.TraceJob = v
}
// GetNtfSubscriptionControl returns the NtfSubscriptionControl field value if set, zero value otherwise.
func (o *ManagedElementSingle) GetNtfSubscriptionControl() []NtfSubscriptionControlSingle {
if o == nil || IsNil(o.NtfSubscriptionControl) {
var ret []NtfSubscriptionControlSingle
return ret
}
return o.NtfSubscriptionControl
}
// GetNtfSubscriptionControlOk returns a tuple with the NtfSubscriptionControl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedElementSingle) GetNtfSubscriptionControlOk() ([]NtfSubscriptionControlSingle, bool) {
if o == nil || IsNil(o.NtfSubscriptionControl) {
return nil, false
}
return o.NtfSubscriptionControl, true
}
// HasNtfSubscriptionControl returns a boolean if a field has been set.
func (o *ManagedElementSingle) HasNtfSubscriptionControl() bool {
if o != nil && !IsNil(o.NtfSubscriptionControl) {
return true
}
return false
}
// SetNtfSubscriptionControl gets a reference to the given []NtfSubscriptionControlSingle and assigns it to the NtfSubscriptionControl field.
func (o *ManagedElementSingle) SetNtfSubscriptionControl(v []NtfSubscriptionControlSingle) {
o.NtfSubscriptionControl = v
}
// GetAlarmList returns the AlarmList field value if set, zero value otherwise.
func (o *ManagedElementSingle) GetAlarmList() AlarmListSingle {
if o == nil || IsNil(o.AlarmList) {
var ret AlarmListSingle
return ret
}
return *o.AlarmList
}
// GetAlarmListOk returns a tuple with the AlarmList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedElementSingle) GetAlarmListOk() (*AlarmListSingle, bool) {
if o == nil || IsNil(o.AlarmList) {
return nil, false
}
return o.AlarmList, true
}
// HasAlarmList returns a boolean if a field has been set.
func (o *ManagedElementSingle) HasAlarmList() bool {
if o != nil && !IsNil(o.AlarmList) {
return true
}
return false
}
// SetAlarmList gets a reference to the given AlarmListSingle and assigns it to the AlarmList field.
func (o *ManagedElementSingle) SetAlarmList(v AlarmListSingle) {
o.AlarmList = &v
}
// GetFileDownloadJob returns the FileDownloadJob field value if set, zero value otherwise.
func (o *ManagedElementSingle) GetFileDownloadJob() []FileDownloadJobSingle {
if o == nil || IsNil(o.FileDownloadJob) {
var ret []FileDownloadJobSingle
return ret
}
return o.FileDownloadJob
}
// GetFileDownloadJobOk returns a tuple with the FileDownloadJob field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedElementSingle) GetFileDownloadJobOk() ([]FileDownloadJobSingle, bool) {
if o == nil || IsNil(o.FileDownloadJob) {
return nil, false
}
return o.FileDownloadJob, true
}
// HasFileDownloadJob returns a boolean if a field has been set.
func (o *ManagedElementSingle) HasFileDownloadJob() bool {
if o != nil && !IsNil(o.FileDownloadJob) {
return true
}
return false
}
// SetFileDownloadJob gets a reference to the given []FileDownloadJobSingle and assigns it to the FileDownloadJob field.
func (o *ManagedElementSingle) SetFileDownloadJob(v []FileDownloadJobSingle) {
o.FileDownloadJob = v
}
// GetFiles returns the Files field value if set, zero value otherwise.
func (o *ManagedElementSingle) GetFiles() []FilesSingle {
if o == nil || IsNil(o.Files) {
var ret []FilesSingle
return ret
}
return o.Files
}
// GetFilesOk returns a tuple with the Files field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedElementSingle) GetFilesOk() ([]FilesSingle, bool) {
if o == nil || IsNil(o.Files) {
return nil, false
}
return o.Files, true
}
// HasFiles returns a boolean if a field has been set.
func (o *ManagedElementSingle) HasFiles() bool {
if o != nil && !IsNil(o.Files) {
return true
}
return false
}
// SetFiles gets a reference to the given []FilesSingle and assigns it to the Files field.
func (o *ManagedElementSingle) SetFiles(v []FilesSingle) {
o.Files = v
}
// GetMLTrainingFunction returns the MLTrainingFunction field value if set, zero value otherwise.
func (o *ManagedElementSingle) GetMLTrainingFunction() []MLTrainingFunctionSingle {
if o == nil || IsNil(o.MLTrainingFunction) {
var ret []MLTrainingFunctionSingle
return ret
}
return o.MLTrainingFunction
}
// GetMLTrainingFunctionOk returns a tuple with the MLTrainingFunction field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedElementSingle) GetMLTrainingFunctionOk() ([]MLTrainingFunctionSingle, bool) {
if o == nil || IsNil(o.MLTrainingFunction) {
return nil, false
}
return o.MLTrainingFunction, true
}
// HasMLTrainingFunction returns a boolean if a field has been set.
func (o *ManagedElementSingle) HasMLTrainingFunction() bool {
if o != nil && !IsNil(o.MLTrainingFunction) {
return true
}
return false
}
// SetMLTrainingFunction gets a reference to the given []MLTrainingFunctionSingle and assigns it to the MLTrainingFunction field.
func (o *ManagedElementSingle) SetMLTrainingFunction(v []MLTrainingFunctionSingle) {
o.MLTrainingFunction = v
}
func (o ManagedElementSingle) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ManagedElementSingle) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
serializedTop, errTop := json.Marshal(o.Top)
if errTop != nil {
return map[string]interface{}{}, errTop
}
errTop = json.Unmarshal([]byte(serializedTop), &toSerialize)
if errTop != nil {
return map[string]interface{}{}, errTop
}
if !IsNil(o.Attributes) {
toSerialize["attributes"] = o.Attributes
}
if !IsNil(o.MnsAgent) {
toSerialize["MnsAgent"] = o.MnsAgent
}
if !IsNil(o.PerfMetricJob) {
toSerialize["PerfMetricJob"] = o.PerfMetricJob
}
if !IsNil(o.ThresholdMonitor) {
toSerialize["ThresholdMonitor"] = o.ThresholdMonitor
}
if !IsNil(o.TraceJob) {
toSerialize["TraceJob"] = o.TraceJob
}
if !IsNil(o.NtfSubscriptionControl) {
toSerialize["NtfSubscriptionControl"] = o.NtfSubscriptionControl
}
if !IsNil(o.AlarmList) {
toSerialize["AlarmList"] = o.AlarmList
}
if !IsNil(o.FileDownloadJob) {
toSerialize["FileDownloadJob"] = o.FileDownloadJob
}
if !IsNil(o.Files) {
toSerialize["Files"] = o.Files
}
if !IsNil(o.MLTrainingFunction) {
toSerialize["MLTrainingFunction"] = o.MLTrainingFunction
}
return toSerialize, nil
}
type NullableManagedElementSingle struct {
value *ManagedElementSingle
isSet bool
}
func (v NullableManagedElementSingle) Get() *ManagedElementSingle {
return v.value
}
func (v *NullableManagedElementSingle) Set(val *ManagedElementSingle) {
v.value = val
v.isSet = true
}
func (v NullableManagedElementSingle) IsSet() bool {
return v.isSet
}
func (v *NullableManagedElementSingle) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableManagedElementSingle(val *ManagedElementSingle) *NullableManagedElementSingle {
return &NullableManagedElementSingle{value: val, isSet: true}
}
func (v NullableManagedElementSingle) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableManagedElementSingle) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}