Skip to content

Commit

Permalink
Update SDK package version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jont828 committed Dec 1, 2021
1 parent 9b6b9ab commit 1f2b3e1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions azure/services/natgateways/natgateways.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package natgateways
import (
"context"

"github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-06-01/network"
"github.com/Azure/azure-sdk-for-go/services/network/mgmt/2021-02-01/network"
"github.com/go-logr/logr"
"github.com/pkg/errors"

Expand Down Expand Up @@ -94,7 +94,7 @@ func (s *Service) Reconcile(ctx context.Context) error {

// Delete deletes the nat gateway with the provided name.
func (s *Service) Delete(ctx context.Context) error {
ctx, span := tele.Tracer().Start(ctx, "vnetpeerings.Service.Delete")
ctx, span := tele.Tracer().Start(ctx, "natgateways.Service.Delete")
defer span.End()

ctx, cancel := context.WithTimeout(ctx, reconciler.DefaultAzureServiceReconcileTimeout)
Expand Down
2 changes: 1 addition & 1 deletion azure/services/natgateways/natgateways_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"net/http"
"testing"

"github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-06-01/network"
"github.com/Azure/azure-sdk-for-go/services/network/mgmt/2021-02-01/network"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/to"
"github.com/golang/mock/gomock"
Expand Down
4 changes: 2 additions & 2 deletions azure/services/natgateways/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package natgateways
import (
"fmt"

"github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-06-01/network"
"github.com/Azure/azure-sdk-for-go/services/network/mgmt/2021-02-01/network"
autorest "github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/to"
"github.com/pkg/errors"
Expand Down Expand Up @@ -72,7 +72,7 @@ func (s *NatGatewaySpec) Parameters(existing interface{}) (interface{}, error) {

natGatewayToCreate := network.NatGateway{
Location: to.StringPtr(s.Location),
Sku: &network.NatGatewaySku{Name: network.Standard},
Sku: &network.NatGatewaySku{Name: network.NatGatewaySkuNameStandard},
NatGatewayPropertiesFormat: &network.NatGatewayPropertiesFormat{
PublicIPAddresses: &[]network.SubResource{
{
Expand Down

0 comments on commit 1f2b3e1

Please sign in to comment.