Bump libre-graph-go to latest main branch
To get sharing endpoints and audio/photo/location facets
This commit is contained in:
committed by
Ralf Haferkamp
parent
62d8a03400
commit
b436e49f19
+35
-24
@@ -14,6 +14,9 @@ import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the IdentitySet type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &IdentitySet{}
|
||||
|
||||
// IdentitySet Optional. User account.
|
||||
type IdentitySet struct {
|
||||
Application *Identity `json:"application,omitempty"`
|
||||
@@ -41,7 +44,7 @@ func NewIdentitySetWithDefaults() *IdentitySet {
|
||||
|
||||
// GetApplication returns the Application field value if set, zero value otherwise.
|
||||
func (o *IdentitySet) GetApplication() Identity {
|
||||
if o == nil || o.Application == nil {
|
||||
if o == nil || IsNil(o.Application) {
|
||||
var ret Identity
|
||||
return ret
|
||||
}
|
||||
@@ -51,7 +54,7 @@ func (o *IdentitySet) GetApplication() Identity {
|
||||
// GetApplicationOk returns a tuple with the Application field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *IdentitySet) GetApplicationOk() (*Identity, bool) {
|
||||
if o == nil || o.Application == nil {
|
||||
if o == nil || IsNil(o.Application) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Application, true
|
||||
@@ -59,7 +62,7 @@ func (o *IdentitySet) GetApplicationOk() (*Identity, bool) {
|
||||
|
||||
// HasApplication returns a boolean if a field has been set.
|
||||
func (o *IdentitySet) HasApplication() bool {
|
||||
if o != nil && o.Application != nil {
|
||||
if o != nil && !IsNil(o.Application) {
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -73,7 +76,7 @@ func (o *IdentitySet) SetApplication(v Identity) {
|
||||
|
||||
// GetDevice returns the Device field value if set, zero value otherwise.
|
||||
func (o *IdentitySet) GetDevice() Identity {
|
||||
if o == nil || o.Device == nil {
|
||||
if o == nil || IsNil(o.Device) {
|
||||
var ret Identity
|
||||
return ret
|
||||
}
|
||||
@@ -83,7 +86,7 @@ func (o *IdentitySet) GetDevice() Identity {
|
||||
// GetDeviceOk returns a tuple with the Device field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *IdentitySet) GetDeviceOk() (*Identity, bool) {
|
||||
if o == nil || o.Device == nil {
|
||||
if o == nil || IsNil(o.Device) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Device, true
|
||||
@@ -91,7 +94,7 @@ func (o *IdentitySet) GetDeviceOk() (*Identity, bool) {
|
||||
|
||||
// HasDevice returns a boolean if a field has been set.
|
||||
func (o *IdentitySet) HasDevice() bool {
|
||||
if o != nil && o.Device != nil {
|
||||
if o != nil && !IsNil(o.Device) {
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -105,7 +108,7 @@ func (o *IdentitySet) SetDevice(v Identity) {
|
||||
|
||||
// GetUser returns the User field value if set, zero value otherwise.
|
||||
func (o *IdentitySet) GetUser() Identity {
|
||||
if o == nil || o.User == nil {
|
||||
if o == nil || IsNil(o.User) {
|
||||
var ret Identity
|
||||
return ret
|
||||
}
|
||||
@@ -115,7 +118,7 @@ func (o *IdentitySet) GetUser() Identity {
|
||||
// GetUserOk returns a tuple with the User field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *IdentitySet) GetUserOk() (*Identity, bool) {
|
||||
if o == nil || o.User == nil {
|
||||
if o == nil || IsNil(o.User) {
|
||||
return nil, false
|
||||
}
|
||||
return o.User, true
|
||||
@@ -123,7 +126,7 @@ func (o *IdentitySet) GetUserOk() (*Identity, bool) {
|
||||
|
||||
// HasUser returns a boolean if a field has been set.
|
||||
func (o *IdentitySet) HasUser() bool {
|
||||
if o != nil && o.User != nil {
|
||||
if o != nil && !IsNil(o.User) {
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -137,7 +140,7 @@ func (o *IdentitySet) SetUser(v Identity) {
|
||||
|
||||
// GetGroup returns the Group field value if set, zero value otherwise.
|
||||
func (o *IdentitySet) GetGroup() Identity {
|
||||
if o == nil || o.Group == nil {
|
||||
if o == nil || IsNil(o.Group) {
|
||||
var ret Identity
|
||||
return ret
|
||||
}
|
||||
@@ -147,7 +150,7 @@ func (o *IdentitySet) GetGroup() Identity {
|
||||
// GetGroupOk returns a tuple with the Group field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *IdentitySet) GetGroupOk() (*Identity, bool) {
|
||||
if o == nil || o.Group == nil {
|
||||
if o == nil || IsNil(o.Group) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Group, true
|
||||
@@ -155,7 +158,7 @@ func (o *IdentitySet) GetGroupOk() (*Identity, bool) {
|
||||
|
||||
// HasGroup returns a boolean if a field has been set.
|
||||
func (o *IdentitySet) HasGroup() bool {
|
||||
if o != nil && o.Group != nil {
|
||||
if o != nil && !IsNil(o.Group) {
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -168,22 +171,30 @@ func (o *IdentitySet) SetGroup(v Identity) {
|
||||
}
|
||||
|
||||
func (o IdentitySet) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.Application != nil {
|
||||
toSerialize["application"] = o.Application
|
||||
}
|
||||
if o.Device != nil {
|
||||
toSerialize["device"] = o.Device
|
||||
}
|
||||
if o.User != nil {
|
||||
toSerialize["user"] = o.User
|
||||
}
|
||||
if o.Group != nil {
|
||||
toSerialize["group"] = o.Group
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o IdentitySet) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Application) {
|
||||
toSerialize["application"] = o.Application
|
||||
}
|
||||
if !IsNil(o.Device) {
|
||||
toSerialize["device"] = o.Device
|
||||
}
|
||||
if !IsNil(o.User) {
|
||||
toSerialize["user"] = o.User
|
||||
}
|
||||
if !IsNil(o.Group) {
|
||||
toSerialize["group"] = o.Group
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableIdentitySet struct {
|
||||
value *IdentitySet
|
||||
isSet bool
|
||||
|
||||
Reference in New Issue
Block a user