Skip to content

Commit 94881a2

Browse files
INTMDB-801: Add Missing fields in the data federation store struct (#478)
1 parent 0f62064 commit 94881a2

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

mongodbatlas/data_federation.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,21 @@ type DataFederationDatabaseView struct {
9595
// DataFederationStore represents data stores for the data federation.
9696
type DataFederationStore struct {
9797
ReadPreference *ReadPreference `json:"readPreference,omitempty"`
98-
IncludeTags *bool `json:"includeTags,omitempty"`
9998
AdditionalStorageClasses []*string `json:"additionalStorageClasses,omitempty"`
99+
Urls []*string `json:"urls,omitempty"`
100100
Name string `json:"name,omitempty"`
101101
Provider string `json:"provider,omitempty"`
102102
ClusterName string `json:"clusterName,omitempty"`
103+
ClusterID string `json:"clusterId,omitempty"`
103104
Region string `json:"region,omitempty"`
104105
Bucket string `json:"bucket,omitempty"`
105106
Prefix string `json:"prefix,omitempty"`
106107
Delimiter string `json:"delimiter,omitempty"`
107108
ProjectID string `json:"projectId,omitempty"`
109+
DefaultFormat string `json:"defaultFormat,omitempty"`
110+
IncludeTags *bool `json:"includeTags,omitempty"`
111+
Public *bool `json:"public,omitempty"`
112+
AllowInsecure *bool `json:"allowInsecure,omitempty"`
108113
}
109114

110115
// ReadPreference describes how to route read requests to the cluster.

mongodbatlas/data_federation_test.go

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,13 @@ func TestDataFederation_Get(t *testing.T) {
239239
"prefix": "/metrics",
240240
"delimiter": "/",
241241
"includeTags": false,
242-
"additionalStorageClasses" : ["STANDARD_IA"]
242+
"additionalStorageClasses" : ["STANDARD_IA"],
243+
"clusterName": "test",
244+
"clusterId": "test",
245+
"public": false,
246+
"allowInsecure": false,
247+
"defaultFormat": "test",
248+
"urls": ["test"]
243249
}
244250
]
245251
}
@@ -308,6 +314,12 @@ func TestDataFederation_Get(t *testing.T) {
308314
Delimiter: "/",
309315
IncludeTags: pointer(false),
310316
AdditionalStorageClasses: []*string{pointer("STANDARD_IA")},
317+
ClusterName: "test",
318+
ClusterID: "test",
319+
DefaultFormat: "test",
320+
Public: pointer(false),
321+
AllowInsecure: pointer(false),
322+
Urls: []*string{pointer("test")},
311323
},
312324
},
313325
},

0 commit comments

Comments
 (0)