Skip to content

Commit

Permalink
bump go client (#2099)
Browse files Browse the repository at this point in the history
  • Loading branch information
skarimo authored Sep 12, 2023
1 parent eeec314 commit e8a09da
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 deletions.
6 changes: 0 additions & 6 deletions datadog/fwprovider/framework_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 0 additions & 6 deletions datadog/tests/framework_provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -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=
Expand Down

0 comments on commit e8a09da

Please sign in to comment.