/** * Generated by API Builder - https://www.apibuilder.io * Service version: 1.0.1 * User agent: apibuilder app.apibuilder.io/gilt/ionroller-api/1.0.1/play_2_9_scala_3_controllers */ package com.gilt.ionroller.api.v1.controllers import com.gilt.ionroller.api.v1.models.json._ trait ServicesController extends play.api.mvc.BaseController { sealed trait Get extends Product with Serializable object Get { final case class HTTP200(body: Seq[com.gilt.ionroller.api.v1.models.Service]) extends Get final case class Undocumented(result: play.api.mvc.Result) extends Get } def get(request: play.api.mvc.Request[play.api.mvc.AnyContent]): scala.concurrent.Future[Get] final def get(): play.api.mvc.Action[play.api.mvc.AnyContent] = Action.async { request => get(request) .map { case r: Get.HTTP200 => Status(200)(play.api.libs.json.Json.toJson(r.body)) case r: Get.Undocumented => r.result }(defaultExecutionContext) } sealed trait GetByServiceName extends Product with Serializable object GetByServiceName { final case class HTTP200(body: com.gilt.ionroller.api.v1.models.Service) extends GetByServiceName final case class Undocumented(result: play.api.mvc.Result) extends GetByServiceName } def getByServiceName( request: play.api.mvc.Request[play.api.mvc.AnyContent], serviceName: String ): scala.concurrent.Future[GetByServiceName] final def getByServiceName(serviceName: String): play.api.mvc.Action[play.api.mvc.AnyContent] = Action.async { request => getByServiceName(request, serviceName) .map { case r: GetByServiceName.HTTP200 => Status(200)(play.api.libs.json.Json.toJson(r.body)) case r: GetByServiceName.Undocumented => r.result }(defaultExecutionContext) } sealed trait PutConfigByServiceName extends Product with Serializable object PutConfigByServiceName { case object HTTP204 extends PutConfigByServiceName final case class Undocumented(result: play.api.mvc.Result) extends PutConfigByServiceName } def putConfigByServiceName( request: play.api.mvc.Request[com.gilt.ionroller.api.v1.models.ServiceConfig], serviceName: String, body: com.gilt.ionroller.api.v1.models.ServiceConfig ): scala.concurrent.Future[PutConfigByServiceName] final def putConfigByServiceName( serviceName: String ): play.api.mvc.Action[com.gilt.ionroller.api.v1.models.ServiceConfig] = Action.async(parse.json[com.gilt.ionroller.api.v1.models.ServiceConfig]) { request => putConfigByServiceName(request, serviceName, request.body) .map { case PutConfigByServiceName.HTTP204 => Status(204)(play.api.mvc.Results.EmptyContent()) case r: PutConfigByServiceName.Undocumented => r.result }(defaultExecutionContext) } sealed trait GetConfigsByServiceName extends Product with Serializable object GetConfigsByServiceName { final case class HTTP200(body: Seq[com.gilt.ionroller.api.v1.models.ServiceConfig]) extends GetConfigsByServiceName final case class Undocumented(result: play.api.mvc.Result) extends GetConfigsByServiceName } def getConfigsByServiceName( request: play.api.mvc.Request[play.api.mvc.AnyContent], serviceName: String, from: _root_.scala.Option[_root_.org.joda.time.DateTime], to: _root_.scala.Option[_root_.org.joda.time.DateTime] ): scala.concurrent.Future[GetConfigsByServiceName] final def getConfigsByServiceName( serviceName: String, from: _root_.scala.Option[_root_.org.joda.time.DateTime], to: _root_.scala.Option[_root_.org.joda.time.DateTime] ): play.api.mvc.Action[play.api.mvc.AnyContent] = Action.async { request => getConfigsByServiceName(request, serviceName, from, to) .map { case r: GetConfigsByServiceName.HTTP200 => Status(200)(play.api.libs.json.Json.toJson(r.body)) case r: GetConfigsByServiceName.Undocumented => r.result }(defaultExecutionContext) } sealed trait GetConfigByServiceName extends Product with Serializable object GetConfigByServiceName { final case class HTTP200(body: com.gilt.ionroller.api.v1.models.ServiceConfig) extends GetConfigByServiceName final case class Undocumented(result: play.api.mvc.Result) extends GetConfigByServiceName } def getConfigByServiceName( request: play.api.mvc.Request[play.api.mvc.AnyContent], serviceName: String ): scala.concurrent.Future[GetConfigByServiceName] final def getConfigByServiceName(serviceName: String): play.api.mvc.Action[play.api.mvc.AnyContent] = Action.async { request => getConfigByServiceName(request, serviceName) .map { case r: GetConfigByServiceName.HTTP200 => Status(200)(play.api.libs.json.Json.toJson(r.body)) case r: GetConfigByServiceName.Undocumented => r.result }(defaultExecutionContext) } sealed trait GetConfigsByServiceNameAndTimestamp extends Product with Serializable object GetConfigsByServiceNameAndTimestamp { final case class HTTP200(body: com.gilt.ionroller.api.v1.models.ServiceConfig) extends GetConfigsByServiceNameAndTimestamp final case class Undocumented(result: play.api.mvc.Result) extends GetConfigsByServiceNameAndTimestamp } def getConfigsByServiceNameAndTimestamp( request: play.api.mvc.Request[play.api.mvc.AnyContent], serviceName: String, timestamp: _root_.org.joda.time.DateTime ): scala.concurrent.Future[GetConfigsByServiceNameAndTimestamp] final def getConfigsByServiceNameAndTimestamp( serviceName: String, timestamp: _root_.org.joda.time.DateTime ): play.api.mvc.Action[play.api.mvc.AnyContent] = Action.async { request => getConfigsByServiceNameAndTimestamp(request, serviceName, timestamp) .map { case r: GetConfigsByServiceNameAndTimestamp.HTTP200 => Status(200)(play.api.libs.json.Json.toJson(r.body)) case r: GetConfigsByServiceNameAndTimestamp.Undocumented => r.result }(defaultExecutionContext) } sealed trait DeleteConfigByServiceName extends Product with Serializable object DeleteConfigByServiceName { case object HTTP204 extends DeleteConfigByServiceName final case class Undocumented(result: play.api.mvc.Result) extends DeleteConfigByServiceName } def deleteConfigByServiceName( request: play.api.mvc.Request[play.api.mvc.AnyContent], serviceName: String ): scala.concurrent.Future[DeleteConfigByServiceName] final def deleteConfigByServiceName(serviceName: String): play.api.mvc.Action[play.api.mvc.AnyContent] = Action.async { request => deleteConfigByServiceName(request, serviceName) .map { case DeleteConfigByServiceName.HTTP204 => Status(204)(play.api.mvc.Results.EmptyContent()) case r: DeleteConfigByServiceName.Undocumented => r.result }(defaultExecutionContext) } sealed trait PostReleaseByServiceName extends Product with Serializable object PostReleaseByServiceName { final case class HTTP200(body: Long) extends PostReleaseByServiceName final case class Undocumented(result: play.api.mvc.Result) extends PostReleaseByServiceName } def postReleaseByServiceName( request: play.api.mvc.Request[play.api.mvc.AnyContent], serviceName: String, version: String, config: _root_.scala.Option[_root_.org.joda.time.DateTime] ): scala.concurrent.Future[PostReleaseByServiceName] final def postReleaseByServiceName( serviceName: String, version: String, config: _root_.scala.Option[_root_.org.joda.time.DateTime] ): play.api.mvc.Action[play.api.mvc.AnyContent] = Action.async { request => postReleaseByServiceName(request, serviceName, version, config) .map { case r: PostReleaseByServiceName.HTTP200 => Status(200)(play.api.libs.json.Json.toJson(r.body)) case r: PostReleaseByServiceName.Undocumented => r.result }(defaultExecutionContext) } sealed trait PostDropByServiceName extends Product with Serializable object PostDropByServiceName { final case class HTTP200(body: Long) extends PostDropByServiceName final case class Undocumented(result: play.api.mvc.Result) extends PostDropByServiceName } def postDropByServiceName( request: play.api.mvc.Request[play.api.mvc.AnyContent], serviceName: String, version: String, config: _root_.scala.Option[_root_.org.joda.time.DateTime], force: Boolean ): scala.concurrent.Future[PostDropByServiceName] final def postDropByServiceName( serviceName: String, version: String, config: _root_.scala.Option[_root_.org.joda.time.DateTime], force: Boolean ): play.api.mvc.Action[play.api.mvc.AnyContent] = Action.async { request => postDropByServiceName(request, serviceName, version, config, force) .map { case r: PostDropByServiceName.HTTP200 => Status(200)(play.api.libs.json.Json.toJson(r.body)) case r: PostDropByServiceName.Undocumented => r.result }(defaultExecutionContext) } }