// Code generated by sdkgen. DO NOT EDIT.

//nolint
package compute

import (
	"context"

	"google.golang.org/grpc"

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

//revive:disable

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

var _ compute.DiskTypeServiceClient = &DiskTypeServiceClient{}

// Get implements compute.DiskTypeServiceClient
func (c *DiskTypeServiceClient) Get(ctx context.Context, in *compute.GetDiskTypeRequest, opts ...grpc.CallOption) (*compute.DiskType, error) {
	conn, err := c.getConn(ctx)
	if err != nil {
		return nil, err
	}
	return compute.NewDiskTypeServiceClient(conn).Get(ctx, in, opts...)
}

// List implements compute.DiskTypeServiceClient
func (c *DiskTypeServiceClient) List(ctx context.Context, in *compute.ListDiskTypesRequest, opts ...grpc.CallOption) (*compute.ListDiskTypesResponse, error) {
	conn, err := c.getConn(ctx)
	if err != nil {
		return nil, err
	}
	return compute.NewDiskTypeServiceClient(conn).List(ctx, in, opts...)
}
