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.20240229.1102109 of github.com/hashicorp/go-azure-sdk #25102

Merged
merged 1 commit into from
Mar 5, 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.20240228.1142829
github.com/hashicorp/go-azure-sdk/sdk v0.20240228.1142829
github.com/hashicorp/go-azure-sdk/resource-manager v0.20240229.1102109
github.com/hashicorp/go-azure-sdk/sdk v0.20240229.1102109
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.20240228.1142829 h1:hvfN48POr1yZXJSzW71ynTVGfMQgLmX4NDJ3lPkiwgs=
github.com/hashicorp/go-azure-sdk/resource-manager v0.20240228.1142829/go.mod h1:89N0LAkz404ZWWJfW1RVl/x8Xv8RdUAuc2rqkNo7za8=
github.com/hashicorp/go-azure-sdk/sdk v0.20240228.1142829 h1:eRWPAvNi95VOZBKJYY9yikyorCLMgFpQnJZOpCZAzj4=
github.com/hashicorp/go-azure-sdk/sdk v0.20240228.1142829/go.mod h1:IKIPyL+hfFWBHABKT0NOWlIEzlusiUBG0SxIfaiv278=
github.com/hashicorp/go-azure-sdk/resource-manager v0.20240229.1102109 h1:3e4ceMmTqM2upGPdGlEynSqx1tLbQ8qzRVdzVllxp0U=
github.com/hashicorp/go-azure-sdk/resource-manager v0.20240229.1102109/go.mod h1:SnoGTze4MqMaUcNRZVtWGXlUcP5lOd7bTR1IBwToJNQ=
github.com/hashicorp/go-azure-sdk/sdk v0.20240229.1102109 h1:YoJNkpL7JV1FWVRkO0zXr7ULyuRrRZeWrQKHV2Kljdo=
github.com/hashicorp/go-azure-sdk/sdk v0.20240229.1102109/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
144 changes: 96 additions & 48 deletions internal/services/monitor/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,11 @@ func NewClient(o *common.ClientOptions) (*Client, error) {
}
o.Configure(aadDiagnosticSettingsClient.Client, o.Authorizers.ResourceManager)

AutoscaleSettingsClient := autoscalesettings.NewAutoScaleSettingsClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&AutoscaleSettingsClient.Client, o.ResourceManagerAuthorizer)
AutoscaleSettingsClient, err := autoscalesettings.NewAutoScaleSettingsClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Autoscale Settings client: %+v", err)
}
o.Configure(AutoscaleSettingsClient.Client, o.Authorizers.ResourceManager)

ActionRulesClient := alertsmanagement.NewActionRulesClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId)
o.ConfigureClient(&ActionRulesClient.Client, o.ResourceManagerAuthorizer)
Expand All @@ -82,78 +85,123 @@ func NewClient(o *common.ClientOptions) (*Client, error) {
SmartDetectorAlertRulesClient := alertsmanagement.NewSmartDetectorAlertRulesClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId)
o.ConfigureClient(&SmartDetectorAlertRulesClient.Client, o.ResourceManagerAuthorizer)

ActionGroupsClient := actiongroupsapis.NewActionGroupsAPIsClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&ActionGroupsClient.Client, o.ResourceManagerAuthorizer)
ActionGroupsClient, err := actiongroupsapis.NewActionGroupsAPIsClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Action Groups client: %+v", err)
}
o.Configure(ActionGroupsClient.Client, o.Authorizers.ResourceManager)

activityLogsClient := activitylogs.NewActivityLogsClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&activityLogsClient.Client, o.ResourceManagerAuthorizer)
activityLogsClient, err := activitylogs.NewActivityLogsClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Activity Logs client: %+v", err)
}
o.Configure(activityLogsClient.Client, o.Authorizers.ResourceManager)

ActivityLogAlertsClient := activitylogalertsapis.NewActivityLogAlertsAPIsClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&ActivityLogAlertsClient.Client, o.ResourceManagerAuthorizer)
ActivityLogAlertsClient, err := activitylogalertsapis.NewActivityLogAlertsAPIsClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Activity Log Alerts client: %+v", err)
}
o.Configure(ActivityLogAlertsClient.Client, o.Authorizers.ResourceManager)

alertPrometheusRuleGroupClient, err := prometheusrulegroups.NewPrometheusRuleGroupsClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building PrometheusRuleGroups client: %+v", err)
}
o.Configure(alertPrometheusRuleGroupClient.Client, o.Authorizers.ResourceManager)

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

DataCollectionRuleAssociationsClient := datacollectionruleassociations.NewDataCollectionRuleAssociationsClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&DataCollectionRuleAssociationsClient.Client, o.ResourceManagerAuthorizer)
DataCollectionRuleAssociationsClient, err := datacollectionruleassociations.NewDataCollectionRuleAssociationsClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Data Collection Rule Associations client: %+v", err)
}
o.Configure(DataCollectionRuleAssociationsClient.Client, o.Authorizers.ResourceManager)

DataCollectionRulesClient := datacollectionrules.NewDataCollectionRulesClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&DataCollectionRulesClient.Client, o.ResourceManagerAuthorizer)
DataCollectionRulesClient, err := datacollectionrules.NewDataCollectionRulesClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Data Collection Rules client: %+v", err)
}
o.Configure(DataCollectionRulesClient.Client, o.Authorizers.ResourceManager)

DiagnosticSettingsClient := diagnosticSettingClient.NewDiagnosticSettingsClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&DiagnosticSettingsClient.Client, o.ResourceManagerAuthorizer)
DiagnosticSettingsClient, err := diagnosticSettingClient.NewDiagnosticSettingsClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Diagnostic Settings client: %+v", err)
}
o.Configure(DiagnosticSettingsClient.Client, o.Authorizers.ResourceManager)

DiagnosticSettingsCategoryClient := diagnosticCategoryClient.NewDiagnosticSettingsCategoriesClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&DiagnosticSettingsCategoryClient.Client, o.ResourceManagerAuthorizer)
DiagnosticSettingsCategoryClient, err := diagnosticCategoryClient.NewDiagnosticSettingsCategoriesClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Diagnostic Settings Categories client: %+v", err)
}
o.Configure(DiagnosticSettingsCategoryClient.Client, o.Authorizers.ResourceManager)

LogProfilesClient := logprofiles.NewLogProfilesClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&LogProfilesClient.Client, o.ResourceManagerAuthorizer)
LogProfilesClient, err := logprofiles.NewLogProfilesClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Log Profiles client: %+v", err)
}
o.Configure(LogProfilesClient.Client, o.Authorizers.ResourceManager)

MetricAlertsClient := metricalerts.NewMetricAlertsClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&MetricAlertsClient.Client, o.ResourceManagerAuthorizer)
MetricAlertsClient, err := metricalerts.NewMetricAlertsClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Metric Alerts client: %+v", err)
}
o.Configure(MetricAlertsClient.Client, o.Authorizers.ResourceManager)

PrivateLinkScopesClient := privatelinkscopesapis.NewPrivateLinkScopesAPIsClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&PrivateLinkScopesClient.Client, o.ResourceManagerAuthorizer)
PrivateLinkScopesClient, err := privatelinkscopesapis.NewPrivateLinkScopesAPIsClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Private Link Scopes client: %+v", err)
}
o.Configure(PrivateLinkScopesClient.Client, o.Authorizers.ResourceManager)

PrivateLinkScopedResourcesClient := privatelinkscopedresources.NewPrivateLinkScopedResourcesClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&PrivateLinkScopedResourcesClient.Client, o.ResourceManagerAuthorizer)
PrivateLinkScopedResourcesClient, err := privatelinkscopedresources.NewPrivateLinkScopedResourcesClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Private Link Scoped Resources client: %+v", err)
}
o.Configure(PrivateLinkScopedResourcesClient.Client, o.Authorizers.ResourceManager)

ScheduledQueryRulesClient := scheduledqueryrules2018.NewScheduledQueryRulesClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&ScheduledQueryRulesClient.Client, o.ResourceManagerAuthorizer)
ScheduledQueryRulesClient, err := scheduledqueryrules2018.NewScheduledQueryRulesClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Scheduled Query Rules client: %+v", err)
}
o.Configure(ScheduledQueryRulesClient.Client, o.Authorizers.ResourceManager)

ScheduledQueryRulesV2Client := scheduledqueryrules.NewScheduledQueryRulesClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&ScheduledQueryRulesV2Client.Client, o.ResourceManagerAuthorizer)
ScheduledQueryRulesV2Client, err := scheduledqueryrules.NewScheduledQueryRulesClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Scheduled Query Rules V2 client: %+v", err)
}
o.Configure(ScheduledQueryRulesV2Client.Client, o.Authorizers.ResourceManager)

WorkspacesClient := azuremonitorworkspaces.NewAzureMonitorWorkspacesClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&WorkspacesClient.Client, o.ResourceManagerAuthorizer)
WorkspacesClient, err := azuremonitorworkspaces.NewAzureMonitorWorkspacesClientWithBaseURI(o.Environment.ResourceManager)
if err != nil {
return nil, fmt.Errorf("building Workspaces client: %+v", err)
}
o.Configure(WorkspacesClient.Client, o.Authorizers.ResourceManager)

return &Client{
AADDiagnosticSettingsClient: aadDiagnosticSettingsClient,
AutoscaleSettingsClient: &AutoscaleSettingsClient,
AutoscaleSettingsClient: AutoscaleSettingsClient,
ActionRulesClient: &ActionRulesClient,
SmartDetectorAlertRulesClient: &SmartDetectorAlertRulesClient,
ActionGroupsClient: &ActionGroupsClient,
ActivityLogsClient: &activityLogsClient,
ActivityLogAlertsClient: &ActivityLogAlertsClient,
ActionGroupsClient: ActionGroupsClient,
ActivityLogsClient: activityLogsClient,
ActivityLogAlertsClient: ActivityLogAlertsClient,
AlertPrometheusRuleGroupClient: alertPrometheusRuleGroupClient,
AlertProcessingRulesClient: alertProcessingRulesClient,
DataCollectionEndpointsClient: &DataCollectionEndpointsClient,
DataCollectionRuleAssociationsClient: &DataCollectionRuleAssociationsClient,
DataCollectionRulesClient: &DataCollectionRulesClient,
DiagnosticSettingsClient: &DiagnosticSettingsClient,
DiagnosticSettingsCategoryClient: &DiagnosticSettingsCategoryClient,
LogProfilesClient: &LogProfilesClient,
MetricAlertsClient: &MetricAlertsClient,
PrivateLinkScopesClient: &PrivateLinkScopesClient,
PrivateLinkScopedResourcesClient: &PrivateLinkScopedResourcesClient,
ScheduledQueryRulesClient: &ScheduledQueryRulesClient,
ScheduledQueryRulesV2Client: &ScheduledQueryRulesV2Client,
WorkspacesClient: &WorkspacesClient,
DataCollectionEndpointsClient: DataCollectionEndpointsClient,
DataCollectionRuleAssociationsClient: DataCollectionRuleAssociationsClient,
DataCollectionRulesClient: DataCollectionRulesClient,
DiagnosticSettingsClient: DiagnosticSettingsClient,
DiagnosticSettingsCategoryClient: DiagnosticSettingsCategoryClient,
LogProfilesClient: LogProfilesClient,
MetricAlertsClient: MetricAlertsClient,
PrivateLinkScopesClient: PrivateLinkScopesClient,
PrivateLinkScopedResourcesClient: PrivateLinkScopedResourcesClient,
ScheduledQueryRulesClient: ScheduledQueryRulesClient,
ScheduledQueryRulesV2Client: ScheduledQueryRulesV2Client,
WorkspacesClient: WorkspacesClient,
}, 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.

Loading
Loading