/
model_common_response_obj_debug_payload.go
170 lines (139 loc) · 5 KB
/
model_common_response_obj_debug_payload.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
/*
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"
)
// CommonResponseObjDebugPayload This is a debug object containing debugging information on the actual function
type CommonResponseObjDebugPayload struct {
// The minimum version of the function that can be called
IVersionMin int32 `json:"iVersionMin"`
// The maximum version of the function that can be called
IVersionMax int32 `json:"iVersionMax"`
// An array of permissions required to access this function. If the value \"0\" is present in the array, anyone can call this function. You must have one of the permission to access the function. You don't need to have all of them.
ARequiredPermission []int32 `json:"a_RequiredPermission"`
}
// NewCommonResponseObjDebugPayload instantiates a new CommonResponseObjDebugPayload 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 NewCommonResponseObjDebugPayload(iVersionMin int32, iVersionMax int32, aRequiredPermission []int32) *CommonResponseObjDebugPayload {
this := CommonResponseObjDebugPayload{}
this.IVersionMin = iVersionMin
this.IVersionMax = iVersionMax
this.ARequiredPermission = aRequiredPermission
return &this
}
// NewCommonResponseObjDebugPayloadWithDefaults instantiates a new CommonResponseObjDebugPayload 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 NewCommonResponseObjDebugPayloadWithDefaults() *CommonResponseObjDebugPayload {
this := CommonResponseObjDebugPayload{}
return &this
}
// GetIVersionMin returns the IVersionMin field value
func (o *CommonResponseObjDebugPayload) GetIVersionMin() int32 {
if o == nil {
var ret int32
return ret
}
return o.IVersionMin
}
// GetIVersionMinOk returns a tuple with the IVersionMin field value
// and a boolean to check if the value has been set.
func (o *CommonResponseObjDebugPayload) GetIVersionMinOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.IVersionMin, true
}
// SetIVersionMin sets field value
func (o *CommonResponseObjDebugPayload) SetIVersionMin(v int32) {
o.IVersionMin = v
}
// GetIVersionMax returns the IVersionMax field value
func (o *CommonResponseObjDebugPayload) GetIVersionMax() int32 {
if o == nil {
var ret int32
return ret
}
return o.IVersionMax
}
// GetIVersionMaxOk returns a tuple with the IVersionMax field value
// and a boolean to check if the value has been set.
func (o *CommonResponseObjDebugPayload) GetIVersionMaxOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.IVersionMax, true
}
// SetIVersionMax sets field value
func (o *CommonResponseObjDebugPayload) SetIVersionMax(v int32) {
o.IVersionMax = v
}
// GetARequiredPermission returns the ARequiredPermission field value
func (o *CommonResponseObjDebugPayload) GetARequiredPermission() []int32 {
if o == nil {
var ret []int32
return ret
}
return o.ARequiredPermission
}
// GetARequiredPermissionOk returns a tuple with the ARequiredPermission field value
// and a boolean to check if the value has been set.
func (o *CommonResponseObjDebugPayload) GetARequiredPermissionOk() (*[]int32, bool) {
if o == nil {
return nil, false
}
return &o.ARequiredPermission, true
}
// SetARequiredPermission sets field value
func (o *CommonResponseObjDebugPayload) SetARequiredPermission(v []int32) {
o.ARequiredPermission = v
}
func (o CommonResponseObjDebugPayload) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["iVersionMin"] = o.IVersionMin
}
if true {
toSerialize["iVersionMax"] = o.IVersionMax
}
if true {
toSerialize["a_RequiredPermission"] = o.ARequiredPermission
}
return json.Marshal(toSerialize)
}
type NullableCommonResponseObjDebugPayload struct {
value *CommonResponseObjDebugPayload
isSet bool
}
func (v NullableCommonResponseObjDebugPayload) Get() *CommonResponseObjDebugPayload {
return v.value
}
func (v *NullableCommonResponseObjDebugPayload) Set(val *CommonResponseObjDebugPayload) {
v.value = val
v.isSet = true
}
func (v NullableCommonResponseObjDebugPayload) IsSet() bool {
return v.isSet
}
func (v *NullableCommonResponseObjDebugPayload) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableCommonResponseObjDebugPayload(val *CommonResponseObjDebugPayload) *NullableCommonResponseObjDebugPayload {
return &NullableCommonResponseObjDebugPayload{value: val, isSet: true}
}
func (v NullableCommonResponseObjDebugPayload) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableCommonResponseObjDebugPayload) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}