Skip to content

Commit 8fd6736

Browse files
authored
CLOUDP-217493 - Arrays as pointers (#252)
1 parent 0d25117 commit 8fd6736

File tree

190 files changed

+1343
-1344
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+1343
-1344
lines changed

admin/model_advanced_cluster_description.go

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ type AdvancedClusterDescription struct {
2929
Id *string `json:"id,omitempty"`
3030
// Collection of key-value pairs between 1 to 255 characters in length that tag and categorize the cluster. The MongoDB Cloud console doesn't display your labels. Cluster labels are deprecated and will be removed in a future release. We strongly recommend that you use [resource tags](https://dochub.mongodb.org/core/add-cluster-tag-atlas) instead.
3131
// Deprecated
32-
Labels []ComponentLabel `json:"labels,omitempty"`
32+
Labels *[]ComponentLabel `json:"labels,omitempty"`
3333
// List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships.
34-
Links []Link `json:"links,omitempty"`
34+
Links *[]Link `json:"links,omitempty"`
3535
// Major MongoDB version of the cluster. MongoDB Cloud deploys the cluster with the latest stable release of the specified version.
3636
MongoDBMajorVersion *string `json:"mongoDBMajorVersion,omitempty"`
3737
// Version of MongoDB that the cluster runs.
@@ -43,13 +43,13 @@ type AdvancedClusterDescription struct {
4343
// Flag that indicates whether the cluster uses continuous cloud backups.
4444
PitEnabled *bool `json:"pitEnabled,omitempty"`
4545
// List of settings that configure your cluster regions. For Global Clusters, each object in the array represents a zone where your clusters nodes deploy. For non-Global sharded clusters and replica sets, this array has one object representing where your clusters nodes deploy.
46-
ReplicationSpecs []ReplicationSpec `json:"replicationSpecs,omitempty"`
46+
ReplicationSpecs *[]ReplicationSpec `json:"replicationSpecs,omitempty"`
4747
// Root Certificate Authority that MongoDB Cloud cluster uses. MongoDB Cloud supports Internet Security Research Group.
4848
RootCertType *string `json:"rootCertType,omitempty"`
4949
// Human-readable label that indicates the current operating condition of this cluster.
5050
StateName *string `json:"stateName,omitempty"`
5151
// List that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the cluster.
52-
Tags []ResourceTag `json:"tags,omitempty"`
52+
Tags *[]ResourceTag `json:"tags,omitempty"`
5353
// Flag that indicates whether termination protection is enabled on the cluster. If set to `true`, MongoDB Cloud won't delete the cluster. If set to `false`, MongoDB Cloud will delete the cluster.
5454
TerminationProtectionEnabled *bool `json:"terminationProtectionEnabled,omitempty"`
5555
// Method by which the cluster maintains the MongoDB versions. If value is `CONTINUOUS`, you must not specify **mongoDBMajorVersion**.
@@ -430,13 +430,13 @@ func (o *AdvancedClusterDescription) GetLabels() []ComponentLabel {
430430
var ret []ComponentLabel
431431
return ret
432432
}
433-
return o.Labels
433+
return *o.Labels
434434
}
435435

436436
// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
437437
// and a boolean to check if the value has been set.
438438
// Deprecated
439-
func (o *AdvancedClusterDescription) GetLabelsOk() ([]ComponentLabel, bool) {
439+
func (o *AdvancedClusterDescription) GetLabelsOk() (*[]ComponentLabel, bool) {
440440
if o == nil || IsNil(o.Labels) {
441441
return nil, false
442442
}
@@ -456,7 +456,7 @@ func (o *AdvancedClusterDescription) HasLabels() bool {
456456
// SetLabels gets a reference to the given []ComponentLabel and assigns it to the Labels field.
457457
// Deprecated
458458
func (o *AdvancedClusterDescription) SetLabels(v []ComponentLabel) {
459-
o.Labels = v
459+
o.Labels = &v
460460
}
461461

462462
// GetLinks returns the Links field value if set, zero value otherwise
@@ -465,12 +465,12 @@ func (o *AdvancedClusterDescription) GetLinks() []Link {
465465
var ret []Link
466466
return ret
467467
}
468-
return o.Links
468+
return *o.Links
469469
}
470470

471471
// GetLinksOk returns a tuple with the Links field value if set, nil otherwise
472472
// and a boolean to check if the value has been set.
473-
func (o *AdvancedClusterDescription) GetLinksOk() ([]Link, bool) {
473+
func (o *AdvancedClusterDescription) GetLinksOk() (*[]Link, bool) {
474474
if o == nil || IsNil(o.Links) {
475475
return nil, false
476476
}
@@ -489,7 +489,7 @@ func (o *AdvancedClusterDescription) HasLinks() bool {
489489

490490
// SetLinks gets a reference to the given []Link and assigns it to the Links field.
491491
func (o *AdvancedClusterDescription) SetLinks(v []Link) {
492-
o.Links = v
492+
o.Links = &v
493493
}
494494

495495
// GetMongoDBMajorVersion returns the MongoDBMajorVersion field value if set, zero value otherwise
@@ -663,12 +663,12 @@ func (o *AdvancedClusterDescription) GetReplicationSpecs() []ReplicationSpec {
663663
var ret []ReplicationSpec
664664
return ret
665665
}
666-
return o.ReplicationSpecs
666+
return *o.ReplicationSpecs
667667
}
668668

669669
// GetReplicationSpecsOk returns a tuple with the ReplicationSpecs field value if set, nil otherwise
670670
// and a boolean to check if the value has been set.
671-
func (o *AdvancedClusterDescription) GetReplicationSpecsOk() ([]ReplicationSpec, bool) {
671+
func (o *AdvancedClusterDescription) GetReplicationSpecsOk() (*[]ReplicationSpec, bool) {
672672
if o == nil || IsNil(o.ReplicationSpecs) {
673673
return nil, false
674674
}
@@ -687,7 +687,7 @@ func (o *AdvancedClusterDescription) HasReplicationSpecs() bool {
687687

688688
// SetReplicationSpecs gets a reference to the given []ReplicationSpec and assigns it to the ReplicationSpecs field.
689689
func (o *AdvancedClusterDescription) SetReplicationSpecs(v []ReplicationSpec) {
690-
o.ReplicationSpecs = v
690+
o.ReplicationSpecs = &v
691691
}
692692

693693
// GetRootCertType returns the RootCertType field value if set, zero value otherwise
@@ -762,12 +762,12 @@ func (o *AdvancedClusterDescription) GetTags() []ResourceTag {
762762
var ret []ResourceTag
763763
return ret
764764
}
765-
return o.Tags
765+
return *o.Tags
766766
}
767767

768768
// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise
769769
// and a boolean to check if the value has been set.
770-
func (o *AdvancedClusterDescription) GetTagsOk() ([]ResourceTag, bool) {
770+
func (o *AdvancedClusterDescription) GetTagsOk() (*[]ResourceTag, bool) {
771771
if o == nil || IsNil(o.Tags) {
772772
return nil, false
773773
}
@@ -786,7 +786,7 @@ func (o *AdvancedClusterDescription) HasTags() bool {
786786

787787
// SetTags gets a reference to the given []ResourceTag and assigns it to the Tags field.
788788
func (o *AdvancedClusterDescription) SetTags(v []ResourceTag) {
789-
o.Tags = v
789+
o.Tags = &v
790790
}
791791

792792
// GetTerminationProtectionEnabled returns the TerminationProtectionEnabled field value if set, zero value otherwise

admin/model_advanced_disk_backup_snapshot_schedule_policy.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type AdvancedDiskBackupSnapshotSchedulePolicy struct {
1111
// Unique 24-hexadecimal digit string that identifies this backup policy.
1212
Id *string `json:"id,omitempty"`
1313
// List that contains the specifications for one policy.
14-
PolicyItems []DiskBackupApiPolicyItem `json:"policyItems,omitempty"`
14+
PolicyItems *[]DiskBackupApiPolicyItem `json:"policyItems,omitempty"`
1515
}
1616

1717
// NewAdvancedDiskBackupSnapshotSchedulePolicy instantiates a new AdvancedDiskBackupSnapshotSchedulePolicy object
@@ -70,12 +70,12 @@ func (o *AdvancedDiskBackupSnapshotSchedulePolicy) GetPolicyItems() []DiskBackup
7070
var ret []DiskBackupApiPolicyItem
7171
return ret
7272
}
73-
return o.PolicyItems
73+
return *o.PolicyItems
7474
}
7575

7676
// GetPolicyItemsOk returns a tuple with the PolicyItems field value if set, nil otherwise
7777
// and a boolean to check if the value has been set.
78-
func (o *AdvancedDiskBackupSnapshotSchedulePolicy) GetPolicyItemsOk() ([]DiskBackupApiPolicyItem, bool) {
78+
func (o *AdvancedDiskBackupSnapshotSchedulePolicy) GetPolicyItemsOk() (*[]DiskBackupApiPolicyItem, bool) {
7979
if o == nil || IsNil(o.PolicyItems) {
8080
return nil, false
8181
}
@@ -94,7 +94,7 @@ func (o *AdvancedDiskBackupSnapshotSchedulePolicy) HasPolicyItems() bool {
9494

9595
// SetPolicyItems gets a reference to the given []DiskBackupApiPolicyItem and assigns it to the PolicyItems field.
9696
func (o *AdvancedDiskBackupSnapshotSchedulePolicy) SetPolicyItems(v []DiskBackupApiPolicyItem) {
97-
o.PolicyItems = v
97+
o.PolicyItems = &v
9898
}
9999

100100
func (o AdvancedDiskBackupSnapshotSchedulePolicy) MarshalJSONWithoutReadOnly() ([]byte, error) {

admin/model_alert_view_for_nds_group.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type AlertViewForNdsGroup struct {
2828
// Date and time that any notifications were last sent for this alert. This parameter expresses its value in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 8601</a> timestamp format in UTC. The resource returns this parameter if MongoDB Cloud has sent notifications for this alert.
2929
LastNotified *time.Time `json:"lastNotified,omitempty"`
3030
// List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships.
31-
Links []Link `json:"links,omitempty"`
31+
Links *[]Link `json:"links,omitempty"`
3232
// Unique 24-hexadecimal character string that identifies the organization that owns the project to which this alert applies.
3333
OrgId *string `json:"orgId,omitempty"`
3434
// Date and time that this alert changed to `\"status\" : \"CLOSED\"`. This parameter expresses its value in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 8601</a> timestamp format in UTC. The resource returns this parameter once `\"status\" : \"CLOSED\"`.
@@ -47,7 +47,7 @@ type AlertViewForNdsGroup struct {
4747
// Name of the metric against which Atlas checks the configured `metricThreshold.threshold`. To learn more about the available metrics, see <a href=\"https://www.mongodb.com/docs/atlas/reference/alert-host-metrics/#std-label-measurement-types\" target=\"_blank\">Host Metrics</a>. **NOTE**: If you set eventTypeName to OUTSIDE_SERVERLESS_METRIC_THRESHOLD, you can specify only metrics available for serverless. To learn more, see <a href=\"https://dochub.mongodb.org/core/alert-config-serverless-measurements\" target=\"_blank\">Serverless Measurements</a>.
4848
MetricName *string `json:"metricName,omitempty"`
4949
// List of unique 24-hexadecimal character strings that identify the replica set members that are not in PRIMARY nor SECONDARY state.
50-
NonRunningHostIds []string `json:"nonRunningHostIds,omitempty"`
50+
NonRunningHostIds *[]string `json:"nonRunningHostIds,omitempty"`
5151
// Unique 24-hexadecimal character string that identifies the parent cluster to which this alert applies. The parent cluster contains the sharded nodes. MongoDB Cloud returns this parameter only for alerts of events impacting sharded clusters.
5252
ParentClusterId *string `json:"parentClusterId,omitempty"`
5353
}
@@ -372,12 +372,12 @@ func (o *AlertViewForNdsGroup) GetLinks() []Link {
372372
var ret []Link
373373
return ret
374374
}
375-
return o.Links
375+
return *o.Links
376376
}
377377

378378
// GetLinksOk returns a tuple with the Links field value if set, nil otherwise
379379
// and a boolean to check if the value has been set.
380-
func (o *AlertViewForNdsGroup) GetLinksOk() ([]Link, bool) {
380+
func (o *AlertViewForNdsGroup) GetLinksOk() (*[]Link, bool) {
381381
if o == nil || IsNil(o.Links) {
382382
return nil, false
383383
}
@@ -396,7 +396,7 @@ func (o *AlertViewForNdsGroup) HasLinks() bool {
396396

397397
// SetLinks gets a reference to the given []Link and assigns it to the Links field.
398398
func (o *AlertViewForNdsGroup) SetLinks(v []Link) {
399-
o.Links = v
399+
o.Links = &v
400400
}
401401

402402
// GetOrgId returns the OrgId field value if set, zero value otherwise
@@ -702,12 +702,12 @@ func (o *AlertViewForNdsGroup) GetNonRunningHostIds() []string {
702702
var ret []string
703703
return ret
704704
}
705-
return o.NonRunningHostIds
705+
return *o.NonRunningHostIds
706706
}
707707

708708
// GetNonRunningHostIdsOk returns a tuple with the NonRunningHostIds field value if set, nil otherwise
709709
// and a boolean to check if the value has been set.
710-
func (o *AlertViewForNdsGroup) GetNonRunningHostIdsOk() ([]string, bool) {
710+
func (o *AlertViewForNdsGroup) GetNonRunningHostIdsOk() (*[]string, bool) {
711711
if o == nil || IsNil(o.NonRunningHostIds) {
712712
return nil, false
713713
}
@@ -726,7 +726,7 @@ func (o *AlertViewForNdsGroup) HasNonRunningHostIds() bool {
726726

727727
// SetNonRunningHostIds gets a reference to the given []string and assigns it to the NonRunningHostIds field.
728728
func (o *AlertViewForNdsGroup) SetNonRunningHostIds(v []string) {
729-
o.NonRunningHostIds = v
729+
o.NonRunningHostIds = &v
730730
}
731731

732732
// GetParentClusterId returns the ParentClusterId field value if set, zero value otherwise

admin/model_alerts_notification_root_for_group.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type AlertsNotificationRootForGroup struct {
2525
// Flag that indicates whether MongoDB Cloud should send email notifications. The resource requires this parameter when one of the following values have been set: - `\"notifications.[n].typeName\" : \"ORG\"` - `\"notifications.[n].typeName\" : \"GROUP\"` - `\"notifications.[n].typeName\" : \"USER\"`
2626
EmailEnabled *bool `json:"emailEnabled,omitempty"`
2727
// List that contains the one or more [organization](https://dochub.mongodb.org/core/atlas-org-roles) or [project roles](https://dochub.mongodb.org/core/atlas-proj-roles) that receive the configured alert. The resource requires this parameter when `\"notifications.[n].typeName\" : \"GROUP\"` or `\"notifications.[n].typeName\" : \"ORG\"`. If you include this parameter, MongoDB Cloud sends alerts only to users assigned the roles you specify in the array. If you omit this parameter, MongoDB Cloud sends alerts to users assigned any role.
28-
Roles []string `json:"roles,omitempty"`
28+
Roles *[]string `json:"roles,omitempty"`
2929
// Flag that indicates whether MongoDB Cloud should send text message notifications. The resource requires this parameter when one of the following values have been set: - `\"notifications.[n].typeName\" : \"ORG\"` - `\"notifications.[n].typeName\" : \"GROUP\"` - `\"notifications.[n].typeName\" : \"USER\"`
3030
SmsEnabled *bool `json:"smsEnabled,omitempty"`
3131
// HipChat API token that MongoDB Cloud needs to send alert notifications to HipChat. The resource requires this parameter when `\"notifications.[n].typeName\" : \"HIP_CHAT\"`\". If the token later becomes invalid, MongoDB Cloud sends an email to the project owners. If the token remains invalid, MongoDB Cloud removes it. **NOTE**: After you create a notification which requires an API or integration key, the key appears partially redacted when you: * View or edit the alert through the Atlas UI. * Query the alert for the notification through the Atlas Administration API.
@@ -363,12 +363,12 @@ func (o *AlertsNotificationRootForGroup) GetRoles() []string {
363363
var ret []string
364364
return ret
365365
}
366-
return o.Roles
366+
return *o.Roles
367367
}
368368

369369
// GetRolesOk returns a tuple with the Roles field value if set, nil otherwise
370370
// and a boolean to check if the value has been set.
371-
func (o *AlertsNotificationRootForGroup) GetRolesOk() ([]string, bool) {
371+
func (o *AlertsNotificationRootForGroup) GetRolesOk() (*[]string, bool) {
372372
if o == nil || IsNil(o.Roles) {
373373
return nil, false
374374
}
@@ -387,7 +387,7 @@ func (o *AlertsNotificationRootForGroup) HasRoles() bool {
387387

388388
// SetRoles gets a reference to the given []string and assigns it to the Roles field.
389389
func (o *AlertsNotificationRootForGroup) SetRoles(v []string) {
390-
o.Roles = v
390+
o.Roles = &v
391391
}
392392

393393
// GetSmsEnabled returns the SmsEnabled field value if set, zero value otherwise

admin/model_api_atlas_checkpoint.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ type ApiAtlasCheckpoint struct {
1818
// Unique 24-hexadecimal digit string that identifies checkpoint.
1919
Id *string `json:"id,omitempty"`
2020
// List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships.
21-
Links []Link `json:"links,omitempty"`
21+
Links *[]Link `json:"links,omitempty"`
2222
// Metadata that describes the complete snapshot. - For a replica set, this array contains a single document. - For a sharded cluster, this array contains one document for each shard plus one document for the config host.
23-
Parts []ApiCheckpointPart `json:"parts,omitempty"`
23+
Parts *[]ApiCheckpointPart `json:"parts,omitempty"`
2424
// Flag that indicates whether MongoDB Cloud can use the checkpoint for a restore.
2525
Restorable *bool `json:"restorable,omitempty"`
2626
// Date and time when the balancer stopped and began the checkpoint. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
@@ -184,12 +184,12 @@ func (o *ApiAtlasCheckpoint) GetLinks() []Link {
184184
var ret []Link
185185
return ret
186186
}
187-
return o.Links
187+
return *o.Links
188188
}
189189

190190
// GetLinksOk returns a tuple with the Links field value if set, nil otherwise
191191
// and a boolean to check if the value has been set.
192-
func (o *ApiAtlasCheckpoint) GetLinksOk() ([]Link, bool) {
192+
func (o *ApiAtlasCheckpoint) GetLinksOk() (*[]Link, bool) {
193193
if o == nil || IsNil(o.Links) {
194194
return nil, false
195195
}
@@ -208,7 +208,7 @@ func (o *ApiAtlasCheckpoint) HasLinks() bool {
208208

209209
// SetLinks gets a reference to the given []Link and assigns it to the Links field.
210210
func (o *ApiAtlasCheckpoint) SetLinks(v []Link) {
211-
o.Links = v
211+
o.Links = &v
212212
}
213213

214214
// GetParts returns the Parts field value if set, zero value otherwise
@@ -217,12 +217,12 @@ func (o *ApiAtlasCheckpoint) GetParts() []ApiCheckpointPart {
217217
var ret []ApiCheckpointPart
218218
return ret
219219
}
220-
return o.Parts
220+
return *o.Parts
221221
}
222222

223223
// GetPartsOk returns a tuple with the Parts field value if set, nil otherwise
224224
// and a boolean to check if the value has been set.
225-
func (o *ApiAtlasCheckpoint) GetPartsOk() ([]ApiCheckpointPart, bool) {
225+
func (o *ApiAtlasCheckpoint) GetPartsOk() (*[]ApiCheckpointPart, bool) {
226226
if o == nil || IsNil(o.Parts) {
227227
return nil, false
228228
}
@@ -241,7 +241,7 @@ func (o *ApiAtlasCheckpoint) HasParts() bool {
241241

242242
// SetParts gets a reference to the given []ApiCheckpointPart and assigns it to the Parts field.
243243
func (o *ApiAtlasCheckpoint) SetParts(v []ApiCheckpointPart) {
244-
o.Parts = v
244+
o.Parts = &v
245245
}
246246

247247
// GetRestorable returns the Restorable field value if set, zero value otherwise

admin/model_api_atlas_fts_analyzers.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import (
99
// ApiAtlasFTSAnalyzers Settings that describe one Atlas Search custom analyzer.
1010
type ApiAtlasFTSAnalyzers struct {
1111
// Filters that examine text one character at a time and perform filtering operations.
12-
CharFilters []interface{} `json:"charFilters,omitempty"`
12+
CharFilters *[]interface{} `json:"charFilters,omitempty"`
1313
// Human-readable name that identifies the custom analyzer. Names must be unique within an index, and must not start with any of the following strings: - `lucene.` - `builtin.` - `mongodb.`
1414
Name string `json:"name"`
1515
// Filter that performs operations such as: - Stemming, which reduces related words, such as \"talking\", \"talked\", and \"talks\" to their root word \"talk\". - Redaction, the removal of sensitive information from public documents.
16-
TokenFilters []interface{} `json:"tokenFilters,omitempty"`
16+
TokenFilters *[]interface{} `json:"tokenFilters,omitempty"`
1717
Tokenizer ApiAtlasFTSAnalyzersTokenizer `json:"tokenizer"`
1818
}
1919

@@ -42,12 +42,12 @@ func (o *ApiAtlasFTSAnalyzers) GetCharFilters() []interface{} {
4242
var ret []interface{}
4343
return ret
4444
}
45-
return o.CharFilters
45+
return *o.CharFilters
4646
}
4747

4848
// GetCharFiltersOk returns a tuple with the CharFilters field value if set, nil otherwise
4949
// and a boolean to check if the value has been set.
50-
func (o *ApiAtlasFTSAnalyzers) GetCharFiltersOk() ([]interface{}, bool) {
50+
func (o *ApiAtlasFTSAnalyzers) GetCharFiltersOk() (*[]interface{}, bool) {
5151
if o == nil || IsNil(o.CharFilters) {
5252
return nil, false
5353
}
@@ -66,7 +66,7 @@ func (o *ApiAtlasFTSAnalyzers) HasCharFilters() bool {
6666

6767
// SetCharFilters gets a reference to the given []interface{} and assigns it to the CharFilters field.
6868
func (o *ApiAtlasFTSAnalyzers) SetCharFilters(v []interface{}) {
69-
o.CharFilters = v
69+
o.CharFilters = &v
7070
}
7171

7272
// GetName returns the Name field value
@@ -99,12 +99,12 @@ func (o *ApiAtlasFTSAnalyzers) GetTokenFilters() []interface{} {
9999
var ret []interface{}
100100
return ret
101101
}
102-
return o.TokenFilters
102+
return *o.TokenFilters
103103
}
104104

105105
// GetTokenFiltersOk returns a tuple with the TokenFilters field value if set, nil otherwise
106106
// and a boolean to check if the value has been set.
107-
func (o *ApiAtlasFTSAnalyzers) GetTokenFiltersOk() ([]interface{}, bool) {
107+
func (o *ApiAtlasFTSAnalyzers) GetTokenFiltersOk() (*[]interface{}, bool) {
108108
if o == nil || IsNil(o.TokenFilters) {
109109
return nil, false
110110
}
@@ -123,7 +123,7 @@ func (o *ApiAtlasFTSAnalyzers) HasTokenFilters() bool {
123123

124124
// SetTokenFilters gets a reference to the given []interface{} and assigns it to the TokenFilters field.
125125
func (o *ApiAtlasFTSAnalyzers) SetTokenFilters(v []interface{}) {
126-
o.TokenFilters = v
126+
o.TokenFilters = &v
127127
}
128128

129129
// GetTokenizer returns the Tokenizer field value

0 commit comments

Comments
 (0)