-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmodel_invalid_import_file_error_dto.go
More file actions
234 lines (193 loc) · 7.7 KB
/
Copy pathmodel_invalid_import_file_error_dto.go
File metadata and controls
234 lines (193 loc) · 7.7 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
/*
Localizely API
<h2>Getting started</h2><p>Localizely API is built on <a href=\"https://en.wikipedia.org/wiki/Representational_state_transfer\" target=\"_blank\">REST</a>. <br>You can use this API for importing & exporting your localization files in order to automate the process with `curl` scripts or external <a href=\"https://en.wikipedia.org/wiki/Continuous_integration\" target=\"_blank\">CI</a> tools. <br>Response is returned in JSON form even in case of error. <br></p><p>If you Authenticate with your API token on this page by clicking \"Authorize\" button, you can make API calls directly from here with \"Try it out\", and generate such `curl` examples. </p><h2>API Authentication</h2><p>Authenticate your account by sending your API token as a request header `X-Api-Token`. <br>The token can be found under <a href=\"https://app.localizely.com/account\" target=\"_blank\">My Profile</a> page. <br>A user must have an Admin role in the project in order to access the project with his token. <br>API requests without authentication will fail.</p><p><b>Base url:</b> `https://api.localizely.com`</p>
API version: 1.2.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package localizely
import (
"encoding/json"
)
// checks if the InvalidImportFileErrorDto type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &InvalidImportFileErrorDto{}
// InvalidImportFileErrorDto struct for InvalidImportFileErrorDto
type InvalidImportFileErrorDto struct {
ErrorCode *string `json:"errorCode,omitempty"`
ErrorMessage *string `json:"errorMessage,omitempty"`
ErrorData map[string]map[string]interface{} `json:"errorData,omitempty"`
Errors []ImportFileError `json:"errors,omitempty"`
}
// NewInvalidImportFileErrorDto instantiates a new InvalidImportFileErrorDto 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 NewInvalidImportFileErrorDto() *InvalidImportFileErrorDto {
this := InvalidImportFileErrorDto{}
return &this
}
// NewInvalidImportFileErrorDtoWithDefaults instantiates a new InvalidImportFileErrorDto 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 NewInvalidImportFileErrorDtoWithDefaults() *InvalidImportFileErrorDto {
this := InvalidImportFileErrorDto{}
return &this
}
// GetErrorCode returns the ErrorCode field value if set, zero value otherwise.
func (o *InvalidImportFileErrorDto) GetErrorCode() string {
if o == nil || IsNil(o.ErrorCode) {
var ret string
return ret
}
return *o.ErrorCode
}
// GetErrorCodeOk returns a tuple with the ErrorCode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InvalidImportFileErrorDto) GetErrorCodeOk() (*string, bool) {
if o == nil || IsNil(o.ErrorCode) {
return nil, false
}
return o.ErrorCode, true
}
// HasErrorCode returns a boolean if a field has been set.
func (o *InvalidImportFileErrorDto) HasErrorCode() bool {
if o != nil && !IsNil(o.ErrorCode) {
return true
}
return false
}
// SetErrorCode gets a reference to the given string and assigns it to the ErrorCode field.
func (o *InvalidImportFileErrorDto) SetErrorCode(v string) {
o.ErrorCode = &v
}
// GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise.
func (o *InvalidImportFileErrorDto) GetErrorMessage() string {
if o == nil || IsNil(o.ErrorMessage) {
var ret string
return ret
}
return *o.ErrorMessage
}
// GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InvalidImportFileErrorDto) GetErrorMessageOk() (*string, bool) {
if o == nil || IsNil(o.ErrorMessage) {
return nil, false
}
return o.ErrorMessage, true
}
// HasErrorMessage returns a boolean if a field has been set.
func (o *InvalidImportFileErrorDto) HasErrorMessage() bool {
if o != nil && !IsNil(o.ErrorMessage) {
return true
}
return false
}
// SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field.
func (o *InvalidImportFileErrorDto) SetErrorMessage(v string) {
o.ErrorMessage = &v
}
// GetErrorData returns the ErrorData field value if set, zero value otherwise.
func (o *InvalidImportFileErrorDto) GetErrorData() map[string]map[string]interface{} {
if o == nil || IsNil(o.ErrorData) {
var ret map[string]map[string]interface{}
return ret
}
return o.ErrorData
}
// GetErrorDataOk returns a tuple with the ErrorData field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InvalidImportFileErrorDto) GetErrorDataOk() (map[string]map[string]interface{}, bool) {
if o == nil || IsNil(o.ErrorData) {
return map[string]map[string]interface{}{}, false
}
return o.ErrorData, true
}
// HasErrorData returns a boolean if a field has been set.
func (o *InvalidImportFileErrorDto) HasErrorData() bool {
if o != nil && !IsNil(o.ErrorData) {
return true
}
return false
}
// SetErrorData gets a reference to the given map[string]map[string]interface{} and assigns it to the ErrorData field.
func (o *InvalidImportFileErrorDto) SetErrorData(v map[string]map[string]interface{}) {
o.ErrorData = v
}
// GetErrors returns the Errors field value if set, zero value otherwise.
func (o *InvalidImportFileErrorDto) GetErrors() []ImportFileError {
if o == nil || IsNil(o.Errors) {
var ret []ImportFileError
return ret
}
return o.Errors
}
// GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InvalidImportFileErrorDto) GetErrorsOk() ([]ImportFileError, bool) {
if o == nil || IsNil(o.Errors) {
return nil, false
}
return o.Errors, true
}
// HasErrors returns a boolean if a field has been set.
func (o *InvalidImportFileErrorDto) HasErrors() bool {
if o != nil && !IsNil(o.Errors) {
return true
}
return false
}
// SetErrors gets a reference to the given []ImportFileError and assigns it to the Errors field.
func (o *InvalidImportFileErrorDto) SetErrors(v []ImportFileError) {
o.Errors = v
}
func (o InvalidImportFileErrorDto) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o InvalidImportFileErrorDto) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.ErrorCode) {
toSerialize["errorCode"] = o.ErrorCode
}
if !IsNil(o.ErrorMessage) {
toSerialize["errorMessage"] = o.ErrorMessage
}
if !IsNil(o.ErrorData) {
toSerialize["errorData"] = o.ErrorData
}
if !IsNil(o.Errors) {
toSerialize["errors"] = o.Errors
}
return toSerialize, nil
}
type NullableInvalidImportFileErrorDto struct {
value *InvalidImportFileErrorDto
isSet bool
}
func (v NullableInvalidImportFileErrorDto) Get() *InvalidImportFileErrorDto {
return v.value
}
func (v *NullableInvalidImportFileErrorDto) Set(val *InvalidImportFileErrorDto) {
v.value = val
v.isSet = true
}
func (v NullableInvalidImportFileErrorDto) IsSet() bool {
return v.isSet
}
func (v *NullableInvalidImportFileErrorDto) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableInvalidImportFileErrorDto(val *InvalidImportFileErrorDto) *NullableInvalidImportFileErrorDto {
return &NullableInvalidImportFileErrorDto{value: val, isSet: true}
}
func (v NullableInvalidImportFileErrorDto) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableInvalidImportFileErrorDto) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}