generated from delphix/.github
/
model_app_data_d_source_link_source_parameters.go
816 lines (698 loc) · 26.3 KB
/
model_app_data_d_source_link_source_parameters.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
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
/*
Delphix DCT API
Delphix DCT API
API version: 3.9.0
Contact: support@delphix.com
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package delphix_dct_api
import (
"encoding/json"
)
// checks if the AppDataDSourceLinkSourceParameters type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &AppDataDSourceLinkSourceParameters{}
// AppDataDSourceLinkSourceParameters struct for AppDataDSourceLinkSourceParameters
type AppDataDSourceLinkSourceParameters struct {
// Name of the dSource to be created.
Name *string `json:"name,omitempty"`
// Id of the source to link.
SourceId *string `json:"source_id,omitempty"`
// Id of the dataset group where this dSource should belong to.
GroupId *string `json:"group_id,omitempty"`
// The notes/description for the dSource.
Description *string `json:"description,omitempty"`
// True if LogSync should run for this database.
LogSyncEnabled *bool `json:"log_sync_enabled,omitempty"`
// The ID of the SnapSync policy for the dSource.
SyncPolicyId *string `json:"sync_policy_id,omitempty"`
// The ID of the Retention policy for the dSource.
RetentionPolicyId *string `json:"retention_policy_id,omitempty"`
// Whether the account creating this reporting schedule must be configured as owner of the reporting schedule.
MakeCurrentAccountOwner *bool `json:"make_current_account_owner,omitempty"`
// The tags to be created for dSource.
Tags []Tag `json:"tags,omitempty"`
// Operations to perform before syncing the created dSource. These operations can quiesce any data prior to syncing.
OpsPreSync []SourceOperation `json:"ops_pre_sync,omitempty"`
// Operations to perform after syncing a created dSource.
OpsPostSync []SourceOperation `json:"ops_post_sync,omitempty"`
// The type of link to create. Default is AppDataDirect. * `AppDataDirect` - Represents the AppData specific parameters of a link request for a source directly replicated into the Delphix Engine. * `AppDataStaged` - Represents the AppData specific parameters of a link request for a source with a staging source.
LinkType *string `json:"link_type,omitempty"`
// The base mount point for the NFS mount on the staging environment [AppDataStaged only].
StagingMountBase *string `json:"staging_mount_base,omitempty"`
// The environment used as an intermediate stage to pull data into Delphix [AppDataStaged only].
StagingEnvironment *string `json:"staging_environment,omitempty"`
// The environment user used to access the staging environment [AppDataStaged only].
StagingEnvironmentUser *string `json:"staging_environment_user,omitempty"`
// The OS user to use for linking.
EnvironmentUser string `json:"environment_user"`
// List of subdirectories in the source to exclude when syncing data. These paths are relative to the root of the source directory. [AppDataDirect only]
Excludes []string `json:"excludes,omitempty"`
// List of symlinks in the source to follow when syncing data. These paths are relative to the root of the source directory. All other symlinks are preserved. [AppDataDirect only]
FollowSymlinks []string `json:"follow_symlinks,omitempty"`
// The JSON payload conforming to the DraftV4 schema based on the type of application data being manipulated.
Parameters map[string]interface{} `json:"parameters"`
// The JSON payload conforming to the snapshot parameters definition in a LUA toolkit or platform plugin.
SyncParameters map[string]interface{} `json:"sync_parameters"`
}
// NewAppDataDSourceLinkSourceParameters instantiates a new AppDataDSourceLinkSourceParameters 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 NewAppDataDSourceLinkSourceParameters(environmentUser string, parameters map[string]interface{}, syncParameters map[string]interface{}) *AppDataDSourceLinkSourceParameters {
this := AppDataDSourceLinkSourceParameters{}
var logSyncEnabled bool = false
this.LogSyncEnabled = &logSyncEnabled
var makeCurrentAccountOwner bool = true
this.MakeCurrentAccountOwner = &makeCurrentAccountOwner
var linkType string = "AppDataDirect"
this.LinkType = &linkType
this.EnvironmentUser = environmentUser
this.Parameters = parameters
this.SyncParameters = syncParameters
return &this
}
// NewAppDataDSourceLinkSourceParametersWithDefaults instantiates a new AppDataDSourceLinkSourceParameters 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 NewAppDataDSourceLinkSourceParametersWithDefaults() *AppDataDSourceLinkSourceParameters {
this := AppDataDSourceLinkSourceParameters{}
var logSyncEnabled bool = false
this.LogSyncEnabled = &logSyncEnabled
var makeCurrentAccountOwner bool = true
this.MakeCurrentAccountOwner = &makeCurrentAccountOwner
var linkType string = "AppDataDirect"
this.LinkType = &linkType
return &this
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *AppDataDSourceLinkSourceParameters) 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 *AppDataDSourceLinkSourceParameters) 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 *AppDataDSourceLinkSourceParameters) 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 *AppDataDSourceLinkSourceParameters) SetName(v string) {
o.Name = &v
}
// GetSourceId returns the SourceId field value if set, zero value otherwise.
func (o *AppDataDSourceLinkSourceParameters) GetSourceId() string {
if o == nil || IsNil(o.SourceId) {
var ret string
return ret
}
return *o.SourceId
}
// GetSourceIdOk returns a tuple with the SourceId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppDataDSourceLinkSourceParameters) GetSourceIdOk() (*string, bool) {
if o == nil || IsNil(o.SourceId) {
return nil, false
}
return o.SourceId, true
}
// HasSourceId returns a boolean if a field has been set.
func (o *AppDataDSourceLinkSourceParameters) HasSourceId() bool {
if o != nil && !IsNil(o.SourceId) {
return true
}
return false
}
// SetSourceId gets a reference to the given string and assigns it to the SourceId field.
func (o *AppDataDSourceLinkSourceParameters) SetSourceId(v string) {
o.SourceId = &v
}
// GetGroupId returns the GroupId field value if set, zero value otherwise.
func (o *AppDataDSourceLinkSourceParameters) GetGroupId() string {
if o == nil || IsNil(o.GroupId) {
var ret string
return ret
}
return *o.GroupId
}
// GetGroupIdOk returns a tuple with the GroupId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppDataDSourceLinkSourceParameters) GetGroupIdOk() (*string, bool) {
if o == nil || IsNil(o.GroupId) {
return nil, false
}
return o.GroupId, true
}
// HasGroupId returns a boolean if a field has been set.
func (o *AppDataDSourceLinkSourceParameters) HasGroupId() bool {
if o != nil && !IsNil(o.GroupId) {
return true
}
return false
}
// SetGroupId gets a reference to the given string and assigns it to the GroupId field.
func (o *AppDataDSourceLinkSourceParameters) SetGroupId(v string) {
o.GroupId = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *AppDataDSourceLinkSourceParameters) 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 *AppDataDSourceLinkSourceParameters) 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 *AppDataDSourceLinkSourceParameters) 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 *AppDataDSourceLinkSourceParameters) SetDescription(v string) {
o.Description = &v
}
// GetLogSyncEnabled returns the LogSyncEnabled field value if set, zero value otherwise.
func (o *AppDataDSourceLinkSourceParameters) GetLogSyncEnabled() bool {
if o == nil || IsNil(o.LogSyncEnabled) {
var ret bool
return ret
}
return *o.LogSyncEnabled
}
// GetLogSyncEnabledOk returns a tuple with the LogSyncEnabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppDataDSourceLinkSourceParameters) GetLogSyncEnabledOk() (*bool, bool) {
if o == nil || IsNil(o.LogSyncEnabled) {
return nil, false
}
return o.LogSyncEnabled, true
}
// HasLogSyncEnabled returns a boolean if a field has been set.
func (o *AppDataDSourceLinkSourceParameters) HasLogSyncEnabled() bool {
if o != nil && !IsNil(o.LogSyncEnabled) {
return true
}
return false
}
// SetLogSyncEnabled gets a reference to the given bool and assigns it to the LogSyncEnabled field.
func (o *AppDataDSourceLinkSourceParameters) SetLogSyncEnabled(v bool) {
o.LogSyncEnabled = &v
}
// GetSyncPolicyId returns the SyncPolicyId field value if set, zero value otherwise.
func (o *AppDataDSourceLinkSourceParameters) GetSyncPolicyId() string {
if o == nil || IsNil(o.SyncPolicyId) {
var ret string
return ret
}
return *o.SyncPolicyId
}
// GetSyncPolicyIdOk returns a tuple with the SyncPolicyId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppDataDSourceLinkSourceParameters) GetSyncPolicyIdOk() (*string, bool) {
if o == nil || IsNil(o.SyncPolicyId) {
return nil, false
}
return o.SyncPolicyId, true
}
// HasSyncPolicyId returns a boolean if a field has been set.
func (o *AppDataDSourceLinkSourceParameters) HasSyncPolicyId() bool {
if o != nil && !IsNil(o.SyncPolicyId) {
return true
}
return false
}
// SetSyncPolicyId gets a reference to the given string and assigns it to the SyncPolicyId field.
func (o *AppDataDSourceLinkSourceParameters) SetSyncPolicyId(v string) {
o.SyncPolicyId = &v
}
// GetRetentionPolicyId returns the RetentionPolicyId field value if set, zero value otherwise.
func (o *AppDataDSourceLinkSourceParameters) GetRetentionPolicyId() string {
if o == nil || IsNil(o.RetentionPolicyId) {
var ret string
return ret
}
return *o.RetentionPolicyId
}
// GetRetentionPolicyIdOk returns a tuple with the RetentionPolicyId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppDataDSourceLinkSourceParameters) GetRetentionPolicyIdOk() (*string, bool) {
if o == nil || IsNil(o.RetentionPolicyId) {
return nil, false
}
return o.RetentionPolicyId, true
}
// HasRetentionPolicyId returns a boolean if a field has been set.
func (o *AppDataDSourceLinkSourceParameters) HasRetentionPolicyId() bool {
if o != nil && !IsNil(o.RetentionPolicyId) {
return true
}
return false
}
// SetRetentionPolicyId gets a reference to the given string and assigns it to the RetentionPolicyId field.
func (o *AppDataDSourceLinkSourceParameters) SetRetentionPolicyId(v string) {
o.RetentionPolicyId = &v
}
// GetMakeCurrentAccountOwner returns the MakeCurrentAccountOwner field value if set, zero value otherwise.
func (o *AppDataDSourceLinkSourceParameters) GetMakeCurrentAccountOwner() bool {
if o == nil || IsNil(o.MakeCurrentAccountOwner) {
var ret bool
return ret
}
return *o.MakeCurrentAccountOwner
}
// GetMakeCurrentAccountOwnerOk returns a tuple with the MakeCurrentAccountOwner field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppDataDSourceLinkSourceParameters) GetMakeCurrentAccountOwnerOk() (*bool, bool) {
if o == nil || IsNil(o.MakeCurrentAccountOwner) {
return nil, false
}
return o.MakeCurrentAccountOwner, true
}
// HasMakeCurrentAccountOwner returns a boolean if a field has been set.
func (o *AppDataDSourceLinkSourceParameters) HasMakeCurrentAccountOwner() bool {
if o != nil && !IsNil(o.MakeCurrentAccountOwner) {
return true
}
return false
}
// SetMakeCurrentAccountOwner gets a reference to the given bool and assigns it to the MakeCurrentAccountOwner field.
func (o *AppDataDSourceLinkSourceParameters) SetMakeCurrentAccountOwner(v bool) {
o.MakeCurrentAccountOwner = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
func (o *AppDataDSourceLinkSourceParameters) GetTags() []Tag {
if o == nil || IsNil(o.Tags) {
var ret []Tag
return ret
}
return o.Tags
}
// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppDataDSourceLinkSourceParameters) GetTagsOk() ([]Tag, bool) {
if o == nil || IsNil(o.Tags) {
return nil, false
}
return o.Tags, true
}
// HasTags returns a boolean if a field has been set.
func (o *AppDataDSourceLinkSourceParameters) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
return false
}
// SetTags gets a reference to the given []Tag and assigns it to the Tags field.
func (o *AppDataDSourceLinkSourceParameters) SetTags(v []Tag) {
o.Tags = v
}
// GetOpsPreSync returns the OpsPreSync field value if set, zero value otherwise.
func (o *AppDataDSourceLinkSourceParameters) GetOpsPreSync() []SourceOperation {
if o == nil || IsNil(o.OpsPreSync) {
var ret []SourceOperation
return ret
}
return o.OpsPreSync
}
// GetOpsPreSyncOk returns a tuple with the OpsPreSync field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppDataDSourceLinkSourceParameters) GetOpsPreSyncOk() ([]SourceOperation, bool) {
if o == nil || IsNil(o.OpsPreSync) {
return nil, false
}
return o.OpsPreSync, true
}
// HasOpsPreSync returns a boolean if a field has been set.
func (o *AppDataDSourceLinkSourceParameters) HasOpsPreSync() bool {
if o != nil && !IsNil(o.OpsPreSync) {
return true
}
return false
}
// SetOpsPreSync gets a reference to the given []SourceOperation and assigns it to the OpsPreSync field.
func (o *AppDataDSourceLinkSourceParameters) SetOpsPreSync(v []SourceOperation) {
o.OpsPreSync = v
}
// GetOpsPostSync returns the OpsPostSync field value if set, zero value otherwise.
func (o *AppDataDSourceLinkSourceParameters) GetOpsPostSync() []SourceOperation {
if o == nil || IsNil(o.OpsPostSync) {
var ret []SourceOperation
return ret
}
return o.OpsPostSync
}
// GetOpsPostSyncOk returns a tuple with the OpsPostSync field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppDataDSourceLinkSourceParameters) GetOpsPostSyncOk() ([]SourceOperation, bool) {
if o == nil || IsNil(o.OpsPostSync) {
return nil, false
}
return o.OpsPostSync, true
}
// HasOpsPostSync returns a boolean if a field has been set.
func (o *AppDataDSourceLinkSourceParameters) HasOpsPostSync() bool {
if o != nil && !IsNil(o.OpsPostSync) {
return true
}
return false
}
// SetOpsPostSync gets a reference to the given []SourceOperation and assigns it to the OpsPostSync field.
func (o *AppDataDSourceLinkSourceParameters) SetOpsPostSync(v []SourceOperation) {
o.OpsPostSync = v
}
// GetLinkType returns the LinkType field value if set, zero value otherwise.
func (o *AppDataDSourceLinkSourceParameters) GetLinkType() string {
if o == nil || IsNil(o.LinkType) {
var ret string
return ret
}
return *o.LinkType
}
// GetLinkTypeOk returns a tuple with the LinkType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppDataDSourceLinkSourceParameters) GetLinkTypeOk() (*string, bool) {
if o == nil || IsNil(o.LinkType) {
return nil, false
}
return o.LinkType, true
}
// HasLinkType returns a boolean if a field has been set.
func (o *AppDataDSourceLinkSourceParameters) HasLinkType() bool {
if o != nil && !IsNil(o.LinkType) {
return true
}
return false
}
// SetLinkType gets a reference to the given string and assigns it to the LinkType field.
func (o *AppDataDSourceLinkSourceParameters) SetLinkType(v string) {
o.LinkType = &v
}
// GetStagingMountBase returns the StagingMountBase field value if set, zero value otherwise.
func (o *AppDataDSourceLinkSourceParameters) GetStagingMountBase() string {
if o == nil || IsNil(o.StagingMountBase) {
var ret string
return ret
}
return *o.StagingMountBase
}
// GetStagingMountBaseOk returns a tuple with the StagingMountBase field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppDataDSourceLinkSourceParameters) GetStagingMountBaseOk() (*string, bool) {
if o == nil || IsNil(o.StagingMountBase) {
return nil, false
}
return o.StagingMountBase, true
}
// HasStagingMountBase returns a boolean if a field has been set.
func (o *AppDataDSourceLinkSourceParameters) HasStagingMountBase() bool {
if o != nil && !IsNil(o.StagingMountBase) {
return true
}
return false
}
// SetStagingMountBase gets a reference to the given string and assigns it to the StagingMountBase field.
func (o *AppDataDSourceLinkSourceParameters) SetStagingMountBase(v string) {
o.StagingMountBase = &v
}
// GetStagingEnvironment returns the StagingEnvironment field value if set, zero value otherwise.
func (o *AppDataDSourceLinkSourceParameters) GetStagingEnvironment() string {
if o == nil || IsNil(o.StagingEnvironment) {
var ret string
return ret
}
return *o.StagingEnvironment
}
// GetStagingEnvironmentOk returns a tuple with the StagingEnvironment field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppDataDSourceLinkSourceParameters) GetStagingEnvironmentOk() (*string, bool) {
if o == nil || IsNil(o.StagingEnvironment) {
return nil, false
}
return o.StagingEnvironment, true
}
// HasStagingEnvironment returns a boolean if a field has been set.
func (o *AppDataDSourceLinkSourceParameters) HasStagingEnvironment() bool {
if o != nil && !IsNil(o.StagingEnvironment) {
return true
}
return false
}
// SetStagingEnvironment gets a reference to the given string and assigns it to the StagingEnvironment field.
func (o *AppDataDSourceLinkSourceParameters) SetStagingEnvironment(v string) {
o.StagingEnvironment = &v
}
// GetStagingEnvironmentUser returns the StagingEnvironmentUser field value if set, zero value otherwise.
func (o *AppDataDSourceLinkSourceParameters) GetStagingEnvironmentUser() string {
if o == nil || IsNil(o.StagingEnvironmentUser) {
var ret string
return ret
}
return *o.StagingEnvironmentUser
}
// GetStagingEnvironmentUserOk returns a tuple with the StagingEnvironmentUser field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppDataDSourceLinkSourceParameters) GetStagingEnvironmentUserOk() (*string, bool) {
if o == nil || IsNil(o.StagingEnvironmentUser) {
return nil, false
}
return o.StagingEnvironmentUser, true
}
// HasStagingEnvironmentUser returns a boolean if a field has been set.
func (o *AppDataDSourceLinkSourceParameters) HasStagingEnvironmentUser() bool {
if o != nil && !IsNil(o.StagingEnvironmentUser) {
return true
}
return false
}
// SetStagingEnvironmentUser gets a reference to the given string and assigns it to the StagingEnvironmentUser field.
func (o *AppDataDSourceLinkSourceParameters) SetStagingEnvironmentUser(v string) {
o.StagingEnvironmentUser = &v
}
// GetEnvironmentUser returns the EnvironmentUser field value
func (o *AppDataDSourceLinkSourceParameters) GetEnvironmentUser() string {
if o == nil {
var ret string
return ret
}
return o.EnvironmentUser
}
// GetEnvironmentUserOk returns a tuple with the EnvironmentUser field value
// and a boolean to check if the value has been set.
func (o *AppDataDSourceLinkSourceParameters) GetEnvironmentUserOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.EnvironmentUser, true
}
// SetEnvironmentUser sets field value
func (o *AppDataDSourceLinkSourceParameters) SetEnvironmentUser(v string) {
o.EnvironmentUser = v
}
// GetExcludes returns the Excludes field value if set, zero value otherwise.
func (o *AppDataDSourceLinkSourceParameters) GetExcludes() []string {
if o == nil || IsNil(o.Excludes) {
var ret []string
return ret
}
return o.Excludes
}
// GetExcludesOk returns a tuple with the Excludes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppDataDSourceLinkSourceParameters) GetExcludesOk() ([]string, bool) {
if o == nil || IsNil(o.Excludes) {
return nil, false
}
return o.Excludes, true
}
// HasExcludes returns a boolean if a field has been set.
func (o *AppDataDSourceLinkSourceParameters) HasExcludes() bool {
if o != nil && !IsNil(o.Excludes) {
return true
}
return false
}
// SetExcludes gets a reference to the given []string and assigns it to the Excludes field.
func (o *AppDataDSourceLinkSourceParameters) SetExcludes(v []string) {
o.Excludes = v
}
// GetFollowSymlinks returns the FollowSymlinks field value if set, zero value otherwise.
func (o *AppDataDSourceLinkSourceParameters) GetFollowSymlinks() []string {
if o == nil || IsNil(o.FollowSymlinks) {
var ret []string
return ret
}
return o.FollowSymlinks
}
// GetFollowSymlinksOk returns a tuple with the FollowSymlinks field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppDataDSourceLinkSourceParameters) GetFollowSymlinksOk() ([]string, bool) {
if o == nil || IsNil(o.FollowSymlinks) {
return nil, false
}
return o.FollowSymlinks, true
}
// HasFollowSymlinks returns a boolean if a field has been set.
func (o *AppDataDSourceLinkSourceParameters) HasFollowSymlinks() bool {
if o != nil && !IsNil(o.FollowSymlinks) {
return true
}
return false
}
// SetFollowSymlinks gets a reference to the given []string and assigns it to the FollowSymlinks field.
func (o *AppDataDSourceLinkSourceParameters) SetFollowSymlinks(v []string) {
o.FollowSymlinks = v
}
// GetParameters returns the Parameters field value
func (o *AppDataDSourceLinkSourceParameters) GetParameters() map[string]interface{} {
if o == nil {
var ret map[string]interface{}
return ret
}
return o.Parameters
}
// GetParametersOk returns a tuple with the Parameters field value
// and a boolean to check if the value has been set.
func (o *AppDataDSourceLinkSourceParameters) GetParametersOk() (map[string]interface{}, bool) {
if o == nil {
return map[string]interface{}{}, false
}
return o.Parameters, true
}
// SetParameters sets field value
func (o *AppDataDSourceLinkSourceParameters) SetParameters(v map[string]interface{}) {
o.Parameters = v
}
// GetSyncParameters returns the SyncParameters field value
func (o *AppDataDSourceLinkSourceParameters) GetSyncParameters() map[string]interface{} {
if o == nil {
var ret map[string]interface{}
return ret
}
return o.SyncParameters
}
// GetSyncParametersOk returns a tuple with the SyncParameters field value
// and a boolean to check if the value has been set.
func (o *AppDataDSourceLinkSourceParameters) GetSyncParametersOk() (map[string]interface{}, bool) {
if o == nil {
return map[string]interface{}{}, false
}
return o.SyncParameters, true
}
// SetSyncParameters sets field value
func (o *AppDataDSourceLinkSourceParameters) SetSyncParameters(v map[string]interface{}) {
o.SyncParameters = v
}
func (o AppDataDSourceLinkSourceParameters) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o AppDataDSourceLinkSourceParameters) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
if !IsNil(o.SourceId) {
toSerialize["source_id"] = o.SourceId
}
if !IsNil(o.GroupId) {
toSerialize["group_id"] = o.GroupId
}
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
if !IsNil(o.LogSyncEnabled) {
toSerialize["log_sync_enabled"] = o.LogSyncEnabled
}
if !IsNil(o.SyncPolicyId) {
toSerialize["sync_policy_id"] = o.SyncPolicyId
}
if !IsNil(o.RetentionPolicyId) {
toSerialize["retention_policy_id"] = o.RetentionPolicyId
}
if !IsNil(o.MakeCurrentAccountOwner) {
toSerialize["make_current_account_owner"] = o.MakeCurrentAccountOwner
}
if !IsNil(o.Tags) {
toSerialize["tags"] = o.Tags
}
if !IsNil(o.OpsPreSync) {
toSerialize["ops_pre_sync"] = o.OpsPreSync
}
if !IsNil(o.OpsPostSync) {
toSerialize["ops_post_sync"] = o.OpsPostSync
}
if !IsNil(o.LinkType) {
toSerialize["link_type"] = o.LinkType
}
if !IsNil(o.StagingMountBase) {
toSerialize["staging_mount_base"] = o.StagingMountBase
}
if !IsNil(o.StagingEnvironment) {
toSerialize["staging_environment"] = o.StagingEnvironment
}
if !IsNil(o.StagingEnvironmentUser) {
toSerialize["staging_environment_user"] = o.StagingEnvironmentUser
}
toSerialize["environment_user"] = o.EnvironmentUser
if !IsNil(o.Excludes) {
toSerialize["excludes"] = o.Excludes
}
if !IsNil(o.FollowSymlinks) {
toSerialize["follow_symlinks"] = o.FollowSymlinks
}
toSerialize["parameters"] = o.Parameters
toSerialize["sync_parameters"] = o.SyncParameters
return toSerialize, nil
}
type NullableAppDataDSourceLinkSourceParameters struct {
value *AppDataDSourceLinkSourceParameters
isSet bool
}
func (v NullableAppDataDSourceLinkSourceParameters) Get() *AppDataDSourceLinkSourceParameters {
return v.value
}
func (v *NullableAppDataDSourceLinkSourceParameters) Set(val *AppDataDSourceLinkSourceParameters) {
v.value = val
v.isSet = true
}
func (v NullableAppDataDSourceLinkSourceParameters) IsSet() bool {
return v.isSet
}
func (v *NullableAppDataDSourceLinkSourceParameters) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAppDataDSourceLinkSourceParameters(val *AppDataDSourceLinkSourceParameters) *NullableAppDataDSourceLinkSourceParameters {
return &NullableAppDataDSourceLinkSourceParameters{value: val, isSet: true}
}
func (v NullableAppDataDSourceLinkSourceParameters) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAppDataDSourceLinkSourceParameters) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}