/
model_data_lake_store_settings.go
645 lines (545 loc) · 20.9 KB
/
model_data_lake_store_settings.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
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
// Code based on the AtlasAPI V2 OpenAPI file
package admin
import (
"encoding/json"
)
// DataLakeStoreSettings Group of settings that define where the data is stored.
type DataLakeStoreSettings struct {
// Human-readable label that identifies the data store. The **databases.[n].collections.[n].dataSources.[n].storeName** field references this values as part of the mapping configuration. To use MongoDB Cloud as a data store, the data lake requires a serverless instance or an `M10` or higher cluster.
Name *string `json:"name,omitempty"`
Provider string `json:"provider"`
// Collection of AWS S3 [storage classes](https://aws.amazon.com/s3/storage-classes/). Atlas Data Lake includes the files in these storage classes in the query results.
AdditionalStorageClasses *[]string `json:"additionalStorageClasses,omitempty"`
// Human-readable label that identifies the AWS S3 bucket. This label must exactly match the name of an S3 bucket that the data lake can access with the configured AWS Identity and Access Management (IAM) credentials.
Bucket *string `json:"bucket,omitempty"`
// The delimiter that separates **databases.[n].collections.[n].dataSources.[n].path** segments in the data store. MongoDB Cloud uses the delimiter to efficiently traverse S3 buckets with a hierarchical directory structure. You can specify any character supported by the S3 object keys as the delimiter. For example, you can specify an underscore (_) or a plus sign (+) or multiple characters, such as double underscores (__) as the delimiter. If omitted, defaults to `/`.
Delimiter *string `json:"delimiter,omitempty"`
// Flag that indicates whether to use S3 tags on the files in the given path as additional partition attributes. If set to `true`, data lake adds the S3 tags as additional partition attributes and adds new top-level BSON elements associating each tag to each document.
IncludeTags *bool `json:"includeTags,omitempty"`
// Prefix that MongoDB Cloud applies when searching for files in the S3 bucket. The data store prepends the value of prefix to the **databases.[n].collections.[n].dataSources.[n].path** to create the full path for files to ingest. If omitted, MongoDB Cloud searches all files from the root of the S3 bucket.
Prefix *string `json:"prefix,omitempty"`
// Flag that indicates whether the bucket is public. If set to `true`, MongoDB Cloud doesn't use the configured AWS Identity and Access Management (IAM) role to access the S3 bucket. If set to `false`, the configured AWS IAM role must include permissions to access the S3 bucket.
Public *bool `json:"public,omitempty"`
// Physical location where MongoDB Cloud deploys your AWS-hosted MongoDB cluster nodes. The region you choose can affect network latency for clients accessing your databases. When MongoDB Cloud deploys a dedicated cluster, it checks if a VPC or VPC connection exists for that provider and region. If not, MongoDB Cloud creates them as part of the deployment. MongoDB Cloud assigns the VPC a CIDR block. To limit a new VPC peering connection to one CIDR block and region, create the connection first. Deploy the cluster after the connection starts. Alternatively: Microsoft Azure Regions.
Region *string `json:"region,omitempty"`
// Human-readable label of the MongoDB Cloud cluster on which the store is based.
ClusterName *string `json:"clusterName,omitempty"`
// Unique 24-hexadecimal digit string that identifies the project.
// Read only field.
ProjectId *string `json:"projectId,omitempty"`
ReadConcern *DataLakeAtlasStoreReadConcern `json:"readConcern,omitempty"`
ReadPreference *DataLakeAtlasStoreReadPreference `json:"readPreference,omitempty"`
// Flag that validates the scheme in the specified URLs. If `true`, allows insecure `HTTP` scheme, doesn't verify the server's certificate chain and hostname, and accepts any certificate with any hostname presented by the server. If `false`, allows secure `HTTPS` scheme only.
AllowInsecure *bool `json:"allowInsecure,omitempty"`
// Default format that Data Lake assumes if it encounters a file without an extension while searching the `storeName`. If omitted, Data Lake attempts to detect the file type by processing a few bytes of the file. The specified format only applies to the URLs specified in the **databases.[n].collections.[n].dataSources** object.
DefaultFormat *string `json:"defaultFormat,omitempty"`
// Comma-separated list of publicly accessible HTTP URLs where data is stored. You can't specify URLs that require authentication.
Urls *[]string `json:"urls,omitempty"`
}
// NewDataLakeStoreSettings instantiates a new DataLakeStoreSettings 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 NewDataLakeStoreSettings(provider string) *DataLakeStoreSettings {
this := DataLakeStoreSettings{}
this.Provider = provider
var includeTags bool = false
this.IncludeTags = &includeTags
var public bool = false
this.Public = &public
var allowInsecure bool = false
this.AllowInsecure = &allowInsecure
return &this
}
// NewDataLakeStoreSettingsWithDefaults instantiates a new DataLakeStoreSettings 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 NewDataLakeStoreSettingsWithDefaults() *DataLakeStoreSettings {
this := DataLakeStoreSettings{}
var includeTags bool = false
this.IncludeTags = &includeTags
var public bool = false
this.Public = &public
var allowInsecure bool = false
this.AllowInsecure = &allowInsecure
return &this
}
// GetName returns the Name field value if set, zero value otherwise
func (o *DataLakeStoreSettings) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
}
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DataLakeStoreSettings) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
return o.Name, true
}
// HasName returns a boolean if a field has been set.
func (o *DataLakeStoreSettings) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
return false
}
// SetName gets a reference to the given string and assigns it to the Name field.
func (o *DataLakeStoreSettings) SetName(v string) {
o.Name = &v
}
// GetProvider returns the Provider field value
func (o *DataLakeStoreSettings) GetProvider() string {
if o == nil {
var ret string
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 *DataLakeStoreSettings) GetProviderOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Provider, true
}
// SetProvider sets field value
func (o *DataLakeStoreSettings) SetProvider(v string) {
o.Provider = v
}
// GetAdditionalStorageClasses returns the AdditionalStorageClasses field value if set, zero value otherwise
func (o *DataLakeStoreSettings) GetAdditionalStorageClasses() []string {
if o == nil || IsNil(o.AdditionalStorageClasses) {
var ret []string
return ret
}
return *o.AdditionalStorageClasses
}
// GetAdditionalStorageClassesOk returns a tuple with the AdditionalStorageClasses field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DataLakeStoreSettings) GetAdditionalStorageClassesOk() (*[]string, bool) {
if o == nil || IsNil(o.AdditionalStorageClasses) {
return nil, false
}
return o.AdditionalStorageClasses, true
}
// HasAdditionalStorageClasses returns a boolean if a field has been set.
func (o *DataLakeStoreSettings) HasAdditionalStorageClasses() bool {
if o != nil && !IsNil(o.AdditionalStorageClasses) {
return true
}
return false
}
// SetAdditionalStorageClasses gets a reference to the given []string and assigns it to the AdditionalStorageClasses field.
func (o *DataLakeStoreSettings) SetAdditionalStorageClasses(v []string) {
o.AdditionalStorageClasses = &v
}
// GetBucket returns the Bucket field value if set, zero value otherwise
func (o *DataLakeStoreSettings) GetBucket() string {
if o == nil || IsNil(o.Bucket) {
var ret string
return ret
}
return *o.Bucket
}
// GetBucketOk returns a tuple with the Bucket field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DataLakeStoreSettings) GetBucketOk() (*string, bool) {
if o == nil || IsNil(o.Bucket) {
return nil, false
}
return o.Bucket, true
}
// HasBucket returns a boolean if a field has been set.
func (o *DataLakeStoreSettings) HasBucket() bool {
if o != nil && !IsNil(o.Bucket) {
return true
}
return false
}
// SetBucket gets a reference to the given string and assigns it to the Bucket field.
func (o *DataLakeStoreSettings) SetBucket(v string) {
o.Bucket = &v
}
// GetDelimiter returns the Delimiter field value if set, zero value otherwise
func (o *DataLakeStoreSettings) GetDelimiter() string {
if o == nil || IsNil(o.Delimiter) {
var ret string
return ret
}
return *o.Delimiter
}
// GetDelimiterOk returns a tuple with the Delimiter field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DataLakeStoreSettings) GetDelimiterOk() (*string, bool) {
if o == nil || IsNil(o.Delimiter) {
return nil, false
}
return o.Delimiter, true
}
// HasDelimiter returns a boolean if a field has been set.
func (o *DataLakeStoreSettings) HasDelimiter() bool {
if o != nil && !IsNil(o.Delimiter) {
return true
}
return false
}
// SetDelimiter gets a reference to the given string and assigns it to the Delimiter field.
func (o *DataLakeStoreSettings) SetDelimiter(v string) {
o.Delimiter = &v
}
// GetIncludeTags returns the IncludeTags field value if set, zero value otherwise
func (o *DataLakeStoreSettings) GetIncludeTags() bool {
if o == nil || IsNil(o.IncludeTags) {
var ret bool
return ret
}
return *o.IncludeTags
}
// GetIncludeTagsOk returns a tuple with the IncludeTags field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DataLakeStoreSettings) GetIncludeTagsOk() (*bool, bool) {
if o == nil || IsNil(o.IncludeTags) {
return nil, false
}
return o.IncludeTags, true
}
// HasIncludeTags returns a boolean if a field has been set.
func (o *DataLakeStoreSettings) HasIncludeTags() bool {
if o != nil && !IsNil(o.IncludeTags) {
return true
}
return false
}
// SetIncludeTags gets a reference to the given bool and assigns it to the IncludeTags field.
func (o *DataLakeStoreSettings) SetIncludeTags(v bool) {
o.IncludeTags = &v
}
// GetPrefix returns the Prefix field value if set, zero value otherwise
func (o *DataLakeStoreSettings) GetPrefix() string {
if o == nil || IsNil(o.Prefix) {
var ret string
return ret
}
return *o.Prefix
}
// GetPrefixOk returns a tuple with the Prefix field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DataLakeStoreSettings) GetPrefixOk() (*string, bool) {
if o == nil || IsNil(o.Prefix) {
return nil, false
}
return o.Prefix, true
}
// HasPrefix returns a boolean if a field has been set.
func (o *DataLakeStoreSettings) HasPrefix() bool {
if o != nil && !IsNil(o.Prefix) {
return true
}
return false
}
// SetPrefix gets a reference to the given string and assigns it to the Prefix field.
func (o *DataLakeStoreSettings) SetPrefix(v string) {
o.Prefix = &v
}
// GetPublic returns the Public field value if set, zero value otherwise
func (o *DataLakeStoreSettings) GetPublic() bool {
if o == nil || IsNil(o.Public) {
var ret bool
return ret
}
return *o.Public
}
// GetPublicOk returns a tuple with the Public field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DataLakeStoreSettings) GetPublicOk() (*bool, bool) {
if o == nil || IsNil(o.Public) {
return nil, false
}
return o.Public, true
}
// HasPublic returns a boolean if a field has been set.
func (o *DataLakeStoreSettings) HasPublic() bool {
if o != nil && !IsNil(o.Public) {
return true
}
return false
}
// SetPublic gets a reference to the given bool and assigns it to the Public field.
func (o *DataLakeStoreSettings) SetPublic(v bool) {
o.Public = &v
}
// GetRegion returns the Region field value if set, zero value otherwise
func (o *DataLakeStoreSettings) GetRegion() string {
if o == nil || IsNil(o.Region) {
var ret string
return ret
}
return *o.Region
}
// GetRegionOk returns a tuple with the Region field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DataLakeStoreSettings) GetRegionOk() (*string, bool) {
if o == nil || IsNil(o.Region) {
return nil, false
}
return o.Region, true
}
// HasRegion returns a boolean if a field has been set.
func (o *DataLakeStoreSettings) HasRegion() bool {
if o != nil && !IsNil(o.Region) {
return true
}
return false
}
// SetRegion gets a reference to the given string and assigns it to the Region field.
func (o *DataLakeStoreSettings) SetRegion(v string) {
o.Region = &v
}
// GetClusterName returns the ClusterName field value if set, zero value otherwise
func (o *DataLakeStoreSettings) GetClusterName() string {
if o == nil || IsNil(o.ClusterName) {
var ret string
return ret
}
return *o.ClusterName
}
// GetClusterNameOk returns a tuple with the ClusterName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DataLakeStoreSettings) GetClusterNameOk() (*string, bool) {
if o == nil || IsNil(o.ClusterName) {
return nil, false
}
return o.ClusterName, true
}
// HasClusterName returns a boolean if a field has been set.
func (o *DataLakeStoreSettings) HasClusterName() bool {
if o != nil && !IsNil(o.ClusterName) {
return true
}
return false
}
// SetClusterName gets a reference to the given string and assigns it to the ClusterName field.
func (o *DataLakeStoreSettings) SetClusterName(v string) {
o.ClusterName = &v
}
// GetProjectId returns the ProjectId field value if set, zero value otherwise
func (o *DataLakeStoreSettings) GetProjectId() string {
if o == nil || IsNil(o.ProjectId) {
var ret string
return ret
}
return *o.ProjectId
}
// GetProjectIdOk returns a tuple with the ProjectId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DataLakeStoreSettings) GetProjectIdOk() (*string, bool) {
if o == nil || IsNil(o.ProjectId) {
return nil, false
}
return o.ProjectId, true
}
// HasProjectId returns a boolean if a field has been set.
func (o *DataLakeStoreSettings) HasProjectId() bool {
if o != nil && !IsNil(o.ProjectId) {
return true
}
return false
}
// SetProjectId gets a reference to the given string and assigns it to the ProjectId field.
func (o *DataLakeStoreSettings) SetProjectId(v string) {
o.ProjectId = &v
}
// GetReadConcern returns the ReadConcern field value if set, zero value otherwise
func (o *DataLakeStoreSettings) GetReadConcern() DataLakeAtlasStoreReadConcern {
if o == nil || IsNil(o.ReadConcern) {
var ret DataLakeAtlasStoreReadConcern
return ret
}
return *o.ReadConcern
}
// GetReadConcernOk returns a tuple with the ReadConcern field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DataLakeStoreSettings) GetReadConcernOk() (*DataLakeAtlasStoreReadConcern, bool) {
if o == nil || IsNil(o.ReadConcern) {
return nil, false
}
return o.ReadConcern, true
}
// HasReadConcern returns a boolean if a field has been set.
func (o *DataLakeStoreSettings) HasReadConcern() bool {
if o != nil && !IsNil(o.ReadConcern) {
return true
}
return false
}
// SetReadConcern gets a reference to the given DataLakeAtlasStoreReadConcern and assigns it to the ReadConcern field.
func (o *DataLakeStoreSettings) SetReadConcern(v DataLakeAtlasStoreReadConcern) {
o.ReadConcern = &v
}
// GetReadPreference returns the ReadPreference field value if set, zero value otherwise
func (o *DataLakeStoreSettings) GetReadPreference() DataLakeAtlasStoreReadPreference {
if o == nil || IsNil(o.ReadPreference) {
var ret DataLakeAtlasStoreReadPreference
return ret
}
return *o.ReadPreference
}
// GetReadPreferenceOk returns a tuple with the ReadPreference field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DataLakeStoreSettings) GetReadPreferenceOk() (*DataLakeAtlasStoreReadPreference, bool) {
if o == nil || IsNil(o.ReadPreference) {
return nil, false
}
return o.ReadPreference, true
}
// HasReadPreference returns a boolean if a field has been set.
func (o *DataLakeStoreSettings) HasReadPreference() bool {
if o != nil && !IsNil(o.ReadPreference) {
return true
}
return false
}
// SetReadPreference gets a reference to the given DataLakeAtlasStoreReadPreference and assigns it to the ReadPreference field.
func (o *DataLakeStoreSettings) SetReadPreference(v DataLakeAtlasStoreReadPreference) {
o.ReadPreference = &v
}
// GetAllowInsecure returns the AllowInsecure field value if set, zero value otherwise
func (o *DataLakeStoreSettings) GetAllowInsecure() bool {
if o == nil || IsNil(o.AllowInsecure) {
var ret bool
return ret
}
return *o.AllowInsecure
}
// GetAllowInsecureOk returns a tuple with the AllowInsecure field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DataLakeStoreSettings) GetAllowInsecureOk() (*bool, bool) {
if o == nil || IsNil(o.AllowInsecure) {
return nil, false
}
return o.AllowInsecure, true
}
// HasAllowInsecure returns a boolean if a field has been set.
func (o *DataLakeStoreSettings) HasAllowInsecure() bool {
if o != nil && !IsNil(o.AllowInsecure) {
return true
}
return false
}
// SetAllowInsecure gets a reference to the given bool and assigns it to the AllowInsecure field.
func (o *DataLakeStoreSettings) SetAllowInsecure(v bool) {
o.AllowInsecure = &v
}
// GetDefaultFormat returns the DefaultFormat field value if set, zero value otherwise
func (o *DataLakeStoreSettings) GetDefaultFormat() string {
if o == nil || IsNil(o.DefaultFormat) {
var ret string
return ret
}
return *o.DefaultFormat
}
// GetDefaultFormatOk returns a tuple with the DefaultFormat field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DataLakeStoreSettings) GetDefaultFormatOk() (*string, bool) {
if o == nil || IsNil(o.DefaultFormat) {
return nil, false
}
return o.DefaultFormat, true
}
// HasDefaultFormat returns a boolean if a field has been set.
func (o *DataLakeStoreSettings) HasDefaultFormat() bool {
if o != nil && !IsNil(o.DefaultFormat) {
return true
}
return false
}
// SetDefaultFormat gets a reference to the given string and assigns it to the DefaultFormat field.
func (o *DataLakeStoreSettings) SetDefaultFormat(v string) {
o.DefaultFormat = &v
}
// GetUrls returns the Urls field value if set, zero value otherwise
func (o *DataLakeStoreSettings) GetUrls() []string {
if o == nil || IsNil(o.Urls) {
var ret []string
return ret
}
return *o.Urls
}
// GetUrlsOk returns a tuple with the Urls field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DataLakeStoreSettings) GetUrlsOk() (*[]string, bool) {
if o == nil || IsNil(o.Urls) {
return nil, false
}
return o.Urls, true
}
// HasUrls returns a boolean if a field has been set.
func (o *DataLakeStoreSettings) HasUrls() bool {
if o != nil && !IsNil(o.Urls) {
return true
}
return false
}
// SetUrls gets a reference to the given []string and assigns it to the Urls field.
func (o *DataLakeStoreSettings) SetUrls(v []string) {
o.Urls = &v
}
func (o DataLakeStoreSettings) MarshalJSONWithoutReadOnly() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o DataLakeStoreSettings) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
toSerialize["provider"] = o.Provider
if !IsNil(o.AdditionalStorageClasses) {
toSerialize["additionalStorageClasses"] = o.AdditionalStorageClasses
}
if !IsNil(o.Bucket) {
toSerialize["bucket"] = o.Bucket
}
if !IsNil(o.Delimiter) {
toSerialize["delimiter"] = o.Delimiter
}
if !IsNil(o.IncludeTags) {
toSerialize["includeTags"] = o.IncludeTags
}
if !IsNil(o.Prefix) {
toSerialize["prefix"] = o.Prefix
}
if !IsNil(o.Public) {
toSerialize["public"] = o.Public
}
if !IsNil(o.Region) {
toSerialize["region"] = o.Region
}
if !IsNil(o.ClusterName) {
toSerialize["clusterName"] = o.ClusterName
}
if !IsNil(o.ReadConcern) {
toSerialize["readConcern"] = o.ReadConcern
}
if !IsNil(o.ReadPreference) {
toSerialize["readPreference"] = o.ReadPreference
}
if !IsNil(o.AllowInsecure) {
toSerialize["allowInsecure"] = o.AllowInsecure
}
if !IsNil(o.DefaultFormat) {
toSerialize["defaultFormat"] = o.DefaultFormat
}
if !IsNil(o.Urls) {
toSerialize["urls"] = o.Urls
}
return toSerialize, nil
}