/
model_get_organization_api_requests_200_response_inner.go
498 lines (422 loc) · 15 KB
/
model_get_organization_api_requests_200_response_inner.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
/*
Meraki Dashboard API
A RESTful API to programmatically manage and monitor Cisco Meraki networks at scale. > Date: 07 February, 2024 > > [Recent Updates](https://meraki.io/whats-new/) --- [API Documentation](https://meraki.io/api) [Community Support](https://meraki.io/community) [Meraki Homepage](https://www.meraki.com)
API version: 1.43.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package client
import (
"encoding/json"
"time"
)
// checks if the GetOrganizationApiRequests200ResponseInner type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &GetOrganizationApiRequests200ResponseInner{}
// GetOrganizationApiRequests200ResponseInner struct for GetOrganizationApiRequests200ResponseInner
type GetOrganizationApiRequests200ResponseInner struct {
// Database ID for the admin user who made the API request.
AdminId *string `json:"adminId,omitempty"`
// HTTP method used in the API request.
Method *string `json:"method,omitempty"`
// The host which the API request was directed at.
Host *string `json:"host,omitempty"`
// The API request path.
Path *string `json:"path,omitempty"`
// The query string sent with the API request.
QueryString *string `json:"queryString,omitempty"`
// The API request user agent.
UserAgent *string `json:"userAgent,omitempty"`
// Timestamp, in iso8601 format, indicating when the API request was made.
Ts *time.Time `json:"ts,omitempty"`
// API request response code.
ResponseCode *int32 `json:"responseCode,omitempty"`
// Public IP address from which the API request was made.
SourceIp *string `json:"sourceIp,omitempty"`
// API version of the endpoint.
Version *int32 `json:"version,omitempty"`
// Operation ID for the endpoint.
OperationId *string `json:"operationId,omitempty"`
}
// NewGetOrganizationApiRequests200ResponseInner instantiates a new GetOrganizationApiRequests200ResponseInner 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 NewGetOrganizationApiRequests200ResponseInner() *GetOrganizationApiRequests200ResponseInner {
this := GetOrganizationApiRequests200ResponseInner{}
return &this
}
// NewGetOrganizationApiRequests200ResponseInnerWithDefaults instantiates a new GetOrganizationApiRequests200ResponseInner 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 NewGetOrganizationApiRequests200ResponseInnerWithDefaults() *GetOrganizationApiRequests200ResponseInner {
this := GetOrganizationApiRequests200ResponseInner{}
return &this
}
// GetAdminId returns the AdminId field value if set, zero value otherwise.
func (o *GetOrganizationApiRequests200ResponseInner) GetAdminId() string {
if o == nil || IsNil(o.AdminId) {
var ret string
return ret
}
return *o.AdminId
}
// GetAdminIdOk returns a tuple with the AdminId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrganizationApiRequests200ResponseInner) GetAdminIdOk() (*string, bool) {
if o == nil || IsNil(o.AdminId) {
return nil, false
}
return o.AdminId, true
}
// HasAdminId returns a boolean if a field has been set.
func (o *GetOrganizationApiRequests200ResponseInner) HasAdminId() bool {
if o != nil && !IsNil(o.AdminId) {
return true
}
return false
}
// SetAdminId gets a reference to the given string and assigns it to the AdminId field.
func (o *GetOrganizationApiRequests200ResponseInner) SetAdminId(v string) {
o.AdminId = &v
}
// GetMethod returns the Method field value if set, zero value otherwise.
func (o *GetOrganizationApiRequests200ResponseInner) GetMethod() string {
if o == nil || IsNil(o.Method) {
var ret string
return ret
}
return *o.Method
}
// GetMethodOk returns a tuple with the Method field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrganizationApiRequests200ResponseInner) GetMethodOk() (*string, bool) {
if o == nil || IsNil(o.Method) {
return nil, false
}
return o.Method, true
}
// HasMethod returns a boolean if a field has been set.
func (o *GetOrganizationApiRequests200ResponseInner) HasMethod() bool {
if o != nil && !IsNil(o.Method) {
return true
}
return false
}
// SetMethod gets a reference to the given string and assigns it to the Method field.
func (o *GetOrganizationApiRequests200ResponseInner) SetMethod(v string) {
o.Method = &v
}
// GetHost returns the Host field value if set, zero value otherwise.
func (o *GetOrganizationApiRequests200ResponseInner) GetHost() string {
if o == nil || IsNil(o.Host) {
var ret string
return ret
}
return *o.Host
}
// GetHostOk returns a tuple with the Host field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrganizationApiRequests200ResponseInner) GetHostOk() (*string, bool) {
if o == nil || IsNil(o.Host) {
return nil, false
}
return o.Host, true
}
// HasHost returns a boolean if a field has been set.
func (o *GetOrganizationApiRequests200ResponseInner) HasHost() bool {
if o != nil && !IsNil(o.Host) {
return true
}
return false
}
// SetHost gets a reference to the given string and assigns it to the Host field.
func (o *GetOrganizationApiRequests200ResponseInner) SetHost(v string) {
o.Host = &v
}
// GetPath returns the Path field value if set, zero value otherwise.
func (o *GetOrganizationApiRequests200ResponseInner) GetPath() string {
if o == nil || IsNil(o.Path) {
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 *GetOrganizationApiRequests200ResponseInner) GetPathOk() (*string, bool) {
if o == nil || IsNil(o.Path) {
return nil, false
}
return o.Path, true
}
// HasPath returns a boolean if a field has been set.
func (o *GetOrganizationApiRequests200ResponseInner) HasPath() bool {
if o != nil && !IsNil(o.Path) {
return true
}
return false
}
// SetPath gets a reference to the given string and assigns it to the Path field.
func (o *GetOrganizationApiRequests200ResponseInner) SetPath(v string) {
o.Path = &v
}
// GetQueryString returns the QueryString field value if set, zero value otherwise.
func (o *GetOrganizationApiRequests200ResponseInner) GetQueryString() string {
if o == nil || IsNil(o.QueryString) {
var ret string
return ret
}
return *o.QueryString
}
// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrganizationApiRequests200ResponseInner) GetQueryStringOk() (*string, bool) {
if o == nil || IsNil(o.QueryString) {
return nil, false
}
return o.QueryString, true
}
// HasQueryString returns a boolean if a field has been set.
func (o *GetOrganizationApiRequests200ResponseInner) HasQueryString() bool {
if o != nil && !IsNil(o.QueryString) {
return true
}
return false
}
// SetQueryString gets a reference to the given string and assigns it to the QueryString field.
func (o *GetOrganizationApiRequests200ResponseInner) SetQueryString(v string) {
o.QueryString = &v
}
// GetUserAgent returns the UserAgent field value if set, zero value otherwise.
func (o *GetOrganizationApiRequests200ResponseInner) GetUserAgent() string {
if o == nil || IsNil(o.UserAgent) {
var ret string
return ret
}
return *o.UserAgent
}
// GetUserAgentOk returns a tuple with the UserAgent field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrganizationApiRequests200ResponseInner) GetUserAgentOk() (*string, bool) {
if o == nil || IsNil(o.UserAgent) {
return nil, false
}
return o.UserAgent, true
}
// HasUserAgent returns a boolean if a field has been set.
func (o *GetOrganizationApiRequests200ResponseInner) HasUserAgent() bool {
if o != nil && !IsNil(o.UserAgent) {
return true
}
return false
}
// SetUserAgent gets a reference to the given string and assigns it to the UserAgent field.
func (o *GetOrganizationApiRequests200ResponseInner) SetUserAgent(v string) {
o.UserAgent = &v
}
// GetTs returns the Ts field value if set, zero value otherwise.
func (o *GetOrganizationApiRequests200ResponseInner) GetTs() time.Time {
if o == nil || IsNil(o.Ts) {
var ret time.Time
return ret
}
return *o.Ts
}
// GetTsOk returns a tuple with the Ts field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrganizationApiRequests200ResponseInner) GetTsOk() (*time.Time, bool) {
if o == nil || IsNil(o.Ts) {
return nil, false
}
return o.Ts, true
}
// HasTs returns a boolean if a field has been set.
func (o *GetOrganizationApiRequests200ResponseInner) HasTs() bool {
if o != nil && !IsNil(o.Ts) {
return true
}
return false
}
// SetTs gets a reference to the given time.Time and assigns it to the Ts field.
func (o *GetOrganizationApiRequests200ResponseInner) SetTs(v time.Time) {
o.Ts = &v
}
// GetResponseCode returns the ResponseCode field value if set, zero value otherwise.
func (o *GetOrganizationApiRequests200ResponseInner) GetResponseCode() int32 {
if o == nil || IsNil(o.ResponseCode) {
var ret int32
return ret
}
return *o.ResponseCode
}
// GetResponseCodeOk returns a tuple with the ResponseCode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrganizationApiRequests200ResponseInner) GetResponseCodeOk() (*int32, bool) {
if o == nil || IsNil(o.ResponseCode) {
return nil, false
}
return o.ResponseCode, true
}
// HasResponseCode returns a boolean if a field has been set.
func (o *GetOrganizationApiRequests200ResponseInner) HasResponseCode() bool {
if o != nil && !IsNil(o.ResponseCode) {
return true
}
return false
}
// SetResponseCode gets a reference to the given int32 and assigns it to the ResponseCode field.
func (o *GetOrganizationApiRequests200ResponseInner) SetResponseCode(v int32) {
o.ResponseCode = &v
}
// GetSourceIp returns the SourceIp field value if set, zero value otherwise.
func (o *GetOrganizationApiRequests200ResponseInner) GetSourceIp() string {
if o == nil || IsNil(o.SourceIp) {
var ret string
return ret
}
return *o.SourceIp
}
// GetSourceIpOk returns a tuple with the SourceIp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrganizationApiRequests200ResponseInner) GetSourceIpOk() (*string, bool) {
if o == nil || IsNil(o.SourceIp) {
return nil, false
}
return o.SourceIp, true
}
// HasSourceIp returns a boolean if a field has been set.
func (o *GetOrganizationApiRequests200ResponseInner) HasSourceIp() bool {
if o != nil && !IsNil(o.SourceIp) {
return true
}
return false
}
// SetSourceIp gets a reference to the given string and assigns it to the SourceIp field.
func (o *GetOrganizationApiRequests200ResponseInner) SetSourceIp(v string) {
o.SourceIp = &v
}
// GetVersion returns the Version field value if set, zero value otherwise.
func (o *GetOrganizationApiRequests200ResponseInner) GetVersion() int32 {
if o == nil || IsNil(o.Version) {
var ret int32
return ret
}
return *o.Version
}
// GetVersionOk returns a tuple with the Version field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrganizationApiRequests200ResponseInner) GetVersionOk() (*int32, bool) {
if o == nil || IsNil(o.Version) {
return nil, false
}
return o.Version, true
}
// HasVersion returns a boolean if a field has been set.
func (o *GetOrganizationApiRequests200ResponseInner) HasVersion() bool {
if o != nil && !IsNil(o.Version) {
return true
}
return false
}
// SetVersion gets a reference to the given int32 and assigns it to the Version field.
func (o *GetOrganizationApiRequests200ResponseInner) SetVersion(v int32) {
o.Version = &v
}
// GetOperationId returns the OperationId field value if set, zero value otherwise.
func (o *GetOrganizationApiRequests200ResponseInner) GetOperationId() string {
if o == nil || IsNil(o.OperationId) {
var ret string
return ret
}
return *o.OperationId
}
// GetOperationIdOk returns a tuple with the OperationId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrganizationApiRequests200ResponseInner) GetOperationIdOk() (*string, bool) {
if o == nil || IsNil(o.OperationId) {
return nil, false
}
return o.OperationId, true
}
// HasOperationId returns a boolean if a field has been set.
func (o *GetOrganizationApiRequests200ResponseInner) HasOperationId() bool {
if o != nil && !IsNil(o.OperationId) {
return true
}
return false
}
// SetOperationId gets a reference to the given string and assigns it to the OperationId field.
func (o *GetOrganizationApiRequests200ResponseInner) SetOperationId(v string) {
o.OperationId = &v
}
func (o GetOrganizationApiRequests200ResponseInner) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o GetOrganizationApiRequests200ResponseInner) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.AdminId) {
toSerialize["adminId"] = o.AdminId
}
if !IsNil(o.Method) {
toSerialize["method"] = o.Method
}
if !IsNil(o.Host) {
toSerialize["host"] = o.Host
}
if !IsNil(o.Path) {
toSerialize["path"] = o.Path
}
if !IsNil(o.QueryString) {
toSerialize["queryString"] = o.QueryString
}
if !IsNil(o.UserAgent) {
toSerialize["userAgent"] = o.UserAgent
}
if !IsNil(o.Ts) {
toSerialize["ts"] = o.Ts
}
if !IsNil(o.ResponseCode) {
toSerialize["responseCode"] = o.ResponseCode
}
if !IsNil(o.SourceIp) {
toSerialize["sourceIp"] = o.SourceIp
}
if !IsNil(o.Version) {
toSerialize["version"] = o.Version
}
if !IsNil(o.OperationId) {
toSerialize["operationId"] = o.OperationId
}
return toSerialize, nil
}
type NullableGetOrganizationApiRequests200ResponseInner struct {
value *GetOrganizationApiRequests200ResponseInner
isSet bool
}
func (v NullableGetOrganizationApiRequests200ResponseInner) Get() *GetOrganizationApiRequests200ResponseInner {
return v.value
}
func (v *NullableGetOrganizationApiRequests200ResponseInner) Set(val *GetOrganizationApiRequests200ResponseInner) {
v.value = val
v.isSet = true
}
func (v NullableGetOrganizationApiRequests200ResponseInner) IsSet() bool {
return v.isSet
}
func (v *NullableGetOrganizationApiRequests200ResponseInner) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableGetOrganizationApiRequests200ResponseInner(val *GetOrganizationApiRequests200ResponseInner) *NullableGetOrganizationApiRequests200ResponseInner {
return &NullableGetOrganizationApiRequests200ResponseInner{value: val, isSet: true}
}
func (v NullableGetOrganizationApiRequests200ResponseInner) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableGetOrganizationApiRequests200ResponseInner) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}