// Code generated by sdkgen. DO NOT EDIT.

package ytsaurus

import (
	"context"

	"google.golang.org/grpc"
)

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

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

// Cluster gets ClusterService client
func (y *YTsaurus) Cluster() *ClusterServiceClient {
	return &ClusterServiceClient{getConn: y.getConn}
}
