// Code generated by sdkgen. DO NOT EDIT.

// nolint
package cloudregistry

import (
	"context"

	"google.golang.org/grpc"

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

//revive:disable

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

// StartCloud implements cloudregistry.MigrationServiceClient
func (c *MigrationServiceClient) StartCloud(ctx context.Context, in *cloudregistry.StartCloudMigrationRequest, opts ...grpc.CallOption) (*operation.Operation, error) {
	conn, err := c.getConn(ctx)
	if err != nil {
		return nil, err
	}
	return cloudregistry.NewMigrationServiceClient(conn).StartCloud(ctx, in, opts...)
}
