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
+137 -126
View File
@@ -15,6 +15,9 @@ import (
"time"
)
// checks if the RemoteItem type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &RemoteItem{}
// RemoteItem Remote item data, if the item is shared from a drive other than the one being accessed. Read-only.
type RemoteItem struct {
CreatedBy *IdentitySet `json:"createdBy,omitempty"`
@@ -71,7 +74,7 @@ func NewRemoteItemWithDefaults() *RemoteItem {
// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise.
func (o *RemoteItem) GetCreatedBy() IdentitySet {
if o == nil || o.CreatedBy == nil {
if o == nil || IsNil(o.CreatedBy) {
var ret IdentitySet
return ret
}
@@ -81,7 +84,7 @@ func (o *RemoteItem) GetCreatedBy() IdentitySet {
// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RemoteItem) GetCreatedByOk() (*IdentitySet, bool) {
if o == nil || o.CreatedBy == nil {
if o == nil || IsNil(o.CreatedBy) {
return nil, false
}
return o.CreatedBy, true
@@ -89,7 +92,7 @@ func (o *RemoteItem) GetCreatedByOk() (*IdentitySet, bool) {
// HasCreatedBy returns a boolean if a field has been set.
func (o *RemoteItem) HasCreatedBy() bool {
if o != nil && o.CreatedBy != nil {
if o != nil && !IsNil(o.CreatedBy) {
return true
}
@@ -103,7 +106,7 @@ func (o *RemoteItem) SetCreatedBy(v IdentitySet) {
// GetCreatedDateTime returns the CreatedDateTime field value if set, zero value otherwise.
func (o *RemoteItem) GetCreatedDateTime() time.Time {
if o == nil || o.CreatedDateTime == nil {
if o == nil || IsNil(o.CreatedDateTime) {
var ret time.Time
return ret
}
@@ -113,7 +116,7 @@ func (o *RemoteItem) GetCreatedDateTime() time.Time {
// GetCreatedDateTimeOk returns a tuple with the CreatedDateTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RemoteItem) GetCreatedDateTimeOk() (*time.Time, bool) {
if o == nil || o.CreatedDateTime == nil {
if o == nil || IsNil(o.CreatedDateTime) {
return nil, false
}
return o.CreatedDateTime, true
@@ -121,7 +124,7 @@ func (o *RemoteItem) GetCreatedDateTimeOk() (*time.Time, bool) {
// HasCreatedDateTime returns a boolean if a field has been set.
func (o *RemoteItem) HasCreatedDateTime() bool {
if o != nil && o.CreatedDateTime != nil {
if o != nil && !IsNil(o.CreatedDateTime) {
return true
}
@@ -135,7 +138,7 @@ func (o *RemoteItem) SetCreatedDateTime(v time.Time) {
// GetFile returns the File field value if set, zero value otherwise.
func (o *RemoteItem) GetFile() OpenGraphFile {
if o == nil || o.File == nil {
if o == nil || IsNil(o.File) {
var ret OpenGraphFile
return ret
}
@@ -145,7 +148,7 @@ func (o *RemoteItem) GetFile() OpenGraphFile {
// GetFileOk returns a tuple with the File field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RemoteItem) GetFileOk() (*OpenGraphFile, bool) {
if o == nil || o.File == nil {
if o == nil || IsNil(o.File) {
return nil, false
}
return o.File, true
@@ -153,7 +156,7 @@ func (o *RemoteItem) GetFileOk() (*OpenGraphFile, bool) {
// HasFile returns a boolean if a field has been set.
func (o *RemoteItem) HasFile() bool {
if o != nil && o.File != nil {
if o != nil && !IsNil(o.File) {
return true
}
@@ -167,7 +170,7 @@ func (o *RemoteItem) SetFile(v OpenGraphFile) {
// GetFileSystemInfo returns the FileSystemInfo field value if set, zero value otherwise.
func (o *RemoteItem) GetFileSystemInfo() FileSystemInfo {
if o == nil || o.FileSystemInfo == nil {
if o == nil || IsNil(o.FileSystemInfo) {
var ret FileSystemInfo
return ret
}
@@ -177,7 +180,7 @@ func (o *RemoteItem) GetFileSystemInfo() FileSystemInfo {
// GetFileSystemInfoOk returns a tuple with the FileSystemInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RemoteItem) GetFileSystemInfoOk() (*FileSystemInfo, bool) {
if o == nil || o.FileSystemInfo == nil {
if o == nil || IsNil(o.FileSystemInfo) {
return nil, false
}
return o.FileSystemInfo, true
@@ -185,7 +188,7 @@ func (o *RemoteItem) GetFileSystemInfoOk() (*FileSystemInfo, bool) {
// HasFileSystemInfo returns a boolean if a field has been set.
func (o *RemoteItem) HasFileSystemInfo() bool {
if o != nil && o.FileSystemInfo != nil {
if o != nil && !IsNil(o.FileSystemInfo) {
return true
}
@@ -199,7 +202,7 @@ func (o *RemoteItem) SetFileSystemInfo(v FileSystemInfo) {
// GetFolder returns the Folder field value if set, zero value otherwise.
func (o *RemoteItem) GetFolder() Folder {
if o == nil || o.Folder == nil {
if o == nil || IsNil(o.Folder) {
var ret Folder
return ret
}
@@ -209,7 +212,7 @@ func (o *RemoteItem) GetFolder() Folder {
// GetFolderOk returns a tuple with the Folder field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RemoteItem) GetFolderOk() (*Folder, bool) {
if o == nil || o.Folder == nil {
if o == nil || IsNil(o.Folder) {
return nil, false
}
return o.Folder, true
@@ -217,7 +220,7 @@ func (o *RemoteItem) GetFolderOk() (*Folder, bool) {
// HasFolder returns a boolean if a field has been set.
func (o *RemoteItem) HasFolder() bool {
if o != nil && o.Folder != nil {
if o != nil && !IsNil(o.Folder) {
return true
}
@@ -231,7 +234,7 @@ func (o *RemoteItem) SetFolder(v Folder) {
// GetDriveAlias returns the DriveAlias field value if set, zero value otherwise.
func (o *RemoteItem) GetDriveAlias() string {
if o == nil || o.DriveAlias == nil {
if o == nil || IsNil(o.DriveAlias) {
var ret string
return ret
}
@@ -241,7 +244,7 @@ func (o *RemoteItem) GetDriveAlias() string {
// GetDriveAliasOk returns a tuple with the DriveAlias field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RemoteItem) GetDriveAliasOk() (*string, bool) {
if o == nil || o.DriveAlias == nil {
if o == nil || IsNil(o.DriveAlias) {
return nil, false
}
return o.DriveAlias, true
@@ -249,7 +252,7 @@ func (o *RemoteItem) GetDriveAliasOk() (*string, bool) {
// HasDriveAlias returns a boolean if a field has been set.
func (o *RemoteItem) HasDriveAlias() bool {
if o != nil && o.DriveAlias != nil {
if o != nil && !IsNil(o.DriveAlias) {
return true
}
@@ -263,7 +266,7 @@ func (o *RemoteItem) SetDriveAlias(v string) {
// GetPath returns the Path field value if set, zero value otherwise.
func (o *RemoteItem) GetPath() string {
if o == nil || o.Path == nil {
if o == nil || IsNil(o.Path) {
var ret string
return ret
}
@@ -273,7 +276,7 @@ func (o *RemoteItem) GetPath() string {
// GetPathOk returns a tuple with the Path field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RemoteItem) GetPathOk() (*string, bool) {
if o == nil || o.Path == nil {
if o == nil || IsNil(o.Path) {
return nil, false
}
return o.Path, true
@@ -281,7 +284,7 @@ func (o *RemoteItem) GetPathOk() (*string, bool) {
// HasPath returns a boolean if a field has been set.
func (o *RemoteItem) HasPath() bool {
if o != nil && o.Path != nil {
if o != nil && !IsNil(o.Path) {
return true
}
@@ -295,7 +298,7 @@ func (o *RemoteItem) SetPath(v string) {
// GetRootId returns the RootId field value if set, zero value otherwise.
func (o *RemoteItem) GetRootId() string {
if o == nil || o.RootId == nil {
if o == nil || IsNil(o.RootId) {
var ret string
return ret
}
@@ -305,7 +308,7 @@ func (o *RemoteItem) GetRootId() string {
// GetRootIdOk returns a tuple with the RootId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RemoteItem) GetRootIdOk() (*string, bool) {
if o == nil || o.RootId == nil {
if o == nil || IsNil(o.RootId) {
return nil, false
}
return o.RootId, true
@@ -313,7 +316,7 @@ func (o *RemoteItem) GetRootIdOk() (*string, bool) {
// HasRootId returns a boolean if a field has been set.
func (o *RemoteItem) HasRootId() bool {
if o != nil && o.RootId != nil {
if o != nil && !IsNil(o.RootId) {
return true
}
@@ -327,7 +330,7 @@ func (o *RemoteItem) SetRootId(v string) {
// GetId returns the Id field value if set, zero value otherwise.
func (o *RemoteItem) GetId() string {
if o == nil || o.Id == nil {
if o == nil || IsNil(o.Id) {
var ret string
return ret
}
@@ -337,7 +340,7 @@ func (o *RemoteItem) GetId() string {
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RemoteItem) GetIdOk() (*string, bool) {
if o == nil || o.Id == nil {
if o == nil || IsNil(o.Id) {
return nil, false
}
return o.Id, true
@@ -345,7 +348,7 @@ func (o *RemoteItem) GetIdOk() (*string, bool) {
// HasId returns a boolean if a field has been set.
func (o *RemoteItem) HasId() bool {
if o != nil && o.Id != nil {
if o != nil && !IsNil(o.Id) {
return true
}
@@ -359,7 +362,7 @@ func (o *RemoteItem) SetId(v string) {
// GetImage returns the Image field value if set, zero value otherwise.
func (o *RemoteItem) GetImage() Image {
if o == nil || o.Image == nil {
if o == nil || IsNil(o.Image) {
var ret Image
return ret
}
@@ -369,7 +372,7 @@ func (o *RemoteItem) GetImage() Image {
// GetImageOk returns a tuple with the Image field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RemoteItem) GetImageOk() (*Image, bool) {
if o == nil || o.Image == nil {
if o == nil || IsNil(o.Image) {
return nil, false
}
return o.Image, true
@@ -377,7 +380,7 @@ func (o *RemoteItem) GetImageOk() (*Image, bool) {
// HasImage returns a boolean if a field has been set.
func (o *RemoteItem) HasImage() bool {
if o != nil && o.Image != nil {
if o != nil && !IsNil(o.Image) {
return true
}
@@ -391,7 +394,7 @@ func (o *RemoteItem) SetImage(v Image) {
// GetLastModifiedBy returns the LastModifiedBy field value if set, zero value otherwise.
func (o *RemoteItem) GetLastModifiedBy() IdentitySet {
if o == nil || o.LastModifiedBy == nil {
if o == nil || IsNil(o.LastModifiedBy) {
var ret IdentitySet
return ret
}
@@ -401,7 +404,7 @@ func (o *RemoteItem) GetLastModifiedBy() IdentitySet {
// GetLastModifiedByOk returns a tuple with the LastModifiedBy field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RemoteItem) GetLastModifiedByOk() (*IdentitySet, bool) {
if o == nil || o.LastModifiedBy == nil {
if o == nil || IsNil(o.LastModifiedBy) {
return nil, false
}
return o.LastModifiedBy, true
@@ -409,7 +412,7 @@ func (o *RemoteItem) GetLastModifiedByOk() (*IdentitySet, bool) {
// HasLastModifiedBy returns a boolean if a field has been set.
func (o *RemoteItem) HasLastModifiedBy() bool {
if o != nil && o.LastModifiedBy != nil {
if o != nil && !IsNil(o.LastModifiedBy) {
return true
}
@@ -423,7 +426,7 @@ func (o *RemoteItem) SetLastModifiedBy(v IdentitySet) {
// GetLastModifiedDateTime returns the LastModifiedDateTime field value if set, zero value otherwise.
func (o *RemoteItem) GetLastModifiedDateTime() time.Time {
if o == nil || o.LastModifiedDateTime == nil {
if o == nil || IsNil(o.LastModifiedDateTime) {
var ret time.Time
return ret
}
@@ -433,7 +436,7 @@ func (o *RemoteItem) GetLastModifiedDateTime() time.Time {
// GetLastModifiedDateTimeOk returns a tuple with the LastModifiedDateTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RemoteItem) GetLastModifiedDateTimeOk() (*time.Time, bool) {
if o == nil || o.LastModifiedDateTime == nil {
if o == nil || IsNil(o.LastModifiedDateTime) {
return nil, false
}
return o.LastModifiedDateTime, true
@@ -441,7 +444,7 @@ func (o *RemoteItem) GetLastModifiedDateTimeOk() (*time.Time, bool) {
// HasLastModifiedDateTime returns a boolean if a field has been set.
func (o *RemoteItem) HasLastModifiedDateTime() bool {
if o != nil && o.LastModifiedDateTime != nil {
if o != nil && !IsNil(o.LastModifiedDateTime) {
return true
}
@@ -455,7 +458,7 @@ func (o *RemoteItem) SetLastModifiedDateTime(v time.Time) {
// GetName returns the Name field value if set, zero value otherwise.
func (o *RemoteItem) GetName() string {
if o == nil || o.Name == nil {
if o == nil || IsNil(o.Name) {
var ret string
return ret
}
@@ -465,7 +468,7 @@ func (o *RemoteItem) GetName() string {
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RemoteItem) GetNameOk() (*string, bool) {
if o == nil || o.Name == nil {
if o == nil || IsNil(o.Name) {
return nil, false
}
return o.Name, true
@@ -473,7 +476,7 @@ func (o *RemoteItem) GetNameOk() (*string, bool) {
// HasName returns a boolean if a field has been set.
func (o *RemoteItem) HasName() bool {
if o != nil && o.Name != nil {
if o != nil && !IsNil(o.Name) {
return true
}
@@ -487,7 +490,7 @@ func (o *RemoteItem) SetName(v string) {
// GetETag returns the ETag field value if set, zero value otherwise.
func (o *RemoteItem) GetETag() string {
if o == nil || o.ETag == nil {
if o == nil || IsNil(o.ETag) {
var ret string
return ret
}
@@ -497,7 +500,7 @@ func (o *RemoteItem) GetETag() string {
// GetETagOk returns a tuple with the ETag field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RemoteItem) GetETagOk() (*string, bool) {
if o == nil || o.ETag == nil {
if o == nil || IsNil(o.ETag) {
return nil, false
}
return o.ETag, true
@@ -505,7 +508,7 @@ func (o *RemoteItem) GetETagOk() (*string, bool) {
// HasETag returns a boolean if a field has been set.
func (o *RemoteItem) HasETag() bool {
if o != nil && o.ETag != nil {
if o != nil && !IsNil(o.ETag) {
return true
}
@@ -519,7 +522,7 @@ func (o *RemoteItem) SetETag(v string) {
// GetCTag returns the CTag field value if set, zero value otherwise.
func (o *RemoteItem) GetCTag() string {
if o == nil || o.CTag == nil {
if o == nil || IsNil(o.CTag) {
var ret string
return ret
}
@@ -529,7 +532,7 @@ func (o *RemoteItem) GetCTag() string {
// GetCTagOk returns a tuple with the CTag field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RemoteItem) GetCTagOk() (*string, bool) {
if o == nil || o.CTag == nil {
if o == nil || IsNil(o.CTag) {
return nil, false
}
return o.CTag, true
@@ -537,7 +540,7 @@ func (o *RemoteItem) GetCTagOk() (*string, bool) {
// HasCTag returns a boolean if a field has been set.
func (o *RemoteItem) HasCTag() bool {
if o != nil && o.CTag != nil {
if o != nil && !IsNil(o.CTag) {
return true
}
@@ -551,7 +554,7 @@ func (o *RemoteItem) SetCTag(v string) {
// GetParentReference returns the ParentReference field value if set, zero value otherwise.
func (o *RemoteItem) GetParentReference() ItemReference {
if o == nil || o.ParentReference == nil {
if o == nil || IsNil(o.ParentReference) {
var ret ItemReference
return ret
}
@@ -561,7 +564,7 @@ func (o *RemoteItem) GetParentReference() ItemReference {
// GetParentReferenceOk returns a tuple with the ParentReference field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RemoteItem) GetParentReferenceOk() (*ItemReference, bool) {
if o == nil || o.ParentReference == nil {
if o == nil || IsNil(o.ParentReference) {
return nil, false
}
return o.ParentReference, true
@@ -569,7 +572,7 @@ func (o *RemoteItem) GetParentReferenceOk() (*ItemReference, bool) {
// HasParentReference returns a boolean if a field has been set.
func (o *RemoteItem) HasParentReference() bool {
if o != nil && o.ParentReference != nil {
if o != nil && !IsNil(o.ParentReference) {
return true
}
@@ -583,7 +586,7 @@ func (o *RemoteItem) SetParentReference(v ItemReference) {
// GetShared returns the Shared field value if set, zero value otherwise.
func (o *RemoteItem) GetShared() Shared {
if o == nil || o.Shared == nil {
if o == nil || IsNil(o.Shared) {
var ret Shared
return ret
}
@@ -593,7 +596,7 @@ func (o *RemoteItem) GetShared() Shared {
// GetSharedOk returns a tuple with the Shared field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RemoteItem) GetSharedOk() (*Shared, bool) {
if o == nil || o.Shared == nil {
if o == nil || IsNil(o.Shared) {
return nil, false
}
return o.Shared, true
@@ -601,7 +604,7 @@ func (o *RemoteItem) GetSharedOk() (*Shared, bool) {
// HasShared returns a boolean if a field has been set.
func (o *RemoteItem) HasShared() bool {
if o != nil && o.Shared != nil {
if o != nil && !IsNil(o.Shared) {
return true
}
@@ -615,7 +618,7 @@ func (o *RemoteItem) SetShared(v Shared) {
// GetSize returns the Size field value if set, zero value otherwise.
func (o *RemoteItem) GetSize() int64 {
if o == nil || o.Size == nil {
if o == nil || IsNil(o.Size) {
var ret int64
return ret
}
@@ -625,7 +628,7 @@ func (o *RemoteItem) GetSize() int64 {
// GetSizeOk returns a tuple with the Size field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RemoteItem) GetSizeOk() (*int64, bool) {
if o == nil || o.Size == nil {
if o == nil || IsNil(o.Size) {
return nil, false
}
return o.Size, true
@@ -633,7 +636,7 @@ func (o *RemoteItem) GetSizeOk() (*int64, bool) {
// HasSize returns a boolean if a field has been set.
func (o *RemoteItem) HasSize() bool {
if o != nil && o.Size != nil {
if o != nil && !IsNil(o.Size) {
return true
}
@@ -647,7 +650,7 @@ func (o *RemoteItem) SetSize(v int64) {
// GetSpecialFolder returns the SpecialFolder field value if set, zero value otherwise.
func (o *RemoteItem) GetSpecialFolder() SpecialFolder {
if o == nil || o.SpecialFolder == nil {
if o == nil || IsNil(o.SpecialFolder) {
var ret SpecialFolder
return ret
}
@@ -657,7 +660,7 @@ func (o *RemoteItem) GetSpecialFolder() SpecialFolder {
// GetSpecialFolderOk returns a tuple with the SpecialFolder field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RemoteItem) GetSpecialFolderOk() (*SpecialFolder, bool) {
if o == nil || o.SpecialFolder == nil {
if o == nil || IsNil(o.SpecialFolder) {
return nil, false
}
return o.SpecialFolder, true
@@ -665,7 +668,7 @@ func (o *RemoteItem) GetSpecialFolderOk() (*SpecialFolder, bool) {
// HasSpecialFolder returns a boolean if a field has been set.
func (o *RemoteItem) HasSpecialFolder() bool {
if o != nil && o.SpecialFolder != nil {
if o != nil && !IsNil(o.SpecialFolder) {
return true
}
@@ -679,7 +682,7 @@ func (o *RemoteItem) SetSpecialFolder(v SpecialFolder) {
// GetWebDavUrl returns the WebDavUrl field value if set, zero value otherwise.
func (o *RemoteItem) GetWebDavUrl() string {
if o == nil || o.WebDavUrl == nil {
if o == nil || IsNil(o.WebDavUrl) {
var ret string
return ret
}
@@ -689,7 +692,7 @@ func (o *RemoteItem) GetWebDavUrl() string {
// GetWebDavUrlOk returns a tuple with the WebDavUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RemoteItem) GetWebDavUrlOk() (*string, bool) {
if o == nil || o.WebDavUrl == nil {
if o == nil || IsNil(o.WebDavUrl) {
return nil, false
}
return o.WebDavUrl, true
@@ -697,7 +700,7 @@ func (o *RemoteItem) GetWebDavUrlOk() (*string, bool) {
// HasWebDavUrl returns a boolean if a field has been set.
func (o *RemoteItem) HasWebDavUrl() bool {
if o != nil && o.WebDavUrl != nil {
if o != nil && !IsNil(o.WebDavUrl) {
return true
}
@@ -711,7 +714,7 @@ func (o *RemoteItem) SetWebDavUrl(v string) {
// GetWebUrl returns the WebUrl field value if set, zero value otherwise.
func (o *RemoteItem) GetWebUrl() string {
if o == nil || o.WebUrl == nil {
if o == nil || IsNil(o.WebUrl) {
var ret string
return ret
}
@@ -721,7 +724,7 @@ func (o *RemoteItem) GetWebUrl() string {
// GetWebUrlOk returns a tuple with the WebUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RemoteItem) GetWebUrlOk() (*string, bool) {
if o == nil || o.WebUrl == nil {
if o == nil || IsNil(o.WebUrl) {
return nil, false
}
return o.WebUrl, true
@@ -729,7 +732,7 @@ func (o *RemoteItem) GetWebUrlOk() (*string, bool) {
// HasWebUrl returns a boolean if a field has been set.
func (o *RemoteItem) HasWebUrl() bool {
if o != nil && o.WebUrl != nil {
if o != nil && !IsNil(o.WebUrl) {
return true
}
@@ -742,73 +745,81 @@ func (o *RemoteItem) SetWebUrl(v string) {
}
func (o RemoteItem) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.CreatedBy != nil {
toSerialize["createdBy"] = o.CreatedBy
}
if o.CreatedDateTime != nil {
toSerialize["createdDateTime"] = o.CreatedDateTime
}
if o.File != nil {
toSerialize["file"] = o.File
}
if o.FileSystemInfo != nil {
toSerialize["fileSystemInfo"] = o.FileSystemInfo
}
if o.Folder != nil {
toSerialize["folder"] = o.Folder
}
if o.DriveAlias != nil {
toSerialize["driveAlias"] = o.DriveAlias
}
if o.Path != nil {
toSerialize["path"] = o.Path
}
if o.RootId != nil {
toSerialize["rootId"] = o.RootId
}
if o.Id != nil {
toSerialize["id"] = o.Id
}
if o.Image != nil {
toSerialize["image"] = o.Image
}
if o.LastModifiedBy != nil {
toSerialize["lastModifiedBy"] = o.LastModifiedBy
}
if o.LastModifiedDateTime != nil {
toSerialize["lastModifiedDateTime"] = o.LastModifiedDateTime
}
if o.Name != nil {
toSerialize["name"] = o.Name
}
if o.ETag != nil {
toSerialize["eTag"] = o.ETag
}
if o.CTag != nil {
toSerialize["cTag"] = o.CTag
}
if o.ParentReference != nil {
toSerialize["parentReference"] = o.ParentReference
}
if o.Shared != nil {
toSerialize["shared"] = o.Shared
}
if o.Size != nil {
toSerialize["size"] = o.Size
}
if o.SpecialFolder != nil {
toSerialize["specialFolder"] = o.SpecialFolder
}
if o.WebDavUrl != nil {
toSerialize["webDavUrl"] = o.WebDavUrl
}
if o.WebUrl != nil {
toSerialize["webUrl"] = o.WebUrl
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o RemoteItem) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.CreatedBy) {
toSerialize["createdBy"] = o.CreatedBy
}
if !IsNil(o.CreatedDateTime) {
toSerialize["createdDateTime"] = o.CreatedDateTime
}
if !IsNil(o.File) {
toSerialize["file"] = o.File
}
if !IsNil(o.FileSystemInfo) {
toSerialize["fileSystemInfo"] = o.FileSystemInfo
}
if !IsNil(o.Folder) {
toSerialize["folder"] = o.Folder
}
if !IsNil(o.DriveAlias) {
toSerialize["driveAlias"] = o.DriveAlias
}
if !IsNil(o.Path) {
toSerialize["path"] = o.Path
}
if !IsNil(o.RootId) {
toSerialize["rootId"] = o.RootId
}
if !IsNil(o.Id) {
toSerialize["id"] = o.Id
}
if !IsNil(o.Image) {
toSerialize["image"] = o.Image
}
if !IsNil(o.LastModifiedBy) {
toSerialize["lastModifiedBy"] = o.LastModifiedBy
}
if !IsNil(o.LastModifiedDateTime) {
toSerialize["lastModifiedDateTime"] = o.LastModifiedDateTime
}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
if !IsNil(o.ETag) {
toSerialize["eTag"] = o.ETag
}
if !IsNil(o.CTag) {
toSerialize["cTag"] = o.CTag
}
if !IsNil(o.ParentReference) {
toSerialize["parentReference"] = o.ParentReference
}
if !IsNil(o.Shared) {
toSerialize["shared"] = o.Shared
}
if !IsNil(o.Size) {
toSerialize["size"] = o.Size
}
if !IsNil(o.SpecialFolder) {
toSerialize["specialFolder"] = o.SpecialFolder
}
if !IsNil(o.WebDavUrl) {
toSerialize["webDavUrl"] = o.WebDavUrl
}
if !IsNil(o.WebUrl) {
toSerialize["webUrl"] = o.WebUrl
}
return toSerialize, nil
}
type NullableRemoteItem struct {
value *RemoteItem
isSet bool