Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dependencies: updating to v0.20240208.1095436 of github.com/hashicorp/go-azure-sdk #24819

Merged
merged 4 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.20240206.1080438
github.com/hashicorp/go-azure-sdk/sdk v0.20240206.1080438
github.com/hashicorp/go-azure-sdk/resource-manager v0.20240208.1095436
github.com/hashicorp/go-azure-sdk/sdk v0.20240208.1095436
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.20240206.1080438 h1:1TX0auCiI2JoPc9xZNVuFZp2UqSXifbqUVaRdMnbVZ0=
github.com/hashicorp/go-azure-sdk/resource-manager v0.20240206.1080438/go.mod h1:FDOLG1MTj+n6GA5ZiBh94eVbmsj0Hx+0CbQvPH8jbe4=
github.com/hashicorp/go-azure-sdk/sdk v0.20240206.1080438 h1:g6BVcMdt2HPyhPEjux82HxG6hbkO/J49+lXUC/EPJ0Y=
github.com/hashicorp/go-azure-sdk/sdk v0.20240206.1080438/go.mod h1:IKIPyL+hfFWBHABKT0NOWlIEzlusiUBG0SxIfaiv278=
github.com/hashicorp/go-azure-sdk/resource-manager v0.20240208.1095436 h1:awCrGPNyprHpMrXzV2y6Q/lu42CF5NSp2MWlBbPKZuk=
github.com/hashicorp/go-azure-sdk/resource-manager v0.20240208.1095436/go.mod h1:rrFiMJS+OGzFAF8E/ChLWHqb/BVifPUR/KGbghLX1as=
github.com/hashicorp/go-azure-sdk/sdk v0.20240208.1095436 h1:uKvcPpjG3HPexQYztAXUiIzZUSHOA7VZ3Cggt9eVOw0=
github.com/hashicorp/go-azure-sdk/sdk v0.20240208.1095436/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
9 changes: 5 additions & 4 deletions internal/clients/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -606,16 +606,17 @@ func (client *Client) Build(ctx context.Context, o *common.ClientOptions) error
}
client.Sql = sql.NewClient(o)
if client.Storage, err = storage.NewClient(o); err != nil {
return fmt.Errorf("building clients for StorageMover: %+v", err)
return fmt.Errorf("building clients for Storage: %+v", err)
}
if client.StorageCache, err = storageCache.NewClient(o); err != nil {
return fmt.Errorf("building clients for Storage Cache: %+v", err)
}
if client.StorageMover, err = storageMover.NewClient(o); err != nil {
return fmt.Errorf("building Storage for StorageMover: %+v", err)
return fmt.Errorf("building clients for StorageMover: %+v", err)
}
if client.StreamAnalytics, err = streamAnalytics.NewClient(o); err != nil {
return fmt.Errorf("building clients for StreamAnalytics: %+v", err)
}
client.StreamAnalytics = streamAnalytics.NewClient(o)

if client.Subscription, err = subscription.NewClient(o); err != nil {
return fmt.Errorf("building clients for Subscription: %+v", err)
}
Expand Down
69 changes: 46 additions & 23 deletions internal/services/streamanalytics/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
package client

import (
"fmt"

"github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters"
"github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions"
"github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs"
Expand All @@ -24,35 +26,56 @@ type Client struct {
EndpointsClient *privateendpoints.PrivateEndpointsClient
}

func NewClient(o *common.ClientOptions) *Client {
functionsClient := functions.NewFunctionsClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&functionsClient.Client, o.ResourceManagerAuthorizer)
func NewClient(o *common.ClientOptions) (*Client, error) {
functionsClient, err := functions.NewFunctionsClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Functions client : %+v", err)
}
o.Configure(functionsClient.Client, o.Authorizers.ResourceManager)

jobsClient := streamingjobs.NewStreamingJobsClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&jobsClient.Client, o.ResourceManagerAuthorizer)
jobsClient, err := streamingjobs.NewStreamingJobsClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Jobs client : %+v", err)
}
o.Configure(jobsClient.Client, o.Authorizers.ResourceManager)

inputsClient := inputs.NewInputsClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&inputsClient.Client, o.ResourceManagerAuthorizer)
inputsClient, err := inputs.NewInputsClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Inputs client : %+v", err)
}
o.Configure(inputsClient.Client, o.Authorizers.ResourceManager)

outputsClient := outputs.NewOutputsClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&outputsClient.Client, o.ResourceManagerAuthorizer)
outputsClient, err := outputs.NewOutputsClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Outputs client : %+v", err)
}
o.Configure(outputsClient.Client, o.Authorizers.ResourceManager)

transformationsClient := transformations.NewTransformationsClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&transformationsClient.Client, o.ResourceManagerAuthorizer)
transformationsClient, err := transformations.NewTransformationsClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Transformations client : %+v", err)
}
o.Configure(transformationsClient.Client, o.Authorizers.ResourceManager)

clustersClient := clusters.NewClustersClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&clustersClient.Client, o.ResourceManagerAuthorizer)
clustersClient, err := clusters.NewClustersClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Clusters client : %+v", err)
}
o.Configure(clustersClient.Client, o.Authorizers.ResourceManager)

endpointsClient := privateendpoints.NewPrivateEndpointsClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&endpointsClient.Client, o.ResourceManagerAuthorizer)
endpointsClient, err := privateendpoints.NewPrivateEndpointsClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Endpoints client : %+v", err)
}
o.Configure(endpointsClient.Client, o.Authorizers.ResourceManager)

return &Client{
FunctionsClient: &functionsClient,
JobsClient: &jobsClient,
InputsClient: &inputsClient,
OutputsClient: &outputsClient,
TransformationsClient: &transformationsClient,
ClustersClient: &clustersClient,
EndpointsClient: &endpointsClient,
}
FunctionsClient: functionsClient,
JobsClient: jobsClient,
InputsClient: inputsClient,
OutputsClient: outputsClient,
TransformationsClient: transformationsClient,
ClustersClient: clustersClient,
EndpointsClient: endpointsClient,
}, 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.

Loading
Loading