Skip to content

Commit

Permalink
dependencies: updating to v0.20221024.1162143 of `github.com/hashic…
Browse files Browse the repository at this point in the history
…orp/go-azure-sdk` (#18949)
  • Loading branch information
tombuildsstuff authored Oct 24, 2022
1 parent 4d0ccec commit f0935aa
Show file tree
Hide file tree
Showing 11 changed files with 71 additions and 67 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require (
github.com/google/go-cmp v0.5.8
github.com/google/uuid v1.1.2
github.com/hashicorp/go-azure-helpers v0.44.0
github.com/hashicorp/go-azure-sdk v0.20221018.1075906
github.com/hashicorp/go-azure-sdk v0.20221024.1162143
github.com/hashicorp/go-multierror v1.1.1
github.com/hashicorp/go-uuid v1.0.3
github.com/hashicorp/go-version v1.6.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brv
github.com/hashicorp/go-azure-helpers v0.12.0/go.mod h1:Zc3v4DNeX6PDdy7NljlYpnrdac1++qNW0I4U+ofGwpg=
github.com/hashicorp/go-azure-helpers v0.44.0 h1:ETmIJnKJpdyRtNvKv9azJRYlwNde/5C6SUjHsGajpMw=
github.com/hashicorp/go-azure-helpers v0.44.0/go.mod h1:WiJNl0fD6PoM/MYuGTZ8yuzIaXQR3m2H2g6+EJ8nSwc=
github.com/hashicorp/go-azure-sdk v0.20221018.1075906 h1:qrkhXQEQbbt3WSqjzcqAXo7x5IcWPX4X9rz5s3+2+Wk=
github.com/hashicorp/go-azure-sdk v0.20221018.1075906/go.mod h1:BEjoURzcFwd+K3MqkbOt9jArIIrsqpBQ2Gz6DdemFIs=
github.com/hashicorp/go-azure-sdk v0.20221024.1162143 h1:YlckjIw3ztpFH9GSkmuQJxKnRPnUoSaOl2EuyjlOgtA=
github.com/hashicorp/go-azure-sdk v0.20221024.1162143/go.mod h1:BEjoURzcFwd+K3MqkbOt9jArIIrsqpBQ2Gz6DdemFIs=
github.com/hashicorp/go-checkpoint v0.5.0 h1:MFYpPZCnQqQTE18jFwSII6eUQrD/oxMFp3mlgcqk5mU=
github.com/hashicorp/go-checkpoint v0.5.0/go.mod h1:7nfLNL10NsxqO4iWuW6tWW0HjZuDrwkBuEQsVcpCOgg=
github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func resourcePortalTenantConfigurationCreateUpdate(d *pluginsdk.ResourceData, me
// since this is an operation on a Tenant (which doesn't expose any configurable values).
id := parse.NewPortalTenantConfigurationID("default")
if d.IsNewResource() {
existing, err := client.TenantConfigurationsGet(ctx)
existing, err := client.Get(ctx)
if err != nil {
if !response.WasNotFound(existing.HttpResponse) {
return fmt.Errorf("checking for existing %s: %+v", id, err)
Expand All @@ -71,7 +71,7 @@ func resourcePortalTenantConfigurationCreateUpdate(d *pluginsdk.ResourceData, me
},
}

if _, err := client.TenantConfigurationsCreate(ctx, parameters); err != nil {
if _, err := client.Create(ctx, parameters); err != nil {
return fmt.Errorf("creating/updating %s: %+v", id, err)
}

Expand All @@ -90,7 +90,7 @@ func resourcePortalTenantConfigurationRead(d *pluginsdk.ResourceData, meta inter
return err
}

resp, err := client.TenantConfigurationsGet(ctx)
resp, err := client.Get(ctx)
if err != nil {
if response.WasNotFound(resp.HttpResponse) {
log.Printf("[INFO] %s was not found - removing from state!", *id)
Expand Down Expand Up @@ -119,7 +119,7 @@ func resourcePortalTenantConfigurationDelete(d *pluginsdk.ResourceData, meta int
return err
}

if _, err := client.TenantConfigurationsDelete(ctx); err != nil {
if _, err := client.Delete(ctx); err != nil {
return fmt.Errorf("deleting %s: %+v", *id, err)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (r PortalTenantConfigurationResource) Exists(ctx context.Context, client *c
return nil, err
}

resp, err := client.Portal.TenantConfigurationsClient.TenantConfigurationsGet(ctx)
resp, err := client.Portal.TenantConfigurationsClient.Get(ctx)
if err != nil {
return nil, fmt.Errorf("retrieving %s: %v", *id, err)
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ github.com/hashicorp/go-azure-helpers/resourcemanager/zones
github.com/hashicorp/go-azure-helpers/resourceproviders
github.com/hashicorp/go-azure-helpers/sender
github.com/hashicorp/go-azure-helpers/storage
# github.com/hashicorp/go-azure-sdk v0.20221018.1075906
# github.com/hashicorp/go-azure-sdk v0.20221024.1162143
## explicit; go 1.18
github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices
github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview
Expand Down

0 comments on commit f0935aa

Please sign in to comment.