Skip to content

Commit

Permalink
use preview/authorization/mgmt/2018-09-01-preview
Browse files Browse the repository at this point in the history
  • Loading branch information
austingebauer committed Sep 6, 2023
1 parent aabd63d commit 2d29840
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"context"
"time"

"github.com/Azure/azure-sdk-for-go/services/authorization/mgmt/2020-10-01/authorization"
"github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-09-01-preview/authorization"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/date"
)
Expand Down
2 changes: 1 addition & 1 deletion api/application_msgraph.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"net/url"
"time"

"github.com/Azure/azure-sdk-for-go/services/authorization/mgmt/2020-10-01/authorization"
"github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-09-01-preview/authorization"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/date"
Expand Down
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"strings"
"time"

"github.com/Azure/azure-sdk-for-go/services/authorization/mgmt/2020-10-01/authorization"
"github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-09-01-preview/authorization"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/to"
Expand Down Expand Up @@ -175,7 +175,7 @@ func (c *client) assignRoles(ctx context.Context, spID string, roles []*AzureRol
}
ra, err := c.provider.CreateRoleAssignment(ctx, role.Scope, assignmentIDs[i],
authorization.RoleAssignmentCreateParameters{
Properties: &authorization.RoleAssignmentProperties{
RoleAssignmentProperties: &authorization.RoleAssignmentProperties{
RoleDefinitionID: &role.RoleID,
PrincipalID: &spID,
},
Expand Down
2 changes: 1 addition & 1 deletion mock_provider_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion path_roles.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"time"

"github.com/Azure/azure-sdk-for-go/services/authorization/mgmt/2020-10-01/authorization"
"github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-09-01-preview/authorization"
"github.com/Azure/go-autorest/autorest/to"
"github.com/hashicorp/vault-plugin-secrets-azure/api"
"github.com/hashicorp/vault/sdk/framework"
Expand Down
4 changes: 2 additions & 2 deletions path_service_principal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ func TestRoleAssignmentWALRollback(t *testing.T) {
roleDefs, err := provider.ListRoleDefinitions(context.Background(), fmt.Sprintf("subscriptions/%s", subscriptionID), "")
assertErrorIsNil(t, err)

defID := *ra.Properties.RoleDefinitionID
defID := *ra.RoleAssignmentPropertiesWithScope.RoleDefinitionID
found := false
for _, def := range roleDefs {
if *def.ID == defID && *def.RoleName == "Storage Blob Data Owner" {
Expand Down Expand Up @@ -992,7 +992,7 @@ func TestCredentialInteg_msgraph(t *testing.T) {
roleDefs, err := provider.ListRoleDefinitions(context.Background(), fmt.Sprintf("subscriptions/%s", subscriptionID), "")
assertErrorIsNil(t, err)

defID := *ra.Properties.RoleDefinitionID
defID := *ra.RoleAssignmentPropertiesWithScope.RoleDefinitionID
found := false
for _, def := range roleDefs {
if *def.ID == defID && *def.RoleName == "Storage Blob Data Owner" {
Expand Down
2 changes: 1 addition & 1 deletion provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"context"
"time"

"github.com/Azure/azure-sdk-for-go/services/authorization/mgmt/2020-10-01/authorization"
"github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-09-01-preview/authorization"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure/auth"
"github.com/hashicorp/vault-plugin-secrets-azure/api"
Expand Down
2 changes: 1 addition & 1 deletion provider_mock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"sync"
"time"

"github.com/Azure/azure-sdk-for-go/services/authorization/mgmt/2020-10-01/authorization"
"github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-09-01-preview/authorization"
"github.com/Azure/go-autorest/autorest/date"
"github.com/Azure/go-autorest/autorest/to"
"github.com/hashicorp/vault-plugin-secrets-azure/api"
Expand Down

0 comments on commit 2d29840

Please sign in to comment.