// Code generated by sdkgen. DO NOT EDIT.

package storage

import (
	"context"

	"google.golang.org/grpc"
)

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

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

// Bucket gets BucketService client
func (s *StorageAPI) Bucket() *BucketServiceClient {
	return &BucketServiceClient{getConn: s.getConn}
}

// Presign gets PresignService client
func (s *StorageAPI) Presign() *PresignServiceClient {
	return &PresignServiceClient{getConn: s.getConn}
}
