// Code generated by sdkgen. DO NOT EDIT.

package dns

import (
	"context"

	"google.golang.org/grpc"
)

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

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

// DnsZone gets DnsZoneService client
func (d *DNS) DnsZone() *DnsZoneServiceClient {
	return &DnsZoneServiceClient{getConn: d.getConn}
}
