// Code generated by sdkgen. DO NOT EDIT.

package api

import (
	"context"

	"google.golang.org/grpc"
)

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

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

// Agent gets AgentService client
func (l *Loadtesting) Agent() *AgentServiceClient {
	return &AgentServiceClient{getConn: l.getConn}
}

// Config gets ConfigService client
func (l *Loadtesting) Config() *ConfigServiceClient {
	return &ConfigServiceClient{getConn: l.getConn}
}

// RegressionDashboard gets RegressionDashboardService client
func (l *Loadtesting) RegressionDashboard() *RegressionDashboardServiceClient {
	return &RegressionDashboardServiceClient{getConn: l.getConn}
}

// Report gets ReportService client
func (l *Loadtesting) Report() *ReportServiceClient {
	return &ReportServiceClient{getConn: l.getConn}
}

// Test gets TestService client
func (l *Loadtesting) Test() *TestServiceClient {
	return &TestServiceClient{getConn: l.getConn}
}
