Files
ocis/vendor/github.com/owncloud/libre-graph-api-go/model_file_system_info.go
Ralf Haferkamp b436e49f19 Bump libre-graph-go to latest main branch
To get sharing endpoints and audio/photo/location facets
2023-10-19 17:16:34 +02:00

201 lines
5.9 KiB
Go

/*
Libre Graph API
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
API version: v1.0.4
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package libregraph
import (
"encoding/json"
"time"
)
// checks if the FileSystemInfo type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &FileSystemInfo{}
// FileSystemInfo File system information on client. Read-write.
type FileSystemInfo struct {
// The UTC date and time the file was created on a client.
CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
// The UTC date and time the file was last accessed. Available for the recent file list only.
LastAccessedDateTime *time.Time `json:"lastAccessedDateTime,omitempty"`
// The UTC date and time the file was last modified on a client.
LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
}
// NewFileSystemInfo instantiates a new FileSystemInfo object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewFileSystemInfo() *FileSystemInfo {
this := FileSystemInfo{}
return &this
}
// NewFileSystemInfoWithDefaults instantiates a new FileSystemInfo object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewFileSystemInfoWithDefaults() *FileSystemInfo {
this := FileSystemInfo{}
return &this
}
// GetCreatedDateTime returns the CreatedDateTime field value if set, zero value otherwise.
func (o *FileSystemInfo) GetCreatedDateTime() time.Time {
if o == nil || IsNil(o.CreatedDateTime) {
var ret time.Time
return ret
}
return *o.CreatedDateTime
}
// 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 *FileSystemInfo) GetCreatedDateTimeOk() (*time.Time, bool) {
if o == nil || IsNil(o.CreatedDateTime) {
return nil, false
}
return o.CreatedDateTime, true
}
// HasCreatedDateTime returns a boolean if a field has been set.
func (o *FileSystemInfo) HasCreatedDateTime() bool {
if o != nil && !IsNil(o.CreatedDateTime) {
return true
}
return false
}
// SetCreatedDateTime gets a reference to the given time.Time and assigns it to the CreatedDateTime field.
func (o *FileSystemInfo) SetCreatedDateTime(v time.Time) {
o.CreatedDateTime = &v
}
// GetLastAccessedDateTime returns the LastAccessedDateTime field value if set, zero value otherwise.
func (o *FileSystemInfo) GetLastAccessedDateTime() time.Time {
if o == nil || IsNil(o.LastAccessedDateTime) {
var ret time.Time
return ret
}
return *o.LastAccessedDateTime
}
// GetLastAccessedDateTimeOk returns a tuple with the LastAccessedDateTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FileSystemInfo) GetLastAccessedDateTimeOk() (*time.Time, bool) {
if o == nil || IsNil(o.LastAccessedDateTime) {
return nil, false
}
return o.LastAccessedDateTime, true
}
// HasLastAccessedDateTime returns a boolean if a field has been set.
func (o *FileSystemInfo) HasLastAccessedDateTime() bool {
if o != nil && !IsNil(o.LastAccessedDateTime) {
return true
}
return false
}
// SetLastAccessedDateTime gets a reference to the given time.Time and assigns it to the LastAccessedDateTime field.
func (o *FileSystemInfo) SetLastAccessedDateTime(v time.Time) {
o.LastAccessedDateTime = &v
}
// GetLastModifiedDateTime returns the LastModifiedDateTime field value if set, zero value otherwise.
func (o *FileSystemInfo) GetLastModifiedDateTime() time.Time {
if o == nil || IsNil(o.LastModifiedDateTime) {
var ret time.Time
return ret
}
return *o.LastModifiedDateTime
}
// 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 *FileSystemInfo) GetLastModifiedDateTimeOk() (*time.Time, bool) {
if o == nil || IsNil(o.LastModifiedDateTime) {
return nil, false
}
return o.LastModifiedDateTime, true
}
// HasLastModifiedDateTime returns a boolean if a field has been set.
func (o *FileSystemInfo) HasLastModifiedDateTime() bool {
if o != nil && !IsNil(o.LastModifiedDateTime) {
return true
}
return false
}
// SetLastModifiedDateTime gets a reference to the given time.Time and assigns it to the LastModifiedDateTime field.
func (o *FileSystemInfo) SetLastModifiedDateTime(v time.Time) {
o.LastModifiedDateTime = &v
}
func (o FileSystemInfo) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o FileSystemInfo) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.CreatedDateTime) {
toSerialize["createdDateTime"] = o.CreatedDateTime
}
if !IsNil(o.LastAccessedDateTime) {
toSerialize["lastAccessedDateTime"] = o.LastAccessedDateTime
}
if !IsNil(o.LastModifiedDateTime) {
toSerialize["lastModifiedDateTime"] = o.LastModifiedDateTime
}
return toSerialize, nil
}
type NullableFileSystemInfo struct {
value *FileSystemInfo
isSet bool
}
func (v NullableFileSystemInfo) Get() *FileSystemInfo {
return v.value
}
func (v *NullableFileSystemInfo) Set(val *FileSystemInfo) {
v.value = val
v.isSet = true
}
func (v NullableFileSystemInfo) IsSet() bool {
return v.isSet
}
func (v *NullableFileSystemInfo) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableFileSystemInfo(val *FileSystemInfo) *NullableFileSystemInfo {
return &NullableFileSystemInfo{value: val, isSet: true}
}
func (v NullableFileSystemInfo) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableFileSystemInfo) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}