// Code generated by ifacemaker; DO NOT EDIT.

package hcloud

import (
	"context"
)

// IServerTypeClient ...
type IServerTypeClient interface {
	// GetByID retrieves a server type by its ID. If the server type does not exist, nil is returned.
	GetByID(ctx context.Context, id int64) (*ServerType, *Response, error)
	// GetByName retrieves a server type by its name. If the server type does not exist, nil is returned.
	GetByName(ctx context.Context, name string) (*ServerType, *Response, error)
	// Get retrieves a server type by its ID if the input can be parsed as an integer, otherwise it
	// retrieves a server type by its name. If the server type does not exist, nil is returned.
	Get(ctx context.Context, idOrName string) (*ServerType, *Response, error)
	// List returns a list of server types for a specific page.
	//
	// Please note that filters specified in opts are not taken into account
	// when their value corresponds to their zero value or when they are empty.
	List(ctx context.Context, opts ServerTypeListOpts) ([]*ServerType, *Response, error)
	// All returns all server types.
	All(ctx context.Context) ([]*ServerType, error)
	// AllWithOpts returns all server types for the given options.
	AllWithOpts(ctx context.Context, opts ServerTypeListOpts) ([]*ServerType, error)
}
