/
model_entry.go
2778 lines (2391 loc) · 74.7 KB
/
model_entry.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
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Cortex XSOAR API
This is the public REST API to integrate with the Cortex XSOAR server. HTTP request can be sent using any HTTP-client. For an example dedicated client take a look at: https://github.com/demisto/demisto-py. Requests must include API-key that can be generated in the Cortex XSOAR web client under 'Settings' -> 'Integrations' -> 'API keys' Optimistic Locking and Versioning\\: When using Cortex XSOAR REST API, you will need to make sure to work on the latest version of the item (incident, entry, etc.), otherwise, you will get a DB version error (which not allow you to override a newer item). In addition, you can pass 'version\\: -1' to force data override (make sure that other users data might be lost). Assume that Alice and Bob both read the same data from Cortex XSOAR server, then they both changed the data, and then both tried to write the new versions back to the server. Whose changes should be saved? Alice’s? Bob’s? To solve this, each data item in Cortex XSOAR has a numeric incremental version. If Alice saved an item with version 4 and Bob trying to save the same item with version 3, Cortex XSOAR will rollback Bob request and returns a DB version conflict error. Bob will need to get the latest item and work on it so Alice work will not get lost. Example request using 'curl'\\: ``` curl 'https://hostname:443/incidents/search' -H 'content-type: application/json' -H 'accept: application/json' -H 'Authorization: <API Key goes here>' --data-binary '{\"filter\":{\"query\":\"-status:closed -category:job\",\"period\":{\"by\":\"day\",\"fromValue\":7}}}' --compressed ```
API version: 2.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
"time"
)
// Entry Entry holds a single entry in an investigation. Entries entered within a short amount of time by the same user are combined
type Entry struct {
IndicatorTimeline *[]IndicatorTimelineFromEntry `json:"IndicatorTimeline,omitempty"`
InstanceID *string `json:"InstanceID,omitempty"`
Relationships *[]RelationshipAPI `json:"Relationships,omitempty"`
ShardID *int64 `json:"ShardID,omitempty"`
AllRead *bool `json:"allRead,omitempty"`
AllReadWrite *bool `json:"allReadWrite,omitempty"`
Brand *string `json:"brand,omitempty"`
Category *string `json:"category,omitempty"`
// The contents of the entry that is actually indexed - should not be used
Contents *map[string]interface{} `json:"contents,omitempty"`
// ContentsSize the total size of the contents
ContentsSize *int64 `json:"contentsSize,omitempty"`
// When it was taken
Created *time.Time `json:"created,omitempty"`
Cron *string `json:"cron,omitempty"`
CronView *bool `json:"cronView,omitempty"`
// Who has created this event - relevant only for manual incidents
DbotCreatedBy *string `json:"dbotCreatedBy,omitempty"`
Deleted *bool `json:"deleted,omitempty"`
DeletedBy *string `json:"deletedBy,omitempty"`
DeletedFromFS *bool `json:"deletedFromFS,omitempty"`
EndingDate *time.Time `json:"endingDate,omitempty"`
// EndingType holds the type of schedule Ending
EndingType *string `json:"endingType,omitempty"`
EntryTask *EntryTask `json:"entryTask,omitempty"`
// Source of the error
ErrorSource *string `json:"errorSource,omitempty"`
// Filename of associated content
File *string `json:"file,omitempty"`
// FileID is the file name when saved in the server
FileID *string `json:"fileID,omitempty"`
FileMetadata *FileMetadata `json:"fileMetadata,omitempty"`
// Holds information on how content is formatted
Format *string `json:"format,omitempty"`
// Internal field to make queries on role faster
HasRole *bool `json:"hasRole,omitempty"`
Highlight *map[string][]string `json:"highlight,omitempty"`
// Edit history
History *[]EntryHistory `json:"history,omitempty"`
HumanCron *HumanCron `json:"humanCron,omitempty"`
Id *string `json:"id,omitempty"`
// store the entry based on IncidentCreationTime
IncidentCreationTime *time.Time `json:"incidentCreationTime,omitempty"`
Instance *string `json:"instance,omitempty"`
// The id of the investigation it belongs to
InvestigationId *string `json:"investigationId,omitempty"`
// IsTodo
IsTodo *bool `json:"isTodo,omitempty"`
// Only used for outbound mirroring to mark that it is already mirrored to remote system
Mirrored *bool `json:"mirrored,omitempty"`
Modified *time.Time `json:"modified,omitempty"`
// Note
Note *bool `json:"note,omitempty"`
NumericId *int64 `json:"numericId,omitempty"`
// ParentEntry content - for reference
ParentContent *map[string]interface{} `json:"parentContent,omitempty"`
// ParentEntryTruncated - indicates weather entry content was truncated
ParentEntryTruncated *bool `json:"parentEntryTruncated,omitempty"`
// ParentId is the ID of the parent entry
ParentId *string `json:"parentId,omitempty"`
// Mark entry as pinned = evidence
Pinned *bool `json:"pinned,omitempty"`
// PlaybookID - if the entry is assigned as note to a playbook task, it will hold the playbook
PlaybookId *string `json:"playbookId,omitempty"`
// Only used for polling entries
Polling *bool `json:"polling,omitempty"`
// ModuleArgs represents module args
PollingArgs *map[string]map[string]interface{} `json:"pollingArgs,omitempty"`
PollingCommand *string `json:"pollingCommand,omitempty"`
PreviousAllRead *bool `json:"previousAllRead,omitempty"`
PreviousAllReadWrite *bool `json:"previousAllReadWrite,omitempty"`
// Do not change this field manually
PreviousRoles *[]string `json:"previousRoles,omitempty"`
PrimaryTerm *int64 `json:"primaryTerm,omitempty"`
// ReadOnly
ReadOnly *bool `json:"readOnly,omitempty"`
Recurrent *bool `json:"recurrent,omitempty"`
// ReputationSize the total size of the reputation
ReputationSize *int64 `json:"reputationSize,omitempty"`
// EntryReputations the reputations calculated by regex match
Reputations *[]EntryReputation `json:"reputations,omitempty"`
// When retry took place
RetryTime *time.Time `json:"retryTime,omitempty"`
// The role assigned to this investigation
Roles *[]string `json:"roles,omitempty"`
// is it scheduled
Scheduled *bool `json:"scheduled,omitempty"`
SequenceNumber *int64 `json:"sequenceNumber,omitempty"`
SortValues *[]string `json:"sortValues,omitempty"`
StartDate *time.Time `json:"startDate,omitempty"`
// The name of the system associated with this entry
System *string `json:"system,omitempty"`
// Tags
Tags *[]string `json:"tags,omitempty"`
// TagsRaw
TagsRaw *[]string `json:"tagsRaw,omitempty"`
// TaskID - used if the entry is assigned as note to a playbook task
TaskId *string `json:"taskId,omitempty"`
Times *int64 `json:"times,omitempty"`
TimesRan *int64 `json:"timesRan,omitempty"`
Timezone *string `json:"timezone,omitempty"`
TimezoneOffset *int64 `json:"timezoneOffset,omitempty"`
// EntryType specifies the type of the entry
Type *float64 `json:"type,omitempty"`
// The user who created the entry
User *string `json:"user,omitempty"`
Version *int64 `json:"version,omitempty"`
XsoarHasReadOnlyRole *bool `json:"xsoarHasReadOnlyRole,omitempty"`
XsoarPreviousReadOnlyRoles *[]string `json:"xsoarPreviousReadOnlyRoles,omitempty"`
XsoarReadOnlyRoles *[]string `json:"xsoarReadOnlyRoles,omitempty"`
}
// NewEntry instantiates a new Entry 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 NewEntry() *Entry {
this := Entry{}
return &this
}
// NewEntryWithDefaults instantiates a new Entry 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 NewEntryWithDefaults() *Entry {
this := Entry{}
return &this
}
// GetIndicatorTimeline returns the IndicatorTimeline field value if set, zero value otherwise.
func (o *Entry) GetIndicatorTimeline() []IndicatorTimelineFromEntry {
if o == nil || o.IndicatorTimeline == nil {
var ret []IndicatorTimelineFromEntry
return ret
}
return *o.IndicatorTimeline
}
// GetIndicatorTimelineOk returns a tuple with the IndicatorTimeline field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetIndicatorTimelineOk() (*[]IndicatorTimelineFromEntry, bool) {
if o == nil || o.IndicatorTimeline == nil {
return nil, false
}
return o.IndicatorTimeline, true
}
// HasIndicatorTimeline returns a boolean if a field has been set.
func (o *Entry) HasIndicatorTimeline() bool {
if o != nil && o.IndicatorTimeline != nil {
return true
}
return false
}
// SetIndicatorTimeline gets a reference to the given []IndicatorTimelineFromEntry and assigns it to the IndicatorTimeline field.
func (o *Entry) SetIndicatorTimeline(v []IndicatorTimelineFromEntry) {
o.IndicatorTimeline = &v
}
// GetInstanceID returns the InstanceID field value if set, zero value otherwise.
func (o *Entry) GetInstanceID() string {
if o == nil || o.InstanceID == nil {
var ret string
return ret
}
return *o.InstanceID
}
// GetInstanceIDOk returns a tuple with the InstanceID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetInstanceIDOk() (*string, bool) {
if o == nil || o.InstanceID == nil {
return nil, false
}
return o.InstanceID, true
}
// HasInstanceID returns a boolean if a field has been set.
func (o *Entry) HasInstanceID() bool {
if o != nil && o.InstanceID != nil {
return true
}
return false
}
// SetInstanceID gets a reference to the given string and assigns it to the InstanceID field.
func (o *Entry) SetInstanceID(v string) {
o.InstanceID = &v
}
// GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *Entry) GetRelationships() []RelationshipAPI {
if o == nil || o.Relationships == nil {
var ret []RelationshipAPI
return ret
}
return *o.Relationships
}
// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetRelationshipsOk() (*[]RelationshipAPI, bool) {
if o == nil || o.Relationships == nil {
return nil, false
}
return o.Relationships, true
}
// HasRelationships returns a boolean if a field has been set.
func (o *Entry) HasRelationships() bool {
if o != nil && o.Relationships != nil {
return true
}
return false
}
// SetRelationships gets a reference to the given []RelationshipAPI and assigns it to the Relationships field.
func (o *Entry) SetRelationships(v []RelationshipAPI) {
o.Relationships = &v
}
// GetShardID returns the ShardID field value if set, zero value otherwise.
func (o *Entry) GetShardID() int64 {
if o == nil || o.ShardID == nil {
var ret int64
return ret
}
return *o.ShardID
}
// GetShardIDOk returns a tuple with the ShardID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetShardIDOk() (*int64, bool) {
if o == nil || o.ShardID == nil {
return nil, false
}
return o.ShardID, true
}
// HasShardID returns a boolean if a field has been set.
func (o *Entry) HasShardID() bool {
if o != nil && o.ShardID != nil {
return true
}
return false
}
// SetShardID gets a reference to the given int64 and assigns it to the ShardID field.
func (o *Entry) SetShardID(v int64) {
o.ShardID = &v
}
// GetAllRead returns the AllRead field value if set, zero value otherwise.
func (o *Entry) GetAllRead() bool {
if o == nil || o.AllRead == nil {
var ret bool
return ret
}
return *o.AllRead
}
// GetAllReadOk returns a tuple with the AllRead field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetAllReadOk() (*bool, bool) {
if o == nil || o.AllRead == nil {
return nil, false
}
return o.AllRead, true
}
// HasAllRead returns a boolean if a field has been set.
func (o *Entry) HasAllRead() bool {
if o != nil && o.AllRead != nil {
return true
}
return false
}
// SetAllRead gets a reference to the given bool and assigns it to the AllRead field.
func (o *Entry) SetAllRead(v bool) {
o.AllRead = &v
}
// GetAllReadWrite returns the AllReadWrite field value if set, zero value otherwise.
func (o *Entry) GetAllReadWrite() bool {
if o == nil || o.AllReadWrite == nil {
var ret bool
return ret
}
return *o.AllReadWrite
}
// GetAllReadWriteOk returns a tuple with the AllReadWrite field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetAllReadWriteOk() (*bool, bool) {
if o == nil || o.AllReadWrite == nil {
return nil, false
}
return o.AllReadWrite, true
}
// HasAllReadWrite returns a boolean if a field has been set.
func (o *Entry) HasAllReadWrite() bool {
if o != nil && o.AllReadWrite != nil {
return true
}
return false
}
// SetAllReadWrite gets a reference to the given bool and assigns it to the AllReadWrite field.
func (o *Entry) SetAllReadWrite(v bool) {
o.AllReadWrite = &v
}
// GetBrand returns the Brand field value if set, zero value otherwise.
func (o *Entry) GetBrand() string {
if o == nil || o.Brand == nil {
var ret string
return ret
}
return *o.Brand
}
// GetBrandOk returns a tuple with the Brand field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetBrandOk() (*string, bool) {
if o == nil || o.Brand == nil {
return nil, false
}
return o.Brand, true
}
// HasBrand returns a boolean if a field has been set.
func (o *Entry) HasBrand() bool {
if o != nil && o.Brand != nil {
return true
}
return false
}
// SetBrand gets a reference to the given string and assigns it to the Brand field.
func (o *Entry) SetBrand(v string) {
o.Brand = &v
}
// GetCategory returns the Category field value if set, zero value otherwise.
func (o *Entry) GetCategory() string {
if o == nil || o.Category == nil {
var ret string
return ret
}
return *o.Category
}
// GetCategoryOk returns a tuple with the Category field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetCategoryOk() (*string, bool) {
if o == nil || o.Category == nil {
return nil, false
}
return o.Category, true
}
// HasCategory returns a boolean if a field has been set.
func (o *Entry) HasCategory() bool {
if o != nil && o.Category != nil {
return true
}
return false
}
// SetCategory gets a reference to the given string and assigns it to the Category field.
func (o *Entry) SetCategory(v string) {
o.Category = &v
}
// GetContents returns the Contents field value if set, zero value otherwise.
func (o *Entry) GetContents() map[string]interface{} {
if o == nil || o.Contents == nil {
var ret map[string]interface{}
return ret
}
return *o.Contents
}
// GetContentsOk returns a tuple with the Contents field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetContentsOk() (*map[string]interface{}, bool) {
if o == nil || o.Contents == nil {
return nil, false
}
return o.Contents, true
}
// HasContents returns a boolean if a field has been set.
func (o *Entry) HasContents() bool {
if o != nil && o.Contents != nil {
return true
}
return false
}
// SetContents gets a reference to the given map[string]interface{} and assigns it to the Contents field.
func (o *Entry) SetContents(v map[string]interface{}) {
o.Contents = &v
}
// GetContentsSize returns the ContentsSize field value if set, zero value otherwise.
func (o *Entry) GetContentsSize() int64 {
if o == nil || o.ContentsSize == nil {
var ret int64
return ret
}
return *o.ContentsSize
}
// GetContentsSizeOk returns a tuple with the ContentsSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetContentsSizeOk() (*int64, bool) {
if o == nil || o.ContentsSize == nil {
return nil, false
}
return o.ContentsSize, true
}
// HasContentsSize returns a boolean if a field has been set.
func (o *Entry) HasContentsSize() bool {
if o != nil && o.ContentsSize != nil {
return true
}
return false
}
// SetContentsSize gets a reference to the given int64 and assigns it to the ContentsSize field.
func (o *Entry) SetContentsSize(v int64) {
o.ContentsSize = &v
}
// GetCreated returns the Created field value if set, zero value otherwise.
func (o *Entry) GetCreated() time.Time {
if o == nil || o.Created == nil {
var ret time.Time
return ret
}
return *o.Created
}
// GetCreatedOk returns a tuple with the Created field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetCreatedOk() (*time.Time, bool) {
if o == nil || o.Created == nil {
return nil, false
}
return o.Created, true
}
// HasCreated returns a boolean if a field has been set.
func (o *Entry) HasCreated() bool {
if o != nil && o.Created != nil {
return true
}
return false
}
// SetCreated gets a reference to the given time.Time and assigns it to the Created field.
func (o *Entry) SetCreated(v time.Time) {
o.Created = &v
}
// GetCron returns the Cron field value if set, zero value otherwise.
func (o *Entry) GetCron() string {
if o == nil || o.Cron == nil {
var ret string
return ret
}
return *o.Cron
}
// GetCronOk returns a tuple with the Cron field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetCronOk() (*string, bool) {
if o == nil || o.Cron == nil {
return nil, false
}
return o.Cron, true
}
// HasCron returns a boolean if a field has been set.
func (o *Entry) HasCron() bool {
if o != nil && o.Cron != nil {
return true
}
return false
}
// SetCron gets a reference to the given string and assigns it to the Cron field.
func (o *Entry) SetCron(v string) {
o.Cron = &v
}
// GetCronView returns the CronView field value if set, zero value otherwise.
func (o *Entry) GetCronView() bool {
if o == nil || o.CronView == nil {
var ret bool
return ret
}
return *o.CronView
}
// GetCronViewOk returns a tuple with the CronView field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetCronViewOk() (*bool, bool) {
if o == nil || o.CronView == nil {
return nil, false
}
return o.CronView, true
}
// HasCronView returns a boolean if a field has been set.
func (o *Entry) HasCronView() bool {
if o != nil && o.CronView != nil {
return true
}
return false
}
// SetCronView gets a reference to the given bool and assigns it to the CronView field.
func (o *Entry) SetCronView(v bool) {
o.CronView = &v
}
// GetDbotCreatedBy returns the DbotCreatedBy field value if set, zero value otherwise.
func (o *Entry) GetDbotCreatedBy() string {
if o == nil || o.DbotCreatedBy == nil {
var ret string
return ret
}
return *o.DbotCreatedBy
}
// GetDbotCreatedByOk returns a tuple with the DbotCreatedBy field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetDbotCreatedByOk() (*string, bool) {
if o == nil || o.DbotCreatedBy == nil {
return nil, false
}
return o.DbotCreatedBy, true
}
// HasDbotCreatedBy returns a boolean if a field has been set.
func (o *Entry) HasDbotCreatedBy() bool {
if o != nil && o.DbotCreatedBy != nil {
return true
}
return false
}
// SetDbotCreatedBy gets a reference to the given string and assigns it to the DbotCreatedBy field.
func (o *Entry) SetDbotCreatedBy(v string) {
o.DbotCreatedBy = &v
}
// GetDeleted returns the Deleted field value if set, zero value otherwise.
func (o *Entry) GetDeleted() bool {
if o == nil || o.Deleted == nil {
var ret bool
return ret
}
return *o.Deleted
}
// GetDeletedOk returns a tuple with the Deleted field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetDeletedOk() (*bool, bool) {
if o == nil || o.Deleted == nil {
return nil, false
}
return o.Deleted, true
}
// HasDeleted returns a boolean if a field has been set.
func (o *Entry) HasDeleted() bool {
if o != nil && o.Deleted != nil {
return true
}
return false
}
// SetDeleted gets a reference to the given bool and assigns it to the Deleted field.
func (o *Entry) SetDeleted(v bool) {
o.Deleted = &v
}
// GetDeletedBy returns the DeletedBy field value if set, zero value otherwise.
func (o *Entry) GetDeletedBy() string {
if o == nil || o.DeletedBy == nil {
var ret string
return ret
}
return *o.DeletedBy
}
// GetDeletedByOk returns a tuple with the DeletedBy field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetDeletedByOk() (*string, bool) {
if o == nil || o.DeletedBy == nil {
return nil, false
}
return o.DeletedBy, true
}
// HasDeletedBy returns a boolean if a field has been set.
func (o *Entry) HasDeletedBy() bool {
if o != nil && o.DeletedBy != nil {
return true
}
return false
}
// SetDeletedBy gets a reference to the given string and assigns it to the DeletedBy field.
func (o *Entry) SetDeletedBy(v string) {
o.DeletedBy = &v
}
// GetDeletedFromFS returns the DeletedFromFS field value if set, zero value otherwise.
func (o *Entry) GetDeletedFromFS() bool {
if o == nil || o.DeletedFromFS == nil {
var ret bool
return ret
}
return *o.DeletedFromFS
}
// GetDeletedFromFSOk returns a tuple with the DeletedFromFS field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetDeletedFromFSOk() (*bool, bool) {
if o == nil || o.DeletedFromFS == nil {
return nil, false
}
return o.DeletedFromFS, true
}
// HasDeletedFromFS returns a boolean if a field has been set.
func (o *Entry) HasDeletedFromFS() bool {
if o != nil && o.DeletedFromFS != nil {
return true
}
return false
}
// SetDeletedFromFS gets a reference to the given bool and assigns it to the DeletedFromFS field.
func (o *Entry) SetDeletedFromFS(v bool) {
o.DeletedFromFS = &v
}
// GetEndingDate returns the EndingDate field value if set, zero value otherwise.
func (o *Entry) GetEndingDate() time.Time {
if o == nil || o.EndingDate == nil {
var ret time.Time
return ret
}
return *o.EndingDate
}
// GetEndingDateOk returns a tuple with the EndingDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetEndingDateOk() (*time.Time, bool) {
if o == nil || o.EndingDate == nil {
return nil, false
}
return o.EndingDate, true
}
// HasEndingDate returns a boolean if a field has been set.
func (o *Entry) HasEndingDate() bool {
if o != nil && o.EndingDate != nil {
return true
}
return false
}
// SetEndingDate gets a reference to the given time.Time and assigns it to the EndingDate field.
func (o *Entry) SetEndingDate(v time.Time) {
o.EndingDate = &v
}
// GetEndingType returns the EndingType field value if set, zero value otherwise.
func (o *Entry) GetEndingType() string {
if o == nil || o.EndingType == nil {
var ret string
return ret
}
return *o.EndingType
}
// GetEndingTypeOk returns a tuple with the EndingType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetEndingTypeOk() (*string, bool) {
if o == nil || o.EndingType == nil {
return nil, false
}
return o.EndingType, true
}
// HasEndingType returns a boolean if a field has been set.
func (o *Entry) HasEndingType() bool {
if o != nil && o.EndingType != nil {
return true
}
return false
}
// SetEndingType gets a reference to the given string and assigns it to the EndingType field.
func (o *Entry) SetEndingType(v string) {
o.EndingType = &v
}
// GetEntryTask returns the EntryTask field value if set, zero value otherwise.
func (o *Entry) GetEntryTask() EntryTask {
if o == nil || o.EntryTask == nil {
var ret EntryTask
return ret
}
return *o.EntryTask
}
// GetEntryTaskOk returns a tuple with the EntryTask field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetEntryTaskOk() (*EntryTask, bool) {
if o == nil || o.EntryTask == nil {
return nil, false
}
return o.EntryTask, true
}
// HasEntryTask returns a boolean if a field has been set.
func (o *Entry) HasEntryTask() bool {
if o != nil && o.EntryTask != nil {
return true
}
return false
}
// SetEntryTask gets a reference to the given EntryTask and assigns it to the EntryTask field.
func (o *Entry) SetEntryTask(v EntryTask) {
o.EntryTask = &v
}
// GetErrorSource returns the ErrorSource field value if set, zero value otherwise.
func (o *Entry) GetErrorSource() string {
if o == nil || o.ErrorSource == nil {
var ret string
return ret
}
return *o.ErrorSource
}
// GetErrorSourceOk returns a tuple with the ErrorSource field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetErrorSourceOk() (*string, bool) {
if o == nil || o.ErrorSource == nil {
return nil, false
}
return o.ErrorSource, true
}
// HasErrorSource returns a boolean if a field has been set.
func (o *Entry) HasErrorSource() bool {
if o != nil && o.ErrorSource != nil {
return true
}
return false
}
// SetErrorSource gets a reference to the given string and assigns it to the ErrorSource field.
func (o *Entry) SetErrorSource(v string) {
o.ErrorSource = &v
}
// GetFile returns the File field value if set, zero value otherwise.
func (o *Entry) GetFile() string {
if o == nil || o.File == nil {
var ret string
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 *Entry) GetFileOk() (*string, bool) {
if o == nil || o.File == nil {
return nil, false
}
return o.File, true
}
// HasFile returns a boolean if a field has been set.
func (o *Entry) HasFile() bool {
if o != nil && o.File != nil {
return true
}
return false
}
// SetFile gets a reference to the given string and assigns it to the File field.
func (o *Entry) SetFile(v string) {
o.File = &v
}
// GetFileID returns the FileID field value if set, zero value otherwise.
func (o *Entry) GetFileID() string {
if o == nil || o.FileID == nil {
var ret string
return ret
}
return *o.FileID
}
// GetFileIDOk returns a tuple with the FileID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetFileIDOk() (*string, bool) {
if o == nil || o.FileID == nil {
return nil, false
}
return o.FileID, true
}
// HasFileID returns a boolean if a field has been set.
func (o *Entry) HasFileID() bool {
if o != nil && o.FileID != nil {
return true
}
return false
}
// SetFileID gets a reference to the given string and assigns it to the FileID field.
func (o *Entry) SetFileID(v string) {
o.FileID = &v
}
// GetFileMetadata returns the FileMetadata field value if set, zero value otherwise.
func (o *Entry) GetFileMetadata() FileMetadata {
if o == nil || o.FileMetadata == nil {
var ret FileMetadata
return ret
}
return *o.FileMetadata
}
// GetFileMetadataOk returns a tuple with the FileMetadata field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetFileMetadataOk() (*FileMetadata, bool) {
if o == nil || o.FileMetadata == nil {
return nil, false
}
return o.FileMetadata, true
}
// HasFileMetadata returns a boolean if a field has been set.
func (o *Entry) HasFileMetadata() bool {
if o != nil && o.FileMetadata != nil {
return true
}
return false
}
// SetFileMetadata gets a reference to the given FileMetadata and assigns it to the FileMetadata field.
func (o *Entry) SetFileMetadata(v FileMetadata) {
o.FileMetadata = &v
}
// GetFormat returns the Format field value if set, zero value otherwise.
func (o *Entry) GetFormat() string {
if o == nil || o.Format == nil {
var ret string
return ret
}
return *o.Format
}
// GetFormatOk returns a tuple with the Format field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetFormatOk() (*string, bool) {
if o == nil || o.Format == nil {
return nil, false
}
return o.Format, true
}
// HasFormat returns a boolean if a field has been set.
func (o *Entry) HasFormat() bool {
if o != nil && o.Format != nil {
return true
}
return false
}
// SetFormat gets a reference to the given string and assigns it to the Format field.
func (o *Entry) SetFormat(v string) {
o.Format = &v
}
// GetHasRole returns the HasRole field value if set, zero value otherwise.
func (o *Entry) GetHasRole() bool {
if o == nil || o.HasRole == nil {
var ret bool
return ret
}
return *o.HasRole
}
// GetHasRoleOk returns a tuple with the HasRole field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetHasRoleOk() (*bool, bool) {
if o == nil || o.HasRole == nil {
return nil, false
}
return o.HasRole, true
}
// HasHasRole returns a boolean if a field has been set.
func (o *Entry) HasHasRole() bool {
if o != nil && o.HasRole != nil {
return true
}
return false
}
// SetHasRole gets a reference to the given bool and assigns it to the HasRole field.
func (o *Entry) SetHasRole(v bool) {
o.HasRole = &v
}
// GetHighlight returns the Highlight field value if set, zero value otherwise.
func (o *Entry) GetHighlight() map[string][]string {
if o == nil || o.Highlight == nil {
var ret map[string][]string
return ret
}
return *o.Highlight
}
// GetHighlightOk returns a tuple with the Highlight field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Entry) GetHighlightOk() (*map[string][]string, bool) {
if o == nil || o.Highlight == nil {
return nil, false
}
return o.Highlight, true
}
// HasHighlight returns a boolean if a field has been set.
func (o *Entry) HasHighlight() bool {