/** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.2 * User agent: apibuilder app.apibuilder.io/bml/bml-gen-test-application/0.0.2/http4s_0_18 */ package org.bml.bml.gen.test.application.v0.models { /** * This is the top level in the system. It represents a specific client. * * @param id The Universally Unique Identifier. See RFC 4122. * @param awsAccount Test param for a pattern restricted string. * @param name A unique human readable string name. * @param enabled Adds the ability to enable / disable this resource. */ final case class Account( id: _root_.java.util.UUID, awsAccount: String, name: String, enabled: Boolean ) /** * A form used for creating an Account resource. * * @param name A unique human readable string name. * @param enabled Adds the ability to enable / disable this resource. */ final case class AccountForm( name: String, enabled: Boolean ) /** * A model client for testing generation. * * @param accounts test field to make sure non empty lists are non empty in generated mock * factories. */ final case class Client( accounts: Seq[org.bml.bml.gen.test.application.v0.models.Account] ) /** * A response model for the standard health check resource. * * @param status A general status string. */ final case class Healthcheck( status: String ) /** * Test Enumeration provides a useful test for enumeration based code generation. */ sealed trait TestEnumeration extends _root_.scala.Product with _root_.scala.Serializable object TestEnumeration { /** * A foo enumeration entry. */ case object Foo extends TestEnumeration { override def toString = "foo" } /** * A bar enumeration entry. */ case object Bar extends TestEnumeration { override def toString = "bar" } /** * UNDEFINED captures values that are sent either in error or * that were added by the server after this library was * generated. We want to make it easy and obvious to users of * this library to handle this case gracefully. * * We use all CAPS for the variable name to avoid collisions * with the camel cased values above. */ final case class UNDEFINED(override val toString: String) extends TestEnumeration /** * all returns a list of all the valid, known values. We use * lower case to avoid collisions with the camel cased values * above. */ val all: scala.List[TestEnumeration] = scala.List(Foo, Bar) private val byName: Map[String, TestEnumeration] = all.map(x => x.toString.toLowerCase -> x).toMap def apply(value: String): TestEnumeration = fromString(value).getOrElse(UNDEFINED(value)) def fromString(value: String): _root_.scala.Option[TestEnumeration] = byName.get(value.toLowerCase) } }