Skip to content

Commit

Permalink
registering the functions client
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff committed Apr 15, 2019
1 parent 40e2add commit 1ac0a5a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions azurerm/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ type ArmClient struct {
storageUsageClient storage.UsageClient

// Stream Analytics
streamAnalyticsFunctionsClient streamanalytics.FunctionsClient
streamAnalyticsJobsClient streamanalytics.StreamingJobsClient
streamAnalyticsInputsClient streamanalytics.InputsClient
streamAnalyticsOutputsClient streamanalytics.OutputsClient
Expand Down Expand Up @@ -1326,6 +1327,10 @@ func (c *ArmClient) registerStorageClients(endpoint, subscriptionId string, auth
}

func (c *ArmClient) registerStreamAnalyticsClients(endpoint, subscriptionId string, auth autorest.Authorizer) {
functionsClient := streamanalytics.NewFunctionsClientWithBaseURI(endpoint, subscriptionId)
c.configureClient(&functionsClient.Client, auth)
c.streamAnalyticsFunctionsClient = functionsClient

jobsClient := streamanalytics.NewStreamingJobsClientWithBaseURI(endpoint, subscriptionId)
c.configureClient(&jobsClient.Client, auth)
c.streamAnalyticsJobsClient = jobsClient
Expand Down

0 comments on commit 1ac0a5a

Please sign in to comment.