1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_location_subscription.go 18.36 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594
/*
EES UE Location Information_API
API for EES UE Location Information. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Eees_UELocation
import (
"encoding/json"
"fmt"
"time"
)
// checks if the LocationSubscription type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &LocationSubscription{}
// LocationSubscription Represents an Individual Location Information Subscription.
type LocationSubscription struct {
// Identifier of the EAS subscribing for location information report.
EasId string `json:"easId"`
// 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.
UeId *string `json:"ueId,omitempty"`
// String identifying a group of devices network internal globally unique ID which identifies a set of IMSIs, as specified in clause 19.9 of 3GPP TS 23.003.
IntGrpId *string `json:"intGrpId,omitempty"`
// String identifying External Group Identifier that identifies a group made up of one or more subscriptions associated to a group of IMSIs, as specified in clause 19.7.3 of 3GPP TS 23.003.
ExtGrpId *string `json:"extGrpId,omitempty"`
// string with format \"date-time\" as defined in OpenAPI.
ExpTime *time.Time `json:"expTime,omitempty"`
LocGran *Accuracy `json:"locGran,omitempty"`
LocQos *LocationQoS `json:"locQos,omitempty"`
EventReq *ReportingInformation `json:"eventReq,omitempty"`
// string providing an URI formatted according to IETF RFC 3986.
NotificationDestination *string `json:"notificationDestination,omitempty"`
// Set to true by the EAS to request the EES to send a test notification. Set to false or omitted otherwise.
RequestTestNotification *bool `json:"requestTestNotification,omitempty"`
// string providing an URI formatted according to IETF RFC 3986.
RevocationNotifUri *string `json:"revocationNotifUri,omitempty"`
WebsockNotifConfig *WebsockNotifConfig `json:"websockNotifConfig,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.
SuppFeat *string `json:"suppFeat,omitempty"`
}
type _LocationSubscription LocationSubscription
// NewLocationSubscription instantiates a new LocationSubscription 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 NewLocationSubscription(easId string) *LocationSubscription {
this := LocationSubscription{}
return &this
}
// NewLocationSubscriptionWithDefaults instantiates a new LocationSubscription 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 NewLocationSubscriptionWithDefaults() *LocationSubscription {
this := LocationSubscription{}
return &this
}
// GetEasId returns the EasId field value
func (o *LocationSubscription) GetEasId() string {
if o == nil {
var ret string
return ret
}
return o.EasId
}
// GetEasIdOk returns a tuple with the EasId field value
// and a boolean to check if the value has been set.
func (o *LocationSubscription) GetEasIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.EasId, true
}
// SetEasId sets field value
func (o *LocationSubscription) SetEasId(v string) {
o.EasId = v
}
// GetUeId returns the UeId field value if set, zero value otherwise.
func (o *LocationSubscription) GetUeId() string {
if o == nil || IsNil(o.UeId) {
var ret string
return ret
}
return *o.UeId
}
// GetUeIdOk returns a tuple with the UeId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationSubscription) GetUeIdOk() (*string, bool) {
if o == nil || IsNil(o.UeId) {
return nil, false
}
return o.UeId, true
}
// HasUeId returns a boolean if a field has been set.
func (o *LocationSubscription) HasUeId() bool {
if o != nil && !IsNil(o.UeId) {
return true
}
return false
}
// SetUeId gets a reference to the given string and assigns it to the UeId field.
func (o *LocationSubscription) SetUeId(v string) {
o.UeId = &v
}
// GetIntGrpId returns the IntGrpId field value if set, zero value otherwise.
func (o *LocationSubscription) GetIntGrpId() string {
if o == nil || IsNil(o.IntGrpId) {
var ret string
return ret
}
return *o.IntGrpId
}
// GetIntGrpIdOk returns a tuple with the IntGrpId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationSubscription) GetIntGrpIdOk() (*string, bool) {
if o == nil || IsNil(o.IntGrpId) {
return nil, false
}
return o.IntGrpId, true
}
// HasIntGrpId returns a boolean if a field has been set.
func (o *LocationSubscription) HasIntGrpId() bool {
if o != nil && !IsNil(o.IntGrpId) {
return true
}
return false
}
// SetIntGrpId gets a reference to the given string and assigns it to the IntGrpId field.
func (o *LocationSubscription) SetIntGrpId(v string) {
o.IntGrpId = &v
}
// GetExtGrpId returns the ExtGrpId field value if set, zero value otherwise.
func (o *LocationSubscription) GetExtGrpId() string {
if o == nil || IsNil(o.ExtGrpId) {
var ret string
return ret
}
return *o.ExtGrpId
}
// GetExtGrpIdOk returns a tuple with the ExtGrpId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationSubscription) GetExtGrpIdOk() (*string, bool) {
if o == nil || IsNil(o.ExtGrpId) {
return nil, false
}
return o.ExtGrpId, true
}
// HasExtGrpId returns a boolean if a field has been set.
func (o *LocationSubscription) HasExtGrpId() bool {
if o != nil && !IsNil(o.ExtGrpId) {
return true
}
return false
}
// SetExtGrpId gets a reference to the given string and assigns it to the ExtGrpId field.
func (o *LocationSubscription) SetExtGrpId(v string) {
o.ExtGrpId = &v
}
// GetExpTime returns the ExpTime field value if set, zero value otherwise.
func (o *LocationSubscription) GetExpTime() time.Time {
if o == nil || IsNil(o.ExpTime) {
var ret time.Time
return ret
}
return *o.ExpTime
}
// GetExpTimeOk returns a tuple with the ExpTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationSubscription) GetExpTimeOk() (*time.Time, bool) {
if o == nil || IsNil(o.ExpTime) {
return nil, false
}
return o.ExpTime, true
}
// HasExpTime returns a boolean if a field has been set.
func (o *LocationSubscription) HasExpTime() bool {
if o != nil && !IsNil(o.ExpTime) {
return true
}
return false
}
// SetExpTime gets a reference to the given time.Time and assigns it to the ExpTime field.
func (o *LocationSubscription) SetExpTime(v time.Time) {
o.ExpTime = &v
}
// GetLocGran returns the LocGran field value if set, zero value otherwise.
func (o *LocationSubscription) GetLocGran() Accuracy {
if o == nil || IsNil(o.LocGran) {
var ret Accuracy
return ret
}
return *o.LocGran
}
// GetLocGranOk returns a tuple with the LocGran field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationSubscription) GetLocGranOk() (*Accuracy, bool) {
if o == nil || IsNil(o.LocGran) {
return nil, false
}
return o.LocGran, true
}
// HasLocGran returns a boolean if a field has been set.
func (o *LocationSubscription) HasLocGran() bool {
if o != nil && !IsNil(o.LocGran) {
return true
}
return false
}
// SetLocGran gets a reference to the given Accuracy and assigns it to the LocGran field.
func (o *LocationSubscription) SetLocGran(v Accuracy) {
o.LocGran = &v
}
// GetLocQos returns the LocQos field value if set, zero value otherwise.
func (o *LocationSubscription) GetLocQos() LocationQoS {
if o == nil || IsNil(o.LocQos) {
var ret LocationQoS
return ret
}
return *o.LocQos
}
// GetLocQosOk returns a tuple with the LocQos field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationSubscription) GetLocQosOk() (*LocationQoS, bool) {
if o == nil || IsNil(o.LocQos) {
return nil, false
}
return o.LocQos, true
}
// HasLocQos returns a boolean if a field has been set.
func (o *LocationSubscription) HasLocQos() bool {
if o != nil && !IsNil(o.LocQos) {
return true
}
return false
}
// SetLocQos gets a reference to the given LocationQoS and assigns it to the LocQos field.
func (o *LocationSubscription) SetLocQos(v LocationQoS) {
o.LocQos = &v
}
// GetEventReq returns the EventReq field value if set, zero value otherwise.
func (o *LocationSubscription) GetEventReq() ReportingInformation {
if o == nil || IsNil(o.EventReq) {
var ret ReportingInformation
return ret
}
return *o.EventReq
}
// GetEventReqOk returns a tuple with the EventReq field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationSubscription) GetEventReqOk() (*ReportingInformation, bool) {
if o == nil || IsNil(o.EventReq) {
return nil, false
}
return o.EventReq, true
}
// HasEventReq returns a boolean if a field has been set.
func (o *LocationSubscription) HasEventReq() bool {
if o != nil && !IsNil(o.EventReq) {
return true
}
return false
}
// SetEventReq gets a reference to the given ReportingInformation and assigns it to the EventReq field.
func (o *LocationSubscription) SetEventReq(v ReportingInformation) {
o.EventReq = &v
}
// GetNotificationDestination returns the NotificationDestination field value if set, zero value otherwise.
func (o *LocationSubscription) GetNotificationDestination() string {
if o == nil || IsNil(o.NotificationDestination) {
var ret string
return ret
}
return *o.NotificationDestination
}
// GetNotificationDestinationOk returns a tuple with the NotificationDestination field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationSubscription) GetNotificationDestinationOk() (*string, bool) {
if o == nil || IsNil(o.NotificationDestination) {
return nil, false
}
return o.NotificationDestination, true
}
// HasNotificationDestination returns a boolean if a field has been set.
func (o *LocationSubscription) HasNotificationDestination() bool {
if o != nil && !IsNil(o.NotificationDestination) {
return true
}
return false
}
// SetNotificationDestination gets a reference to the given string and assigns it to the NotificationDestination field.
func (o *LocationSubscription) SetNotificationDestination(v string) {
o.NotificationDestination = &v
}
// GetRequestTestNotification returns the RequestTestNotification field value if set, zero value otherwise.
func (o *LocationSubscription) GetRequestTestNotification() bool {
if o == nil || IsNil(o.RequestTestNotification) {
var ret bool
return ret
}
return *o.RequestTestNotification
}
// GetRequestTestNotificationOk returns a tuple with the RequestTestNotification field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationSubscription) GetRequestTestNotificationOk() (*bool, bool) {
if o == nil || IsNil(o.RequestTestNotification) {
return nil, false
}
return o.RequestTestNotification, true
}
// HasRequestTestNotification returns a boolean if a field has been set.
func (o *LocationSubscription) HasRequestTestNotification() bool {
if o != nil && !IsNil(o.RequestTestNotification) {
return true
}
return false
}
// SetRequestTestNotification gets a reference to the given bool and assigns it to the RequestTestNotification field.
func (o *LocationSubscription) SetRequestTestNotification(v bool) {
o.RequestTestNotification = &v
}
// GetRevocationNotifUri returns the RevocationNotifUri field value if set, zero value otherwise.
func (o *LocationSubscription) GetRevocationNotifUri() string {
if o == nil || IsNil(o.RevocationNotifUri) {
var ret string
return ret
}
return *o.RevocationNotifUri
}
// GetRevocationNotifUriOk returns a tuple with the RevocationNotifUri field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationSubscription) GetRevocationNotifUriOk() (*string, bool) {
if o == nil || IsNil(o.RevocationNotifUri) {
return nil, false
}
return o.RevocationNotifUri, true
}
// HasRevocationNotifUri returns a boolean if a field has been set.
func (o *LocationSubscription) HasRevocationNotifUri() bool {
if o != nil && !IsNil(o.RevocationNotifUri) {
return true
}
return false
}
// SetRevocationNotifUri gets a reference to the given string and assigns it to the RevocationNotifUri field.
func (o *LocationSubscription) SetRevocationNotifUri(v string) {
o.RevocationNotifUri = &v
}
// GetWebsockNotifConfig returns the WebsockNotifConfig field value if set, zero value otherwise.
func (o *LocationSubscription) GetWebsockNotifConfig() WebsockNotifConfig {
if o == nil || IsNil(o.WebsockNotifConfig) {
var ret WebsockNotifConfig
return ret
}
return *o.WebsockNotifConfig
}
// GetWebsockNotifConfigOk returns a tuple with the WebsockNotifConfig field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationSubscription) GetWebsockNotifConfigOk() (*WebsockNotifConfig, bool) {
if o == nil || IsNil(o.WebsockNotifConfig) {
return nil, false
}
return o.WebsockNotifConfig, true
}
// HasWebsockNotifConfig returns a boolean if a field has been set.
func (o *LocationSubscription) HasWebsockNotifConfig() bool {
if o != nil && !IsNil(o.WebsockNotifConfig) {
return true
}
return false
}
// SetWebsockNotifConfig gets a reference to the given WebsockNotifConfig and assigns it to the WebsockNotifConfig field.
func (o *LocationSubscription) SetWebsockNotifConfig(v WebsockNotifConfig) {
o.WebsockNotifConfig = &v
}
// GetSuppFeat returns the SuppFeat field value if set, zero value otherwise.
func (o *LocationSubscription) GetSuppFeat() string {
if o == nil || IsNil(o.SuppFeat) {
var ret string
return ret
}
return *o.SuppFeat
}
// GetSuppFeatOk returns a tuple with the SuppFeat field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationSubscription) GetSuppFeatOk() (*string, bool) {
if o == nil || IsNil(o.SuppFeat) {
return nil, false
}
return o.SuppFeat, true
}
// HasSuppFeat returns a boolean if a field has been set.
func (o *LocationSubscription) HasSuppFeat() bool {
if o != nil && !IsNil(o.SuppFeat) {
return true
}
return false
}
// SetSuppFeat gets a reference to the given string and assigns it to the SuppFeat field.
func (o *LocationSubscription) SetSuppFeat(v string) {
o.SuppFeat = &v
}
func (o LocationSubscription) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o LocationSubscription) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["easId"] = o.EasId
if !IsNil(o.UeId) {
toSerialize["ueId"] = o.UeId
}
if !IsNil(o.IntGrpId) {
toSerialize["intGrpId"] = o.IntGrpId
}
if !IsNil(o.ExtGrpId) {
toSerialize["extGrpId"] = o.ExtGrpId
}
if !IsNil(o.ExpTime) {
toSerialize["expTime"] = o.ExpTime
}
if !IsNil(o.LocGran) {
toSerialize["locGran"] = o.LocGran
}
if !IsNil(o.LocQos) {
toSerialize["locQos"] = o.LocQos
}
if !IsNil(o.EventReq) {
toSerialize["eventReq"] = o.EventReq
}
if !IsNil(o.NotificationDestination) {
toSerialize["notificationDestination"] = o.NotificationDestination
}
if !IsNil(o.RequestTestNotification) {
toSerialize["requestTestNotification"] = o.RequestTestNotification
}
if !IsNil(o.RevocationNotifUri) {
toSerialize["revocationNotifUri"] = o.RevocationNotifUri
}
if !IsNil(o.WebsockNotifConfig) {
toSerialize["websockNotifConfig"] = o.WebsockNotifConfig
}
if !IsNil(o.SuppFeat) {
toSerialize["suppFeat"] = o.SuppFeat
}
return toSerialize, nil
}
func (o *LocationSubscription) 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{
"easId",
}
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)
}
}
varLocationSubscription := _LocationSubscription{}
err = json.Unmarshal(bytes, &varLocationSubscription)
if err != nil {
return err
}
*o = LocationSubscription(varLocationSubscription)
return err
}
type NullableLocationSubscription struct {
value *LocationSubscription
isSet bool
}
func (v NullableLocationSubscription) Get() *LocationSubscription {
return v.value
}
func (v *NullableLocationSubscription) Set(val *LocationSubscription) {
v.value = val
v.isSet = true
}
func (v NullableLocationSubscription) IsSet() bool {
return v.isSet
}
func (v *NullableLocationSubscription) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableLocationSubscription(val *LocationSubscription) *NullableLocationSubscription {
return &NullableLocationSubscription{value: val, isSet: true}
}
func (v NullableLocationSubscription) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableLocationSubscription) 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

搜索帮助