-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel_resource_all_of.go
259 lines (218 loc) · 7.73 KB
/
model_resource_all_of.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
/*
* UnpacMe
*
* # Introduction Welcome to the UNPACME API! All the malware unpacking and file analysis features that you are familiar with on the [unpac.me](https://www.unpac.me/) website are available through our API. You can easily integrate our unpacker into your malware analysis pipeline and begin unpacking at scale! # Authentication The public UNPACME API is publicly available and can be accessed without authentication. In order to use the private UNPACME API you must sign up for an account with UNPACME. Once you have a valid user account you can view your personal API key in your user profile. <SecurityDefinitions /> # Response Structure When interacting with the UNPACME API, if the request was correctly handled, a <b>200</b> HTTP status code will be returned. The body of the response will usually be a JSON object (except for file downloads). ## Response Status Codes Status Code | Description | Notes ------------- | ------------- | - 200 | OK | The request was successful 400 | Bad Request | The request was somehow incorrect. This can be caused by missing arguments or arguments with wrong values. 401 | Unauthorized | The supplied credentials, if any, are not sufficient to access the resource 403 | Forbidden | The account does not have enough privileges to make the request. 404 | Not Found | The requested resource is not found 429 | Too Many Requests | The request frequency has exceeded one of the account quotas (minute, daily or monthly). Monthly quotas are reset on the 1st of the month at 00:00 UTC. 500 | Server Error | The server could not return the representation due to an internal server error ## Error Response If an error has occurred while handling the request an error status code will be returend along with a JSON error message with the following properties. Property | Description ------------- | ------------- Error | The error type Description | A more informative message # Example Clients The following clients can be used to interact with the UNPACME API directly and are provided as examples. These clients are community projects and are not maintained or developed by UNPACME. UNPACME makes no claim as to the safety of these clients, use at your own risk. - [UnpacMe Client](https://github.com/larsborn/UnpacMeClient) (Python) - [UnpacMe Library](https://github.com/R3MRUM/unpacme) (Python) <br>
*
* API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// ResourceAllOf struct for ResourceAllOf
type ResourceAllOf struct {
// Codepage
Codepage int32 `json:"codepage"`
// Language
Lang string `json:"lang"`
// Resource type
MagicType string `json:"magic_type"`
// Resource offset
Offset int32 `json:"offset"`
// Resource size
Size int32 `json:"size"`
// Sub-Language
Sublang string `json:"sublang"`
}
// NewResourceAllOf instantiates a new ResourceAllOf 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 NewResourceAllOf(codepage int32, lang string, magicType string, offset int32, size int32, sublang string, ) *ResourceAllOf {
this := ResourceAllOf{}
this.Codepage = codepage
this.Lang = lang
this.MagicType = magicType
this.Offset = offset
this.Size = size
this.Sublang = sublang
return &this
}
// NewResourceAllOfWithDefaults instantiates a new ResourceAllOf 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 NewResourceAllOfWithDefaults() *ResourceAllOf {
this := ResourceAllOf{}
return &this
}
// GetCodepage returns the Codepage field value
func (o *ResourceAllOf) GetCodepage() int32 {
if o == nil {
var ret int32
return ret
}
return o.Codepage
}
// GetCodepageOk returns a tuple with the Codepage field value
// and a boolean to check if the value has been set.
func (o *ResourceAllOf) GetCodepageOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.Codepage, true
}
// SetCodepage sets field value
func (o *ResourceAllOf) SetCodepage(v int32) {
o.Codepage = v
}
// GetLang returns the Lang field value
func (o *ResourceAllOf) GetLang() string {
if o == nil {
var ret string
return ret
}
return o.Lang
}
// GetLangOk returns a tuple with the Lang field value
// and a boolean to check if the value has been set.
func (o *ResourceAllOf) GetLangOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Lang, true
}
// SetLang sets field value
func (o *ResourceAllOf) SetLang(v string) {
o.Lang = v
}
// GetMagicType returns the MagicType field value
func (o *ResourceAllOf) GetMagicType() string {
if o == nil {
var ret string
return ret
}
return o.MagicType
}
// GetMagicTypeOk returns a tuple with the MagicType field value
// and a boolean to check if the value has been set.
func (o *ResourceAllOf) GetMagicTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.MagicType, true
}
// SetMagicType sets field value
func (o *ResourceAllOf) SetMagicType(v string) {
o.MagicType = v
}
// GetOffset returns the Offset field value
func (o *ResourceAllOf) GetOffset() int32 {
if o == nil {
var ret int32
return ret
}
return o.Offset
}
// GetOffsetOk returns a tuple with the Offset field value
// and a boolean to check if the value has been set.
func (o *ResourceAllOf) GetOffsetOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.Offset, true
}
// SetOffset sets field value
func (o *ResourceAllOf) SetOffset(v int32) {
o.Offset = v
}
// GetSize returns the Size field value
func (o *ResourceAllOf) GetSize() int32 {
if o == nil {
var ret int32
return ret
}
return o.Size
}
// GetSizeOk returns a tuple with the Size field value
// and a boolean to check if the value has been set.
func (o *ResourceAllOf) GetSizeOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.Size, true
}
// SetSize sets field value
func (o *ResourceAllOf) SetSize(v int32) {
o.Size = v
}
// GetSublang returns the Sublang field value
func (o *ResourceAllOf) GetSublang() string {
if o == nil {
var ret string
return ret
}
return o.Sublang
}
// GetSublangOk returns a tuple with the Sublang field value
// and a boolean to check if the value has been set.
func (o *ResourceAllOf) GetSublangOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Sublang, true
}
// SetSublang sets field value
func (o *ResourceAllOf) SetSublang(v string) {
o.Sublang = v
}
func (o ResourceAllOf) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["codepage"] = o.Codepage
}
if true {
toSerialize["lang"] = o.Lang
}
if true {
toSerialize["magic_type"] = o.MagicType
}
if true {
toSerialize["offset"] = o.Offset
}
if true {
toSerialize["size"] = o.Size
}
if true {
toSerialize["sublang"] = o.Sublang
}
return json.Marshal(toSerialize)
}
type NullableResourceAllOf struct {
value *ResourceAllOf
isSet bool
}
func (v NullableResourceAllOf) Get() *ResourceAllOf {
return v.value
}
func (v *NullableResourceAllOf) Set(val *ResourceAllOf) {
v.value = val
v.isSet = true
}
func (v NullableResourceAllOf) IsSet() bool {
return v.isSet
}
func (v *NullableResourceAllOf) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableResourceAllOf(val *ResourceAllOf) *NullableResourceAllOf {
return &NullableResourceAllOf{value: val, isSet: true}
}
func (v NullableResourceAllOf) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableResourceAllOf) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}