Bump libre-graph-go to latest main branch

To get sharing endpoints and audio/photo/location facets
This commit is contained in:
Ralf Haferkamp
2023-10-19 17:16:34 +02:00
committed by Ralf Haferkamp
parent 62d8a03400
commit b436e49f19
99 changed files with 7070 additions and 1527 deletions
+23 -12
View File
@@ -14,6 +14,9 @@ import (
"encoding/json"
)
// checks if the Folder type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &Folder{}
// Folder Folder metadata, if the item is a folder. Read-only.
type Folder struct {
// Number of children contained immediately within this container.
@@ -40,7 +43,7 @@ func NewFolderWithDefaults() *Folder {
// GetChildCount returns the ChildCount field value if set, zero value otherwise.
func (o *Folder) GetChildCount() int32 {
if o == nil || o.ChildCount == nil {
if o == nil || IsNil(o.ChildCount) {
var ret int32
return ret
}
@@ -50,7 +53,7 @@ func (o *Folder) GetChildCount() int32 {
// GetChildCountOk returns a tuple with the ChildCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Folder) GetChildCountOk() (*int32, bool) {
if o == nil || o.ChildCount == nil {
if o == nil || IsNil(o.ChildCount) {
return nil, false
}
return o.ChildCount, true
@@ -58,7 +61,7 @@ func (o *Folder) GetChildCountOk() (*int32, bool) {
// HasChildCount returns a boolean if a field has been set.
func (o *Folder) HasChildCount() bool {
if o != nil && o.ChildCount != nil {
if o != nil && !IsNil(o.ChildCount) {
return true
}
@@ -72,7 +75,7 @@ func (o *Folder) SetChildCount(v int32) {
// GetView returns the View field value if set, zero value otherwise.
func (o *Folder) GetView() FolderView {
if o == nil || o.View == nil {
if o == nil || IsNil(o.View) {
var ret FolderView
return ret
}
@@ -82,7 +85,7 @@ func (o *Folder) GetView() FolderView {
// GetViewOk returns a tuple with the View field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Folder) GetViewOk() (*FolderView, bool) {
if o == nil || o.View == nil {
if o == nil || IsNil(o.View) {
return nil, false
}
return o.View, true
@@ -90,7 +93,7 @@ func (o *Folder) GetViewOk() (*FolderView, bool) {
// HasView returns a boolean if a field has been set.
func (o *Folder) HasView() bool {
if o != nil && o.View != nil {
if o != nil && !IsNil(o.View) {
return true
}
@@ -103,16 +106,24 @@ func (o *Folder) SetView(v FolderView) {
}
func (o Folder) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.ChildCount != nil {
toSerialize["childCount"] = o.ChildCount
}
if o.View != nil {
toSerialize["view"] = o.View
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o Folder) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.ChildCount) {
toSerialize["childCount"] = o.ChildCount
}
if !IsNil(o.View) {
toSerialize["view"] = o.View
}
return toSerialize, nil
}
type NullableFolder struct {
value *Folder
isSet bool