ListOperations

pt.tecnico.dsi.openstack.common.services.ListOperations
trait ListOperations[F[_], Model]

List operations for a domain model of an Openstack REST API.

Attributes

Source
ListOperations.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class CrudService[F, Model, Create, Update]
Self type

Members list

Value members

Concrete methods

def list(pairs: (String, String)*): F[List[Model]]

Lists all domainModel(s) using the specified pairs as the query params. If the response is paginated all elements will be returned, be careful as this might take a lot of time and memory.

Lists all domainModel(s) using the specified pairs as the query params. If the response is paginated all elements will be returned, be careful as this might take a lot of time and memory.

Value parameters

pairs

the pairs of Strings that will be used as the query params.

Attributes

Source
ListOperations.scala
def list(query: Query, extraHeaders: ToRaw*): F[List[Model]]

Lists all domainModel(s) using the specified query. If the response is paginated all elements will be returned, be careful as this might take a lot of time and memory.

Lists all domainModel(s) using the specified query. If the response is paginated all elements will be returned, be careful as this might take a lot of time and memory.

Value parameters

extraHeaders

extra headers to pass when making the request. The authToken header is always added.

query

the query to use when performing the request.

Attributes

Source
ListOperations.scala
def stream(pairs: (String, String)*): Stream[F, Model]

Streams domainModel(s) using the specified query. Automatically fetches more pages if more elements of the stream are consumed.

Streams domainModel(s) using the specified query. Automatically fetches more pages if more elements of the stream are consumed.

Value parameters

pairs

the pairs of Strings that will be used as the query params.

Attributes

Source
ListOperations.scala
def stream(query: Query, extraHeaders: ToRaw*): Stream[F, Model]

Streams domainModel(s) using the specified query. Automatically fetches more pages if more elements of the stream are consumed.

Streams domainModel(s) using the specified query. Automatically fetches more pages if more elements of the stream are consumed.

Value parameters

extraHeaders

extra headers to pass when making the request. The authToken header is always added.

query

the query to use when performing the request.

Attributes

Source
ListOperations.scala

Givens

Givens

given modelDecoder: Decoder[Model]

Attributes

Source
ListOperations.scala