Skip to content

Commit

Permalink
Merge pull request #7521 from stuartleeks/sl/adls-files
Browse files Browse the repository at this point in the history
Add azurerm_storage_data_lake_gen2_path with support for folders and ACLs
  • Loading branch information
tombuildsstuff committed Nov 19, 2020
2 parents c4f05c2 + 3db1343 commit 0e20c2a
Show file tree
Hide file tree
Showing 17 changed files with 1,689 additions and 0 deletions.
6 changes: 6 additions & 0 deletions azurerm/internal/services/storage/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/tombuildsstuff/giovanni/storage/2019-12-12/blob/blobs"
"github.com/tombuildsstuff/giovanni/storage/2019-12-12/blob/containers"
"github.com/tombuildsstuff/giovanni/storage/2019-12-12/datalakestore/filesystems"
"github.com/tombuildsstuff/giovanni/storage/2019-12-12/datalakestore/paths"
"github.com/tombuildsstuff/giovanni/storage/2019-12-12/file/directories"
"github.com/tombuildsstuff/giovanni/storage/2019-12-12/file/shares"
"github.com/tombuildsstuff/giovanni/storage/2019-12-12/queue/queues"
Expand All @@ -24,6 +25,7 @@ import (
type Client struct {
AccountsClient *storage.AccountsClient
FileSystemsClient *filesystems.Client
ADLSGen2PathsClient *paths.Client
ManagementPoliciesClient *storage.ManagementPoliciesClient
BlobServicesClient *storage.BlobServicesClient
Environment az.Environment
Expand All @@ -42,6 +44,9 @@ func NewClient(options *common.ClientOptions) *Client {
fileSystemsClient := filesystems.NewWithEnvironment(options.Environment)
options.ConfigureClient(&fileSystemsClient.Client, options.StorageAuthorizer)

adlsGen2PathsClient := paths.NewWithEnvironment(options.Environment)
options.ConfigureClient(&adlsGen2PathsClient.Client, options.StorageAuthorizer)

managementPoliciesClient := storage.NewManagementPoliciesClientWithBaseURI(options.ResourceManagerEndpoint, options.SubscriptionId)
options.ConfigureClient(&managementPoliciesClient.Client, options.ResourceManagerAuthorizer)

Expand All @@ -59,6 +64,7 @@ func NewClient(options *common.ClientOptions) *Client {
client := Client{
AccountsClient: &accountsClient,
FileSystemsClient: &fileSystemsClient,
ADLSGen2PathsClient: &adlsGen2PathsClient,
ManagementPoliciesClient: &managementPoliciesClient,
BlobServicesClient: &blobServicesClient,
Environment: options.Environment,
Expand Down
1 change: 1 addition & 0 deletions azurerm/internal/services/storage/registration.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func (r Registration) SupportedResources() map[string]*schema.Resource {
"azurerm_storage_blob": resourceArmStorageBlob(),
"azurerm_storage_container": resourceArmStorageContainer(),
"azurerm_storage_data_lake_gen2_filesystem": resourceArmStorageDataLakeGen2FileSystem(),
"azurerm_storage_data_lake_gen2_path": resourceArmStorageDataLakeGen2Path(),
"azurerm_storage_management_policy": resourceArmStorageManagementPolicy(),
"azurerm_storage_queue": resourceArmStorageQueue(),
"azurerm_storage_share": resourceArmStorageShare(),
Expand Down

0 comments on commit 0e20c2a

Please sign in to comment.