generated from delphix/.github
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmodel_audit_logs_summary.go
More file actions
273 lines (227 loc) · 7.5 KB
/
model_audit_logs_summary.go
File metadata and controls
273 lines (227 loc) · 7.5 KB
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
/*
Delphix DCT API
Delphix DCT API
API version: 3.9.0
Contact: support@delphix.com
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package delphix_dct_api
import (
"encoding/json"
)
// checks if the AuditLogsSummary type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &AuditLogsSummary{}
// AuditLogsSummary The summary of actions performed by an account.
type AuditLogsSummary struct {
AccountId *int64 `json:"account_id,omitempty"`
AccountFirstName *string `json:"account_first_name,omitempty"`
AccountLastName *string `json:"account_last_name,omitempty"`
// The number of VDB refreshes performed by the account.
VdbRefreshes *int32 `json:"vdb_refreshes,omitempty"`
// The number of compliance jobs executed by the account.
MaskingJobs *int32 `json:"masking_jobs,omitempty"`
}
// NewAuditLogsSummary instantiates a new AuditLogsSummary 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 NewAuditLogsSummary() *AuditLogsSummary {
this := AuditLogsSummary{}
return &this
}
// NewAuditLogsSummaryWithDefaults instantiates a new AuditLogsSummary 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 NewAuditLogsSummaryWithDefaults() *AuditLogsSummary {
this := AuditLogsSummary{}
return &this
}
// GetAccountId returns the AccountId field value if set, zero value otherwise.
func (o *AuditLogsSummary) GetAccountId() int64 {
if o == nil || IsNil(o.AccountId) {
var ret int64
return ret
}
return *o.AccountId
}
// GetAccountIdOk returns a tuple with the AccountId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuditLogsSummary) GetAccountIdOk() (*int64, bool) {
if o == nil || IsNil(o.AccountId) {
return nil, false
}
return o.AccountId, true
}
// HasAccountId returns a boolean if a field has been set.
func (o *AuditLogsSummary) HasAccountId() bool {
if o != nil && !IsNil(o.AccountId) {
return true
}
return false
}
// SetAccountId gets a reference to the given int64 and assigns it to the AccountId field.
func (o *AuditLogsSummary) SetAccountId(v int64) {
o.AccountId = &v
}
// GetAccountFirstName returns the AccountFirstName field value if set, zero value otherwise.
func (o *AuditLogsSummary) GetAccountFirstName() string {
if o == nil || IsNil(o.AccountFirstName) {
var ret string
return ret
}
return *o.AccountFirstName
}
// GetAccountFirstNameOk returns a tuple with the AccountFirstName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuditLogsSummary) GetAccountFirstNameOk() (*string, bool) {
if o == nil || IsNil(o.AccountFirstName) {
return nil, false
}
return o.AccountFirstName, true
}
// HasAccountFirstName returns a boolean if a field has been set.
func (o *AuditLogsSummary) HasAccountFirstName() bool {
if o != nil && !IsNil(o.AccountFirstName) {
return true
}
return false
}
// SetAccountFirstName gets a reference to the given string and assigns it to the AccountFirstName field.
func (o *AuditLogsSummary) SetAccountFirstName(v string) {
o.AccountFirstName = &v
}
// GetAccountLastName returns the AccountLastName field value if set, zero value otherwise.
func (o *AuditLogsSummary) GetAccountLastName() string {
if o == nil || IsNil(o.AccountLastName) {
var ret string
return ret
}
return *o.AccountLastName
}
// GetAccountLastNameOk returns a tuple with the AccountLastName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuditLogsSummary) GetAccountLastNameOk() (*string, bool) {
if o == nil || IsNil(o.AccountLastName) {
return nil, false
}
return o.AccountLastName, true
}
// HasAccountLastName returns a boolean if a field has been set.
func (o *AuditLogsSummary) HasAccountLastName() bool {
if o != nil && !IsNil(o.AccountLastName) {
return true
}
return false
}
// SetAccountLastName gets a reference to the given string and assigns it to the AccountLastName field.
func (o *AuditLogsSummary) SetAccountLastName(v string) {
o.AccountLastName = &v
}
// GetVdbRefreshes returns the VdbRefreshes field value if set, zero value otherwise.
func (o *AuditLogsSummary) GetVdbRefreshes() int32 {
if o == nil || IsNil(o.VdbRefreshes) {
var ret int32
return ret
}
return *o.VdbRefreshes
}
// GetVdbRefreshesOk returns a tuple with the VdbRefreshes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuditLogsSummary) GetVdbRefreshesOk() (*int32, bool) {
if o == nil || IsNil(o.VdbRefreshes) {
return nil, false
}
return o.VdbRefreshes, true
}
// HasVdbRefreshes returns a boolean if a field has been set.
func (o *AuditLogsSummary) HasVdbRefreshes() bool {
if o != nil && !IsNil(o.VdbRefreshes) {
return true
}
return false
}
// SetVdbRefreshes gets a reference to the given int32 and assigns it to the VdbRefreshes field.
func (o *AuditLogsSummary) SetVdbRefreshes(v int32) {
o.VdbRefreshes = &v
}
// GetMaskingJobs returns the MaskingJobs field value if set, zero value otherwise.
func (o *AuditLogsSummary) GetMaskingJobs() int32 {
if o == nil || IsNil(o.MaskingJobs) {
var ret int32
return ret
}
return *o.MaskingJobs
}
// GetMaskingJobsOk returns a tuple with the MaskingJobs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuditLogsSummary) GetMaskingJobsOk() (*int32, bool) {
if o == nil || IsNil(o.MaskingJobs) {
return nil, false
}
return o.MaskingJobs, true
}
// HasMaskingJobs returns a boolean if a field has been set.
func (o *AuditLogsSummary) HasMaskingJobs() bool {
if o != nil && !IsNil(o.MaskingJobs) {
return true
}
return false
}
// SetMaskingJobs gets a reference to the given int32 and assigns it to the MaskingJobs field.
func (o *AuditLogsSummary) SetMaskingJobs(v int32) {
o.MaskingJobs = &v
}
func (o AuditLogsSummary) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o AuditLogsSummary) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.AccountId) {
toSerialize["account_id"] = o.AccountId
}
if !IsNil(o.AccountFirstName) {
toSerialize["account_first_name"] = o.AccountFirstName
}
if !IsNil(o.AccountLastName) {
toSerialize["account_last_name"] = o.AccountLastName
}
if !IsNil(o.VdbRefreshes) {
toSerialize["vdb_refreshes"] = o.VdbRefreshes
}
if !IsNil(o.MaskingJobs) {
toSerialize["masking_jobs"] = o.MaskingJobs
}
return toSerialize, nil
}
type NullableAuditLogsSummary struct {
value *AuditLogsSummary
isSet bool
}
func (v NullableAuditLogsSummary) Get() *AuditLogsSummary {
return v.value
}
func (v *NullableAuditLogsSummary) Set(val *AuditLogsSummary) {
v.value = val
v.isSet = true
}
func (v NullableAuditLogsSummary) IsSet() bool {
return v.isSet
}
func (v *NullableAuditLogsSummary) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAuditLogsSummary(val *AuditLogsSummary) *NullableAuditLogsSummary {
return &NullableAuditLogsSummary{value: val, isSet: true}
}
func (v NullableAuditLogsSummary) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAuditLogsSummary) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}