Skip to content

Commit

Permalink
search: re-adding the client after rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff committed Dec 17, 2019
1 parent 5b5a926 commit 49f6766
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions azurerm/internal/services/search/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,23 @@ import (

type Client struct {
AdminKeysClient *search.AdminKeysClient
QueryKeysClient *search.QueryKeysClient
ServicesClient *search.ServicesClient
}

func NewClient(o *common.ClientOptions) *Client {
adminKeysClient := search.NewAdminKeysClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId)
o.ConfigureClient(&adminKeysClient.Client, o.ResourceManagerAuthorizer)

queryKeysClient := search.NewQueryKeysClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId)
o.ConfigureClient(&queryKeysClient.Client, o.ResourceManagerAuthorizer)

servicesClient := search.NewServicesClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId)
o.ConfigureClient(&servicesClient.Client, o.ResourceManagerAuthorizer)

return &Client{
AdminKeysClient: &adminKeysClient,
QueryKeysClient: &queryKeysClient,
ServicesClient: &servicesClient,
}
}

0 comments on commit 49f6766

Please sign in to comment.