/
model_common_response_obj_debug.go
230 lines (191 loc) · 6.27 KB
/
model_common_response_obj_debug.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
/*
eZmax API Definition
This API expose all the functionnalities for the eZmax and eZsign applications.
API version: 1.1.3
Contact: support-api@ezmax.ca
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package eZmaxApi
import (
"encoding/json"
)
// CommonResponseObjDebug This is a generic debug object that is returned by all API requests
type CommonResponseObjDebug struct {
// The peak memory allocated during the API request execution. Formatted as a human readable string
SMemoryUsage string `json:"sMemoryUsage"`
// The total server execution time of the API request execution. Formatted as a human readable string
SRunTime string `json:"sRunTime"`
// The number of SQL SELECT queries that were sent to the database server during the API request execution
ISQLSelects int32 `json:"iSQLSelects"`
// The number of SQL INSERT/UPDATE/DELETE queries that were sent to the database server during the API request execution
ISQLQueries int32 `json:"iSQLQueries"`
// An array of the SQL Queries that were executed during the API request execution
AObjSQLQuery []CommonResponseObjSQLQuery `json:"a_objSQLQuery"`
}
// NewCommonResponseObjDebug instantiates a new CommonResponseObjDebug 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 NewCommonResponseObjDebug(sMemoryUsage string, sRunTime string, iSQLSelects int32, iSQLQueries int32, aObjSQLQuery []CommonResponseObjSQLQuery) *CommonResponseObjDebug {
this := CommonResponseObjDebug{}
this.SMemoryUsage = sMemoryUsage
this.SRunTime = sRunTime
this.ISQLSelects = iSQLSelects
this.ISQLQueries = iSQLQueries
this.AObjSQLQuery = aObjSQLQuery
return &this
}
// NewCommonResponseObjDebugWithDefaults instantiates a new CommonResponseObjDebug 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 NewCommonResponseObjDebugWithDefaults() *CommonResponseObjDebug {
this := CommonResponseObjDebug{}
return &this
}
// GetSMemoryUsage returns the SMemoryUsage field value
func (o *CommonResponseObjDebug) GetSMemoryUsage() string {
if o == nil {
var ret string
return ret
}
return o.SMemoryUsage
}
// GetSMemoryUsageOk returns a tuple with the SMemoryUsage field value
// and a boolean to check if the value has been set.
func (o *CommonResponseObjDebug) GetSMemoryUsageOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.SMemoryUsage, true
}
// SetSMemoryUsage sets field value
func (o *CommonResponseObjDebug) SetSMemoryUsage(v string) {
o.SMemoryUsage = v
}
// GetSRunTime returns the SRunTime field value
func (o *CommonResponseObjDebug) GetSRunTime() string {
if o == nil {
var ret string
return ret
}
return o.SRunTime
}
// GetSRunTimeOk returns a tuple with the SRunTime field value
// and a boolean to check if the value has been set.
func (o *CommonResponseObjDebug) GetSRunTimeOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.SRunTime, true
}
// SetSRunTime sets field value
func (o *CommonResponseObjDebug) SetSRunTime(v string) {
o.SRunTime = v
}
// GetISQLSelects returns the ISQLSelects field value
func (o *CommonResponseObjDebug) GetISQLSelects() int32 {
if o == nil {
var ret int32
return ret
}
return o.ISQLSelects
}
// GetISQLSelectsOk returns a tuple with the ISQLSelects field value
// and a boolean to check if the value has been set.
func (o *CommonResponseObjDebug) GetISQLSelectsOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.ISQLSelects, true
}
// SetISQLSelects sets field value
func (o *CommonResponseObjDebug) SetISQLSelects(v int32) {
o.ISQLSelects = v
}
// GetISQLQueries returns the ISQLQueries field value
func (o *CommonResponseObjDebug) GetISQLQueries() int32 {
if o == nil {
var ret int32
return ret
}
return o.ISQLQueries
}
// GetISQLQueriesOk returns a tuple with the ISQLQueries field value
// and a boolean to check if the value has been set.
func (o *CommonResponseObjDebug) GetISQLQueriesOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.ISQLQueries, true
}
// SetISQLQueries sets field value
func (o *CommonResponseObjDebug) SetISQLQueries(v int32) {
o.ISQLQueries = v
}
// GetAObjSQLQuery returns the AObjSQLQuery field value
func (o *CommonResponseObjDebug) GetAObjSQLQuery() []CommonResponseObjSQLQuery {
if o == nil {
var ret []CommonResponseObjSQLQuery
return ret
}
return o.AObjSQLQuery
}
// GetAObjSQLQueryOk returns a tuple with the AObjSQLQuery field value
// and a boolean to check if the value has been set.
func (o *CommonResponseObjDebug) GetAObjSQLQueryOk() (*[]CommonResponseObjSQLQuery, bool) {
if o == nil {
return nil, false
}
return &o.AObjSQLQuery, true
}
// SetAObjSQLQuery sets field value
func (o *CommonResponseObjDebug) SetAObjSQLQuery(v []CommonResponseObjSQLQuery) {
o.AObjSQLQuery = v
}
func (o CommonResponseObjDebug) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["sMemoryUsage"] = o.SMemoryUsage
}
if true {
toSerialize["sRunTime"] = o.SRunTime
}
if true {
toSerialize["iSQLSelects"] = o.ISQLSelects
}
if true {
toSerialize["iSQLQueries"] = o.ISQLQueries
}
if true {
toSerialize["a_objSQLQuery"] = o.AObjSQLQuery
}
return json.Marshal(toSerialize)
}
type NullableCommonResponseObjDebug struct {
value *CommonResponseObjDebug
isSet bool
}
func (v NullableCommonResponseObjDebug) Get() *CommonResponseObjDebug {
return v.value
}
func (v *NullableCommonResponseObjDebug) Set(val *CommonResponseObjDebug) {
v.value = val
v.isSet = true
}
func (v NullableCommonResponseObjDebug) IsSet() bool {
return v.isSet
}
func (v *NullableCommonResponseObjDebug) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableCommonResponseObjDebug(val *CommonResponseObjDebug) *NullableCommonResponseObjDebug {
return &NullableCommonResponseObjDebug{value: val, isSet: true}
}
func (v NullableCommonResponseObjDebug) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableCommonResponseObjDebug) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}