// Code generated by sdkgen. DO NOT EDIT.

package datasphere

import (
	"context"

	"google.golang.org/grpc"
)

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

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

// Community gets CommunityService client
func (d *Datasphere) Community() *CommunityServiceClient {
	return &CommunityServiceClient{getConn: d.getConn}
}

// Project gets ProjectService client
func (d *Datasphere) Project() *ProjectServiceClient {
	return &ProjectServiceClient{getConn: d.getConn}
}
