-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel_private_feed.go
190 lines (158 loc) · 7.2 KB
/
model_private_feed.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"
)
// PrivateFeed Private feed
type PrivateFeed struct {
// Cursor used to scroll to page of feed results
Cursor *int32 `json:"cursor,omitempty"`
// Number of submissions in feed page
SubmissionCount interface{} `json:"submission_count,omitempty"`
Submissions *[]PrivateFeedEntity `json:"submissions,omitempty"`
}
// NewPrivateFeed instantiates a new PrivateFeed 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 NewPrivateFeed() *PrivateFeed {
this := PrivateFeed{}
return &this
}
// NewPrivateFeedWithDefaults instantiates a new PrivateFeed 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 NewPrivateFeedWithDefaults() *PrivateFeed {
this := PrivateFeed{}
return &this
}
// GetCursor returns the Cursor field value if set, zero value otherwise.
func (o *PrivateFeed) GetCursor() int32 {
if o == nil || o.Cursor == nil {
var ret int32
return ret
}
return *o.Cursor
}
// GetCursorOk returns a tuple with the Cursor field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PrivateFeed) GetCursorOk() (*int32, bool) {
if o == nil || o.Cursor == nil {
return nil, false
}
return o.Cursor, true
}
// HasCursor returns a boolean if a field has been set.
func (o *PrivateFeed) HasCursor() bool {
if o != nil && o.Cursor != nil {
return true
}
return false
}
// SetCursor gets a reference to the given int32 and assigns it to the Cursor field.
func (o *PrivateFeed) SetCursor(v int32) {
o.Cursor = &v
}
// GetSubmissionCount returns the SubmissionCount field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PrivateFeed) GetSubmissionCount() interface{} {
if o == nil {
var ret interface{}
return ret
}
return o.SubmissionCount
}
// GetSubmissionCountOk returns a tuple with the SubmissionCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *PrivateFeed) GetSubmissionCountOk() (*interface{}, bool) {
if o == nil || o.SubmissionCount == nil {
return nil, false
}
return &o.SubmissionCount, true
}
// HasSubmissionCount returns a boolean if a field has been set.
func (o *PrivateFeed) HasSubmissionCount() bool {
if o != nil && o.SubmissionCount != nil {
return true
}
return false
}
// SetSubmissionCount gets a reference to the given interface{} and assigns it to the SubmissionCount field.
func (o *PrivateFeed) SetSubmissionCount(v interface{}) {
o.SubmissionCount = v
}
// GetSubmissions returns the Submissions field value if set, zero value otherwise.
func (o *PrivateFeed) GetSubmissions() []PrivateFeedEntity {
if o == nil || o.Submissions == nil {
var ret []PrivateFeedEntity
return ret
}
return *o.Submissions
}
// GetSubmissionsOk returns a tuple with the Submissions field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PrivateFeed) GetSubmissionsOk() (*[]PrivateFeedEntity, bool) {
if o == nil || o.Submissions == nil {
return nil, false
}
return o.Submissions, true
}
// HasSubmissions returns a boolean if a field has been set.
func (o *PrivateFeed) HasSubmissions() bool {
if o != nil && o.Submissions != nil {
return true
}
return false
}
// SetSubmissions gets a reference to the given []PrivateFeedEntity and assigns it to the Submissions field.
func (o *PrivateFeed) SetSubmissions(v []PrivateFeedEntity) {
o.Submissions = &v
}
func (o PrivateFeed) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Cursor != nil {
toSerialize["cursor"] = o.Cursor
}
if o.SubmissionCount != nil {
toSerialize["submission_count"] = o.SubmissionCount
}
if o.Submissions != nil {
toSerialize["submissions"] = o.Submissions
}
return json.Marshal(toSerialize)
}
type NullablePrivateFeed struct {
value *PrivateFeed
isSet bool
}
func (v NullablePrivateFeed) Get() *PrivateFeed {
return v.value
}
func (v *NullablePrivateFeed) Set(val *PrivateFeed) {
v.value = val
v.isSet = true
}
func (v NullablePrivateFeed) IsSet() bool {
return v.isSet
}
func (v *NullablePrivateFeed) Unset() {
v.value = nil
v.isSet = false
}
func NewNullablePrivateFeed(val *PrivateFeed) *NullablePrivateFeed {
return &NullablePrivateFeed{value: val, isSet: true}
}
func (v NullablePrivateFeed) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullablePrivateFeed) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}