Skip to content

Commit

Permalink
Merge pull request #10561 from terraform-providers/deps/azure-sdk-v51.2
Browse files Browse the repository at this point in the history
dependencies: updating to v51.2.0 of github.com/Azure/azure-sdk-for-go
  • Loading branch information
tombuildsstuff authored Feb 15, 2021
2 parents 08a9e94 + a617276 commit 6017bd0
Show file tree
Hide file tree
Showing 1,136 changed files with 48,863 additions and 42,153 deletions.
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

0 comments on commit 6017bd0

Please sign in to comment.