-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmodel_remote_item.go
858 lines (734 loc) · 23.1 KB
/
model_remote_item.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
/*
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 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"`
// Date and time of item creation. Read-only.
CreatedDateTime *time.Time `json:"createdDateTime,omitempty" validate:"regexp=^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$"`
File *OpenGraphFile `json:"file,omitempty"`
FileSystemInfo *FileSystemInfo `json:"fileSystemInfo,omitempty"`
Folder *Folder `json:"folder,omitempty"`
// The drive alias can be used in clients to make the urls user friendly. Example: 'personal/einstein'. This will be used to resolve to the correct driveID.
DriveAlias *string `json:"driveAlias,omitempty"`
// The relative path of the item in relation to its drive root.
Path *string `json:"path,omitempty"`
// Unique identifier for the drive root of this item. Read-only.
RootId *string `json:"rootId,omitempty"`
// Unique identifier for the remote item in its drive. Read-only.
Id *string `json:"id,omitempty"`
Image *Image `json:"image,omitempty"`
LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
// Date and time the item was last modified. Read-only.
LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty" validate:"regexp=^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$"`
// Optional. Filename of the remote item. Read-only.
Name *string `json:"name,omitempty"`
// ETag for the item. Read-only.
ETag *string `json:"eTag,omitempty"`
// An eTag for the content of the item. This eTag is not changed if only the metadata is changed. Note This property is not returned if the item is a folder. Read-only.
CTag *string `json:"cTag,omitempty"`
ParentReference *ItemReference `json:"parentReference,omitempty"`
// The set of permissions for the item. Read-only. Nullable.
Permissions []Permission `json:"permissions,omitempty"`
// Size of the remote item. Read-only.
Size *int64 `json:"size,omitempty"`
SpecialFolder *SpecialFolder `json:"specialFolder,omitempty"`
// DAV compatible URL for the item.
WebDavUrl *string `json:"webDavUrl,omitempty"`
// URL that displays the resource in the browser. Read-only.
WebUrl *string `json:"webUrl,omitempty"`
}
// NewRemoteItem instantiates a new RemoteItem 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 NewRemoteItem() *RemoteItem {
this := RemoteItem{}
return &this
}
// NewRemoteItemWithDefaults instantiates a new RemoteItem 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 NewRemoteItemWithDefaults() *RemoteItem {
this := RemoteItem{}
return &this
}
// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise.
func (o *RemoteItem) GetCreatedBy() IdentitySet {
if o == nil || IsNil(o.CreatedBy) {
var ret IdentitySet
return ret
}
return *o.CreatedBy
}
// 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 || IsNil(o.CreatedBy) {
return nil, false
}
return o.CreatedBy, true
}
// HasCreatedBy returns a boolean if a field has been set.
func (o *RemoteItem) HasCreatedBy() bool {
if o != nil && !IsNil(o.CreatedBy) {
return true
}
return false
}
// SetCreatedBy gets a reference to the given IdentitySet and assigns it to the CreatedBy field.
func (o *RemoteItem) SetCreatedBy(v IdentitySet) {
o.CreatedBy = &v
}
// GetCreatedDateTime returns the CreatedDateTime field value if set, zero value otherwise.
func (o *RemoteItem) 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 *RemoteItem) 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 *RemoteItem) 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 *RemoteItem) SetCreatedDateTime(v time.Time) {
o.CreatedDateTime = &v
}
// GetFile returns the File field value if set, zero value otherwise.
func (o *RemoteItem) GetFile() OpenGraphFile {
if o == nil || IsNil(o.File) {
var ret OpenGraphFile
return ret
}
return *o.File
}
// 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 || IsNil(o.File) {
return nil, false
}
return o.File, true
}
// HasFile returns a boolean if a field has been set.
func (o *RemoteItem) HasFile() bool {
if o != nil && !IsNil(o.File) {
return true
}
return false
}
// SetFile gets a reference to the given OpenGraphFile and assigns it to the File field.
func (o *RemoteItem) SetFile(v OpenGraphFile) {
o.File = &v
}
// GetFileSystemInfo returns the FileSystemInfo field value if set, zero value otherwise.
func (o *RemoteItem) GetFileSystemInfo() FileSystemInfo {
if o == nil || IsNil(o.FileSystemInfo) {
var ret FileSystemInfo
return ret
}
return *o.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 || IsNil(o.FileSystemInfo) {
return nil, false
}
return o.FileSystemInfo, true
}
// HasFileSystemInfo returns a boolean if a field has been set.
func (o *RemoteItem) HasFileSystemInfo() bool {
if o != nil && !IsNil(o.FileSystemInfo) {
return true
}
return false
}
// SetFileSystemInfo gets a reference to the given FileSystemInfo and assigns it to the FileSystemInfo field.
func (o *RemoteItem) SetFileSystemInfo(v FileSystemInfo) {
o.FileSystemInfo = &v
}
// GetFolder returns the Folder field value if set, zero value otherwise.
func (o *RemoteItem) GetFolder() Folder {
if o == nil || IsNil(o.Folder) {
var ret Folder
return ret
}
return *o.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 || IsNil(o.Folder) {
return nil, false
}
return o.Folder, true
}
// HasFolder returns a boolean if a field has been set.
func (o *RemoteItem) HasFolder() bool {
if o != nil && !IsNil(o.Folder) {
return true
}
return false
}
// SetFolder gets a reference to the given Folder and assigns it to the Folder field.
func (o *RemoteItem) SetFolder(v Folder) {
o.Folder = &v
}
// GetDriveAlias returns the DriveAlias field value if set, zero value otherwise.
func (o *RemoteItem) GetDriveAlias() string {
if o == nil || IsNil(o.DriveAlias) {
var ret string
return ret
}
return *o.DriveAlias
}
// 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 || IsNil(o.DriveAlias) {
return nil, false
}
return o.DriveAlias, true
}
// HasDriveAlias returns a boolean if a field has been set.
func (o *RemoteItem) HasDriveAlias() bool {
if o != nil && !IsNil(o.DriveAlias) {
return true
}
return false
}
// SetDriveAlias gets a reference to the given string and assigns it to the DriveAlias field.
func (o *RemoteItem) SetDriveAlias(v string) {
o.DriveAlias = &v
}
// GetPath returns the Path field value if set, zero value otherwise.
func (o *RemoteItem) GetPath() string {
if o == nil || IsNil(o.Path) {
var ret string
return ret
}
return *o.Path
}
// 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 || IsNil(o.Path) {
return nil, false
}
return o.Path, true
}
// HasPath returns a boolean if a field has been set.
func (o *RemoteItem) HasPath() bool {
if o != nil && !IsNil(o.Path) {
return true
}
return false
}
// SetPath gets a reference to the given string and assigns it to the Path field.
func (o *RemoteItem) SetPath(v string) {
o.Path = &v
}
// GetRootId returns the RootId field value if set, zero value otherwise.
func (o *RemoteItem) GetRootId() string {
if o == nil || IsNil(o.RootId) {
var ret string
return ret
}
return *o.RootId
}
// 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 || IsNil(o.RootId) {
return nil, false
}
return o.RootId, true
}
// HasRootId returns a boolean if a field has been set.
func (o *RemoteItem) HasRootId() bool {
if o != nil && !IsNil(o.RootId) {
return true
}
return false
}
// SetRootId gets a reference to the given string and assigns it to the RootId field.
func (o *RemoteItem) SetRootId(v string) {
o.RootId = &v
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *RemoteItem) GetId() string {
if o == nil || IsNil(o.Id) {
var ret string
return ret
}
return *o.Id
}
// 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 || IsNil(o.Id) {
return nil, false
}
return o.Id, true
}
// HasId returns a boolean if a field has been set.
func (o *RemoteItem) HasId() bool {
if o != nil && !IsNil(o.Id) {
return true
}
return false
}
// SetId gets a reference to the given string and assigns it to the Id field.
func (o *RemoteItem) SetId(v string) {
o.Id = &v
}
// GetImage returns the Image field value if set, zero value otherwise.
func (o *RemoteItem) GetImage() Image {
if o == nil || IsNil(o.Image) {
var ret Image
return ret
}
return *o.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 || IsNil(o.Image) {
return nil, false
}
return o.Image, true
}
// HasImage returns a boolean if a field has been set.
func (o *RemoteItem) HasImage() bool {
if o != nil && !IsNil(o.Image) {
return true
}
return false
}
// SetImage gets a reference to the given Image and assigns it to the Image field.
func (o *RemoteItem) SetImage(v Image) {
o.Image = &v
}
// GetLastModifiedBy returns the LastModifiedBy field value if set, zero value otherwise.
func (o *RemoteItem) GetLastModifiedBy() IdentitySet {
if o == nil || IsNil(o.LastModifiedBy) {
var ret IdentitySet
return ret
}
return *o.LastModifiedBy
}
// 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 || IsNil(o.LastModifiedBy) {
return nil, false
}
return o.LastModifiedBy, true
}
// HasLastModifiedBy returns a boolean if a field has been set.
func (o *RemoteItem) HasLastModifiedBy() bool {
if o != nil && !IsNil(o.LastModifiedBy) {
return true
}
return false
}
// SetLastModifiedBy gets a reference to the given IdentitySet and assigns it to the LastModifiedBy field.
func (o *RemoteItem) SetLastModifiedBy(v IdentitySet) {
o.LastModifiedBy = &v
}
// GetLastModifiedDateTime returns the LastModifiedDateTime field value if set, zero value otherwise.
func (o *RemoteItem) 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 *RemoteItem) 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 *RemoteItem) 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 *RemoteItem) SetLastModifiedDateTime(v time.Time) {
o.LastModifiedDateTime = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *RemoteItem) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
}
return *o.Name
}
// 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 || IsNil(o.Name) {
return nil, false
}
return o.Name, true
}
// HasName returns a boolean if a field has been set.
func (o *RemoteItem) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
return false
}
// SetName gets a reference to the given string and assigns it to the Name field.
func (o *RemoteItem) SetName(v string) {
o.Name = &v
}
// GetETag returns the ETag field value if set, zero value otherwise.
func (o *RemoteItem) GetETag() string {
if o == nil || IsNil(o.ETag) {
var ret string
return ret
}
return *o.ETag
}
// 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 || IsNil(o.ETag) {
return nil, false
}
return o.ETag, true
}
// HasETag returns a boolean if a field has been set.
func (o *RemoteItem) HasETag() bool {
if o != nil && !IsNil(o.ETag) {
return true
}
return false
}
// SetETag gets a reference to the given string and assigns it to the ETag field.
func (o *RemoteItem) SetETag(v string) {
o.ETag = &v
}
// GetCTag returns the CTag field value if set, zero value otherwise.
func (o *RemoteItem) GetCTag() string {
if o == nil || IsNil(o.CTag) {
var ret string
return ret
}
return *o.CTag
}
// 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 || IsNil(o.CTag) {
return nil, false
}
return o.CTag, true
}
// HasCTag returns a boolean if a field has been set.
func (o *RemoteItem) HasCTag() bool {
if o != nil && !IsNil(o.CTag) {
return true
}
return false
}
// SetCTag gets a reference to the given string and assigns it to the CTag field.
func (o *RemoteItem) SetCTag(v string) {
o.CTag = &v
}
// GetParentReference returns the ParentReference field value if set, zero value otherwise.
func (o *RemoteItem) GetParentReference() ItemReference {
if o == nil || IsNil(o.ParentReference) {
var ret ItemReference
return ret
}
return *o.ParentReference
}
// 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 || IsNil(o.ParentReference) {
return nil, false
}
return o.ParentReference, true
}
// HasParentReference returns a boolean if a field has been set.
func (o *RemoteItem) HasParentReference() bool {
if o != nil && !IsNil(o.ParentReference) {
return true
}
return false
}
// SetParentReference gets a reference to the given ItemReference and assigns it to the ParentReference field.
func (o *RemoteItem) SetParentReference(v ItemReference) {
o.ParentReference = &v
}
// GetPermissions returns the Permissions field value if set, zero value otherwise.
func (o *RemoteItem) GetPermissions() []Permission {
if o == nil || IsNil(o.Permissions) {
var ret []Permission
return ret
}
return o.Permissions
}
// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RemoteItem) GetPermissionsOk() ([]Permission, bool) {
if o == nil || IsNil(o.Permissions) {
return nil, false
}
return o.Permissions, true
}
// HasPermissions returns a boolean if a field has been set.
func (o *RemoteItem) HasPermissions() bool {
if o != nil && !IsNil(o.Permissions) {
return true
}
return false
}
// SetPermissions gets a reference to the given []Permission and assigns it to the Permissions field.
func (o *RemoteItem) SetPermissions(v []Permission) {
o.Permissions = v
}
// GetSize returns the Size field value if set, zero value otherwise.
func (o *RemoteItem) GetSize() int64 {
if o == nil || IsNil(o.Size) {
var ret int64
return ret
}
return *o.Size
}
// 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 || IsNil(o.Size) {
return nil, false
}
return o.Size, true
}
// HasSize returns a boolean if a field has been set.
func (o *RemoteItem) HasSize() bool {
if o != nil && !IsNil(o.Size) {
return true
}
return false
}
// SetSize gets a reference to the given int64 and assigns it to the Size field.
func (o *RemoteItem) SetSize(v int64) {
o.Size = &v
}
// GetSpecialFolder returns the SpecialFolder field value if set, zero value otherwise.
func (o *RemoteItem) GetSpecialFolder() SpecialFolder {
if o == nil || IsNil(o.SpecialFolder) {
var ret SpecialFolder
return ret
}
return *o.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 || IsNil(o.SpecialFolder) {
return nil, false
}
return o.SpecialFolder, true
}
// HasSpecialFolder returns a boolean if a field has been set.
func (o *RemoteItem) HasSpecialFolder() bool {
if o != nil && !IsNil(o.SpecialFolder) {
return true
}
return false
}
// SetSpecialFolder gets a reference to the given SpecialFolder and assigns it to the SpecialFolder field.
func (o *RemoteItem) SetSpecialFolder(v SpecialFolder) {
o.SpecialFolder = &v
}
// GetWebDavUrl returns the WebDavUrl field value if set, zero value otherwise.
func (o *RemoteItem) GetWebDavUrl() string {
if o == nil || IsNil(o.WebDavUrl) {
var ret string
return ret
}
return *o.WebDavUrl
}
// 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 || IsNil(o.WebDavUrl) {
return nil, false
}
return o.WebDavUrl, true
}
// HasWebDavUrl returns a boolean if a field has been set.
func (o *RemoteItem) HasWebDavUrl() bool {
if o != nil && !IsNil(o.WebDavUrl) {
return true
}
return false
}
// SetWebDavUrl gets a reference to the given string and assigns it to the WebDavUrl field.
func (o *RemoteItem) SetWebDavUrl(v string) {
o.WebDavUrl = &v
}
// GetWebUrl returns the WebUrl field value if set, zero value otherwise.
func (o *RemoteItem) GetWebUrl() string {
if o == nil || IsNil(o.WebUrl) {
var ret string
return ret
}
return *o.WebUrl
}
// 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 || IsNil(o.WebUrl) {
return nil, false
}
return o.WebUrl, true
}
// HasWebUrl returns a boolean if a field has been set.
func (o *RemoteItem) HasWebUrl() bool {
if o != nil && !IsNil(o.WebUrl) {
return true
}
return false
}
// SetWebUrl gets a reference to the given string and assigns it to the WebUrl field.
func (o *RemoteItem) SetWebUrl(v string) {
o.WebUrl = &v
}
func (o RemoteItem) MarshalJSON() ([]byte, error) {
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.Permissions) {
toSerialize["permissions"] = o.Permissions
}
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
}
func (v NullableRemoteItem) Get() *RemoteItem {
return v.value
}
func (v *NullableRemoteItem) Set(val *RemoteItem) {
v.value = val
v.isSet = true
}
func (v NullableRemoteItem) IsSet() bool {
return v.isSet
}
func (v *NullableRemoteItem) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableRemoteItem(val *RemoteItem) *NullableRemoteItem {
return &NullableRemoteItem{value: val, isSet: true}
}
func (v NullableRemoteItem) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableRemoteItem) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}