/
model_search_results_dto.go
535 lines (454 loc) · 18.7 KB
/
model_search_results_dto.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
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
/*
NiFi Rest API
The Rest API provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service.
API version: 2.0.0
Contact: dev@nifi.apache.org
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package nifiapi
import (
"encoding/json"
)
// checks if the SearchResultsDTO type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SearchResultsDTO{}
// SearchResultsDTO struct for SearchResultsDTO
type SearchResultsDTO struct {
// The processors that matched the search.
ProcessorResults []ComponentSearchResultDTO `json:"processorResults,omitempty"`
// The connections that matched the search.
ConnectionResults []ComponentSearchResultDTO `json:"connectionResults,omitempty"`
// The process groups that matched the search.
ProcessGroupResults []ComponentSearchResultDTO `json:"processGroupResults,omitempty"`
// The input ports that matched the search.
InputPortResults []ComponentSearchResultDTO `json:"inputPortResults,omitempty"`
// The output ports that matched the search.
OutputPortResults []ComponentSearchResultDTO `json:"outputPortResults,omitempty"`
// The remote process groups that matched the search.
RemoteProcessGroupResults []ComponentSearchResultDTO `json:"remoteProcessGroupResults,omitempty"`
// The funnels that matched the search.
FunnelResults []ComponentSearchResultDTO `json:"funnelResults,omitempty"`
// The labels that matched the search.
LabelResults []ComponentSearchResultDTO `json:"labelResults,omitempty"`
// The controller service nodes that matched the search
ControllerServiceNodeResults []ComponentSearchResultDTO `json:"controllerServiceNodeResults,omitempty"`
// The parameter contexts that matched the search.
ParameterContextResults []ComponentSearchResultDTO `json:"parameterContextResults,omitempty"`
// The parameter provider nodes that matched the search
ParameterProviderNodeResults []ComponentSearchResultDTO `json:"parameterProviderNodeResults,omitempty"`
// The parameters that matched the search.
ParameterResults []ComponentSearchResultDTO `json:"parameterResults,omitempty"`
}
// NewSearchResultsDTO instantiates a new SearchResultsDTO 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 NewSearchResultsDTO() *SearchResultsDTO {
this := SearchResultsDTO{}
return &this
}
// NewSearchResultsDTOWithDefaults instantiates a new SearchResultsDTO 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 NewSearchResultsDTOWithDefaults() *SearchResultsDTO {
this := SearchResultsDTO{}
return &this
}
// GetProcessorResults returns the ProcessorResults field value if set, zero value otherwise.
func (o *SearchResultsDTO) GetProcessorResults() []ComponentSearchResultDTO {
if o == nil || IsNil(o.ProcessorResults) {
var ret []ComponentSearchResultDTO
return ret
}
return o.ProcessorResults
}
// GetProcessorResultsOk returns a tuple with the ProcessorResults field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchResultsDTO) GetProcessorResultsOk() ([]ComponentSearchResultDTO, bool) {
if o == nil || IsNil(o.ProcessorResults) {
return nil, false
}
return o.ProcessorResults, true
}
// HasProcessorResults returns a boolean if a field has been set.
func (o *SearchResultsDTO) HasProcessorResults() bool {
if o != nil && !IsNil(o.ProcessorResults) {
return true
}
return false
}
// SetProcessorResults gets a reference to the given []ComponentSearchResultDTO and assigns it to the ProcessorResults field.
func (o *SearchResultsDTO) SetProcessorResults(v []ComponentSearchResultDTO) {
o.ProcessorResults = v
}
// GetConnectionResults returns the ConnectionResults field value if set, zero value otherwise.
func (o *SearchResultsDTO) GetConnectionResults() []ComponentSearchResultDTO {
if o == nil || IsNil(o.ConnectionResults) {
var ret []ComponentSearchResultDTO
return ret
}
return o.ConnectionResults
}
// GetConnectionResultsOk returns a tuple with the ConnectionResults field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchResultsDTO) GetConnectionResultsOk() ([]ComponentSearchResultDTO, bool) {
if o == nil || IsNil(o.ConnectionResults) {
return nil, false
}
return o.ConnectionResults, true
}
// HasConnectionResults returns a boolean if a field has been set.
func (o *SearchResultsDTO) HasConnectionResults() bool {
if o != nil && !IsNil(o.ConnectionResults) {
return true
}
return false
}
// SetConnectionResults gets a reference to the given []ComponentSearchResultDTO and assigns it to the ConnectionResults field.
func (o *SearchResultsDTO) SetConnectionResults(v []ComponentSearchResultDTO) {
o.ConnectionResults = v
}
// GetProcessGroupResults returns the ProcessGroupResults field value if set, zero value otherwise.
func (o *SearchResultsDTO) GetProcessGroupResults() []ComponentSearchResultDTO {
if o == nil || IsNil(o.ProcessGroupResults) {
var ret []ComponentSearchResultDTO
return ret
}
return o.ProcessGroupResults
}
// GetProcessGroupResultsOk returns a tuple with the ProcessGroupResults field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchResultsDTO) GetProcessGroupResultsOk() ([]ComponentSearchResultDTO, bool) {
if o == nil || IsNil(o.ProcessGroupResults) {
return nil, false
}
return o.ProcessGroupResults, true
}
// HasProcessGroupResults returns a boolean if a field has been set.
func (o *SearchResultsDTO) HasProcessGroupResults() bool {
if o != nil && !IsNil(o.ProcessGroupResults) {
return true
}
return false
}
// SetProcessGroupResults gets a reference to the given []ComponentSearchResultDTO and assigns it to the ProcessGroupResults field.
func (o *SearchResultsDTO) SetProcessGroupResults(v []ComponentSearchResultDTO) {
o.ProcessGroupResults = v
}
// GetInputPortResults returns the InputPortResults field value if set, zero value otherwise.
func (o *SearchResultsDTO) GetInputPortResults() []ComponentSearchResultDTO {
if o == nil || IsNil(o.InputPortResults) {
var ret []ComponentSearchResultDTO
return ret
}
return o.InputPortResults
}
// GetInputPortResultsOk returns a tuple with the InputPortResults field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchResultsDTO) GetInputPortResultsOk() ([]ComponentSearchResultDTO, bool) {
if o == nil || IsNil(o.InputPortResults) {
return nil, false
}
return o.InputPortResults, true
}
// HasInputPortResults returns a boolean if a field has been set.
func (o *SearchResultsDTO) HasInputPortResults() bool {
if o != nil && !IsNil(o.InputPortResults) {
return true
}
return false
}
// SetInputPortResults gets a reference to the given []ComponentSearchResultDTO and assigns it to the InputPortResults field.
func (o *SearchResultsDTO) SetInputPortResults(v []ComponentSearchResultDTO) {
o.InputPortResults = v
}
// GetOutputPortResults returns the OutputPortResults field value if set, zero value otherwise.
func (o *SearchResultsDTO) GetOutputPortResults() []ComponentSearchResultDTO {
if o == nil || IsNil(o.OutputPortResults) {
var ret []ComponentSearchResultDTO
return ret
}
return o.OutputPortResults
}
// GetOutputPortResultsOk returns a tuple with the OutputPortResults field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchResultsDTO) GetOutputPortResultsOk() ([]ComponentSearchResultDTO, bool) {
if o == nil || IsNil(o.OutputPortResults) {
return nil, false
}
return o.OutputPortResults, true
}
// HasOutputPortResults returns a boolean if a field has been set.
func (o *SearchResultsDTO) HasOutputPortResults() bool {
if o != nil && !IsNil(o.OutputPortResults) {
return true
}
return false
}
// SetOutputPortResults gets a reference to the given []ComponentSearchResultDTO and assigns it to the OutputPortResults field.
func (o *SearchResultsDTO) SetOutputPortResults(v []ComponentSearchResultDTO) {
o.OutputPortResults = v
}
// GetRemoteProcessGroupResults returns the RemoteProcessGroupResults field value if set, zero value otherwise.
func (o *SearchResultsDTO) GetRemoteProcessGroupResults() []ComponentSearchResultDTO {
if o == nil || IsNil(o.RemoteProcessGroupResults) {
var ret []ComponentSearchResultDTO
return ret
}
return o.RemoteProcessGroupResults
}
// GetRemoteProcessGroupResultsOk returns a tuple with the RemoteProcessGroupResults field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchResultsDTO) GetRemoteProcessGroupResultsOk() ([]ComponentSearchResultDTO, bool) {
if o == nil || IsNil(o.RemoteProcessGroupResults) {
return nil, false
}
return o.RemoteProcessGroupResults, true
}
// HasRemoteProcessGroupResults returns a boolean if a field has been set.
func (o *SearchResultsDTO) HasRemoteProcessGroupResults() bool {
if o != nil && !IsNil(o.RemoteProcessGroupResults) {
return true
}
return false
}
// SetRemoteProcessGroupResults gets a reference to the given []ComponentSearchResultDTO and assigns it to the RemoteProcessGroupResults field.
func (o *SearchResultsDTO) SetRemoteProcessGroupResults(v []ComponentSearchResultDTO) {
o.RemoteProcessGroupResults = v
}
// GetFunnelResults returns the FunnelResults field value if set, zero value otherwise.
func (o *SearchResultsDTO) GetFunnelResults() []ComponentSearchResultDTO {
if o == nil || IsNil(o.FunnelResults) {
var ret []ComponentSearchResultDTO
return ret
}
return o.FunnelResults
}
// GetFunnelResultsOk returns a tuple with the FunnelResults field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchResultsDTO) GetFunnelResultsOk() ([]ComponentSearchResultDTO, bool) {
if o == nil || IsNil(o.FunnelResults) {
return nil, false
}
return o.FunnelResults, true
}
// HasFunnelResults returns a boolean if a field has been set.
func (o *SearchResultsDTO) HasFunnelResults() bool {
if o != nil && !IsNil(o.FunnelResults) {
return true
}
return false
}
// SetFunnelResults gets a reference to the given []ComponentSearchResultDTO and assigns it to the FunnelResults field.
func (o *SearchResultsDTO) SetFunnelResults(v []ComponentSearchResultDTO) {
o.FunnelResults = v
}
// GetLabelResults returns the LabelResults field value if set, zero value otherwise.
func (o *SearchResultsDTO) GetLabelResults() []ComponentSearchResultDTO {
if o == nil || IsNil(o.LabelResults) {
var ret []ComponentSearchResultDTO
return ret
}
return o.LabelResults
}
// GetLabelResultsOk returns a tuple with the LabelResults field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchResultsDTO) GetLabelResultsOk() ([]ComponentSearchResultDTO, bool) {
if o == nil || IsNil(o.LabelResults) {
return nil, false
}
return o.LabelResults, true
}
// HasLabelResults returns a boolean if a field has been set.
func (o *SearchResultsDTO) HasLabelResults() bool {
if o != nil && !IsNil(o.LabelResults) {
return true
}
return false
}
// SetLabelResults gets a reference to the given []ComponentSearchResultDTO and assigns it to the LabelResults field.
func (o *SearchResultsDTO) SetLabelResults(v []ComponentSearchResultDTO) {
o.LabelResults = v
}
// GetControllerServiceNodeResults returns the ControllerServiceNodeResults field value if set, zero value otherwise.
func (o *SearchResultsDTO) GetControllerServiceNodeResults() []ComponentSearchResultDTO {
if o == nil || IsNil(o.ControllerServiceNodeResults) {
var ret []ComponentSearchResultDTO
return ret
}
return o.ControllerServiceNodeResults
}
// GetControllerServiceNodeResultsOk returns a tuple with the ControllerServiceNodeResults field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchResultsDTO) GetControllerServiceNodeResultsOk() ([]ComponentSearchResultDTO, bool) {
if o == nil || IsNil(o.ControllerServiceNodeResults) {
return nil, false
}
return o.ControllerServiceNodeResults, true
}
// HasControllerServiceNodeResults returns a boolean if a field has been set.
func (o *SearchResultsDTO) HasControllerServiceNodeResults() bool {
if o != nil && !IsNil(o.ControllerServiceNodeResults) {
return true
}
return false
}
// SetControllerServiceNodeResults gets a reference to the given []ComponentSearchResultDTO and assigns it to the ControllerServiceNodeResults field.
func (o *SearchResultsDTO) SetControllerServiceNodeResults(v []ComponentSearchResultDTO) {
o.ControllerServiceNodeResults = v
}
// GetParameterContextResults returns the ParameterContextResults field value if set, zero value otherwise.
func (o *SearchResultsDTO) GetParameterContextResults() []ComponentSearchResultDTO {
if o == nil || IsNil(o.ParameterContextResults) {
var ret []ComponentSearchResultDTO
return ret
}
return o.ParameterContextResults
}
// GetParameterContextResultsOk returns a tuple with the ParameterContextResults field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchResultsDTO) GetParameterContextResultsOk() ([]ComponentSearchResultDTO, bool) {
if o == nil || IsNil(o.ParameterContextResults) {
return nil, false
}
return o.ParameterContextResults, true
}
// HasParameterContextResults returns a boolean if a field has been set.
func (o *SearchResultsDTO) HasParameterContextResults() bool {
if o != nil && !IsNil(o.ParameterContextResults) {
return true
}
return false
}
// SetParameterContextResults gets a reference to the given []ComponentSearchResultDTO and assigns it to the ParameterContextResults field.
func (o *SearchResultsDTO) SetParameterContextResults(v []ComponentSearchResultDTO) {
o.ParameterContextResults = v
}
// GetParameterProviderNodeResults returns the ParameterProviderNodeResults field value if set, zero value otherwise.
func (o *SearchResultsDTO) GetParameterProviderNodeResults() []ComponentSearchResultDTO {
if o == nil || IsNil(o.ParameterProviderNodeResults) {
var ret []ComponentSearchResultDTO
return ret
}
return o.ParameterProviderNodeResults
}
// GetParameterProviderNodeResultsOk returns a tuple with the ParameterProviderNodeResults field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchResultsDTO) GetParameterProviderNodeResultsOk() ([]ComponentSearchResultDTO, bool) {
if o == nil || IsNil(o.ParameterProviderNodeResults) {
return nil, false
}
return o.ParameterProviderNodeResults, true
}
// HasParameterProviderNodeResults returns a boolean if a field has been set.
func (o *SearchResultsDTO) HasParameterProviderNodeResults() bool {
if o != nil && !IsNil(o.ParameterProviderNodeResults) {
return true
}
return false
}
// SetParameterProviderNodeResults gets a reference to the given []ComponentSearchResultDTO and assigns it to the ParameterProviderNodeResults field.
func (o *SearchResultsDTO) SetParameterProviderNodeResults(v []ComponentSearchResultDTO) {
o.ParameterProviderNodeResults = v
}
// GetParameterResults returns the ParameterResults field value if set, zero value otherwise.
func (o *SearchResultsDTO) GetParameterResults() []ComponentSearchResultDTO {
if o == nil || IsNil(o.ParameterResults) {
var ret []ComponentSearchResultDTO
return ret
}
return o.ParameterResults
}
// GetParameterResultsOk returns a tuple with the ParameterResults field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchResultsDTO) GetParameterResultsOk() ([]ComponentSearchResultDTO, bool) {
if o == nil || IsNil(o.ParameterResults) {
return nil, false
}
return o.ParameterResults, true
}
// HasParameterResults returns a boolean if a field has been set.
func (o *SearchResultsDTO) HasParameterResults() bool {
if o != nil && !IsNil(o.ParameterResults) {
return true
}
return false
}
// SetParameterResults gets a reference to the given []ComponentSearchResultDTO and assigns it to the ParameterResults field.
func (o *SearchResultsDTO) SetParameterResults(v []ComponentSearchResultDTO) {
o.ParameterResults = v
}
func (o SearchResultsDTO) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o SearchResultsDTO) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.ProcessorResults) {
toSerialize["processorResults"] = o.ProcessorResults
}
if !IsNil(o.ConnectionResults) {
toSerialize["connectionResults"] = o.ConnectionResults
}
if !IsNil(o.ProcessGroupResults) {
toSerialize["processGroupResults"] = o.ProcessGroupResults
}
if !IsNil(o.InputPortResults) {
toSerialize["inputPortResults"] = o.InputPortResults
}
if !IsNil(o.OutputPortResults) {
toSerialize["outputPortResults"] = o.OutputPortResults
}
if !IsNil(o.RemoteProcessGroupResults) {
toSerialize["remoteProcessGroupResults"] = o.RemoteProcessGroupResults
}
if !IsNil(o.FunnelResults) {
toSerialize["funnelResults"] = o.FunnelResults
}
if !IsNil(o.LabelResults) {
toSerialize["labelResults"] = o.LabelResults
}
if !IsNil(o.ControllerServiceNodeResults) {
toSerialize["controllerServiceNodeResults"] = o.ControllerServiceNodeResults
}
if !IsNil(o.ParameterContextResults) {
toSerialize["parameterContextResults"] = o.ParameterContextResults
}
if !IsNil(o.ParameterProviderNodeResults) {
toSerialize["parameterProviderNodeResults"] = o.ParameterProviderNodeResults
}
if !IsNil(o.ParameterResults) {
toSerialize["parameterResults"] = o.ParameterResults
}
return toSerialize, nil
}
type NullableSearchResultsDTO struct {
value *SearchResultsDTO
isSet bool
}
func (v NullableSearchResultsDTO) Get() *SearchResultsDTO {
return v.value
}
func (v *NullableSearchResultsDTO) Set(val *SearchResultsDTO) {
v.value = val
v.isSet = true
}
func (v NullableSearchResultsDTO) IsSet() bool {
return v.isSet
}
func (v *NullableSearchResultsDTO) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSearchResultsDTO(val *SearchResultsDTO) *NullableSearchResultsDTO {
return &NullableSearchResultsDTO{value: val, isSet: true}
}
func (v NullableSearchResultsDTO) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSearchResultsDTO) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}