// Code generated by sdkgen. DO NOT EDIT.

package licensemanager

import (
	"context"

	"google.golang.org/grpc"
)

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

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

// Instance gets InstanceService client
func (l *LicenseManager) Instance() *InstanceServiceClient {
	return &InstanceServiceClient{getConn: l.getConn}
}

// Lock gets LockService client
func (l *LicenseManager) Lock() *LockServiceClient {
	return &LockServiceClient{getConn: l.getConn}
}
