-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmodel_item.go
1558 lines (1336 loc) · 43.8 KB
/
model_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
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
/*
* Akeyless API
*
* The purpose of this application is to provide access to Akeyless API.
*
* API version: 2.0
* Contact: [email protected]
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package akeyless
import (
"encoding/json"
"time"
)
// Item struct for Item
type Item struct {
AccessDate *time.Time `json:"access_date,omitempty"`
AccessDateDisplay *string `json:"access_date_display,omitempty"`
AccessRequestStatus *string `json:"access_request_status,omitempty"`
AutoRotate *bool `json:"auto_rotate,omitempty"`
BastionDetails *BastionsList `json:"bastion_details,omitempty"`
CertIssuerSignerKeyName *string `json:"cert_issuer_signer_key_name,omitempty"`
CertificateIssueDetails *CertificateIssueInfo `json:"certificate_issue_details,omitempty"`
Certificates *string `json:"certificates,omitempty"`
ClientPermissions *[]string `json:"client_permissions,omitempty"`
CreationDate *time.Time `json:"creation_date,omitempty"`
CustomerFragmentId *string `json:"customer_fragment_id,omitempty"`
DeleteProtection *bool `json:"delete_protection,omitempty"`
DeletionDate *time.Time `json:"deletion_date,omitempty"`
DisplayId *string `json:"display_id,omitempty"`
GatewayDetails *[]GatewayBasicInfo `json:"gateway_details,omitempty"`
IsAccessRequestEnabled *bool `json:"is_access_request_enabled,omitempty"`
IsEnabled *bool `json:"is_enabled,omitempty"`
ItemAccessibility *int64 `json:"item_accessibility,omitempty"`
ItemGeneralInfo *ItemGeneralInfo `json:"item_general_info,omitempty"`
ItemId *int64 `json:"item_id,omitempty"`
ItemMetadata *string `json:"item_metadata,omitempty"`
ItemName *string `json:"item_name,omitempty"`
ItemSize *int64 `json:"item_size,omitempty"`
// ItemState defines the different states an Item can be in
ItemState *string `json:"item_state,omitempty"`
ItemSubType *string `json:"item_sub_type,omitempty"`
ItemTags *[]string `json:"item_tags,omitempty"`
ItemTargetsAssoc *[]ItemTargetAssociation `json:"item_targets_assoc,omitempty"`
ItemType *string `json:"item_type,omitempty"`
ItemVersions *[]ItemVersion `json:"item_versions,omitempty"`
LastRotationDate *time.Time `json:"last_rotation_date,omitempty"`
LastVersion *int32 `json:"last_version,omitempty"`
LinkedDetails *LinkedDetails `json:"linked_details,omitempty"`
ModificationDate *time.Time `json:"modification_date,omitempty"`
NextRotationDate *time.Time `json:"next_rotation_date,omitempty"`
ProtectionKeyName *string `json:"protection_key_name,omitempty"`
ProtectionKeyType *string `json:"protection_key_type,omitempty"`
PublicValue *string `json:"public_value,omitempty"`
RotationInterval *int64 `json:"rotation_interval,omitempty"`
SharedBy *RuleAssigner `json:"shared_by,omitempty"`
TargetVersions *[]TargetItemVersion `json:"target_versions,omitempty"`
WithCustomerFragment *bool `json:"with_customer_fragment,omitempty"`
}
// NewItem instantiates a new Item 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 NewItem() *Item {
this := Item{}
return &this
}
// NewItemWithDefaults instantiates a new Item 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 NewItemWithDefaults() *Item {
this := Item{}
return &this
}
// GetAccessDate returns the AccessDate field value if set, zero value otherwise.
func (o *Item) GetAccessDate() time.Time {
if o == nil || o.AccessDate == nil {
var ret time.Time
return ret
}
return *o.AccessDate
}
// GetAccessDateOk returns a tuple with the AccessDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetAccessDateOk() (*time.Time, bool) {
if o == nil || o.AccessDate == nil {
return nil, false
}
return o.AccessDate, true
}
// HasAccessDate returns a boolean if a field has been set.
func (o *Item) HasAccessDate() bool {
if o != nil && o.AccessDate != nil {
return true
}
return false
}
// SetAccessDate gets a reference to the given time.Time and assigns it to the AccessDate field.
func (o *Item) SetAccessDate(v time.Time) {
o.AccessDate = &v
}
// GetAccessDateDisplay returns the AccessDateDisplay field value if set, zero value otherwise.
func (o *Item) GetAccessDateDisplay() string {
if o == nil || o.AccessDateDisplay == nil {
var ret string
return ret
}
return *o.AccessDateDisplay
}
// GetAccessDateDisplayOk returns a tuple with the AccessDateDisplay field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetAccessDateDisplayOk() (*string, bool) {
if o == nil || o.AccessDateDisplay == nil {
return nil, false
}
return o.AccessDateDisplay, true
}
// HasAccessDateDisplay returns a boolean if a field has been set.
func (o *Item) HasAccessDateDisplay() bool {
if o != nil && o.AccessDateDisplay != nil {
return true
}
return false
}
// SetAccessDateDisplay gets a reference to the given string and assigns it to the AccessDateDisplay field.
func (o *Item) SetAccessDateDisplay(v string) {
o.AccessDateDisplay = &v
}
// GetAccessRequestStatus returns the AccessRequestStatus field value if set, zero value otherwise.
func (o *Item) GetAccessRequestStatus() string {
if o == nil || o.AccessRequestStatus == nil {
var ret string
return ret
}
return *o.AccessRequestStatus
}
// GetAccessRequestStatusOk returns a tuple with the AccessRequestStatus field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetAccessRequestStatusOk() (*string, bool) {
if o == nil || o.AccessRequestStatus == nil {
return nil, false
}
return o.AccessRequestStatus, true
}
// HasAccessRequestStatus returns a boolean if a field has been set.
func (o *Item) HasAccessRequestStatus() bool {
if o != nil && o.AccessRequestStatus != nil {
return true
}
return false
}
// SetAccessRequestStatus gets a reference to the given string and assigns it to the AccessRequestStatus field.
func (o *Item) SetAccessRequestStatus(v string) {
o.AccessRequestStatus = &v
}
// GetAutoRotate returns the AutoRotate field value if set, zero value otherwise.
func (o *Item) GetAutoRotate() bool {
if o == nil || o.AutoRotate == nil {
var ret bool
return ret
}
return *o.AutoRotate
}
// GetAutoRotateOk returns a tuple with the AutoRotate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetAutoRotateOk() (*bool, bool) {
if o == nil || o.AutoRotate == nil {
return nil, false
}
return o.AutoRotate, true
}
// HasAutoRotate returns a boolean if a field has been set.
func (o *Item) HasAutoRotate() bool {
if o != nil && o.AutoRotate != nil {
return true
}
return false
}
// SetAutoRotate gets a reference to the given bool and assigns it to the AutoRotate field.
func (o *Item) SetAutoRotate(v bool) {
o.AutoRotate = &v
}
// GetBastionDetails returns the BastionDetails field value if set, zero value otherwise.
func (o *Item) GetBastionDetails() BastionsList {
if o == nil || o.BastionDetails == nil {
var ret BastionsList
return ret
}
return *o.BastionDetails
}
// GetBastionDetailsOk returns a tuple with the BastionDetails field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetBastionDetailsOk() (*BastionsList, bool) {
if o == nil || o.BastionDetails == nil {
return nil, false
}
return o.BastionDetails, true
}
// HasBastionDetails returns a boolean if a field has been set.
func (o *Item) HasBastionDetails() bool {
if o != nil && o.BastionDetails != nil {
return true
}
return false
}
// SetBastionDetails gets a reference to the given BastionsList and assigns it to the BastionDetails field.
func (o *Item) SetBastionDetails(v BastionsList) {
o.BastionDetails = &v
}
// GetCertIssuerSignerKeyName returns the CertIssuerSignerKeyName field value if set, zero value otherwise.
func (o *Item) GetCertIssuerSignerKeyName() string {
if o == nil || o.CertIssuerSignerKeyName == nil {
var ret string
return ret
}
return *o.CertIssuerSignerKeyName
}
// GetCertIssuerSignerKeyNameOk returns a tuple with the CertIssuerSignerKeyName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetCertIssuerSignerKeyNameOk() (*string, bool) {
if o == nil || o.CertIssuerSignerKeyName == nil {
return nil, false
}
return o.CertIssuerSignerKeyName, true
}
// HasCertIssuerSignerKeyName returns a boolean if a field has been set.
func (o *Item) HasCertIssuerSignerKeyName() bool {
if o != nil && o.CertIssuerSignerKeyName != nil {
return true
}
return false
}
// SetCertIssuerSignerKeyName gets a reference to the given string and assigns it to the CertIssuerSignerKeyName field.
func (o *Item) SetCertIssuerSignerKeyName(v string) {
o.CertIssuerSignerKeyName = &v
}
// GetCertificateIssueDetails returns the CertificateIssueDetails field value if set, zero value otherwise.
func (o *Item) GetCertificateIssueDetails() CertificateIssueInfo {
if o == nil || o.CertificateIssueDetails == nil {
var ret CertificateIssueInfo
return ret
}
return *o.CertificateIssueDetails
}
// GetCertificateIssueDetailsOk returns a tuple with the CertificateIssueDetails field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetCertificateIssueDetailsOk() (*CertificateIssueInfo, bool) {
if o == nil || o.CertificateIssueDetails == nil {
return nil, false
}
return o.CertificateIssueDetails, true
}
// HasCertificateIssueDetails returns a boolean if a field has been set.
func (o *Item) HasCertificateIssueDetails() bool {
if o != nil && o.CertificateIssueDetails != nil {
return true
}
return false
}
// SetCertificateIssueDetails gets a reference to the given CertificateIssueInfo and assigns it to the CertificateIssueDetails field.
func (o *Item) SetCertificateIssueDetails(v CertificateIssueInfo) {
o.CertificateIssueDetails = &v
}
// GetCertificates returns the Certificates field value if set, zero value otherwise.
func (o *Item) GetCertificates() string {
if o == nil || o.Certificates == nil {
var ret string
return ret
}
return *o.Certificates
}
// GetCertificatesOk returns a tuple with the Certificates field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetCertificatesOk() (*string, bool) {
if o == nil || o.Certificates == nil {
return nil, false
}
return o.Certificates, true
}
// HasCertificates returns a boolean if a field has been set.
func (o *Item) HasCertificates() bool {
if o != nil && o.Certificates != nil {
return true
}
return false
}
// SetCertificates gets a reference to the given string and assigns it to the Certificates field.
func (o *Item) SetCertificates(v string) {
o.Certificates = &v
}
// GetClientPermissions returns the ClientPermissions field value if set, zero value otherwise.
func (o *Item) GetClientPermissions() []string {
if o == nil || o.ClientPermissions == nil {
var ret []string
return ret
}
return *o.ClientPermissions
}
// GetClientPermissionsOk returns a tuple with the ClientPermissions field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetClientPermissionsOk() (*[]string, bool) {
if o == nil || o.ClientPermissions == nil {
return nil, false
}
return o.ClientPermissions, true
}
// HasClientPermissions returns a boolean if a field has been set.
func (o *Item) HasClientPermissions() bool {
if o != nil && o.ClientPermissions != nil {
return true
}
return false
}
// SetClientPermissions gets a reference to the given []string and assigns it to the ClientPermissions field.
func (o *Item) SetClientPermissions(v []string) {
o.ClientPermissions = &v
}
// GetCreationDate returns the CreationDate field value if set, zero value otherwise.
func (o *Item) GetCreationDate() time.Time {
if o == nil || o.CreationDate == nil {
var ret time.Time
return ret
}
return *o.CreationDate
}
// GetCreationDateOk returns a tuple with the CreationDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetCreationDateOk() (*time.Time, bool) {
if o == nil || o.CreationDate == nil {
return nil, false
}
return o.CreationDate, true
}
// HasCreationDate returns a boolean if a field has been set.
func (o *Item) HasCreationDate() bool {
if o != nil && o.CreationDate != nil {
return true
}
return false
}
// SetCreationDate gets a reference to the given time.Time and assigns it to the CreationDate field.
func (o *Item) SetCreationDate(v time.Time) {
o.CreationDate = &v
}
// GetCustomerFragmentId returns the CustomerFragmentId field value if set, zero value otherwise.
func (o *Item) GetCustomerFragmentId() string {
if o == nil || o.CustomerFragmentId == nil {
var ret string
return ret
}
return *o.CustomerFragmentId
}
// GetCustomerFragmentIdOk returns a tuple with the CustomerFragmentId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetCustomerFragmentIdOk() (*string, bool) {
if o == nil || o.CustomerFragmentId == nil {
return nil, false
}
return o.CustomerFragmentId, true
}
// HasCustomerFragmentId returns a boolean if a field has been set.
func (o *Item) HasCustomerFragmentId() bool {
if o != nil && o.CustomerFragmentId != nil {
return true
}
return false
}
// SetCustomerFragmentId gets a reference to the given string and assigns it to the CustomerFragmentId field.
func (o *Item) SetCustomerFragmentId(v string) {
o.CustomerFragmentId = &v
}
// GetDeleteProtection returns the DeleteProtection field value if set, zero value otherwise.
func (o *Item) GetDeleteProtection() bool {
if o == nil || o.DeleteProtection == nil {
var ret bool
return ret
}
return *o.DeleteProtection
}
// GetDeleteProtectionOk returns a tuple with the DeleteProtection field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetDeleteProtectionOk() (*bool, bool) {
if o == nil || o.DeleteProtection == nil {
return nil, false
}
return o.DeleteProtection, true
}
// HasDeleteProtection returns a boolean if a field has been set.
func (o *Item) HasDeleteProtection() bool {
if o != nil && o.DeleteProtection != nil {
return true
}
return false
}
// SetDeleteProtection gets a reference to the given bool and assigns it to the DeleteProtection field.
func (o *Item) SetDeleteProtection(v bool) {
o.DeleteProtection = &v
}
// GetDeletionDate returns the DeletionDate field value if set, zero value otherwise.
func (o *Item) GetDeletionDate() time.Time {
if o == nil || o.DeletionDate == nil {
var ret time.Time
return ret
}
return *o.DeletionDate
}
// GetDeletionDateOk returns a tuple with the DeletionDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetDeletionDateOk() (*time.Time, bool) {
if o == nil || o.DeletionDate == nil {
return nil, false
}
return o.DeletionDate, true
}
// HasDeletionDate returns a boolean if a field has been set.
func (o *Item) HasDeletionDate() bool {
if o != nil && o.DeletionDate != nil {
return true
}
return false
}
// SetDeletionDate gets a reference to the given time.Time and assigns it to the DeletionDate field.
func (o *Item) SetDeletionDate(v time.Time) {
o.DeletionDate = &v
}
// GetDisplayId returns the DisplayId field value if set, zero value otherwise.
func (o *Item) GetDisplayId() string {
if o == nil || o.DisplayId == nil {
var ret string
return ret
}
return *o.DisplayId
}
// GetDisplayIdOk returns a tuple with the DisplayId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetDisplayIdOk() (*string, bool) {
if o == nil || o.DisplayId == nil {
return nil, false
}
return o.DisplayId, true
}
// HasDisplayId returns a boolean if a field has been set.
func (o *Item) HasDisplayId() bool {
if o != nil && o.DisplayId != nil {
return true
}
return false
}
// SetDisplayId gets a reference to the given string and assigns it to the DisplayId field.
func (o *Item) SetDisplayId(v string) {
o.DisplayId = &v
}
// GetGatewayDetails returns the GatewayDetails field value if set, zero value otherwise.
func (o *Item) GetGatewayDetails() []GatewayBasicInfo {
if o == nil || o.GatewayDetails == nil {
var ret []GatewayBasicInfo
return ret
}
return *o.GatewayDetails
}
// GetGatewayDetailsOk returns a tuple with the GatewayDetails field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetGatewayDetailsOk() (*[]GatewayBasicInfo, bool) {
if o == nil || o.GatewayDetails == nil {
return nil, false
}
return o.GatewayDetails, true
}
// HasGatewayDetails returns a boolean if a field has been set.
func (o *Item) HasGatewayDetails() bool {
if o != nil && o.GatewayDetails != nil {
return true
}
return false
}
// SetGatewayDetails gets a reference to the given []GatewayBasicInfo and assigns it to the GatewayDetails field.
func (o *Item) SetGatewayDetails(v []GatewayBasicInfo) {
o.GatewayDetails = &v
}
// GetIsAccessRequestEnabled returns the IsAccessRequestEnabled field value if set, zero value otherwise.
func (o *Item) GetIsAccessRequestEnabled() bool {
if o == nil || o.IsAccessRequestEnabled == nil {
var ret bool
return ret
}
return *o.IsAccessRequestEnabled
}
// GetIsAccessRequestEnabledOk returns a tuple with the IsAccessRequestEnabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetIsAccessRequestEnabledOk() (*bool, bool) {
if o == nil || o.IsAccessRequestEnabled == nil {
return nil, false
}
return o.IsAccessRequestEnabled, true
}
// HasIsAccessRequestEnabled returns a boolean if a field has been set.
func (o *Item) HasIsAccessRequestEnabled() bool {
if o != nil && o.IsAccessRequestEnabled != nil {
return true
}
return false
}
// SetIsAccessRequestEnabled gets a reference to the given bool and assigns it to the IsAccessRequestEnabled field.
func (o *Item) SetIsAccessRequestEnabled(v bool) {
o.IsAccessRequestEnabled = &v
}
// GetIsEnabled returns the IsEnabled field value if set, zero value otherwise.
func (o *Item) GetIsEnabled() bool {
if o == nil || o.IsEnabled == nil {
var ret bool
return ret
}
return *o.IsEnabled
}
// GetIsEnabledOk returns a tuple with the IsEnabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetIsEnabledOk() (*bool, bool) {
if o == nil || o.IsEnabled == nil {
return nil, false
}
return o.IsEnabled, true
}
// HasIsEnabled returns a boolean if a field has been set.
func (o *Item) HasIsEnabled() bool {
if o != nil && o.IsEnabled != nil {
return true
}
return false
}
// SetIsEnabled gets a reference to the given bool and assigns it to the IsEnabled field.
func (o *Item) SetIsEnabled(v bool) {
o.IsEnabled = &v
}
// GetItemAccessibility returns the ItemAccessibility field value if set, zero value otherwise.
func (o *Item) GetItemAccessibility() int64 {
if o == nil || o.ItemAccessibility == nil {
var ret int64
return ret
}
return *o.ItemAccessibility
}
// GetItemAccessibilityOk returns a tuple with the ItemAccessibility field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetItemAccessibilityOk() (*int64, bool) {
if o == nil || o.ItemAccessibility == nil {
return nil, false
}
return o.ItemAccessibility, true
}
// HasItemAccessibility returns a boolean if a field has been set.
func (o *Item) HasItemAccessibility() bool {
if o != nil && o.ItemAccessibility != nil {
return true
}
return false
}
// SetItemAccessibility gets a reference to the given int64 and assigns it to the ItemAccessibility field.
func (o *Item) SetItemAccessibility(v int64) {
o.ItemAccessibility = &v
}
// GetItemGeneralInfo returns the ItemGeneralInfo field value if set, zero value otherwise.
func (o *Item) GetItemGeneralInfo() ItemGeneralInfo {
if o == nil || o.ItemGeneralInfo == nil {
var ret ItemGeneralInfo
return ret
}
return *o.ItemGeneralInfo
}
// GetItemGeneralInfoOk returns a tuple with the ItemGeneralInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetItemGeneralInfoOk() (*ItemGeneralInfo, bool) {
if o == nil || o.ItemGeneralInfo == nil {
return nil, false
}
return o.ItemGeneralInfo, true
}
// HasItemGeneralInfo returns a boolean if a field has been set.
func (o *Item) HasItemGeneralInfo() bool {
if o != nil && o.ItemGeneralInfo != nil {
return true
}
return false
}
// SetItemGeneralInfo gets a reference to the given ItemGeneralInfo and assigns it to the ItemGeneralInfo field.
func (o *Item) SetItemGeneralInfo(v ItemGeneralInfo) {
o.ItemGeneralInfo = &v
}
// GetItemId returns the ItemId field value if set, zero value otherwise.
func (o *Item) GetItemId() int64 {
if o == nil || o.ItemId == nil {
var ret int64
return ret
}
return *o.ItemId
}
// GetItemIdOk returns a tuple with the ItemId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetItemIdOk() (*int64, bool) {
if o == nil || o.ItemId == nil {
return nil, false
}
return o.ItemId, true
}
// HasItemId returns a boolean if a field has been set.
func (o *Item) HasItemId() bool {
if o != nil && o.ItemId != nil {
return true
}
return false
}
// SetItemId gets a reference to the given int64 and assigns it to the ItemId field.
func (o *Item) SetItemId(v int64) {
o.ItemId = &v
}
// GetItemMetadata returns the ItemMetadata field value if set, zero value otherwise.
func (o *Item) GetItemMetadata() string {
if o == nil || o.ItemMetadata == nil {
var ret string
return ret
}
return *o.ItemMetadata
}
// GetItemMetadataOk returns a tuple with the ItemMetadata field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetItemMetadataOk() (*string, bool) {
if o == nil || o.ItemMetadata == nil {
return nil, false
}
return o.ItemMetadata, true
}
// HasItemMetadata returns a boolean if a field has been set.
func (o *Item) HasItemMetadata() bool {
if o != nil && o.ItemMetadata != nil {
return true
}
return false
}
// SetItemMetadata gets a reference to the given string and assigns it to the ItemMetadata field.
func (o *Item) SetItemMetadata(v string) {
o.ItemMetadata = &v
}
// GetItemName returns the ItemName field value if set, zero value otherwise.
func (o *Item) GetItemName() string {
if o == nil || o.ItemName == nil {
var ret string
return ret
}
return *o.ItemName
}
// GetItemNameOk returns a tuple with the ItemName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetItemNameOk() (*string, bool) {
if o == nil || o.ItemName == nil {
return nil, false
}
return o.ItemName, true
}
// HasItemName returns a boolean if a field has been set.
func (o *Item) HasItemName() bool {
if o != nil && o.ItemName != nil {
return true
}
return false
}
// SetItemName gets a reference to the given string and assigns it to the ItemName field.
func (o *Item) SetItemName(v string) {
o.ItemName = &v
}
// GetItemSize returns the ItemSize field value if set, zero value otherwise.
func (o *Item) GetItemSize() int64 {
if o == nil || o.ItemSize == nil {
var ret int64
return ret
}
return *o.ItemSize
}
// GetItemSizeOk returns a tuple with the ItemSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetItemSizeOk() (*int64, bool) {
if o == nil || o.ItemSize == nil {
return nil, false
}
return o.ItemSize, true
}
// HasItemSize returns a boolean if a field has been set.
func (o *Item) HasItemSize() bool {
if o != nil && o.ItemSize != nil {
return true
}
return false
}
// SetItemSize gets a reference to the given int64 and assigns it to the ItemSize field.
func (o *Item) SetItemSize(v int64) {
o.ItemSize = &v
}
// GetItemState returns the ItemState field value if set, zero value otherwise.
func (o *Item) GetItemState() string {
if o == nil || o.ItemState == nil {
var ret string
return ret
}
return *o.ItemState
}
// GetItemStateOk returns a tuple with the ItemState field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetItemStateOk() (*string, bool) {
if o == nil || o.ItemState == nil {
return nil, false
}
return o.ItemState, true
}
// HasItemState returns a boolean if a field has been set.
func (o *Item) HasItemState() bool {
if o != nil && o.ItemState != nil {
return true
}
return false
}
// SetItemState gets a reference to the given string and assigns it to the ItemState field.
func (o *Item) SetItemState(v string) {
o.ItemState = &v
}
// GetItemSubType returns the ItemSubType field value if set, zero value otherwise.
func (o *Item) GetItemSubType() string {
if o == nil || o.ItemSubType == nil {
var ret string
return ret
}
return *o.ItemSubType
}
// GetItemSubTypeOk returns a tuple with the ItemSubType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetItemSubTypeOk() (*string, bool) {
if o == nil || o.ItemSubType == nil {
return nil, false
}
return o.ItemSubType, true
}
// HasItemSubType returns a boolean if a field has been set.
func (o *Item) HasItemSubType() bool {
if o != nil && o.ItemSubType != nil {
return true
}
return false
}
// SetItemSubType gets a reference to the given string and assigns it to the ItemSubType field.
func (o *Item) SetItemSubType(v string) {
o.ItemSubType = &v
}
// GetItemTags returns the ItemTags field value if set, zero value otherwise.
func (o *Item) GetItemTags() []string {
if o == nil || o.ItemTags == nil {
var ret []string
return ret
}
return *o.ItemTags
}
// GetItemTagsOk returns a tuple with the ItemTags field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetItemTagsOk() (*[]string, bool) {
if o == nil || o.ItemTags == nil {
return nil, false
}
return o.ItemTags, true
}
// HasItemTags returns a boolean if a field has been set.
func (o *Item) HasItemTags() bool {
if o != nil && o.ItemTags != nil {
return true
}
return false
}
// SetItemTags gets a reference to the given []string and assigns it to the ItemTags field.
func (o *Item) SetItemTags(v []string) {
o.ItemTags = &v
}
// GetItemTargetsAssoc returns the ItemTargetsAssoc field value if set, zero value otherwise.
func (o *Item) GetItemTargetsAssoc() []ItemTargetAssociation {
if o == nil || o.ItemTargetsAssoc == nil {
var ret []ItemTargetAssociation
return ret
}
return *o.ItemTargetsAssoc
}
// GetItemTargetsAssocOk returns a tuple with the ItemTargetsAssoc field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetItemTargetsAssocOk() (*[]ItemTargetAssociation, bool) {
if o == nil || o.ItemTargetsAssoc == nil {
return nil, false
}
return o.ItemTargetsAssoc, true
}
// HasItemTargetsAssoc returns a boolean if a field has been set.
func (o *Item) HasItemTargetsAssoc() bool {
if o != nil && o.ItemTargetsAssoc != nil {
return true
}
return false
}
// SetItemTargetsAssoc gets a reference to the given []ItemTargetAssociation and assigns it to the ItemTargetsAssoc field.
func (o *Item) SetItemTargetsAssoc(v []ItemTargetAssociation) {
o.ItemTargetsAssoc = &v
}
// GetItemType returns the ItemType field value if set, zero value otherwise.
func (o *Item) GetItemType() string {
if o == nil || o.ItemType == nil {
var ret string
return ret
}
return *o.ItemType
}
// GetItemTypeOk returns a tuple with the ItemType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetItemTypeOk() (*string, bool) {
if o == nil || o.ItemType == nil {
return nil, false
}
return o.ItemType, true
}
// HasItemType returns a boolean if a field has been set.
func (o *Item) HasItemType() bool {
if o != nil && o.ItemType != nil {
return true
}
return false
}
// SetItemType gets a reference to the given string and assigns it to the ItemType field.
func (o *Item) SetItemType(v string) {
o.ItemType = &v
}
// GetItemVersions returns the ItemVersions field value if set, zero value otherwise.
func (o *Item) GetItemVersions() []ItemVersion {
if o == nil || o.ItemVersions == nil {
var ret []ItemVersion
return ret
}
return *o.ItemVersions
}
// GetItemVersionsOk returns a tuple with the ItemVersions field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Item) GetItemVersionsOk() (*[]ItemVersion, bool) {
if o == nil || o.ItemVersions == nil {
return nil, false
}
return o.ItemVersions, true
}
// HasItemVersions returns a boolean if a field has been set.
func (o *Item) HasItemVersions() bool {
if o != nil && o.ItemVersions != nil {
return true
}