Skip to content

Commit

Permalink
storage_account_id -> account_id
Browse files Browse the repository at this point in the history
  • Loading branch information
mbfrahry committed Oct 16, 2024
1 parent 5ee3c51 commit 0671be2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions internal/services/videoindexer/account_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type AccountModel struct {
}

type StorageModel struct {
StorageAccountId string `tfschema:"storage_account_id"`
StorageAccountId string `tfschema:"account_id"`
UserAssignedIdentityId string `tfschema:"user_assigned_identity_id"`
}

Expand All @@ -56,7 +56,7 @@ func (r AccountResource) Arguments() map[string]*pluginsdk.Schema {
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"storage_account_id": {
"account_id": {
Type: pluginsdk.TypeString,
Required: true,
ForceNew: true,
Expand Down
6 changes: 3 additions & 3 deletions internal/services/videoindexer/account_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ resource "azurerm_video_indexer_account" "test" {
location = azurerm_resource_group.test.location
storage {
storage_account_id = azurerm_storage_account.test.id
account_id = azurerm_storage_account.test.id
}
identity {
Expand All @@ -133,7 +133,7 @@ resource "azurerm_video_indexer_account" "test" {
location = azurerm_resource_group.test.location
storage {
storage_account_id = azurerm_storage_account.test.id
account_id = azurerm_storage_account.test.id
user_assigned_identity_id = azurerm_user_assigned_identity.test.id
}
Expand All @@ -159,7 +159,7 @@ resource "azurerm_video_indexer_account" "test" {
location = azurerm_resource_group.test.location
storage {
storage_account_id = azurerm_storage_account.test.id
account_id = azurerm_storage_account.test.id
}
identity {
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/video_indexer_account.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ resource "azurerm_video_indexer_account" "example" {
location = "West Europe"
storage {
storage_account_id = azurerm_storage_account.example.id
account_id = azurerm_storage_account.example.id
}
identity {
Expand Down Expand Up @@ -65,7 +65,7 @@ The following arguments are supported:

A `storage` block supports the following:

* `storage_account_id` - (Required) The ID of the storage account to be associated with the Video Indexer Account. Changing this forces a new Video Indexer Account to be created.
* `account_id` - (Required) The ID of the storage account to be associated with the Video Indexer Account. Changing this forces a new Video Indexer Account to be created.

* `user_assigned_identity_id` - (Optional) The reference to the user assigned identity to use to access the Storage Account.

Expand Down

0 comments on commit 0671be2

Please sign in to comment.