/** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.1-dev * User agent: apibuilder app.apibuilder.io/michal/playground-api/0.0.1-dev/http4s_0_15 */ package io.github.mkows.playground.api.v0.mock { trait Client extends io.github.mkows.playground.api.v0.interfaces.Client { val baseUrl: org.http4s.Uri = org.http4s.Uri.unsafeFromString("http://mock.localhost") override def healthchecks: io.github.mkows.playground.api.v0.Healthchecks = MockHealthchecksImpl } object MockHealthchecksImpl extends MockHealthchecks trait MockHealthchecks extends io.github.mkows.playground.api.v0.Healthchecks { def get( requestHeaders: Seq[(String, String)] = Nil ): scalaz.concurrent.Task[io.github.mkows.playground.api.v0.models.Healthcheck] = scalaz.concurrent.Task.now { io.github.mkows.playground.api.v0.mock.Factories.makeHealthcheck() } def postTestFormParamsJson( param1: String, requestHeaders: Seq[(String, String)] = Nil ): scalaz.concurrent.Task[Unit] = scalaz.concurrent.Task.now { // unit type } def getById( id: Int, requestHeaders: Seq[(String, String)] = Nil ): scalaz.concurrent.Task[io.github.mkows.playground.api.v0.models.Healthcheck] = scalaz.concurrent.Task.now { io.github.mkows.playground.api.v0.mock.Factories.makeHealthcheck() } } object Factories { def randomString(length: Int = 24): String = { _root_.scala.util.Random.alphanumeric.take(length).mkString } def makeItemStateFailedCause(): io.github.mkows.playground.api.v0.models.ItemStateFailedCause = io.github.mkows.playground.api.v0.models.ItemStateFailedCause.ErrorCause1 def makeItemStateProgress(): io.github.mkows.playground.api.v0.models.ItemStateProgress = io.github.mkows.playground.api.v0.models.ItemStateProgress.Init def makeError(): io.github.mkows.playground.api.v0.models.Error = io.github.mkows.playground.api.v0.models.Error( code = 1, message = Factories.randomString(24), details = None ) def makeHealthcheck(): io.github.mkows.playground.api.v0.models.Healthcheck = io.github.mkows.playground.api.v0.models.Healthcheck( status = Factories.randomString(24), createdAt = _root_.java.time.Instant.now ) def makeItemState(): io.github.mkows.playground.api.v0.models.ItemState = io.github.mkows.playground.api.v0.mock.Factories.makeItemStateProgress() } }