// Code generated by sdkgen. DO NOT EDIT.

package devices

import (
	"context"

	"google.golang.org/grpc"
)

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

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

// DeviceData gets DeviceDataService client
func (d *Data) DeviceData() *DeviceDataServiceClient {
	return &DeviceDataServiceClient{getConn: d.getConn}
}

// RegistryData gets RegistryDataService client
func (d *Data) RegistryData() *RegistryDataServiceClient {
	return &RegistryDataServiceClient{getConn: d.getConn}
}
