com.cognite.sdk.scala.v1.fdm.containers.ContainerReference.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cognite-sdk-scala_2.13 Show documentation
Show all versions of cognite-sdk-scala_2.13 Show documentation
Scala SDK for Cognite Data Fusion.
The newest version!
package com.cognite.sdk.scala.v1.fdm.containers
import com.cognite.sdk.scala.v1.fdm.common.sources.{SourceReference, SourceType}
import io.circe.generic.semiauto.deriveDecoder
import io.circe.{Decoder, Encoder}
final case class ContainerReference(space: String, externalId: String) extends SourceReference {
val `type`: SourceType = SourceType.Container
}
object ContainerReference {
implicit val containerReferenceEncoder: Encoder[ContainerReference] =
Encoder.forProduct3("type", "space", "externalId")((c: ContainerReference) =>
(c.`type`, c.space, c.externalId)
)
implicit val containerReferenceDecoder: Decoder[ContainerReference] =
deriveDecoder[ContainerReference]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy