Skip to content

Commit

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

* update go-azure-sdk to v0.20240209.1123314

* sort imports
  • Loading branch information
catriona-m authored Feb 9, 2024
1 parent e6ca542 commit a24235f
Show file tree
Hide file tree
Showing 46 changed files with 1,165 additions and 1,215 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.20240208.1095436
github.com/hashicorp/go-azure-sdk/sdk v0.20240208.1095436
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-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.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-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-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 @@ -489,7 +489,9 @@ func (client *Client) Build(ctx context.Context, o *common.ClientOptions) error
if client.MachineLearning, err = machinelearning.NewClient(o); err != nil {
return fmt.Errorf("building clients for Machine Learning: %+v", err)
}
client.Maintenance = maintenance.NewClient(o)
if client.Maintenance, err = maintenance.NewClient(o); err != nil {
return fmt.Errorf("building clients for Maintenance: %+v", err)
}
if client.ManagedApplication, err = managedapplication.NewClient(o); err != nil {
return fmt.Errorf("building clients for Managed Applications: %+v", err)
}
Expand Down
33 changes: 22 additions & 11 deletions internal/services/maintenance/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/maintenance/2022-07-01-preview/configurationassignments"
"github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2022-07-01-preview/maintenanceconfigurations"
"github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2022-07-01-preview/publicmaintenanceconfigurations"
Expand All @@ -16,19 +18,28 @@ type Client struct {
PublicConfigurationsClient *publicmaintenanceconfigurations.PublicMaintenanceConfigurationsClient
}

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

configurationAssignmentsClient := configurationassignments.NewConfigurationAssignmentsClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&configurationAssignmentsClient.Client, o.ResourceManagerAuthorizer)
configurationAssignmentsClient, err := configurationassignments.NewConfigurationAssignmentsClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Configuration Assignments client : %+v", err)
}
o.Configure(configurationAssignmentsClient.Client, o.Authorizers.ResourceManager)

publicConfigurationsClient := publicmaintenanceconfigurations.NewPublicMaintenanceConfigurationsClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&publicConfigurationsClient.Client, o.ResourceManagerAuthorizer)
publicConfigurationsClient, err := publicmaintenanceconfigurations.NewPublicMaintenanceConfigurationsClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Public Configuration Assignments client : %+v", err)
}
o.Configure(publicConfigurationsClient.Client, o.Authorizers.ResourceManager)

return &Client{
ConfigurationsClient: &configurationsClient,
ConfigurationAssignmentsClient: &configurationAssignmentsClient,
PublicConfigurationsClient: &publicConfigurationsClient,
}
ConfigurationsClient: configurationsClient,
ConfigurationAssignmentsClient: configurationAssignmentsClient,
PublicConfigurationsClient: publicConfigurationsClient,
}, 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 a24235f

Please sign in to comment.