Skip to content

Commit

Permalink
dependencies: upgrading to v61.1.0 of github.com/Azure/azure-sdk-for-go
Browse files Browse the repository at this point in the history
  • Loading branch information
myc2h6o committed Jan 6, 2022
1 parent 241d3d9 commit 14b5fc0
Show file tree
Hide file tree
Showing 11 changed files with 80 additions and 42 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/hashicorp/terraform-provider-azurerm

require (
cloud.google.com/go/storage v1.16.0 // indirect
github.com/Azure/azure-sdk-for-go v60.2.0+incompatible
github.com/Azure/azure-sdk-for-go v61.1.0+incompatible
github.com/Azure/go-autorest/autorest v0.11.22
github.com/Azure/go-autorest/autorest/date v0.3.0
github.com/Azure/go-autorest/autorest/to v0.4.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7
github.com/Azure/azure-sdk-for-go v45.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
github.com/Azure/azure-sdk-for-go v56.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
github.com/Azure/azure-sdk-for-go v59.2.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
github.com/Azure/azure-sdk-for-go v60.2.0+incompatible h1:twJOQQl3um6o+1q5SSyAdLr2GCX8dJPVRNS1eKOnv54=
github.com/Azure/azure-sdk-for-go v60.2.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
github.com/Azure/azure-sdk-for-go v61.1.0+incompatible h1:Qbz3jdfkXIPjZECEuk2E7i3iLhC9Ul74pG5mQRQC+z4=
github.com/Azure/azure-sdk-for-go v61.1.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.11.3/go.mod h1:JFgpikqFJ/MleTTxwepExTKnFUKKszPS8UavbQYUMuw=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,15 @@ func expandNotificationHubAuthorizationRuleRights(manage bool, send bool, listen
rights := make([]notificationhubs.AccessRights, 0)

if manage {
rights = append(rights, notificationhubs.Manage)
rights = append(rights, notificationhubs.AccessRightsManage)
}

if send {
rights = append(rights, notificationhubs.SendEnumValue)
rights = append(rights, notificationhubs.AccessRightsSend)
}

if listen {
rights = append(rights, notificationhubs.Listen)
rights = append(rights, notificationhubs.AccessRightsListen)
}

return &rights
Expand All @@ -231,13 +231,13 @@ func flattenNotificationHubAuthorizationRuleRights(input *[]notificationhubs.Acc

for _, right := range *input {
switch right {
case notificationhubs.Manage:
case notificationhubs.AccessRightsManage:
manage = true
continue
case notificationhubs.SendEnumValue:
case notificationhubs.AccessRightsSend:
send = true
continue
case notificationhubs.Listen:
case notificationhubs.AccessRightsListen:
listen = true
continue
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ func resourceNotificationHubNamespace() *pluginsdk.Resource {
Type: pluginsdk.TypeString,
Required: true,
ValidateFunc: validation.StringInSlice([]string{
string(notificationhubs.Basic),
string(notificationhubs.Free),
string(notificationhubs.Standard),
string(notificationhubs.SkuNameBasic),
string(notificationhubs.SkuNameFree),
string(notificationhubs.SkuNameStandard),
}, false),
},

Expand All @@ -79,8 +79,8 @@ func resourceNotificationHubNamespace() *pluginsdk.Resource {
Type: pluginsdk.TypeString,
Required: true,
ValidateFunc: validation.StringInSlice([]string{
string(notificationhubs.Messaging),
string(notificationhubs.NotificationHub),
string(notificationhubs.NamespaceTypeMessaging),
string(notificationhubs.NamespaceTypeNotificationHub),
}, true),
DiffSuppressFunc: suppress.CaseDifference,
},
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.

2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# cloud.google.com/go/storage v1.16.0
## explicit
# github.com/Azure/azure-sdk-for-go v60.2.0+incompatible
# github.com/Azure/azure-sdk-for-go v61.1.0+incompatible
## explicit
github.com/Azure/azure-sdk-for-go/profiles/2017-03-09/resources/mgmt/resources
github.com/Azure/azure-sdk-for-go/services/aad/mgmt/2017-04-01/aad
Expand Down

0 comments on commit 14b5fc0

Please sign in to comment.