// Code generated by sdkgen. DO NOT EDIT.

package datatransfer

import (
	"context"

	"google.golang.org/grpc"
)

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

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

// Transfer gets TransferService client
func (d *DataTransfer) Transfer() *TransferServiceClient {
	return &TransferServiceClient{getConn: d.getConn}
}

// Endpoint gets EndpointService client
func (d *DataTransfer) Endpoint() *EndpointServiceClient {
	return &EndpointServiceClient{getConn: d.getConn}
}
