-
Notifications
You must be signed in to change notification settings - Fork 276
/
Copy pathuser_interface_config_features.go
305 lines (280 loc) · 9.29 KB
/
user_interface_config_features.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
package models
import (
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
)
type UserInterfaceConfigFeatures struct {
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]any
// The breadcrumbs property
breadcrumbs *bool
// The deleteArtifact property
deleteArtifact *bool
// The deleteGroup property
deleteGroup *bool
// The deleteVersion property
deleteVersion *bool
// The draftMutability property
draftMutability *bool
// The readOnly property
readOnly *bool
// The roleManagement property
roleManagement *bool
// The settings property
settings *bool
}
// NewUserInterfaceConfigFeatures instantiates a new UserInterfaceConfigFeatures and sets the default values.
func NewUserInterfaceConfigFeatures() *UserInterfaceConfigFeatures {
m := &UserInterfaceConfigFeatures{}
m.SetAdditionalData(make(map[string]any))
return m
}
// CreateUserInterfaceConfigFeaturesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
// returns a Parsable when successful
func CreateUserInterfaceConfigFeaturesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewUserInterfaceConfigFeatures(), nil
}
// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
// returns a map[string]any when successful
func (m *UserInterfaceConfigFeatures) GetAdditionalData() map[string]any {
return m.additionalData
}
// GetBreadcrumbs gets the breadcrumbs property value. The breadcrumbs property
// returns a *bool when successful
func (m *UserInterfaceConfigFeatures) GetBreadcrumbs() *bool {
return m.breadcrumbs
}
// GetDeleteArtifact gets the deleteArtifact property value. The deleteArtifact property
// returns a *bool when successful
func (m *UserInterfaceConfigFeatures) GetDeleteArtifact() *bool {
return m.deleteArtifact
}
// GetDeleteGroup gets the deleteGroup property value. The deleteGroup property
// returns a *bool when successful
func (m *UserInterfaceConfigFeatures) GetDeleteGroup() *bool {
return m.deleteGroup
}
// GetDeleteVersion gets the deleteVersion property value. The deleteVersion property
// returns a *bool when successful
func (m *UserInterfaceConfigFeatures) GetDeleteVersion() *bool {
return m.deleteVersion
}
// GetDraftMutability gets the draftMutability property value. The draftMutability property
// returns a *bool when successful
func (m *UserInterfaceConfigFeatures) GetDraftMutability() *bool {
return m.draftMutability
}
// GetFieldDeserializers the deserialization information for the current model
// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (m *UserInterfaceConfigFeatures) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error)
res["breadcrumbs"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetBoolValue()
if err != nil {
return err
}
if val != nil {
m.SetBreadcrumbs(val)
}
return nil
}
res["deleteArtifact"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetBoolValue()
if err != nil {
return err
}
if val != nil {
m.SetDeleteArtifact(val)
}
return nil
}
res["deleteGroup"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetBoolValue()
if err != nil {
return err
}
if val != nil {
m.SetDeleteGroup(val)
}
return nil
}
res["deleteVersion"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetBoolValue()
if err != nil {
return err
}
if val != nil {
m.SetDeleteVersion(val)
}
return nil
}
res["draftMutability"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetBoolValue()
if err != nil {
return err
}
if val != nil {
m.SetDraftMutability(val)
}
return nil
}
res["readOnly"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetBoolValue()
if err != nil {
return err
}
if val != nil {
m.SetReadOnly(val)
}
return nil
}
res["roleManagement"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetBoolValue()
if err != nil {
return err
}
if val != nil {
m.SetRoleManagement(val)
}
return nil
}
res["settings"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetBoolValue()
if err != nil {
return err
}
if val != nil {
m.SetSettings(val)
}
return nil
}
return res
}
// GetReadOnly gets the readOnly property value. The readOnly property
// returns a *bool when successful
func (m *UserInterfaceConfigFeatures) GetReadOnly() *bool {
return m.readOnly
}
// GetRoleManagement gets the roleManagement property value. The roleManagement property
// returns a *bool when successful
func (m *UserInterfaceConfigFeatures) GetRoleManagement() *bool {
return m.roleManagement
}
// GetSettings gets the settings property value. The settings property
// returns a *bool when successful
func (m *UserInterfaceConfigFeatures) GetSettings() *bool {
return m.settings
}
// Serialize serializes information the current object
func (m *UserInterfaceConfigFeatures) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error {
{
err := writer.WriteBoolValue("breadcrumbs", m.GetBreadcrumbs())
if err != nil {
return err
}
}
{
err := writer.WriteBoolValue("deleteArtifact", m.GetDeleteArtifact())
if err != nil {
return err
}
}
{
err := writer.WriteBoolValue("deleteGroup", m.GetDeleteGroup())
if err != nil {
return err
}
}
{
err := writer.WriteBoolValue("deleteVersion", m.GetDeleteVersion())
if err != nil {
return err
}
}
{
err := writer.WriteBoolValue("draftMutability", m.GetDraftMutability())
if err != nil {
return err
}
}
{
err := writer.WriteBoolValue("readOnly", m.GetReadOnly())
if err != nil {
return err
}
}
{
err := writer.WriteBoolValue("roleManagement", m.GetRoleManagement())
if err != nil {
return err
}
}
{
err := writer.WriteBoolValue("settings", m.GetSettings())
if err != nil {
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *UserInterfaceConfigFeatures) SetAdditionalData(value map[string]any) {
m.additionalData = value
}
// SetBreadcrumbs sets the breadcrumbs property value. The breadcrumbs property
func (m *UserInterfaceConfigFeatures) SetBreadcrumbs(value *bool) {
m.breadcrumbs = value
}
// SetDeleteArtifact sets the deleteArtifact property value. The deleteArtifact property
func (m *UserInterfaceConfigFeatures) SetDeleteArtifact(value *bool) {
m.deleteArtifact = value
}
// SetDeleteGroup sets the deleteGroup property value. The deleteGroup property
func (m *UserInterfaceConfigFeatures) SetDeleteGroup(value *bool) {
m.deleteGroup = value
}
// SetDeleteVersion sets the deleteVersion property value. The deleteVersion property
func (m *UserInterfaceConfigFeatures) SetDeleteVersion(value *bool) {
m.deleteVersion = value
}
// SetDraftMutability sets the draftMutability property value. The draftMutability property
func (m *UserInterfaceConfigFeatures) SetDraftMutability(value *bool) {
m.draftMutability = value
}
// SetReadOnly sets the readOnly property value. The readOnly property
func (m *UserInterfaceConfigFeatures) SetReadOnly(value *bool) {
m.readOnly = value
}
// SetRoleManagement sets the roleManagement property value. The roleManagement property
func (m *UserInterfaceConfigFeatures) SetRoleManagement(value *bool) {
m.roleManagement = value
}
// SetSettings sets the settings property value. The settings property
func (m *UserInterfaceConfigFeatures) SetSettings(value *bool) {
m.settings = value
}
type UserInterfaceConfigFeaturesable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBreadcrumbs() *bool
GetDeleteArtifact() *bool
GetDeleteGroup() *bool
GetDeleteVersion() *bool
GetDraftMutability() *bool
GetReadOnly() *bool
GetRoleManagement() *bool
GetSettings() *bool
SetBreadcrumbs(value *bool)
SetDeleteArtifact(value *bool)
SetDeleteGroup(value *bool)
SetDeleteVersion(value *bool)
SetDraftMutability(value *bool)
SetReadOnly(value *bool)
SetRoleManagement(value *bool)
SetSettings(value *bool)
}