mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-09-13 22:29:01 -04:00
127 lines
3.8 KiB
Go
127 lines
3.8 KiB
Go
/*
|
|
Libre Graph API
|
|
|
|
Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
|
|
|
|
API version: v1.0.8
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package libregraph
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the PendingOperations type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &PendingOperations{}
|
|
|
|
// PendingOperations Present while operations affecting the item's content have not completed, whether still queued or already running. While present, requests for the item's content fail, the content is withheld until processing completes and the facet disappears.
|
|
type PendingOperations struct {
|
|
PendingContentUpdate *PendingOperationsPendingContentUpdate `json:"pendingContentUpdate,omitempty"`
|
|
}
|
|
|
|
// NewPendingOperations instantiates a new PendingOperations 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 NewPendingOperations() *PendingOperations {
|
|
this := PendingOperations{}
|
|
return &this
|
|
}
|
|
|
|
// NewPendingOperationsWithDefaults instantiates a new PendingOperations 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 NewPendingOperationsWithDefaults() *PendingOperations {
|
|
this := PendingOperations{}
|
|
return &this
|
|
}
|
|
|
|
// GetPendingContentUpdate returns the PendingContentUpdate field value if set, zero value otherwise.
|
|
func (o *PendingOperations) GetPendingContentUpdate() PendingOperationsPendingContentUpdate {
|
|
if o == nil || IsNil(o.PendingContentUpdate) {
|
|
var ret PendingOperationsPendingContentUpdate
|
|
return ret
|
|
}
|
|
return *o.PendingContentUpdate
|
|
}
|
|
|
|
// GetPendingContentUpdateOk returns a tuple with the PendingContentUpdate field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PendingOperations) GetPendingContentUpdateOk() (*PendingOperationsPendingContentUpdate, bool) {
|
|
if o == nil || IsNil(o.PendingContentUpdate) {
|
|
return nil, false
|
|
}
|
|
return o.PendingContentUpdate, true
|
|
}
|
|
|
|
// HasPendingContentUpdate returns a boolean if a field has been set.
|
|
func (o *PendingOperations) HasPendingContentUpdate() bool {
|
|
if o != nil && !IsNil(o.PendingContentUpdate) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPendingContentUpdate gets a reference to the given PendingOperationsPendingContentUpdate and assigns it to the PendingContentUpdate field.
|
|
func (o *PendingOperations) SetPendingContentUpdate(v PendingOperationsPendingContentUpdate) {
|
|
o.PendingContentUpdate = &v
|
|
}
|
|
|
|
func (o PendingOperations) MarshalJSON() ([]byte, error) {
|
|
toSerialize,err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o PendingOperations) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.PendingContentUpdate) {
|
|
toSerialize["pendingContentUpdate"] = o.PendingContentUpdate
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullablePendingOperations struct {
|
|
value *PendingOperations
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullablePendingOperations) Get() *PendingOperations {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullablePendingOperations) Set(val *PendingOperations) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullablePendingOperations) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullablePendingOperations) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullablePendingOperations(val *PendingOperations) *NullablePendingOperations {
|
|
return &NullablePendingOperations{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullablePendingOperations) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullablePendingOperations) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|