-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12715 from terraform-providers/f/msi-embedded-sdk
MSI: refactoring to use an Embedded SDK
- Loading branch information
Showing
37 changed files
with
1,293 additions
and
2,091 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113 changes: 0 additions & 113 deletions
113
azurerm/internal/services/msi/parse/user_assigned_identity.go
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
azurerm/internal/services/msi/parse/user_assigned_identity_id.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package parse | ||
|
||
import "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/msi/sdk/managedidentity" | ||
|
||
// these are here primarily to enable migration over | ||
|
||
func UserAssignedIdentityID(input string) (*managedidentity.UserAssignedIdentitiesId, error) { | ||
return managedidentity.ParseUserAssignedIdentitiesID(input) | ||
} | ||
|
||
func UserAssignedIdentityIDInsensitively(input string) (*managedidentity.UserAssignedIdentitiesId, error) { | ||
return managedidentity.ParseUserAssignedIdentitiesIDInsensitively(input) | ||
} |
229 changes: 0 additions & 229 deletions
229
azurerm/internal/services/msi/parse/user_assigned_identity_test.go
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
azurerm/internal/services/msi/sdk/managedidentity/client.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package managedidentity | ||
|
||
import "github.com/Azure/go-autorest/autorest" | ||
|
||
type ManagedIdentityClient struct { | ||
Client autorest.Client | ||
baseUri string | ||
} | ||
|
||
func NewManagedIdentityClientWithBaseURI(endpoint string) ManagedIdentityClient { | ||
return ManagedIdentityClient{ | ||
Client: autorest.NewClientWithUserAgent(userAgent()), | ||
baseUri: endpoint, | ||
} | ||
} |
Oops, something went wrong.