-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmodel_audit_log_item_model.go
604 lines (515 loc) · 19.4 KB
/
model_audit_log_item_model.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
/*
ConfigCat Public Management API
The purpose of this API is to access the ConfigCat platform programmatically. You can **Create**, **Read**, **Update** and **Delete** any entities like **Feature Flags, Configs, Environments** or **Products** within ConfigCat. **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.json) You can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) or [Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact with this API. # Authentication This API uses the [Basic HTTP Authentication Scheme](https://en.wikipedia.org/wiki/Basic_access_authentication). <!-- ReDoc-Inject: <security-definitions> --> # Throttling and rate limits All the rate limited API calls are returning information about the current rate limit period in the following HTTP headers: | Header | Description | | :- | :- | | X-Rate-Limit-Remaining | The maximum number of requests remaining in the current rate limit period. | | X-Rate-Limit-Reset | The time when the current rate limit period resets. | When the rate limit is exceeded by a request, the API returns with a `HTTP 429 - Too many requests` status along with a `Retry-After` HTTP header.
API version: v1
Contact: [email protected]
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package configcatpublicapi
import (
"encoding/json"
"time"
)
// checks if the AuditLogItemModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &AuditLogItemModel{}
// AuditLogItemModel struct for AuditLogItemModel
type AuditLogItemModel struct {
AuditLogId *int64 `json:"auditLogId,omitempty"`
AuditLogDateTime *time.Time `json:"auditLogDateTime,omitempty"`
AuditLogTypeEnum *AuditLogType `json:"auditLogTypeEnum,omitempty"`
ChangeSetId NullableString `json:"changeSetId,omitempty"`
Truncated *bool `json:"truncated,omitempty"`
AuditLogType NullableString `json:"auditLogType,omitempty"`
UserEmail NullableString `json:"userEmail,omitempty"`
UserName NullableString `json:"userName,omitempty"`
Where NullableString `json:"where,omitempty"`
Why NullableString `json:"why,omitempty"`
ActionTarget NullableString `json:"actionTarget,omitempty"`
Details NullableString `json:"details,omitempty"`
}
// NewAuditLogItemModel instantiates a new AuditLogItemModel 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 NewAuditLogItemModel() *AuditLogItemModel {
this := AuditLogItemModel{}
return &this
}
// NewAuditLogItemModelWithDefaults instantiates a new AuditLogItemModel 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 NewAuditLogItemModelWithDefaults() *AuditLogItemModel {
this := AuditLogItemModel{}
return &this
}
// GetAuditLogId returns the AuditLogId field value if set, zero value otherwise.
func (o *AuditLogItemModel) GetAuditLogId() int64 {
if o == nil || IsNil(o.AuditLogId) {
var ret int64
return ret
}
return *o.AuditLogId
}
// GetAuditLogIdOk returns a tuple with the AuditLogId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuditLogItemModel) GetAuditLogIdOk() (*int64, bool) {
if o == nil || IsNil(o.AuditLogId) {
return nil, false
}
return o.AuditLogId, true
}
// HasAuditLogId returns a boolean if a field has been set.
func (o *AuditLogItemModel) HasAuditLogId() bool {
if o != nil && !IsNil(o.AuditLogId) {
return true
}
return false
}
// SetAuditLogId gets a reference to the given int64 and assigns it to the AuditLogId field.
func (o *AuditLogItemModel) SetAuditLogId(v int64) {
o.AuditLogId = &v
}
// GetAuditLogDateTime returns the AuditLogDateTime field value if set, zero value otherwise.
func (o *AuditLogItemModel) GetAuditLogDateTime() time.Time {
if o == nil || IsNil(o.AuditLogDateTime) {
var ret time.Time
return ret
}
return *o.AuditLogDateTime
}
// GetAuditLogDateTimeOk returns a tuple with the AuditLogDateTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuditLogItemModel) GetAuditLogDateTimeOk() (*time.Time, bool) {
if o == nil || IsNil(o.AuditLogDateTime) {
return nil, false
}
return o.AuditLogDateTime, true
}
// HasAuditLogDateTime returns a boolean if a field has been set.
func (o *AuditLogItemModel) HasAuditLogDateTime() bool {
if o != nil && !IsNil(o.AuditLogDateTime) {
return true
}
return false
}
// SetAuditLogDateTime gets a reference to the given time.Time and assigns it to the AuditLogDateTime field.
func (o *AuditLogItemModel) SetAuditLogDateTime(v time.Time) {
o.AuditLogDateTime = &v
}
// GetAuditLogTypeEnum returns the AuditLogTypeEnum field value if set, zero value otherwise.
func (o *AuditLogItemModel) GetAuditLogTypeEnum() AuditLogType {
if o == nil || IsNil(o.AuditLogTypeEnum) {
var ret AuditLogType
return ret
}
return *o.AuditLogTypeEnum
}
// GetAuditLogTypeEnumOk returns a tuple with the AuditLogTypeEnum field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuditLogItemModel) GetAuditLogTypeEnumOk() (*AuditLogType, bool) {
if o == nil || IsNil(o.AuditLogTypeEnum) {
return nil, false
}
return o.AuditLogTypeEnum, true
}
// HasAuditLogTypeEnum returns a boolean if a field has been set.
func (o *AuditLogItemModel) HasAuditLogTypeEnum() bool {
if o != nil && !IsNil(o.AuditLogTypeEnum) {
return true
}
return false
}
// SetAuditLogTypeEnum gets a reference to the given AuditLogType and assigns it to the AuditLogTypeEnum field.
func (o *AuditLogItemModel) SetAuditLogTypeEnum(v AuditLogType) {
o.AuditLogTypeEnum = &v
}
// GetChangeSetId returns the ChangeSetId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AuditLogItemModel) GetChangeSetId() string {
if o == nil || IsNil(o.ChangeSetId.Get()) {
var ret string
return ret
}
return *o.ChangeSetId.Get()
}
// GetChangeSetIdOk returns a tuple with the ChangeSetId field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *AuditLogItemModel) GetChangeSetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ChangeSetId.Get(), o.ChangeSetId.IsSet()
}
// HasChangeSetId returns a boolean if a field has been set.
func (o *AuditLogItemModel) HasChangeSetId() bool {
if o != nil && o.ChangeSetId.IsSet() {
return true
}
return false
}
// SetChangeSetId gets a reference to the given NullableString and assigns it to the ChangeSetId field.
func (o *AuditLogItemModel) SetChangeSetId(v string) {
o.ChangeSetId.Set(&v)
}
// SetChangeSetIdNil sets the value for ChangeSetId to be an explicit nil
func (o *AuditLogItemModel) SetChangeSetIdNil() {
o.ChangeSetId.Set(nil)
}
// UnsetChangeSetId ensures that no value is present for ChangeSetId, not even an explicit nil
func (o *AuditLogItemModel) UnsetChangeSetId() {
o.ChangeSetId.Unset()
}
// GetTruncated returns the Truncated field value if set, zero value otherwise.
func (o *AuditLogItemModel) GetTruncated() bool {
if o == nil || IsNil(o.Truncated) {
var ret bool
return ret
}
return *o.Truncated
}
// GetTruncatedOk returns a tuple with the Truncated field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuditLogItemModel) GetTruncatedOk() (*bool, bool) {
if o == nil || IsNil(o.Truncated) {
return nil, false
}
return o.Truncated, true
}
// HasTruncated returns a boolean if a field has been set.
func (o *AuditLogItemModel) HasTruncated() bool {
if o != nil && !IsNil(o.Truncated) {
return true
}
return false
}
// SetTruncated gets a reference to the given bool and assigns it to the Truncated field.
func (o *AuditLogItemModel) SetTruncated(v bool) {
o.Truncated = &v
}
// GetAuditLogType returns the AuditLogType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AuditLogItemModel) GetAuditLogType() string {
if o == nil || IsNil(o.AuditLogType.Get()) {
var ret string
return ret
}
return *o.AuditLogType.Get()
}
// GetAuditLogTypeOk returns a tuple with the AuditLogType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *AuditLogItemModel) GetAuditLogTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.AuditLogType.Get(), o.AuditLogType.IsSet()
}
// HasAuditLogType returns a boolean if a field has been set.
func (o *AuditLogItemModel) HasAuditLogType() bool {
if o != nil && o.AuditLogType.IsSet() {
return true
}
return false
}
// SetAuditLogType gets a reference to the given NullableString and assigns it to the AuditLogType field.
func (o *AuditLogItemModel) SetAuditLogType(v string) {
o.AuditLogType.Set(&v)
}
// SetAuditLogTypeNil sets the value for AuditLogType to be an explicit nil
func (o *AuditLogItemModel) SetAuditLogTypeNil() {
o.AuditLogType.Set(nil)
}
// UnsetAuditLogType ensures that no value is present for AuditLogType, not even an explicit nil
func (o *AuditLogItemModel) UnsetAuditLogType() {
o.AuditLogType.Unset()
}
// GetUserEmail returns the UserEmail field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AuditLogItemModel) GetUserEmail() string {
if o == nil || IsNil(o.UserEmail.Get()) {
var ret string
return ret
}
return *o.UserEmail.Get()
}
// GetUserEmailOk returns a tuple with the UserEmail field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *AuditLogItemModel) GetUserEmailOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.UserEmail.Get(), o.UserEmail.IsSet()
}
// HasUserEmail returns a boolean if a field has been set.
func (o *AuditLogItemModel) HasUserEmail() bool {
if o != nil && o.UserEmail.IsSet() {
return true
}
return false
}
// SetUserEmail gets a reference to the given NullableString and assigns it to the UserEmail field.
func (o *AuditLogItemModel) SetUserEmail(v string) {
o.UserEmail.Set(&v)
}
// SetUserEmailNil sets the value for UserEmail to be an explicit nil
func (o *AuditLogItemModel) SetUserEmailNil() {
o.UserEmail.Set(nil)
}
// UnsetUserEmail ensures that no value is present for UserEmail, not even an explicit nil
func (o *AuditLogItemModel) UnsetUserEmail() {
o.UserEmail.Unset()
}
// GetUserName returns the UserName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AuditLogItemModel) GetUserName() string {
if o == nil || IsNil(o.UserName.Get()) {
var ret string
return ret
}
return *o.UserName.Get()
}
// GetUserNameOk returns a tuple with the UserName field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *AuditLogItemModel) GetUserNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.UserName.Get(), o.UserName.IsSet()
}
// HasUserName returns a boolean if a field has been set.
func (o *AuditLogItemModel) HasUserName() bool {
if o != nil && o.UserName.IsSet() {
return true
}
return false
}
// SetUserName gets a reference to the given NullableString and assigns it to the UserName field.
func (o *AuditLogItemModel) SetUserName(v string) {
o.UserName.Set(&v)
}
// SetUserNameNil sets the value for UserName to be an explicit nil
func (o *AuditLogItemModel) SetUserNameNil() {
o.UserName.Set(nil)
}
// UnsetUserName ensures that no value is present for UserName, not even an explicit nil
func (o *AuditLogItemModel) UnsetUserName() {
o.UserName.Unset()
}
// GetWhere returns the Where field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AuditLogItemModel) GetWhere() string {
if o == nil || IsNil(o.Where.Get()) {
var ret string
return ret
}
return *o.Where.Get()
}
// GetWhereOk returns a tuple with the Where field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *AuditLogItemModel) GetWhereOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Where.Get(), o.Where.IsSet()
}
// HasWhere returns a boolean if a field has been set.
func (o *AuditLogItemModel) HasWhere() bool {
if o != nil && o.Where.IsSet() {
return true
}
return false
}
// SetWhere gets a reference to the given NullableString and assigns it to the Where field.
func (o *AuditLogItemModel) SetWhere(v string) {
o.Where.Set(&v)
}
// SetWhereNil sets the value for Where to be an explicit nil
func (o *AuditLogItemModel) SetWhereNil() {
o.Where.Set(nil)
}
// UnsetWhere ensures that no value is present for Where, not even an explicit nil
func (o *AuditLogItemModel) UnsetWhere() {
o.Where.Unset()
}
// GetWhy returns the Why field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AuditLogItemModel) GetWhy() string {
if o == nil || IsNil(o.Why.Get()) {
var ret string
return ret
}
return *o.Why.Get()
}
// GetWhyOk returns a tuple with the Why field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *AuditLogItemModel) GetWhyOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Why.Get(), o.Why.IsSet()
}
// HasWhy returns a boolean if a field has been set.
func (o *AuditLogItemModel) HasWhy() bool {
if o != nil && o.Why.IsSet() {
return true
}
return false
}
// SetWhy gets a reference to the given NullableString and assigns it to the Why field.
func (o *AuditLogItemModel) SetWhy(v string) {
o.Why.Set(&v)
}
// SetWhyNil sets the value for Why to be an explicit nil
func (o *AuditLogItemModel) SetWhyNil() {
o.Why.Set(nil)
}
// UnsetWhy ensures that no value is present for Why, not even an explicit nil
func (o *AuditLogItemModel) UnsetWhy() {
o.Why.Unset()
}
// GetActionTarget returns the ActionTarget field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AuditLogItemModel) GetActionTarget() string {
if o == nil || IsNil(o.ActionTarget.Get()) {
var ret string
return ret
}
return *o.ActionTarget.Get()
}
// GetActionTargetOk returns a tuple with the ActionTarget field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *AuditLogItemModel) GetActionTargetOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ActionTarget.Get(), o.ActionTarget.IsSet()
}
// HasActionTarget returns a boolean if a field has been set.
func (o *AuditLogItemModel) HasActionTarget() bool {
if o != nil && o.ActionTarget.IsSet() {
return true
}
return false
}
// SetActionTarget gets a reference to the given NullableString and assigns it to the ActionTarget field.
func (o *AuditLogItemModel) SetActionTarget(v string) {
o.ActionTarget.Set(&v)
}
// SetActionTargetNil sets the value for ActionTarget to be an explicit nil
func (o *AuditLogItemModel) SetActionTargetNil() {
o.ActionTarget.Set(nil)
}
// UnsetActionTarget ensures that no value is present for ActionTarget, not even an explicit nil
func (o *AuditLogItemModel) UnsetActionTarget() {
o.ActionTarget.Unset()
}
// GetDetails returns the Details field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AuditLogItemModel) GetDetails() string {
if o == nil || IsNil(o.Details.Get()) {
var ret string
return ret
}
return *o.Details.Get()
}
// GetDetailsOk returns a tuple with the Details field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *AuditLogItemModel) GetDetailsOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Details.Get(), o.Details.IsSet()
}
// HasDetails returns a boolean if a field has been set.
func (o *AuditLogItemModel) HasDetails() bool {
if o != nil && o.Details.IsSet() {
return true
}
return false
}
// SetDetails gets a reference to the given NullableString and assigns it to the Details field.
func (o *AuditLogItemModel) SetDetails(v string) {
o.Details.Set(&v)
}
// SetDetailsNil sets the value for Details to be an explicit nil
func (o *AuditLogItemModel) SetDetailsNil() {
o.Details.Set(nil)
}
// UnsetDetails ensures that no value is present for Details, not even an explicit nil
func (o *AuditLogItemModel) UnsetDetails() {
o.Details.Unset()
}
func (o AuditLogItemModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o AuditLogItemModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.AuditLogId) {
toSerialize["auditLogId"] = o.AuditLogId
}
if !IsNil(o.AuditLogDateTime) {
toSerialize["auditLogDateTime"] = o.AuditLogDateTime
}
if !IsNil(o.AuditLogTypeEnum) {
toSerialize["auditLogTypeEnum"] = o.AuditLogTypeEnum
}
if o.ChangeSetId.IsSet() {
toSerialize["changeSetId"] = o.ChangeSetId.Get()
}
if !IsNil(o.Truncated) {
toSerialize["truncated"] = o.Truncated
}
if o.AuditLogType.IsSet() {
toSerialize["auditLogType"] = o.AuditLogType.Get()
}
if o.UserEmail.IsSet() {
toSerialize["userEmail"] = o.UserEmail.Get()
}
if o.UserName.IsSet() {
toSerialize["userName"] = o.UserName.Get()
}
if o.Where.IsSet() {
toSerialize["where"] = o.Where.Get()
}
if o.Why.IsSet() {
toSerialize["why"] = o.Why.Get()
}
if o.ActionTarget.IsSet() {
toSerialize["actionTarget"] = o.ActionTarget.Get()
}
if o.Details.IsSet() {
toSerialize["details"] = o.Details.Get()
}
return toSerialize, nil
}
type NullableAuditLogItemModel struct {
value *AuditLogItemModel
isSet bool
}
func (v NullableAuditLogItemModel) Get() *AuditLogItemModel {
return v.value
}
func (v *NullableAuditLogItemModel) Set(val *AuditLogItemModel) {
v.value = val
v.isSet = true
}
func (v NullableAuditLogItemModel) IsSet() bool {
return v.isSet
}
func (v *NullableAuditLogItemModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAuditLogItemModel(val *AuditLogItemModel) *NullableAuditLogItemModel {
return &NullableAuditLogItemModel{value: val, isSet: true}
}
func (v NullableAuditLogItemModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAuditLogItemModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}