diff --git a/datadog/resource_datadog_dashboard.go b/datadog/resource_datadog_dashboard.go index d7d45ecd6..99509b45f 100644 --- a/datadog/resource_datadog_dashboard.go +++ b/datadog/resource_datadog_dashboard.go @@ -8031,10 +8031,7 @@ func buildDatadogToplistStyle(terraformToplistStyle map[string]interface{}) data if t, ok := v["type"].(string); ok && len(t) != 0 { if t == "stacked" { datadogToplistStyle.SetDisplay(datadogV1.ToplistWidgetDisplay{ - ToplistWidgetStacked: datadogV1.NewToplistWidgetStacked( - datadogV1.TOPLISTWIDGETLEGEND_AUTOMATIC, - datadogV1.TOPLISTWIDGETSTACKEDTYPE_STACKED, - ), + ToplistWidgetStacked: datadogV1.NewToplistWidgetStackedWithDefaults(), }) } else if t == "flat" { datadogToplistStyle.SetDisplay(datadogV1.ToplistWidgetDisplay{ diff --git a/go.mod b/go.mod index c2dd8d399..0af793633 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,7 @@ module github.com/terraform-providers/terraform-provider-datadog require ( - github.com/DataDog/datadog-api-client-go/v2 v2.31.1-0.20241015091326-8142b5c59978 + github.com/DataDog/datadog-api-client-go/v2 v2.31.1-0.20241015145846-232436a03559 github.com/DataDog/dd-sdk-go-testing v0.0.0-20211116174033-1cd082e322ad github.com/Masterminds/semver/v3 v3.1.1 github.com/google/go-cmp v0.5.9 @@ -96,4 +96,4 @@ require ( google.golang.org/protobuf v1.33.0 // indirect ) -go 1.23 +go 1.23 \ No newline at end of file diff --git a/go.sum b/go.sum index 87d3ba75d..325d1aee4 100644 --- a/go.sum +++ b/go.sum @@ -1,27 +1,7 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/DataDog/datadog-api-client-go/v2 v2.30.1-0.20240911195025-92128b15dc8c h1:+yokfxyjea3W7KpyCTeTIKqPFNeGEAubmI0RCO7sBdE= -github.com/DataDog/datadog-api-client-go/v2 v2.30.1-0.20240911195025-92128b15dc8c/go.mod h1:QKOu6vscsh87fMY1lHfLEmNSunyXImj8BUaUWJXOehc= -github.com/DataDog/datadog-api-client-go/v2 v2.30.1-0.20240912113408-b130fc40a2e0 h1:GD/Nkks0pcSRLt41ptyebR1gigA/ly61iJRGhNByFEA= -github.com/DataDog/datadog-api-client-go/v2 v2.30.1-0.20240912113408-b130fc40a2e0/go.mod h1:QKOu6vscsh87fMY1lHfLEmNSunyXImj8BUaUWJXOehc= -github.com/DataDog/datadog-api-client-go/v2 v2.30.1-0.20240912115910-5ed7055da702 h1:AhqkRKUNlslY6sn/+SbFz2QEIqk39vymqh2IQwu9/U0= -github.com/DataDog/datadog-api-client-go/v2 v2.30.1-0.20240912115910-5ed7055da702/go.mod h1:QKOu6vscsh87fMY1lHfLEmNSunyXImj8BUaUWJXOehc= -github.com/DataDog/datadog-api-client-go/v2 v2.30.1-0.20240912135525-758a35b09407 h1:jxTW79Yvsn+34Nkew9tFprF9QtkfZrFfR6KWJHbYMcs= -github.com/DataDog/datadog-api-client-go/v2 v2.30.1-0.20240912135525-758a35b09407/go.mod h1:QKOu6vscsh87fMY1lHfLEmNSunyXImj8BUaUWJXOehc= -github.com/DataDog/datadog-api-client-go/v2 v2.30.1-0.20240913075644-c0bd784c7562 h1:mGtZkw0rQoVd4qO+3y918S6xFYwTlq9tmeIDSK0tKfg= -github.com/DataDog/datadog-api-client-go/v2 v2.30.1-0.20240913075644-c0bd784c7562/go.mod h1:QKOu6vscsh87fMY1lHfLEmNSunyXImj8BUaUWJXOehc= -github.com/DataDog/datadog-api-client-go/v2 v2.30.1-0.20240913113358-49405396bb85 h1:E5uG9KDYFzkKeEmNn/Lu1VV4NldbXVXpOQ/DwU7Cl9U= -github.com/DataDog/datadog-api-client-go/v2 v2.30.1-0.20240913113358-49405396bb85/go.mod h1:QKOu6vscsh87fMY1lHfLEmNSunyXImj8BUaUWJXOehc= -github.com/DataDog/datadog-api-client-go/v2 v2.30.1-0.20240913115908-53c669e5ee0c h1:eI1JqynhY1vQbAf4isrFJGTgOIP/5fPB+gwVQmAZnQI= -github.com/DataDog/datadog-api-client-go/v2 v2.30.1-0.20240913115908-53c669e5ee0c/go.mod h1:QKOu6vscsh87fMY1lHfLEmNSunyXImj8BUaUWJXOehc= -github.com/DataDog/datadog-api-client-go/v2 v2.31.1-0.20241008140801-e02c46d693b3 h1:dsO4PLeYTedLTSvJV/WxUkxTSjaVEOwjA8t0cIuUFJQ= -github.com/DataDog/datadog-api-client-go/v2 v2.31.1-0.20241008140801-e02c46d693b3/go.mod h1:d3tOEgUd2kfsr9uuHQdY+nXrWp4uikgTgVCPdKNK30U= -github.com/DataDog/datadog-api-client-go/v2 v2.31.1-0.20241015080524-c31d058d9cf4 h1:p9wvL7mykEDFa+kl6YL48kveJScUwTINBW5S5ldJqiw= -github.com/DataDog/datadog-api-client-go/v2 v2.31.1-0.20241015080524-c31d058d9cf4/go.mod h1:d3tOEgUd2kfsr9uuHQdY+nXrWp4uikgTgVCPdKNK30U= -github.com/DataDog/datadog-api-client-go/v2 v2.31.1-0.20241015091326-8142b5c59978 h1:nj5d3zw/drUtUgqULAgvki3VO0sCz9+LXLy62aWRSq8= -github.com/DataDog/datadog-api-client-go/v2 v2.31.1-0.20241015091326-8142b5c59978/go.mod h1:d3tOEgUd2kfsr9uuHQdY+nXrWp4uikgTgVCPdKNK30U= -github.com/DataDog/datadog-api-client-go/v2 v2.31.0 h1:JfJhYlHfLzvauI8u6h23smTooWYe6quNhhg9gpTszWY= -github.com/DataDog/datadog-api-client-go/v2 v2.31.0/go.mod h1:d3tOEgUd2kfsr9uuHQdY+nXrWp4uikgTgVCPdKNK30U= +github.com/DataDog/datadog-api-client-go/v2 v2.31.1-0.20241015145846-232436a03559 h1:puARPt0ChvKQSplleU8FQK7xCffHgj3w6smBuK9RuQY= +github.com/DataDog/datadog-api-client-go/v2 v2.31.1-0.20241015145846-232436a03559/go.mod h1:d3tOEgUd2kfsr9uuHQdY+nXrWp4uikgTgVCPdKNK30U= github.com/DataDog/datadog-go v4.4.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/DataDog/datadog-go v4.8.3+incompatible h1:fNGaYSuObuQb5nzeTQqowRAd9bpDIRRV4/gUtIBjh8Q= github.com/DataDog/datadog-go v4.8.3+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= @@ -405,4 +385,4 @@ gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= \ No newline at end of file