This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_pcscf_info.go
450 lines (381 loc) · 12.7 KB
/
model_pcscf_info.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
/*
Ndccf_DataManagement
DCCF Data Management Service. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.1.0-alpha.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi_Ndccf_DataManagement
import (
"encoding/json"
)
// checks if the PcscfInfo type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &PcscfInfo{}
// PcscfInfo Information of a P-CSCF NF Instance
type PcscfInfo struct {
AccessType []AccessType `json:"accessType,omitempty"`
DnnList []string `json:"dnnList,omitempty"`
// Fully Qualified Domain Name
GmFqdn *string `json:"gmFqdn,omitempty"`
GmIpv4Addresses []string `json:"gmIpv4Addresses,omitempty"`
GmIpv6Addresses []Ipv6Addr `json:"gmIpv6Addresses,omitempty"`
// Fully Qualified Domain Name
MwFqdn *string `json:"mwFqdn,omitempty"`
MwIpv4Addresses []string `json:"mwIpv4Addresses,omitempty"`
MwIpv6Addresses []Ipv6Addr `json:"mwIpv6Addresses,omitempty"`
ServedIpv4AddressRanges []Ipv4AddressRange `json:"servedIpv4AddressRanges,omitempty"`
ServedIpv6PrefixRanges []Ipv6PrefixRange `json:"servedIpv6PrefixRanges,omitempty"`
}
// NewPcscfInfo instantiates a new PcscfInfo 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 NewPcscfInfo() *PcscfInfo {
this := PcscfInfo{}
return &this
}
// NewPcscfInfoWithDefaults instantiates a new PcscfInfo 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 NewPcscfInfoWithDefaults() *PcscfInfo {
this := PcscfInfo{}
return &this
}
// GetAccessType returns the AccessType field value if set, zero value otherwise.
func (o *PcscfInfo) GetAccessType() []AccessType {
if o == nil || IsNil(o.AccessType) {
var ret []AccessType
return ret
}
return o.AccessType
}
// GetAccessTypeOk returns a tuple with the AccessType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PcscfInfo) GetAccessTypeOk() ([]AccessType, bool) {
if o == nil || IsNil(o.AccessType) {
return nil, false
}
return o.AccessType, true
}
// HasAccessType returns a boolean if a field has been set.
func (o *PcscfInfo) HasAccessType() bool {
if o != nil && !IsNil(o.AccessType) {
return true
}
return false
}
// SetAccessType gets a reference to the given []AccessType and assigns it to the AccessType field.
func (o *PcscfInfo) SetAccessType(v []AccessType) {
o.AccessType = v
}
// GetDnnList returns the DnnList field value if set, zero value otherwise.
func (o *PcscfInfo) GetDnnList() []string {
if o == nil || IsNil(o.DnnList) {
var ret []string
return ret
}
return o.DnnList
}
// GetDnnListOk returns a tuple with the DnnList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PcscfInfo) GetDnnListOk() ([]string, bool) {
if o == nil || IsNil(o.DnnList) {
return nil, false
}
return o.DnnList, true
}
// HasDnnList returns a boolean if a field has been set.
func (o *PcscfInfo) HasDnnList() bool {
if o != nil && !IsNil(o.DnnList) {
return true
}
return false
}
// SetDnnList gets a reference to the given []string and assigns it to the DnnList field.
func (o *PcscfInfo) SetDnnList(v []string) {
o.DnnList = v
}
// GetGmFqdn returns the GmFqdn field value if set, zero value otherwise.
func (o *PcscfInfo) GetGmFqdn() string {
if o == nil || IsNil(o.GmFqdn) {
var ret string
return ret
}
return *o.GmFqdn
}
// GetGmFqdnOk returns a tuple with the GmFqdn field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PcscfInfo) GetGmFqdnOk() (*string, bool) {
if o == nil || IsNil(o.GmFqdn) {
return nil, false
}
return o.GmFqdn, true
}
// HasGmFqdn returns a boolean if a field has been set.
func (o *PcscfInfo) HasGmFqdn() bool {
if o != nil && !IsNil(o.GmFqdn) {
return true
}
return false
}
// SetGmFqdn gets a reference to the given string and assigns it to the GmFqdn field.
func (o *PcscfInfo) SetGmFqdn(v string) {
o.GmFqdn = &v
}
// GetGmIpv4Addresses returns the GmIpv4Addresses field value if set, zero value otherwise.
func (o *PcscfInfo) GetGmIpv4Addresses() []string {
if o == nil || IsNil(o.GmIpv4Addresses) {
var ret []string
return ret
}
return o.GmIpv4Addresses
}
// GetGmIpv4AddressesOk returns a tuple with the GmIpv4Addresses field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PcscfInfo) GetGmIpv4AddressesOk() ([]string, bool) {
if o == nil || IsNil(o.GmIpv4Addresses) {
return nil, false
}
return o.GmIpv4Addresses, true
}
// HasGmIpv4Addresses returns a boolean if a field has been set.
func (o *PcscfInfo) HasGmIpv4Addresses() bool {
if o != nil && !IsNil(o.GmIpv4Addresses) {
return true
}
return false
}
// SetGmIpv4Addresses gets a reference to the given []string and assigns it to the GmIpv4Addresses field.
func (o *PcscfInfo) SetGmIpv4Addresses(v []string) {
o.GmIpv4Addresses = v
}
// GetGmIpv6Addresses returns the GmIpv6Addresses field value if set, zero value otherwise.
func (o *PcscfInfo) GetGmIpv6Addresses() []Ipv6Addr {
if o == nil || IsNil(o.GmIpv6Addresses) {
var ret []Ipv6Addr
return ret
}
return o.GmIpv6Addresses
}
// GetGmIpv6AddressesOk returns a tuple with the GmIpv6Addresses field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PcscfInfo) GetGmIpv6AddressesOk() ([]Ipv6Addr, bool) {
if o == nil || IsNil(o.GmIpv6Addresses) {
return nil, false
}
return o.GmIpv6Addresses, true
}
// HasGmIpv6Addresses returns a boolean if a field has been set.
func (o *PcscfInfo) HasGmIpv6Addresses() bool {
if o != nil && !IsNil(o.GmIpv6Addresses) {
return true
}
return false
}
// SetGmIpv6Addresses gets a reference to the given []Ipv6Addr and assigns it to the GmIpv6Addresses field.
func (o *PcscfInfo) SetGmIpv6Addresses(v []Ipv6Addr) {
o.GmIpv6Addresses = v
}
// GetMwFqdn returns the MwFqdn field value if set, zero value otherwise.
func (o *PcscfInfo) GetMwFqdn() string {
if o == nil || IsNil(o.MwFqdn) {
var ret string
return ret
}
return *o.MwFqdn
}
// GetMwFqdnOk returns a tuple with the MwFqdn field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PcscfInfo) GetMwFqdnOk() (*string, bool) {
if o == nil || IsNil(o.MwFqdn) {
return nil, false
}
return o.MwFqdn, true
}
// HasMwFqdn returns a boolean if a field has been set.
func (o *PcscfInfo) HasMwFqdn() bool {
if o != nil && !IsNil(o.MwFqdn) {
return true
}
return false
}
// SetMwFqdn gets a reference to the given string and assigns it to the MwFqdn field.
func (o *PcscfInfo) SetMwFqdn(v string) {
o.MwFqdn = &v
}
// GetMwIpv4Addresses returns the MwIpv4Addresses field value if set, zero value otherwise.
func (o *PcscfInfo) GetMwIpv4Addresses() []string {
if o == nil || IsNil(o.MwIpv4Addresses) {
var ret []string
return ret
}
return o.MwIpv4Addresses
}
// GetMwIpv4AddressesOk returns a tuple with the MwIpv4Addresses field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PcscfInfo) GetMwIpv4AddressesOk() ([]string, bool) {
if o == nil || IsNil(o.MwIpv4Addresses) {
return nil, false
}
return o.MwIpv4Addresses, true
}
// HasMwIpv4Addresses returns a boolean if a field has been set.
func (o *PcscfInfo) HasMwIpv4Addresses() bool {
if o != nil && !IsNil(o.MwIpv4Addresses) {
return true
}
return false
}
// SetMwIpv4Addresses gets a reference to the given []string and assigns it to the MwIpv4Addresses field.
func (o *PcscfInfo) SetMwIpv4Addresses(v []string) {
o.MwIpv4Addresses = v
}
// GetMwIpv6Addresses returns the MwIpv6Addresses field value if set, zero value otherwise.
func (o *PcscfInfo) GetMwIpv6Addresses() []Ipv6Addr {
if o == nil || IsNil(o.MwIpv6Addresses) {
var ret []Ipv6Addr
return ret
}
return o.MwIpv6Addresses
}
// GetMwIpv6AddressesOk returns a tuple with the MwIpv6Addresses field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PcscfInfo) GetMwIpv6AddressesOk() ([]Ipv6Addr, bool) {
if o == nil || IsNil(o.MwIpv6Addresses) {
return nil, false
}
return o.MwIpv6Addresses, true
}
// HasMwIpv6Addresses returns a boolean if a field has been set.
func (o *PcscfInfo) HasMwIpv6Addresses() bool {
if o != nil && !IsNil(o.MwIpv6Addresses) {
return true
}
return false
}
// SetMwIpv6Addresses gets a reference to the given []Ipv6Addr and assigns it to the MwIpv6Addresses field.
func (o *PcscfInfo) SetMwIpv6Addresses(v []Ipv6Addr) {
o.MwIpv6Addresses = v
}
// GetServedIpv4AddressRanges returns the ServedIpv4AddressRanges field value if set, zero value otherwise.
func (o *PcscfInfo) GetServedIpv4AddressRanges() []Ipv4AddressRange {
if o == nil || IsNil(o.ServedIpv4AddressRanges) {
var ret []Ipv4AddressRange
return ret
}
return o.ServedIpv4AddressRanges
}
// GetServedIpv4AddressRangesOk returns a tuple with the ServedIpv4AddressRanges field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PcscfInfo) GetServedIpv4AddressRangesOk() ([]Ipv4AddressRange, bool) {
if o == nil || IsNil(o.ServedIpv4AddressRanges) {
return nil, false
}
return o.ServedIpv4AddressRanges, true
}
// HasServedIpv4AddressRanges returns a boolean if a field has been set.
func (o *PcscfInfo) HasServedIpv4AddressRanges() bool {
if o != nil && !IsNil(o.ServedIpv4AddressRanges) {
return true
}
return false
}
// SetServedIpv4AddressRanges gets a reference to the given []Ipv4AddressRange and assigns it to the ServedIpv4AddressRanges field.
func (o *PcscfInfo) SetServedIpv4AddressRanges(v []Ipv4AddressRange) {
o.ServedIpv4AddressRanges = v
}
// GetServedIpv6PrefixRanges returns the ServedIpv6PrefixRanges field value if set, zero value otherwise.
func (o *PcscfInfo) GetServedIpv6PrefixRanges() []Ipv6PrefixRange {
if o == nil || IsNil(o.ServedIpv6PrefixRanges) {
var ret []Ipv6PrefixRange
return ret
}
return o.ServedIpv6PrefixRanges
}
// GetServedIpv6PrefixRangesOk returns a tuple with the ServedIpv6PrefixRanges field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PcscfInfo) GetServedIpv6PrefixRangesOk() ([]Ipv6PrefixRange, bool) {
if o == nil || IsNil(o.ServedIpv6PrefixRanges) {
return nil, false
}
return o.ServedIpv6PrefixRanges, true
}
// HasServedIpv6PrefixRanges returns a boolean if a field has been set.
func (o *PcscfInfo) HasServedIpv6PrefixRanges() bool {
if o != nil && !IsNil(o.ServedIpv6PrefixRanges) {
return true
}
return false
}
// SetServedIpv6PrefixRanges gets a reference to the given []Ipv6PrefixRange and assigns it to the ServedIpv6PrefixRanges field.
func (o *PcscfInfo) SetServedIpv6PrefixRanges(v []Ipv6PrefixRange) {
o.ServedIpv6PrefixRanges = v
}
func (o PcscfInfo) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o PcscfInfo) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.AccessType) {
toSerialize["accessType"] = o.AccessType
}
if !IsNil(o.DnnList) {
toSerialize["dnnList"] = o.DnnList
}
if !IsNil(o.GmFqdn) {
toSerialize["gmFqdn"] = o.GmFqdn
}
if !IsNil(o.GmIpv4Addresses) {
toSerialize["gmIpv4Addresses"] = o.GmIpv4Addresses
}
if !IsNil(o.GmIpv6Addresses) {
toSerialize["gmIpv6Addresses"] = o.GmIpv6Addresses
}
if !IsNil(o.MwFqdn) {
toSerialize["mwFqdn"] = o.MwFqdn
}
if !IsNil(o.MwIpv4Addresses) {
toSerialize["mwIpv4Addresses"] = o.MwIpv4Addresses
}
if !IsNil(o.MwIpv6Addresses) {
toSerialize["mwIpv6Addresses"] = o.MwIpv6Addresses
}
if !IsNil(o.ServedIpv4AddressRanges) {
toSerialize["servedIpv4AddressRanges"] = o.ServedIpv4AddressRanges
}
if !IsNil(o.ServedIpv6PrefixRanges) {
toSerialize["servedIpv6PrefixRanges"] = o.ServedIpv6PrefixRanges
}
return toSerialize, nil
}
type NullablePcscfInfo struct {
value *PcscfInfo
isSet bool
}
func (v NullablePcscfInfo) Get() *PcscfInfo {
return v.value
}
func (v *NullablePcscfInfo) Set(val *PcscfInfo) {
v.value = val
v.isSet = true
}
func (v NullablePcscfInfo) IsSet() bool {
return v.isSet
}
func (v *NullablePcscfInfo) Unset() {
v.value = nil
v.isSet = false
}
func NewNullablePcscfInfo(val *PcscfInfo) *NullablePcscfInfo {
return &NullablePcscfInfo{value: val, isSet: true}
}
func (v NullablePcscfInfo) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullablePcscfInfo) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}