// Code generated by ifacemaker; DO NOT EDIT.

package hcloud

import (
	"context"
)

// ILocationClient ...
type ILocationClient interface {
	// GetByID retrieves a location by its ID. If the location does not exist, nil is returned.
	GetByID(ctx context.Context, id int64) (*Location, *Response, error)
	// GetByName retrieves an location by its name. If the location does not exist, nil is returned.
	GetByName(ctx context.Context, name string) (*Location, *Response, error)
	// Get retrieves a location by its ID if the input can be parsed as an integer, otherwise it
	// retrieves a location by its name. If the location does not exist, nil is returned.
	Get(ctx context.Context, idOrName string) (*Location, *Response, error)
	// List returns a list of locations 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 LocationListOpts) ([]*Location, *Response, error)
	// All returns all locations.
	All(ctx context.Context) ([]*Location, error)
	// AllWithOpts returns all locations for the given options.
	AllWithOpts(ctx context.Context, opts LocationListOpts) ([]*Location, error)
}
