UpdateOperations

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

Idempotent update operations for a domain model of an Openstack REST API.

Attributes

Source
UpdateOperations.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 apply(id: String, update: Update, extraHeaders: ToRaw*): F[Model]

Allows a simpler syntax to update domainModel(s). For example instead of:

Allows a simpler syntax to update domainModel(s). For example instead of:

  cinder.quotas.update(project.id, Quota.Update(...))

We can do:

  cinder.quotas(project.id, Quota.Update(...))

Attributes

Source
UpdateOperations.scala
def update(id: String, update: Update, extraHeaders: ToRaw*): F[Model]

Updates the domainModel with the given id using the values in update.

Updates the domainModel with the given id using the values in update.

Value parameters

extraHeaders

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

id

the id of the domainModel to update.

update

the values to use in the update.

Attributes

Returns

the updated domainModel.

Source
UpdateOperations.scala

Givens

Givens

given modelDecoder: Decoder[Model]

Attributes

Source
UpdateOperations.scala
given updateEncoder: Encoder[Update]

Attributes

Source
UpdateOperations.scala