Skip to content

Commit 0f62064

Browse files
INTMDB-801: Add State and Hostnames fields to Data Federation (#477)
1 parent fc9a22b commit 0f62064

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

mongodbatlas/data_federation.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ type DataFederationInstance struct {
4747
DataProcessRegion *DataProcessRegion `json:"dataProcessRegion,omitempty"`
4848
Storage *DataFederationStorage `json:"storage,omitempty"`
4949
Name string `json:"name,omitempty"`
50+
State string `json:"state,omitempty"`
51+
Hostnames []string `json:"hostnames,omitempty"`
5052
}
5153

5254
// DataFederationStorage represents the storage configuration for a data lake.

mongodbatlas/data_federation_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,8 @@ func TestDataFederation_Create(t *testing.T) {
343343
"region" : "VIRGINIA_USA"
344344
},
345345
"name": "UserMetricData",
346+
"state": "ACTIVE",
347+
"hostnames": ["test.mongodb-dev.net"],
346348
"storage": {
347349
"databases": [
348350
{
@@ -471,7 +473,9 @@ func TestDataFederation_Create(t *testing.T) {
471473
CloudProvider: "AWS",
472474
Region: "VIRGINIA_USA",
473475
},
474-
Name: "UserMetricData",
476+
Name: "UserMetricData",
477+
State: "ACTIVE",
478+
Hostnames: []string{"test.mongodb-dev.net"},
475479
Storage: &DataFederationStorage{
476480
Databases: []*DataFederationDatabase{
477481
{

0 commit comments

Comments
 (0)