-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_result_all_of_hashes.go
190 lines (158 loc) · 6.83 KB
/
model_result_all_of_hashes.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
/*
* 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"
)
// ResultAllOfHashes struct for ResultAllOfHashes
type ResultAllOfHashes struct {
// MD5 hash of sample
Md5 *string `json:"md5,omitempty"`
// SHA1 hash of sample
Sha1 *string `json:"sha1,omitempty"`
// SHA256 hash of sample
Sha256 *string `json:"sha256,omitempty"`
}
// NewResultAllOfHashes instantiates a new ResultAllOfHashes 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 NewResultAllOfHashes() *ResultAllOfHashes {
this := ResultAllOfHashes{}
return &this
}
// NewResultAllOfHashesWithDefaults instantiates a new ResultAllOfHashes 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 NewResultAllOfHashesWithDefaults() *ResultAllOfHashes {
this := ResultAllOfHashes{}
return &this
}
// GetMd5 returns the Md5 field value if set, zero value otherwise.
func (o *ResultAllOfHashes) GetMd5() string {
if o == nil || o.Md5 == nil {
var ret string
return ret
}
return *o.Md5
}
// GetMd5Ok returns a tuple with the Md5 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ResultAllOfHashes) GetMd5Ok() (*string, bool) {
if o == nil || o.Md5 == nil {
return nil, false
}
return o.Md5, true
}
// HasMd5 returns a boolean if a field has been set.
func (o *ResultAllOfHashes) HasMd5() bool {
if o != nil && o.Md5 != nil {
return true
}
return false
}
// SetMd5 gets a reference to the given string and assigns it to the Md5 field.
func (o *ResultAllOfHashes) SetMd5(v string) {
o.Md5 = &v
}
// GetSha1 returns the Sha1 field value if set, zero value otherwise.
func (o *ResultAllOfHashes) GetSha1() string {
if o == nil || o.Sha1 == nil {
var ret string
return ret
}
return *o.Sha1
}
// GetSha1Ok returns a tuple with the Sha1 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ResultAllOfHashes) GetSha1Ok() (*string, bool) {
if o == nil || o.Sha1 == nil {
return nil, false
}
return o.Sha1, true
}
// HasSha1 returns a boolean if a field has been set.
func (o *ResultAllOfHashes) HasSha1() bool {
if o != nil && o.Sha1 != nil {
return true
}
return false
}
// SetSha1 gets a reference to the given string and assigns it to the Sha1 field.
func (o *ResultAllOfHashes) SetSha1(v string) {
o.Sha1 = &v
}
// GetSha256 returns the Sha256 field value if set, zero value otherwise.
func (o *ResultAllOfHashes) GetSha256() string {
if o == nil || o.Sha256 == nil {
var ret string
return ret
}
return *o.Sha256
}
// GetSha256Ok returns a tuple with the Sha256 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ResultAllOfHashes) GetSha256Ok() (*string, bool) {
if o == nil || o.Sha256 == nil {
return nil, false
}
return o.Sha256, true
}
// HasSha256 returns a boolean if a field has been set.
func (o *ResultAllOfHashes) HasSha256() bool {
if o != nil && o.Sha256 != nil {
return true
}
return false
}
// SetSha256 gets a reference to the given string and assigns it to the Sha256 field.
func (o *ResultAllOfHashes) SetSha256(v string) {
o.Sha256 = &v
}
func (o ResultAllOfHashes) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Md5 != nil {
toSerialize["md5"] = o.Md5
}
if o.Sha1 != nil {
toSerialize["sha1"] = o.Sha1
}
if o.Sha256 != nil {
toSerialize["sha256"] = o.Sha256
}
return json.Marshal(toSerialize)
}
type NullableResultAllOfHashes struct {
value *ResultAllOfHashes
isSet bool
}
func (v NullableResultAllOfHashes) Get() *ResultAllOfHashes {
return v.value
}
func (v *NullableResultAllOfHashes) Set(val *ResultAllOfHashes) {
v.value = val
v.isSet = true
}
func (v NullableResultAllOfHashes) IsSet() bool {
return v.isSet
}
func (v *NullableResultAllOfHashes) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableResultAllOfHashes(val *ResultAllOfHashes) *NullableResultAllOfHashes {
return &NullableResultAllOfHashes{value: val, isSet: true}
}
func (v NullableResultAllOfHashes) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableResultAllOfHashes) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}