Skip to content

Commit

Permalink
update go-azure-sdk to v0.20240214.1142753 (hashicorp#24889)
Browse files Browse the repository at this point in the history
  • Loading branch information
catriona-m authored and rizkybiz committed Feb 29, 2024
1 parent 9277166 commit 8f89054
Show file tree
Hide file tree
Showing 56 changed files with 1,546 additions and 1,585 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ require (
github.com/google/go-cmp v0.5.9
github.com/google/uuid v1.3.1
github.com/hashicorp/go-azure-helpers v0.66.2
github.com/hashicorp/go-azure-sdk/resource-manager v0.20240213.1120950
github.com/hashicorp/go-azure-sdk/sdk v0.20240213.1120950
github.com/hashicorp/go-azure-sdk/resource-manager v0.20240214.1142753
github.com/hashicorp/go-azure-sdk/sdk v0.20240214.1142753
github.com/hashicorp/go-hclog v1.5.0
github.com/hashicorp/go-multierror v1.1.1
github.com/hashicorp/go-uuid v1.0.3
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brv
github.com/hashicorp/go-azure-helpers v0.12.0/go.mod h1:Zc3v4DNeX6PDdy7NljlYpnrdac1++qNW0I4U+ofGwpg=
github.com/hashicorp/go-azure-helpers v0.66.2 h1:+Pzuo7pdKl0hBXXr5ymmhs4Q40tHAo2nAvHq4WgSjx8=
github.com/hashicorp/go-azure-helpers v0.66.2/go.mod h1:kJxXrFtJKJdOEqvad8pllAe7dhP4DbN8J6sqFZe47+4=
github.com/hashicorp/go-azure-sdk/resource-manager v0.20240213.1120950 h1:7cf9ylAgm/XUdFWIr/kYSYGz0LGcoYdTDqFzRGdNcsM=
github.com/hashicorp/go-azure-sdk/resource-manager v0.20240213.1120950/go.mod h1:+DvnI11GIdnPla3R+CuTBFnrh28wBo1z4VIVPN+lspM=
github.com/hashicorp/go-azure-sdk/sdk v0.20240213.1120950 h1:u0jSAOvoRxhKlr9rISiIGFOMtB/dFQunszxLH8zwgrE=
github.com/hashicorp/go-azure-sdk/sdk v0.20240213.1120950/go.mod h1:IKIPyL+hfFWBHABKT0NOWlIEzlusiUBG0SxIfaiv278=
github.com/hashicorp/go-azure-sdk/resource-manager v0.20240214.1142753 h1:UjUwuHNaUWOJjudR9rzAnvrU6vv1FSNTjDK0RZdgRZ0=
github.com/hashicorp/go-azure-sdk/resource-manager v0.20240214.1142753/go.mod h1:Sh6keCMqwZSMyffG6/R9FTDrGWG0R3ke8vhchORZe3A=
github.com/hashicorp/go-azure-sdk/sdk v0.20240214.1142753 h1:nXVucAaGJh+pzi8c00MhTb9zQh2azCDQCwrbdDJch3U=
github.com/hashicorp/go-azure-sdk/sdk v0.20240214.1142753/go.mod h1:IKIPyL+hfFWBHABKT0NOWlIEzlusiUBG0SxIfaiv278=
github.com/hashicorp/go-checkpoint v0.5.0 h1:MFYpPZCnQqQTE18jFwSII6eUQrD/oxMFp3mlgcqk5mU=
github.com/hashicorp/go-checkpoint v0.5.0/go.mod h1:7nfLNL10NsxqO4iWuW6tWW0HjZuDrwkBuEQsVcpCOgg=
github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
Expand Down
4 changes: 3 additions & 1 deletion internal/clients/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,9 @@ func (client *Client) Build(ctx context.Context, o *common.ClientOptions) error
if client.IoTHub, err = iothub.NewClient(o); err != nil {
return fmt.Errorf("building clients for IoTHub: %+v", err)
}
client.IoTTimeSeriesInsights = timeseriesinsights.NewClient(o)
if client.IoTTimeSeriesInsights, err = timeseriesinsights.NewClient(o); err != nil {
return fmt.Errorf("building clients for IoT TimeSeries Insights: %+v", err)
}
client.KeyVault = keyvault.NewClient(o)
if client.Kusto, err = kusto.NewClient(o); err != nil {
return fmt.Errorf("building clients for Kusto: %+v", err)
Expand Down
15 changes: 10 additions & 5 deletions internal/services/iottimeseriesinsights/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,19 @@
package client

import (
"github.com/Azure/go-autorest/autorest"
"fmt"

timeseriesinsights_v2020_05_15 "github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15"
"github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager"
"github.com/hashicorp/terraform-provider-azurerm/internal/common"
)

func NewClient(o *common.ClientOptions) *timeseriesinsights_v2020_05_15.Client {
client := timeseriesinsights_v2020_05_15.NewClientWithBaseURI(o.ResourceManagerEndpoint, func(c *autorest.Client) {
o.ConfigureClient(c, o.ResourceManagerAuthorizer)
func NewClient(o *common.ClientOptions) (*timeseriesinsights_v2020_05_15.Client, error) {
client, err := timeseriesinsights_v2020_05_15.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) {
o.Configure(c, o.Authorizers.ResourceManager)
})
return &client
if err != nil {
return nil, fmt.Errorf("building client for timeseriesinsights v2020_05_15: %+v", err)
}
return client, nil
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Loading

0 comments on commit 8f89054

Please sign in to comment.