-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_malware_id_all_of.go
199 lines (166 loc) · 6.63 KB
/
model_malware_id_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
/*
* 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"
)
// MalwareIdAllOf struct for MalwareIdAllOf
type MalwareIdAllOf struct {
// Match confidence
Confidence string `json:"confidence"`
// Match name
Name string `json:"name"`
// Match reference
Reference string `json:"reference"`
// Match source
Source string `json:"source"`
}
// NewMalwareIdAllOf instantiates a new MalwareIdAllOf 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 NewMalwareIdAllOf(confidence string, name string, reference string, source string, ) *MalwareIdAllOf {
this := MalwareIdAllOf{}
this.Confidence = confidence
this.Name = name
this.Reference = reference
this.Source = source
return &this
}
// NewMalwareIdAllOfWithDefaults instantiates a new MalwareIdAllOf 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 NewMalwareIdAllOfWithDefaults() *MalwareIdAllOf {
this := MalwareIdAllOf{}
return &this
}
// GetConfidence returns the Confidence field value
func (o *MalwareIdAllOf) GetConfidence() string {
if o == nil {
var ret string
return ret
}
return o.Confidence
}
// GetConfidenceOk returns a tuple with the Confidence field value
// and a boolean to check if the value has been set.
func (o *MalwareIdAllOf) GetConfidenceOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Confidence, true
}
// SetConfidence sets field value
func (o *MalwareIdAllOf) SetConfidence(v string) {
o.Confidence = v
}
// GetName returns the Name field value
func (o *MalwareIdAllOf) GetName() string {
if o == nil {
var ret string
return ret
}
return o.Name
}
// GetNameOk returns a tuple with the Name field value
// and a boolean to check if the value has been set.
func (o *MalwareIdAllOf) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Name, true
}
// SetName sets field value
func (o *MalwareIdAllOf) SetName(v string) {
o.Name = v
}
// GetReference returns the Reference field value
func (o *MalwareIdAllOf) GetReference() string {
if o == nil {
var ret string
return ret
}
return o.Reference
}
// GetReferenceOk returns a tuple with the Reference field value
// and a boolean to check if the value has been set.
func (o *MalwareIdAllOf) GetReferenceOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Reference, true
}
// SetReference sets field value
func (o *MalwareIdAllOf) SetReference(v string) {
o.Reference = v
}
// GetSource returns the Source field value
func (o *MalwareIdAllOf) GetSource() string {
if o == nil {
var ret string
return ret
}
return o.Source
}
// GetSourceOk returns a tuple with the Source field value
// and a boolean to check if the value has been set.
func (o *MalwareIdAllOf) GetSourceOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Source, true
}
// SetSource sets field value
func (o *MalwareIdAllOf) SetSource(v string) {
o.Source = v
}
func (o MalwareIdAllOf) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["confidence"] = o.Confidence
}
if true {
toSerialize["name"] = o.Name
}
if true {
toSerialize["reference"] = o.Reference
}
if true {
toSerialize["source"] = o.Source
}
return json.Marshal(toSerialize)
}
type NullableMalwareIdAllOf struct {
value *MalwareIdAllOf
isSet bool
}
func (v NullableMalwareIdAllOf) Get() *MalwareIdAllOf {
return v.value
}
func (v *NullableMalwareIdAllOf) Set(val *MalwareIdAllOf) {
v.value = val
v.isSet = true
}
func (v NullableMalwareIdAllOf) IsSet() bool {
return v.isSet
}
func (v *NullableMalwareIdAllOf) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableMalwareIdAllOf(val *MalwareIdAllOf) *NullableMalwareIdAllOf {
return &NullableMalwareIdAllOf{value: val, isSet: true}
}
func (v NullableMalwareIdAllOf) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableMalwareIdAllOf) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}