com.cognite.sdk.scala.v1.fdm.views.ViewCreateDefinition.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.views
import com.cognite.sdk.scala.v1.fdm.common.filters.FilterDefinition
import com.cognite.sdk.scala.v1.fdm.datamodels.DataModelCreateViewReference
import io.circe.generic.semiauto.{deriveDecoder, deriveEncoder}
import io.circe.{Decoder, Encoder}
final case class ViewCreateDefinition(
space: String,
externalId: String,
version: String,
name: Option[String] = None,
description: Option[String] = None,
filter: Option[FilterDefinition] = None,
implements: Option[Seq[ViewReference]] = None,
properties: Map[String, ViewPropertyCreateDefinition]
) extends DataModelCreateViewReference
object ViewCreateDefinition {
implicit val viewCreateDefinitionEncoder: Encoder[ViewCreateDefinition] =
deriveEncoder[ViewCreateDefinition]
implicit val viewCreateDefinitionDecoder: Decoder[ViewCreateDefinition] =
deriveDecoder[ViewCreateDefinition]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy