From a73e209462feb15ddedc594511bf2a49188c2331 Mon Sep 17 00:00:00 2001 From: Tom Bamford Date: Thu, 8 Feb 2024 14:07:53 +0000 Subject: [PATCH] (rebase) dependencies: updating to of `github.com/hashicorp/go-azure-sdk/sdk` --- go.mod | 2 +- go.sum | 2 ++ storage/2020-08-04/blob/blobs/README.md | 2 +- storage/2020-08-04/blob/containers/README.md | 2 +- storage/2020-08-04/datalakestore/filesystems/README.md | 2 +- storage/2020-08-04/file/directories/README.md | 2 +- storage/2020-08-04/file/files/README.md | 2 +- storage/2020-08-04/file/shares/README.md | 2 +- storage/2020-08-04/queue/messages/README.md | 2 +- storage/2020-08-04/queue/queues/README.md | 2 +- storage/2020-08-04/table/entities/README.md | 2 +- storage/2020-08-04/table/tables/README.md | 2 +- storage/2023-11-03/blob/blobs/README.md | 2 +- storage/2023-11-03/blob/containers/README.md | 2 +- storage/2023-11-03/datalakestore/filesystems/README.md | 2 +- storage/2023-11-03/file/directories/README.md | 2 +- storage/2023-11-03/file/files/README.md | 2 +- storage/2023-11-03/file/shares/README.md | 2 +- storage/2023-11-03/queue/messages/README.md | 2 +- storage/2023-11-03/queue/queues/README.md | 2 +- storage/2023-11-03/table/entities/README.md | 2 +- storage/2023-11-03/table/tables/README.md | 2 +- storage/internal/testhelpers/client.go | 4 ++-- 23 files changed, 25 insertions(+), 23 deletions(-) diff --git a/go.mod b/go.mod index d99edcf..5a64734 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/google/uuid v1.4.0 github.com/hashicorp/go-azure-helpers v0.66.1 github.com/hashicorp/go-azure-sdk/resource-manager v0.20240125.1111756 - github.com/hashicorp/go-azure-sdk/sdk v0.20240125.1115017 + github.com/hashicorp/go-azure-sdk/sdk v0.20240201.1165155-0.20240208140307-c38948e21a08 github.com/stretchr/testify v1.8.4 ) diff --git a/go.sum b/go.sum index 09f50a6..f4ced89 100644 --- a/go.sum +++ b/go.sum @@ -33,6 +33,8 @@ github.com/hashicorp/go-azure-sdk/resource-manager v0.20240125.1111756 h1:foZtDG github.com/hashicorp/go-azure-sdk/resource-manager v0.20240125.1111756/go.mod h1:yWRLLjG7PVThIY1NLeLNhp0VtTewOCFrIVIZl/LgPBc= github.com/hashicorp/go-azure-sdk/sdk v0.20240125.1115017 h1:9to4aRjOrmfm0XVBp5IqNFnjtpChVKSdskNa88qfZzc= github.com/hashicorp/go-azure-sdk/sdk v0.20240125.1115017/go.mod h1:6jgkzx26qtPndLSW5u7pKIw4m3iiFiLnHlp7yDQ2Crc= +github.com/hashicorp/go-azure-sdk/sdk v0.20240201.1165155-0.20240208140307-c38948e21a08 h1:zgmGM36cajkRHLL/kURY6f2qMdJrXq0SnktZHPgYAe4= +github.com/hashicorp/go-azure-sdk/sdk v0.20240201.1165155-0.20240208140307-c38948e21a08/go.mod h1:6jgkzx26qtPndLSW5u7pKIw4m3iiFiLnHlp7yDQ2Crc= github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 h1:1/D3zfFHttUKaCaGKZ/dR2roBXv0vKbSCnssIldfQdI= diff --git a/storage/2020-08-04/blob/blobs/README.md b/storage/2020-08-04/blob/blobs/README.md index 4afa786..aa5ebd1 100644 --- a/storage/2020-08-04/blob/blobs/README.md +++ b/storage/2020-08-04/blob/blobs/README.md @@ -37,7 +37,7 @@ func Example() error { if err != nil { return fmt.Errorf("building SharedKey authorizer: %+v", err) } - blobClient.Client.WithAuthorizer(auth) + blobClient.Client.SetAuthorizer(auth) ctx := context.TODO() copyInput := blobs.CopyInput{ diff --git a/storage/2020-08-04/blob/containers/README.md b/storage/2020-08-04/blob/containers/README.md index fcebd03..c935287 100644 --- a/storage/2020-08-04/blob/containers/README.md +++ b/storage/2020-08-04/blob/containers/README.md @@ -37,7 +37,7 @@ func Example() error { if err != nil { return fmt.Errorf("building SharedKey authorizer: %+v", err) } - containersClient.Client.WithAuthorizer(auth) + containersClient.Client.SetAuthorizer(auth) ctx := context.TODO() createInput := containers.CreateInput{ diff --git a/storage/2020-08-04/datalakestore/filesystems/README.md b/storage/2020-08-04/datalakestore/filesystems/README.md index 2ba3786..df369cc 100644 --- a/storage/2020-08-04/datalakestore/filesystems/README.md +++ b/storage/2020-08-04/datalakestore/filesystems/README.md @@ -38,7 +38,7 @@ func Example() error { if err != nil { return fmt.Errorf("building client for environment: %+v", err) } - fileSystemsClient.Client.WithAuthorizer(auth) + fileSystemsClient.Client.SetAuthorizer(auth) input := filesystems.CreateInput{ Properties: map[string]string{}, diff --git a/storage/2020-08-04/file/directories/README.md b/storage/2020-08-04/file/directories/README.md index 0ec880f..602f0a6 100644 --- a/storage/2020-08-04/file/directories/README.md +++ b/storage/2020-08-04/file/directories/README.md @@ -40,7 +40,7 @@ func Example() error { if err != nil { return fmt.Errorf("building client for environment: %+v", err) } - directoriesClient.Client.WithAuthorizer(auth) + directoriesClient.Client.SetAuthorizer(auth) ctx := context.TODO() metadata := map[string]string{ diff --git a/storage/2020-08-04/file/files/README.md b/storage/2020-08-04/file/files/README.md index 9070e23..dc8df5f 100644 --- a/storage/2020-08-04/file/files/README.md +++ b/storage/2020-08-04/file/files/README.md @@ -41,7 +41,7 @@ func Example() error { if err != nil { return fmt.Errorf("building client for environment: %+v", err) } - filesClient.Client.WithAuthorizer(auth) + filesClient.Client.SetAuthorizer(auth) ctx := context.TODO() input := files.CreateInput{} diff --git a/storage/2020-08-04/file/shares/README.md b/storage/2020-08-04/file/shares/README.md index 314895f..68b41e2 100644 --- a/storage/2020-08-04/file/shares/README.md +++ b/storage/2020-08-04/file/shares/README.md @@ -35,7 +35,7 @@ func Example() error { if err != nil { return fmt.Errorf("building SharedKey authorizer: %+v", err) } - sharesClient.Client.WithAuthorizer(auth) + sharesClient.Client.SetAuthorizer(auth) ctx := context.TODO() input := shares.CreateInput{ diff --git a/storage/2020-08-04/queue/messages/README.md b/storage/2020-08-04/queue/messages/README.md index 18674d0..35b9336 100644 --- a/storage/2020-08-04/queue/messages/README.md +++ b/storage/2020-08-04/queue/messages/README.md @@ -35,7 +35,7 @@ func Example() error { if err != nil { return fmt.Errorf("building client for environment: %+v", err) } - messagesClient.Client.WithAuthorizer(auth) + messagesClient.Client.SetAuthorizer(auth) ctx := context.TODO() input := messages.PutInput{ diff --git a/storage/2020-08-04/queue/queues/README.md b/storage/2020-08-04/queue/queues/README.md index c423c71..7c9fd1a 100644 --- a/storage/2020-08-04/queue/queues/README.md +++ b/storage/2020-08-04/queue/queues/README.md @@ -35,7 +35,7 @@ func Example() error { if err != nil { return fmt.Errorf("building client for environment: %+v", err) } - queuesClient.Client.WithAuthorizer(auth) + queuesClient.Client.SetAuthorizer(auth) ctx := context.TODO() metadata := map[string]string{ diff --git a/storage/2020-08-04/table/entities/README.md b/storage/2020-08-04/table/entities/README.md index 91c2096..e98e21e 100644 --- a/storage/2020-08-04/table/entities/README.md +++ b/storage/2020-08-04/table/entities/README.md @@ -34,7 +34,7 @@ func Example() error { if err != nil { return fmt.Errorf("building client for environment: %+v", err) } - entitiesClient.Client.WithAuthorizer(auth) + entitiesClient.Client.SetAuthorizer(auth) ctx := context.TODO() input := entities.InsertEntityInput{ diff --git a/storage/2020-08-04/table/tables/README.md b/storage/2020-08-04/table/tables/README.md index 2ef6621..a6b5ee2 100644 --- a/storage/2020-08-04/table/tables/README.md +++ b/storage/2020-08-04/table/tables/README.md @@ -33,7 +33,7 @@ func Example() error { if err != nil { return fmt.Errorf("building client for environment: %+v", err) } - tablesClient.Client.WithAuthorizer(auth) + tablesClient.Client.SetAuthorizer(auth) ctx := context.TODO() if _, err := tablesClient.Create(ctx, tableName); err != nil { diff --git a/storage/2023-11-03/blob/blobs/README.md b/storage/2023-11-03/blob/blobs/README.md index 276ddc3..0b26e1c 100644 --- a/storage/2023-11-03/blob/blobs/README.md +++ b/storage/2023-11-03/blob/blobs/README.md @@ -37,7 +37,7 @@ func Example() error { if err != nil { return fmt.Errorf("building SharedKey authorizer: %+v", err) } - blobClient.Client.WithAuthorizer(auth) + blobClient.Client.SetAuthorizer(auth) ctx := context.TODO() copyInput := blobs.CopyInput{ diff --git a/storage/2023-11-03/blob/containers/README.md b/storage/2023-11-03/blob/containers/README.md index 24b243e..6283cd7 100644 --- a/storage/2023-11-03/blob/containers/README.md +++ b/storage/2023-11-03/blob/containers/README.md @@ -37,7 +37,7 @@ func Example() error { if err != nil { return fmt.Errorf("building SharedKey authorizer: %+v", err) } - containersClient.Client.WithAuthorizer(auth) + containersClient.Client.SetAuthorizer(auth) ctx := context.TODO() createInput := containers.CreateInput{ diff --git a/storage/2023-11-03/datalakestore/filesystems/README.md b/storage/2023-11-03/datalakestore/filesystems/README.md index cfbc2b6..ac35149 100644 --- a/storage/2023-11-03/datalakestore/filesystems/README.md +++ b/storage/2023-11-03/datalakestore/filesystems/README.md @@ -37,7 +37,7 @@ func Example() error { if err != nil { return fmt.Errorf("building client for environment: %+v", err) } - fileSystemsClient.Client.WithAuthorizer(auth) + fileSystemsClient.Client.SetAuthorizer(auth) input := filesystems.CreateInput{ Properties: map[string]string{}, diff --git a/storage/2023-11-03/file/directories/README.md b/storage/2023-11-03/file/directories/README.md index 4dd905c..d81f7b0 100644 --- a/storage/2023-11-03/file/directories/README.md +++ b/storage/2023-11-03/file/directories/README.md @@ -40,7 +40,7 @@ func Example() error { if err != nil { return fmt.Errorf("building client for environment: %+v", err) } - directoriesClient.Client.WithAuthorizer(auth) + directoriesClient.Client.SetAuthorizer(auth) ctx := context.TODO() metadata := map[string]string{ diff --git a/storage/2023-11-03/file/files/README.md b/storage/2023-11-03/file/files/README.md index a8126e6..0ac6146 100644 --- a/storage/2023-11-03/file/files/README.md +++ b/storage/2023-11-03/file/files/README.md @@ -41,7 +41,7 @@ func Example() error { if err != nil { return fmt.Errorf("building client for environment: %+v", err) } - filesClient.Client.WithAuthorizer(auth) + filesClient.Client.SetAuthorizer(auth) ctx := context.TODO() input := files.CreateInput{} diff --git a/storage/2023-11-03/file/shares/README.md b/storage/2023-11-03/file/shares/README.md index 0a7067d..5ec0fb4 100644 --- a/storage/2023-11-03/file/shares/README.md +++ b/storage/2023-11-03/file/shares/README.md @@ -35,7 +35,7 @@ func Example() error { if err != nil { return fmt.Errorf("building SharedKey authorizer: %+v", err) } - sharesClient.Client.WithAuthorizer(auth) + sharesClient.Client.SetAuthorizer(auth) ctx := context.TODO() input := shares.CreateInput{ diff --git a/storage/2023-11-03/queue/messages/README.md b/storage/2023-11-03/queue/messages/README.md index f2c1ba2..5373017 100644 --- a/storage/2023-11-03/queue/messages/README.md +++ b/storage/2023-11-03/queue/messages/README.md @@ -35,7 +35,7 @@ func Example() error { if err != nil { return fmt.Errorf("building client for environment: %+v", err) } - messagesClient.Client.WithAuthorizer(auth) + messagesClient.Client.SetAuthorizer(auth) ctx := context.TODO() input := messages.PutInput{ diff --git a/storage/2023-11-03/queue/queues/README.md b/storage/2023-11-03/queue/queues/README.md index d18203f..745cc6d 100644 --- a/storage/2023-11-03/queue/queues/README.md +++ b/storage/2023-11-03/queue/queues/README.md @@ -35,7 +35,7 @@ func Example() error { if err != nil { return fmt.Errorf("building client for environment: %+v", err) } - queuesClient.Client.WithAuthorizer(auth) + queuesClient.Client.SetAuthorizer(auth) ctx := context.TODO() metadata := map[string]string{ diff --git a/storage/2023-11-03/table/entities/README.md b/storage/2023-11-03/table/entities/README.md index edaeb89..06b519b 100644 --- a/storage/2023-11-03/table/entities/README.md +++ b/storage/2023-11-03/table/entities/README.md @@ -34,7 +34,7 @@ func Example() error { if err != nil { return fmt.Errorf("building client for environment: %+v", err) } - entitiesClient.Client.WithAuthorizer(auth) + entitiesClient.Client.SetAuthorizer(auth) ctx := context.TODO() input := entities.InsertEntityInput{ diff --git a/storage/2023-11-03/table/tables/README.md b/storage/2023-11-03/table/tables/README.md index 1f99d18..65a459f 100644 --- a/storage/2023-11-03/table/tables/README.md +++ b/storage/2023-11-03/table/tables/README.md @@ -33,7 +33,7 @@ func Example() error { if err != nil { return fmt.Errorf("building client for environment: %+v", err) } - tablesClient.Client.WithAuthorizer(auth) + tablesClient.Client.SetAuthorizer(auth) ctx := context.TODO() if _, err := tablesClient.Create(ctx, tableName); err != nil { diff --git a/storage/internal/testhelpers/client.go b/storage/internal/testhelpers/client.go index b611892..7116a9b 100644 --- a/storage/internal/testhelpers/client.go +++ b/storage/internal/testhelpers/client.go @@ -180,7 +180,7 @@ func (c Client) Configure(client *client.Client, authorizer auth.Authorizer) { } func (c Client) PrepareWithResourceManagerAuth(input *storage.BaseClient) { - input.WithAuthorizer(c.storageAuth) + input.SetAuthorizer(c.storageAuth) } func (c Client) PrepareWithSharedKeyAuth(input *storage.BaseClient, data *TestResources, keyType auth.SharedKeyType) error { @@ -188,6 +188,6 @@ func (c Client) PrepareWithSharedKeyAuth(input *storage.BaseClient, data *TestRe if err != nil { return fmt.Errorf("building SharedKey authorizer: %+v", err) } - input.WithAuthorizer(auth) + input.SetAuthorizer(auth) return nil }