This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_managed_function_attr.go
304 lines (255 loc) · 9.55 KB
/
model_managed_function_attr.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
/*
3GPP Edge NRM
OAS 3.0.1 specification of the Edge NRM © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 17.1.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi_EdgeNrm
import (
"encoding/json"
)
// checks if the ManagedFunctionAttr type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ManagedFunctionAttr{}
// ManagedFunctionAttr struct for ManagedFunctionAttr
type ManagedFunctionAttr struct {
UserLabel *string `json:"userLabel,omitempty"`
VnfParametersList []VnfParameter `json:"vnfParametersList,omitempty"`
PeeParametersList []PeeParameter `json:"peeParametersList,omitempty"`
PriorityLabel *int32 `json:"priorityLabel,omitempty"`
SupportedPerfMetricGroups []SupportedPerfMetricGroup `json:"supportedPerfMetricGroups,omitempty"`
SupportedTraceMetrics []string `json:"supportedTraceMetrics,omitempty"`
}
// NewManagedFunctionAttr instantiates a new ManagedFunctionAttr 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 NewManagedFunctionAttr() *ManagedFunctionAttr {
this := ManagedFunctionAttr{}
return &this
}
// NewManagedFunctionAttrWithDefaults instantiates a new ManagedFunctionAttr 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 NewManagedFunctionAttrWithDefaults() *ManagedFunctionAttr {
this := ManagedFunctionAttr{}
return &this
}
// GetUserLabel returns the UserLabel field value if set, zero value otherwise.
func (o *ManagedFunctionAttr) GetUserLabel() string {
if o == nil || IsNil(o.UserLabel) {
var ret string
return ret
}
return *o.UserLabel
}
// GetUserLabelOk returns a tuple with the UserLabel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedFunctionAttr) GetUserLabelOk() (*string, bool) {
if o == nil || IsNil(o.UserLabel) {
return nil, false
}
return o.UserLabel, true
}
// HasUserLabel returns a boolean if a field has been set.
func (o *ManagedFunctionAttr) HasUserLabel() bool {
if o != nil && !IsNil(o.UserLabel) {
return true
}
return false
}
// SetUserLabel gets a reference to the given string and assigns it to the UserLabel field.
func (o *ManagedFunctionAttr) SetUserLabel(v string) {
o.UserLabel = &v
}
// GetVnfParametersList returns the VnfParametersList field value if set, zero value otherwise.
func (o *ManagedFunctionAttr) GetVnfParametersList() []VnfParameter {
if o == nil || IsNil(o.VnfParametersList) {
var ret []VnfParameter
return ret
}
return o.VnfParametersList
}
// GetVnfParametersListOk returns a tuple with the VnfParametersList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedFunctionAttr) GetVnfParametersListOk() ([]VnfParameter, bool) {
if o == nil || IsNil(o.VnfParametersList) {
return nil, false
}
return o.VnfParametersList, true
}
// HasVnfParametersList returns a boolean if a field has been set.
func (o *ManagedFunctionAttr) HasVnfParametersList() bool {
if o != nil && !IsNil(o.VnfParametersList) {
return true
}
return false
}
// SetVnfParametersList gets a reference to the given []VnfParameter and assigns it to the VnfParametersList field.
func (o *ManagedFunctionAttr) SetVnfParametersList(v []VnfParameter) {
o.VnfParametersList = v
}
// GetPeeParametersList returns the PeeParametersList field value if set, zero value otherwise.
func (o *ManagedFunctionAttr) GetPeeParametersList() []PeeParameter {
if o == nil || IsNil(o.PeeParametersList) {
var ret []PeeParameter
return ret
}
return o.PeeParametersList
}
// GetPeeParametersListOk returns a tuple with the PeeParametersList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedFunctionAttr) GetPeeParametersListOk() ([]PeeParameter, bool) {
if o == nil || IsNil(o.PeeParametersList) {
return nil, false
}
return o.PeeParametersList, true
}
// HasPeeParametersList returns a boolean if a field has been set.
func (o *ManagedFunctionAttr) HasPeeParametersList() bool {
if o != nil && !IsNil(o.PeeParametersList) {
return true
}
return false
}
// SetPeeParametersList gets a reference to the given []PeeParameter and assigns it to the PeeParametersList field.
func (o *ManagedFunctionAttr) SetPeeParametersList(v []PeeParameter) {
o.PeeParametersList = v
}
// GetPriorityLabel returns the PriorityLabel field value if set, zero value otherwise.
func (o *ManagedFunctionAttr) GetPriorityLabel() int32 {
if o == nil || IsNil(o.PriorityLabel) {
var ret int32
return ret
}
return *o.PriorityLabel
}
// GetPriorityLabelOk returns a tuple with the PriorityLabel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedFunctionAttr) GetPriorityLabelOk() (*int32, bool) {
if o == nil || IsNil(o.PriorityLabel) {
return nil, false
}
return o.PriorityLabel, true
}
// HasPriorityLabel returns a boolean if a field has been set.
func (o *ManagedFunctionAttr) HasPriorityLabel() bool {
if o != nil && !IsNil(o.PriorityLabel) {
return true
}
return false
}
// SetPriorityLabel gets a reference to the given int32 and assigns it to the PriorityLabel field.
func (o *ManagedFunctionAttr) SetPriorityLabel(v int32) {
o.PriorityLabel = &v
}
// GetSupportedPerfMetricGroups returns the SupportedPerfMetricGroups field value if set, zero value otherwise.
func (o *ManagedFunctionAttr) GetSupportedPerfMetricGroups() []SupportedPerfMetricGroup {
if o == nil || IsNil(o.SupportedPerfMetricGroups) {
var ret []SupportedPerfMetricGroup
return ret
}
return o.SupportedPerfMetricGroups
}
// GetSupportedPerfMetricGroupsOk returns a tuple with the SupportedPerfMetricGroups field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedFunctionAttr) GetSupportedPerfMetricGroupsOk() ([]SupportedPerfMetricGroup, bool) {
if o == nil || IsNil(o.SupportedPerfMetricGroups) {
return nil, false
}
return o.SupportedPerfMetricGroups, true
}
// HasSupportedPerfMetricGroups returns a boolean if a field has been set.
func (o *ManagedFunctionAttr) HasSupportedPerfMetricGroups() bool {
if o != nil && !IsNil(o.SupportedPerfMetricGroups) {
return true
}
return false
}
// SetSupportedPerfMetricGroups gets a reference to the given []SupportedPerfMetricGroup and assigns it to the SupportedPerfMetricGroups field.
func (o *ManagedFunctionAttr) SetSupportedPerfMetricGroups(v []SupportedPerfMetricGroup) {
o.SupportedPerfMetricGroups = v
}
// GetSupportedTraceMetrics returns the SupportedTraceMetrics field value if set, zero value otherwise.
func (o *ManagedFunctionAttr) GetSupportedTraceMetrics() []string {
if o == nil || IsNil(o.SupportedTraceMetrics) {
var ret []string
return ret
}
return o.SupportedTraceMetrics
}
// GetSupportedTraceMetricsOk returns a tuple with the SupportedTraceMetrics field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedFunctionAttr) GetSupportedTraceMetricsOk() ([]string, bool) {
if o == nil || IsNil(o.SupportedTraceMetrics) {
return nil, false
}
return o.SupportedTraceMetrics, true
}
// HasSupportedTraceMetrics returns a boolean if a field has been set.
func (o *ManagedFunctionAttr) HasSupportedTraceMetrics() bool {
if o != nil && !IsNil(o.SupportedTraceMetrics) {
return true
}
return false
}
// SetSupportedTraceMetrics gets a reference to the given []string and assigns it to the SupportedTraceMetrics field.
func (o *ManagedFunctionAttr) SetSupportedTraceMetrics(v []string) {
o.SupportedTraceMetrics = v
}
func (o ManagedFunctionAttr) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ManagedFunctionAttr) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.UserLabel) {
toSerialize["userLabel"] = o.UserLabel
}
if !IsNil(o.VnfParametersList) {
toSerialize["vnfParametersList"] = o.VnfParametersList
}
if !IsNil(o.PeeParametersList) {
toSerialize["peeParametersList"] = o.PeeParametersList
}
if !IsNil(o.PriorityLabel) {
toSerialize["priorityLabel"] = o.PriorityLabel
}
if !IsNil(o.SupportedPerfMetricGroups) {
toSerialize["supportedPerfMetricGroups"] = o.SupportedPerfMetricGroups
}
if !IsNil(o.SupportedTraceMetrics) {
toSerialize["supportedTraceMetrics"] = o.SupportedTraceMetrics
}
return toSerialize, nil
}
type NullableManagedFunctionAttr struct {
value *ManagedFunctionAttr
isSet bool
}
func (v NullableManagedFunctionAttr) Get() *ManagedFunctionAttr {
return v.value
}
func (v *NullableManagedFunctionAttr) Set(val *ManagedFunctionAttr) {
v.value = val
v.isSet = true
}
func (v NullableManagedFunctionAttr) IsSet() bool {
return v.isSet
}
func (v *NullableManagedFunctionAttr) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableManagedFunctionAttr(val *ManagedFunctionAttr) *NullableManagedFunctionAttr {
return &NullableManagedFunctionAttr{value: val, isSet: true}
}
func (v NullableManagedFunctionAttr) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableManagedFunctionAttr) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}