Skip to content

Commit

Permalink
Merge pull request #17384 from hashicorp/r/servicefabricmanaged-to-go…
Browse files Browse the repository at this point in the history
…-azure-sdk

servicefabricmanaged: refactoring to use `go-azure-sdk`
  • Loading branch information
tombuildsstuff authored Jun 27, 2022
2 parents e052b8d + accdf14 commit 2025236
Show file tree
Hide file tree
Showing 217 changed files with 409 additions and 12,673 deletions.
9 changes: 2 additions & 7 deletions internal/services/servicefabricmanaged/client/client.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
package client

import (
"github.com/Azure/go-autorest/autorest"
"github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster"
"github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype"
"github.com/hashicorp/terraform-provider-azurerm/internal/common"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/servicefabricmanaged/sdk/2021-05-01/managedcluster"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/servicefabricmanaged/sdk/2021-05-01/nodetype"
)

type Client struct {
ManagedClusterClient *managedcluster.ManagedClusterClient
NodeTypeClient *nodetype.NodeTypeClient
tokenFunc func(endpoint string) (autorest.Authorizer, error)
configureClientFunc func(c *autorest.Client, authorizer autorest.Authorizer)
}

func NewClient(o *common.ClientOptions) *Client {
Expand All @@ -24,7 +21,5 @@ func NewClient(o *common.ClientOptions) *Client {
return &Client{
ManagedClusterClient: &managedCluster,
NodeTypeClient: &nodeType,
tokenFunc: o.TokenFunc,
configureClientFunc: o.ConfigureClient,
}
}

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions internal/services/servicefabricmanaged/resourceids.go

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 2025236

Please sign in to comment.