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 v51.2.0 of github.com/Azure/azure-sdk-for-go #10561

Merged
merged 2 commits into from
Feb 15, 2021
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func resourceIotCentralAppCreate(d *schema.ResourceData, meta interface{}) error
return fmt.Errorf("Error creating Iot Central Application. %v", err)
}

if err = future.Future.WaitForCompletionRef(ctx, client.Client); err != nil {
if err = future.WaitForCompletionRef(ctx, client.Client); err != nil {
return fmt.Errorf("Error waiting for creating IoT Central Application %q (Resource Group %q): %+v", name, resourceGroup, err)
}

Expand Down
6 changes: 3 additions & 3 deletions azurerm/internal/services/sentinel/sentinel_alert_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ func assertAlertRuleKind(rule securityinsight.BasicAlertRule, expectKind securit
var kind securityinsight.AlertRuleKind
switch rule.(type) {
case securityinsight.FusionAlertRule:
kind = securityinsight.Fusion
kind = securityinsight.AlertRuleKindFusion
case securityinsight.MicrosoftSecurityIncidentCreationAlertRule:
kind = securityinsight.MicrosoftSecurityIncidentCreation
kind = securityinsight.AlertRuleKindMicrosoftSecurityIncidentCreation
case securityinsight.ScheduledAlertRule:
kind = securityinsight.Scheduled
kind = securityinsight.AlertRuleKindScheduled
}
if expectKind != kind {
return fmt.Errorf("Sentinel Alert Rule has mismatched kind, expected: %q, got %q", expectKind, kind)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func resourceSentinelAlertRuleFusion() *schema.Resource {
Importer: azSchema.ValidateResourceIDPriorToImportThen(func(id string) error {
_, err := parse.AlertRuleID(id)
return err
}, importSentinelAlertRule(securityinsight.Fusion)),
}, importSentinelAlertRule(securityinsight.AlertRuleKindFusion)),

Timeouts: &schema.ResourceTimeout{
Create: schema.DefaultTimeout(30 * time.Minute),
Expand Down Expand Up @@ -110,7 +110,7 @@ func resourceSentinelAlertRuleFusionCreateUpdate(d *schema.ResourceData, meta in
return fmt.Errorf("retrieving Sentinel Alert Rule Fusion %q: %+v", id, err)
}

if err := assertAlertRuleKind(resp.Value, securityinsight.Fusion); err != nil {
if err := assertAlertRuleKind(resp.Value, securityinsight.AlertRuleKindFusion); err != nil {
return fmt.Errorf("asserting alert rule of %q: %+v", id, err)
}
params.Etag = resp.Value.(securityinsight.FusionAlertRule).Etag
Expand Down Expand Up @@ -146,7 +146,7 @@ func resourceSentinelAlertRuleFusionRead(d *schema.ResourceData, meta interface{
return fmt.Errorf("retrieving Sentinel Alert Rule Fusion %q: %+v", id, err)
}

if err := assertAlertRuleKind(resp.Value, securityinsight.Fusion); err != nil {
if err := assertAlertRuleKind(resp.Value, securityinsight.AlertRuleKindFusion); err != nil {
return fmt.Errorf("asserting alert rule of %q: %+v", id, err)
}
rule := resp.Value.(securityinsight.FusionAlertRule)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func resourceSentinelAlertRuleMsSecurityIncident() *schema.Resource {
Importer: azSchema.ValidateResourceIDPriorToImportThen(func(id string) error {
_, err := parse.AlertRuleID(id)
return err
}, importSentinelAlertRule(securityinsight.MicrosoftSecurityIncidentCreation)),
}, importSentinelAlertRule(securityinsight.AlertRuleKindMicrosoftSecurityIncidentCreation)),

Timeouts: &schema.ResourceTimeout{
Create: schema.DefaultTimeout(30 * time.Minute),
Expand Down Expand Up @@ -200,7 +200,7 @@ func resourceSentinelAlertRuleMsSecurityIncidentCreateUpdate(d *schema.ResourceD
return fmt.Errorf("retrieving Sentinel Alert Rule Ms Security Incident %q: %+v", id, err)
}

if err := assertAlertRuleKind(resp.Value, securityinsight.MicrosoftSecurityIncidentCreation); err != nil {
if err := assertAlertRuleKind(resp.Value, securityinsight.AlertRuleKindMicrosoftSecurityIncidentCreation); err != nil {
return fmt.Errorf("asserting alert rule of %q: %+v", id, err)
}
param.Etag = resp.Value.(securityinsight.MicrosoftSecurityIncidentCreationAlertRule).Etag
Expand Down Expand Up @@ -236,7 +236,7 @@ func resourceSentinelAlertRuleMsSecurityIncidentRead(d *schema.ResourceData, met
return fmt.Errorf("retrieving Sentinel Alert Rule Ms Security Incident %q: %+v", id, err)
}

if err := assertAlertRuleKind(resp.Value, securityinsight.MicrosoftSecurityIncidentCreation); err != nil {
if err := assertAlertRuleKind(resp.Value, securityinsight.AlertRuleKindMicrosoftSecurityIncidentCreation); err != nil {
return fmt.Errorf("asserting alert rule of %q: %+v", id, err)
}
rule := resp.Value.(securityinsight.MicrosoftSecurityIncidentCreationAlertRule)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func resourceSentinelAlertRuleScheduled() *schema.Resource {
Importer: azSchema.ValidateResourceIDPriorToImportThen(func(id string) error {
_, err := parse.AlertRuleID(id)
return err
}, importSentinelAlertRule(securityinsight.Scheduled)),
}, importSentinelAlertRule(securityinsight.AlertRuleKindScheduled)),

Timeouts: &schema.ResourceTimeout{
Create: schema.DefaultTimeout(30 * time.Minute),
Expand Down Expand Up @@ -331,7 +331,7 @@ func resourceSentinelAlertRuleScheduledCreateUpdate(d *schema.ResourceData, meta
return fmt.Errorf("retrieving Sentinel Alert Rule Scheduled %q: %+v", id, err)
}

if err := assertAlertRuleKind(resp.Value, securityinsight.Scheduled); err != nil {
if err := assertAlertRuleKind(resp.Value, securityinsight.AlertRuleKindScheduled); err != nil {
return fmt.Errorf("asserting alert rule of %q: %+v", id, err)
}
param.Etag = resp.Value.(securityinsight.ScheduledAlertRule).Etag
Expand Down Expand Up @@ -367,7 +367,7 @@ func resourceSentinelAlertRuleScheduledRead(d *schema.ResourceData, meta interfa
return fmt.Errorf("retrieving Sentinel Alert Rule Scheduled %q: %+v", id, err)
}

if err := assertAlertRuleKind(resp.Value, securityinsight.Scheduled); err != nil {
if err := assertAlertRuleKind(resp.Value, securityinsight.AlertRuleKindScheduled); err != nil {
return fmt.Errorf("asserting alert rule of %q: %+v", id, err)
}
rule := resp.Value.(securityinsight.ScheduledAlertRule)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module github.com/terraform-providers/terraform-provider-azurerm

require (
github.com/Azure/azure-sdk-for-go v49.2.0+incompatible
github.com/Azure/azure-sdk-for-go v51.2.0+incompatible
github.com/Azure/go-autorest/autorest v0.11.17
github.com/Azure/go-autorest/autorest/adal v0.9.10 // indirect
github.com/Azure/go-autorest/autorest/date v0.3.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ github.com/Azure/azure-sdk-for-go v42.1.0+incompatible h1:ZNliGuvGKIHedRdz8W9BTM
github.com/Azure/azure-sdk-for-go v42.1.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
github.com/Azure/azure-sdk-for-go v45.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
github.com/Azure/azure-sdk-for-go v47.1.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
github.com/Azure/azure-sdk-for-go v49.2.0+incompatible h1:23a1GeBzTLeT53StH9NDJyCMhxCH3awTZaw9ZYBcq78=
github.com/Azure/azure-sdk-for-go v49.2.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
github.com/Azure/azure-sdk-for-go v51.2.0+incompatible h1:qQNk//OOHK0GZcgMMgdJ4tZuuh0zcOeUkpTxjvKFpSQ=
github.com/Azure/azure-sdk-for-go v51.2.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs=
github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24=
github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI=
Expand Down

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.

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.

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