// Code generated by sdkgen. DO NOT EDIT.

package privatelink

import (
	"context"

	"google.golang.org/grpc"
)

// PrivateLink provides access to "privatelink" component of Yandex.Cloud
type PrivateLink struct {
	getConn func(ctx context.Context) (*grpc.ClientConn, error)
}

// NewPrivateLink creates instance of PrivateLink
func NewPrivateLink(g func(ctx context.Context) (*grpc.ClientConn, error)) *PrivateLink {
	return &PrivateLink{g}
}

// PrivateEndpoint gets PrivateEndpointService client
func (p *PrivateLink) PrivateEndpoint() *PrivateEndpointServiceClient {
	return &PrivateEndpointServiceClient{getConn: p.getConn}
}
