/
model_update_integration_request.go
524 lines (443 loc) · 15.7 KB
/
model_update_integration_request.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
/*
REST API
Rockset's REST API allows for creating and managing all resources in Rockset. Each supported endpoint is documented below. All requests must be authorized with a Rockset API key, which can be created in the [Rockset console](https://console.rockset.com). The API key must be provided as `ApiKey <api_key>` in the `Authorization` request header. For example: ``` Authorization: ApiKey aB35kDjg93J5nsf4GjwMeErAVd832F7ad4vhsW1S02kfZiab42sTsfW5Sxt25asT ``` All endpoints are only accessible via https. Build something awesome!
API version: v1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// checks if the UpdateIntegrationRequest type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &UpdateIntegrationRequest{}
// UpdateIntegrationRequest struct for UpdateIntegrationRequest
type UpdateIntegrationRequest struct {
AzureBlobStorage *AzureBlobStorageIntegration `json:"azure_blob_storage,omitempty"`
AzureEventHubs *AzureEventHubsIntegration `json:"azure_event_hubs,omitempty"`
AzureServiceBus *AzureServiceBusIntegration `json:"azure_service_bus,omitempty"`
// Longer explanation for the integration.
Description *string `json:"description,omitempty"`
Dynamodb *DynamodbIntegration `json:"dynamodb,omitempty"`
Gcs *GcsIntegration `json:"gcs,omitempty"`
// is write access enabled for this integration.
IsWriteEnabled *bool `json:"is_write_enabled,omitempty"`
Kafka *KafkaIntegration `json:"kafka,omitempty"`
Kinesis *KinesisIntegration `json:"kinesis,omitempty"`
Mongodb *MongoDbIntegration `json:"mongodb,omitempty"`
S3 *S3Integration `json:"s3,omitempty"`
Snowflake *SnowflakeIntegration `json:"snowflake,omitempty"`
}
// NewUpdateIntegrationRequest instantiates a new UpdateIntegrationRequest 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 NewUpdateIntegrationRequest() *UpdateIntegrationRequest {
this := UpdateIntegrationRequest{}
return &this
}
// NewUpdateIntegrationRequestWithDefaults instantiates a new UpdateIntegrationRequest 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 NewUpdateIntegrationRequestWithDefaults() *UpdateIntegrationRequest {
this := UpdateIntegrationRequest{}
return &this
}
// GetAzureBlobStorage returns the AzureBlobStorage field value if set, zero value otherwise.
func (o *UpdateIntegrationRequest) GetAzureBlobStorage() AzureBlobStorageIntegration {
if o == nil || IsNil(o.AzureBlobStorage) {
var ret AzureBlobStorageIntegration
return ret
}
return *o.AzureBlobStorage
}
// GetAzureBlobStorageOk returns a tuple with the AzureBlobStorage field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateIntegrationRequest) GetAzureBlobStorageOk() (*AzureBlobStorageIntegration, bool) {
if o == nil || IsNil(o.AzureBlobStorage) {
return nil, false
}
return o.AzureBlobStorage, true
}
// HasAzureBlobStorage returns a boolean if a field has been set.
func (o *UpdateIntegrationRequest) HasAzureBlobStorage() bool {
if o != nil && !IsNil(o.AzureBlobStorage) {
return true
}
return false
}
// SetAzureBlobStorage gets a reference to the given AzureBlobStorageIntegration and assigns it to the AzureBlobStorage field.
func (o *UpdateIntegrationRequest) SetAzureBlobStorage(v AzureBlobStorageIntegration) {
o.AzureBlobStorage = &v
}
// GetAzureEventHubs returns the AzureEventHubs field value if set, zero value otherwise.
func (o *UpdateIntegrationRequest) GetAzureEventHubs() AzureEventHubsIntegration {
if o == nil || IsNil(o.AzureEventHubs) {
var ret AzureEventHubsIntegration
return ret
}
return *o.AzureEventHubs
}
// GetAzureEventHubsOk returns a tuple with the AzureEventHubs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateIntegrationRequest) GetAzureEventHubsOk() (*AzureEventHubsIntegration, bool) {
if o == nil || IsNil(o.AzureEventHubs) {
return nil, false
}
return o.AzureEventHubs, true
}
// HasAzureEventHubs returns a boolean if a field has been set.
func (o *UpdateIntegrationRequest) HasAzureEventHubs() bool {
if o != nil && !IsNil(o.AzureEventHubs) {
return true
}
return false
}
// SetAzureEventHubs gets a reference to the given AzureEventHubsIntegration and assigns it to the AzureEventHubs field.
func (o *UpdateIntegrationRequest) SetAzureEventHubs(v AzureEventHubsIntegration) {
o.AzureEventHubs = &v
}
// GetAzureServiceBus returns the AzureServiceBus field value if set, zero value otherwise.
func (o *UpdateIntegrationRequest) GetAzureServiceBus() AzureServiceBusIntegration {
if o == nil || IsNil(o.AzureServiceBus) {
var ret AzureServiceBusIntegration
return ret
}
return *o.AzureServiceBus
}
// GetAzureServiceBusOk returns a tuple with the AzureServiceBus field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateIntegrationRequest) GetAzureServiceBusOk() (*AzureServiceBusIntegration, bool) {
if o == nil || IsNil(o.AzureServiceBus) {
return nil, false
}
return o.AzureServiceBus, true
}
// HasAzureServiceBus returns a boolean if a field has been set.
func (o *UpdateIntegrationRequest) HasAzureServiceBus() bool {
if o != nil && !IsNil(o.AzureServiceBus) {
return true
}
return false
}
// SetAzureServiceBus gets a reference to the given AzureServiceBusIntegration and assigns it to the AzureServiceBus field.
func (o *UpdateIntegrationRequest) SetAzureServiceBus(v AzureServiceBusIntegration) {
o.AzureServiceBus = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *UpdateIntegrationRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
}
return *o.Description
}
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateIntegrationRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
return o.Description, true
}
// HasDescription returns a boolean if a field has been set.
func (o *UpdateIntegrationRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
return false
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *UpdateIntegrationRequest) SetDescription(v string) {
o.Description = &v
}
// GetDynamodb returns the Dynamodb field value if set, zero value otherwise.
func (o *UpdateIntegrationRequest) GetDynamodb() DynamodbIntegration {
if o == nil || IsNil(o.Dynamodb) {
var ret DynamodbIntegration
return ret
}
return *o.Dynamodb
}
// GetDynamodbOk returns a tuple with the Dynamodb field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateIntegrationRequest) GetDynamodbOk() (*DynamodbIntegration, bool) {
if o == nil || IsNil(o.Dynamodb) {
return nil, false
}
return o.Dynamodb, true
}
// HasDynamodb returns a boolean if a field has been set.
func (o *UpdateIntegrationRequest) HasDynamodb() bool {
if o != nil && !IsNil(o.Dynamodb) {
return true
}
return false
}
// SetDynamodb gets a reference to the given DynamodbIntegration and assigns it to the Dynamodb field.
func (o *UpdateIntegrationRequest) SetDynamodb(v DynamodbIntegration) {
o.Dynamodb = &v
}
// GetGcs returns the Gcs field value if set, zero value otherwise.
func (o *UpdateIntegrationRequest) GetGcs() GcsIntegration {
if o == nil || IsNil(o.Gcs) {
var ret GcsIntegration
return ret
}
return *o.Gcs
}
// GetGcsOk returns a tuple with the Gcs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateIntegrationRequest) GetGcsOk() (*GcsIntegration, bool) {
if o == nil || IsNil(o.Gcs) {
return nil, false
}
return o.Gcs, true
}
// HasGcs returns a boolean if a field has been set.
func (o *UpdateIntegrationRequest) HasGcs() bool {
if o != nil && !IsNil(o.Gcs) {
return true
}
return false
}
// SetGcs gets a reference to the given GcsIntegration and assigns it to the Gcs field.
func (o *UpdateIntegrationRequest) SetGcs(v GcsIntegration) {
o.Gcs = &v
}
// GetIsWriteEnabled returns the IsWriteEnabled field value if set, zero value otherwise.
func (o *UpdateIntegrationRequest) GetIsWriteEnabled() bool {
if o == nil || IsNil(o.IsWriteEnabled) {
var ret bool
return ret
}
return *o.IsWriteEnabled
}
// GetIsWriteEnabledOk returns a tuple with the IsWriteEnabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateIntegrationRequest) GetIsWriteEnabledOk() (*bool, bool) {
if o == nil || IsNil(o.IsWriteEnabled) {
return nil, false
}
return o.IsWriteEnabled, true
}
// HasIsWriteEnabled returns a boolean if a field has been set.
func (o *UpdateIntegrationRequest) HasIsWriteEnabled() bool {
if o != nil && !IsNil(o.IsWriteEnabled) {
return true
}
return false
}
// SetIsWriteEnabled gets a reference to the given bool and assigns it to the IsWriteEnabled field.
func (o *UpdateIntegrationRequest) SetIsWriteEnabled(v bool) {
o.IsWriteEnabled = &v
}
// GetKafka returns the Kafka field value if set, zero value otherwise.
func (o *UpdateIntegrationRequest) GetKafka() KafkaIntegration {
if o == nil || IsNil(o.Kafka) {
var ret KafkaIntegration
return ret
}
return *o.Kafka
}
// GetKafkaOk returns a tuple with the Kafka field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateIntegrationRequest) GetKafkaOk() (*KafkaIntegration, bool) {
if o == nil || IsNil(o.Kafka) {
return nil, false
}
return o.Kafka, true
}
// HasKafka returns a boolean if a field has been set.
func (o *UpdateIntegrationRequest) HasKafka() bool {
if o != nil && !IsNil(o.Kafka) {
return true
}
return false
}
// SetKafka gets a reference to the given KafkaIntegration and assigns it to the Kafka field.
func (o *UpdateIntegrationRequest) SetKafka(v KafkaIntegration) {
o.Kafka = &v
}
// GetKinesis returns the Kinesis field value if set, zero value otherwise.
func (o *UpdateIntegrationRequest) GetKinesis() KinesisIntegration {
if o == nil || IsNil(o.Kinesis) {
var ret KinesisIntegration
return ret
}
return *o.Kinesis
}
// GetKinesisOk returns a tuple with the Kinesis field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateIntegrationRequest) GetKinesisOk() (*KinesisIntegration, bool) {
if o == nil || IsNil(o.Kinesis) {
return nil, false
}
return o.Kinesis, true
}
// HasKinesis returns a boolean if a field has been set.
func (o *UpdateIntegrationRequest) HasKinesis() bool {
if o != nil && !IsNil(o.Kinesis) {
return true
}
return false
}
// SetKinesis gets a reference to the given KinesisIntegration and assigns it to the Kinesis field.
func (o *UpdateIntegrationRequest) SetKinesis(v KinesisIntegration) {
o.Kinesis = &v
}
// GetMongodb returns the Mongodb field value if set, zero value otherwise.
func (o *UpdateIntegrationRequest) GetMongodb() MongoDbIntegration {
if o == nil || IsNil(o.Mongodb) {
var ret MongoDbIntegration
return ret
}
return *o.Mongodb
}
// GetMongodbOk returns a tuple with the Mongodb field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateIntegrationRequest) GetMongodbOk() (*MongoDbIntegration, bool) {
if o == nil || IsNil(o.Mongodb) {
return nil, false
}
return o.Mongodb, true
}
// HasMongodb returns a boolean if a field has been set.
func (o *UpdateIntegrationRequest) HasMongodb() bool {
if o != nil && !IsNil(o.Mongodb) {
return true
}
return false
}
// SetMongodb gets a reference to the given MongoDbIntegration and assigns it to the Mongodb field.
func (o *UpdateIntegrationRequest) SetMongodb(v MongoDbIntegration) {
o.Mongodb = &v
}
// GetS3 returns the S3 field value if set, zero value otherwise.
func (o *UpdateIntegrationRequest) GetS3() S3Integration {
if o == nil || IsNil(o.S3) {
var ret S3Integration
return ret
}
return *o.S3
}
// GetS3Ok returns a tuple with the S3 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateIntegrationRequest) GetS3Ok() (*S3Integration, bool) {
if o == nil || IsNil(o.S3) {
return nil, false
}
return o.S3, true
}
// HasS3 returns a boolean if a field has been set.
func (o *UpdateIntegrationRequest) HasS3() bool {
if o != nil && !IsNil(o.S3) {
return true
}
return false
}
// SetS3 gets a reference to the given S3Integration and assigns it to the S3 field.
func (o *UpdateIntegrationRequest) SetS3(v S3Integration) {
o.S3 = &v
}
// GetSnowflake returns the Snowflake field value if set, zero value otherwise.
func (o *UpdateIntegrationRequest) GetSnowflake() SnowflakeIntegration {
if o == nil || IsNil(o.Snowflake) {
var ret SnowflakeIntegration
return ret
}
return *o.Snowflake
}
// GetSnowflakeOk returns a tuple with the Snowflake field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateIntegrationRequest) GetSnowflakeOk() (*SnowflakeIntegration, bool) {
if o == nil || IsNil(o.Snowflake) {
return nil, false
}
return o.Snowflake, true
}
// HasSnowflake returns a boolean if a field has been set.
func (o *UpdateIntegrationRequest) HasSnowflake() bool {
if o != nil && !IsNil(o.Snowflake) {
return true
}
return false
}
// SetSnowflake gets a reference to the given SnowflakeIntegration and assigns it to the Snowflake field.
func (o *UpdateIntegrationRequest) SetSnowflake(v SnowflakeIntegration) {
o.Snowflake = &v
}
func (o UpdateIntegrationRequest) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o UpdateIntegrationRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.AzureBlobStorage) {
toSerialize["azure_blob_storage"] = o.AzureBlobStorage
}
if !IsNil(o.AzureEventHubs) {
toSerialize["azure_event_hubs"] = o.AzureEventHubs
}
if !IsNil(o.AzureServiceBus) {
toSerialize["azure_service_bus"] = o.AzureServiceBus
}
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
if !IsNil(o.Dynamodb) {
toSerialize["dynamodb"] = o.Dynamodb
}
if !IsNil(o.Gcs) {
toSerialize["gcs"] = o.Gcs
}
if !IsNil(o.IsWriteEnabled) {
toSerialize["is_write_enabled"] = o.IsWriteEnabled
}
if !IsNil(o.Kafka) {
toSerialize["kafka"] = o.Kafka
}
if !IsNil(o.Kinesis) {
toSerialize["kinesis"] = o.Kinesis
}
if !IsNil(o.Mongodb) {
toSerialize["mongodb"] = o.Mongodb
}
if !IsNil(o.S3) {
toSerialize["s3"] = o.S3
}
if !IsNil(o.Snowflake) {
toSerialize["snowflake"] = o.Snowflake
}
return toSerialize, nil
}
type NullableUpdateIntegrationRequest struct {
value *UpdateIntegrationRequest
isSet bool
}
func (v NullableUpdateIntegrationRequest) Get() *UpdateIntegrationRequest {
return v.value
}
func (v *NullableUpdateIntegrationRequest) Set(val *UpdateIntegrationRequest) {
v.value = val
v.isSet = true
}
func (v NullableUpdateIntegrationRequest) IsSet() bool {
return v.isSet
}
func (v *NullableUpdateIntegrationRequest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableUpdateIntegrationRequest(val *UpdateIntegrationRequest) *NullableUpdateIntegrationRequest {
return &NullableUpdateIntegrationRequest{value: val, isSet: true}
}
func (v NullableUpdateIntegrationRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableUpdateIntegrationRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}