-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #999 from hashicorp/auto-pr/ea0d8cdb
Auto PR: Regenerating the Go SDK (74bd244)
- Loading branch information
Showing
220 changed files
with
17,944 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package v2024_03_01 | ||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2024-03-01/signalr" | ||
"github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" | ||
sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" | ||
) | ||
|
||
type Client struct { | ||
SignalR *signalr.SignalRClient | ||
} | ||
|
||
func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanager.Client)) (*Client, error) { | ||
signalRClient, err := signalr.NewSignalRClientWithBaseURI(sdkApi) | ||
if err != nil { | ||
return nil, fmt.Errorf("building SignalR client: %+v", err) | ||
} | ||
configureFunc(signalRClient.Client) | ||
|
||
return &Client{ | ||
SignalR: signalRClient, | ||
}, nil | ||
} |
Oops, something went wrong.