-
Notifications
You must be signed in to change notification settings - Fork 4
/
model_ksearch_search_reply.go
331 lines (277 loc) · 9.54 KB
/
model_ksearch_search_reply.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
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
/*
Koyeb Rest API
The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests.
API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package koyeb
import (
"encoding/json"
)
// KsearchSearchReply struct for KsearchSearchReply
type KsearchSearchReply struct {
Organizations []KsearchOrganization `json:"organizations,omitempty"`
Users []KsearchUser `json:"users,omitempty"`
Apps []KsearchApp `json:"apps,omitempty"`
Services []KsearchService `json:"services,omitempty"`
GlobalDeployments []KsearchGlobalDeployment `json:"global_deployments,omitempty"`
RegionalDeployments []KsearchRegionalDeployment `json:"regional_deployments,omitempty"`
Instances []KsearchInstance `json:"instances,omitempty"`
}
// NewKsearchSearchReply instantiates a new KsearchSearchReply 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 NewKsearchSearchReply() *KsearchSearchReply {
this := KsearchSearchReply{}
return &this
}
// NewKsearchSearchReplyWithDefaults instantiates a new KsearchSearchReply 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 NewKsearchSearchReplyWithDefaults() *KsearchSearchReply {
this := KsearchSearchReply{}
return &this
}
// GetOrganizations returns the Organizations field value if set, zero value otherwise.
func (o *KsearchSearchReply) GetOrganizations() []KsearchOrganization {
if o == nil || isNil(o.Organizations) {
var ret []KsearchOrganization
return ret
}
return o.Organizations
}
// GetOrganizationsOk returns a tuple with the Organizations field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *KsearchSearchReply) GetOrganizationsOk() ([]KsearchOrganization, bool) {
if o == nil || isNil(o.Organizations) {
return nil, false
}
return o.Organizations, true
}
// HasOrganizations returns a boolean if a field has been set.
func (o *KsearchSearchReply) HasOrganizations() bool {
if o != nil && !isNil(o.Organizations) {
return true
}
return false
}
// SetOrganizations gets a reference to the given []KsearchOrganization and assigns it to the Organizations field.
func (o *KsearchSearchReply) SetOrganizations(v []KsearchOrganization) {
o.Organizations = v
}
// GetUsers returns the Users field value if set, zero value otherwise.
func (o *KsearchSearchReply) GetUsers() []KsearchUser {
if o == nil || isNil(o.Users) {
var ret []KsearchUser
return ret
}
return o.Users
}
// GetUsersOk returns a tuple with the Users field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *KsearchSearchReply) GetUsersOk() ([]KsearchUser, bool) {
if o == nil || isNil(o.Users) {
return nil, false
}
return o.Users, true
}
// HasUsers returns a boolean if a field has been set.
func (o *KsearchSearchReply) HasUsers() bool {
if o != nil && !isNil(o.Users) {
return true
}
return false
}
// SetUsers gets a reference to the given []KsearchUser and assigns it to the Users field.
func (o *KsearchSearchReply) SetUsers(v []KsearchUser) {
o.Users = v
}
// GetApps returns the Apps field value if set, zero value otherwise.
func (o *KsearchSearchReply) GetApps() []KsearchApp {
if o == nil || isNil(o.Apps) {
var ret []KsearchApp
return ret
}
return o.Apps
}
// GetAppsOk returns a tuple with the Apps field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *KsearchSearchReply) GetAppsOk() ([]KsearchApp, bool) {
if o == nil || isNil(o.Apps) {
return nil, false
}
return o.Apps, true
}
// HasApps returns a boolean if a field has been set.
func (o *KsearchSearchReply) HasApps() bool {
if o != nil && !isNil(o.Apps) {
return true
}
return false
}
// SetApps gets a reference to the given []KsearchApp and assigns it to the Apps field.
func (o *KsearchSearchReply) SetApps(v []KsearchApp) {
o.Apps = v
}
// GetServices returns the Services field value if set, zero value otherwise.
func (o *KsearchSearchReply) GetServices() []KsearchService {
if o == nil || isNil(o.Services) {
var ret []KsearchService
return ret
}
return o.Services
}
// GetServicesOk returns a tuple with the Services field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *KsearchSearchReply) GetServicesOk() ([]KsearchService, bool) {
if o == nil || isNil(o.Services) {
return nil, false
}
return o.Services, true
}
// HasServices returns a boolean if a field has been set.
func (o *KsearchSearchReply) HasServices() bool {
if o != nil && !isNil(o.Services) {
return true
}
return false
}
// SetServices gets a reference to the given []KsearchService and assigns it to the Services field.
func (o *KsearchSearchReply) SetServices(v []KsearchService) {
o.Services = v
}
// GetGlobalDeployments returns the GlobalDeployments field value if set, zero value otherwise.
func (o *KsearchSearchReply) GetGlobalDeployments() []KsearchGlobalDeployment {
if o == nil || isNil(o.GlobalDeployments) {
var ret []KsearchGlobalDeployment
return ret
}
return o.GlobalDeployments
}
// GetGlobalDeploymentsOk returns a tuple with the GlobalDeployments field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *KsearchSearchReply) GetGlobalDeploymentsOk() ([]KsearchGlobalDeployment, bool) {
if o == nil || isNil(o.GlobalDeployments) {
return nil, false
}
return o.GlobalDeployments, true
}
// HasGlobalDeployments returns a boolean if a field has been set.
func (o *KsearchSearchReply) HasGlobalDeployments() bool {
if o != nil && !isNil(o.GlobalDeployments) {
return true
}
return false
}
// SetGlobalDeployments gets a reference to the given []KsearchGlobalDeployment and assigns it to the GlobalDeployments field.
func (o *KsearchSearchReply) SetGlobalDeployments(v []KsearchGlobalDeployment) {
o.GlobalDeployments = v
}
// GetRegionalDeployments returns the RegionalDeployments field value if set, zero value otherwise.
func (o *KsearchSearchReply) GetRegionalDeployments() []KsearchRegionalDeployment {
if o == nil || isNil(o.RegionalDeployments) {
var ret []KsearchRegionalDeployment
return ret
}
return o.RegionalDeployments
}
// GetRegionalDeploymentsOk returns a tuple with the RegionalDeployments field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *KsearchSearchReply) GetRegionalDeploymentsOk() ([]KsearchRegionalDeployment, bool) {
if o == nil || isNil(o.RegionalDeployments) {
return nil, false
}
return o.RegionalDeployments, true
}
// HasRegionalDeployments returns a boolean if a field has been set.
func (o *KsearchSearchReply) HasRegionalDeployments() bool {
if o != nil && !isNil(o.RegionalDeployments) {
return true
}
return false
}
// SetRegionalDeployments gets a reference to the given []KsearchRegionalDeployment and assigns it to the RegionalDeployments field.
func (o *KsearchSearchReply) SetRegionalDeployments(v []KsearchRegionalDeployment) {
o.RegionalDeployments = v
}
// GetInstances returns the Instances field value if set, zero value otherwise.
func (o *KsearchSearchReply) GetInstances() []KsearchInstance {
if o == nil || isNil(o.Instances) {
var ret []KsearchInstance
return ret
}
return o.Instances
}
// GetInstancesOk returns a tuple with the Instances field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *KsearchSearchReply) GetInstancesOk() ([]KsearchInstance, bool) {
if o == nil || isNil(o.Instances) {
return nil, false
}
return o.Instances, true
}
// HasInstances returns a boolean if a field has been set.
func (o *KsearchSearchReply) HasInstances() bool {
if o != nil && !isNil(o.Instances) {
return true
}
return false
}
// SetInstances gets a reference to the given []KsearchInstance and assigns it to the Instances field.
func (o *KsearchSearchReply) SetInstances(v []KsearchInstance) {
o.Instances = v
}
func (o KsearchSearchReply) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if !isNil(o.Organizations) {
toSerialize["organizations"] = o.Organizations
}
if !isNil(o.Users) {
toSerialize["users"] = o.Users
}
if !isNil(o.Apps) {
toSerialize["apps"] = o.Apps
}
if !isNil(o.Services) {
toSerialize["services"] = o.Services
}
if !isNil(o.GlobalDeployments) {
toSerialize["global_deployments"] = o.GlobalDeployments
}
if !isNil(o.RegionalDeployments) {
toSerialize["regional_deployments"] = o.RegionalDeployments
}
if !isNil(o.Instances) {
toSerialize["instances"] = o.Instances
}
return json.Marshal(toSerialize)
}
type NullableKsearchSearchReply struct {
value *KsearchSearchReply
isSet bool
}
func (v NullableKsearchSearchReply) Get() *KsearchSearchReply {
return v.value
}
func (v *NullableKsearchSearchReply) Set(val *KsearchSearchReply) {
v.value = val
v.isSet = true
}
func (v NullableKsearchSearchReply) IsSet() bool {
return v.isSet
}
func (v *NullableKsearchSearchReply) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableKsearchSearchReply(val *KsearchSearchReply) *NullableKsearchSearchReply {
return &NullableKsearchSearchReply{value: val, isSet: true}
}
func (v NullableKsearchSearchReply) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableKsearchSearchReply) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}