1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_uav_auth_info.go 15.12 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552
/*
Nnef_Authentication
NEF Auth Service. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.0.2
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nnef_Authentication
import (
"encoding/json"
"fmt"
)
// checks if the UAVAuthInfo type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &UAVAuthInfo{}
// UAVAuthInfo UAV auth data
type UAVAuthInfo struct {
// String identifying a Gpsi shall contain either an External Id or an MSISDN. It shall be formatted as follows -External Identifier= \"extid-'extid', where 'extid' shall be formatted according to clause 19.7.2 of 3GPP TS 23.003 that describes an External Identifier.
Gpsi string `json:"gpsi"`
ServiceLevelId string `json:"serviceLevelId"`
// String providing an URI formatted according to RFC 3986.
AuthNotificationURI *string `json:"authNotificationURI,omitempty"`
IpAddr NullableIpAddr `json:"ipAddr,omitempty"`
// String representing a Permanent Equipment Identifier that may contain - an IMEI or IMEISV, as specified in clause 6.2 of 3GPP TS 23.003; a MAC address for a 5G-RG or FN-RG via wireline access, with an indication that this address cannot be trusted for regulatory purpose if this address cannot be used as an Equipment Identifier of the FN-RG, as specified in clause 4.7.7 of 3GPP TS23.316. Examples are imei-012345678901234 or imeisv-0123456789012345.
Pei *string `json:"pei,omitempty"`
AuthServerAddress *string `json:"authServerAddress,omitempty"`
// Deprecated
AuthMsg *RefToBinaryData `json:"authMsg,omitempty"`
AuthContainer []AuthContainer `json:"authContainer,omitempty"`
UeLocInfo *UserLocation `json:"ueLocInfo,omitempty"`
// 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,omitempty"`
SNssai *ExtSnssai `json:"sNssai,omitempty"`
NfType NFType `json:"nfType"`
}
type _UAVAuthInfo UAVAuthInfo
// NewUAVAuthInfo instantiates a new UAVAuthInfo 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 NewUAVAuthInfo(gpsi string, serviceLevelId string, nfType NFType) *UAVAuthInfo {
this := UAVAuthInfo{}
this.Gpsi = gpsi
this.ServiceLevelId = serviceLevelId
this.NfType = nfType
return &this
}
// NewUAVAuthInfoWithDefaults instantiates a new UAVAuthInfo 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 NewUAVAuthInfoWithDefaults() *UAVAuthInfo {
this := UAVAuthInfo{}
return &this
}
// GetGpsi returns the Gpsi field value
func (o *UAVAuthInfo) GetGpsi() string {
if o == nil {
var ret string
return ret
}
return o.Gpsi
}
// GetGpsiOk returns a tuple with the Gpsi field value
// and a boolean to check if the value has been set.
func (o *UAVAuthInfo) GetGpsiOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Gpsi, true
}
// SetGpsi sets field value
func (o *UAVAuthInfo) SetGpsi(v string) {
o.Gpsi = v
}
// GetServiceLevelId returns the ServiceLevelId field value
func (o *UAVAuthInfo) GetServiceLevelId() string {
if o == nil {
var ret string
return ret
}
return o.ServiceLevelId
}
// GetServiceLevelIdOk returns a tuple with the ServiceLevelId field value
// and a boolean to check if the value has been set.
func (o *UAVAuthInfo) GetServiceLevelIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ServiceLevelId, true
}
// SetServiceLevelId sets field value
func (o *UAVAuthInfo) SetServiceLevelId(v string) {
o.ServiceLevelId = v
}
// GetAuthNotificationURI returns the AuthNotificationURI field value if set, zero value otherwise.
func (o *UAVAuthInfo) GetAuthNotificationURI() string {
if o == nil || IsNil(o.AuthNotificationURI) {
var ret string
return ret
}
return *o.AuthNotificationURI
}
// GetAuthNotificationURIOk returns a tuple with the AuthNotificationURI field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UAVAuthInfo) GetAuthNotificationURIOk() (*string, bool) {
if o == nil || IsNil(o.AuthNotificationURI) {
return nil, false
}
return o.AuthNotificationURI, true
}
// HasAuthNotificationURI returns a boolean if a field has been set.
func (o *UAVAuthInfo) HasAuthNotificationURI() bool {
if o != nil && !IsNil(o.AuthNotificationURI) {
return true
}
return false
}
// SetAuthNotificationURI gets a reference to the given string and assigns it to the AuthNotificationURI field.
func (o *UAVAuthInfo) SetAuthNotificationURI(v string) {
o.AuthNotificationURI = &v
}
// GetIpAddr returns the IpAddr field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UAVAuthInfo) GetIpAddr() IpAddr {
if o == nil || IsNil(o.IpAddr.Get()) {
var ret IpAddr
return ret
}
return *o.IpAddr.Get()
}
// GetIpAddrOk returns a tuple with the IpAddr field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *UAVAuthInfo) GetIpAddrOk() (*IpAddr, bool) {
if o == nil {
return nil, false
}
return o.IpAddr.Get(), o.IpAddr.IsSet()
}
// HasIpAddr returns a boolean if a field has been set.
func (o *UAVAuthInfo) HasIpAddr() bool {
if o != nil && o.IpAddr.IsSet() {
return true
}
return false
}
// SetIpAddr gets a reference to the given NullableIpAddr and assigns it to the IpAddr field.
func (o *UAVAuthInfo) SetIpAddr(v IpAddr) {
o.IpAddr.Set(&v)
}
// SetIpAddrNil sets the value for IpAddr to be an explicit nil
func (o *UAVAuthInfo) SetIpAddrNil() {
o.IpAddr.Set(nil)
}
// UnsetIpAddr ensures that no value is present for IpAddr, not even an explicit nil
func (o *UAVAuthInfo) UnsetIpAddr() {
o.IpAddr.Unset()
}
// GetPei returns the Pei field value if set, zero value otherwise.
func (o *UAVAuthInfo) GetPei() string {
if o == nil || IsNil(o.Pei) {
var ret string
return ret
}
return *o.Pei
}
// GetPeiOk returns a tuple with the Pei field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UAVAuthInfo) GetPeiOk() (*string, bool) {
if o == nil || IsNil(o.Pei) {
return nil, false
}
return o.Pei, true
}
// HasPei returns a boolean if a field has been set.
func (o *UAVAuthInfo) HasPei() bool {
if o != nil && !IsNil(o.Pei) {
return true
}
return false
}
// SetPei gets a reference to the given string and assigns it to the Pei field.
func (o *UAVAuthInfo) SetPei(v string) {
o.Pei = &v
}
// GetAuthServerAddress returns the AuthServerAddress field value if set, zero value otherwise.
func (o *UAVAuthInfo) GetAuthServerAddress() string {
if o == nil || IsNil(o.AuthServerAddress) {
var ret string
return ret
}
return *o.AuthServerAddress
}
// GetAuthServerAddressOk returns a tuple with the AuthServerAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UAVAuthInfo) GetAuthServerAddressOk() (*string, bool) {
if o == nil || IsNil(o.AuthServerAddress) {
return nil, false
}
return o.AuthServerAddress, true
}
// HasAuthServerAddress returns a boolean if a field has been set.
func (o *UAVAuthInfo) HasAuthServerAddress() bool {
if o != nil && !IsNil(o.AuthServerAddress) {
return true
}
return false
}
// SetAuthServerAddress gets a reference to the given string and assigns it to the AuthServerAddress field.
func (o *UAVAuthInfo) SetAuthServerAddress(v string) {
o.AuthServerAddress = &v
}
// GetAuthMsg returns the AuthMsg field value if set, zero value otherwise.
// Deprecated
func (o *UAVAuthInfo) GetAuthMsg() RefToBinaryData {
if o == nil || IsNil(o.AuthMsg) {
var ret RefToBinaryData
return ret
}
return *o.AuthMsg
}
// GetAuthMsgOk returns a tuple with the AuthMsg field value if set, nil otherwise
// and a boolean to check if the value has been set.
// Deprecated
func (o *UAVAuthInfo) GetAuthMsgOk() (*RefToBinaryData, bool) {
if o == nil || IsNil(o.AuthMsg) {
return nil, false
}
return o.AuthMsg, true
}
// HasAuthMsg returns a boolean if a field has been set.
func (o *UAVAuthInfo) HasAuthMsg() bool {
if o != nil && !IsNil(o.AuthMsg) {
return true
}
return false
}
// SetAuthMsg gets a reference to the given RefToBinaryData and assigns it to the AuthMsg field.
// Deprecated
func (o *UAVAuthInfo) SetAuthMsg(v RefToBinaryData) {
o.AuthMsg = &v
}
// GetAuthContainer returns the AuthContainer field value if set, zero value otherwise.
func (o *UAVAuthInfo) GetAuthContainer() []AuthContainer {
if o == nil || IsNil(o.AuthContainer) {
var ret []AuthContainer
return ret
}
return o.AuthContainer
}
// GetAuthContainerOk returns a tuple with the AuthContainer field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UAVAuthInfo) GetAuthContainerOk() ([]AuthContainer, bool) {
if o == nil || IsNil(o.AuthContainer) {
return nil, false
}
return o.AuthContainer, true
}
// HasAuthContainer returns a boolean if a field has been set.
func (o *UAVAuthInfo) HasAuthContainer() bool {
if o != nil && !IsNil(o.AuthContainer) {
return true
}
return false
}
// SetAuthContainer gets a reference to the given []AuthContainer and assigns it to the AuthContainer field.
func (o *UAVAuthInfo) SetAuthContainer(v []AuthContainer) {
o.AuthContainer = v
}
// GetUeLocInfo returns the UeLocInfo field value if set, zero value otherwise.
func (o *UAVAuthInfo) GetUeLocInfo() UserLocation {
if o == nil || IsNil(o.UeLocInfo) {
var ret UserLocation
return ret
}
return *o.UeLocInfo
}
// GetUeLocInfoOk returns a tuple with the UeLocInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UAVAuthInfo) GetUeLocInfoOk() (*UserLocation, bool) {
if o == nil || IsNil(o.UeLocInfo) {
return nil, false
}
return o.UeLocInfo, true
}
// HasUeLocInfo returns a boolean if a field has been set.
func (o *UAVAuthInfo) HasUeLocInfo() bool {
if o != nil && !IsNil(o.UeLocInfo) {
return true
}
return false
}
// SetUeLocInfo gets a reference to the given UserLocation and assigns it to the UeLocInfo field.
func (o *UAVAuthInfo) SetUeLocInfo(v UserLocation) {
o.UeLocInfo = &v
}
// GetDnn returns the Dnn field value if set, zero value otherwise.
func (o *UAVAuthInfo) GetDnn() string {
if o == nil || IsNil(o.Dnn) {
var ret string
return ret
}
return *o.Dnn
}
// GetDnnOk returns a tuple with the Dnn field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UAVAuthInfo) GetDnnOk() (*string, bool) {
if o == nil || IsNil(o.Dnn) {
return nil, false
}
return o.Dnn, true
}
// HasDnn returns a boolean if a field has been set.
func (o *UAVAuthInfo) HasDnn() bool {
if o != nil && !IsNil(o.Dnn) {
return true
}
return false
}
// SetDnn gets a reference to the given string and assigns it to the Dnn field.
func (o *UAVAuthInfo) SetDnn(v string) {
o.Dnn = &v
}
// GetSNssai returns the SNssai field value if set, zero value otherwise.
func (o *UAVAuthInfo) GetSNssai() ExtSnssai {
if o == nil || IsNil(o.SNssai) {
var ret ExtSnssai
return ret
}
return *o.SNssai
}
// GetSNssaiOk returns a tuple with the SNssai field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UAVAuthInfo) GetSNssaiOk() (*ExtSnssai, bool) {
if o == nil || IsNil(o.SNssai) {
return nil, false
}
return o.SNssai, true
}
// HasSNssai returns a boolean if a field has been set.
func (o *UAVAuthInfo) HasSNssai() bool {
if o != nil && !IsNil(o.SNssai) {
return true
}
return false
}
// SetSNssai gets a reference to the given ExtSnssai and assigns it to the SNssai field.
func (o *UAVAuthInfo) SetSNssai(v ExtSnssai) {
o.SNssai = &v
}
// GetNfType returns the NfType field value
func (o *UAVAuthInfo) GetNfType() NFType {
if o == nil {
var ret NFType
return ret
}
return o.NfType
}
// GetNfTypeOk returns a tuple with the NfType field value
// and a boolean to check if the value has been set.
func (o *UAVAuthInfo) GetNfTypeOk() (*NFType, bool) {
if o == nil {
return nil, false
}
return &o.NfType, true
}
// SetNfType sets field value
func (o *UAVAuthInfo) SetNfType(v NFType) {
o.NfType = v
}
func (o UAVAuthInfo) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o UAVAuthInfo) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["gpsi"] = o.Gpsi
toSerialize["serviceLevelId"] = o.ServiceLevelId
if !IsNil(o.AuthNotificationURI) {
toSerialize["authNotificationURI"] = o.AuthNotificationURI
}
if o.IpAddr.IsSet() {
toSerialize["ipAddr"] = o.IpAddr.Get()
}
if !IsNil(o.Pei) {
toSerialize["pei"] = o.Pei
}
if !IsNil(o.AuthServerAddress) {
toSerialize["authServerAddress"] = o.AuthServerAddress
}
if !IsNil(o.AuthMsg) {
toSerialize["authMsg"] = o.AuthMsg
}
if !IsNil(o.AuthContainer) {
toSerialize["authContainer"] = o.AuthContainer
}
if !IsNil(o.UeLocInfo) {
toSerialize["ueLocInfo"] = o.UeLocInfo
}
if !IsNil(o.Dnn) {
toSerialize["dnn"] = o.Dnn
}
if !IsNil(o.SNssai) {
toSerialize["sNssai"] = o.SNssai
}
toSerialize["nfType"] = o.NfType
return toSerialize, nil
}
func (o *UAVAuthInfo) 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{
"gpsi",
"serviceLevelId",
"nfType",
}
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)
}
}
varUAVAuthInfo := _UAVAuthInfo{}
err = json.Unmarshal(bytes, &varUAVAuthInfo)
if err != nil {
return err
}
*o = UAVAuthInfo(varUAVAuthInfo)
return err
}
type NullableUAVAuthInfo struct {
value *UAVAuthInfo
isSet bool
}
func (v NullableUAVAuthInfo) Get() *UAVAuthInfo {
return v.value
}
func (v *NullableUAVAuthInfo) Set(val *UAVAuthInfo) {
v.value = val
v.isSet = true
}
func (v NullableUAVAuthInfo) IsSet() bool {
return v.isSet
}
func (v *NullableUAVAuthInfo) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableUAVAuthInfo(val *UAVAuthInfo) *NullableUAVAuthInfo {
return &NullableUAVAuthInfo{value: val, isSet: true}
}
func (v NullableUAVAuthInfo) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableUAVAuthInfo) 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

搜索帮助