// Code generated by sdkgen. DO NOT EDIT.

package devices

import (
	"context"

	"google.golang.org/grpc"
)

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

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

// Device gets DeviceService client
func (d *Devices) Device() *DeviceServiceClient {
	return &DeviceServiceClient{getConn: d.getConn}
}

// Registry gets RegistryService client
func (d *Devices) Registry() *RegistryServiceClient {
	return &RegistryServiceClient{getConn: d.getConn}
}
