// Code generated by sdkgen. DO NOT EDIT.

package spqr

import (
	"context"

	"google.golang.org/grpc"
)

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

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

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

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

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

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

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