// Code generated by sdkgen. DO NOT EDIT.

package audittrails

import (
	"context"

	"google.golang.org/grpc"
)

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

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

// Trail gets TrailService client
func (a *AuditTrails) Trail() *TrailServiceClient {
	return &TrailServiceClient{getConn: a.getConn}
}
