Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dependencies: updating to <latest> of github.com/hashicorp/go-azure-sdk/sdk #103

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
2 changes: 1 addition & 1 deletion storage/2020-08-04/blob/blobs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion storage/2020-08-04/blob/containers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion storage/2020-08-04/datalakestore/filesystems/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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{},
Expand Down
2 changes: 1 addition & 1 deletion storage/2020-08-04/file/directories/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion storage/2020-08-04/file/files/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down
2 changes: 1 addition & 1 deletion storage/2020-08-04/file/shares/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion storage/2020-08-04/queue/messages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion storage/2020-08-04/queue/queues/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion storage/2020-08-04/table/entities/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion storage/2020-08-04/table/tables/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion storage/2023-11-03/blob/blobs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion storage/2023-11-03/blob/containers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion storage/2023-11-03/datalakestore/filesystems/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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{},
Expand Down
2 changes: 1 addition & 1 deletion storage/2023-11-03/file/directories/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion storage/2023-11-03/file/files/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down
2 changes: 1 addition & 1 deletion storage/2023-11-03/file/shares/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion storage/2023-11-03/queue/messages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion storage/2023-11-03/queue/queues/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion storage/2023-11-03/table/entities/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion storage/2023-11-03/table/tables/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions storage/internal/testhelpers/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,14 @@ 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 {
auth, err := auth.NewSharedKeyAuthorizer(data.StorageAccountName, data.StorageAccountKey, keyType)
if err != nil {
return fmt.Errorf("building SharedKey authorizer: %+v", err)
}
input.WithAuthorizer(auth)
input.SetAuthorizer(auth)
return nil
}
Loading