From 1f2b3e1067fbc3289784f49199b8d10c974e68ff Mon Sep 17 00:00:00 2001 From: Jonathan Tong Date: Tue, 16 Nov 2021 16:23:44 -0500 Subject: [PATCH] Update SDK package version --- azure/services/natgateways/natgateways.go | 4 ++-- azure/services/natgateways/natgateways_test.go | 2 +- azure/services/natgateways/spec.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/azure/services/natgateways/natgateways.go b/azure/services/natgateways/natgateways.go index 41454073373..ea65e712edd 100644 --- a/azure/services/natgateways/natgateways.go +++ b/azure/services/natgateways/natgateways.go @@ -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" @@ -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) diff --git a/azure/services/natgateways/natgateways_test.go b/azure/services/natgateways/natgateways_test.go index d41d743a7bf..64a67d54a52 100644 --- a/azure/services/natgateways/natgateways_test.go +++ b/azure/services/natgateways/natgateways_test.go @@ -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" diff --git a/azure/services/natgateways/spec.go b/azure/services/natgateways/spec.go index d16128f5ec0..1733c8d7454 100644 --- a/azure/services/natgateways/spec.go +++ b/azure/services/natgateways/spec.go @@ -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" @@ -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{ {