All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cognite.sdk.scala.v1.fdm.containers.containers.scala Maven / Gradle / Ivy

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