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
+17
-6
@@ -14,6 +14,9 @@ import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the MemberReference type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &MemberReference{}
|
||||
|
||||
// MemberReference struct for MemberReference
|
||||
type MemberReference struct {
|
||||
OdataId *string `json:"@odata.id,omitempty"`
|
||||
@@ -38,7 +41,7 @@ func NewMemberReferenceWithDefaults() *MemberReference {
|
||||
|
||||
// GetOdataId returns the OdataId field value if set, zero value otherwise.
|
||||
func (o *MemberReference) GetOdataId() string {
|
||||
if o == nil || o.OdataId == nil {
|
||||
if o == nil || IsNil(o.OdataId) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
@@ -48,7 +51,7 @@ func (o *MemberReference) GetOdataId() string {
|
||||
// GetOdataIdOk returns a tuple with the OdataId field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *MemberReference) GetOdataIdOk() (*string, bool) {
|
||||
if o == nil || o.OdataId == nil {
|
||||
if o == nil || IsNil(o.OdataId) {
|
||||
return nil, false
|
||||
}
|
||||
return o.OdataId, true
|
||||
@@ -56,7 +59,7 @@ func (o *MemberReference) GetOdataIdOk() (*string, bool) {
|
||||
|
||||
// HasOdataId returns a boolean if a field has been set.
|
||||
func (o *MemberReference) HasOdataId() bool {
|
||||
if o != nil && o.OdataId != nil {
|
||||
if o != nil && !IsNil(o.OdataId) {
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -69,13 +72,21 @@ func (o *MemberReference) SetOdataId(v string) {
|
||||
}
|
||||
|
||||
func (o MemberReference) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.OdataId != nil {
|
||||
toSerialize["@odata.id"] = o.OdataId
|
||||
toSerialize, err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o MemberReference) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.OdataId) {
|
||||
toSerialize["@odata.id"] = o.OdataId
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableMemberReference struct {
|
||||
value *MemberReference
|
||||
isSet bool
|
||||
|
||||
Reference in New Issue
Block a user