/
model_component_manifest.go
239 lines (198 loc) · 7.26 KB
/
model_component_manifest.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
/*
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 ComponentManifest type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ComponentManifest{}
// ComponentManifest struct for ComponentManifest
type ComponentManifest struct {
// Public interfaces defined in this bundle
Apis []DefinedType `json:"apis,omitempty"`
// Controller Services provided in this bundle
ControllerServices []ControllerServiceDefinition `json:"controllerServices,omitempty"`
// Processors provided in this bundle
Processors []ProcessorDefinition `json:"processors,omitempty"`
// Reporting Tasks provided in this bundle
ReportingTasks []ReportingTaskDefinition `json:"reportingTasks,omitempty"`
}
// NewComponentManifest instantiates a new ComponentManifest 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 NewComponentManifest() *ComponentManifest {
this := ComponentManifest{}
return &this
}
// NewComponentManifestWithDefaults instantiates a new ComponentManifest 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 NewComponentManifestWithDefaults() *ComponentManifest {
this := ComponentManifest{}
return &this
}
// GetApis returns the Apis field value if set, zero value otherwise.
func (o *ComponentManifest) GetApis() []DefinedType {
if o == nil || IsNil(o.Apis) {
var ret []DefinedType
return ret
}
return o.Apis
}
// GetApisOk returns a tuple with the Apis field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComponentManifest) GetApisOk() ([]DefinedType, bool) {
if o == nil || IsNil(o.Apis) {
return nil, false
}
return o.Apis, true
}
// HasApis returns a boolean if a field has been set.
func (o *ComponentManifest) HasApis() bool {
if o != nil && !IsNil(o.Apis) {
return true
}
return false
}
// SetApis gets a reference to the given []DefinedType and assigns it to the Apis field.
func (o *ComponentManifest) SetApis(v []DefinedType) {
o.Apis = v
}
// GetControllerServices returns the ControllerServices field value if set, zero value otherwise.
func (o *ComponentManifest) GetControllerServices() []ControllerServiceDefinition {
if o == nil || IsNil(o.ControllerServices) {
var ret []ControllerServiceDefinition
return ret
}
return o.ControllerServices
}
// GetControllerServicesOk returns a tuple with the ControllerServices field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComponentManifest) GetControllerServicesOk() ([]ControllerServiceDefinition, bool) {
if o == nil || IsNil(o.ControllerServices) {
return nil, false
}
return o.ControllerServices, true
}
// HasControllerServices returns a boolean if a field has been set.
func (o *ComponentManifest) HasControllerServices() bool {
if o != nil && !IsNil(o.ControllerServices) {
return true
}
return false
}
// SetControllerServices gets a reference to the given []ControllerServiceDefinition and assigns it to the ControllerServices field.
func (o *ComponentManifest) SetControllerServices(v []ControllerServiceDefinition) {
o.ControllerServices = v
}
// GetProcessors returns the Processors field value if set, zero value otherwise.
func (o *ComponentManifest) GetProcessors() []ProcessorDefinition {
if o == nil || IsNil(o.Processors) {
var ret []ProcessorDefinition
return ret
}
return o.Processors
}
// GetProcessorsOk returns a tuple with the Processors field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComponentManifest) GetProcessorsOk() ([]ProcessorDefinition, bool) {
if o == nil || IsNil(o.Processors) {
return nil, false
}
return o.Processors, true
}
// HasProcessors returns a boolean if a field has been set.
func (o *ComponentManifest) HasProcessors() bool {
if o != nil && !IsNil(o.Processors) {
return true
}
return false
}
// SetProcessors gets a reference to the given []ProcessorDefinition and assigns it to the Processors field.
func (o *ComponentManifest) SetProcessors(v []ProcessorDefinition) {
o.Processors = v
}
// GetReportingTasks returns the ReportingTasks field value if set, zero value otherwise.
func (o *ComponentManifest) GetReportingTasks() []ReportingTaskDefinition {
if o == nil || IsNil(o.ReportingTasks) {
var ret []ReportingTaskDefinition
return ret
}
return o.ReportingTasks
}
// GetReportingTasksOk returns a tuple with the ReportingTasks field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComponentManifest) GetReportingTasksOk() ([]ReportingTaskDefinition, bool) {
if o == nil || IsNil(o.ReportingTasks) {
return nil, false
}
return o.ReportingTasks, true
}
// HasReportingTasks returns a boolean if a field has been set.
func (o *ComponentManifest) HasReportingTasks() bool {
if o != nil && !IsNil(o.ReportingTasks) {
return true
}
return false
}
// SetReportingTasks gets a reference to the given []ReportingTaskDefinition and assigns it to the ReportingTasks field.
func (o *ComponentManifest) SetReportingTasks(v []ReportingTaskDefinition) {
o.ReportingTasks = v
}
func (o ComponentManifest) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ComponentManifest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Apis) {
toSerialize["apis"] = o.Apis
}
if !IsNil(o.ControllerServices) {
toSerialize["controllerServices"] = o.ControllerServices
}
if !IsNil(o.Processors) {
toSerialize["processors"] = o.Processors
}
if !IsNil(o.ReportingTasks) {
toSerialize["reportingTasks"] = o.ReportingTasks
}
return toSerialize, nil
}
type NullableComponentManifest struct {
value *ComponentManifest
isSet bool
}
func (v NullableComponentManifest) Get() *ComponentManifest {
return v.value
}
func (v *NullableComponentManifest) Set(val *ComponentManifest) {
v.value = val
v.isSet = true
}
func (v NullableComponentManifest) IsSet() bool {
return v.isSet
}
func (v *NullableComponentManifest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableComponentManifest(val *ComponentManifest) *NullableComponentManifest {
return &NullableComponentManifest{value: val, isSet: true}
}
func (v NullableComponentManifest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableComponentManifest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}