From d7633efdb8edf526889e96de0772371b1437d18e Mon Sep 17 00:00:00 2001 From: Abhishek Date: Thu, 29 Feb 2024 15:56:27 +0530 Subject: [PATCH] lint fix for client name --- nutanix/config.go | 2 +- nutanix/sdks/v4/networking/networking.go | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/nutanix/config.go b/nutanix/config.go index 98e67837d..ad549b44c 100644 --- a/nutanix/config.go +++ b/nutanix/config.go @@ -96,5 +96,5 @@ type Client struct { WaitTimeout int64 FoundationCentral *foundation_central.Client Era *era.Client - NetworkingAPI *networking.NetworkingClient + NetworkingAPI *networking.Client } diff --git a/nutanix/sdks/v4/networking/networking.go b/nutanix/sdks/v4/networking/networking.go index c836639f2..36ba82010 100644 --- a/nutanix/sdks/v4/networking/networking.go +++ b/nutanix/sdks/v4/networking/networking.go @@ -6,14 +6,13 @@ import ( "github.com/terraform-providers/terraform-provider-nutanix/nutanix/client" ) -type NetworkingClient struct { +type Client struct { SubnetAPIInstance *api.SubnetApi VpcAPIInstance *api.VpcApi FloatingIPAPIInstance *api.FloatingIpApi } -//nolint:all -func NewNetworkingClient(credentials client.Credentials) (*NetworkingClient, error) { +func NewNetworkingClient(credentials client.Credentials) (*Client, error) { var baseClient *network.ApiClient // check if all required fields are present. Else create an empty client @@ -29,7 +28,7 @@ func NewNetworkingClient(credentials client.Credentials) (*NetworkingClient, err baseClient = pcClient } - f := &NetworkingClient{ + f := &Client{ SubnetAPIInstance: api.NewSubnetApi(baseClient), VpcAPIInstance: api.NewVpcApi(baseClient), FloatingIPAPIInstance: api.NewFloatingIpApi(baseClient),