-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmodel_ssf_stream.go
371 lines (313 loc) · 8.91 KB
/
model_ssf_stream.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
/*
authentik
Making authentication simple.
API version: 2025.2.3
Contact: hello@goauthentik.io
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package api
import (
"encoding/json"
)
// SSFStream SSFStream Serializer
type SSFStream struct {
Pk string `json:"pk"`
Provider int32 `json:"provider"`
ProviderObj SSFProvider `json:"provider_obj"`
DeliveryMethod DeliveryMethodEnum `json:"delivery_method"`
EndpointUrl NullableString `json:"endpoint_url,omitempty"`
EventsRequested []EventsRequestedEnum `json:"events_requested,omitempty"`
Format string `json:"format"`
Aud []string `json:"aud,omitempty"`
Iss string `json:"iss"`
}
// NewSSFStream instantiates a new SSFStream 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 NewSSFStream(pk string, provider int32, providerObj SSFProvider, deliveryMethod DeliveryMethodEnum, format string, iss string) *SSFStream {
this := SSFStream{}
this.Pk = pk
this.Provider = provider
this.ProviderObj = providerObj
this.DeliveryMethod = deliveryMethod
this.Format = format
this.Iss = iss
return &this
}
// NewSSFStreamWithDefaults instantiates a new SSFStream 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 NewSSFStreamWithDefaults() *SSFStream {
this := SSFStream{}
return &this
}
// GetPk returns the Pk field value
func (o *SSFStream) GetPk() string {
if o == nil {
var ret string
return ret
}
return o.Pk
}
// GetPkOk returns a tuple with the Pk field value
// and a boolean to check if the value has been set.
func (o *SSFStream) GetPkOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Pk, true
}
// SetPk sets field value
func (o *SSFStream) SetPk(v string) {
o.Pk = v
}
// GetProvider returns the Provider field value
func (o *SSFStream) GetProvider() int32 {
if o == nil {
var ret int32
return ret
}
return o.Provider
}
// GetProviderOk returns a tuple with the Provider field value
// and a boolean to check if the value has been set.
func (o *SSFStream) GetProviderOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.Provider, true
}
// SetProvider sets field value
func (o *SSFStream) SetProvider(v int32) {
o.Provider = v
}
// GetProviderObj returns the ProviderObj field value
func (o *SSFStream) GetProviderObj() SSFProvider {
if o == nil {
var ret SSFProvider
return ret
}
return o.ProviderObj
}
// GetProviderObjOk returns a tuple with the ProviderObj field value
// and a boolean to check if the value has been set.
func (o *SSFStream) GetProviderObjOk() (*SSFProvider, bool) {
if o == nil {
return nil, false
}
return &o.ProviderObj, true
}
// SetProviderObj sets field value
func (o *SSFStream) SetProviderObj(v SSFProvider) {
o.ProviderObj = v
}
// GetDeliveryMethod returns the DeliveryMethod field value
func (o *SSFStream) GetDeliveryMethod() DeliveryMethodEnum {
if o == nil {
var ret DeliveryMethodEnum
return ret
}
return o.DeliveryMethod
}
// GetDeliveryMethodOk returns a tuple with the DeliveryMethod field value
// and a boolean to check if the value has been set.
func (o *SSFStream) GetDeliveryMethodOk() (*DeliveryMethodEnum, bool) {
if o == nil {
return nil, false
}
return &o.DeliveryMethod, true
}
// SetDeliveryMethod sets field value
func (o *SSFStream) SetDeliveryMethod(v DeliveryMethodEnum) {
o.DeliveryMethod = v
}
// GetEndpointUrl returns the EndpointUrl field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *SSFStream) GetEndpointUrl() string {
if o == nil || o.EndpointUrl.Get() == nil {
var ret string
return ret
}
return *o.EndpointUrl.Get()
}
// GetEndpointUrlOk returns a tuple with the EndpointUrl 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 *SSFStream) GetEndpointUrlOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.EndpointUrl.Get(), o.EndpointUrl.IsSet()
}
// HasEndpointUrl returns a boolean if a field has been set.
func (o *SSFStream) HasEndpointUrl() bool {
if o != nil && o.EndpointUrl.IsSet() {
return true
}
return false
}
// SetEndpointUrl gets a reference to the given NullableString and assigns it to the EndpointUrl field.
func (o *SSFStream) SetEndpointUrl(v string) {
o.EndpointUrl.Set(&v)
}
// SetEndpointUrlNil sets the value for EndpointUrl to be an explicit nil
func (o *SSFStream) SetEndpointUrlNil() {
o.EndpointUrl.Set(nil)
}
// UnsetEndpointUrl ensures that no value is present for EndpointUrl, not even an explicit nil
func (o *SSFStream) UnsetEndpointUrl() {
o.EndpointUrl.Unset()
}
// GetEventsRequested returns the EventsRequested field value if set, zero value otherwise.
func (o *SSFStream) GetEventsRequested() []EventsRequestedEnum {
if o == nil || o.EventsRequested == nil {
var ret []EventsRequestedEnum
return ret
}
return o.EventsRequested
}
// GetEventsRequestedOk returns a tuple with the EventsRequested field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SSFStream) GetEventsRequestedOk() ([]EventsRequestedEnum, bool) {
if o == nil || o.EventsRequested == nil {
return nil, false
}
return o.EventsRequested, true
}
// HasEventsRequested returns a boolean if a field has been set.
func (o *SSFStream) HasEventsRequested() bool {
if o != nil && o.EventsRequested != nil {
return true
}
return false
}
// SetEventsRequested gets a reference to the given []EventsRequestedEnum and assigns it to the EventsRequested field.
func (o *SSFStream) SetEventsRequested(v []EventsRequestedEnum) {
o.EventsRequested = v
}
// GetFormat returns the Format field value
func (o *SSFStream) GetFormat() string {
if o == nil {
var ret string
return ret
}
return o.Format
}
// GetFormatOk returns a tuple with the Format field value
// and a boolean to check if the value has been set.
func (o *SSFStream) GetFormatOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Format, true
}
// SetFormat sets field value
func (o *SSFStream) SetFormat(v string) {
o.Format = v
}
// GetAud returns the Aud field value if set, zero value otherwise.
func (o *SSFStream) GetAud() []string {
if o == nil || o.Aud == nil {
var ret []string
return ret
}
return o.Aud
}
// GetAudOk returns a tuple with the Aud field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SSFStream) GetAudOk() ([]string, bool) {
if o == nil || o.Aud == nil {
return nil, false
}
return o.Aud, true
}
// HasAud returns a boolean if a field has been set.
func (o *SSFStream) HasAud() bool {
if o != nil && o.Aud != nil {
return true
}
return false
}
// SetAud gets a reference to the given []string and assigns it to the Aud field.
func (o *SSFStream) SetAud(v []string) {
o.Aud = v
}
// GetIss returns the Iss field value
func (o *SSFStream) GetIss() string {
if o == nil {
var ret string
return ret
}
return o.Iss
}
// GetIssOk returns a tuple with the Iss field value
// and a boolean to check if the value has been set.
func (o *SSFStream) GetIssOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Iss, true
}
// SetIss sets field value
func (o *SSFStream) SetIss(v string) {
o.Iss = v
}
func (o SSFStream) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["pk"] = o.Pk
}
if true {
toSerialize["provider"] = o.Provider
}
if true {
toSerialize["provider_obj"] = o.ProviderObj
}
if true {
toSerialize["delivery_method"] = o.DeliveryMethod
}
if o.EndpointUrl.IsSet() {
toSerialize["endpoint_url"] = o.EndpointUrl.Get()
}
if o.EventsRequested != nil {
toSerialize["events_requested"] = o.EventsRequested
}
if true {
toSerialize["format"] = o.Format
}
if o.Aud != nil {
toSerialize["aud"] = o.Aud
}
if true {
toSerialize["iss"] = o.Iss
}
return json.Marshal(toSerialize)
}
type NullableSSFStream struct {
value *SSFStream
isSet bool
}
func (v NullableSSFStream) Get() *SSFStream {
return v.value
}
func (v *NullableSSFStream) Set(val *SSFStream) {
v.value = val
v.isSet = true
}
func (v NullableSSFStream) IsSet() bool {
return v.isSet
}
func (v *NullableSSFStream) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSSFStream(val *SSFStream) *NullableSSFStream {
return &NullableSSFStream{value: val, isSet: true}
}
func (v NullableSSFStream) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSSFStream) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}