// Code generated by sdkgen. DO NOT EDIT.

package sqlserver

import (
	"context"

	"google.golang.org/grpc"
)

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

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

// Backup gets BackupService client
func (s *SQLServer) Backup() *BackupServiceClient {
	return &BackupServiceClient{getConn: s.getConn}
}

// Cluster gets ClusterService client
func (s *SQLServer) Cluster() *ClusterServiceClient {
	return &ClusterServiceClient{getConn: s.getConn}
}

// Database gets DatabaseService client
func (s *SQLServer) Database() *DatabaseServiceClient {
	return &DatabaseServiceClient{getConn: s.getConn}
}

// ResourcePreset gets ResourcePresetService client
func (s *SQLServer) ResourcePreset() *ResourcePresetServiceClient {
	return &ResourcePresetServiceClient{getConn: s.getConn}
}

// User gets UserService client
func (s *SQLServer) User() *UserServiceClient {
	return &UserServiceClient{getConn: s.getConn}
}
