/
model_model_topology_delta_response.go
237 lines (196 loc) · 7.64 KB
/
model_model_topology_delta_response.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
/*
Toae ThreatMapper
Toae Runtime API provides programmatic control over Toae microservice securing your container, kubernetes and cloud deployments. The API abstracts away underlying infrastructure details like cloud provider, container distros, container orchestrator and type of deployment. This is one uniform API to manage and control security alerts, policies and response to alerts for microservices running anywhere i.e. managed pure greenfield container deployments or a mix of containers, VMs and serverless paradigms like AWS Fargate.
API version: 2.0.0
Contact: toaedev@toaesecurity.com
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package client
import (
"encoding/json"
)
// checks if the ModelTopologyDeltaResponse type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ModelTopologyDeltaResponse{}
// ModelTopologyDeltaResponse struct for ModelTopologyDeltaResponse
type ModelTopologyDeltaResponse struct {
AdditionTimestamp *int64 `json:"addition_timestamp,omitempty"`
Additons []ModelNodeIdentifier `json:"additons,omitempty"`
DeletionTimestamp *int64 `json:"deletion_timestamp,omitempty"`
Deletions []ModelNodeIdentifier `json:"deletions,omitempty"`
}
// NewModelTopologyDeltaResponse instantiates a new ModelTopologyDeltaResponse 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 NewModelTopologyDeltaResponse() *ModelTopologyDeltaResponse {
this := ModelTopologyDeltaResponse{}
return &this
}
// NewModelTopologyDeltaResponseWithDefaults instantiates a new ModelTopologyDeltaResponse 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 NewModelTopologyDeltaResponseWithDefaults() *ModelTopologyDeltaResponse {
this := ModelTopologyDeltaResponse{}
return &this
}
// GetAdditionTimestamp returns the AdditionTimestamp field value if set, zero value otherwise.
func (o *ModelTopologyDeltaResponse) GetAdditionTimestamp() int64 {
if o == nil || IsNil(o.AdditionTimestamp) {
var ret int64
return ret
}
return *o.AdditionTimestamp
}
// GetAdditionTimestampOk returns a tuple with the AdditionTimestamp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ModelTopologyDeltaResponse) GetAdditionTimestampOk() (*int64, bool) {
if o == nil || IsNil(o.AdditionTimestamp) {
return nil, false
}
return o.AdditionTimestamp, true
}
// HasAdditionTimestamp returns a boolean if a field has been set.
func (o *ModelTopologyDeltaResponse) HasAdditionTimestamp() bool {
if o != nil && !IsNil(o.AdditionTimestamp) {
return true
}
return false
}
// SetAdditionTimestamp gets a reference to the given int64 and assigns it to the AdditionTimestamp field.
func (o *ModelTopologyDeltaResponse) SetAdditionTimestamp(v int64) {
o.AdditionTimestamp = &v
}
// GetAdditons returns the Additons field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModelTopologyDeltaResponse) GetAdditons() []ModelNodeIdentifier {
if o == nil {
var ret []ModelNodeIdentifier
return ret
}
return o.Additons
}
// GetAdditonsOk returns a tuple with the Additons 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 *ModelTopologyDeltaResponse) GetAdditonsOk() ([]ModelNodeIdentifier, bool) {
if o == nil || IsNil(o.Additons) {
return nil, false
}
return o.Additons, true
}
// HasAdditons returns a boolean if a field has been set.
func (o *ModelTopologyDeltaResponse) HasAdditons() bool {
if o != nil && IsNil(o.Additons) {
return true
}
return false
}
// SetAdditons gets a reference to the given []ModelNodeIdentifier and assigns it to the Additons field.
func (o *ModelTopologyDeltaResponse) SetAdditons(v []ModelNodeIdentifier) {
o.Additons = v
}
// GetDeletionTimestamp returns the DeletionTimestamp field value if set, zero value otherwise.
func (o *ModelTopologyDeltaResponse) GetDeletionTimestamp() int64 {
if o == nil || IsNil(o.DeletionTimestamp) {
var ret int64
return ret
}
return *o.DeletionTimestamp
}
// GetDeletionTimestampOk returns a tuple with the DeletionTimestamp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ModelTopologyDeltaResponse) GetDeletionTimestampOk() (*int64, bool) {
if o == nil || IsNil(o.DeletionTimestamp) {
return nil, false
}
return o.DeletionTimestamp, true
}
// HasDeletionTimestamp returns a boolean if a field has been set.
func (o *ModelTopologyDeltaResponse) HasDeletionTimestamp() bool {
if o != nil && !IsNil(o.DeletionTimestamp) {
return true
}
return false
}
// SetDeletionTimestamp gets a reference to the given int64 and assigns it to the DeletionTimestamp field.
func (o *ModelTopologyDeltaResponse) SetDeletionTimestamp(v int64) {
o.DeletionTimestamp = &v
}
// GetDeletions returns the Deletions field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModelTopologyDeltaResponse) GetDeletions() []ModelNodeIdentifier {
if o == nil {
var ret []ModelNodeIdentifier
return ret
}
return o.Deletions
}
// GetDeletionsOk returns a tuple with the Deletions 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 *ModelTopologyDeltaResponse) GetDeletionsOk() ([]ModelNodeIdentifier, bool) {
if o == nil || IsNil(o.Deletions) {
return nil, false
}
return o.Deletions, true
}
// HasDeletions returns a boolean if a field has been set.
func (o *ModelTopologyDeltaResponse) HasDeletions() bool {
if o != nil && IsNil(o.Deletions) {
return true
}
return false
}
// SetDeletions gets a reference to the given []ModelNodeIdentifier and assigns it to the Deletions field.
func (o *ModelTopologyDeltaResponse) SetDeletions(v []ModelNodeIdentifier) {
o.Deletions = v
}
func (o ModelTopologyDeltaResponse) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ModelTopologyDeltaResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.AdditionTimestamp) {
toSerialize["addition_timestamp"] = o.AdditionTimestamp
}
if o.Additons != nil {
toSerialize["additons"] = o.Additons
}
if !IsNil(o.DeletionTimestamp) {
toSerialize["deletion_timestamp"] = o.DeletionTimestamp
}
if o.Deletions != nil {
toSerialize["deletions"] = o.Deletions
}
return toSerialize, nil
}
type NullableModelTopologyDeltaResponse struct {
value *ModelTopologyDeltaResponse
isSet bool
}
func (v NullableModelTopologyDeltaResponse) Get() *ModelTopologyDeltaResponse {
return v.value
}
func (v *NullableModelTopologyDeltaResponse) Set(val *ModelTopologyDeltaResponse) {
v.value = val
v.isSet = true
}
func (v NullableModelTopologyDeltaResponse) IsSet() bool {
return v.isSet
}
func (v *NullableModelTopologyDeltaResponse) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableModelTopologyDeltaResponse(val *ModelTopologyDeltaResponse) *NullableModelTopologyDeltaResponse {
return &NullableModelTopologyDeltaResponse{value: val, isSet: true}
}
func (v NullableModelTopologyDeltaResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableModelTopologyDeltaResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}