-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
client.go
24 lines (19 loc) · 864 Bytes
/
client.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package client
import (
"github.com/Azure/azure-sdk-for-go/services/relay/mgmt/2017-04-01/relay"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/common"
)
type Client struct {
HybridConnectionsClient *relay.HybridConnectionsClient
NamespacesClient *relay.NamespacesClient
}
func NewClient(o *common.ClientOptions) *Client {
hybridConnectionsClient := relay.NewHybridConnectionsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId)
o.ConfigureClient(&hybridConnectionsClient.Client, o.ResourceManagerAuthorizer)
namespacesClient := relay.NewNamespacesClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId)
o.ConfigureClient(&namespacesClient.Client, o.ResourceManagerAuthorizer)
return &Client{
HybridConnectionsClient: &hybridConnectionsClient,
NamespacesClient: &namespacesClient,
}
}