From e8a09dacaf263ff6d209bb837729b8173cd6dd16 Mon Sep 17 00:00:00 2001 From: skarimo <40482491+skarimo@users.noreply.github.com> Date: Tue, 12 Sep 2023 14:31:25 -0400 Subject: [PATCH] bump go client (#2099) --- datadog/fwprovider/framework_provider.go | 6 ------ datadog/tests/framework_provider_test.go | 6 ------ go.mod | 2 +- go.sum | 4 ++-- 4 files changed, 3 insertions(+), 15 deletions(-) diff --git a/datadog/fwprovider/framework_provider.go b/datadog/fwprovider/framework_provider.go index 2054acf43..74c6dbd36 100644 --- a/datadog/fwprovider/framework_provider.go +++ b/datadog/fwprovider/framework_provider.go @@ -349,12 +349,6 @@ func defaultConfigureFunc(p *FrameworkProvider, request *provider.ConfigureReque ddClientConfig.UserAgent = utils.GetUserAgentFramework(ddClientConfig.UserAgent, request.TerraformVersion) ddClientConfig.Debug = logging.IsDebugOrHigher() - // Temp - enable Downtime v2 which is currently in private beta - ddClientConfig.SetUnstableOperationEnabled("v2.CancelDowntime", true) - ddClientConfig.SetUnstableOperationEnabled("v2.CreateDowntime", true) - ddClientConfig.SetUnstableOperationEnabled("v2.GetDowntime", true) - ddClientConfig.SetUnstableOperationEnabled("v2.UpdateDowntime", true) - if !config.ApiUrl.IsNull() && config.ApiUrl.ValueString() != "" { parsedAPIURL, parseErr := url.Parse(config.ApiUrl.ValueString()) if parseErr != nil { diff --git a/datadog/tests/framework_provider_test.go b/datadog/tests/framework_provider_test.go index 064b476fb..db7de98ac 100644 --- a/datadog/tests/framework_provider_test.go +++ b/datadog/tests/framework_provider_test.go @@ -34,12 +34,6 @@ func buildFrameworkDatadogClient(ctx context.Context, httpClient *http.Client) * //Datadog API config.HTTPClient config := common.NewConfiguration() - // Temp - enable Downtime v2 which is currently in private beta - config.SetUnstableOperationEnabled("v2.CancelDowntime", true) - config.SetUnstableOperationEnabled("v2.CreateDowntime", true) - config.SetUnstableOperationEnabled("v2.GetDowntime", true) - config.SetUnstableOperationEnabled("v2.UpdateDowntime", true) - if ctx.Value("http_retry_enable") == true { config.RetryConfiguration.EnableRetry = true } diff --git a/go.mod b/go.mod index 2487234a6..af2a8c19e 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.16.1-0.20230831134252-8a2ecace0920 + github.com/DataDog/datadog-api-client-go/v2 v2.17.0 github.com/DataDog/dd-sdk-go-testing v0.0.0-20211116174033-1cd082e322ad github.com/dnaeon/go-vcr v1.0.1 github.com/hashicorp/go-cleanhttp v0.5.2 diff --git a/go.sum b/go.sum index e8fd972e2..2ecbf465d 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +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.16.1-0.20230831134252-8a2ecace0920 h1:coE+poJvFIhpoUd044OQ1I/mHZntpVBvzcVWaXmpshk= -github.com/DataDog/datadog-api-client-go/v2 v2.16.1-0.20230831134252-8a2ecace0920/go.mod h1:uJd7G1BONVIyiVw684VMn2XYI1FfN1tx4bRGenAf2bo= +github.com/DataDog/datadog-api-client-go/v2 v2.17.0 h1:0jI5TotLfWgsydMg/QTHkuoqNCFKSMorjU3ki/fbVI8= +github.com/DataDog/datadog-api-client-go/v2 v2.17.0/go.mod h1:uJd7G1BONVIyiVw684VMn2XYI1FfN1tx4bRGenAf2bo= 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=