Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto PR: Regenerating the Go SDK (b03a0b97b3bc1c9aadf4e57822d9403b55d67010) #863

Merged
merged 1 commit into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package v2024_01_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/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances"
"github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/virtualnetworks"
"github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager"
sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments"
)

type Client struct {
ProvisionedClusterInstances *provisionedclusterinstances.ProvisionedClusterInstancesClient
VirtualNetworks *virtualnetworks.VirtualNetworksClient
}

func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanager.Client)) (*Client, error) {
provisionedClusterInstancesClient, err := provisionedclusterinstances.NewProvisionedClusterInstancesClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building ProvisionedClusterInstances client: %+v", err)
}
configureFunc(provisionedClusterInstancesClient.Client)

virtualNetworksClient, err := virtualnetworks.NewVirtualNetworksClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building VirtualNetworks client: %+v", err)
}
configureFunc(virtualNetworksClient.Client)

return &Client{
ProvisionedClusterInstances: provisionedClusterInstancesClient,
VirtualNetworks: virtualNetworksClient,
}, nil
}
Loading
Loading