Skip to content

Commit

Permalink
feat: Add missing fields to Automation Config (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruhickey committed Aug 24, 2023
1 parent c029e1a commit 29497ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions opsmngr/automation_config.go
Expand Up @@ -72,15 +72,18 @@ func (s *AutomationServiceOp) UpdateConfig(ctx context.Context, groupID string,
type AutomationConfig struct {
AgentVersion *map[string]interface{} `json:"agentVersion,omitempty"`
AtlasProxies *[]interface{} `json:"atlasProxies,omitempty"`
AtlasUISes []*map[string]interface{} `json:"atlasUISes"` //nolint:tagliatelle // correct from API
Filebeat *map[string]interface{} `json:"filebeat,omitempty"`
Auth Auth `json:"auth"`
BackupVersions []*ConfigVersion `json:"backupVersions"`
Balancer *map[string]interface{} `json:"balancer"`
ClusterWideConfigurations *map[string]interface{} `json:"clusterWideConfigurations,omitempty"`
CPSModules []*map[string]interface{} `json:"cpsModules"`
DBCheckModules []*map[string]interface{} `json:"dbCheckModules"`
IndexConfigs []*IndexConfig `json:"indexConfigs"`
Kerberos *map[string]interface{} `json:"kerberos,omitempty"`
LDAP *map[string]interface{} `json:"ldap,omitempty"`
MaintainedEnvoys []*map[string]interface{} `json:"maintainedEnvoys"`
MongoDBToolsVersion *map[string]interface{} `json:"mongoDbToolsVersion,omitempty"`
MongoDBVersions []*map[string]interface{} `json:"mongoDbVersions,omitempty"`
MongoSQLDs []*map[string]interface{} `json:"mongosqlds"` //nolint:tagliatelle // correct from API
Expand Down Expand Up @@ -332,6 +335,7 @@ type AuditLog struct {

// LogRotate part of the internal Process struct.
type LogRotate struct {
MaxUncompressed *int `json:"maxUncompressed,omitempty"`
NumTotal *int `json:"numTotal,omitempty"`
NumUncompressed *int `json:"numUncompressed,omitempty"`
PercentOfDiskspace *float64 `json:"percentOfDiskspace,omitempty"`
Expand Down
3 changes: 3 additions & 0 deletions opsmngr/automation_config_test.go
Expand Up @@ -664,10 +664,13 @@ func TestAutomation_UpdateMongoDBUserEmptyMechanism(t *testing.T) {
},
},
},
"atlasUISes": interface{}(nil),
"backupVersions": interface{}(nil),
"balancer": interface{}(nil),
"cpsModules": interface{}(nil),
"dbCheckModules": interface{}(nil),
"indexConfigs": interface{}(nil),
"maintainedEnvoys": interface{}(nil),
"mongosqlds": interface{}(nil),
"mongots": interface{}(nil),
"onlineArchiveModules": interface{}(nil),
Expand Down

0 comments on commit 29497ae

Please sign in to comment.