diff --git a/mongodbatlas/project_settings.go b/mongodbatlas/project_settings.go index a95c89c5e..12a4b5a02 100644 --- a/mongodbatlas/project_settings.go +++ b/mongodbatlas/project_settings.go @@ -25,6 +25,7 @@ const projectSettingsBasePath = projectBasePath + "/%s/settings" type ProjectSettings struct { IsCollectDatabaseSpecificsStatisticsEnabled *bool `json:"isCollectDatabaseSpecificsStatisticsEnabled,omitempty"` IsDataExplorerEnabled *bool `json:"isDataExplorerEnabled,omitempty"` + IsExtendedStorageSizesEnabled *bool `json:"isExtendedStorageSizesEnabled,omitempty"` IsPerformanceAdvisorEnabled *bool `json:"isPerformanceAdvisorEnabled,omitempty"` IsRealtimePerformancePanelEnabled *bool `json:"isRealtimePerformancePanelEnabled,omitempty"` IsSchemaAdvisorEnabled *bool `json:"isSchemaAdvisorEnabled,omitempty"` diff --git a/mongodbatlas/project_settings_test.go b/mongodbatlas/project_settings_test.go index 972004133..fe5381e34 100644 --- a/mongodbatlas/project_settings_test.go +++ b/mongodbatlas/project_settings_test.go @@ -29,8 +29,9 @@ func TestProjects_GetProjectSettings(t *testing.T) { mux.HandleFunc(fmt.Sprintf("/api/atlas/v1.0/groups/%s/settings", groupID), func(w http.ResponseWriter, r *http.Request) { testMethod(t, r, http.MethodGet) _, _ = fmt.Fprint(w, `{ - "isCollectDatabaseSpecificsStatisticsEnabled": true, + "isCollectDatabaseSpecificsStatisticsEnabled": true, "isDataExplorerEnabled": true, + "isExtendedStorageSizesEnabled": true, "isPerformanceAdvisorEnabled": true, "isRealtimePerformancePanelEnabled": true, "isSchemaAdvisorEnabled": true @@ -45,6 +46,7 @@ func TestProjects_GetProjectSettings(t *testing.T) { expected := &ProjectSettings{ IsCollectDatabaseSpecificsStatisticsEnabled: pointer(true), IsDataExplorerEnabled: pointer(true), + IsExtendedStorageSizesEnabled: pointer(true), IsPerformanceAdvisorEnabled: pointer(true), IsRealtimePerformancePanelEnabled: pointer(true), IsSchemaAdvisorEnabled: pointer(true), @@ -62,8 +64,9 @@ func TestProjects_UpdateProjectSettings(t *testing.T) { mux.HandleFunc(fmt.Sprintf("/api/atlas/v1.0/groups/%s/settings", groupID), func(w http.ResponseWriter, r *http.Request) { testMethod(t, r, http.MethodPatch) _, _ = fmt.Fprint(w, `{ - "isCollectDatabaseSpecificsStatisticsEnabled": true, + "isCollectDatabaseSpecificsStatisticsEnabled": true, "isDataExplorerEnabled": true, + "isExtendedStorageSizesEnabled": true, "isPerformanceAdvisorEnabled": true, "isRealtimePerformancePanelEnabled": true, "isSchemaAdvisorEnabled": true @@ -73,6 +76,7 @@ func TestProjects_UpdateProjectSettings(t *testing.T) { body := &ProjectSettings{ IsCollectDatabaseSpecificsStatisticsEnabled: pointer(true), IsDataExplorerEnabled: pointer(true), + IsExtendedStorageSizesEnabled: pointer(true), IsPerformanceAdvisorEnabled: pointer(true), IsRealtimePerformancePanelEnabled: pointer(true), IsSchemaAdvisorEnabled: pointer(true), @@ -86,6 +90,7 @@ func TestProjects_UpdateProjectSettings(t *testing.T) { expected := &ProjectSettings{ IsCollectDatabaseSpecificsStatisticsEnabled: pointer(true), IsDataExplorerEnabled: pointer(true), + IsExtendedStorageSizesEnabled: pointer(true), IsPerformanceAdvisorEnabled: pointer(true), IsRealtimePerformancePanelEnabled: pointer(true), IsSchemaAdvisorEnabled: pointer(true),