CreateNonIdempotentOperations

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

Non-idempotent create operations for a domain model of an Openstack REST API.

Attributes

Source
CreateNonIdempotentOperations.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(create: Create, extraHeaders: ToRaw*): F[Model]

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

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

  keystone.projects.create(Project.Create(name, domainId = Some(usersDomain.id)))

We can do:

  keystone.projects(Project.Create(name, domainId = Some(usersDomain.id)))

Attributes

Source
CreateNonIdempotentOperations.scala
def create(create: Create, extraHeaders: ToRaw*): F[Model]

Creates a new domainModel with the given create values.

Creates a new domainModel with the given create values.

Value parameters

create

the values to use in the create.

extraHeaders

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

Attributes

Returns

the created domainModel

Source
CreateNonIdempotentOperations.scala

Givens

Givens

given createEncoder: Encoder[Create]
given modelDecoder: Decoder[Model]