// Code generated by sdkgen. DO NOT EDIT.

package dataproc

import (
	"context"

	"google.golang.org/grpc"
)

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

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

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

// Subcluster gets SubclusterService client
func (d *Dataproc) Subcluster() *SubclusterServiceClient {
	return &SubclusterServiceClient{getConn: d.getConn}
}

// Job gets JobService client
func (d *Dataproc) Job() *JobServiceClient {
	return &JobServiceClient{getConn: d.getConn}
}

// ResourcePreset gets ResourcePresetService client
func (d *Dataproc) ResourcePreset() *ResourcePresetServiceClient {
	return &ResourcePresetServiceClient{getConn: d.getConn}
}
