// Code generated by sdkgen. DO NOT EDIT.

// nolint
package domain

import (
	"context"

	"google.golang.org/grpc"

	domain "github.com/yandex-cloud/go-genproto/yandex/cloud/cloudregistry/v1/domain"
	"github.com/yandex-cloud/go-genproto/yandex/cloud/operation"
)

//revive:disable

// DebianServiceClient is a domain.DebianServiceClient with
// lazy GRPC connection initialization.
type DebianServiceClient struct {
	getConn func(ctx context.Context) (*grpc.ClientConn, error)
}

// ReindexPackages implements domain.DebianServiceClient
func (c *DebianServiceClient) ReindexPackages(ctx context.Context, in *domain.DebianReindexPackagesRequest, opts ...grpc.CallOption) (*operation.Operation, error) {
	conn, err := c.getConn(ctx)
	if err != nil {
		return nil, err
	}
	return domain.NewDebianServiceClient(conn).ReindexPackages(ctx, in, opts...)
}
