Skip to content

Commit

Permalink
dependencies: updating to v0.20240209.1164150 of `github.com/hashicor…
Browse files Browse the repository at this point in the history
…p/go-azure-sdk` (hashicorp#24858)

* update go-azure-sdk to v0.20240209.1164150

* add error msgs
  • Loading branch information
catriona-m authored and rizkybiz committed Feb 29, 2024
1 parent 402940d commit 9f011aa
Show file tree
Hide file tree
Showing 48 changed files with 1,425 additions and 1,759 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.20240209.1123314
github.com/hashicorp/go-azure-sdk/sdk v0.20240209.1123314
github.com/hashicorp/go-azure-sdk/resource-manager v0.20240209.1164150
github.com/hashicorp/go-azure-sdk/sdk v0.20240209.1164150
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.20240209.1123314 h1:OtOKXi3sfxWn/flytBpBTMJU8groqm/53zJK0TD/sc0=
github.com/hashicorp/go-azure-sdk/resource-manager v0.20240209.1123314/go.mod h1:Z0ht6E49oPRJ1by2Qf+I1UgRNVLYb3MvsbHZ2KgMm8w=
github.com/hashicorp/go-azure-sdk/sdk v0.20240209.1123314 h1:HoXqXKNIRJqvLwgNkehB0Lh9PacLElhk+6aik6FuUUI=
github.com/hashicorp/go-azure-sdk/sdk v0.20240209.1123314/go.mod h1:IKIPyL+hfFWBHABKT0NOWlIEzlusiUBG0SxIfaiv278=
github.com/hashicorp/go-azure-sdk/resource-manager v0.20240209.1164150 h1:PKjhbk5+6D6i18jytV4JtqMaiTs9eAuajq5gQPbUR6A=
github.com/hashicorp/go-azure-sdk/resource-manager v0.20240209.1164150/go.mod h1:R+WGTVL/3yK6bUU5j7taU7G8j4cW/RZ65VAu0vpfxf0=
github.com/hashicorp/go-azure-sdk/sdk v0.20240209.1164150 h1:eiBz75mTIlshVNtgIl3wzE3waIQGUgD4y8D5Yf1cEWU=
github.com/hashicorp/go-azure-sdk/sdk v0.20240209.1164150/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
36 changes: 24 additions & 12 deletions internal/services/automation/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,36 @@ func NewClient(o *common.ClientOptions) (*Client, error) {
return nil, fmt.Errorf("building Automation client: %+v", err)
}

agentRegistrationInfoClient := agentregistrationinformation.NewAgentRegistrationInformationClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&agentRegistrationInfoClient.Client, o.ResourceManagerAuthorizer)
agentRegistrationInfoClient, err := agentregistrationinformation.NewAgentRegistrationInformationClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Agent Registration Info client : %+v", err)
}
o.Configure(agentRegistrationInfoClient.Client, o.Authorizers.ResourceManager)

softUpClient := softwareupdateconfiguration.NewSoftwareUpdateConfigurationClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&softUpClient.Client, o.ResourceManagerAuthorizer)
softUpClient, err := softwareupdateconfiguration.NewSoftwareUpdateConfigurationClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Soft Up client : %+v", err)
}
o.Configure(softUpClient.Client, o.Authorizers.ResourceManager)

watcherClient := watcher.NewWatcherClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&watcherClient.Client, o.ResourceManagerAuthorizer)
watcherClient, err := watcher.NewWatcherClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Watcher client : %+v", err)
}
o.Configure(watcherClient.Client, o.Authorizers.ResourceManager)

webhookClient := webhook.NewWebhookClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&webhookClient.Client, o.ResourceManagerAuthorizer)
webhookClient, err := webhook.NewWebhookClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Webhook client : %+v", err)
}
o.Configure(webhookClient.Client, o.Authorizers.ResourceManager)

return &Client{
Client: metaClient,

AgentRegistrationInfoClient: &agentRegistrationInfoClient,
SoftwareUpdateConfigClient: &softUpClient,
WatcherClient: &watcherClient,
WebhookClient: &webhookClient,
AgentRegistrationInfoClient: agentRegistrationInfoClient,
SoftwareUpdateConfigClient: softUpClient,
WatcherClient: watcherClient,
WebhookClient: webhookClient,
}, 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.

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 9f011aa

Please sign in to comment.