-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmodel_list_items.go
650 lines (558 loc) · 16.8 KB
/
model_list_items.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
/*
* 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"
)
// ListItems struct for ListItems
type ListItems struct {
// for personal password manager
Accessibility *string `json:"accessibility,omitempty"`
// Filter by item name/username/website or part of it
AdvancedFilter *string `json:"advanced-filter,omitempty"`
// Retrieve all items using pagination, when disabled retrieving only first 1000 items
AutoPagination *string `json:"auto-pagination,omitempty"`
// Filter by item name or part of it
Filter *string `json:"filter,omitempty"`
// Set output format to JSON
Json *bool `json:"json,omitempty"`
// Show only basic information of the items
MinimalView *bool `json:"minimal-view,omitempty"`
// List only secrets modified after specified date (in unix time)
ModifiedAfter *int64 `json:"modified-after,omitempty"`
// Next page reference
PaginationToken *string `json:"pagination-token,omitempty"`
// Path to folder
Path *string `json:"path,omitempty"`
// Filter by items with SRA functionality enabled
SraOnly *bool `json:"sra-only,omitempty"`
SubTypes *[]string `json:"sub_types,omitempty"`
// Filter by item tag
Tag *string `json:"tag,omitempty"`
// Authentication token (see `/auth` and `/configure`)
Token *string `json:"token,omitempty"`
// The item types list of the requested items. In case it is empty, all types of items will be returned. options: [key, static-secret, dynamic-secret, classic-key]
Type *[]string `json:"type,omitempty"`
// The universal identity token, Required only for universal_identity authentication
UidToken *string `json:"uid-token,omitempty"`
}
// NewListItems instantiates a new ListItems 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 NewListItems() *ListItems {
this := ListItems{}
var accessibility string = "regular"
this.Accessibility = &accessibility
var autoPagination string = "enabled"
this.AutoPagination = &autoPagination
var json bool = false
this.Json = &json
var sraOnly bool = false
this.SraOnly = &sraOnly
return &this
}
// NewListItemsWithDefaults instantiates a new ListItems 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 NewListItemsWithDefaults() *ListItems {
this := ListItems{}
var accessibility string = "regular"
this.Accessibility = &accessibility
var autoPagination string = "enabled"
this.AutoPagination = &autoPagination
var json bool = false
this.Json = &json
var sraOnly bool = false
this.SraOnly = &sraOnly
return &this
}
// GetAccessibility returns the Accessibility field value if set, zero value otherwise.
func (o *ListItems) GetAccessibility() string {
if o == nil || o.Accessibility == nil {
var ret string
return ret
}
return *o.Accessibility
}
// GetAccessibilityOk returns a tuple with the Accessibility field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListItems) GetAccessibilityOk() (*string, bool) {
if o == nil || o.Accessibility == nil {
return nil, false
}
return o.Accessibility, true
}
// HasAccessibility returns a boolean if a field has been set.
func (o *ListItems) HasAccessibility() bool {
if o != nil && o.Accessibility != nil {
return true
}
return false
}
// SetAccessibility gets a reference to the given string and assigns it to the Accessibility field.
func (o *ListItems) SetAccessibility(v string) {
o.Accessibility = &v
}
// GetAdvancedFilter returns the AdvancedFilter field value if set, zero value otherwise.
func (o *ListItems) GetAdvancedFilter() string {
if o == nil || o.AdvancedFilter == nil {
var ret string
return ret
}
return *o.AdvancedFilter
}
// GetAdvancedFilterOk returns a tuple with the AdvancedFilter field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListItems) GetAdvancedFilterOk() (*string, bool) {
if o == nil || o.AdvancedFilter == nil {
return nil, false
}
return o.AdvancedFilter, true
}
// HasAdvancedFilter returns a boolean if a field has been set.
func (o *ListItems) HasAdvancedFilter() bool {
if o != nil && o.AdvancedFilter != nil {
return true
}
return false
}
// SetAdvancedFilter gets a reference to the given string and assigns it to the AdvancedFilter field.
func (o *ListItems) SetAdvancedFilter(v string) {
o.AdvancedFilter = &v
}
// GetAutoPagination returns the AutoPagination field value if set, zero value otherwise.
func (o *ListItems) GetAutoPagination() string {
if o == nil || o.AutoPagination == nil {
var ret string
return ret
}
return *o.AutoPagination
}
// GetAutoPaginationOk returns a tuple with the AutoPagination field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListItems) GetAutoPaginationOk() (*string, bool) {
if o == nil || o.AutoPagination == nil {
return nil, false
}
return o.AutoPagination, true
}
// HasAutoPagination returns a boolean if a field has been set.
func (o *ListItems) HasAutoPagination() bool {
if o != nil && o.AutoPagination != nil {
return true
}
return false
}
// SetAutoPagination gets a reference to the given string and assigns it to the AutoPagination field.
func (o *ListItems) SetAutoPagination(v string) {
o.AutoPagination = &v
}
// GetFilter returns the Filter field value if set, zero value otherwise.
func (o *ListItems) GetFilter() string {
if o == nil || o.Filter == nil {
var ret string
return ret
}
return *o.Filter
}
// GetFilterOk returns a tuple with the Filter field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListItems) GetFilterOk() (*string, bool) {
if o == nil || o.Filter == nil {
return nil, false
}
return o.Filter, true
}
// HasFilter returns a boolean if a field has been set.
func (o *ListItems) HasFilter() bool {
if o != nil && o.Filter != nil {
return true
}
return false
}
// SetFilter gets a reference to the given string and assigns it to the Filter field.
func (o *ListItems) SetFilter(v string) {
o.Filter = &v
}
// GetJson returns the Json field value if set, zero value otherwise.
func (o *ListItems) GetJson() bool {
if o == nil || o.Json == nil {
var ret bool
return ret
}
return *o.Json
}
// GetJsonOk returns a tuple with the Json field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListItems) GetJsonOk() (*bool, bool) {
if o == nil || o.Json == nil {
return nil, false
}
return o.Json, true
}
// HasJson returns a boolean if a field has been set.
func (o *ListItems) HasJson() bool {
if o != nil && o.Json != nil {
return true
}
return false
}
// SetJson gets a reference to the given bool and assigns it to the Json field.
func (o *ListItems) SetJson(v bool) {
o.Json = &v
}
// GetMinimalView returns the MinimalView field value if set, zero value otherwise.
func (o *ListItems) GetMinimalView() bool {
if o == nil || o.MinimalView == nil {
var ret bool
return ret
}
return *o.MinimalView
}
// GetMinimalViewOk returns a tuple with the MinimalView field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListItems) GetMinimalViewOk() (*bool, bool) {
if o == nil || o.MinimalView == nil {
return nil, false
}
return o.MinimalView, true
}
// HasMinimalView returns a boolean if a field has been set.
func (o *ListItems) HasMinimalView() bool {
if o != nil && o.MinimalView != nil {
return true
}
return false
}
// SetMinimalView gets a reference to the given bool and assigns it to the MinimalView field.
func (o *ListItems) SetMinimalView(v bool) {
o.MinimalView = &v
}
// GetModifiedAfter returns the ModifiedAfter field value if set, zero value otherwise.
func (o *ListItems) GetModifiedAfter() int64 {
if o == nil || o.ModifiedAfter == nil {
var ret int64
return ret
}
return *o.ModifiedAfter
}
// GetModifiedAfterOk returns a tuple with the ModifiedAfter field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListItems) GetModifiedAfterOk() (*int64, bool) {
if o == nil || o.ModifiedAfter == nil {
return nil, false
}
return o.ModifiedAfter, true
}
// HasModifiedAfter returns a boolean if a field has been set.
func (o *ListItems) HasModifiedAfter() bool {
if o != nil && o.ModifiedAfter != nil {
return true
}
return false
}
// SetModifiedAfter gets a reference to the given int64 and assigns it to the ModifiedAfter field.
func (o *ListItems) SetModifiedAfter(v int64) {
o.ModifiedAfter = &v
}
// GetPaginationToken returns the PaginationToken field value if set, zero value otherwise.
func (o *ListItems) GetPaginationToken() string {
if o == nil || o.PaginationToken == nil {
var ret string
return ret
}
return *o.PaginationToken
}
// GetPaginationTokenOk returns a tuple with the PaginationToken field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListItems) GetPaginationTokenOk() (*string, bool) {
if o == nil || o.PaginationToken == nil {
return nil, false
}
return o.PaginationToken, true
}
// HasPaginationToken returns a boolean if a field has been set.
func (o *ListItems) HasPaginationToken() bool {
if o != nil && o.PaginationToken != nil {
return true
}
return false
}
// SetPaginationToken gets a reference to the given string and assigns it to the PaginationToken field.
func (o *ListItems) SetPaginationToken(v string) {
o.PaginationToken = &v
}
// GetPath returns the Path field value if set, zero value otherwise.
func (o *ListItems) GetPath() string {
if o == nil || o.Path == nil {
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 *ListItems) GetPathOk() (*string, bool) {
if o == nil || o.Path == nil {
return nil, false
}
return o.Path, true
}
// HasPath returns a boolean if a field has been set.
func (o *ListItems) HasPath() bool {
if o != nil && o.Path != nil {
return true
}
return false
}
// SetPath gets a reference to the given string and assigns it to the Path field.
func (o *ListItems) SetPath(v string) {
o.Path = &v
}
// GetSraOnly returns the SraOnly field value if set, zero value otherwise.
func (o *ListItems) GetSraOnly() bool {
if o == nil || o.SraOnly == nil {
var ret bool
return ret
}
return *o.SraOnly
}
// GetSraOnlyOk returns a tuple with the SraOnly field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListItems) GetSraOnlyOk() (*bool, bool) {
if o == nil || o.SraOnly == nil {
return nil, false
}
return o.SraOnly, true
}
// HasSraOnly returns a boolean if a field has been set.
func (o *ListItems) HasSraOnly() bool {
if o != nil && o.SraOnly != nil {
return true
}
return false
}
// SetSraOnly gets a reference to the given bool and assigns it to the SraOnly field.
func (o *ListItems) SetSraOnly(v bool) {
o.SraOnly = &v
}
// GetSubTypes returns the SubTypes field value if set, zero value otherwise.
func (o *ListItems) GetSubTypes() []string {
if o == nil || o.SubTypes == nil {
var ret []string
return ret
}
return *o.SubTypes
}
// GetSubTypesOk returns a tuple with the SubTypes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListItems) GetSubTypesOk() (*[]string, bool) {
if o == nil || o.SubTypes == nil {
return nil, false
}
return o.SubTypes, true
}
// HasSubTypes returns a boolean if a field has been set.
func (o *ListItems) HasSubTypes() bool {
if o != nil && o.SubTypes != nil {
return true
}
return false
}
// SetSubTypes gets a reference to the given []string and assigns it to the SubTypes field.
func (o *ListItems) SetSubTypes(v []string) {
o.SubTypes = &v
}
// GetTag returns the Tag field value if set, zero value otherwise.
func (o *ListItems) GetTag() string {
if o == nil || o.Tag == nil {
var ret string
return ret
}
return *o.Tag
}
// GetTagOk returns a tuple with the Tag field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListItems) GetTagOk() (*string, bool) {
if o == nil || o.Tag == nil {
return nil, false
}
return o.Tag, true
}
// HasTag returns a boolean if a field has been set.
func (o *ListItems) HasTag() bool {
if o != nil && o.Tag != nil {
return true
}
return false
}
// SetTag gets a reference to the given string and assigns it to the Tag field.
func (o *ListItems) SetTag(v string) {
o.Tag = &v
}
// GetToken returns the Token field value if set, zero value otherwise.
func (o *ListItems) GetToken() string {
if o == nil || o.Token == nil {
var ret string
return ret
}
return *o.Token
}
// GetTokenOk returns a tuple with the Token field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListItems) GetTokenOk() (*string, bool) {
if o == nil || o.Token == nil {
return nil, false
}
return o.Token, true
}
// HasToken returns a boolean if a field has been set.
func (o *ListItems) HasToken() bool {
if o != nil && o.Token != nil {
return true
}
return false
}
// SetToken gets a reference to the given string and assigns it to the Token field.
func (o *ListItems) SetToken(v string) {
o.Token = &v
}
// GetType returns the Type field value if set, zero value otherwise.
func (o *ListItems) GetType() []string {
if o == nil || o.Type == nil {
var ret []string
return ret
}
return *o.Type
}
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListItems) GetTypeOk() (*[]string, bool) {
if o == nil || o.Type == nil {
return nil, false
}
return o.Type, true
}
// HasType returns a boolean if a field has been set.
func (o *ListItems) HasType() bool {
if o != nil && o.Type != nil {
return true
}
return false
}
// SetType gets a reference to the given []string and assigns it to the Type field.
func (o *ListItems) SetType(v []string) {
o.Type = &v
}
// GetUidToken returns the UidToken field value if set, zero value otherwise.
func (o *ListItems) GetUidToken() string {
if o == nil || o.UidToken == nil {
var ret string
return ret
}
return *o.UidToken
}
// GetUidTokenOk returns a tuple with the UidToken field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListItems) GetUidTokenOk() (*string, bool) {
if o == nil || o.UidToken == nil {
return nil, false
}
return o.UidToken, true
}
// HasUidToken returns a boolean if a field has been set.
func (o *ListItems) HasUidToken() bool {
if o != nil && o.UidToken != nil {
return true
}
return false
}
// SetUidToken gets a reference to the given string and assigns it to the UidToken field.
func (o *ListItems) SetUidToken(v string) {
o.UidToken = &v
}
func (o ListItems) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Accessibility != nil {
toSerialize["accessibility"] = o.Accessibility
}
if o.AdvancedFilter != nil {
toSerialize["advanced-filter"] = o.AdvancedFilter
}
if o.AutoPagination != nil {
toSerialize["auto-pagination"] = o.AutoPagination
}
if o.Filter != nil {
toSerialize["filter"] = o.Filter
}
if o.Json != nil {
toSerialize["json"] = o.Json
}
if o.MinimalView != nil {
toSerialize["minimal-view"] = o.MinimalView
}
if o.ModifiedAfter != nil {
toSerialize["modified-after"] = o.ModifiedAfter
}
if o.PaginationToken != nil {
toSerialize["pagination-token"] = o.PaginationToken
}
if o.Path != nil {
toSerialize["path"] = o.Path
}
if o.SraOnly != nil {
toSerialize["sra-only"] = o.SraOnly
}
if o.SubTypes != nil {
toSerialize["sub_types"] = o.SubTypes
}
if o.Tag != nil {
toSerialize["tag"] = o.Tag
}
if o.Token != nil {
toSerialize["token"] = o.Token
}
if o.Type != nil {
toSerialize["type"] = o.Type
}
if o.UidToken != nil {
toSerialize["uid-token"] = o.UidToken
}
return json.Marshal(toSerialize)
}
type NullableListItems struct {
value *ListItems
isSet bool
}
func (v NullableListItems) Get() *ListItems {
return v.value
}
func (v *NullableListItems) Set(val *ListItems) {
v.value = val
v.isSet = true
}
func (v NullableListItems) IsSet() bool {
return v.isSet
}
func (v *NullableListItems) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableListItems(val *ListItems) *NullableListItems {
return &NullableListItems{value: val, isSet: true}
}
func (v NullableListItems) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableListItems) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}