Ai
1 Star 0 Fork 0

MrCoder/openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
model_sm_context_created_data.go 13.79 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 +08:00 . update
/*
Nnef_SMContext
Nnef SMContext Service. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.1.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nnef_SMContext
import (
"encoding/json"
"fmt"
)
// checks if the SmContextCreatedData type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SmContextCreatedData{}
// SmContextCreatedData Representation of an Individual SM context successfully created.
type SmContextCreatedData struct {
// String identifying a Supi that shall contain either an IMSI, a network specific identifier, a Global Cable Identifier (GCI) or a Global Line Identifier (GLI) as specified in clause 2.2A of 3GPP TS 23.003. It shall be formatted as follows - for an IMSI \"imsi-<imsi>\", where <imsi> shall be formatted according to clause 2.2 of 3GPP TS 23.003 that describes an IMSI. - for a network specific identifier \"nai-<nai>, where <nai> shall be formatted according to clause 28.7.2 of 3GPP TS 23.003 that describes an NAI. - for a GCI \"gci-<gci>\", where <gci> shall be formatted according to clause 28.15.2 of 3GPP TS 23.003. - for a GLI \"gli-<gli>\", where <gli> shall be formatted according to clause 28.16.2 of 3GPP TS 23.003.To enable that the value is used as part of an URI, the string shall only contain characters allowed according to the \"lower-with-hyphen\" naming convention defined in 3GPP TS 29.501.
Supi string `json:"supi"`
// Unsigned integer identifying a PDU session, within the range 0 to 255, as specified in clause 11.2.3.1b, bits 1 to 8, of 3GPP TS 24.007. If the PDU Session ID is allocated by the Core Network for UEs not supporting N1 mode, reserved range 64 to 95 is used. PDU Session ID within the reserved range is only visible in the Core Network.
PduSessionId int32 `json:"pduSessionId"`
// String representing a Data Network as defined in clause 9A of 3GPP TS 23.003; it shall contain either a DNN Network Identifier, or a full DNN with both the Network Identifier and Operator Identifier, as specified in 3GPP TS 23.003 clause 9.1.1 and 9.1.2. It shall be coded as string in which the labels are separated by dots (e.g. \"Label1.Label2.Label3\").
Dnn string `json:"dnn"`
Snssai Snssai `json:"snssai"`
// This IE shall contain the NEF ID of the target NEF.
NefId string `json:"nefId"`
// When present, this IE shall indicate the NEF capability to support RDS. The value of this IE shall be set as following - true NEF supports RDS - false (default) NEF does not support RDS
RdsSupport *bool `json:"rdsSupport,omitempty"`
// When present, this IE shall indicate whether Extended Buffering applies or not. The value of this IE shall be set as following - true Extended Buffering applies - false (default) Extended Buffering does not apply
ExtBufSupport *bool `json:"extBufSupport,omitempty"`
// A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported.
SupportedFeatures *string `json:"supportedFeatures,omitempty"`
MaxPacketSize *int32 `json:"maxPacketSize,omitempty"`
}
type _SmContextCreatedData SmContextCreatedData
// NewSmContextCreatedData instantiates a new SmContextCreatedData 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 NewSmContextCreatedData(supi string, pduSessionId int32, dnn string, snssai Snssai, nefId string) *SmContextCreatedData {
this := SmContextCreatedData{}
this.Supi = supi
this.PduSessionId = pduSessionId
this.Dnn = dnn
this.Snssai = snssai
this.NefId = nefId
var rdsSupport bool = false
this.RdsSupport = &rdsSupport
var extBufSupport bool = false
this.ExtBufSupport = &extBufSupport
return &this
}
// NewSmContextCreatedDataWithDefaults instantiates a new SmContextCreatedData 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 NewSmContextCreatedDataWithDefaults() *SmContextCreatedData {
this := SmContextCreatedData{}
var rdsSupport bool = false
this.RdsSupport = &rdsSupport
var extBufSupport bool = false
this.ExtBufSupport = &extBufSupport
return &this
}
// GetSupi returns the Supi field value
func (o *SmContextCreatedData) GetSupi() string {
if o == nil {
var ret string
return ret
}
return o.Supi
}
// GetSupiOk returns a tuple with the Supi field value
// and a boolean to check if the value has been set.
func (o *SmContextCreatedData) GetSupiOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Supi, true
}
// SetSupi sets field value
func (o *SmContextCreatedData) SetSupi(v string) {
o.Supi = v
}
// GetPduSessionId returns the PduSessionId field value
func (o *SmContextCreatedData) GetPduSessionId() int32 {
if o == nil {
var ret int32
return ret
}
return o.PduSessionId
}
// GetPduSessionIdOk returns a tuple with the PduSessionId field value
// and a boolean to check if the value has been set.
func (o *SmContextCreatedData) GetPduSessionIdOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.PduSessionId, true
}
// SetPduSessionId sets field value
func (o *SmContextCreatedData) SetPduSessionId(v int32) {
o.PduSessionId = v
}
// GetDnn returns the Dnn field value
func (o *SmContextCreatedData) GetDnn() string {
if o == nil {
var ret string
return ret
}
return o.Dnn
}
// GetDnnOk returns a tuple with the Dnn field value
// and a boolean to check if the value has been set.
func (o *SmContextCreatedData) GetDnnOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Dnn, true
}
// SetDnn sets field value
func (o *SmContextCreatedData) SetDnn(v string) {
o.Dnn = v
}
// GetSnssai returns the Snssai field value
func (o *SmContextCreatedData) GetSnssai() Snssai {
if o == nil {
var ret Snssai
return ret
}
return o.Snssai
}
// GetSnssaiOk returns a tuple with the Snssai field value
// and a boolean to check if the value has been set.
func (o *SmContextCreatedData) GetSnssaiOk() (*Snssai, bool) {
if o == nil {
return nil, false
}
return &o.Snssai, true
}
// SetSnssai sets field value
func (o *SmContextCreatedData) SetSnssai(v Snssai) {
o.Snssai = v
}
// GetNefId returns the NefId field value
func (o *SmContextCreatedData) GetNefId() string {
if o == nil {
var ret string
return ret
}
return o.NefId
}
// GetNefIdOk returns a tuple with the NefId field value
// and a boolean to check if the value has been set.
func (o *SmContextCreatedData) GetNefIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.NefId, true
}
// SetNefId sets field value
func (o *SmContextCreatedData) SetNefId(v string) {
o.NefId = v
}
// GetRdsSupport returns the RdsSupport field value if set, zero value otherwise.
func (o *SmContextCreatedData) GetRdsSupport() bool {
if o == nil || IsNil(o.RdsSupport) {
var ret bool
return ret
}
return *o.RdsSupport
}
// GetRdsSupportOk returns a tuple with the RdsSupport field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SmContextCreatedData) GetRdsSupportOk() (*bool, bool) {
if o == nil || IsNil(o.RdsSupport) {
return nil, false
}
return o.RdsSupport, true
}
// HasRdsSupport returns a boolean if a field has been set.
func (o *SmContextCreatedData) HasRdsSupport() bool {
if o != nil && !IsNil(o.RdsSupport) {
return true
}
return false
}
// SetRdsSupport gets a reference to the given bool and assigns it to the RdsSupport field.
func (o *SmContextCreatedData) SetRdsSupport(v bool) {
o.RdsSupport = &v
}
// GetExtBufSupport returns the ExtBufSupport field value if set, zero value otherwise.
func (o *SmContextCreatedData) GetExtBufSupport() bool {
if o == nil || IsNil(o.ExtBufSupport) {
var ret bool
return ret
}
return *o.ExtBufSupport
}
// GetExtBufSupportOk returns a tuple with the ExtBufSupport field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SmContextCreatedData) GetExtBufSupportOk() (*bool, bool) {
if o == nil || IsNil(o.ExtBufSupport) {
return nil, false
}
return o.ExtBufSupport, true
}
// HasExtBufSupport returns a boolean if a field has been set.
func (o *SmContextCreatedData) HasExtBufSupport() bool {
if o != nil && !IsNil(o.ExtBufSupport) {
return true
}
return false
}
// SetExtBufSupport gets a reference to the given bool and assigns it to the ExtBufSupport field.
func (o *SmContextCreatedData) SetExtBufSupport(v bool) {
o.ExtBufSupport = &v
}
// GetSupportedFeatures returns the SupportedFeatures field value if set, zero value otherwise.
func (o *SmContextCreatedData) GetSupportedFeatures() string {
if o == nil || IsNil(o.SupportedFeatures) {
var ret string
return ret
}
return *o.SupportedFeatures
}
// GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SmContextCreatedData) GetSupportedFeaturesOk() (*string, bool) {
if o == nil || IsNil(o.SupportedFeatures) {
return nil, false
}
return o.SupportedFeatures, true
}
// HasSupportedFeatures returns a boolean if a field has been set.
func (o *SmContextCreatedData) HasSupportedFeatures() bool {
if o != nil && !IsNil(o.SupportedFeatures) {
return true
}
return false
}
// SetSupportedFeatures gets a reference to the given string and assigns it to the SupportedFeatures field.
func (o *SmContextCreatedData) SetSupportedFeatures(v string) {
o.SupportedFeatures = &v
}
// GetMaxPacketSize returns the MaxPacketSize field value if set, zero value otherwise.
func (o *SmContextCreatedData) GetMaxPacketSize() int32 {
if o == nil || IsNil(o.MaxPacketSize) {
var ret int32
return ret
}
return *o.MaxPacketSize
}
// GetMaxPacketSizeOk returns a tuple with the MaxPacketSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SmContextCreatedData) GetMaxPacketSizeOk() (*int32, bool) {
if o == nil || IsNil(o.MaxPacketSize) {
return nil, false
}
return o.MaxPacketSize, true
}
// HasMaxPacketSize returns a boolean if a field has been set.
func (o *SmContextCreatedData) HasMaxPacketSize() bool {
if o != nil && !IsNil(o.MaxPacketSize) {
return true
}
return false
}
// SetMaxPacketSize gets a reference to the given int32 and assigns it to the MaxPacketSize field.
func (o *SmContextCreatedData) SetMaxPacketSize(v int32) {
o.MaxPacketSize = &v
}
func (o SmContextCreatedData) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o SmContextCreatedData) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["supi"] = o.Supi
toSerialize["pduSessionId"] = o.PduSessionId
toSerialize["dnn"] = o.Dnn
toSerialize["snssai"] = o.Snssai
toSerialize["nefId"] = o.NefId
if !IsNil(o.RdsSupport) {
toSerialize["rdsSupport"] = o.RdsSupport
}
if !IsNil(o.ExtBufSupport) {
toSerialize["extBufSupport"] = o.ExtBufSupport
}
if !IsNil(o.SupportedFeatures) {
toSerialize["supportedFeatures"] = o.SupportedFeatures
}
if !IsNil(o.MaxPacketSize) {
toSerialize["maxPacketSize"] = o.MaxPacketSize
}
return toSerialize, nil
}
func (o *SmContextCreatedData) UnmarshalJSON(bytes []byte) (err error) {
// This validates that all required properties are included in the JSON object
// by unmarshalling the object into a generic map with string keys and checking
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"supi",
"pduSessionId",
"dnn",
"snssai",
"nefId",
}
allProperties := make(map[string]interface{})
err = json.Unmarshal(bytes, &allProperties)
if err != nil {
return err
}
for _, requiredProperty := range requiredProperties {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
varSmContextCreatedData := _SmContextCreatedData{}
err = json.Unmarshal(bytes, &varSmContextCreatedData)
if err != nil {
return err
}
*o = SmContextCreatedData(varSmContextCreatedData)
return err
}
type NullableSmContextCreatedData struct {
value *SmContextCreatedData
isSet bool
}
func (v NullableSmContextCreatedData) Get() *SmContextCreatedData {
return v.value
}
func (v *NullableSmContextCreatedData) Set(val *SmContextCreatedData) {
v.value = val
v.isSet = true
}
func (v NullableSmContextCreatedData) IsSet() bool {
return v.isSet
}
func (v *NullableSmContextCreatedData) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSmContextCreatedData(val *SmContextCreatedData) *NullableSmContextCreatedData {
return &NullableSmContextCreatedData{value: val, isSet: true}
}
func (v NullableSmContextCreatedData) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSmContextCreatedData) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/konglinglong/openapi.git
git@gitee.com:konglinglong/openapi.git
konglinglong
openapi
openapi
e403a3c726a4

搜索帮助