com.cognite.sdk.scala.v1.fdm.containers.containers.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!
// Copyright 2020 Cognite AS
// SPDX-License-Identifier: Apache-2.0
package com.cognite.sdk.scala.v1.fdm.containers
import com.cognite.sdk.scala.v1.fdm.common.Usage
import com.cognite.sdk.scala.v1.fdm.common.properties.PropertyDefinition.ContainerPropertyDefinition
import com.cognite.sdk.scala.v1.fdm.common.sources.SourceDefinition
final case class ContainerCreateDefinition(
space: String,
externalId: String,
name: Option[String],
description: Option[String],
usedFor: Option[Usage],
properties: Map[String, ContainerPropertyDefinition],
constraints: Option[Map[String, ContainerConstraint]],
indexes: Option[Map[String, IndexDefinition]]
)
final case class ContainerDefinition(
space: String,
externalId: String,
name: Option[String],
description: Option[String],
usedFor: Usage,
properties: Map[String, ContainerPropertyDefinition],
constraints: Option[Map[String, ContainerConstraint]],
indexes: Option[Map[String, IndexDefinition]],
createdTime: Long,
lastUpdatedTime: Long
) extends SourceDefinition {
def toSourceReference: ContainerReference = ContainerReference(space, externalId)
}
final case class ContainerId(space: String, externalId: String)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy