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
+41 -67
View File
@@ -14,6 +14,9 @@ import (
"encoding/json"
)
// checks if the ItemReference type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ItemReference{}
// ItemReference struct for ItemReference
type ItemReference struct {
// Unique identifier of the drive instance that contains the item. Read-only.
@@ -26,8 +29,6 @@ type ItemReference struct {
Name *string `json:"name,omitempty"`
// Path that can be used to navigate to the item. Read-only.
Path *string `json:"path,omitempty"`
// A unique identifier for a shared resource that can be accessed via the [Shares][] API.
ShareId *string `json:"shareId,omitempty"`
}
// NewItemReference instantiates a new ItemReference object
@@ -49,7 +50,7 @@ func NewItemReferenceWithDefaults() *ItemReference {
// GetDriveId returns the DriveId field value if set, zero value otherwise.
func (o *ItemReference) GetDriveId() string {
if o == nil || o.DriveId == nil {
if o == nil || IsNil(o.DriveId) {
var ret string
return ret
}
@@ -59,7 +60,7 @@ func (o *ItemReference) GetDriveId() string {
// GetDriveIdOk returns a tuple with the DriveId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ItemReference) GetDriveIdOk() (*string, bool) {
if o == nil || o.DriveId == nil {
if o == nil || IsNil(o.DriveId) {
return nil, false
}
return o.DriveId, true
@@ -67,7 +68,7 @@ func (o *ItemReference) GetDriveIdOk() (*string, bool) {
// HasDriveId returns a boolean if a field has been set.
func (o *ItemReference) HasDriveId() bool {
if o != nil && o.DriveId != nil {
if o != nil && !IsNil(o.DriveId) {
return true
}
@@ -81,7 +82,7 @@ func (o *ItemReference) SetDriveId(v string) {
// GetDriveType returns the DriveType field value if set, zero value otherwise.
func (o *ItemReference) GetDriveType() string {
if o == nil || o.DriveType == nil {
if o == nil || IsNil(o.DriveType) {
var ret string
return ret
}
@@ -91,7 +92,7 @@ func (o *ItemReference) GetDriveType() string {
// GetDriveTypeOk returns a tuple with the DriveType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ItemReference) GetDriveTypeOk() (*string, bool) {
if o == nil || o.DriveType == nil {
if o == nil || IsNil(o.DriveType) {
return nil, false
}
return o.DriveType, true
@@ -99,7 +100,7 @@ func (o *ItemReference) GetDriveTypeOk() (*string, bool) {
// HasDriveType returns a boolean if a field has been set.
func (o *ItemReference) HasDriveType() bool {
if o != nil && o.DriveType != nil {
if o != nil && !IsNil(o.DriveType) {
return true
}
@@ -113,7 +114,7 @@ func (o *ItemReference) SetDriveType(v string) {
// GetId returns the Id field value if set, zero value otherwise.
func (o *ItemReference) GetId() string {
if o == nil || o.Id == nil {
if o == nil || IsNil(o.Id) {
var ret string
return ret
}
@@ -123,7 +124,7 @@ func (o *ItemReference) 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 *ItemReference) GetIdOk() (*string, bool) {
if o == nil || o.Id == nil {
if o == nil || IsNil(o.Id) {
return nil, false
}
return o.Id, true
@@ -131,7 +132,7 @@ func (o *ItemReference) GetIdOk() (*string, bool) {
// HasId returns a boolean if a field has been set.
func (o *ItemReference) HasId() bool {
if o != nil && o.Id != nil {
if o != nil && !IsNil(o.Id) {
return true
}
@@ -145,7 +146,7 @@ func (o *ItemReference) SetId(v string) {
// GetName returns the Name field value if set, zero value otherwise.
func (o *ItemReference) GetName() string {
if o == nil || o.Name == nil {
if o == nil || IsNil(o.Name) {
var ret string
return ret
}
@@ -155,7 +156,7 @@ func (o *ItemReference) 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 *ItemReference) GetNameOk() (*string, bool) {
if o == nil || o.Name == nil {
if o == nil || IsNil(o.Name) {
return nil, false
}
return o.Name, true
@@ -163,7 +164,7 @@ func (o *ItemReference) GetNameOk() (*string, bool) {
// HasName returns a boolean if a field has been set.
func (o *ItemReference) HasName() bool {
if o != nil && o.Name != nil {
if o != nil && !IsNil(o.Name) {
return true
}
@@ -177,7 +178,7 @@ func (o *ItemReference) SetName(v string) {
// GetPath returns the Path field value if set, zero value otherwise.
func (o *ItemReference) GetPath() string {
if o == nil || o.Path == nil {
if o == nil || IsNil(o.Path) {
var ret string
return ret
}
@@ -187,7 +188,7 @@ func (o *ItemReference) 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 *ItemReference) GetPathOk() (*string, bool) {
if o == nil || o.Path == nil {
if o == nil || IsNil(o.Path) {
return nil, false
}
return o.Path, true
@@ -195,7 +196,7 @@ func (o *ItemReference) GetPathOk() (*string, bool) {
// HasPath returns a boolean if a field has been set.
func (o *ItemReference) HasPath() bool {
if o != nil && o.Path != nil {
if o != nil && !IsNil(o.Path) {
return true
}
@@ -207,61 +208,34 @@ func (o *ItemReference) SetPath(v string) {
o.Path = &v
}
// GetShareId returns the ShareId field value if set, zero value otherwise.
func (o *ItemReference) GetShareId() string {
if o == nil || o.ShareId == nil {
var ret string
return ret
}
return *o.ShareId
}
// GetShareIdOk returns a tuple with the ShareId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ItemReference) GetShareIdOk() (*string, bool) {
if o == nil || o.ShareId == nil {
return nil, false
}
return o.ShareId, true
}
// HasShareId returns a boolean if a field has been set.
func (o *ItemReference) HasShareId() bool {
if o != nil && o.ShareId != nil {
return true
}
return false
}
// SetShareId gets a reference to the given string and assigns it to the ShareId field.
func (o *ItemReference) SetShareId(v string) {
o.ShareId = &v
}
func (o ItemReference) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.DriveId != nil {
toSerialize["driveId"] = o.DriveId
}
if o.DriveType != nil {
toSerialize["driveType"] = o.DriveType
}
if o.Id != nil {
toSerialize["id"] = o.Id
}
if o.Name != nil {
toSerialize["name"] = o.Name
}
if o.Path != nil {
toSerialize["path"] = o.Path
}
if o.ShareId != nil {
toSerialize["shareId"] = o.ShareId
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ItemReference) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.DriveId) {
toSerialize["driveId"] = o.DriveId
}
if !IsNil(o.DriveType) {
toSerialize["driveType"] = o.DriveType
}
if !IsNil(o.Id) {
toSerialize["id"] = o.Id
}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
if !IsNil(o.Path) {
toSerialize["path"] = o.Path
}
return toSerialize, nil
}
type NullableItemReference struct {
value *ItemReference
isSet bool