1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_smf_registration_modification.go 7.33 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
/*
Nudm_UECM
Nudm Context Management Service. © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.2.4
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nudm_UECM
import (
"encoding/json"
"fmt"
)
// checks if the SmfRegistrationModification type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SmfRegistrationModification{}
// SmfRegistrationModification Contains attributes of SmfRegistration that can be modified using PATCH
type SmfRegistrationModification struct {
// String uniquely identifying a NF instance. The format of the NF Instance ID shall be a Universally Unique Identifier (UUID) version 4, as described in IETF RFC 4122.
SmfInstanceId string `json:"smfInstanceId"`
// NF Set Identifier (see clause 28.12 of 3GPP TS 23.003), formatted as the following string \"set<Set ID>.<nftype>set.5gc.mnc<MNC>.mcc<MCC>\", or \"set<SetID>.<NFType>set.5gc.nid<NID>.mnc<MNC>.mcc<MCC>\" with <MCC> encoded as defined in clause 5.4.2 (\"Mcc\" data type definition) <MNC> encoding the Mobile Network Code part of the PLMN, comprising 3 digits. If there are only 2 significant digits in the MNC, one \"0\" digit shall be inserted at the left side to fill the 3 digits coding of MNC. Pattern: '^[0-9]{3}$' <NFType> encoded as a value defined in Table 6.1.6.3.3-1 of 3GPP TS 29.510 but with lower case characters <Set ID> encoded as a string of characters consisting of alphabetic characters (A-Z and a-z), digits (0-9) and/or the hyphen (-) and that shall end with either an alphabetic character or a digit.
SmfSetId *string `json:"smfSetId,omitempty"`
// Fully Qualified Domain Name
PgwFqdn *string `json:"pgwFqdn,omitempty"`
}
type _SmfRegistrationModification SmfRegistrationModification
// NewSmfRegistrationModification instantiates a new SmfRegistrationModification 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 NewSmfRegistrationModification(smfInstanceId string) *SmfRegistrationModification {
this := SmfRegistrationModification{}
this.SmfInstanceId = smfInstanceId
return &this
}
// NewSmfRegistrationModificationWithDefaults instantiates a new SmfRegistrationModification 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 NewSmfRegistrationModificationWithDefaults() *SmfRegistrationModification {
this := SmfRegistrationModification{}
return &this
}
// GetSmfInstanceId returns the SmfInstanceId field value
func (o *SmfRegistrationModification) GetSmfInstanceId() string {
if o == nil {
var ret string
return ret
}
return o.SmfInstanceId
}
// GetSmfInstanceIdOk returns a tuple with the SmfInstanceId field value
// and a boolean to check if the value has been set.
func (o *SmfRegistrationModification) GetSmfInstanceIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.SmfInstanceId, true
}
// SetSmfInstanceId sets field value
func (o *SmfRegistrationModification) SetSmfInstanceId(v string) {
o.SmfInstanceId = v
}
// GetSmfSetId returns the SmfSetId field value if set, zero value otherwise.
func (o *SmfRegistrationModification) GetSmfSetId() string {
if o == nil || IsNil(o.SmfSetId) {
var ret string
return ret
}
return *o.SmfSetId
}
// GetSmfSetIdOk returns a tuple with the SmfSetId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SmfRegistrationModification) GetSmfSetIdOk() (*string, bool) {
if o == nil || IsNil(o.SmfSetId) {
return nil, false
}
return o.SmfSetId, true
}
// HasSmfSetId returns a boolean if a field has been set.
func (o *SmfRegistrationModification) HasSmfSetId() bool {
if o != nil && !IsNil(o.SmfSetId) {
return true
}
return false
}
// SetSmfSetId gets a reference to the given string and assigns it to the SmfSetId field.
func (o *SmfRegistrationModification) SetSmfSetId(v string) {
o.SmfSetId = &v
}
// GetPgwFqdn returns the PgwFqdn field value if set, zero value otherwise.
func (o *SmfRegistrationModification) GetPgwFqdn() string {
if o == nil || IsNil(o.PgwFqdn) {
var ret string
return ret
}
return *o.PgwFqdn
}
// GetPgwFqdnOk returns a tuple with the PgwFqdn field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SmfRegistrationModification) GetPgwFqdnOk() (*string, bool) {
if o == nil || IsNil(o.PgwFqdn) {
return nil, false
}
return o.PgwFqdn, true
}
// HasPgwFqdn returns a boolean if a field has been set.
func (o *SmfRegistrationModification) HasPgwFqdn() bool {
if o != nil && !IsNil(o.PgwFqdn) {
return true
}
return false
}
// SetPgwFqdn gets a reference to the given string and assigns it to the PgwFqdn field.
func (o *SmfRegistrationModification) SetPgwFqdn(v string) {
o.PgwFqdn = &v
}
func (o SmfRegistrationModification) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o SmfRegistrationModification) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["smfInstanceId"] = o.SmfInstanceId
if !IsNil(o.SmfSetId) {
toSerialize["smfSetId"] = o.SmfSetId
}
if !IsNil(o.PgwFqdn) {
toSerialize["pgwFqdn"] = o.PgwFqdn
}
return toSerialize, nil
}
func (o *SmfRegistrationModification) 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{
"smfInstanceId",
}
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)
}
}
varSmfRegistrationModification := _SmfRegistrationModification{}
err = json.Unmarshal(bytes, &varSmfRegistrationModification)
if err != nil {
return err
}
*o = SmfRegistrationModification(varSmfRegistrationModification)
return err
}
type NullableSmfRegistrationModification struct {
value *SmfRegistrationModification
isSet bool
}
func (v NullableSmfRegistrationModification) Get() *SmfRegistrationModification {
return v.value
}
func (v *NullableSmfRegistrationModification) Set(val *SmfRegistrationModification) {
v.value = val
v.isSet = true
}
func (v NullableSmfRegistrationModification) IsSet() bool {
return v.isSet
}
func (v *NullableSmfRegistrationModification) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSmfRegistrationModification(val *SmfRegistrationModification) *NullableSmfRegistrationModification {
return &NullableSmfRegistrationModification{value: val, isSet: true}
}
func (v NullableSmfRegistrationModification) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSmfRegistrationModification) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
Go
1
https://gitee.com/konglinglong/openapi.git
git@gitee.com:konglinglong/openapi.git
konglinglong
openapi
openapi
e403a3c726a4

搜索帮助