final case class APIResource(name: String, verbs: Seq[String], namespaced: Boolean, singularName: String, version: Option[String] = None, categories: Option[Seq[String]] = None, shortNames: Option[Seq[String]] = None, storageVersionHash: Option[String] = None, group: Option[String] = None) extends Product with Serializable
APIResource specifies the name of a resource and whether it is namespaced.
- Source
- APIResource.scala
- Alphabetic
- By Inheritance
- APIResource
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addCategories(newValues: String*): APIResource
Appends new values to categories
- def addShortNames(newValues: String*): APIResource
Appends new values to shortNames
- def addVerbs(newValues: String*): APIResource
Appends new values to verbs
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val categories: Option[Seq[String]]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val group: Option[String]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mapCategories(f: (Seq[String]) => Seq[String]): APIResource
if categories has a value, transforms to the result of function
- def mapGroup(f: (String) => String): APIResource
if group has a value, transforms to the result of function
- def mapName(f: (String) => String): APIResource
transforms name to result of function
- def mapNamespaced(f: (Boolean) => Boolean): APIResource
transforms namespaced to result of function
- def mapShortNames(f: (Seq[String]) => Seq[String]): APIResource
if shortNames has a value, transforms to the result of function
- def mapSingularName(f: (String) => String): APIResource
transforms singularName to result of function
- def mapStorageVersionHash(f: (String) => String): APIResource
if storageVersionHash has a value, transforms to the result of function
- def mapVerbs(f: (Seq[String]) => Seq[String]): APIResource
transforms verbs to result of function
- def mapVersion(f: (String) => String): APIResource
if version has a value, transforms to the result of function
- val name: String
- val namespaced: Boolean
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val shortNames: Option[Seq[String]]
- val singularName: String
- val storageVersionHash: Option[String]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val verbs: Seq[String]
- val version: Option[String]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withCategories(value: Seq[String]): APIResource
Returns a new data with categories set to new value
- def withGroup(value: String): APIResource
Returns a new data with group set to new value
- def withName(value: String): APIResource
Returns a new data with name set to new value
- def withNamespaced(value: Boolean): APIResource
Returns a new data with namespaced set to new value
- def withShortNames(value: Seq[String]): APIResource
Returns a new data with shortNames set to new value
- def withSingularName(value: String): APIResource
Returns a new data with singularName set to new value
- def withStorageVersionHash(value: String): APIResource
Returns a new data with storageVersionHash set to new value
- def withVerbs(value: Seq[String]): APIResource
Returns a new data with verbs set to new value
- def withVersion(value: String): APIResource
Returns a new data with version set to new value