-
Notifications
You must be signed in to change notification settings - Fork 165
/
privatezones.go
32 lines (24 loc) · 975 Bytes
/
privatezones.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
25
26
27
28
29
30
31
32
package privatedns
// Copyright (c) Microsoft Corporation.
// Licensed under the Apache License 2.0.
import (
mgmtprivatedns "github.com/Azure/azure-sdk-for-go/services/privatedns/mgmt/2018-09-01/privatedns"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/ARO-RP/pkg/util/azureclient"
)
// PrivateZonesClient is a minimal interface for azure PrivateZonesClient
type PrivateZonesClient interface {
PrivateZonesClientAddons
}
type privateZonesClient struct {
mgmtprivatedns.PrivateZonesClient
}
var _ PrivateZonesClient = &privateZonesClient{}
// NewPrivateZonesClient creates a new PrivateZonesClient
func NewPrivateZonesClient(environment *azureclient.AROEnvironment, subscriptionID string, authorizer autorest.Authorizer) PrivateZonesClient {
client := mgmtprivatedns.NewPrivateZonesClientWithBaseURI(environment.ResourceManagerEndpoint, subscriptionID)
client.Authorizer = authorizer
return &privateZonesClient{
PrivateZonesClient: client,
}
}